/* CoverPilot — editorial refresh (ivoire / navy / cuivre) */

:root {
  --bg: #faf7f2;
  --bg-section: #f4efe6;
  --bg-dark: #17203a;
  --bg-card: #ffffff;
  --bg-input: #fbf9f4;
  --ink: #17203a;
  --ink-soft: #1e2c5e;
  --ink-soft-hover: #152341;
  --ink-glow: rgba(30, 44, 94, 0.08);
  --ink-tint: rgba(30, 44, 94, 0.14);
  --copper: #b55725;
  --copper-hover: #9b4a1f;
  --copper-soft: #faece0;
  --copper-tint: rgba(181, 87, 37, 0.14);
  --gold: #b8923e;
  --text: #1a1b2e;
  --text-muted: #5e6276;
  --text-faded: #8a8b99;
  --border: #e7e2d8;
  --border-strong: #d8d1c3;
  --success: #2f8f5a;
  --success-soft: #e8f3ec;
  --error: #b23a3a;
  --error-soft: #fbebeb;
  --warn: #b5822b;
  --radius: 10px;
  --radius-lg: 14px;
  --max-w: 1120px;
  --max-w-prose: 720px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  min-height: 100vh;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ink-soft); text-decoration: none; }
a:hover { color: var(--copper); }
button { font-family: inherit; }
svg { display: inline-block; vertical-align: middle; }
.icon-inline { width: 1em; height: 1em; vertical-align: -0.14em; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--ink);
}
h3, h4 { font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-light { background: var(--bg); }
.section-cream { background: var(--bg-section); }
.section-dark {
  background: var(--bg-dark);
  color: #e8eaf0;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #f4ece0; }
.section-dark .section-sub { color: #b8bbc9; }
.section-dark p { color: #c6c9d3; }

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-align: center;
  margin-bottom: 10px;
}
.section-title .highlight {
  color: var(--copper);
  font-style: italic;
  font-weight: 500;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

/* Eyebrow label above titles */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
}

/* ── Skip link ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 12px;
  background: var(--ink-soft);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 999;
  font-weight: 600;
  font-size: 0.9rem;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 30px;
  height: 30px;
  color: var(--ink-soft);
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.logo:hover .logo-mark { transform: translateY(-1px) rotate(-3deg); }
.logo-text {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
}
.logo-text em { font-style: italic; font-weight: 500; color: var(--copper); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
}
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn { color: #fff; }
.nav-links a.btn:hover { color: #fff; }

/* Hamburger */
.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: var(--ink);
  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); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  }
  .nav-links.open { display: flex; }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--ink-soft);
  color: #fff;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  text-align: center;
  font-family: inherit;
  line-height: 1.2;
}
.btn:hover {
  background: var(--ink-soft-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30, 44, 94, 0.22);
  color: #fff;
}
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn-accent {
  background: var(--copper);
  color: #fff;
}
.btn-accent:hover {
  background: var(--copper-hover);
  box-shadow: 0 6px 18px rgba(181, 87, 37, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--ink-soft);
  color: var(--ink-soft);
  box-shadow: none;
  transform: translateY(-1px);
}
.btn:disabled {
  background: var(--border-strong);
  color: var(--text-faded);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(181, 87, 37, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(30, 44, 94, 0.05) 0%, transparent 50%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--copper);
}
.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero h1 .highlight {
  font-style: italic;
  font-weight: 500;
  color: var(--copper);
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 540px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-note {
  font-size: 0.88rem;
  color: var(--text-faded);
}
.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--ink-soft);
  flex: 0 0 auto;
}

/* Hero mockup (paper letter) */
.hero-mock {
  position: relative;
  min-height: 440px;
}
.hero-mock-paper {
  background: #fffefb;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 34px 36px 28px;
  box-shadow:
    0 1px 2px rgba(23, 32, 58, 0.04),
    0 14px 40px -12px rgba(23, 32, 58, 0.18);
  position: relative;
  transform: rotate(-1.2deg);
  max-width: 440px;
  margin-left: auto;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #2a2d40;
  z-index: 2;
}
.hero-mock-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fffefb;
  border: 1px solid var(--border);
  border-radius: 4px;
  z-index: -1;
  transform: rotate(2.4deg) translate(8px, 6px);
  box-shadow: 0 8px 24px -10px rgba(23, 32, 58, 0.12);
}
.hero-mock-header {
  font-family: var(--serif);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-mock-paper p {
  margin-bottom: 12px;
  color: #2a2d40;
}
.hero-mock-paper p.salutation {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
}
.hero-mock-paper mark {
  background: linear-gradient(transparent 55%, rgba(181, 87, 37, 0.25) 55%);
  padding: 0 2px;
  color: inherit;
}
.hero-mock-paper .signature {
  font-family: 'Caveat', 'Brush Script MT', cursive;
  font-size: 1.5rem;
  color: var(--ink-soft);
  margin-top: 10px;
}
.hero-mock-stamp {
  position: absolute;
  top: -18px;
  right: -14px;
  background: var(--copper);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  transform: rotate(4deg);
  box-shadow: 0 4px 14px rgba(181, 87, 37, 0.35);
  z-index: 3;
}
.hero-mock-caption {
  margin-top: 28px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-faded);
  font-style: italic;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-mock-paper { margin: 0 auto; transform: rotate(-0.8deg); }
  .hero-mock { min-height: 0; }
}

/* ── How It Works (step rail) ──────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 24px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.step:hover {
  border-color: var(--ink-soft);
  box-shadow: 0 10px 30px -14px rgba(23, 32, 58, 0.2);
  transform: translateY(-2px);
}
.step-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--copper);
  font-style: italic;
  line-height: 1;
  margin-bottom: 14px;
}
.step h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
}

/* ── Generator form ────────────────────────────────────────── */
.generator-section { background: var(--bg-section); }
.generator-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: 0 2px 20px rgba(23, 32, 58, 0.05);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-input);
  color: var(--ink);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faded); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--ink-soft);
  background: #fff;
  box-shadow: 0 0 0 3px var(--ink-glow);
}

.input-url-full { width: 100%; }

.enrichment-optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-faded);
  margin-left: 4px;
}

/* Stepper */
.stepper-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  scroll-margin-top: 120px;
}
.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stepper-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-faded);
  transition: all 0.25s;
}
.stepper-step.active .stepper-dot {
  border-color: var(--ink-soft);
  background: var(--ink-soft);
  color: #fff;
}
.stepper-step.completed .stepper-dot {
  border-color: var(--copper);
  background: var(--copper);
  color: #fff;
  font-size: 0;
}
.stepper-step.completed .stepper-dot::after {
  content: "✓";
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
}
.stepper-label {
  font-size: 0.74rem;
  color: var(--text-faded);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.stepper-step.active .stepper-label {
  color: var(--ink-soft);
  font-weight: 600;
}
.stepper-step.completed .stepper-label {
  color: var(--copper);
}
.stepper-line {
  flex: 1;
  height: 1px;
  background: var(--border-strong);
  margin: 0 10px;
  margin-bottom: 22px;
  transition: background 0.25s;
}
.stepper-line.completed {
  background: var(--copper);
}

/* Form steps */
#letterForm .form-step { display: none; }
#letterForm .form-step.form-step-active {
  display: block;
  animation: stepFadeIn 0.3s ease;
}
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.step-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}
.btn-next { padding: 12px 28px; }
.btn-back {
  background: none;
  border: 1px solid var(--border-strong);
  padding: 10px 20px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-back:hover {
  border-color: var(--ink-soft);
  color: var(--ink-soft);
  background: var(--ink-glow);
}

/* Tab toggle */
.tab-toggle {
  display: flex;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 16px;
  gap: 2px;
}
.tab-toggle button {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tab-toggle button svg { width: 15px; height: 15px; }
.tab-toggle button.active {
  background: var(--bg-card);
  color: var(--ink-soft);
  box-shadow: 0 1px 3px rgba(23, 32, 58, 0.08);
}
.tab-toggle button:hover:not(.active) { color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border-strong);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-input);
}
.upload-zone:hover {
  border-color: var(--ink-soft);
  background: var(--ink-glow);
}
.upload-zone.dragover {
  border-color: var(--copper);
  background: var(--copper-soft);
}
.upload-zone .upload-icon {
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.upload-zone .upload-icon svg { width: 28px; height: 28px; }
.upload-zone .upload-text {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 500;
}
.upload-zone .upload-note {
  color: var(--text-faded);
  font-size: 0.8rem;
  margin-top: 6px;
}

/* CV result */
.cv-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--success-soft);
  border: 1px solid #bfdec9;
  border-radius: 10px;
  margin-top: 12px;
}
.cv-result-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--success);
  min-width: 0;
}
.cv-result-icon { color: var(--success); }
.cv-result-icon svg { width: 18px; height: 18px; }
.cv-result-name {
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cv-result-status { color: var(--success); font-size: 0.8rem; flex-shrink: 0; }
.cv-remove-btn {
  background: none;
  border: none;
  color: var(--text-faded);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.cv-remove-btn:hover { color: var(--error); background: var(--error-soft); }

/* Skills chips */
.skills-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-input);
  cursor: text;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.skills-input-wrap:focus-within {
  border-color: var(--ink-soft);
  background: #fff;
  box-shadow: 0 0 0 3px var(--ink-glow);
}
.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: var(--ink);
}
.skills-input-wrap input::placeholder { color: var(--text-faded); }
.skill-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--copper-soft);
  color: var(--copper-hover);
  border-radius: 999px;
  font-size: 0.85rem;
  white-space: nowrap;
  font-weight: 500;
}
.skill-chip .remove {
  cursor: pointer;
  margin-left: 6px;
  color: var(--copper);
  font-size: 1.1rem;
  line-height: 1;
  transition: color 0.2s;
}
.skill-chip .remove:hover { color: var(--error); }
.skills-hint { font-size: 0.8rem; color: var(--text-faded); margin-top: 6px; }

/* Char count */
.char-count {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.75rem;
  color: var(--text-faded);
  pointer-events: none;
}
.char-count.error { color: var(--error); }

/* Field error */
.field-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 6px;
}

/* Status badges */
.check-status {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: none;
}
.check-status.success {
  display: block;
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid #bfdec9;
}
.check-status.error {
  display: block;
  background: var(--error-soft);
  color: var(--error);
  border: 1px solid #f0caca;
}
.check-status.loading {
  display: block;
  background: var(--bg-section);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Error banner */
.error-banner {
  background: var(--error-soft);
  border: 1px solid #e8bdbd;
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--error);
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: none;
}
.error-banner.visible { display: block; }

/* Relevance bar */
.relevance-section { margin-bottom: 8px; }
.relevance-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.relevance-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease, background 0.4s ease;
  width: 0%;
}
.relevance-fill.level-low { background: var(--error); }
.relevance-fill.level-mid { background: var(--warn); }
.relevance-fill.level-high { background: var(--success); }
.relevance-text {
  font-size: 0.85rem;
  margin-top: 6px;
  transition: color 0.3s ease;
}
.relevance-text.level-low { color: var(--error); }
.relevance-text.level-mid { color: var(--warn); }
.relevance-text.level-high { color: var(--success); }

/* Result box + unlock */
.result-box {
  margin-top: 32px;
  padding: 32px;
  background: var(--bg-section);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.result-box h3 {
  margin-bottom: 16px;
  font-size: 1.15rem;
  font-family: var(--serif);
}
.letter-preview {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  padding: 22px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  white-space: pre-wrap;
  font-family: var(--serif);
}
.preview-blur {
  margin-top: 16px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.blur-overlay {
  padding: 40px 20px;
  background: #fff;
  filter: blur(6px);
  user-select: none;
  color: var(--text-muted);
  line-height: 2;
}
.blur-text { text-align: center; }
.unlock-section { text-align: center; margin-top: 24px; }
.unlock-msg {
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1rem;
}
.secure-note {
  font-size: 0.85rem;
  color: var(--text-faded);
  margin-top: 12px;
}
.disclaimer-note {
  font-size: 0.74rem;
  color: var(--text-faded);
  margin-top: 0.6rem;
  line-height: 1.5;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.disclaimer-note a {
  color: var(--text-faded);
  text-decoration: underline;
}

/* Autofill / required highlights */
.autofilled {
  border-color: var(--success) !important;
  box-shadow: 0 0 0 3px rgba(47, 143, 90, 0.12) !important;
  background: var(--success-soft) !important;
}
.field-required-highlight {
  border-color: var(--warn) !important;
  box-shadow: 0 0 0 3px rgba(181, 130, 43, 0.14) !important;
}

/* ── Privacy blocks ────────────────────────────────────────── */
.privacy-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.privacy-block {
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.privacy-block .block-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--copper);
  background: rgba(181, 87, 37, 0.12);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.privacy-block .block-icon svg { width: 22px; height: 22px; }
.privacy-block h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #f4ece0;
}
.privacy-block p {
  color: #c6c9d3;
  font-size: 0.94rem;
  line-height: 1.65;
}
@media (max-width: 768px) {
  .privacy-blocks { grid-template-columns: 1fr; }
}

/* ── Pricing ───────────────────────────────────────────────── */
.pricing-card {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px -20px rgba(23, 32, 58, 0.2);
  position: relative;
}
.pricing-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--copper);
  opacity: 0.4;
  pointer-events: none;
}
.pricing-amount {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.pricing-amount .currency {
  font-size: 1.8rem;
  color: var(--copper);
  vertical-align: super;
  margin-right: 4px;
}
.pricing-per {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 32px;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}
.pricing-features li {
  padding: 10px 0;
  font-size: 0.96rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px dashed var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li svg {
  color: var(--copper);
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

/* ── Personas ──────────────────────────────────────────────── */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.persona-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.persona-card:hover {
  border-color: var(--ink-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -14px rgba(23, 32, 58, 0.18);
}
.persona-icon {
  width: 40px;
  height: 40px;
  color: var(--copper);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--copper-soft);
  border-radius: 10px;
}
.persona-icon svg { width: 22px; height: 22px; }
.persona-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.persona-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ── Sample letter (editorial) ─────────────────────────────── */
.sample-letter {
  max-width: 780px;
  margin: 0 auto;
  background: #fffefb;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 48px 52px 40px;
  box-shadow: 0 30px 60px -30px rgba(23, 32, 58, 0.25);
  position: relative;
}
.sample-label {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--copper);
  background: var(--copper-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sample-letter blockquote { margin: 0; }
.sample-letter blockquote p {
  font-family: var(--serif);
  color: #2a2d40;
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}
.sample-letter blockquote p:first-of-type {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1.3rem;
}
.sample-letter blockquote p:last-child { margin-bottom: 0; }
.sample-letter figcaption {
  margin-top: 1.8rem;
  color: var(--text-faded);
  font-size: 0.86rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  font-style: italic;
}
.sample-cta {
  text-align: center;
  margin-top: 36px;
}

/* ── Comparison table (editorial) ──────────────────────────── */
.comparison-table-wrap {
  overflow-x: auto;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.94rem;
}
.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.comparison-table thead th {
  background: var(--bg-section);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--sans);
}
.comparison-table tbody th[scope="row"] {
  text-align: left;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.94rem;
  text-transform: none;
  letter-spacing: 0;
  background: transparent;
}
.comparison-table td { color: var(--text-muted); }
.comparison-table .col-highlight {
  background: var(--copper-soft);
  color: var(--ink);
  font-weight: 600;
}
.comparison-table thead th.col-highlight {
  background: var(--copper);
  color: #fff;
}
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-top: 24px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

/* ── Why it works ─────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.why-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}
.why-stat {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--copper);
  font-style: italic;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.why-card h3 {
  font-family: var(--serif);
  font-size: 1.08rem;
  margin-bottom: 12px;
  color: #f4ece0;
  font-weight: 600;
}
.why-card p {
  color: #c6c9d3;
  font-size: 0.94rem;
  line-height: 1.65;
}


/* ── FAQ ───────────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 600;
}
.faq-item p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* ── Cross-ventures ────────────────────────────────────────── */
.cross-ventures {
  padding: 64px 0 56px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.cross-ventures-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: .02em;
}
.cross-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.cross-card {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink);
  background: var(--bg-card);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.cross-card:hover {
  border-color: var(--copper);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 32, 58, .08);
  color: var(--ink);
}
.cross-card-logo {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
}
.cross-card-logo svg {
  width: 20px;
  height: 20px;
  color: var(--copper);
}
.cross-card-desc {
  font-size: .92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  padding: 56px 0 36px;
  background: var(--bg-dark);
  color: #a8acb8;
}
.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer .logo { color: #f4ece0; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.footer .logo-mark { color: var(--copper); }
.footer-brand p {
  margin-top: 2px;
  font-size: 0.88rem;
  color: #8a8e9a;
  font-style: italic;
  font-family: var(--serif);
}
.footer-copy { font-size: 0.8rem; color: #6b6e79; }
.footer-copy a {
  color: #8a8e9a;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-copy a:hover { color: var(--copper); }

/* ── Legal pages ──────────────────────────────────────────── */
.legal-page {
  padding-top: 72px;
  padding-bottom: 72px;
  max-width: var(--max-w-prose);
}
.legal-page h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  font-family: var(--serif);
}
.legal-page h2 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
  font-family: var(--serif);
}
.legal-page p, .legal-page li {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-page a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--copper-tint);
  text-underline-offset: 3px;
}
.legal-page a:hover {
  color: var(--copper);
  text-decoration-color: var(--copper);
}
.legal-page ul { padding-left: 20px; }
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.legal-page th, .legal-page td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.legal-page th {
  color: var(--ink);
  font-weight: 600;
  background: var(--bg-section);
}
.legal-page em { color: var(--text-faded); font-style: italic; }

/* ── About page (prose) ──────────────────────────────────── */
.prose-page {
  max-width: var(--max-w-prose);
  padding: 72px 24px;
  margin: 0 auto;
}
.prose-page h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  font-family: var(--serif);
  text-align: center;
}
.prose-page h2 {
  font-size: 1.4rem;
  margin: 36px 0 12px;
  font-family: var(--serif);
}
.prose-page p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 18px;
}
.prose-page strong { color: var(--ink); font-weight: 600; }
.prose-page a {
  color: var(--copper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Success page ────────────────────────────────────────── */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
  background: var(--bg-section);
}
.success-card {
  max-width: 760px;
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 20px 60px -20px rgba(23, 32, 58, 0.2);
  text-align: center;
  border: 1px solid var(--border);
}
.success-card h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  font-family: var(--serif);
}
.success-card .subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
}
.success-icon {
  width: 56px;
  height: 56px;
  color: var(--copper);
  background: var(--copper-soft);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.success-icon svg { width: 28px; height: 28px; }
.full-letter {
  text-align: left;
  background: var(--bg-section);
  padding: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 1rem;
  color: var(--ink);
  font-family: var(--serif);
  min-height: 200px;
}
.copy-btn {
  margin-top: 24px;
  padding: 14px 30px;
  background: var(--ink-soft);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.copy-btn:hover { background: var(--ink-soft-hover); }
.loading-spinner {
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 3px solid var(--border);
  border-top-color: var(--copper);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 404 ──────────────────────────────────────────────────── */
.page-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 40px;
}
.card-404 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 480px;
  box-shadow: 0 14px 40px -20px rgba(23, 32, 58, 0.2);
}
.card-404 .icon {
  color: var(--copper);
  margin-bottom: 18px;
  display: inline-flex;
}
.card-404 .icon svg { width: 44px; height: 44px; }
.card-404 h1 {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.card-404 p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
  .form-grid { grid-template-columns: 1fr; }
  .generator-card { padding: 28px 22px; }
  .pricing-card { padding: 36px 28px; }
  .hero-meta { gap: 14px; }
  .sample-letter { padding: 32px 24px; }
  .stepper-label { font-size: 0.68rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .section-sub { margin-bottom: 40px; }
}
