/* Site drafts — one stylesheet for both drafts and the chooser.
   Mobile-first (390 px), system fonts only, no external assets. Colors follow the hub theme of site/style.css.
   Every tap target is at least 44 px tall (buttons 52 px, chips 44 px, fields 52 px). */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg: #FFF8F1;
  --bg-2: #FBEEE2;
  --paper: #FFFFFF;
  --ink: #2A1E1B;
  --ink-2: #57453F;
  --muted: #6B5850;
  --line: #EEDFD2;
  --line-2: #DCC8B8;
  --accent: #D1472F;
  --accent-dk: #B23A25;
  --accent-soft: #FCE4DA;
  --accent-text: #B53D27;
  --hl: #FFE3A3;
  --ok: #1F7A4D;
  --err: #B3261E;
  --ex-bg: #FFF1B8;
  --ex-ink: #5E4300;
  --ex-line: #B38A12;
  --r: 18px;
  --r-sm: 12px;
}

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--sans); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 10px; letter-spacing: -.01em; }
h1 { font-size: 2rem; font-weight: 650; }
h2 { font-size: 1.45rem; font-weight: 650; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 12px; }
a { color: var(--accent-text); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 18px; }
.draft-bar { background: #2A1E1B; color: #FCEFE6; font-size: .8rem; text-align: center; padding: 7px 12px; }
.draft-bar b { color: #F9C9A0; }
.draft-bar a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; margin: -7px 0; }
.top { display: flex; align-items: center; gap: 10px; min-height: 56px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font: 650 1.1rem/1 var(--serif); color: var(--ink); text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
.top .spacer { flex: 1; }
.top .price-pill { font-size: .85rem; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }

/* placeholders and examples */
.ph { display: inline-block; padding: 1px 6px; border-radius: 4px; background: var(--ex-bg); color: var(--ex-ink); font-size: .8rem; font-weight: 600; }
.example { position: relative; border: 1.5px dashed var(--ex-line); background: #FFFBEA; border-radius: var(--r-sm); padding: 12px 14px; }
.example .ph { margin-bottom: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font: 700 1.05rem/1.2 var(--sans); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--accent-dk); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: var(--paper); color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .95rem; }
.btn-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--accent-text); font: 600 1rem/1.2 var(--sans); text-decoration: underline; cursor: pointer; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font-size: 1.4rem; }
.icon-btn:hover { background: var(--bg-2); }

/* form */
.field { margin: 0 0 16px; }
.label { display: block; font-weight: 700; margin: 0 0 6px; }
.hint { display: block; color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.input, .textarea, .select { display: block; width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink); font: 400 1.05rem/1.4 var(--sans); }
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.input.bad, .textarea.bad { border-color: var(--err); }
.err { color: var(--err); font-size: .92rem; margin: 6px 0 0; min-height: 0; }
/* closed mode: "opening soon" in place of the name voice (voice.js) — a note, not an error */
.soon { color: var(--ink-2); background: var(--bg-2); border-radius: 10px; padding: 10px 12px; font-size: .95rem; margin: 8px 0 0; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 10px 0; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--accent); }

/* chips and cards */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line-2); border-radius: 999px;
  background: var(--paper); color: var(--ink); font: 600 .95rem/1.2 var(--sans); cursor: pointer; text-align: left; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.chip.phrase { border-style: dashed; font-weight: 500; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 12px 14px; border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: 700 1rem/1.25 var(--sans); text-align: left; cursor: pointer; }
.card-opt small { font-weight: 400; color: var(--muted); font-size: .875rem; } /* polish Result 5: ≥ 14 px */
.card-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 0 0 16px; }
.section { padding: 22px 0; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 8px; }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.trust { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: .95rem; color: var(--ink-2); }
.trust li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.steps3 { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps3 li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps3 li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; min-height: 52px; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--accent-text); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); }
.more { border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); padding: 0 14px; background: var(--paper); }
.more summary { font-weight: 600; color: var(--accent-text); }
.more[open] { padding-bottom: 12px; }

/* quiz (draft B) */
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.stepline { font-size: .88rem; color: var(--muted); margin: 8px 0 14px; }
.q-foot { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 22%); padding: 22px 0 14px; }
.q-foot .note { text-align: center; font-size: .85rem; color: var(--muted); margin: 8px 0 0; }

/* writing screen */
.writing { text-align: center; padding: 36px 0 20px; }
.spinner { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; border: 5px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.w-steps { list-style: none; padding: 0; margin: 16px auto 0; max-width: 320px; text-align: left; display: grid; gap: 8px; }
.w-steps li { color: var(--muted); }
.w-steps li.done { color: var(--ok); }
.w-steps li.done::before { content: "✓ "; font-weight: 700; }
.w-steps li.now { color: var(--ink); font-weight: 700; }
.w-steps li:not(.done)::before { content: "• "; }

/* preview */
.song-head { display: flex; gap: 14px; align-items: center; margin: 0 0 14px; }
.cover { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(155deg, #F08A6E, #B23A25); color: #fff; font-size: 1.8rem; }
.song-head h2 { margin: 0 0 2px; }
.song-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.player { display: flex; align-items: center; gap: 14px; background: #2A1E1B; color: #FCEFE6; border-radius: var(--r); padding: 14px 16px; }
.play { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border: 0; border-radius: 50%; background: #F9C9A0; color: #2A1E1B; font-size: 1.4rem; cursor: pointer; }
.track { flex: 1; }
.bar { height: 6px; border-radius: 3px; background: rgba(252, 239, 230, .25); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: #F9C9A0; }
.time { display: flex; justify-content: space-between; font-size: .8rem; opacity: .85; margin-top: 6px; }
.lyrics { margin: 16px 0 0; font: 400 1.05rem/1.6 var(--serif); }
.lyrics h3 { font: 700 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 16px 0 6px; }
.lyrics .ln { padding: 1px 6px; margin: 0 -6px; border-radius: 6px; }
.lyrics .ln.now { background: var(--accent-soft); }
mark { background: var(--hl); color: inherit; border-radius: 3px; padding: 0 2px; }
.buybar { position: sticky; bottom: 0; z-index: 5; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 18px 12px; box-shadow: 0 -6px 18px rgba(90, 45, 25, .08); }
.buybar .wrap { padding: 0; }
.buybar .note { text-align: center; font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.ai-note { background: var(--bg-2); border-radius: var(--r-sm); padding: 14px 16px; font-size: .95rem; color: var(--ink-2); }
.ai-note h3 { font-family: var(--sans); font-size: 1rem; }
.add-detail { border: 1.5px solid var(--accent-soft); background: #FFFDFB; }
.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: var(--hl); } to { background: transparent; } }

/* checkout */
.co-sum { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.bump { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin: 12px 0 0; border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); background: var(--paper); cursor: pointer; min-height: 44px; }
.bump input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent); }
.bump b { display: block; }
.bump span span { display: block; color: var(--ink-2); font-size: .92rem; margin-top: 4px; }
.bump:has(input:checked) { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.lines { margin: 14px 0 0; border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 4px; color: var(--ink-2); }
.lines div { display: flex; justify-content: space-between; }
.total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.15rem; margin-top: 8px; }
.nosub { color: var(--ok); font-weight: 600; font-size: .95rem; margin: 10px 0 0; }
.refund { color: var(--ink-2); font-size: .92rem; margin: 6px 0 0; }
.xp { display: grid; gap: 10px; margin: 0 0 14px; }
.xp .btn { background: #000; }
.xp .btn.gp { background: #fff; color: #000; border: 1.5px solid #000; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; margin: 6px 0 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fine { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* thank you */
.big-ok { display: grid; place-items: center; width: 72px; height: 72px; margin: 10px auto 14px; border-radius: 50%; background: #DDF1E6; color: var(--ok); font-size: 2.2rem; font-weight: 800; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 50; max-width: 92vw; background: #2A1E1B; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: .92rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }

footer.foot { padding: 26px 0 40px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); margin-top: 20px; }
/* polish (Results 5, 6; site-drafts/merge/type-draft.css:7-10): the quiz footer at 14 px, its links 44×44 tap targets */
body footer.foot.wrap { font-size: .875rem; }
body footer.foot.wrap a, body footer.foot.wrap .btn-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: .875rem; }
body footer.foot.wrap p { margin: 4px 0; }

/* draft A: blocks that open after the name */
.reveal { animation: rise .35s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* chooser page */
.choice-card { display: block; padding: 18px; margin: 0 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--paper); color: var(--ink); text-decoration: none; }
.choice-card:hover { border-color: var(--accent); }
.choice-card h2 { margin-bottom: 6px; }
.choice-card ul { margin: 8px 0 12px; padding-left: 20px; color: var(--ink-2); }
.choice-card .btn { pointer-events: none; }

@media (min-width: 720px) {
  h1 { font-size: 2.5rem; }
  .wrap { padding: 0 24px; }
}

/* ===== quiz look 4 (landings-quiz-video, owner 2026-09-30): the draft's look `?qv=4` of site-drafts/merge/quiz-draft.css,
   every rule it uses (site-drafts/merge/README.md, "Quiz look 4"), shown without a switch. The draft keyed them on
   body[data-qv] and body[data-qd-<part>]; here they are keyed on body[data-page="quiz"], which the quiz page always
   carries, so each rule keeps the weight it had in the draft. The markup is in quiz.html and js/quiz-look.js. ===== */
.logo .heart { fill: #D1472F; } /* the brand mark: one terracotta on every page (Vitaly, 29.09) */

/* ----- shared by every look of the draft ----- */
.qd-songtop { display: none; }
body[data-page="quiz"] #view-quiz[hidden] ~ .qd-songtop { display: flex; }
body[data-page="quiz"] .top .price-pill, body[data-page="quiz"] .progress { display: none; }
body[data-page="quiz"] .logo svg { width: 28px; height: 28px; flex: none; }
body[data-page="quiz"] .qd-logo-text { font: 650 1.05rem/1 var(--serif); }

/* the quiz fills the screen: Continue sits at the bottom, the legal footer below the fold */
body[data-page="quiz"] #view-quiz main { display: flex; flex-direction: column; min-height: calc(100svh - 56px); }
body[data-page="quiz"] #view-quiz .q-foot { margin-top: auto; }
body[data-page="quiz"] #song, body[data-page="quiz"] #checkout { min-height: calc(100svh - 56px); }
/* the preview's buy dock sits at the bottom of the screen even when the lyrics are short */
body[data-page="quiz"] #song { display: flex; flex-direction: column; }
body[data-page="quiz"] #song-ready { flex: 1; display: flex; flex-direction: column; }

body[data-page="quiz"] .qd-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
body[data-page="quiz"] .qd-prog { flex: 1; display: flex; gap: 6px; }
body[data-page="quiz"] .qd-prog i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); transition: background .3s; }
body[data-page="quiz"] .qd-prog i.on { background: var(--accent); }
body[data-page="quiz"] .stepline { margin: 0; white-space: nowrap; font-weight: 600; font-size: .875rem; }
body[data-page="quiz"] [data-step] h1 { font-size: 1.65rem !important; margin-bottom: 14px; }

/* occasion tiles: an icon and the caption */
body[data-page="quiz"] #occasions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
body[data-page="quiz"] #occasions .chip { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px;
  min-height: 78px; padding: 10px 4px; border-radius: var(--r-sm); font-size: .92rem; line-height: 1.15; }
body[data-page="quiz"] .qd-ic { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body[data-page="quiz"] #occasions .chip[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); }
body[data-page="quiz"] #occasions .chip[aria-pressed="true"] .qd-ic { fill: #fff; }

/* "Hear how we'll sing it" as a soft pill, not an underlined link */
body[data-page="quiz"] [data-voice-hear] { margin-top: 10px; padding: 0 16px 0 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); text-decoration: none; font-size: .98rem; }
/* the name voice's own play control (voice.js, name-voice-fix): the preview card's round ▶ in small, a thin ring filled by
   the clip's progress (--nv-p, 0…1), a spinning ring while loading, ⏸ while playing; no native player */
body[data-page="quiz"] #name-voice .nv { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
body[data-page="quiz"] #name-voice .chip.nv { padding-left: 7px; }
body[data-page="quiz"] #name-voice [data-voice-own-hear] { margin-top: 6px; padding: 0 12px 0 6px; }
body[data-page="quiz"] #name-voice .nv-c { position: relative; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); }
body[data-page="quiz"] #name-voice .nv-c::before { content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--nv-p, 0) * 1turn), rgba(209, 71, 47, .22) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); }
body[data-page="quiz"] #name-voice [data-nv="loading"] .nv-c::before { background: conic-gradient(var(--accent) .3turn, rgba(209, 71, 47, .22) 0); animation: spin .9s linear infinite; }
body[data-page="quiz"] #name-voice [data-nv="loading"] .nv-i { opacity: .6; }
body[data-page="quiz"] #name-voice .nv-i { width: 15px; height: 15px; fill: #fff; }
body[data-page="quiz"] #name-voice .nv-ip { margin-left: 2px; }
body[data-page="quiz"] #name-voice .nv-ipa, body[data-page="quiz"] #name-voice [data-nv="playing"] .nv-ip { display: none; }
body[data-page="quiz"] #name-voice [data-nv="playing"] .nv-ipa { display: block; }

/* step 2: ideas in one swipeable row */
body[data-page="quiz"] #topics { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -18px; padding-right: 18px; }
body[data-page="quiz"] #topics::-webkit-scrollbar { display: none; }
body[data-page="quiz"] #topics .chip { flex: none; }
body[data-page="quiz"] .textarea { min-height: 96px; }

/* step 3: the ▶ of samples.js in the brand colour, in the corner of its card */
body[data-page="quiz"] .card-opt { position: relative; padding-right: 58px; min-height: 60px; justify-content: center; }
body[data-page="quiz"] .sample-play { position: absolute; right: 8px; top: 8px; margin: 0 !important; width: 44px; height: 44px; padding: 0;
  border: 0 !important; border-radius: 50% !important; background: var(--accent-soft) !important; color: var(--accent-text); font-size: .9rem !important; }
body[data-page="quiz"] .card-opt[aria-pressed="true"] .sample-play { background: var(--paper) !important; }
body[data-page="quiz"] .sample-play[aria-pressed="true"] { background: var(--accent) !important; color: #fff; }
body[data-page="quiz"] .sample-caption { font-size: .92rem; }
body[data-page="quiz"] [data-step="3"] h2 { margin-top: 14px !important; }

body[data-page="quiz"] .q-foot { padding: 18px 0 12px; }
body[data-page="quiz"] .q-foot .note { font-size: .875rem; text-wrap: balance; }
body[data-page="quiz"] .toast { bottom: calc(128px + env(safe-area-inset-bottom)); }

/* ---------- writing ---------- */
body[data-page="quiz"] #song-writing { text-align: center; padding: 40px 0 0; }
body[data-page="quiz"] .qd-eq { display: flex; justify-content: center; align-items: flex-end; gap: 6px; height: 56px; margin: 0 auto 22px; }
body[data-page="quiz"] .qd-eq i { width: 9px; height: 100%; border-radius: 5px; background: var(--accent); transform-origin: bottom; animation: qdEq 1.1s ease-in-out infinite; }
body[data-page="quiz"] .qd-eq i:nth-child(2) { animation-delay: -.3s; } body[data-page="quiz"] .qd-eq i:nth-child(3) { animation-delay: -.6s; }
body[data-page="quiz"] .qd-eq i:nth-child(4) { animation-delay: -.15s; } body[data-page="quiz"] .qd-eq i:nth-child(5) { animation-delay: -.8s; }
@keyframes qdEq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* ---------- preview: the "Hear it free" card ---------- */
body[data-page="quiz"] #song { padding-top: 4px; }
body[data-page="quiz"] .qd-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 18px 18px 8px; box-shadow: 0 12px 30px rgba(90, 45, 25, .10); }
body[data-page="quiz"] .qd-eyebrow { display: inline-block; margin: 0 0 10px; padding: 4px 10px; border-radius: 999px; background: #FFD86B; color: #2A1E1B;
  font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
body[data-page="quiz"] #song-title { font-size: 1.6rem !important; margin: 0 0 12px; }
body[data-page="quiz"] #song-audio { display: none; }
body[data-page="quiz"] .qd-player { display: flex; align-items: center; gap: 14px; }
body[data-page="quiz"] .qd-play { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border: 0; border-radius: 50%; background: var(--accent); cursor: pointer;
  box-shadow: 0 6px 16px rgba(209, 71, 47, .35); }
body[data-page="quiz"] .qd-pi { width: 26px; height: 26px; fill: #fff; }
body[data-page="quiz"] .qd-play .qd-pi { margin-left: 2px; }
body[data-page="quiz"] .qd-track { flex: 1; min-width: 0; }
body[data-page="quiz"] .qd-wave { display: flex; align-items: center; gap: 2px; height: 44px; cursor: pointer; }
body[data-page="quiz"] .qd-wave i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--line-2); }
body[data-page="quiz"] .qd-wave i.on { background: var(--accent); }
body[data-page="quiz"] .qd-time { display: flex; justify-content: space-between; font: 600 .875rem/1 var(--sans); color: var(--muted); margin-top: 2px; }
/* preview-lyrics: under the player — what the preview plays (L1) and where each added detail went (L4) */
body[data-page="quiz"] #song-about { margin: 12px 0 10px; }
body[data-page="quiz"] #song-plays { margin: 0; font-size: .92rem; color: var(--ink-2); }
body[data-page="quiz"] .song-added-line { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); font-size: .92rem; font-weight: 600; }
/* lyrics-block (owner 2026-10-08): the song's whole text under the player, closed by default — the bold "Full lyrics"
   row with an arrow opens it; a thin "Preview ends here" line after the last section the preview sings */
body[data-page="quiz"] #song-lyrics { margin: 12px 0 6px; padding: 0 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
body[data-page="quiz"] #song-lyrics .lyrics-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left; }
body[data-page="quiz"] #song-lyrics .lyrics-head { font: 700 1.1rem/1.3 var(--serif); }
body[data-page="quiz"] #song-lyrics .lyrics-arrow { flex: none; width: 10px; height: 10px; margin: 0 4px 4px 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
body[data-page="quiz"] #song-lyrics .lyrics-toggle[aria-expanded="true"] .lyrics-arrow { margin-bottom: -4px; transform: rotate(-135deg); }
body[data-page="quiz"] #song-lyrics-body { padding: 0 0 14px; border-top: 1px solid var(--line); }
body[data-page="quiz"] #song-lyrics .lyrics:first-child { margin-top: 12px; }
body[data-page="quiz"] #song-lyrics .lyrics-ends { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font: 600 .8rem/1.2 var(--sans); color: var(--muted); }
body[data-page="quiz"] #song-lyrics .lyrics-ends::before, body[data-page="quiz"] #song-lyrics .lyrics-ends::after { content: ""; flex: 1; border-top: 1px solid var(--line-2); }
@media (prefers-reduced-motion: reduce) { body[data-page="quiz"] #song-lyrics .lyrics-arrow { transition: none; } }
body[data-page="quiz"] #song-lyrics .lyrics strong { font: 700 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
body[data-page="quiz"] #song-lyrics .lyrics-played { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #FFD86B; color: #2A1E1B; font: 700 .75rem/1.3 var(--sans); vertical-align: 1px; }
body[data-page="quiz"] #song-lyrics mark { background: var(--hl); font-weight: 700; padding: 0 3px; }
body[data-page="quiz"] #song-lyrics .lyrics-added { display: inline-block; margin: 1px -8px; padding: 0 8px; border-left: 3px solid var(--accent); border-radius: 4px; background: var(--accent-soft); }
body[data-page="quiz"] #song-lyrics .lyrics-note { margin: 4px 0 0; font: 600 .875rem/1.3 var(--sans); color: var(--accent-text); }
/* "Update my song" pressed: the progress line under the form */
body[data-page="quiz"] #song-updating { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); color: var(--ink); font-size: .95rem; text-align: center; }
body[data-page="quiz"] #song-updating[hidden] { display: none; }

body[data-page="quiz"] #song-update { margin-top: 16px; }
body[data-page="quiz"] .qd-more { background: var(--paper); color: var(--accent-text); border: 1.5px solid var(--accent); }
body[data-page="quiz"] .qd-more:hover { background: var(--accent-soft); }
body[data-page="quiz"] #song-left { text-align: center; font-size: .875rem; color: var(--muted); margin: 6px 0 0; }
body[data-page="quiz"] #song-left::before { content: "Free updates: "; }
body[data-page="quiz"] #song-more-form { margin-top: 10px; }
body[data-page="quiz"] #song-update-go { width: 100%; margin-top: 10px; }
/* name-resing: "Name sounds wrong?" above the update block, in its look */
body[data-page="quiz"] #song-resing { margin-top: 16px; }
body[data-page="quiz"] #song-resing-left, body[data-page="quiz"] #song-resing-note, body[data-page="quiz"] #song-resing-none { text-align: center; font-size: .875rem; color: var(--muted); margin: 6px 0 0; }
body[data-page="quiz"] #song-resing-form { margin-top: 10px; }
body[data-page="quiz"] #song-resing-intro { margin: 0 0 10px; }
body[data-page="quiz"] #song-resing-go { width: 100%; margin-top: 10px; }

body[data-page="quiz"] .qd-dock { position: sticky; bottom: 0; z-index: 5; margin: auto -18px 0; top: auto; padding: 12px 18px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 248, 241, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(90, 45, 25, .06); }
body[data-page="quiz"] .qd-dock #song-buy { width: 100%; }
body[data-page="quiz"] .qd-price { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-weight: 800; }
body[data-page="quiz"] .qd-dock #song-ai { text-align: center; margin: 8px 0 0; font-size: .875rem; text-wrap: balance; }
body[data-page="quiz"] .qd-buynote { text-align: center; font-size: .875rem; color: var(--muted); margin: 2px 0 0; }
/* remake-offer: "$31.20 with your code · good through …" under "Get the full song" */
body[data-page="quiz"] .qd-offer { text-align: center; font-size: .875rem; font-weight: 700; color: var(--accent-text); margin: 6px 0 0; text-wrap: balance; }
body[data-page="quiz"] #song-buy[hidden] ~ .qd-offer { display: none; }

/* checkout: "Close — back to my song" is a way back, not the main button */
body[data-page="quiz"] #checkout-close { min-height: 44px; padding: 8px 16px; font-size: .95rem; background: var(--paper); color: var(--ink); border: 1.5px solid var(--line-2); margin-top: 4px; }

/* ----- steps 2 and 3 of look 2: fewer words ("rows") ----- */
body[data-page="quiz"] .logo { min-width: 44px; justify-content: center; }
body[data-page="quiz"] .sample-caption { display: none; }
body[data-page="quiz"] [data-step="2"] h1, body[data-page="quiz"] [data-step="3"] h1 { font-size: 1.95rem !important; }
body[data-page="quiz"] [data-step="2"] #topics + .hint { display: none; }
/* story-hints (owner 10.10): the line above the story field and the tapped hint's example under it */
body[data-page="quiz"] #story-plenty { margin: 12px 0 0; }
body[data-page="quiz"] #story-eg { margin: 6px 2px 0; }
/* style: one row each — ▶, name, a short line */
body[data-page="quiz"] #styles { grid-template-columns: 1fr; gap: 8px; }
body[data-page="quiz"] #styles .card-opt { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; min-height: 60px; padding: 8px 14px 8px 8px; }
body[data-page="quiz"] #styles .sample-play { position: static; grid-column: 1; grid-row: 1 / span 2; }
body[data-page="quiz"] #styles .card-opt small { grid-column: 2; grid-row: 2; font-size: .875rem; }
/* voice: a two-way toggle, ▶ inside each half */
body[data-page="quiz"] #voices { gap: 0; padding: 4px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--paper); }
body[data-page="quiz"] #voices .card-opt { flex-direction: row; align-items: center; justify-content: space-between; min-height: 52px; padding: 4px 4px 4px 16px; border: 0; border-radius: 999px; }
body[data-page="quiz"] #voices .card-opt[aria-pressed="true"] { box-shadow: none; }
body[data-page="quiz"] #voices .sample-play { position: static; }
/* flavor-play: each flavor's ▶ sits beside its chip in the chips row, in the flow like the voice cards' ▶ */
body[data-page="quiz"] #flavors .sample-play { position: static; }

/* ----- the journey header and the tinted tiles of look 3 ----- */
body[data-page="quiz"] .qd-head { flex-wrap: wrap; row-gap: 8px; }
body[data-page="quiz"] .qd-journey { flex-basis: 100%; display: flex; list-style: none; margin: 0; padding: 0; }
body[data-page="quiz"] .qd-journey li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: .875rem; line-height: 1.2; color: var(--muted); text-wrap: balance; }
body[data-page="quiz"] .qd-journey li:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 10px); }
body[data-page="quiz"] .qd-journey i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line-2); font: 700 .9rem/1 var(--serif); font-style: normal; }
body[data-page="quiz"] .qd-journey li.on { color: var(--ink); font-weight: 700; }
body[data-page="quiz"] .qd-journey li.on i { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
body[data-page="quiz"] .qd-journey li.done i { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-text); font-size: 0; }
body[data-page="quiz"] .qd-journey li.done i::after { content: "\2713"; font: 700 .9rem/1 var(--sans); }
body[data-page="quiz"] .qd-songtop { flex-wrap: wrap; padding-bottom: 8px; }
body[data-page="quiz"] .qd-songtop .qd-journey { margin-top: 2px; }
body[data-page="quiz"] .qd-prog i { height: 4px; }
/* tinted tiles, two columns */
body[data-page="quiz"] #occasions { grid-template-columns: 1fr 1fr; }
body[data-page="quiz"] #occasions .chip { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 54px; padding: 8px 12px; gap: 10px; border: 0; font-size: 1rem; }
body[data-page="quiz"] #occasions .chip:nth-child(3n+1) { background: var(--accent-soft); }
body[data-page="quiz"] #occasions .chip:nth-child(3n+2) { background: #F8EACB; }
body[data-page="quiz"] #occasions .chip:nth-child(3n) { background: var(--bg-2); }
body[data-page="quiz"] #occasions .qd-ic { width: 30px; height: 30px; }
body[data-page="quiz"] #occasions .chip[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(209, 71, 47, .3); }
body[data-page="quiz"] #occasions .chip[aria-pressed="true"] .qd-ic { stroke: #fff; fill: none; }

@media (prefers-reduced-motion: reduce) { body[data-page="quiz"] .qd-eq i { animation: none; } }
@media (min-width: 720px) { body[data-page="quiz"] [data-step] h1 { font-size: 2rem !important; } }
@media (min-width: 720px) { body[data-page="quiz"] .qd-dock { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; } }

/* one main button at a time on the preview: while the detail field is open (js/quiz-look.js puts .qd-detail-open on
   #song-ready), "Update my song" is the only filled button — "Get the full song $39" turns outlined, "Add one more
   detail — free" hides, and the dock stops floating so it never covers the field; back when the updated song arrives */
body[data-page="quiz"] #song-ready.qd-detail-open .qd-dock { position: static; }
body[data-page="quiz"] #song-ready.qd-detail-open #song-buy { background: var(--paper); color: var(--accent-text); border: 1.5px solid var(--accent); }
body[data-page="quiz"] #song-ready.qd-detail-open #song-buy .qd-price { background: var(--accent-soft); }
body[data-page="quiz"] #song-ready.qd-detail-open #song-more { display: none; }
/* name-resing: the same while the spelling field is open — "Sing it again — free" is the only filled button */
body[data-page="quiz"] #song-ready.qd-resing-open .qd-dock { position: static; }
body[data-page="quiz"] #song-ready.qd-resing-open #song-buy { background: var(--paper); color: var(--accent-text); border: 1.5px solid var(--accent); }
body[data-page="quiz"] #song-ready.qd-resing-open #song-buy .qd-price { background: var(--accent-soft); }
body[data-page="quiz"] #song-ready.qd-resing-open #song-resing-open { display: none; }
/* the terms line under "Get the full song" goes with the button (a credit song has neither) */
body[data-page="quiz"] #song-buy[hidden] ~ .qd-buynote { display: none; }

/* ===== after-pay (Results 4 and 5, owner 2026-09-30): the waiting and error states and our part around Stripe's frame in
   look 4 — site-drafts/merge/quiz-draft.css, sections "4 only: error and waiting states" and "checkout (look 4)", keyed on
   body[data-page="quiz"] instead of the draft's body[data-qv="4"]; the markup is js/quiz-look.js's (states, markCheckout).
   Every message keeps preview.js / core.js / voice.js / checkout.js wording. ===== */
/* ----- error and waiting states -----
   Every message keeps preview.js / core.js / voice.js / checkout.js wording; these rules only place and colour it.
   The state screens are one white card with a round icon, the one next action under the text. */
body[data-page="quiz"] {
  --qd-i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 6.5 12 13l8.5-6.5'/%3E%3C/svg%3E");
  --qd-i-again: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 12a7.5 7.5 0 1 1-2.2-5.3'/%3E%3Cpath d='M19.5 4v4h-4'/%3E%3C/svg%3E");
  --qd-i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5M12 7.6v.2'/%3E%3C/svg%3E");
  --qd-i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5.5c0 4.6-3.2 7.7-7 9.5-3.8-1.8-7-4.9-7-9.5V6z'/%3E%3Cpath d='M9 12.2l2.2 2.2L15.3 10'/%3E%3C/svg%3E");
  --qd-i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.4v.2'/%3E%3C/svg%3E");
  --qd-err-bg: #FDECE8;
}
body[data-page="quiz"] #song-busy, body[data-page="quiz"] #song-message, body[data-page="quiz"] #song-challenge {
  margin: 28px 0 0; padding: 26px 20px 22px; text-align: center; background: var(--paper); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: 0 12px 30px rgba(90, 45, 25, .10); }
body[data-page="quiz"] .qd-sic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent-soft); }
body[data-page="quiz"] .qd-sic::before { content: ""; width: 30px; height: 30px; background: var(--accent-text); -webkit-mask: var(--qd-i-info) center / contain no-repeat; mask: var(--qd-i-info) center / contain no-repeat; }
body[data-page="quiz"] #song-busy .qd-sic::before { -webkit-mask-image: var(--qd-i-mail); mask-image: var(--qd-i-mail); }
body[data-page="quiz"] #song-challenge .qd-sic::before { -webkit-mask-image: var(--qd-i-shield); mask-image: var(--qd-i-shield); }
body[data-page="quiz"] #song-message:has(#song-retry:not([hidden])) .qd-sic::before { -webkit-mask-image: var(--qd-i-again); mask-image: var(--qd-i-again); }
body[data-page="quiz"] #song-busy h1 { font-size: 1.35rem !important; line-height: 1.3; margin: 0; }
body[data-page="quiz"] #song-message-text, body[data-page="quiz"] #song-challenge .lead { margin: 0; font: 600 1.15rem/1.4 var(--serif); color: var(--ink); }
body[data-page="quiz"] #song-retry { display: flex; width: 100%; margin-top: 18px; }
body[data-page="quiz"] #song-retry[hidden] { display: none; }
/* the support line only on the dead ends — with "Try again" it would be a second way out */
body[data-page="quiz"] .qd-support { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
/* the address stays in the sentence; its tap area is 44 px tall without pushing the lines apart */
body[data-page="quiz"] .qd-support a { display: inline-block; padding: 12px 0; margin: -12px 0; font-weight: 700; }
body[data-page="quiz"] #song-message:has(#song-retry:not([hidden])) .qd-support { display: none; }
/* the visible Turnstile check sits centred under the line */
body[data-page="quiz"] #song-turnstile { display: flex; justify-content: center; margin-top: 18px; min-height: 65px; }

/* the free updates used up (409): a quiet line above "Get the full song" */
body[data-page="quiz"] .qd-used { text-align: center; font-size: .9rem; color: var(--ink-2); margin: 0 0 10px; }
/* buy-during-update (08.10): "Your updated song is almost ready." above the disabled buy buttons, as the used-up line */
body[data-page="quiz"] .song-buy-wait { text-align: center; font-size: .9rem; color: var(--ink-2); margin: 0 0 10px; }
#song-end .es-opt:disabled { opacity: .45; cursor: default; }

/* form errors: the field goes red, the message sits under it with a small mark */
body[data-page="quiz"] .err:not(:empty) { display: flex; gap: 6px; align-items: flex-start; font-weight: 600; margin-top: 8px; }
body[data-page="quiz"] .err:not(:empty)::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; background: var(--err);
  -webkit-mask: var(--qd-i-alert) center / contain no-repeat; mask: var(--qd-i-alert) center / contain no-repeat; }
body[data-page="quiz"] .field:has(> .err:not(:empty)) > .input, body[data-page="quiz"] .field:has(> .err:not(:empty)) > .textarea { border-color: var(--err); background: #FFFBFA; }
body[data-page="quiz"] [data-step="1"] .field:has(#err-occ:not(:empty)) #occasions .chip:not([aria-pressed="true"]),
body[data-page="quiz"] [data-step="3"]:has(#err-style:not(:empty)) #styles .card-opt:not([aria-pressed="true"]) { box-shadow: inset 0 0 0 1.5px var(--err); }
body[data-page="quiz"] [data-step="3"]:has(#err-voice:not(:empty)) #voices { border-color: var(--err); }
/* a message that sends the buyer back into the quiz (a refused story) and "couldn't save": a tinted note, not red text */
body[data-page="quiz"] #q-step-msg:not(:empty), body[data-page="quiz"] #err-submit:not(:empty), body[data-page="quiz"] #song-detail-err:not(:empty) {
  padding: 12px 14px; border-radius: var(--r-sm); background: var(--qd-err-bg); color: #8C2A1C; font-size: .95rem; }
body[data-page="quiz"] #q-step-msg:not(:empty) { margin: 0 0 14px; }
body[data-page="quiz"] #q-step-msg:not(:empty)::before, body[data-page="quiz"] #err-submit:not(:empty)::before, body[data-page="quiz"] #song-detail-err:not(:empty)::before { background: #8C2A1C; }
/* name-resing: a refused spelling, as a refused detail */
body[data-page="quiz"] #song-sounds-err:not(:empty) { padding: 12px 14px; border-radius: var(--r-sm); background: var(--qd-err-bg); color: #8C2A1C; font-size: .95rem; }
body[data-page="quiz"] #song-sounds-err:not(:empty)::before { background: #8C2A1C; }
body[data-page="quiz"] #err-submit:not(:empty) { margin: 10px 0 0; }
/* the name voice: its own refusal (the limit, "a quick breather") and "opening soon" are notes — the quiz goes on */
body[data-page="quiz"] [data-voice-player] .err:not(:empty) { padding: 10px 12px; border-radius: 10px; background: var(--bg-2); color: var(--ink-2); font-weight: 500; }
body[data-page="quiz"] [data-voice-player] .err:not(:empty)::before { background: var(--muted); -webkit-mask-image: var(--qd-i-info); mask-image: var(--qd-i-info); }
body[data-page="quiz"] .soon { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-2); color: var(--ink-2); font-size: .95rem; }
body[data-page="quiz"] .soon::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; background: var(--accent-text);
  -webkit-mask: var(--qd-i-info) center / contain no-repeat; mask: var(--qd-i-info) center / contain no-repeat; }

/* ---------- checkout (look 4): our part around Stripe's frame ----------
   Stripe's frame (order summary, the two unticked $12 extras, email, card, Pay) is an iframe from js.stripe.com: no CSS of
   ours reaches it — its colours, font and corners come from stripe-look.md. Ours: the journey header (stage 3), a slim
   way back, the loading line and the error card. */
body[data-page="quiz"] #checkout { padding-top: 4px; padding-bottom: 24px; }
body[data-page="quiz"] #checkout-close { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0 0 12px; padding: 6px 14px 6px 10px;
  border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 .92rem/1.2 var(--sans); }
body[data-page="quiz"] #checkout-close::before { content: "\2190"; font-size: 1.05rem; line-height: 1; }
body[data-page="quiz"] #checkout-close:hover { background: var(--bg-2); }
body[data-page="quiz"] #checkout-message:empty { display: none; }
body[data-page="quiz"] #checkout-message[data-qd-kind="loading"] { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 28px 0 0;
  font: 600 1.05rem/1.3 var(--sans); color: var(--ink-2); }
body[data-page="quiz"] #checkout-message[data-qd-kind="loading"]::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: qdSpin .8s linear infinite; }
@keyframes qdSpin { to { transform: rotate(360deg); } }
body[data-page="quiz"] #checkout-message[data-qd-kind="error"] { margin: 16px 0 0; padding: 22px 20px; text-align: center; background: var(--paper);
  border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 12px 30px rgba(90, 45, 25, .10); font: 600 1.1rem/1.4 var(--serif); color: var(--ink); }
body[data-page="quiz"] #checkout-message[data-qd-kind="error"]::before { content: ""; display: block; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B53D27' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5M12 7.6v.2'/%3E%3C/svg%3E") center / 30px no-repeat; }
/* checkout could not open: the card first, then the way back as the one full-width button */
body[data-page="quiz"] #checkout:has(#checkout-message[data-qd-kind="error"]) { display: flex; flex-direction: column; }
body[data-page="quiz"] #checkout:has(#checkout-message[data-qd-kind="error"]) #checkout-close { order: 2; justify-content: center; width: 100%; min-height: 52px; margin: 16px 0 0; font-size: 1rem; }
@media (prefers-reduced-motion: reduce) { body[data-page="quiz"] #checkout-message[data-qd-kind="loading"]::before { animation-duration: 3s; } }
/* sound-default (2026-10-04): the chosen sound is marked, not only tinted */
body[data-page="quiz"] #styles .card-opt[aria-pressed="true"]::after { content: "✓"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; }

/* preview-v2 (owner 2026-10-05): the card when the preview ends */
#song-end { margin: 12px 0 6px; padding: 14px; border-radius: 16px; background: var(--accent-soft); text-align: center; }
#song-end .song-end-head { margin: 0 0 4px; font: 650 1.15rem/1.3 var(--serif); }
/* preview-card-b (owner 2026-10-06, site-drafts/preview-card/?s=b): two answers to "How did that sound?" — buy, or make it
   better for free (the update block moves into the second one while the card shows); the repeat-quiz screens */
#song-end .song-end-choice { margin: 10px 0 0; padding: 12px; border-radius: 12px; background: #fff; text-align: left; }
#song-end .song-end-choice h3 { margin: 0 0 8px; font: 650 1rem/1.3 var(--serif); }
#song-end .song-end-what { list-style: none; margin: 10px 0 0; padding: 0; }
#song-end .song-end-what li { position: relative; margin: 0 0 8px; padding-left: 24px; font-size: .92rem; line-height: 1.4; color: var(--ink-2); }
#song-end .song-end-what li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
#song-end .song-end-row { display: flex; gap: 8px; }
#song-end .song-end-row .btn { flex: 1; min-height: 46px; padding: 8px 10px; font-size: .95rem; }
#song-end .song-end-left { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
#song-end #song-update { margin: 10px 0 0; }
#song-end #song-more-form .btn { width: 100%; margin-top: 10px; }
#song-repeat { margin: 18px 0 0; padding: 22px 18px; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 12px 30px rgba(90, 45, 25, .10); }
#song-repeat h1 { font-size: 1.5rem; }
#song-repeat p { margin: 0 0 14px; color: var(--ink-2); }
#song-repeat .song-repeat-ic { display: block; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B53D27' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2'/%3E%3Cpath d='M3.5 6.5l8.5 6.5 8.5-6.5'/%3E%3C/svg%3E") center / 30px no-repeat; }
#song-repeat .song-repeat-mini { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px; border-radius: 14px; background: var(--bg-2); text-align: left; }
#song-repeat .song-repeat-mini span { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); }
#song-repeat .song-repeat-mini svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
#song-repeat .song-repeat-mini b { display: block; font: 650 1rem/1.2 var(--serif); }
#song-repeat .song-repeat-mini small { color: var(--muted); }
#song-repeat .qd-buynote { margin: 10px 0 0; }
/* song-on-device (owner 2026-10-08): the offer's "Or start a new song" — a text link under "Open my song", as #song-end-again */
#song-repeat .song-repeat-new { display: block; margin: 8px auto 0; background: none; border: 0; color: var(--accent-text); font: 600 .95rem/1.2 var(--sans); text-decoration: underline; cursor: pointer; padding: 8px; }
#song-end #song-ai, #song-end .qd-buynote { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
#song-end .qd-buynote { margin-top: 2px; }
#song-end .song-end-again { margin-top: 8px; background: none; border: 0; color: var(--accent-text); font: 600 .95rem/1.2 var(--sans); text-decoration: underline; cursor: pointer; padding: 8px; }
body[data-page="quiz"] .qd-dock { transition: transform .25s; }
body[data-page="quiz"] .qd-dock.qd-away { transform: translateY(110%); }
/* end-survey (owner 2026-10-06, site-drafts/preview-card/?s=q): the question between block one and block two, in the flow
   of the card like them — nothing of it is positioned or layered, so it never covers the buy button or the dock */
#song-end .es-opts { display: grid; gap: 8px; }
#song-end .es-opts .chip { width: 100%; justify-content: flex-start; gap: 10px; border-radius: 14px; text-align: left; font-size: .95rem; }
#song-end .es-opt::before { flex: none; }
#song-end .es-opt[data-es="buy"]::before { content: "\1F381" / ""; }
#song-end .es-opt[data-es="later"]::before { content: "\1F4C5" / ""; }
#song-end .es-opt[data-es="fix"]::before { content: "\270F\FE0F" / ""; }
#song-end .es-opt[data-es="price"]::before { content: "\1F4B8" / ""; }
#song-end .es-more { margin: 10px 0 0; }
#song-end .es-more .label { display: block; margin: 0 0 6px; font-size: .92rem; color: var(--ink-2); }
#song-end .es-more .input + .label, #song-end #song-end-survey-email-wrap { margin-top: 10px; }
#song-end .es-more .btn { width: 100%; margin-top: 10px; }
#song-end .es-price { display: flex; align-items: center; gap: 8px; }
#song-end .es-price span { font: 650 1.3rem/1 var(--serif); }
#song-end .es-price .input { max-width: 140px; }
#song-end .es-done { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* guarantee-30 (Result 4): the 30-day promise is seen, not buried — L3 under Continue and L4 under "Get the full song"
   in the accent text colour with a shield before them; the L6/L7 box before the lyrics a bordered card, the shield in
   its heading. */
body[data-page="quiz"] .q-foot .note, body[data-page="quiz"] .qd-buynote, #song-end .qd-buynote, #song-repeat .qd-buynote { color: var(--accent-text); font-weight: 600; }
.g-shield { display: inline-block; width: 15px; height: 15px; margin-right: 5px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-promise { margin: 18px 0 0; padding: 12px 14px; border: 1.5px solid rgba(209, 71, 47, .2); border-radius: 14px; background: #fff; font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.g-promise p { margin: 0; }
.g-promise .g-promise-head { margin-bottom: 4px; color: var(--accent-text); font-weight: 700; }

/* faith-section: the Worship / Gospel card has no ▶ — its name and line sit in the text column of the other cards */
body[data-page="quiz"] #styles .card-opt[data-worship] .wg-name { grid-column: 2; grid-row: 1; }
body[data-page="quiz"] #faith-types .chip, body[data-page="quiz"] #flavors .chip { flex: none; }
/* quiz-error-focus (owner 2026-10-08): a stopped step flashes the failed answer — a short red ring and tint, then gone;
   none under reduced motion (the red message and border stay). The Worship flavors: one row each, ▶ first, then the name. */
body[data-page="quiz"] .err-flash { animation: errflash 1.4s ease-out; border-radius: 14px; }
@keyframes errflash { 0% { box-shadow: 0 0 0 0 rgba(209,71,47,.6); background: #FDE6E0; }
  100% { box-shadow: 0 0 0 16px rgba(209,71,47,0); background: transparent; } }
@media (prefers-reduced-motion: reduce) { body[data-page="quiz"] .err-flash { animation: none; } }
body[data-page="quiz"] #flavors .chips { display: grid; grid-template-columns: 44px auto; justify-content: start; align-items: center; gap: 8px 10px; }
body[data-page="quiz"] #flavors .chips .chip { justify-self: start; }
/* in-memory-occasion (owner 13.10): eight tiles, four rows of two — the seventh (faith) no longer spans the row */

/* quiz-fold (owner 08.10): on a laptop (1440×780 and up) all seven occasion tiles of step 1 sit above the sticky Continue
   bar with nothing to scroll — less space above and below the heading and lower tiles (44 px, the tap-target minimum);
   with the video half's bar and card padding (the 900 px block above) every one of them is needed at 1440×780.
   900 px and wider only, phones as before. tools/quiz_fold.py measures it. */
@media (min-width: 900px) {
  body[data-page="quiz"] .qd-head { margin-bottom: 5px; }
  body[data-page="quiz"] [data-step="1"] h1 { margin-bottom: 5px; }
  body[data-page="quiz"] #occasions .chip { min-height: 44px; padding-top: 7px; padding-bottom: 7px; }
}

/* order S (owner 2026-10-13): the occasion sits above the sound on step 1 — compact pills so the styles stay in view */
body[data-page="quiz"].ord-s #occasions { display: flex; flex-wrap: wrap; gap: 6px; }
body[data-page="quiz"].ord-s #occasions .chip { flex: 0 0 auto; flex-direction: row; min-height: 38px; padding: 6px 12px; gap: 6px; font-size: .92rem; }
body[data-page="quiz"].ord-s #occasions .qd-ic { width: 18px; height: 18px; }
body[data-page="quiz"].ord-s #occ-field { margin-bottom: 12px; }

/* promise (owner 2026-10-13): what the buyer does and gets, above step 1 */
body[data-page="quiz"] .qs-promise { background: #F8EACB; border-radius: 14px; padding: 10px 14px; margin: 0 0 14px; }
body[data-page="quiz"] .qs-promise p { margin: 0; font-size: .95rem; line-height: 1.4; }
body[data-page="quiz"] .qs-promise[hidden] { display: none; }
body[data-page="quiz"] .qs-promise .qs-p1 { font-weight: 700; font-size: 1rem; }
body[data-page="quiz"] .qs-promise .qs-p2 { font-size: .88rem; color: var(--ink-2, #6b5a4e); margin-top: 2px; }

/* email-typo: "Did you mean …?" — the suggestion is a button that reads as a link */
#email-fix { margin: 6px 0 0; }
#email-fix .linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--accent, #D1472F); text-decoration: underline; cursor: pointer; }
