/* ============================================================
   ToastGhost design system
   Warm, elegant, a little playful — champagne paper, burgundy
   ink accents, Fraunces display serif. Mobile-first.
   ============================================================ */

:root {
  --paper: #faf6ee;
  --paper-deep: #f3ecdd;
  --card: #fffdf8;
  --ink: #2b2520;
  --ink-soft: #5d5347;
  --ink-faint: #8d8172;
  --wine: #7d2a3a;
  --wine-deep: #5e1f2c;
  --gold: #b9862f;
  --gold-soft: #e9d9b8;
  --blush: #f6e3e0;
  --ok: #3f7d54;
  --line: #e6dcc9;
  --shadow: 0 2px 6px rgba(43, 37, 32, 0.06), 0 12px 32px rgba(43, 37, 32, 0.08);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--wine); }
img, svg { max-width: 100%; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 680px; margin: 0 auto; padding: 0 20px; }

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

/* ---------- header ---------- */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.brand-name .ghost-accent { color: var(--wine); }
.head-cta { font-size: 0.95rem; font-weight: 600; text-decoration: none; color: var(--wine); white-space: nowrap; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 34px 0 10px; }
.hero .eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.hero p.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 560px; margin: 0 auto 8px; }
.hero .ghost-hero { margin: 6px auto 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  font-family: var(--font-body); font-weight: 700; font-size: 1.05rem;
  padding: 15px 30px; border-radius: 999px;
  background: var(--wine); color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--wine-deep); transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent; color: var(--wine); box-shadow: none;
  border: 2px solid var(--wine);
}
.btn-ghost:hover { background: var(--blush); }
.btn-quiet { background: transparent; color: var(--ink-soft); box-shadow: none; border: 1px solid var(--line); font-weight: 600; }
.btn-quiet:hover { background: var(--paper-deep); transform: none; }
.btn-block { display: block; width: 100%; }

/* ---------- cards & sections ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
section { padding: 38px 0; }
.section-title { text-align: center; margin-bottom: 26px; }
.section-title .sub { color: var(--ink-soft); max-width: 520px; margin: 0 auto; }

/* ---------- questionnaire form ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-faint); font-size: 0.85rem; }
.field input[type="text"], .field textarea, .field select {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); outline: none; }

.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.choice-row label.chip {
  display: inline-block; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 0.92rem;
  transition: all 0.12s ease;
}
.choice-row input[type="radio"]:checked + label.chip {
  background: var(--wine); border-color: var(--wine); color: #fff;
}
.choice-row input[type="radio"]:focus-visible + label.chip { outline: 3px solid var(--gold); outline-offset: 2px; }

.form-status { margin-top: 10px; font-size: 0.95rem; color: var(--wine); min-height: 1.4em; }

/* ---------- preview result ---------- */
.preview-box { margin-top: 26px; }
.preview-box .preview-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.preview-opening {
  font-family: var(--font-display); font-size: 1.25rem; line-height: 1.45;
  border-left: 3px solid var(--gold); padding-left: 16px; margin: 0 0 16px;
}
.preview-angle { color: var(--ink-soft); font-style: italic; }
.outline-list { list-style: none; padding: 0; margin: 12px 0 0; }
.outline-list li {
  padding: 10px 14px; border: 1px dashed var(--line); border-radius: 10px; margin-bottom: 8px;
  background: var(--paper); font-size: 0.97rem;
}
.outline-list li .beat-n { color: var(--gold); font-weight: 700; margin-right: 8px; }

.locked {
  position: relative; filter: blur(4px); user-select: none; pointer-events: none;
}
.locked-wrap { position: relative; }
.locked-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 16px;
}
.locked-overlay .lock-note { font-weight: 700; background: var(--card); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- pricing ---------- */
.price-line { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 6px 0 2px; }
.price-anchor { color: var(--ink-faint); text-decoration: line-through; font-size: 1.2rem; }
.price-now { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--wine); }
.guarantee { text-align: center; color: var(--ink-soft); font-size: 0.92rem; }
.kit-list { list-style: none; padding: 0; margin: 18px 0; }
.kit-list li { padding: 8px 0 8px 34px; position: relative; }
.kit-list li::before {
  content: "✓"; position: absolute; left: 6px; color: var(--ok); font-weight: 700;
}

/* ---------- trust / faq ---------- */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  color: var(--ink-soft); font-size: 0.92rem; padding: 10px 0 0;
}
details.faq {
  border-bottom: 1px solid var(--line); padding: 14px 4px;
}
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq p { margin: 10px 0 0; color: var(--ink-soft); }

/* ---------- speech document ---------- */
.speech-doc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 5vw, 48px); box-shadow: var(--shadow);
}
.speech-doc h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.speech-doc h2 {
  font-size: 1.35rem; margin-top: 1.8em; padding-bottom: 8px; border-bottom: 2px solid var(--gold-soft);
}
.speech-doc h3 { font-size: 1.05rem; margin-top: 1.4em; color: var(--wine); }
.speech-doc p { font-size: 1.05rem; }
.speech-doc blockquote {
  margin: 1em 0; padding: 14px 20px; background: var(--paper); border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0; font-style: italic;
}
.speech-doc .cue { color: var(--gold); font-weight: 700; font-style: normal; }
.speech-doc ul, .speech-doc ol { padding-left: 24px; }
.speech-doc li { margin-bottom: 6px; }

/* ---------- generation stepper ---------- */
.stepper { list-style: none; padding: 0; margin: 20px 0; }
.stepper li {
  display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--ink-faint);
  font-size: 0.98rem;
}
.stepper li .dot {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem;
  flex: none; background: #fff;
}
.stepper li.active { color: var(--ink); font-weight: 600; }
.stepper li.active .dot { border-color: var(--gold); }
.stepper li.done { color: var(--ink-soft); }
.stepper li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper li.active .dot::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------- tone tweak bar ---------- */
.tweak-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 18px 0; padding: 14px; background: var(--paper-deep);
  border-radius: var(--radius); border: 1px solid var(--line);
}
.tweak-bar .tweak-label { font-weight: 700; font-size: 0.92rem; margin-right: 4px; }

/* ---------- delivery suite ---------- */
.delivery-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
  margin: 18px 0 4px; padding: 16px; background: var(--card);
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.delivery-bar .runtime-note { font-weight: 700; flex-basis: 100%; text-align: center; }
.delivery-bar .runtime-note .rt { color: var(--wine); font-family: var(--font-display); font-size: 1.3rem; }

.podium {
  position: fixed; inset: 0; z-index: 60; background: var(--paper);
  display: flex; flex-direction: column; user-select: none; cursor: pointer;
}
.podium-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; color: var(--ink-faint); font-size: 0.95rem; font-weight: 600;
}
.podium-top button {
  border: 0; background: var(--paper-deep); color: var(--ink); font-size: 1rem;
  border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.podium-card {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 7vw, 3.4rem); line-height: 1.25;
}
.podium-hint { text-align: center; padding: 0 20px 26px; color: var(--ink-faint); font-size: 0.9rem; }

/* ---------- deliverables mock strip ---------- */
.mock-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin: 22px 0 6px;
}
.mock-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 12px; text-align: center;
}
.mock-card .mock-emoji { font-size: 1.6rem; }
.mock-card .mock-lines { margin: 10px auto 8px; display: grid; gap: 5px; max-width: 90px; }
.mock-card .mock-lines i {
  display: block; height: 5px; border-radius: 3px; background: var(--gold-soft);
}
.mock-card .mock-lines i:nth-child(2) { width: 80%; margin: 0 auto; }
.mock-card .mock-lines i:nth-child(3) { width: 60%; margin: 0 auto; }
.mock-card .mock-label { font-size: 0.85rem; font-weight: 700; }
.mock-card .mock-sub { font-size: 0.75rem; color: var(--ink-faint); }

/* ---------- preview scorecard ---------- */
.score-panel {
  margin: 20px 0 4px; padding: 16px; background: var(--paper-deep);
  border-radius: var(--radius); border: 1px solid var(--line);
}
.score-panel .score-title {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 10px;
}
.score-row { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; font-size: 0.97rem; }
.score-row .score-k { font-weight: 700; white-space: nowrap; }
.score-row .score-v { color: var(--ink-soft); }
.score-flag { color: var(--wine); }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 40px;
  color: var(--ink-faint); font-size: 0.9rem; text-align: center;
}
.site-foot a { color: var(--ink-soft); }

/* ---------- utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }
.fade-in { animation: fadeUp 0.45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media print {
  .site-head, .site-foot, .tweak-bar, .no-print { display: none !important; }
  body { background: #fff; }
  .speech-doc { border: 0; box-shadow: none; padding: 0; }
}
