/* ============================================================
   Sumoria Quiz Funnel — "Reclaim the Open Door"
   Warm, premium, dignified. Mobile-first.
   ============================================================ */

:root {
  /* Warm neutrals */
  --bg:        oklch(0.972 0.012 78);
  --bg-2:      oklch(0.945 0.016 70);
  --surface:   oklch(0.995 0.006 85);
  --surface-2: oklch(0.975 0.010 78);
  --ink:       oklch(0.255 0.018 55);
  --ink-soft:  oklch(0.40 0.022 55);
  --muted:     oklch(0.555 0.018 62);
  --line:      oklch(0.885 0.012 72);
  --line-soft: oklch(0.925 0.010 75);

  /* Accents (shared chroma family, varied hue) */
  --clay:       oklch(0.585 0.115 42);
  --clay-deep:  oklch(0.505 0.110 40);
  --clay-tint:  oklch(0.955 0.028 48);
  --clay-line:  oklch(0.80 0.055 45);
  --pine:       oklch(0.435 0.052 168);
  --pine-tint:  oklch(0.955 0.020 168);
  --gold:       oklch(0.715 0.090 78);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --shadow-card: 0 1px 2px oklch(0.4 0.02 60 / 0.04),
                 0 8px 30px oklch(0.4 0.02 60 / 0.07),
                 0 30px 60px oklch(0.4 0.02 60 / 0.05);
  --shadow-soft: 0 2px 10px oklch(0.4 0.02 60 / 0.06);
  --radius: 20px;
  --radius-sm: 14px;
  --col: 30rem; /* narrow column */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -10%, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  min-height: 100dvh;
}

#root { min-height: 100dvh; }

/* ---------- Stage / column ---------- */
.stage {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.shell {
  width: 100%;
  max-width: var(--col);
  min-height: 100dvh;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 540px) {
  .stage { padding: 32px 20px 48px; }
  .shell { min-height: auto; border-radius: 28px; margin-top: 0; }
}

/* ---------- Top bar / progress ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: oklch(0.995 0.006 85 / 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 22px 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.topbar.hidden { display: none; }

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
}

.brand {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--clay);
  display: inline-block;
}

.back-btn {
  appearance: none;
  border: none;
  background: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 8px;
  transition: color 0.2s, opacity 0.2s, transform 0.2s;
}
.back-btn:hover { color: var(--ink); }
.back-btn:active { transform: translateX(-2px); }
.back-btn.invisible { opacity: 0; pointer-events: none; }

.qcount {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--clay);
  white-space: nowrap;
  flex: 0 0 auto;
}
.brand { flex: 1 1 auto; justify-content: center; }
.back-btn { flex: 0 0 auto; }

.progress-track {
  height: 7px;
  width: 100%;
  background: var(--line-soft);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--clay) 0%, oklch(0.66 0.115 55) 100%);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  min-width: 7px;
}
.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.45), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.4s ease-in-out infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(220%); }
}

/* ---------- Screen scroller ---------- */
.screen-wrap {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 30px 24px 40px;
}
@media (min-width: 540px) {
  .screen { padding: 36px 34px 44px; }
}

/* entrance animation */
.screen-enter {
  animation: screenIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes screenIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stagger > * {
  opacity: 0;
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 14px;
}
.eyebrow.pine { color: var(--pine); }

h1.headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 8.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
h2.qhead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(25px, 6.6vw, 31px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}
.subhead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 14px;
  text-wrap: pretty;
}
.subhead.small { font-size: 16px; }

em.serif-em { font-style: italic; }

/* ---------- Opening ---------- */
.hero-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow-soft);
}
.hero-img.contain {
  object-fit: contain;
  background: var(--surface-2);
}
.opening-spacer { flex: 1; min-height: 18px; }

.trustline {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}
.trustline .sep { color: var(--line); }

/* ---------- Buttons ---------- */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: oklch(0.99 0.005 85);
  background: var(--clay);
  padding: 18px 26px;
  border-radius: 99px;
  width: 100%;
  box-shadow: 0 8px 22px oklch(0.585 0.115 42 / 0.32);
  transition: transform 0.18s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: 0 12px 28px oklch(0.585 0.115 42 / 0.38); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-stack { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1.5px solid var(--line);
  font-size: 16px;
  padding: 15px 22px;
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--clay-line); transform: translateY(-1px); box-shadow: none; }

/* ---------- Options ---------- */
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}
.option {
  appearance: none;
  text-align: left;
  font-family: var(--sans);
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 18px 18px 19px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s, background 0.2s, transform 0.14s, box-shadow 0.2s;
  position: relative;
}
.option:hover {
  border-color: var(--clay-line);
  background: var(--clay-tint);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.option:active { transform: scale(0.985); }

.option .marker {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.option.multi .marker { border-radius: 7px; }
.option .marker svg { width: 13px; height: 13px; opacity: 0; transform: scale(0.4); transition: opacity 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1); }

.option.selected {
  border-color: var(--clay);
  background: var(--clay-tint);
  box-shadow: 0 4px 16px oklch(0.585 0.115 42 / 0.14);
}
.option.selected .marker { border-color: var(--clay); background: var(--clay); transform: scale(1.05); }
.option.selected .marker svg { opacity: 1; transform: scale(1); stroke: oklch(0.99 0 0); }

/* tap flash for single-select */
.option.flash { border-color: var(--clay); background: var(--clay-tint); }
.option.flash .marker { border-color: var(--clay); background: var(--clay); }
.option.flash .marker svg { opacity: 1; transform: scale(1); stroke: oklch(0.99 0 0); }

.option-label { flex: 1; }

/* ---------- Interstitials ---------- */
.inter-img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow-soft);
  margin-bottom: 26px;
}
.inter-body {
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.inter-body + .inter-body { margin-top: 16px; }
.inter-body strong { color: var(--ink); font-weight: 700; }

.cond-line {
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  margin-top: 22px;
  padding-left: 18px;
  border-left: 3px solid var(--clay);
  text-wrap: pretty;
}

.inter-lead {
  font-family: var(--serif);
  font-size: clamp(22px, 5.6vw, 26px);
  line-height: 1.3;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 18px;
  text-wrap: balance;
}

/* stat / quote treatment for I1 */
.stat-card {
  background: var(--pine-tint);
  border: 1px solid oklch(0.88 0.02 168);
  border-radius: var(--radius);
  padding: 26px 24px;
  margin-bottom: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 500;
  color: var(--pine);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 8px;
  font-weight: 600;
}

/* reflect card (fast mirror after Q1) */
.reflect-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50dvh;
}
.reflect-card {
  background: var(--clay-tint);
  border: 1px solid var(--clay-line);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  animation: rise 0.6s cubic-bezier(0.22,1,0.36,1) both;
}
.reflect-card .eyebrow { margin-bottom: 16px; }
.reflect-line {
  font-family: var(--serif);
  font-size: clamp(23px, 6vw, 28px);
  line-height: 1.32;
  color: var(--ink);
  text-wrap: balance;
  font-weight: 500;
}

/* quote footer (stars + name) */
.quote-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-left: 30px;
  margin-top: 12px;
}
.quote-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* personalized result recap */
.diag-recap {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--clay);
  border-radius: var(--radius-sm);
  text-wrap: pretty;
}
.diag-recap strong { color: var(--ink); font-weight: 700; }

/* objection pre-handle (from Q7) */
.objection {
  font-family: var(--serif);
  font-size: 18.5px;
  font-style: italic;
  line-height: 1.45;
  color: var(--clay-deep);
  text-align: center;
  margin-top: 18px;
  text-wrap: pretty;
}

/* testimonial cards for I5 */
.quotes { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.quote-card {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 20px 20px 20px 22px;
  position: relative;
}
.quote-card .mark {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 0.6;
  color: var(--clay-line);
  position: absolute;
  top: 16px; left: 16px;
  opacity: 0.5;
}
.quote-card p {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  padding-left: 30px;
}
.stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }

/* ---------- Faced testimonial cards (results) ---------- */
.quote-card.faced {
  padding: 18px 20px 20px;
}
.quote-card.faced .quote-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 13px;
}
.quote-face {
  flex: 0 0 auto;
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 8px oklch(0.40 0.03 50 / 0.18);
}
.quote-card.faced .quote-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.quote-age { color: var(--muted); font-weight: 600; }
.quote-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
}
.verified {
  font-size: 12px;
  font-weight: 700;
  color: var(--pine, oklch(0.50 0.06 155));
  letter-spacing: 0.01em;
}
.quote-card.faced p {
  padding-left: 0;
  font-size: 17px;
}

/* ---------- Inline CTAs (seeded through results) ---------- */
.cta-inline {
  margin: 26px 0 4px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
}
.cta-inline-note {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--clay-deep);
  text-transform: uppercase;
}

/* ---------- Loader ---------- */
.loader-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 30px 60px;
  min-height: 70dvh;
}
.ring-wrap { position: relative; width: 132px; height: 132px; margin-bottom: 34px; }
.ring-wrap svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line-soft); stroke-width: 9; }
.ring-fg {
  fill: none;
  stroke: var(--clay);
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s linear;
}
.ring-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.loader-head {
  font-family: var(--serif);
  font-size: clamp(24px, 6.5vw, 29px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 18px;
}
.loader-micro {
  font-size: 16px;
  color: var(--muted);
  font-weight: 600;
  min-height: 24px;
  transition: opacity 0.4s;
}

/* ---------- Results ---------- */
.result-hero {
  margin: -30px -24px 0;
  position: relative;
  background: var(--surface-2);
  padding: 30px 24px 26px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 540px) { .result-hero { margin: -36px -34px 0; padding: 34px 34px 28px; } }
.result-hero img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin: 6px auto 0;
  display: block;
}
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pine);
  background: var(--pine-tint);
  border: 1px solid oklch(0.88 0.02 168);
  padding: 7px 14px;
  border-radius: 99px;
}
.diagnosis {
  margin-top: 28px;
}
.diag-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.diag-name {
  font-family: var(--serif);
  font-size: clamp(30px, 8vw, 39px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 8px;
  text-wrap: balance;
}
.diag-read {
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-top: 18px;
  text-wrap: pretty;
}
.verdict {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  margin-top: 26px;
  padding: 22px 22px;
  background: var(--clay-tint);
  border-radius: var(--radius);
  text-wrap: pretty;
}
.verdict strong { font-style: italic; color: var(--clay-deep); }

.divider {
  height: 1px;
  background: var(--line);
  margin: 34px 0 0;
  position: relative;
}
.divider span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.prescribe-head {
  font-family: var(--serif);
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin-top: 38px;
  text-wrap: balance;
}
.prescribe-sub { font-size: 17px; color: var(--ink-soft); margin-top: 10px; line-height: 1.55; }

.benefits { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.benefit .ico {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--clay-tint);
  color: var(--clay-deep);
  display: grid; place-items: center;
}
.benefit .ico svg { width: 22px; height: 22px; }
.benefit-spec { font-size: 16.5px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.benefit-copy { font-size: 15.5px; color: var(--ink-soft); margin-top: 3px; line-height: 1.45; }

.spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.spec-chip {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  padding: 8px 14px;
}

.brush-block {
  margin-top: 34px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.brush-block img { width: 100%; border-radius: var(--radius-sm); display: block; }
.brush-cap {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 16px;
  line-height: 1.4;
  text-wrap: pretty;
}

.risk {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  background: var(--pine-tint);
  border: 1px solid oklch(0.88 0.02 168);
  border-radius: var(--radius);
  padding: 20px;
}
.risk .ico { color: var(--pine); flex: 0 0 auto; }
.risk strong { color: var(--ink); }

.cta-block { margin-top: 30px; position: sticky; bottom: 0; }
.cta-fine {
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-wrap: balance;
}

.restart {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin: 30px auto 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s;
}
.restart:hover { color: var(--clay); }

.center { text-align: center; }
.fill { flex: 1; }

/* sticky CTA bar that appears on results scroll */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 120%);
  width: 100%;
  max-width: var(--col);
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: oklch(0.995 0.006 85 / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  z-index: 40;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.sticky-cta.show { transform: translate(-50%, 0); }
.sticky-cta .btn { font-size: 17px; padding: 16px; }

/* ---------- "Almost there" nudge ---------- */
.nudge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--clay-deep);
  background: var(--clay-tint);
  border: 1px solid var(--clay-line);
  border-radius: 99px;
  padding: 7px 14px 7px 12px;
  margin-bottom: 18px;
  animation: rise 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
.nudge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 0 oklch(0.585 0.115 42 / 0.5);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.585 0.115 42 / 0.45); }
  70% { box-shadow: 0 0 0 7px oklch(0.585 0.115 42 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.585 0.115 42 / 0); }
}

/* ---------- Fact card (Q8) ---------- */
.factcard {
  background: var(--ink);
  color: oklch(0.96 0.008 80);
  border-radius: var(--radius);
  padding: 22px 22px 8px;
  margin-bottom: 26px;
  box-shadow: 0 14px 34px oklch(0.30 0.04 50 / 0.22);
  animation: rise 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
.factcard-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--clay-soft, oklch(0.74 0.09 45));
  margin-bottom: 10px;
}
.factcard-text {
  font-family: var(--serif);
  font-size: clamp(18px, 4.8vw, 21px);
  line-height: 1.34;
  font-weight: 500;
  color: oklch(0.97 0.006 80);
  margin-bottom: 18px;
  text-wrap: pretty;
}
.factcard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  border-top: 1px solid oklch(0.99 0 0 / 0.12);
  padding-top: 14px;
  margin: 0 -4px;
}
.factstat {
  text-align: center;
  padding: 4px 6px 14px;
  position: relative;
}
.factstat + .factstat::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 14px;
  width: 1px;
  background: oklch(0.99 0 0 / 0.12);
}
.factstat-num {
  font-family: var(--serif);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 600;
  line-height: 1;
  color: oklch(0.82 0.10 48);
  letter-spacing: -0.01em;
}
.factstat-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.28;
  color: oklch(0.80 0.012 80);
  margin-top: 9px;
}

/* ---------- Time-math card (cmath) ---------- */
.mathcard {
  background: var(--ink);
  color: oklch(0.96 0.008 80);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  margin: 6px 0 22px;
  box-shadow: 0 16px 38px oklch(0.30 0.04 50 / 0.24);
  text-align: center;
  animation: rise 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
.math-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.math-chip {
  font-size: 14px;
  font-weight: 700;
  color: oklch(0.92 0.01 80);
  background: oklch(0.99 0 0 / 0.10);
  border: 1px solid oklch(0.99 0 0 / 0.14);
  border-radius: 99px;
  padding: 8px 15px;
}
.math-x { font-family: var(--serif); font-size: 20px; color: oklch(0.80 0.10 48); font-weight: 600; }
.math-hero { padding: 6px 0 14px; }
.math-num {
  font-family: var(--serif);
  font-size: clamp(58px, 17vw, 88px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: oklch(0.84 0.11 50);
  animation: rise 0.6s cubic-bezier(0.22,1,0.36,1) 0.15s both;
}
.math-unit {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: oklch(0.82 0.012 80);
  margin-top: 10px;
}
.math-days {
  font-family: var(--serif);
  font-size: clamp(19px, 5vw, 23px);
  line-height: 1.3;
  color: oklch(0.97 0.006 80);
  border-top: 1px solid oklch(0.99 0 0 / 0.13);
  padding-top: 16px;
}
.math-days strong { color: oklch(0.86 0.11 52); font-weight: 600; }

/* ---------- Yes / No ---------- */
.yesno {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
}
.yesno-btn {
  appearance: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px 22px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, transform 0.14s, box-shadow 0.2s, color 0.2s;
}
.yesno-btn:hover {
  border-color: var(--clay-line);
  background: var(--clay-tint);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.yesno-btn:active { transform: scale(0.99); }
.yesno-btn.flash {
  border-color: var(--clay);
  background: var(--clay);
  color: oklch(0.99 0.005 85);
  box-shadow: 0 8px 22px oklch(0.585 0.115 42 / 0.30);
}

/* ---------- Image-select grid ---------- */
.img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.img-card {
  appearance: none;
  cursor: pointer;
  font-family: var(--sans);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s, background 0.2s, transform 0.14s, box-shadow 0.2s;
}
.img-card:hover {
  border-color: var(--clay-line);
  background: var(--clay-tint);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.img-card:active { transform: scale(0.985); }
.img-ico {
  width: 46px; height: 46px;
  color: var(--clay-deep);
  display: grid; place-items: center;
  transition: transform 0.25s, color 0.2s;
}
.img-ico svg { width: 100%; height: 100%; }
.img-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}
.img-card.flash {
  border-color: var(--clay);
  background: var(--clay-tint);
  box-shadow: 0 6px 20px oklch(0.585 0.115 42 / 0.20);
}
.img-card.flash .img-ico { transform: scale(1.12); }

/* ---------- Number picker ---------- */
.numpick {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 36px;
}
.num-step {
  flex: 0 0 auto;
  width: 64px;
  appearance: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: var(--clay-deep);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s, background 0.18s, transform 0.1s, color 0.18s;
  touch-action: manipulation;
  user-select: none;
}
.num-step:hover { border-color: var(--clay-line); background: var(--clay-tint); }
.num-step:active { transform: scale(0.95); background: var(--clay); color: oklch(0.99 0 0); }
.num-step:disabled { opacity: 0.35; cursor: default; }
.num-step:disabled:hover { border-color: var(--line); background: var(--surface); }
.num-display {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 16px 8px;
}
.num-val {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  color: var(--clay);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.num-unit {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.num-quick {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.num-chip {
  flex: 1;
  appearance: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 11px 4px;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.1s;
}
.num-chip:hover { border-color: var(--clay-line); background: var(--clay-tint); }
.num-chip:active { transform: scale(0.96); }
.num-chip.active {
  border-color: var(--clay);
  background: var(--clay);
  color: oklch(0.99 0 0);
}

/* ---------- Slider ---------- */
.slider-wrap { margin-top: 36px; }
.slider-readout {
  text-align: center;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 22px;
}
.slider-num {
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 500;
  line-height: 1;
  color: var(--clay);
  letter-spacing: -0.02em;
}
.slider-out { font-size: 20px; font-weight: 700; color: var(--muted); }
.slider-track-wrap { padding: 6px 2px; }
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--clay) 0%, var(--clay) var(--pct, 60%), var(--line-soft) var(--pct, 60%), var(--line-soft) 100%);
  outline: none;
  cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--clay);
  box-shadow: 0 4px 14px oklch(0.585 0.115 42 / 0.30);
  cursor: grab;
  transition: transform 0.15s;
}
.slider::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
.slider::-moz-range-thumb {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--clay);
  box-shadow: 0 4px 14px oklch(0.585 0.115 42 / 0.30);
  cursor: grab;
}
.slider-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.btn.dim { opacity: 0.5; }
.btn.dim:hover { transform: none; }

/* ---------- Card headline ---------- */
.card-head {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 7vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: 14px;
  text-wrap: balance;
}

/* ---------- Results: Hosting toll band ---------- */
.toll {
  margin: -30px -24px 6px;
  padding: 26px 24px 26px;
  background: linear-gradient(180deg, var(--clay-tint), var(--surface-2));
  border-bottom: 1px solid var(--clay-line);
}
@media (min-width: 540px) { .toll { margin: -36px -34px 6px; padding: 30px 34px; } }
.vision-lead {
  text-align: center;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.toll-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.toll-tile {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 16px 8px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.toll-tile.hero {
  grid-column: 1 / -1;
  background: var(--ink);
  border-color: var(--ink);
  padding: 22px 14px;
  box-shadow: 0 12px 30px oklch(0.30 0.04 50 / 0.22);
}
.toll-value {
  font-family: var(--serif);
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 500;
  color: var(--clay-deep);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.toll-tile.hero .toll-value {
  font-size: clamp(44px, 13vw, 60px);
  font-weight: 600;
  color: oklch(0.84 0.11 50);
  letter-spacing: -0.03em;
}
.toll-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.25;
}
.toll-tile.hero .toll-label {
  font-size: 12.5px;
  color: oklch(0.82 0.012 80);
  margin-top: 10px;
}

/* ---------- Results: proof block ---------- */
.proof { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.06s !important; }
}
