/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: #1a1a2e;
  line-height: 1.6;
  background: #ffffff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff; backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb; padding: 16px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; font-size: 1.3rem; color: #1a1a2e; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 0.95rem; }
.nav-links a { color: #666; transition: color 0.2s; }
.nav-links a:hover { color: #1a1a2e; }
.nav-links a.btn { color: #fff !important; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 8px;
  font-weight: 600; font-size: 1rem; cursor: pointer; border: none;
  background: #10b981; color: #fff; transition: all 0.2s;
  text-align: center;
}
.btn:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; }
.btn-accent { background: #059669; }
.btn-accent:hover { background: #047857; box-shadow: 0 4px 12px rgba(5,150,105,0.3); }
.btn:disabled { background: #d1d5db; color: #999; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 160px 0 100px; text-align: center;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: #ecfdf5; color: #059669; font-size: 0.9rem; font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 20px; color: #1a1a2e; }
.gradient-text {
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 1.2rem; color: #666; max-width: 620px; margin: 0 auto 32px; }
.hero-sub strong { color: #10b981; }
.hero-cta { margin-bottom: 48px; }
.hero-note { font-size: 0.85rem; color: #999; margin-top: 12px; }
.hero-stats {
  display: flex; justify-content: center; gap: 48px;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: #10b981; }
.stat-label { font-size: 0.85rem; color: #999; }

/* ── Trust Bar ───────────────────────────────────────────── */
.trust-bar {
  margin-top: 32px; font-size: 0.85rem; color: #888;
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
}

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-dark { background: #ffffff; }
.section-light { background: #f9fafb; }
.section-title { font-size: 2.2rem; font-weight: 800; text-align: center; margin-bottom: 12px; color: #1a1a2e; }
.section-sub { font-size: 1.1rem; color: #666; text-align: center; margin-bottom: 48px; }

/* ── Steps ───────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step {
  text-align: center; padding: 32px 24px; border-radius: 12px;
  background: #fff; border: 1px solid #e5e7eb; transition: box-shadow 0.2s;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.step:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: #10b981; color: #fff; font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; color: #1a1a2e; }
.step p { color: #666; font-size: 0.95rem; }

/* ── Generator Form ──────────────────────────────────────── */
.generator-section { background: #f9fafb; }
.generator-card {
  max-width: 700px; margin: 0 auto; background: #fff;
  border-radius: 16px; padding: 40px; box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: #1a1a2e; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 8px;
  font-size: 1rem; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical; background: #fff; color: #1a1a2e;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #999; }
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.1); }

/* ── Form Section Labels ─────────────────────────────────── */
.form-section-label {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #10b981; margin-bottom: 16px;
}

/* ── Form Separator ──────────────────────────────────────── */
.form-separator {
  border: none; border-top: 1px solid #e5e7eb; margin: 28px 0;
}

/* ── Form Divider ────────────────────────────────────────── */
.form-divider {
  text-align: center; color: #999; font-size: 0.85rem;
  margin: 16px 0; position: relative;
}
.form-divider::before,
.form-divider::after {
  content: ''; position: absolute; top: 50%;
  width: 30%; height: 1px; background: #e5e7eb;
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

/* ── Progressive Form Steps ──────────────────────────────── */
.form-step { margin-bottom: 24px; }
.form-step-hidden {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
  margin-bottom: 0;
}
.form-step-hidden.visible {
  max-height: 1200px; opacity: 1;
  margin-bottom: 24px;
}
.step-label-big { font-size: 1.1rem !important; font-weight: 700 !important; margin-bottom: 12px !important; color: #1a1a2e; }
.input-big {
  padding: 16px 20px !important; font-size: 1.05rem !important;
  border: 2px solid #e5e7eb !important; border-radius: 12px !important;
  background: #fff; color: #1a1a2e;
}
.input-big:focus { border-color: #10b981 !important; box-shadow: 0 0 0 4px rgba(16,185,129,0.1) !important; }
.input-big::placeholder { color: #999; }
.manual-link {
  display: inline-block; margin-top: 16px; font-size: 0.9rem;
  color: #999; transition: color 0.2s; cursor: pointer;
}
.manual-link:hover { color: #10b981; }
.add-more-link {
  display: inline-block; margin-top: 8px; font-size: 0.9rem;
  color: #999; transition: color 0.2s; cursor: pointer;
}
.add-more-link:hover { color: #10b981; }
.add-more-link.active { display: none; }

/* ── URL helper text ─────────────────────────────────────── */
.url-helper {
  font-size: 0.82rem; color: #999; text-align: center; margin-top: 8px;
}

/* ── Upload Zone ─────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed #d1d5db; border-radius: 12px; padding: 24px;
  text-align: center; cursor: pointer; transition: all 0.2s;
  background: #f9fafb;
}
.upload-zone:hover { border-color: #10b981; background: rgba(16,185,129,0.05); }
.upload-zone.dragover { border-color: #10b981; background: rgba(16,185,129,0.08); }
.upload-zone .upload-icon { font-size: 1.5rem; margin-bottom: 8px; }
.upload-zone .upload-text { color: #666; font-size: 0.9rem; }
.upload-zone .upload-note { color: #999; font-size: 0.8rem; margin-top: 6px; }
.upload-zone .upload-status { color: #10b981; font-size: 0.85rem; margin-top: 8px; display: none; }

/* ── Result Box ──────────────────────────────────────────── */
.result-box {
  margin-top: 32px; padding: 32px; background: #f9fafb;
  border-radius: 12px; border: 1px solid #e5e7eb;
}
.result-box h3 { margin-bottom: 16px; font-size: 1.2rem; color: #1a1a2e; }
.letter-preview {
  font-size: 1rem; line-height: 1.8; color: #666;
  padding: 20px; background: #fff; border-radius: 8px;
  border: 1px solid #e5e7eb; white-space: pre-wrap;
}
.preview-blur {
  margin-top: 16px; position: relative; overflow: hidden;
  border-radius: 8px; border: 1px solid #e5e7eb;
}
.blur-overlay {
  padding: 40px 20px; background: #fff;
  filter: blur(6px); user-select: none; color: #999;
  line-height: 2;
}
.blur-text { text-align: center; }

/* ── Unlock ──────────────────────────────────────────────── */
.unlock-section { text-align: center; margin-top: 24px; }
.unlock-msg { font-weight: 600; margin-bottom: 16px; color: #1a1a2e; }
.secure-note { font-size: 0.85rem; color: #999; margin-top: 12px; }

/* ── Privacy Section ─────────────────────────────────────── */
.privacy-blocks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  max-width: 900px; margin: 0 auto;
}
.privacy-block {
  text-align: center; padding: 32px 24px; border-radius: 12px;
  background: #fff; border: 1px solid #e5e7eb;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.privacy-block .block-icon { font-size: 2rem; margin-bottom: 12px; }
.privacy-block h3 { font-size: 1.1rem; margin-bottom: 8px; color: #1a1a2e; }
.privacy-block p { color: #666; font-size: 0.9rem; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-card {
  max-width: 420px; margin: 0 auto; text-align: center;
  padding: 48px 40px; border-radius: 16px;
  background: #fff; border: 2px solid #10b981;
  box-shadow: 0 8px 32px rgba(16,185,129,0.1);
}
.pricing-amount { font-size: 3.5rem; font-weight: 800; color: #10b981; }
.pricing-per { font-size: 1.1rem; color: #666; margin-bottom: 32px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-features li { padding: 8px 0; font-size: 1rem; color: #666; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  padding: 24px 0; border-bottom: 1px solid #e5e7eb;
}
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; color: #1a1a2e; }
.faq-item p { color: #666; font-size: 0.95rem; }
.faq-item ul { color: #666; font-size: 0.95rem; margin-top: 8px; padding-left: 20px; }
.faq-item li { margin-bottom: 4px; }

/* ── Comparison Table ────────────────────────────────────── */
.compare-table {
  width: 100%; border-collapse: collapse; margin-top: 12px;
}
.compare-table th,
.compare-table td {
  padding: 10px 14px; text-align: left; border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem;
}
.compare-table th { color: #999; font-weight: 600; }
.compare-table td { color: #666; }
.compare-table td:last-child { color: #10b981; font-weight: 600; }

/* ── Skip Link & Focus ────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
  z-index: 1000; padding: 12px 24px; background: #10b981; color: #fff;
  font-weight: 600; border-radius: 4px; text-decoration: none;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px;
  width: auto; height: auto;
}
*:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 48px 0 32px; background: #1a1a2e; color: #94a3b8;
}
.footer-inner { text-align: center; display: flex; flex-direction: column; justify-content: center; }
.footer-brand { margin-bottom: 24px; }
.footer .logo { color: #e2e8f0; font-weight: 800; font-size: 1.3rem; }
.footer-brand p { margin-top: 4px; font-size: 0.9rem; color: #94a3b8; }
.footer-copy { font-size: 0.8rem; color: #64748b; }
.footer-copy a { color: #64748b; text-decoration: none; transition: color 0.2s; }
.footer-copy a:hover { color: #94a3b8; }

/* ── Legal Pages ─────────────────────────────────────────── */
.legal-page {
  padding-top: 140px; padding-bottom: 60px; max-width: 700px;
}
.legal-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; color: #1a1a2e; }
.legal-page h2 { font-size: 1.3rem; margin: 32px 0 12px; color: #1a1a2e; }
.legal-page p, .legal-page li { color: #666; line-height: 1.8; margin-bottom: 12px; }
.legal-page a { color: #10b981; text-decoration: underline; }
.legal-page ul { padding-left: 20px; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal-page th, .legal-page td {
  padding: 10px 14px; text-align: left; border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem; color: #666;
}
.legal-page th { color: #1a1a2e; font-weight: 600; }
.legal-page em { color: #999; }

/* ── Success page ────────────────────────────────────────── */
.success-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 40px; background: #f9fafb;
}
.success-card {
  max-width: 700px; width: 100%; background: #fff; border-radius: 16px;
  padding: 48px; box-shadow: 0 2px 16px rgba(0,0,0,0.06); text-align: center;
  border: 1px solid #e5e7eb;
}
.success-card h1 { font-size: 2rem; margin-bottom: 8px; color: #1a1a2e; }
.success-card .subtitle { color: #666; margin-bottom: 32px; }
.full-letter {
  text-align: left; background: #f9fafb; padding: 32px;
  border-radius: 12px; border: 1px solid #e5e7eb;
  white-space: pre-wrap; line-height: 1.8; font-size: 1rem; color: #666;
  min-height: 200px;
}
.copy-btn {
  margin-top: 24px; padding: 14px 32px; background: #10b981; color: #fff;
  border: none; border-radius: 8px; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.copy-btn:hover { background: #059669; }
.loading-spinner {
  display: inline-block; width: 24px; height: 24px;
  border: 3px solid #e5e7eb; border-top-color: #10b981;
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Hamburger Menu ──────────────────────────────────────── */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: #1a1a2e;
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 1.5rem; }
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb; gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .generator-card { padding: 24px; }
  .pricing-card { padding: 32px 24px; }
  .privacy-blocks { grid-template-columns: 1fr; }
  .trust-bar { flex-direction: column; align-items: center; gap: 8px; }
}

/* ── Relevance Bar ────────────────────────────────────────── */
.relevance-section { margin-bottom: 8px; }
.relevance-bar {
  width: 100%; height: 8px; background: #e5e7eb;
  border-radius: 4px; overflow: hidden;
}
.relevance-fill {
  height: 100%; border-radius: 4px;
  transition: width 0.4s ease, background 0.4s ease;
  width: 0%;
}
.relevance-fill.level-low { background: #ef4444; }
.relevance-fill.level-mid { background: #f59e0b; }
.relevance-fill.level-high { background: #10b981; }
.relevance-text {
  font-size: 0.85rem; margin-top: 6px;
  transition: color 0.3s ease;
}
.relevance-text.level-low { color: #ef4444; }
.relevance-text.level-mid { color: #f59e0b; }
.relevance-text.level-high { color: #10b981; }

/* ── Skills Chips ────────────────────────────────────────── */
.skills-input-wrap {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 8px;
  background: #fff; cursor: text;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.skills-input-wrap:focus-within {
  border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}
.skills-input-wrap input {
  border: none; outline: none; padding: 4px 0; font-size: 1rem;
  font-family: inherit; flex: 1; min-width: 120px; background: transparent;
  color: #1a1a2e;
}
.skills-input-wrap input::placeholder { color: #999; }
.skill-chip {
  display: inline-flex; align-items: center;
  padding: 4px 12px; background: #ecfdf5; color: #059669;
  border-radius: 20px; font-size: 0.85rem; white-space: nowrap;
}
.skill-chip .remove {
  cursor: pointer; margin-left: 6px; color: #999;
  font-size: 1.1rem; line-height: 1;
  transition: color 0.2s;
}
.skill-chip .remove:hover { color: #ef4444; }
.skills-hint {
  font-size: 0.8rem; color: #999; margin-top: 6px;
}

/* ── Character Count ─────────────────────────────────────── */
.char-count {
  position: absolute; bottom: 8px; right: 12px;
  font-size: 0.75rem; color: #999; pointer-events: none;
}
.char-count.error { color: #ef4444; }

/* ── Field Error ─────────────────────────────────────────── */
.field-error {
  color: #ef4444; font-size: 0.85rem; margin-top: 6px;
}

/* Disclaimer */
.disclaimer-note {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.5rem;
  line-height: 1.4;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.disclaimer-note a {
  color: #999;
  text-decoration: underline;
}
