/* AI-for-websites quiz — LIGHT theme (BetterMe-style), brand-purple accent.
   Self-contained light palette; only `.quiz-page` overrides the shared dark site chrome.
   Fonts (Montserrat/Nunito) still come from global.css. */

/* ── Light palette (scoped to the quiz page only) ── */
.quiz-page {
  --q-bg:        #ffffff;   /* page */
  --q-surface:   #ffffff;   /* cards */
  --q-surface-2: #f5f6fb;   /* filled areas: inputs, prompt, map rows */
  --q-ink:       #16161d;   /* primary text */
  --q-ink-soft:  #5c5c6e;   /* secondary text */
  --q-line:      #e8e9f1;   /* hairlines / resting borders */
  --q-line-2:    #eef0f6;   /* progress track, ring track */
  --q-accent:    #5b4eff;   /* electric purple */
  --q-accent-2:  var(--electric-2);   /* gradient end */
  --q-accent-weak:#efedff;  /* selected tint */
  --q-warm:      #ff6b35;
  --q-warm-weak: #fff3ec;
  --q-teal:      #0bb89c;   /* readable teal for light bg */
  --q-teal-weak: #e7f8f4;
  --q-shadow:    0 8px 28px rgba(22,22,40,0.08);
  --q-shadow-sm: 0 3px 12px rgba(22,22,40,0.06);
  --q-shadow-cta:0 10px 26px rgba(var(--electric-rgb),0.30);
}

/* Flip the shared dark site chrome to light — quiz page only */
.quiz-page { background: var(--q-bg); color: var(--q-ink); }
.quiz-page .grid-bg { display: none; }
.quiz-page .mesh {
  background: radial-gradient(ellipse 60% 42% at 50% -6%, rgba(var(--electric-rgb),0.07) 0%, transparent 62%);
}

/* ── Top bar + progress ── */
.quiz-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 20px;
  padding: 14px 24px; background: rgba(255,255,255,0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--q-line); }
.quiz-back { flex: none; width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1.5px solid var(--q-line); background: var(--q-surface); color: var(--q-ink); cursor: pointer;
  transition: border-color .2s, color .2s, transform .12s; }
.quiz-back:hover { border-color: var(--q-accent); color: var(--q-accent); transform: translateX(-2px); }
.quiz-back:focus-visible { outline: 2px solid var(--q-accent); outline-offset: 2px; }
.quiz-back svg { width: 18px; height: 18px; display: block; }
.quiz-back[hidden] { display: none; }
.quiz-logo { font-family: var(--font-title); font-weight: 800; color: var(--q-ink); text-decoration: none; font-size: 1.05rem; }
.quiz-progress { flex: 1; height: 8px; background: var(--q-line-2); border-radius: 100px; overflow: hidden; }
.quiz-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--q-accent), var(--q-accent-2)); transition: width .35s ease; }

/* ── Page shell + headings ── */
.quiz-root { max-width: 680px; margin: 0 auto; padding: 48px 22px 96px; position: relative; z-index: 1; }
.quiz-root:focus { outline: none; }   /* programmatic focus target on step change — no visible box for mouse users */
.quiz-head { text-align: center; margin-bottom: 32px; }
.quiz-pill { display: inline-block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: var(--q-accent); background: var(--q-accent-weak); border-radius: 100px; padding: 6px 15px; margin-bottom: 16px; }
.quiz-title { font-family: var(--font-title); font-weight: 800; font-size: clamp(1.55rem, 5vw, 2.25rem); line-height: 1.16;
  letter-spacing: -0.02em; color: var(--q-ink); }
.quiz-sub { color: var(--q-ink-soft); margin-top: 10px; }
.quiz-body { color: var(--q-ink-soft); font-size: 1.05rem; margin: 18px 0; text-align: center; }
.quiz-foot { font-size: .8rem; color: var(--q-ink-soft); text-align: center; margin-top: 24px; }
.quiz-foot a, .quiz-faq a { color: var(--q-accent); }

/* ── Cards (single-select, click-advance) ── */
.quiz-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quiz-card { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left;
  padding: 22px 20px; border-radius: 18px; border: 1.5px solid transparent; background: var(--q-surface); color: var(--q-ink);
  box-shadow: var(--q-shadow-sm); cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
  font-family: var(--font-body); }
.quiz-card:hover { transform: translateY(-3px); box-shadow: var(--q-shadow); border-color: var(--q-accent); }
.quiz-card.is-selected { border-color: var(--q-accent); background: var(--q-accent-weak); box-shadow: var(--q-shadow); }
.quiz-card-label { font-weight: 700; }
.quiz-card-note { font-size: .85rem; color: var(--q-ink-soft); }

/* ── Photo cards (persona — square face + label below; row of 4 on desktop, 2×2 on mobile) ──
   Breaks out of the 680px quiz column to a BetterMe-width row so cards are ~250px, not cramped. */
.quiz-pcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  width: min(1060px, 92vw); margin-left: 50%; transform: translateX(-50%); }
.quiz-pcard { display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: 18px;
  border: 1.5px solid transparent; background: var(--q-surface); box-shadow: var(--q-shadow-sm); cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease; font-family: var(--font-body); }
.quiz-pcard:hover { transform: translateY(-3px); box-shadow: var(--q-shadow); border-color: var(--q-accent); }
.quiz-pcard.is-selected { border-color: var(--q-accent); box-shadow: var(--q-shadow); }
.quiz-pcard-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 18%; display: block; background: var(--q-surface-2); }
.quiz-pcard-label { padding: 12px 8px; text-align: center; font-weight: 700; color: var(--q-ink); font-size: 0.92rem; }

/* ── Rows (radio / multi) ── */
.quiz-list { display: flex; flex-direction: column; gap: 12px; }
.quiz-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left;
  padding: 18px 20px; border-radius: 16px; border: 1.5px solid transparent; background: var(--q-surface); color: var(--q-ink);
  box-shadow: var(--q-shadow-sm); cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; }
.quiz-row:hover { transform: translateY(-2px); box-shadow: var(--q-shadow); border-color: var(--q-accent); }
.quiz-row.is-selected { border-color: var(--q-accent); background: var(--q-accent-weak); box-shadow: var(--q-shadow); }
.quiz-radio, .quiz-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--q-line); flex: none;
  position: relative; transition: border-color .2s, background .2s; }
.quiz-check { border-radius: 7px; }
.quiz-row.is-selected .quiz-radio, .quiz-row.is-selected .quiz-check { border-color: var(--q-accent); background: var(--q-accent); }
.quiz-row.is-selected .quiz-radio::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.quiz-row.is-selected .quiz-check::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: .8rem; font-weight: 800; }

/* BetterMe-style icon rows (site_type) — emoji chip on the left, larger label */
.quiz-row-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.quiz-row-emoji { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--q-surface-2);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; line-height: 1; }
.quiz-row--icon { padding: 20px 22px; font-size: 1.22rem; }
.quiz-row--icon .quiz-row-label { font-weight: 700; }

/* ── Chips (single-select + free-text "other") ── */
.quiz-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.quiz-chip { padding: 12px 18px; border-radius: 100px; border: 1.5px solid var(--q-line); background: var(--q-surface);
  color: var(--q-ink); cursor: pointer; font-family: var(--font-body); font-weight: 600; box-shadow: var(--q-shadow-sm);
  transition: border-color .2s, background .2s, transform .12s; }
.quiz-chip:hover { border-color: var(--q-accent); transform: translateY(-1px); }
.quiz-chip.is-selected { border-color: var(--q-accent); background: var(--q-accent-weak); color: var(--q-accent); }
.quiz-other-input, .quiz-text-input { width: 100%; margin-top: 16px; padding: 16px 18px; border-radius: 14px;
  border: 1.5px solid var(--q-line); background: var(--q-surface-2); color: var(--q-ink); font-size: 1rem; font-family: var(--font-body); }
.quiz-other-input::placeholder, .quiz-text-input::placeholder { color: #9a9aab; }
.quiz-other-input:focus, .quiz-text-input:focus { outline: none; border-color: var(--q-accent); background: #fff;
  box-shadow: 0 0 0 4px var(--q-accent-weak); }

/* ── Primary CTA ── */
.quiz-cta { display: block; width: 100%; max-width: 420px; margin: 32px auto 0; padding: 17px 24px; border: none;
  border-radius: 100px; background: linear-gradient(90deg, var(--q-accent), var(--q-accent-2)); color: #fff; font-weight: 800;
  font-family: var(--font-title); font-size: 1.05rem; cursor: pointer; box-shadow: var(--q-shadow-cta);
  transition: transform .12s ease, box-shadow .2s ease, opacity .2s; text-align: center; text-decoration: none; }
.quiz-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(var(--electric-rgb),0.40); }
.quiz-cta:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.quiz-cta:focus-visible { outline: 2px solid var(--q-accent); outline-offset: 3px; }

/* ── Intro / cover screen (Screen 0) — tilted image clusters + hook + start CTA ── */
.quiz-intro { text-align: center; }
/* On the cover, hide the empty 0% progress rail so it reads as a landing moment (back button is already hidden at index 0). */
.quiz-top.is-intro .quiz-progress { visibility: hidden; }
.quiz-intro-cards { display: flex; justify-content: center; align-items: center;
  width: 100%; max-width: 640px; margin: 0 auto; pointer-events: none; }
.quiz-intro-cards--top { margin-bottom: clamp(18px, 4vw, 40px); }
.quiz-intro-cards--bottom { margin-top: clamp(22px, 5vw, 48px); }
.quiz-intro-card { flex: none; width: clamp(76px, 13vw, 150px); aspect-ratio: 3 / 4; margin: 0 -13px;
  border-radius: 16px; overflow: hidden; background: var(--q-surface-2); border: 3px solid #fff;
  box-shadow: var(--q-shadow); }
.quiz-intro-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block; }

/* Top cluster — shallow downward fan (outer cards dip + tilt outward). translateY in %
   so vertical offsets scale with card size across breakpoints (no per-media overrides). */
.quiz-intro-cards--top .quiz-intro-card:nth-child(1) { transform: rotate(-13deg) translateY(20%); }
.quiz-intro-cards--top .quiz-intro-card:nth-child(2) { transform: rotate(-5deg)  translateY(3%);  z-index: 2; }
.quiz-intro-cards--top .quiz-intro-card:nth-child(3) { transform: rotate(5deg)   translateY(3%);  z-index: 2; }
.quiz-intro-cards--top .quiz-intro-card:nth-child(4) { transform: rotate(13deg)  translateY(20%); }
/* Bottom cluster — upward "smile" (outer cards rise + tilt outward). */
.quiz-intro-cards--bottom .quiz-intro-card:nth-child(1) { transform: rotate(13deg)  translateY(-20%); }
.quiz-intro-cards--bottom .quiz-intro-card:nth-child(2) { transform: rotate(5deg)   translateY(-3%); z-index: 2; }
.quiz-intro-cards--bottom .quiz-intro-card:nth-child(3) { transform: rotate(-5deg)  translateY(-3%); z-index: 2; }
.quiz-intro-cards--bottom .quiz-intro-card:nth-child(4) { transform: rotate(-13deg) translateY(-20%); }

.quiz-intro-body { max-width: 560px; margin: 0 auto; }
.quiz-intro-title { font-family: var(--font-title); font-weight: 800; font-size: clamp(1.5rem, 6.2vw, 3rem);
  line-height: 1.1; letter-spacing: -0.025em; color: var(--q-ink); text-wrap: balance; overflow-wrap: break-word; }
.quiz-intro-sub { color: var(--q-ink-soft); font-size: 1.08rem; line-height: 1.5; margin: 14px auto 0; max-width: 32em; }
.quiz-intro .quiz-cta { margin-top: 26px; }
.quiz-intro-time { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px;
  color: var(--q-ink-soft); font-size: .92rem; font-weight: 500; }
.quiz-intro-time svg { width: 16px; height: 16px; flex: none; }

/* Center the cover within the viewport on EVERY screen (mobile incl.) so the top &
   bottom whitespace match and the CTA settles into the lower third. min-height (not
   height) lets content still flow/scroll on very short phones instead of clipping.
   Equal padding-block keeps the two margins symmetric. Scoped to the intro via the
   sticky header's .is-intro flag (.quiz-top and #quiz-root are adjacent siblings). */
.quiz-top.is-intro + .quiz-root {
  padding-top: 20px; padding-bottom: 20px;
  min-height: calc(100vh - 48px);    /* 48px ≈ sticky header height on the cover */
  min-height: calc(100dvh - 48px);
  display: flex; flex-direction: column; justify-content: center;
}

@media (max-width: 600px) {
  .quiz-intro-card { width: clamp(60px, 19vw, 88px); margin: 0 -10px; }
  /* Center the cover so the top & bottom whitespace match (inherits justify-content:center
     from the base rule); the wider photos↔title gap keeps the photos reasonably high and
     the CTA in the lower third. */
  .quiz-intro-cards--top { margin-bottom: clamp(36px, 9vh, 84px); }
}

/* Desktop/tablet: bigger photos + headline and a tighter rhythm (vh-aware so the hero
   shrinks on short laptops). Vertical centering is handled by the base rule above. */
@media (min-width: 601px) {
  .quiz-intro-card { width: clamp(100px, 15vh, 160px); margin: 0 -4px; }
  .quiz-intro-cards--top { margin-bottom: clamp(80px, 14vh, 180px); }
  .quiz-intro-cards--bottom { margin-top: clamp(10px, 2.2vh, 28px); }
  .quiz-intro-body { max-width: 680px; }
  .quiz-intro-title { font-size: clamp(1.55rem, 3.4vh, 2.25rem); }
  .quiz-intro-sub { font-size: clamp(.95rem, 1.9vh, 1.08rem); margin-top: clamp(16px, 2.4vh, 28px); }
  .quiz-intro .quiz-cta { margin-top: clamp(22px, 3.2vh, 40px); }
  .quiz-intro-time { margin-top: clamp(10px, 1.6vh, 22px); }
}

/* ── Social proof screen — two columns (text+avatars left, community photo right) ──
   Breaks out of the 680px quiz column to a BetterMe-width row; stacks on mobile. */
.quiz-proofscreen { padding-top: 12px; }
.quiz-proof-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  width: min(1060px, 92vw); margin-left: 50%; transform: translateX(-50%); }
.quiz-proof-left { text-align: left; }
.quiz-avatars { display: flex; margin-bottom: 22px; }
.quiz-avatar { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; border: 3px solid #fff;
  box-shadow: var(--q-shadow-sm); margin-left: -14px; background: var(--q-surface-2); }
.quiz-avatar:first-child { margin-left: 0; }
.quiz-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.quiz-bignum { font-family: var(--font-title); font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.08; letter-spacing: -0.02em; color: var(--q-accent); }
.quiz-bignum-sub { font-size: 1.2rem; color: var(--q-ink); margin-top: 10px; }
.quiz-proof-img { width: 100%; max-height: 440px; object-fit: cover; border-radius: 20px; display: block;
  box-shadow: var(--q-shadow); }
@media (max-width: 600px) {
  .quiz-proof-cols { grid-template-columns: 1fr; gap: 22px; }
  .quiz-proof-left { text-align: center; }
  .quiz-avatars { justify-content: center; }
  /* 8 avatars: shrink + tighten overlap so the row never overflows narrow phones */
  .quiz-avatar { width: 46px; height: 46px; margin-left: -13px; }
  .quiz-proof-img { max-height: 240px; }
}

/* ── Interstitial + consent ── */
.quiz-interstitial { text-align: center; padding-top: 24px; }
.quiz-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: .85rem; color: var(--q-ink-soft); cursor: pointer; }
.quiz-consent input { margin-top: 4px; accent-color: var(--q-accent); width: 17px; height: 17px; flex: none; }

/* ── Readiness gauge + profile ── */
.quiz-gauge { background: var(--q-surface); border: 1px solid var(--q-line); border-radius: 20px; padding: 26px; text-align: center; box-shadow: var(--q-shadow-sm); }
.quiz-gauge-val { font-family: var(--font-title); font-weight: 800; font-size: 1.35rem; margin-bottom: 16px; color: var(--q-ink); }
.quiz-gauge-val span { color: var(--q-accent); }
.quiz-gauge-bar { position: relative; height: 12px; border-radius: 100px;
  background: linear-gradient(90deg, var(--q-warm), #f2c14e, var(--q-teal)); }
.quiz-gauge-ptr { position: absolute; top: -5px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 3px solid var(--q-accent); transform: translateX(-50%); box-shadow: 0 2px 8px rgba(22,22,40,0.20); }
.quiz-gauge-zones { display: flex; justify-content: space-between; font-size: .7rem; color: var(--q-ink-soft); margin-top: 10px; }
.quiz-risk { margin-top: 18px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(var(--warm-rgb),.22);
  background: var(--q-warm-weak); color: #8a3a17; font-size: .95rem; }
.quiz-profile { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.quiz-profile-chip { padding: 13px 15px; border-radius: 14px; background: var(--q-surface-2); border: 1px solid var(--q-line); font-size: .9rem; color: var(--q-ink); }
.quiz-profile-chip b { color: var(--q-ink); }

/* ── Projection ── */
.quiz-projection { background: var(--q-surface); border: 1px solid var(--q-line); border-radius: 20px; padding: 26px; text-align: center; box-shadow: var(--q-shadow-sm); }
.quiz-proj-line { font-size: 1.1rem; color: var(--q-ink); }
.quiz-proj-badge { display: inline-block; margin: 18px 0; padding: 8px 16px; border-radius: 100px;
  background: var(--q-teal-weak); border: 1px solid rgba(11,184,156,.3); color: var(--q-teal); font-weight: 700; }
.quiz-proj-cap { font-size: .9rem; color: var(--q-ink-soft); text-align: center; margin: 18px 0 8px; }
.quiz-proj-chart { position: relative; height: 36px; border-radius: 100px; background: var(--q-line-2); }
.quiz-proj-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 100px;
  background: linear-gradient(90deg, var(--q-warm), var(--q-teal));
  transition: width 1.2s cubic-bezier(.22, .61, .36, 1); }
/* "now" tick, positioned along the 0–100 scale at the current readiness score */
.quiz-proj-now { position: absolute; top: 0; bottom: 0; transform: translateX(-50%); z-index: 2; }
.quiz-proj-now::before { content: ''; position: absolute; top: -4px; bottom: -4px; left: 50%; width: 3px;
  transform: translateX(-50%); border-radius: 3px; background: #fff; box-shadow: 0 0 0 1.5px var(--q-warm); }
/* legend below the bar — left/right so the labels never overlap, whatever the score */
.quiz-proj-legend { display: flex; justify-content: space-between; margin-top: 9px; font-size: .82rem; font-weight: 800; }
.quiz-proj-now-l { color: var(--q-warm); }
.quiz-proj-goal-l { color: var(--q-teal); }
@media (prefers-reduced-motion: reduce) { .quiz-proj-fill { transition: none; } }
.quiz-proj-disc { font-size: .75rem; color: var(--q-ink-soft); margin-top: 14px; }

/* ── Loader ── */
.quiz-loader { text-align: center; padding-top: 34px; }
@property --pct { syntax: '<number>'; inherits: false; initial-value: 0; }
.quiz-ring { width: 150px; height: 150px; margin: 0 auto 24px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-family: var(--font-title); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--q-ink);
  background: conic-gradient(var(--q-accent) calc(var(--pct,0) * 1%), var(--q-line-2) 0); position: relative;
  transition: --pct .24s linear; }
.quiz-ring::before { content: ''; position: absolute; inset: 13px; border-radius: 50%; background: var(--q-bg); }
.quiz-ring span { position: relative; z-index: 1; }
.quiz-proof { margin-top: 20px; font-size: 1.05rem; color: var(--q-ink); }
.quiz-testi { margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--q-surface-2); border: 1px solid var(--q-line); font-size: .9rem; color: var(--q-ink); }

/* ── Section map + reveal blocks ── */
.quiz-map { display: flex; flex-direction: column; gap: 9px; margin: 18px 0; }
.quiz-map-row { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 14px;
  background: var(--q-surface-2); border: 1px solid var(--q-line); color: var(--q-ink); }
.quiz-map-row span { width: 26px; height: 26px; border-radius: 50%; background: var(--q-accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; flex: none; }
.quiz-locked { text-align: center; color: var(--q-ink-soft); margin: 10px 0 20px; }
/* Gate: "prompt ready" locked teaser — text under the blur is a placeholder, not the real prompt */
.quiz-promptlock { position: relative; margin: 18px 0 22px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--q-line); background: var(--q-surface-2); }
.quiz-promptlock-text { padding: 20px; font-size: .9rem; line-height: 1.7; color: var(--q-ink);
  filter: blur(5px); -webkit-filter: blur(5px); user-select: none; pointer-events: none; }
.quiz-promptlock-veil { position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 12px;
  background: rgba(255, 255, 255, .42); }
.quiz-promptlock-badge { font-family: var(--font-title); font-weight: 800; font-size: 1.05rem; color: var(--q-ink); }
.quiz-promptlock-note { font-size: .85rem; color: var(--q-ink-soft); }
/* Reveal: confirmation check */
.quiz-done { width: 64px; height: 64px; margin: 6px auto 16px; border-radius: 50%; background: var(--q-teal);
  color: #fff; font-size: 2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.quiz-block { margin: 24px 0; }
.quiz-block h3 { font-family: var(--font-title); margin-bottom: 10px; color: var(--q-ink); }
.quiz-headline { font-size: 1.2rem; font-weight: 800; color: var(--q-accent); }
.quiz-prompt { white-space: pre-wrap; background: var(--q-surface-2); border: 1px solid var(--q-line); border-radius: 14px;
  padding: 16px; font-size: .85rem; font-family: ui-monospace, monospace; color: var(--q-ink); overflow-x: auto; }
.quiz-copy { margin-top: 12px; padding: 11px 20px; border-radius: 100px; border: 1.5px solid var(--q-accent);
  background: #fff; color: var(--q-accent); cursor: pointer; font-family: var(--font-body); font-weight: 700; transition: background .2s; }
.quiz-copy:hover { background: var(--q-accent-weak); }
.quiz-hint { font-size: .8rem; color: var(--q-ink-soft); margin-top: 6px; }

/* ── Gate form ── */
.quiz-gate-form { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.quiz-err { color: var(--q-warm); font-size: .85rem; font-weight: 600; }

/* ── Now vs goal ── */
.quiz-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quiz-compare-col { padding: 24px; border-radius: 18px; background: var(--q-surface); border: 1px solid var(--q-line); text-align: center; box-shadow: var(--q-shadow-sm); color: var(--q-ink); }
.quiz-compare-col b { display: block; margin-bottom: 8px; color: var(--q-ink-soft); font-size: .85rem; }
.quiz-compare-col.is-goal { border-color: var(--q-accent); background: var(--q-accent-weak); }
.quiz-compare-title { text-align: center; }
.quiz-compare-cap { text-align: center; margin-top: 18px; font-weight: 800; font-family: var(--font-title); color: var(--q-ink); }

/* ── Pitch: features / results / FAQ ── */
.quiz-feats { list-style: none; margin: 18px 0; display: flex; flex-direction: column; gap: 11px; }
.quiz-feats li { padding-left: 30px; position: relative; color: var(--q-ink); }
.quiz-feats li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--q-accent-weak); color: var(--q-accent); font-weight: 800; font-size: .72rem;
  display: inline-flex; align-items: center; justify-content: center; }
.quiz-tw { margin: 22px 0; display: flex; flex-direction: column; gap: 14px; }
.quiz-tcard { padding: 20px; border-radius: 18px; background: var(--q-surface); border: 1px solid var(--q-line); box-shadow: var(--q-shadow-sm); text-align: left; }
.quiz-tba { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; font-size: .8rem; }
.quiz-tb { background: var(--q-warm-weak); color: #8a3a17; padding: 4px 11px; border-radius: 100px; }
.quiz-tarrow { color: var(--q-ink-soft); font-weight: 800; }
.quiz-ta { background: var(--q-teal-weak); color: var(--q-teal); padding: 4px 11px; border-radius: 100px; font-weight: 700; }
.quiz-tstars { color: #f5b301; letter-spacing: 2px; }
.quiz-tquote { color: var(--q-ink); font-size: .95rem; line-height: 1.55; margin-top: 6px; }
.quiz-tauthor { margin-top: 12px; line-height: 1.3; }
.quiz-tauthor b { color: var(--q-ink); font-size: .92rem; }
.quiz-tauthor span { color: var(--q-ink-soft); font-size: .82rem; display: block; }
.quiz-faq { margin: 18px 0; }
.quiz-faq-item { border-bottom: 1px solid var(--q-line); padding: 15px 0; }
.quiz-faq-item summary { cursor: pointer; font-weight: 700; color: var(--q-ink); }
.quiz-faq-item p { margin-top: 8px; color: var(--q-ink-soft); font-size: .95rem; }

@media (max-width: 600px) {
  .quiz-cards, .quiz-profile, .quiz-compare { grid-template-columns: 1fr; }
  .quiz-pcards { grid-template-columns: 1fr 1fr; }
  .quiz-root { padding: 32px 16px 80px; }
}

/* ── AI-level profile (level badge + axis bars) ── */
.quiz-level { text-align: center; margin-bottom: 8px; }
.quiz-level-num { font-family: var(--font-title); font-weight: 800; font-size: 2.4rem; color: var(--q-accent); line-height: 1; }
.quiz-level-num span { color: var(--q-ink-soft); font-size: 1.2rem; }
.quiz-level-label { font-family: var(--font-title); font-weight: 800; font-size: 1.1rem; color: var(--q-ink); margin-top: 4px; }
.quiz-level-headline { text-align: center; margin: 6px auto 22px; max-width: 32em; }
.quiz-axes { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 20px; }
.quiz-axis-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.quiz-axis-name { font-weight: 700; color: var(--q-ink); font-size: .95rem; }
.quiz-axis-val { font-family: var(--font-title); font-weight: 800; color: var(--q-ink-soft); font-size: .9rem; }
.quiz-axis-bar { height: 12px; border-radius: 100px; background: var(--q-line-2); overflow: hidden; }
.quiz-axis-fill { height: 100%; width: 0; border-radius: 100px;
  background: linear-gradient(90deg, var(--q-accent), var(--q-accent-2));
  transition: width 1s cubic-bezier(.22, .61, .36, 1); }
.quiz-axis.is-blind .quiz-axis-name { color: var(--q-warm); }
.quiz-axis.is-blind .quiz-axis-val { color: var(--q-warm); }
.quiz-axis.is-blind .quiz-axis-fill { background: linear-gradient(90deg, var(--q-warm), #ff9466); }
@media (prefers-reduced-motion: reduce) { .quiz-axis-fill { transition: none; } }
