/* Palette sampled from the NamesakeSong logo: cream, charcoal, gold. */
:root {
  --bg: #fbf5e9;          /* logo cream */
  --card: #fffdf8;
  --ink: #23272b;         /* logo charcoal */
  --muted: #6d675e;
  --line: #ebe1cd;
  --accent: #c69a52;      /* logo gold: fills, bars, borders, buttons */
  --accent-dark: #b4853b; /* gold hover */
  --accent-ink: #85621f;  /* gold dark enough to read as text on cream (4.9:1) */
  --on-accent: #23272b;   /* text on gold buttons (5.9:1) */
  --accent-soft: #f6ecd7;
  --good: #4f7a4a;
  --radius: 18px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --brand: 'Outfit', 'DM Sans', system-ui, sans-serif; /* geometric, like the logo wordmark */
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }

.bar { background: var(--ink); color: var(--bg); text-align: center; font-size: 13px; letter-spacing: .04em; padding: 7px 16px; }
.nav { display: flex; justify-content: space-between; align-items: center; max-width: 1080px; margin: 0 auto; padding: 16px; }
.logo { font: 700 23px/1 var(--brand); letter-spacing: -.01em; text-decoration: none; display: flex; gap: 8px; align-items: center; }
.logo img { width: 30px; height: 30px; }
.logo b { color: var(--accent); font-weight: 700; }

.nav-link { color: var(--accent-ink); font-size: 14px; text-decoration: none; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.wide { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.eyebrow { color: var(--accent-ink); font: italic 500 16px var(--serif); margin: 8px 0 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 10px; }
h1 { font-size: clamp(32px, 7vw, 48px); }
h2 { font-size: clamp(26px, 5vw, 36px); }
.sub { color: var(--muted); margin: 0 auto 22px; max-width: 420px; }

/* quiz */
.quiz { background: var(--card); border: 1.5px solid var(--accent); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(198,154,82,.16); overflow: hidden; }
.quiz-progress { height: 5px; background: var(--line); }
.quiz-progress span { display: block; height: 100%; width: 16%; background: var(--accent); transition: width .35s ease; }
.quiz-meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent-ink); padding: 12px 18px 0; text-transform: uppercase; }
.step { display: none; padding: 18px 22px 24px; }
.step.active { display: block; animation: rise .3s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.step h3 { font-size: 22px; margin-bottom: 4px; }
.hint { color: var(--muted); font-size: 14px; margin: 0 0 14px; font-style: italic; }
.label { font-weight: 600; margin: 18px 0 8px; display: block; }
.options { display: grid; gap: 8px; }
.options.two { grid-template-columns: 1fr 1fr; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--card); font: inherit; color: inherit; text-align: left; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--accent); }
.opt::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--accent-ink); }
.opt.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.opt.on::before { background: var(--ink); box-shadow: inset 0 0 0 4px var(--accent); border-color: var(--ink); }
input, textarea, select { width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
.row { display: flex; gap: 10px; margin-top: 20px; }
.btn { appearance: none; border: 0; cursor: pointer; font: 700 16px var(--sans); padding: 15px 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent); text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; transition: background .15s, transform .1s; }
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--line); }
.btn.block { width: 100%; }
.err { color: #b3261e; font-size: 14px; margin-top: 10px; min-height: 1em; }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 18px 0 8px; font-size: 14px; color: var(--muted); }
.trust span::before { content: '✓ '; color: var(--good); font-weight: 700; }

/* sections */
section { padding: 56px 0; }
.steps3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 26px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.num { font: 600 13px var(--sans); color: var(--accent-ink); letter-spacing: .1em; }
.reviews { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 24px; }
.stars { color: var(--accent); letter-spacing: 2px; }
.placeholder-note { font-size: 12px; color: var(--muted); background: #fff7d6; border: 1px dashed #e0c25a; padding: 6px 10px; border-radius: 8px; display: inline-block; margin-top: 10px; }
.cta-band { background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 40px 22px; text-align: center; }
.cta-band p { color: #d8cfbf; }
footer { color: var(--muted); font-size: 13px; text-align: center; padding: 30px 16px 50px; }

/* wait page */
.progress-card { padding: 16px 18px; }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.progress-head .pct { font: 600 26px var(--serif); font-variant-numeric: tabular-nums; }
.big-bar { height: 12px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.big-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c69a52, #b4853b); border-radius: 99px; transition: width .8s ease; }
.stages { list-style: none; padding: 0; margin: 18px 0 0; text-align: left; display: grid; gap: 8px; }
.stages li { color: var(--muted); display: flex; gap: 10px; align-items: center; }
.stages li::before { content: '○'; width: 18px; text-align: center; }
.stages li.doing { color: var(--ink); font-weight: 600; }
.stages li.doing::before { content: '◐'; color: var(--accent-ink); animation: spin 1s linear infinite; }
.stages li.done { color: var(--good); }
.stages li.done::before { content: '✓'; }
@keyframes spin { to { transform: rotate(360deg); } }
/* ---- waiting screen: logo, two-line headline, square video, progress card, preview note ---- */
.nav-center { justify-content: center; border-bottom: 1px solid var(--line); max-width: 608px; padding: 14px 16px; }
.wait-head { text-align: center; font: 700 clamp(23px, 6.4vw, 34px)/1.22 var(--serif); letter-spacing: -.01em; margin: 26px 0 20px; }
.wait-head-accent { color: var(--accent-ink); }
.wait-video { position: relative; border-radius: 20px; overflow: hidden; background: var(--ink); box-shadow: 0 14px 40px rgba(35,39,43,.18); aspect-ratio: 1 / 1; max-height: calc(100svh - 330px); min-height: 240px; margin: 0 auto; }
.wait-video video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.tap-sound { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); border: 0; cursor: pointer; background: rgba(35,39,43,.82); color: var(--bg); font: 700 15px var(--sans); padding: 11px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.25); animation: nudge 2s ease-in-out infinite; white-space: nowrap; }
@keyframes nudge { 50% { transform: translateX(-50%) scale(1.05); } }
.wait-progress { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 22px 18px; margin-top: 18px; }
.wait-progress-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 500; font-size: 16px; letter-spacing: .01em; }
.wait-pct { color: var(--accent-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.wait-progress .big-bar { height: 10px; margin: 14px 0 0; }
.wait-note { display: block; width: 100%; margin: 16px 0 8px; padding: 18px 20px; border-radius: 16px; background: var(--accent-soft); border: 1px solid #ecdcb8; color: var(--accent-ink); font: 500 17px/1.55 var(--sans); letter-spacing: .01em; text-align: center; cursor: default; }
.wait-note:disabled { opacity: 1; }
.wait-note.is-ready { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; cursor: pointer; animation: nudge-y 1.6s ease-in-out infinite; }
@keyframes nudge-y { 50% { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(198,154,82,.35); } }

/* Sized so the video and the progress card fit on one phone screen together. */
.video-slot { height: clamp(220px, calc(100svh - 400px), 460px); aspect-ratio: 9/14; max-width: 100%; margin: 0 auto 14px; background: var(--ink); border-radius: var(--radius); display: grid; place-items: center; color: #cfc6b6; font-size: 13px; padding: 16px; text-align: center; }
#waiting .sub { margin-bottom: 14px; }
/* Phones: show just the current step next to the percentage; the full checklist on bigger screens. */
@media (max-width: 700px), (max-height: 820px) { #stages { display: none; } }

/* preview / offer */
.player { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: 0 10px 40px rgba(35,39,43,.08); }
.play { width: 76px; height: 76px; border-radius: 50%; background: var(--ink); color: var(--accent); border: 0; cursor: pointer; display: inline-grid; place-items: center; margin: 10px 0; box-shadow: 0 8px 24px rgba(35,39,43,.28); }
.play svg { width: 30px; height: 30px; }
.scrub { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.scrub span { display: block; height: 100%; width: 0; background: var(--accent); }
.times { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.verse { white-space: pre-line; font: italic 17px/1.6 var(--serif); margin: 18px 0 0; color: #3d3a35; }
.offer-tag { background: var(--accent-soft); color: var(--accent-ink); border-radius: 12px; padding: 12px 16px; font-size: 14px; margin: 22px 0 14px; text-align: center; }
.offer-tag b { font-variant-numeric: tabular-nums; }
.tier { display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; margin-bottom: 10px; position: relative; width: 100%; font: inherit; color: inherit; text-align: left; }
.tier.on { border-color: var(--accent); background: #fffaf0; }
.tier .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--accent-ink); flex: none; }
.tier.on .radio { box-shadow: inset 0 0 0 4px #fffaf0; background: var(--ink); border-color: var(--ink); }
.tier .t-body { flex: 1; }
.tier .t-title { font-weight: 700; }
.tier .t-sub { font-size: 13px; color: var(--muted); }
.tier .t-price { font: 700 22px var(--sans); }
.badge { position: absolute; top: -10px; left: 16px; background: var(--ink); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; }
.bump { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px dashed var(--accent); border-radius: 14px; background: var(--card); margin: 4px 0 16px; cursor: pointer; }
.bump input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.perks { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 12px; }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 18px; }
.compare div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; font-size: 14px; }
.compare div.win { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.compare .em { font-size: 26px; display: block; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
details p { color: var(--muted); margin: 10px 0 0; }
.sticky-cta { position: sticky; bottom: 0; padding: 12px 0 16px; background: linear-gradient(transparent, var(--bg) 30%); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 14px; max-width: calc(100% - 32px); z-index: 10; }
