/* quiz.css — loaded by quiz.html ONLY.
 *
 * The /quiz page. base.css loads first and supplies the tokens, fonts, reset
 * and .btn; everything below is this page's own. Like coach.css it is
 * self-contained by decision — a rule that happens to match another page's is
 * copied, not promoted, so the pages can move independently.
 *
 * This page has the shared nav but no footer (see the comment at the top of
 * quiz.html). The nav's colours come from base.css unchanged — this is a dark
 * page like the rest. The intro and result use two columns on wide screens;
 * questions stay in one centred column:
 *
 *   the nav (fixed) · back + progress
 *   ─ the current screen (intro / question / done) ─
 *   Next button, sticky to the bottom on long questions
 *   privacy · cookie settings
 *
 * except the result, which goes two-up on wide screens: the type on the left,
 * the thank-you and the code on the right.
 *
 * Several classes here are only ever set by js/quiz.js (.quiz-option and its
 * children, .is-on, .is-off, .quiz-enter, .quiz-textarea, .quiz-benefit,
 * .quiz-preview-type,
 * .quiz-msg.ok/.err, .quiz-input.invalid). They appear in no HTML file. Don't
 * delete them on the strength of a grep.
 */


/* Visually hidden, still read aloud. */
.quiz-a11y {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Several hooked elements are display:flex, which beats the UA stylesheet's
   [hidden] rule. quiz.js shows and hides screens with the attribute, so it has
   to win. */
.quiz [hidden] { display: none !important; }


/* ──────────────────── PAGE ──────────────────── */

body.quiz-page {
  /* A faint moss glow behind the brand, fading into the flat page. */
  background:
    radial-gradient(900px 520px at 50% -140px, rgba(95,149,105,0.13), rgba(95,149,105,0) 70%),
    var(--ink);
  background-repeat: no-repeat;
}

.quiz {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}


/* ──────────────────── TOP: CLEAR THE NAV, THEN PROGRESS ──────────────────── */

/* The shared nav is position:fixed (base.css) and pads itself for the notch,
   so this padding is the nav's own height (73px, 65px with the phone menu
   toggle) plus air. On the intro and the result the progress row is hidden
   and this is just the gap under the nav. */
.quiz-top {
  display: flex; justify-content: center;
  padding: calc(90px + env(safe-area-inset-top)) 20px 0;
}

.quiz-progress-row {
  width: 100%; max-width: 760px;
  display: flex; align-items: center; gap: 12px;
}

.quiz-back {
  flex: none; width: 44px; height: 44px; margin-left: -8px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-fg);
  cursor: pointer; transition: background-color .15s;
}

.quiz-back:hover { background: rgba(244,237,227,0.07); }

.quiz-back svg { width: 22px; height: 22px; }

.quiz-progress {
  flex: 1; height: 6px; border-radius: 9999px; overflow: hidden;
  background: rgba(244,237,227,0.10);
}

.quiz-progress-fill {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--moss-bright) 0%, var(--moss) 100%);
  transition: width .5s cubic-bezier(.22,1,.36,1);
}


/* ──────────────────── SCREENS ──────────────────── */

/* Wide enough for the two-up result; every screen is its own 680px column
   inside it, and only the result lets go of that on wide screens. */
.quiz-main {
  flex: 1;
  width: 100%; max-width: 1160px;
  margin: 0 auto; padding: 0 20px;
  display: flex; flex-direction: column;
}

.quiz-screen {
  flex: 1; display: flex; flex-direction: column;
  width: 100%; max-width: 680px; margin-inline: auto;
}

@keyframes quizIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.quiz-enter { animation: quizIn .42s cubic-bezier(.22,1,.36,1) both; }

/* base.css caps every <p> at 60ch and zeroes its margin. Everything centred
   below sets its own width and centres with margin-inline: auto, or the box
   centres while the text inside it still runs flush left. */


/* ──────────────────── 1. INTRO ──────────────────── */

.quiz-intro {
  justify-content: center; align-items: center; text-align: center;
  padding: 48px 0 64px;
}

.quiz-intro-art {
  display: block; width: min(100%, 650px); height: auto;
  margin: 18px auto 0;
}

@media (min-width: 850px) {
  .quiz-intro {
    max-width: 1100px;
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    column-gap: clamp(20px, 3vw, 44px);
    align-content: center; justify-items: start; text-align: left;
  }
  .quiz-intro > :not(.quiz-intro-art) { grid-column: 1; }
  .quiz-intro-art { grid-column: 2; grid-row: 1 / span 5; width: 100%; margin: 0; }
  .quiz-intro h1, .quiz-lede { margin-left: 0; }
  .quiz-facts { justify-content: flex-start; }
}

.quiz-intro h1 {
  margin: 18px auto 0; max-width: 14ch;
  font-size: clamp(40px, 6vw, 66px);
}

/* Keep the underlined phrase on one line — an em broken across two lines
   draws its underline as two disconnected stubs. */
.quiz-intro h1 em { white-space: nowrap; }

.quiz-lede {
  margin: 22px auto 0; max-width: 46ch;
  font-size: 18px; color: var(--ink-fg2);
}

.quiz-facts {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}

.quiz-facts li {
  padding: 6px 14px; border-radius: 9999px; border: 1px solid var(--rule);
  font-size: 13px; font-weight: 600; color: var(--ink-fg2);
}

.quiz-cta { margin-top: 36px; min-width: 240px; padding: 17px 36px; font-size: 16px; }

.quiz-cta svg, .quiz-next svg { width: 18px; height: 18px; margin-right: -4px; }

.quiz-note {
  margin: 28px auto 0; max-width: 50ch;
  font-size: 13px; line-height: 1.6; color: var(--ink-fg2);
}

.quiz-note strong { color: var(--ink-fg); font-weight: 600; }

.quiz-note a, .quiz-fine a { color: var(--ink-fg); text-underline-offset: 2px; }


/* ──────────────────── 2. QUESTION ──────────────────── */

.quiz-question { padding-top: clamp(36px, 8vh, 84px); }

.quiz-head { text-align: center; }

/* Balanced wrapping on every quiz heading, so a long question doesn't leave
   one word stranded on the last line. Ignored where unsupported. */
.quiz-intro h1, .quiz-title, .quiz-done h2 { text-wrap: balance; }

.quiz-title {
  margin: 0 auto; max-width: 22ch;
  font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1;
  /* Focused by quiz.js on every step so screen readers announce the new
     question. It isn't interactive, so it never shows a ring. */
  outline: none;
}

.quiz-sub { margin: 14px auto 0; max-width: 48ch; font-size: 16px; color: var(--ink-fg2); }

/* Optional `examples` under the sub line. Plain centred text, one example per
   line — bolder and brighter than the sub so they read as the examples, with
   a gap between them standing in for bullets. */
.quiz-examples {
  list-style: none; margin: 14px auto 0; padding: 0;
  max-width: 48ch;
  display: flex; flex-direction: column; gap: 10px;
}

.quiz-examples li { font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--ink-fg); }

.quiz-options {
  margin-top: 34px;
  display: flex; flex-direction: column; gap: 12px;
}

.quiz-option {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  width: 100%; min-height: 66px; margin: 0;
  padding: 14px 18px 14px 22px;
  border-radius: 20px; border: 1px solid var(--rule);
  background: rgba(244,237,227,0.035);
  color: var(--ink-fg);
  font: inherit; font-size: 16px; font-weight: 500; line-height: 1.4; text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, background-color .15s, opacity .15s;
}

.quiz-option:hover { border-color: var(--rule-strong); background: rgba(244,237,227,0.06); }

.quiz-option.is-on { border-color: var(--moss); background: var(--moss-soft); }

/* At the pick limit: the unpicked options step back rather than vanish, so
   swapping one is still obvious. */
.quiz-option.is-off { opacity: .42; cursor: not-allowed; }

.quiz-option.is-off:hover { border-color: var(--rule); background: rgba(244,237,227,0.035); }

.quiz-option:focus-visible,
.quiz-option:has(.quiz-option-input:focus-visible) {
  outline: 2px solid var(--moss-bright); outline-offset: 2px;
}

/* The real checkbox for multi-choice options. Transparent rather than
   display:none so it stays focusable and is still announced. */
.quiz-option-input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: inherit;
}

/* Optional thumbnail — set `image` on an option in quiz-questions.js. */
.quiz-option-img {
  flex: none; width: 56px; height: 56px; margin-left: -10px;
  border-radius: 12px; object-fit: cover;
}

.quiz-option-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }

/* The optional `desc` line under an option's label. */
.quiz-option-desc { font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--ink-fg2); }

.quiz-option-mark {
  flex: none; width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--rule-strong);
  color: transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}

.quiz-option-mark svg { width: 14px; height: 14px; }

.quiz-option.is-on .quiz-option-mark { background: var(--moss); border-color: var(--moss); color: #fff; }

.quiz-input {
  display: block; width: 100%;
  /* 16px keeps iOS from zooming the page on focus — do not lower */
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  padding: 14px 20px; border-radius: 16px;
  background: rgba(255,255,255,0.06); color: var(--ink-fg);
  border: 1px solid rgba(255,255,255,0.16); outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.quiz-input::placeholder { color: rgba(244,237,227,0.42); }

.quiz-input:focus { border-color: var(--moss); box-shadow: 0 0 0 3px rgba(95,149,105,0.28); }

.quiz-input:disabled { opacity: .55; }

.quiz-input.invalid { border-color: #973C50; box-shadow: 0 0 0 3px rgba(151,60,80,0.18); }

.quiz-textarea { min-height: 168px; resize: vertical; border-radius: 20px; }


/* Sticks to the bottom of the viewport while a long list scrolls under it,
   then settles at the end of the list. The gradient lets options fade out
   beneath the button instead of being cut off by a hard edge. */
.quiz-actions {
  position: sticky; bottom: 0; z-index: 5;
  /* Bleeds into .quiz-main's side padding so the fade also covers an input's
     3px focus ring, which otherwise pokes out past both edges. */
  margin: auto -20px 0;
  padding: 32px 20px calc(14px + env(safe-area-inset-bottom));
  text-align: center;
  background: linear-gradient(180deg, rgba(16,30,29,0) 0%, var(--ink) 38%);
}

/* Back + Next. Back keeps its natural width; Next takes the rest, so the
   primary action is always the bigger target. */
.quiz-nav { display: flex; gap: 10px; width: 100%; max-width: 480px; margin: 0 auto; }

/* Single-choice questions hide Next (quiz.js): Back alone is centred rather
   than left stranded at the edge of a 480px row. */
.quiz-nav:has(> .quiz-next[hidden]) { justify-content: center; }

.quiz-prev {
  flex: none; padding: 17px 24px 17px 20px; font-size: 16px;
  background: var(--cream); color: var(--ink);
}

.quiz-prev:hover { background: #fff; }

.quiz-prev svg { width: 18px; height: 18px; margin-left: -4px; }

.quiz-next { flex: 1; min-width: 0; padding: 17px 28px; font-size: 16px; }

.quiz-next:disabled { opacity: .36; cursor: not-allowed; transform: none; }

.quiz-next:disabled:hover { background: linear-gradient(135deg, var(--moss) 0%, var(--moss-dark) 100%); }

.quiz-hint {
  margin: 12px auto 0; max-width: 46ch; min-height: 1.6em;
  font-size: 13px; color: var(--ink-fg2);
}


/* ──────────────────── 3. DONE ──────────────────── */

/* --type is set by quiz.js to the result's colour (quiz-questions.js); every
   accent on this screen reads it. Moss until then. */
.quiz-done { --type: var(--moss); align-items: center; text-align: center; padding: 44px 0 56px; }

/* The type half: result + checklist. One column on phones, the left one on
   wide screens. */
.quiz-done-type { width: 100%; }

.quiz-done h2 {
  margin: 0 auto; max-width: 15ch;
  font-size: clamp(34px, 5vw, 54px);
  outline: none;
}

/* The result. A soft glow in the type's colour sits behind the name. */
.quiz-result { position: relative; isolation: isolate; width: 100%; }

.quiz-result::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: -60px; width: min(620px, 120%); height: 320px; transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--type) 24%, transparent), transparent);
}

.quiz-result-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-fg2);
}

.quiz-result-kicker::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--type);
}

.quiz-done .quiz-result-name {
  margin-top: 14px; max-width: none;
  font-size: clamp(46px, 7.5vw, 76px);
  color: var(--type);
}

.quiz-result-art {
  display: block; width: min(100%, 400px); height: auto; aspect-ratio: 1;
  object-fit: contain; margin: 12px auto 0;
}

.quiz-result-tagline {
  margin: 20px auto 0; max-width: 34ch;
  font-family: var(--serif); font-size: clamp(20px, 2.6vw, 25px); line-height: 1.3;
  color: var(--ink-fg);
}

.quiz-result-desc { margin: 16px auto 0; max-width: 52ch; font-size: 17px; color: var(--ink-fg2); }

.quiz-result-streak { margin: 20px auto 0; font-size: 15px; color: var(--ink-fg2); }

.quiz-result-streak strong { font-weight: 700; }

/* How Reclaim helps: a plain checklist in the type's colour. The list is
   shrink-wrapped and centred, its lines left-aligned, so the ticks line up. */
.quiz-benefits { width: 100%; margin: 52px auto 0; }

.quiz-benefits h3 { font-size: clamp(22px, 3vw, 27px); }

.quiz-benefit-list {
  list-style: none; margin: 22px auto 0; padding: 0;
  width: fit-content; max-width: 100%;
  display: flex; flex-direction: column; gap: 14px;
  text-align: left;
}

.quiz-benefit {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--ink-fg);
}

.quiz-benefit svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--type); }

/* The thank-you, the code and the email form, below the result. */
.quiz-thanks {
  width: 100%; margin-top: 56px; padding-top: 48px;
  border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; align-items: center;
}

.quiz-done .quiz-thanks-title { font-size: clamp(30px, 4.4vw, 44px); }

/* base.css underlines h2 em in moss; on this screen it follows the type. */
.quiz-thanks-title em { background-image: linear-gradient(to right, var(--type), var(--type)); }

.quiz-done-lede { margin: 18px auto 0; max-width: 48ch; font-size: 17px; color: var(--ink-fg2); }

.quiz-done-lede strong { color: var(--ink-fg); font-weight: 600; }

.quiz-code {
  width: 100%; max-width: 440px; margin: 32px auto 0;
  padding: 20px 22px 18px;
  border-radius: 24px; border: 1.5px dashed rgba(169,205,175,0.45);
  background: rgba(95,149,105,0.08);
}

.quiz-code-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--moss-bright);
}

.quiz-code-row {
  margin-top: 10px;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 16px;
}

.quiz-code-value {
  font-family: var(--sans); font-size: clamp(24px, 5vw, 32px); font-weight: 700;
  letter-spacing: 0.12em; color: var(--ink-fg);
  -webkit-user-select: all; user-select: all;
}

.quiz-copy {
  padding: 9px 18px; border-radius: 9999px;
  border: 1px solid var(--rule-strong); background: rgba(244,237,227,0.06);
  color: var(--ink-fg); font-family: var(--sans); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background-color .15s;
}

.quiz-copy:hover { background: rgba(244,237,227,0.12); }

.quiz-code-fine { margin: 12px auto 0; font-size: 13px; color: var(--ink-fg2); }

.quiz-email {
  width: 100%; max-width: 540px; margin: 44px auto 0; padding-top: 36px;
  border-top: 1px solid var(--rule);
}

.quiz-email h3 { font-size: clamp(24px, 3vw, 28px); }

.quiz-email > p:not([class]) { margin: 10px auto 0; max-width: 44ch; font-size: 15px; color: var(--ink-fg2); }

.quiz-email-row { margin-top: 22px; display: flex; gap: 10px; }

.quiz-email-row .quiz-input { flex: 1; min-width: 0; border-radius: 9999px; }

.quiz-send { flex: none; }

.quiz-send:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Honeypot: off-screen rather than display:none, because some bots skip
   hidden inputs. Real people never see or tab into it. */
.quiz-hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

.quiz-check {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 18px; text-align: left;
  font-size: 14px; line-height: 1.5; color: var(--ink-fg2);
  cursor: pointer;
}

.quiz-check-input {
  position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  margin: 0; opacity: 0; cursor: pointer;
}

.quiz-check-box {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  display: grid; place-items: center;
  border-radius: 6px; border: 1.5px solid var(--rule-strong);
  color: transparent; transition: background-color .15s, border-color .15s;
}

.quiz-check-box svg { width: 12px; height: 12px; }

.quiz-check-input:checked + .quiz-check-box { background: var(--moss); border-color: var(--moss); color: #fff; }

.quiz-check-input:focus-visible + .quiz-check-box { outline: 2px solid var(--moss-bright); outline-offset: 2px; }

.quiz-check-input:disabled + .quiz-check-box { opacity: .55; }

.quiz-msg { margin: 14px auto 0; font-size: 14px; }

.quiz-msg:empty { display: none; }

.quiz-msg.ok { color: var(--moss-bright); }

.quiz-msg.err { color: #E2879A; }

.quiz-fine { margin: 18px auto 0; max-width: 46ch; font-size: 12.5px; line-height: 1.6; color: var(--ink-fg2); }


/* ──────────────────── BOTTOM LINE ──────────────────── */

.quiz-legal {
  margin: 0 auto; max-width: none;
  padding: 6px 20px calc(18px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; gap: 10px;
  font-size: 12.5px; color: var(--ink-fg2);
}

.quiz-legal a { color: inherit; text-decoration: none; }

.quiz-legal a:hover { color: var(--ink-fg); text-decoration: underline; text-underline-offset: 2px; }

.quiz-legal-btn {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit;
}

.quiz-legal-btn:hover { color: var(--ink-fg); text-decoration: underline; text-underline-offset: 2px; }


/* ──────────────────── TEMPORARY: TYPE PICKER ────────────────────
   "Preview all types" shows the real result screen with this bar pinned to
   the bottom to switch type. Goes when the [data-quiz-dev] markup goes — see
   TASKS.md § 13. The page gets extra bottom padding while it's open, so the
   bar never covers the end of the email form. */
.quiz.is-previewing { padding-bottom: 88px; }

.quiz-preview {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: max-content; max-width: calc(100vw - 24px);
  display: flex; align-items: center; gap: 6px;
  padding: 7px;
  border-radius: 9999px; border: 1px solid var(--rule-strong);
  background: var(--ink-2);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.75);
  font-family: var(--sans);
}

.quiz-preview-label {
  padding: 0 6px 0 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-fg2);
}

.quiz-preview-types { min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }

.quiz-preview-types::-webkit-scrollbar { display: none; }

.quiz-preview-type {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border: 0; border-radius: 9999px; background: transparent;
  color: var(--ink-fg2); font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: background-color .15s, color .15s;
}

.quiz-preview-type::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--type); }

.quiz-preview-type:hover { color: var(--ink-fg); background: rgba(244,237,227,0.06); }

.quiz-preview-type[aria-pressed="true"] { color: var(--ink-fg); background: color-mix(in srgb, var(--type) 24%, transparent); }

.quiz-preview-streak select {
  padding: 8px 12px; border-radius: 9999px;
  border: 1px solid var(--rule); background: transparent; color: var(--ink-fg2);
  font: inherit; font-size: 13px; cursor: pointer;
}

.quiz-preview-streak option { background: var(--ink-2); color: var(--ink-fg); }

.quiz-preview-close {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(244,237,227,0.08); color: var(--ink-fg);
  cursor: pointer;
}

.quiz-preview-close svg { width: 16px; height: 16px; }

/* Narrow: the types become a grid of their own — one row on a tablet, two
   rows of three on a phone, never scrolling out of sight — with the
   runner-up and close underneath. */
@media (max-width: 980px) {
  .quiz.is-previewing { padding-bottom: 168px; }
  .quiz-preview { width: calc(100vw - 24px); flex-wrap: wrap; border-radius: 22px; }
  .quiz-preview-label { display: none; }
  .quiz-preview-types {
    flex: 1 1 100%;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  .quiz-preview-type { justify-content: center; padding-inline: 8px; }
  .quiz-preview-streak { flex: 1; }
  .quiz-preview-streak select { width: 100%; }
}


/* ──────────────────── WIDE SCREENS: TWO-UP RESULT ──────────────────── */

/* The type on the left, the thank-you + code + email on the right, split by
   a hairline. Both halves stay centred, as on phones, and sit level with
   each other. Below 960px each half would be too narrow for the type's
   name, so it stays one column. */
@media (min-width: 960px) {
  .quiz-done {
    max-width: none;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center; align-content: center;
    padding: 40px 0 64px;
  }

  .quiz-done-type { padding-right: clamp(40px, 5vw, 72px); }

  .quiz-done .quiz-result-name { font-size: clamp(50px, 5.4vw, 70px); }

  .quiz-thanks {
    margin-top: 0; padding: 4px 0 4px clamp(40px, 5vw, 72px);
    border-top: 0; border-left: 1px solid var(--rule);
  }
}


/* ──────────────────── SMALL SCREENS ──────────────────── */

@media (max-width: 560px) {
  .quiz-top { padding-top: calc(76px + env(safe-area-inset-top)); }
  .quiz-intro { padding: 32px 0 44px; }
  .quiz-lede { font-size: 17px; }
  .quiz-question { padding-top: 28px; }
  .quiz-options { margin-top: 26px; gap: 10px; }
  .quiz-option { min-height: 58px; padding: 12px 14px 12px 18px; border-radius: 18px; font-size: 15.5px; gap: 14px; }

  /* The type section: tighter lines inside than on a wide screen, but more
     room around it — under the nav and above the hairline before the
     thank-you — so it reads as a section of its own. */
  .quiz-done { padding-top: 64px; }
  .quiz-done .quiz-result-name { margin-top: 12px; }
  .quiz-result-art { width: min(100%, 320px); margin-top: 8px; }
  .quiz-result-tagline { margin-top: 16px; }
  .quiz-result-desc { margin-top: 14px; }
  .quiz-result-streak { margin-top: 16px; }
  .quiz-benefits { margin-top: 44px; }
  .quiz-benefit-list { margin-top: 18px; gap: 12px; }
  .quiz-thanks { margin-top: 110px; padding-top: 48px; }

  .quiz-email-row { flex-direction: column; }
  .quiz-send { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-enter { animation: none; }
  .quiz-progress-fill { transition: none; }
}
