/* =====================================================================
   Unchaind funnel — design system
   ===================================================================== */
:root {
  /* Brand */
  --bg-dark: #2c155d;
  --bg-light: #fbf1ec;
  --bg-quiz-top: #f3e5ec;          /* pink-ish */
  --bg-quiz-bot: #fde6d4;          /* cream */
  --bg-quiz-mid: #ecedf0;

  --ink: #0c0c10;                  /* near-black for buttons (Figma) */
  --purple-deep: #2d1369;
  --purple-ink: #152256;

  --accent: #f97316;
  --green: #4caf6e;

  --text: #1a1d2b;
  --muted: #6b6d83;
  --muted-light: rgba(255,255,255,.78);
  --white: #ffffff;

  /* Shape */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-card: 0 2px 6px rgba(20,30,70,.05), 0 10px 24px rgba(20,30,70,.04);
  --shadow-card-strong: 0 2px 8px rgba(20,30,70,.08), 0 16px 36px rgba(20,30,70,.10);

  /* Safe areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Typography */
  --ff-display: "Fraunces", "Recoleta", Georgia, serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Sizing */
  --content-max: 480px;
  --topbar-h: 72px;
  --content-gap: 28px;
}

* , *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  overflow-x: hidden;
  transition: background-color .7s cubic-bezier(.32,.04,.18,1), background .7s cubic-bezier(.32,.04,.18,1);
}
body.theme--dark { background: var(--bg-dark); color: var(--white); }
body.theme--quiz { background: #f4f1fa; color: var(--text); }   /* flat clean lavender(our color) */
/* Cross-fade theme swaps (dark ↔ quiz ↔ light) instead of hard color snaps */
body { transition: background-color .45s ease, color .45s ease; }

/* Body-level mountains for dark theme only. Ped-light uses a pure
   diagonal gradient per Figma 80:647 — no mountains. */
body.theme--dark::before {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  pointer-events: none;
  z-index: 0;
  height: 60vh;
  background:
    linear-gradient(to top, transparent 78%, var(--bg-dark) 100%),
    url("assets/mountains.png") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 50%, transparent 95%);
          mask-image: linear-gradient(to top, #000 0%, #000 50%, transparent 95%);
}
/* Hide per-screen mountains in pedagogy — body handles them now */
.screen[data-step^="pedagogy-"] .bg-mountains,
.screen[data-step^="pedagogy-"] .bg-mountains--light { display: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* =====================================================================
   Top bar (fixed at top, follows body theme)
   ===================================================================== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  padding: calc(var(--safe-top) + 12px) 20px 6px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
  z-index: 30;
  background: transparent;
}
/* Solid backdrop on prepaywall only — long scroll, content goes under topbar */
body.theme--prepaywall .topbar {
  background: rgba(251,242,236,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
/* Lock grid positions so brand stays centered even when back is hidden */
.topbar .topbar-back { grid-column: 1; }
.brand                { grid-column: 2; }
.topbar-step          { grid-column: 3; }
.topbar[hidden] { display: none; }
.topbar .iconbtn {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  color: currentColor;
  transition: background .18s ease;
}
.topbar .iconbtn:hover { background: rgba(0,0,0,.06); }
body.theme--dark .topbar .iconbtn:hover { background: rgba(255,255,255,.08); }
.topbar .iconbtn[hidden] { display: none; }

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}
.brand-name { line-height: 1; }
body.theme--dark .brand,
body.theme--dark .topbar .iconbtn { color: var(--white); }
body:not(.theme--dark) .brand,
body:not(.theme--dark) .topbar .iconbtn { color: var(--ink); }

.topbar-step {
  justify-self: end;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 13px;
  padding-right: 4px;
  color: currentColor;
}
.topbar-step[hidden] { display: none; }

/* Progress bar (right below topbar) */
.topbar-progress {
  position: fixed;
  top: calc(var(--topbar-h) - 8px);
  left: 20px; right: 20px;
  height: 6px;
  z-index: 29;
  background: rgba(0,0,0,.08);
  border-radius: 999px;
  overflow: hidden;
}
body.theme--dark .topbar-progress { background: rgba(255,255,255,.15); }
.topbar-progress[hidden] { display: none; }
.topbar-progress .bar-fill {
  height: 100%;
  width: var(--p, 0%);
  background: var(--ink);
  border-radius: 999px;
  transition: width .55s cubic-bezier(.2,.7,.2,1);
}
body.theme--dark .topbar-progress .bar-fill { background: var(--white); }

/* =====================================================================
   App + screen layout
   ===================================================================== */
.app {
  position: relative;
  width: 100%;
  min-height: 100dvh;
}

.screen {
  display: none;
  flex-direction: column;
  width: 100%;
  min-height: 100dvh;
  padding-top: calc(var(--safe-top) + var(--topbar-h) + 24px);
  padding-bottom: calc(var(--safe-bottom) + 12px);
  overflow-x: hidden;
}
.screen[data-topbar="hide"] { padding-top: var(--safe-top); }
.screen.is-active {
  display: flex;
  position: relative;
  z-index: 2;
  animation: screenFade .5s cubic-bezier(.22,.61,.36,1);
}
.screen.is-leaving {
  display: flex;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  animation: screenFadeOut .35s forwards cubic-bezier(.22,.61,.36,1);
}
/* Quiz: kill cross-fade — body bg is constant across all quiz screens, so a
   direct content swap (no positioning trick) feels snappy with no flash. */
.screen[data-step^="quiz-"].is-active   { animation: none; }
.screen[data-step^="quiz-"].is-leaving  { display: none; animation: none; }
/* Welcome-plan ↔ Plan-reveal share the church image — instant swap so the
   image stays put while only the text changes. */
.screen[data-step="welcome-plan"].is-active,
.screen[data-step="plan-reveal"].is-active   { animation: none; }
.screen[data-step="welcome-plan"],
.screen[data-step="plan-reveal"] { padding-top: 0; padding-bottom: 0; }
.screen[data-step="welcome-plan"] .pedagogy,
.screen[data-step="plan-reveal"] .pedagogy { padding-top: 0; padding-bottom: 0; }
.screen[data-step="welcome-plan"].is-leaving,
.screen[data-step="plan-reveal"].is-leaving  { display: none !important; animation: none !important; }
.screen[data-step="welcome-plan"].is-active .hero-img,
.screen[data-step="plan-reveal"].is-active .hero-img { animation: none !important; }
/* Quiz content glides in from the right (native funnel feel) — short and
   horizontal so the 320ms auto-advance never feels jumpy. */
.screen[data-step^="quiz-"].is-active .quiz > * {
  animation: quizSlide .28s cubic-bezier(.22,.61,.36,1) both !important;
}
.screen[data-step^="quiz-"].is-active .quiz > .options { animation-delay: .05s !important; }
.screen[data-step^="quiz-"].is-active .quiz-anon { animation: quizFade .34s ease both; }
@keyframes quizSlide {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes quizFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .screen[data-step^="quiz-"].is-active .quiz > * { animation: quizFade .2s ease both !important; }
}
@keyframes screenFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes screenFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
/* Soft fade-in on inner content. CTA stays put for seamless feel. */
.screen.is-active .quiz > .quiz-eyebrow,
.screen.is-active .quiz > .quiz-question,
.screen.is-active .quiz > .sub,
.screen.is-active .quiz > .options,
.screen.is-active .quiz > .finally-form,
.screen.is-active .welcome,
.screen.is-active .content,
.screen.is-active .pedagogy > *,
.screen.is-active .paywall,
.screen.is-active .scratch-screen,
.screen.is-active .loader {
  animation: contentIn .5s cubic-bezier(.22,.61,.36,1);
}
.screen.is-active .quiz > .quiz-question { animation-delay: .04s; }
.screen.is-active .quiz > .sub            { animation-delay: .06s; }
.screen.is-active .quiz > .options        { animation-delay: .08s; }
.screen.is-active .quiz > .finally-form   { animation-delay: .08s; }
@keyframes contentIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Screens are transparent — body handles theme bg, so same-theme transitions
   don't flash the background */
.screen--dark      { color: var(--white); position: relative; }
.screen--light     { color: var(--text);  position: relative; }
.screen--quiz      { color: var(--text);  position: relative; }
.screen--ped-light { color: var(--text);  position: relative; }
body.theme--ped-light {
  background: linear-gradient(143.2deg, #fff3f1 2.93%, #ffb664 89.59%) fixed;
  color: var(--text);
}
/* Restore top padding override for "hide" topbar screens */
.screen[data-topbar="hide"] { padding-top: var(--safe-top); }

/* Mountains bg (on dark screens) */
.bg-mountains {
  position: absolute;
  inset: auto 0 0 0;
  height: 60vh;
  max-height: 720px;
  background:
    linear-gradient(to top, transparent 78%, var(--bg-dark) 100%),
    url("assets/mountains.png") center bottom / cover no-repeat;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Light variant — only bottom portion (real mountains), fades to transparent */
.bg-mountains--light {
  position: absolute;
  inset: auto 0 0 0;
  height: 44vh;
  max-height: 520px;
  background: url("assets/mountains.png") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 55%, transparent 100%);
          mask-image: linear-gradient(to top, #000 0%, #000 55%, transparent 100%);
  opacity: .85;
  z-index: 0;
  pointer-events: none;
}
/* Same soft mask for dark mountains so it doesn't band sharply either */
.screen--dark .bg-mountains {
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 50%, transparent 95%);
          mask-image: linear-gradient(to top, #000 0%, #000 50%, transparent 95%);
}
/* Soft sun glow behind mountains on welcome screen */
.screen[data-step="welcome"] .bg-mountains::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: clamp(280px, 70vw, 560px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle at center,
    rgba(255,170,90,.55) 0%,
    rgba(255,140,60,.22) 26%,
    transparent 60%);
  filter: blur(8px);
  animation: sunGlow 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sunGlow {
  0%, 100% { opacity: .55; transform: translateX(-50%) scale(1); }
  50%      { opacity: .95; transform: translateX(-50%) scale(1.08); }
}

/* Inner column — same width for all screens */
.welcome, .pedagogy, .quiz, .content, .loader, .paywall, .scratch-screen {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* =====================================================================
   Typography
   ===================================================================== */
.display {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(40px, 10vw, 52px);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0;
}
.display.sm { font-size: clamp(28px, 6.5vw, 34px); line-height: 1.1; }

.eyebrow {
  font-family: var(--ff-display);
  font-size: clamp(17px, 4vw, 20px);
  margin: 0 0 4px;
}
.lede {
  font-size: clamp(15px, 4vw, 17px);
  line-height: 1.45;
  margin: 14px 0 0;
  color: rgba(255,255,255,.78);
  max-width: 36ch;
}
.screen--light .lede,
.screen--quiz .lede,
.screen--ped-light .lede { color: var(--muted); }
.screen--ped-light, .screen--ped-light .display, .screen--ped-light .display.sm { color: var(--text); }

.muted { color: var(--muted); margin: 6px 0 14px; font-size: 15px; }
.muted-light { color: rgba(255,255,255,.72); margin: 6px 0 14px; font-size: 15px; }

.sub { margin: -4px 0 14px; font-size: 14px; color: var(--muted); }

/* =====================================================================
   Welcome
   ===================================================================== */
.welcome {
  flex: 1;
  padding: clamp(56px, 14vh, 112px) 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 0;
}
.welcome[hidden] { display: none; }
.welcome--center { justify-content: center; padding: 24px 24px; }
.welcome-logo {
  width: 72px;
  height: 72px;
  margin: 0 0 28px;
  display: block;
  object-fit: contain;
}

/* Welcome: no entry animation — static layout */
.screen[data-step="welcome"].is-active * { animation: none !important; }

.welcome-stage {
  margin-top: auto;
  position: relative;
  width: 100%;
  min-height: 210px;
}
.welcome-variant {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  transform: scale(.98);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.welcome-variant.is-active { opacity: 1; transform: none; }
.welcome-variant.chips { flex-direction: column; gap: 10px; align-items: center; }
.welcome-variant.cards {
  gap: 14px;
  justify-content: center;
  align-items: flex-end;
  padding: 0 4px;
}

/* Staggered chip entry on initial mount */
.screen[data-step="welcome"].is-active .welcome-variant.chips.is-active .chip {
  animation: chipIn .7s both cubic-bezier(.2,.7,.2,1);
}
.screen[data-step="welcome"].is-active .welcome-variant.chips.is-active .chip:nth-child(1) { animation-delay: 1.20s; }
.screen[data-step="welcome"].is-active .welcome-variant.chips.is-active .chip:nth-child(2) { animation-delay: 1.32s; }
.screen[data-step="welcome"].is-active .welcome-variant.chips.is-active .chip:nth-child(3) { animation-delay: 1.44s; }
@keyframes chipIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-top: auto;          /* push to bottom of welcome */
  padding-top: 24px;
  padding-bottom: 32px;
  width: 100%;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: rgba(20, 27, 65, .42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-pill);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
}
.chip img { width: 22px; height: 22px; }

.ic-card {
  width: 28%;
  min-width: 100px;
  background: rgba(20,27,65,.46);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--white);
}
.ic-card--lg {
  transform: translateY(-12px);
  background: rgba(20,27,65,.6);
}
.ic-card__img { width: 32px; height: 32px; }
.ic-card__label { font-size: 12px; line-height: 1.3; font-weight: 500; }

/* =====================================================================
   Quiz layout
   ===================================================================== */
.quiz {
  flex: 1;
  min-height: 0;
  padding: clamp(56px, 14vh, 130px) 22px 16px;  /* fixed top offset = question sits at the SAME spot on every screen */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(14px, 2.4vh, 22px);
}
/* Hide "Question #N" eyebrow on quiz screens — the question itself speaks */
.screen[data-step^="quiz-"] .quiz-eyebrow { display: none; }
.quiz > .sub { margin: -4px 0 4px; }
.quiz--center { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }

.quiz-eyebrow {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(22px, 6vw, 28px);
  text-align: center;
  color: var(--ink);
  margin: 0;
  min-height: 36px;            /* lock height to avoid layout shift */
  letter-spacing: -.02em;
}
.quiz-question {
  font-family: var(--ff-body);
  font-weight: 800;
  font-size: clamp(21px, 5.6vw, 26px);
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0;
  text-align: center;            /* centered */
  min-height: calc(1.25em * 2);  /* always reserve room for 2 lines */
}
.screen--quiz .section-label,
.quiz > .section-label { display: block; text-align: center; width: 100%; }

.finally-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.finally {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;   /* center the whole group — no dead space */
  text-align: center;
  gap: 14px;
  padding: 0;
  flex: 1;
  min-height: 0;
}
.screen[data-step="finally"] .finally-awards { margin: 24px auto 0; max-width: 230px; }
.finally-hero {
  margin: 0 0 14px;
}
.finally-hero-img {
  width: 110px !important;
  height: 110px !important;
  margin: 0 !important;
}
.finally-title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(20px, 4.6vw, 24px);
  line-height: 1.25;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 30ch;
}
.finally-sub { display: none; }
.finally-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  padding-left: 4px;
  letter-spacing: .02em;
}
.finally-input {
  width: 100%;
  font-size: 17px;
  padding: 18px 20px;
}
.finally-input:focus { outline: 2px solid var(--purple-deep); }
.finally-awards {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: auto auto 0;
  opacity: .9;
}
.finally-anon { margin: 18px 0 12px; padding: 0; }
/* Finally page — must fit viewport without scroll */
.screen[data-step="finally"] { overflow: hidden; }
.screen[data-step="finally"] .quiz {
  padding: 12px 24px 0;
  gap: 0;
  justify-content: center;
}
.text-input {
  width: 100%;
  padding: 16px 18px;
  background: #fff;
  border: 0;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  font-size: 16px;
  color: var(--ink);
}
.text-input::placeholder { color: #9b9caa; }
.text-input:focus { outline: 2px solid rgba(45,19,105,.35); outline-offset: 2px; }

/* =====================================================================
   Numbered options (quiz) — match Figma cards
   ===================================================================== */
.options {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vh, 12px);
}
.option {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: clamp(11px, 1.5vh, 15px) 18px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20,30,70,.04), 0 10px 24px rgba(20,30,70,.09);
  border: 1.5px solid transparent;
  text-align: left;
  transition: border-color .18s ease, transform .12s ease, box-shadow .18s ease, background-color .18s ease;
  letter-spacing: -.005em;
  -webkit-tap-highlight-color: transparent;
}
.options--numbered .option { padding-left: 14px; }
.options--icon .option,
.options--multi .option { grid-template-columns: 32px 1fr auto; }
.option:active { transform: scale(.985); }
.option.is-selected {
  background: #8a7adb;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(45,19,105,.28);
}
.option.is-selected .opt-num {
  background: #fff;
  color: #3b2270;
}
.option.is-selected .opt-check { color: #fff; }

.opt-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #efe9f7;
  color: #3b2270;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background .18s, color .18s;
}
.opt-emoji {
  font-size: 22px;
  line-height: 1;
}
.opt-icon {
  width: 32px; height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.opt-label { line-height: 1.3; }

/* "What has porn taken from you?" — 6 options, must fit without scroll */
.screen[data-step="quiz-11"] .quiz { padding: clamp(10px, 2.5vh, 24px) 22px 12px; gap: clamp(10px, 1.8vh, 16px); justify-content: flex-start; }
.screen[data-step="quiz-11"] .quiz > .sub { margin: -2px 0 2px; }
.screen[data-step="quiz-11"] .options { gap: clamp(7px, 1.2vh, 10px); }
.screen[data-step="quiz-11"] .option { padding: clamp(9px, 1.4vh, 13px) 16px; }
.screen[data-step="quiz-11"] .opt-icon { width: 26px; height: 26px; }

/* Goals page — must fit viewport without scroll, use available space */
.screen[data-step="goals"] { overflow: hidden; }
.screen[data-step="goals"] .quiz { gap: 16px; padding: 8px 24px 12px; min-height: 0; justify-content: flex-start; }
.screen[data-step="goals"] .quiz-eyebrow { display: none; }
.screen[data-step="goals"] .options { gap: 10px; flex: 1; justify-content: flex-start; }
.screen[data-step="goals"] .option { padding: 14px 18px; font-size: 16px; }
.screen[data-step="goals"] .opt-icon { width: 32px; height: 32px; }
/* Compact the goals screen on short viewports so all 6 options + CTA
   fit without scrolling (real phones report ~660px with browser chrome) */
@media (max-height: 760px) {
  .screen[data-step="goals"] { padding-top: calc(var(--safe-top) + var(--topbar-h) + 8px); }
  .screen[data-step="goals"] .quiz { gap: 12px; padding: 4px 24px 8px; }
  .screen[data-step="goals"] .sub { margin: 0; }
  .screen[data-step="goals"] .options { gap: 8px; }
  .screen[data-step="goals"] .option { padding: 12px 18px; font-size: 15px; border-radius: 16px; }
  .screen[data-step="goals"] .opt-icon { width: 26px; height: 26px; }
  .screen[data-step="goals"] .cta-bar { padding-top: 8px; padding-bottom: calc(10px + var(--safe-bottom)); }
}
@media (max-height: 620px) {
  .screen[data-step="goals"] .quiz { gap: 8px; }
  .screen[data-step="goals"] .sub { display: none; }
  .screen[data-step="goals"] .options { gap: 6px; }
  .screen[data-step="goals"] .option { padding: 9px 16px; font-size: 14px; }
  .screen[data-step="goals"] .opt-icon { width: 22px; height: 22px; }
}

/* "Your responses are anonymous" footer above the CTA on quiz screens */
.quiz-anon {
  display: none;  /* anonymity is established up front; repeating it on every step wastes space */
}
.opt-check {
  width: 24px; height: 24px;
  display: inline-grid;
  place-items: center;
  opacity: 0;
  transition: opacity .15s ease;
  color: var(--ink);
}
.opt-check::before {
  content: "✓";
  font-weight: 700;
  font-size: 16px;
}
/* Once an SVG check is injected on selection, drop the static ✓ fallback */
.opt-check:has(svg)::before { content: none; }
.opt-check svg { width: 18px; height: 18px; display: block; }
.opt-check svg path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.option.is-selected .opt-check { opacity: 1; }
/* Selection = reward: the check draws itself in + the option springs */
.option.is-selected .opt-check svg path {
  animation: optCheckDraw .3s .04s cubic-bezier(.65,0,.35,1) forwards;
}
.option.is-selected { animation: optPop .34s cubic-bezier(.34,1.56,.64,1); }
@keyframes optCheckDraw { to { stroke-dashoffset: 0; } }
@keyframes optPop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .option.is-selected { animation: none; }
  .option.is-selected .opt-check svg path { animation: none; stroke-dashoffset: 0; }
}

/* =====================================================================
   CTA bar — no background, sits at bottom of flex column
   ===================================================================== */
.cta-bar {
  flex-shrink: 0;
  margin: 0 auto;
  width: 100%;
  max-width: calc(var(--content-max) + 36px);
  padding: 12px 18px calc(16px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: transparent;
  position: relative;
  z-index: 5;
}
.cta-bar[hidden] { display: none; }

/* Single-select auto-advance → hide cta */
.screen:has(.options--numbered[data-required]:not(.options--multi)) .cta-bar { display: none; }

.cta-fineprint { font-size: 12px; color: var(--muted); text-align: center; margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 18px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.01em;
  transition: transform .12s ease, opacity .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn--primary {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.btn--dark {
  background: var(--purple-deep);
  color: var(--white);
}
.btn--ink {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.btn--ink:hover { background: #1a1a22; }
/* On light quiz screens, the enabled Continue is black (greys out when disabled) */
.screen--quiz .cta-bar .btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.20);
}
.btn[disabled],
.btn.is-disabled {
  background: #e4e2ec !important;
  color: #a7a3b6 !important;
  box-shadow: none !important;
  opacity: 1;
  pointer-events: none;
}
.btn:active { transform: scale(.985); }
.btn .arrow { font-weight: 500; }
.btn--block { width: 100%; }

/* Circle arrow icon on dark/ink CTAs */
.cta-circle {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  font-size: 16px;
  margin-left: 2px;
}

/* =====================================================================
   Loader (simplified — no glow, no halo)
   ===================================================================== */
.loader {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 24px 64px;
  gap: 14px;
}
.loader .display { margin: 0; text-shadow: 0 2px 16px rgba(0,0,0,.4); }

/* 4-step loader */
.loader-title {
  font-family: var(--ff-body); font-weight: 800;
  font-size: clamp(22px, 5.8vw, 27px); letter-spacing: -.02em;
  color: #fff; margin: 0; text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.loader-pct { font-family: var(--ff-display); font-size: 40px; font-weight: 600; color: #fff; margin: 6px 0 0; }
.loader-bar {
  width: 100%; max-width: 320px; height: 8px;
  background: rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; margin: 4px auto 8px;
}
.loader-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #ffb37a, #ff5a3c); border-radius: 999px;
  transition: width .3s linear;
}
.loader-steps {
  list-style: none; padding: 0; margin: 10px auto 6px;
  width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 14px;
}
.loader-steps li {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 14px; color: rgba(255,255,255,.6); transition: color .3s; text-align: left;
}
.loader-steps li.is-active, .loader-steps li.is-done { color: #fff; }
.ls-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ls-pct { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; color: inherit; opacity: .9; }
.ls-track { width: 100%; height: 6px; background: rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; }
.ls-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffb37a, #ff5a3c); border-radius: 999px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader > p {
  color: #fff;
  opacity: .9;
  font-size: 15px;
  margin: 0;
  letter-spacing: .01em;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.ring {
  position: relative;
  width: clamp(200px, 56vw, 260px);
  aspect-ratio: 1;
  margin-bottom: 24px;
}
.ring svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
  display: block;
}
.ring-bg {
  fill: none;
  stroke: rgba(255,255,255,.12);
  stroke-width: 12;
}
.ring-fg {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 528;          /* 2π·84 */
  stroke-dashoffset: 528;
  transition: stroke-dashoffset .9s cubic-bezier(.2,.7,.2,1);
}
.ring-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: -.02em;
}
.ring-num {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  white-space: nowrap;
}
.ring-num [data-counter] { font-size: clamp(48px, 11vw, 64px); }
.ring-num .pct-sign      { font-size: clamp(22px, 5vw, 28px); margin-left: 1px; opacity: .85; }

/* =====================================================================
   Result
   ===================================================================== */
.content { flex: 1; padding: 8px 22px 24px; }
.content--center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

.result-title { display: inline-flex; align-items: center; gap: 8px; }
.result-title .check {
  width: 26px; height: 26px;
  display: inline-grid; place-items: center;
  background: var(--green); color: #fff;
  border-radius: 50%;
  font-size: 14px;
}
/* ===== Result — diagnosis hero (our palette) ===== */
.result-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); margin: 0 0 6px;
}
.result-h {
  font-family: var(--ff-body);
  font-weight: 800; font-size: clamp(22px, 5.8vw, 27px);
  letter-spacing: -.02em; color: var(--ink); margin: 0 0 10px; text-align: center;
}
.score-hero { display: flex; flex-direction: column; align-items: center; gap: 7px; margin: 2px 0 14px; }
.score-big {
  font-family: var(--ff-display);
  font-weight: 600; line-height: .9; color: var(--purple-deep);
  display: flex; align-items: baseline;
}
.score-big > span:first-child { font-size: clamp(60px, 17vw, 84px); letter-spacing: -.03em; }
.score-of { font-size: clamp(22px, 6vw, 28px); color: var(--muted); font-family: var(--ff-body); font-weight: 700; margin-left: 4px; }
.score-sev-pill {
  font-size: 14px; font-weight: 700; padding: 7px 16px; border-radius: 999px;
  background: #ffe1d6; color: #c2410c;
}
.score-sev-pill[data-sev="high"]   { background: #ffe1d6; color: #c2410c; }
.score-sev-pill[data-sev="severe"] { background: #ffd9d9; color: #b91c1c; }
.score-sev-pill[data-sev="moderate"] { background: #fef0cf; color: #a16207; }
.score-hero-sub { font-size: 15px; color: var(--muted); text-align: center; max-width: 32ch; margin: 4px 0 0; }
.score-hero-sub b { color: var(--ink); }

/* Vertical comparison bars (animated) */
.chart { margin: 18px 0 6px; display: flex; justify-content: center; flex: 1; align-items: center; }
.bars {
  --chart-h: clamp(240px, 56vw, 340px);
  display: flex;
  gap: clamp(26px, 8vw, 48px);
  align-items: flex-end;
  height: var(--chart-h);
}
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; height: 100%; }
.bar-bar {
  width: clamp(96px, 24vw, 124px);
  border-radius: 18px;
  transform-origin: bottom;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14px;
  box-shadow: 0 10px 24px rgba(20,30,70,.10);
}
.bar-bar--you { height: var(--you-h, 80%); background: linear-gradient(180deg, #ff7a3c 0%, #ff5a3c 100%); transition: height 1.1s .3s cubic-bezier(.16,.84,.32,1.02); }
.bar-bar--avg { height: 34%; background: linear-gradient(180deg, #7fcf8e 0%, #5fb673 100%); }
.bar-pct { font-family: var(--ff-body); font-size: clamp(26px, 6.5vw, 32px); font-weight: 900; color: #fff; letter-spacing: -.02em; line-height: 1; }
.bar-label { font-size: 15px; color: var(--ink); font-weight: 600; }
.cmp-cap { font-size: 13px; color: var(--muted); margin: 16px 0 10px; text-align: center; }
.disclaimer { font-size: 12px; color: var(--muted); text-align: center; }
.screen[data-step="result"] .disclaimer { margin-top: 22px; }

/* ===== Animated recovery curve (proof-2) ===== */
.heal-chart { width: 100%; max-width: 320px; margin: 0 auto 22px; }
.heal-chart-title {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.6); text-align: center; margin: 0 0 10px;
}
.heal-chart svg { width: 100%; height: 150px; display: block; overflow: visible; }
.heal-axis { stroke: rgba(255,255,255,.15); stroke-width: 1; }
.heal-line { stroke-dasharray: 640; stroke-dashoffset: 640; }
.heal-area { opacity: 0; }
.heal-dot { fill: #ff5a3c; opacity: 0; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 6px rgba(255,90,60,.7)); }
.heal-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,.55); margin-top: 6px; padding: 0 8px;
}
@keyframes healDraw { to { stroke-dashoffset: 0; } }
@keyframes healFade { to { opacity: 1; } }
@keyframes healDot { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes healPulse { 0%,100% { r: 6; } 50% { r: 8; } }

/* =====================================================================
   Pedagogy
   ===================================================================== */
.pedagogy {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;        /* center the whole content stack vertically */
  text-align: center;
  padding: 60px 28px 64px;         /* leave room for dots at bottom */
  position: relative;
}
.pedagogy > .emoji-hero { margin: 0 0 22px; }
.pedagogy > .display    { margin: 0 0 14px; }
.pedagogy > .lede       { margin: 0; }
.pedagogy > .dots {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.emoji-hero { font-size: clamp(60px, 18vw, 84px); margin: 8px 0 18px; line-height: 1; filter: drop-shadow(0 6px 18px rgba(0,0,0,.25)); }
.hero-img {
  width: clamp(160px, 50vw, 220px);
  height: clamp(160px, 50vw, 220px);
  object-fit: contain;
  margin: 8px 0 18px;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.18));
}
.emoji-hero.md { font-size: clamp(48px, 12vw, 60px); }
.dots { margin-top: 28px; display: flex; gap: 8px; }
.dots i { width: 8px; height: 8px; background: rgba(255,255,255,.35); border-radius: 50%; display: block; }
.dots i.active { background: var(--white); width: 22px; border-radius: 6px; }

/* =====================================================================
   Commitment
   ===================================================================== */
.pledge-text {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: clamp(20px, 5vw, 23px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 14px;
  text-align: center;
  /* Reserve room for the longest pledge so the input field stays at the
     same Y between pledges 1→2→3 */
  min-height: calc(1.3em * 4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.verse {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 24px;
  text-align: center;
  max-width: 32ch;
  min-height: calc(1.45em * 4);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Anchor pledge content from top so input always lands at same Y */
.screen[data-step^="commit-"] .quiz--center {
  justify-content: flex-start;
  padding-top: clamp(40px, 12vh, 96px);
}
.pledge-input {
  width: 100%;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 0;
  background: #fff;
  box-shadow: var(--shadow-card);
  font-size: 16px;
  text-align: center;
}
.pledge-input::placeholder { color: #b5b6c7; }
.pledge-input:focus { outline: 2px solid rgba(45,19,105,.35); outline-offset: 2px; }

/* =====================================================================
   Scratch card
   ===================================================================== */
.scratch-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(20px, 6vh, 48px) 24px 24px;
}
.scratch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: clamp(24px, 6vh, 48px);
  backdrop-filter: blur(6px);
}
.scratch-card {
  position: relative;
  margin: 28px 0 16px;
  width: 100%;
  max-width: 320px;
  height: 180px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  background:
    radial-gradient(circle at 30% 30%, #ffd4a8 0%, transparent 55%),
    radial-gradient(circle at 70% 80%, #f76b00 0%, transparent 65%),
    linear-gradient(135deg, #ff9b3a, #b03f00);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.scratch-prize {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.scratch-prize-big {
  font-family: var(--ff-display);
  font-size: clamp(40px, 12vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.scratch-prize-sub {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: clamp(12px, 3.4vw, 14px);
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .95;
}
.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.scratch-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.95);
  font-weight: 600;
  pointer-events: none;
  transition: opacity .3s ease;
}
.scratch-card.is-touched .scratch-hint { opacity: 0; }
.scratch-progress { font-variant-numeric: tabular-nums; }

/* =====================================================================
   Paywall
   ===================================================================== */
.paywall {
  padding: 16px 18px 32px;
  max-width: 560px;
}
.paywall-hero { text-align: center; padding: 16px 8px 24px; }
.paywall-hero .display { margin-top: 8px; }
.pw-hero-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 8px auto 16px;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.12));
}
.pw-hero-check {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 18px;
}
.pw-hero-title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(24px, 6vw, 30px);
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--pw-ink);
  text-align: center;
  margin: 0 0 8px;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
/* Figma-style bullets */
.pw-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
  text-align: left;
}
.pw-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.35;
  color: #656565;
  font-weight: 500;
}
.pw-bullet-img {
  flex-shrink: 0;
  width: 32px; height: 32px;
  object-fit: contain;
  display: block;
}
.pw-bullet {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  font-size: 22px;
  line-height: 1;
}
.pw-bullet--icon { background: transparent; font-size: 20px; }

/* Goal pills (Figma style) */
.goal-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 8px 12px !important;
  border-radius: 70px !important;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: none !important;
}
.goal-pill img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}
.pw-card-icon {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.12));
}
.date-card {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 22px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.discount-banner {
  margin: 14px auto 0;
  padding: 10px 16px;
  background: linear-gradient(90deg, #ffe2c8, #ffd0a8);
  border-radius: var(--r-md);
  color: #6b2a00;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.discount-banner[hidden] { display: none; }
.pw-block { margin-bottom: 22px; }
.pw-h {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: clamp(20px, 5vw, 22px);
  margin: 6px 0 10px;
  text-align: center;
  color: var(--ink);
}
.pw-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.pw-sub { margin: 12px 0 8px; }
.goal-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.goal-pill {
  padding: 8px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7e8df 100%);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.goal-pill.is-selected { background: var(--ink); color: var(--white); }
.checklist { text-align: left; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.checklist li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink); line-height: 1.45; }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
.testi {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: #faefe8;
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  line-height: 1.45;
}
.testi header { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 6px; }
.testi .avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 12px;
}
.testi .avatar--cross,
.review header .avatar--cross,
.pw-testi-card header .avatar--cross {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  background: var(--pw-accent-bg);
  color: var(--pw-accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.avatar--cross svg { display: block; }
.pw-bullet-svg {
  flex-shrink: 0;
  width: 32px; height: 32px;
  color: var(--pw-accent);
  padding: 4px;
}
.testi .stars { color: var(--accent); margin-left: auto; font-size: 12px; }
.paywall-spacer { height: 8px; }
.screen[data-step="prepaywall"] .cta-bar { max-width: 560px; }

/* =====================================================================
   Success
   ===================================================================== */
.code-box {
  margin: 22px auto 22px;
  width: 100%;
  max-width: 360px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  backdrop-filter: blur(8px);
  color: #fff;
}
.code-box .code-label {
  grid-column: 1 / -1;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .65;
  color: #fff;
}
.code-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
}
.copy-btn { background: #fff; color: var(--ink); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.store-row { display: flex; gap: 12px; margin-top: 16px; width: 100%; max-width: 360px; }
.store-btn { flex: 1; padding: 12px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-md); text-align: center; font-size: 14px; font-weight: 600; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (min-width: 768px) {
  :root { --content-max: 520px; }
  .topbar-progress { left: max(24px, calc(50vw - 240px)); right: max(24px, calc(50vw - 240px)); }
  .bg-mountains { height: 70vh; max-height: 820px; }
}
@media (min-width: 1024px) {
  :root { --content-max: 560px; }
  .paywall { max-width: 720px; }
  .screen[data-step="prepaywall"] .cta-bar { max-width: 720px; }
  .topbar-progress { left: max(24px, calc(50vw - 280px)); right: max(24px, calc(50vw - 280px)); }
}

/* =====================================================================
   Pricing screen (Harmony-style)
   ===================================================================== */
:root {
  /* Paywall palette — Unchaind brand: warm cream bg, deep purple accents */
  --pw-accent: #2d1369;          /* deep brand purple — primary */
  --pw-accent-strong: #1c0a4a;
  --pw-accent-soft: #c9bcec;
  --pw-accent-bg: #f1ebff;
  --pw-accent-day: #e2d6ff;
  --pw-bg: #fbf2ec;              /* warm cream — same as rest of the funnel */
  --pw-card: #ffffff;
  --pw-ink: #14101f;
  --pw-muted: #6e6478;
  --pw-border: #ece4e0;
  --pw-warm: #fce9d2;
  --pw-shadow: 0 1px 2px rgba(45,19,105,.04), 0 8px 24px rgba(45,19,105,.06);
}
.screen[data-step="paywall"] { background: var(--pw-bg); }
.screen[data-step="paywall"] .paywall { max-width: 520px; padding: 92px 16px 28px; }

/* Sticky countdown bar */
.pw-countdown {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: rgba(244,241,248,.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  padding: 10px 14px;
  display: flex;
  justify-content: center;
}
.pw-countdown-inner {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 18px rgba(20,16,31,.08), 0 0 0 1px rgba(20,16,31,.04);
}
.pw-countdown-text { flex: 1; }
.pw-countdown-label { font-size: 13px; margin: 0 0 2px; color: var(--pw-muted); line-height: 1.25; }
.pw-countdown-time  { font-size: 20px; margin: 0; font-weight: 800; color: var(--pw-ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pw-countdown-cta {
  background: var(--pw-accent); color: #fff;
  border-radius: 12px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  letter-spacing: -.005em;
  transition: background .15s, transform .12s;
}
.pw-countdown-cta:hover { background: var(--pw-accent-strong); }
.pw-countdown-cta:active { transform: scale(.96); }

/* 50% OFF ticket */
.pw-discount {
  background: var(--pw-card);
  border-radius: 20px;
  padding: 14px 14px 14px;
  margin-bottom: 20px;
  box-shadow: var(--pw-shadow);
  position: relative;
  overflow: hidden;
}
.pw-ticket {
  position: relative;
  background: linear-gradient(135deg, #7a5cd0 0%, #3b1d8a 100%);
  color: #fff;
  border-radius: 16px;
  padding: 24px 22px;
  display: block;
  --c: 16px;
  -webkit-mask:
    radial-gradient(circle at 0 50%, transparent var(--c), #000 calc(var(--c) + 1px)) right/calc(100% - var(--c)) 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent var(--c), #000 calc(var(--c) + 1px)) left/calc(100% - var(--c)) 100% no-repeat;
          mask:
    radial-gradient(circle at 0 50%, transparent var(--c), #000 calc(var(--c) + 1px)) right/calc(100% - var(--c)) 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent var(--c), #000 calc(var(--c) + 1px)) left/calc(100% - var(--c)) 100% no-repeat;
  margin: 0 0 12px;
}
.pw-ticket-tag {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  background: #fff; color: var(--pw-accent-strong);
  font-size: 10px; font-weight: 800; letter-spacing: .14em;
  padding: 6px 14px; border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(45,19,105,.25);
}
.pw-ticket-body {
  display: inline-flex;
  align-items: flex-start;
  color: #fff;
  line-height: 1;
  margin-top: 0;
  position: relative;
  z-index: 1;
}
.pw-ticket-num { font-family: var(--ff-body); font-weight: 900; font-size: 88px; letter-spacing: -.05em; line-height: .9; }
.pw-ticket-col { display: inline-flex; flex-direction: column; align-items: flex-start; margin: 6px 0 0 10px; line-height: 1; gap: 6px; }
.pw-ticket-pct { font-family: var(--ff-body); font-weight: 800; font-size: 34px; line-height: 1; }
.pw-ticket-off { font-family: var(--ff-body); font-weight: 900; font-size: 26px; letter-spacing: .04em; line-height: 1; }
.pw-ticket-sun {
  position: absolute;
  right: -40px; top: 50%; transform: translateY(-50%);
  width: 240px; height: 240px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><g fill='%23ffffff' fill-opacity='0.22'><path d='M10 0h4v8h8v4h-8v12h-4V12H2V8h8z' transform='translate(4 56) scale(3.6)'/><path d='M10 0h4v8h8v4h-8v12h-4V12H2V8h8z' transform='translate(70 4) scale(1.8)'/><path d='M10 0h4v8h8v4h-8v12h-4V12H2V8h8z' transform='translate(120 100) scale(2.4)'/><path d='M10 0h4v8h8v4h-8v12h-4V12H2V8h8z' transform='translate(12 180) scale(1.3)'/><path d='M10 0h4v8h8v4h-8v12h-4V12H2V8h8z' transform='translate(70 160) scale(1.1)'/><path d='M10 0h4v8h8v4h-8v12h-4V12H2V8h8z' transform='translate(166 22) scale(1.5)'/><path d='M10 0h4v8h8v4h-8v12h-4V12H2V8h8z' transform='translate(190 90) scale(1)'/><path d='M10 0h4v8h8v4h-8v12h-4V12H2V8h8z' transform='translate(115 200) scale(1.2)'/><path d='M10 0h4v8h8v4h-8v12h-4V12H2V8h8z' transform='translate(186 168) scale(1.6)'/><path d='M10 0h4v8h8v4h-8v12h-4V12H2V8h8z' transform='translate(48 12) scale(.9)'/><path d='M10 0h4v8h8v4h-8v12h-4V12H2V8h8z' transform='translate(150 200) scale(.8)'/><path d='M10 0h4v8h8v4h-8v12h-4V12H2V8h8z' transform='translate(218 210) scale(.7)'/></g></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}
.pw-gift-banner {
  background: var(--pw-accent-bg);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.pw-gift-ico { font-size: 28px; line-height: 1; }
.pw-gift-banner p { margin: 0; font-size: 15px; line-height: 1.35; color: var(--pw-ink); font-weight: 600; }
.pw-gift-banner .strike { text-decoration: line-through; color: var(--pw-muted); font-weight: 500; }
.pw-gift-banner .hl   { color: var(--pw-accent); font-weight: 800; }

/* Generic card */
.pw-card {
  background: var(--pw-card);
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--pw-shadow);
}

/* Plans */
.pw-plans-card { padding: 28px 22px; }
.pw-plans-h {
  font-family: var(--ff-body);
  font-weight: 800;
  font-size: clamp(24px, 6.4vw, 30px);
  text-align: center;
  margin: 0 0 22px;
  color: var(--pw-ink);
  letter-spacing: -.02em;
}
.pw-plans { display: flex; flex-direction: column; gap: 12px; }
.pw-plan {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 18px;
  border-radius: 16px;
  border: 1.5px solid var(--pw-border);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.pw-plan:hover { border-color: var(--pw-accent-soft); }
.pw-plan input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  top: 0; left: 0;
  margin: 0;
  cursor: pointer;
}
.pw-plan-radio {
  width: 22px; height: 22px;
  border: 2px solid #cbc4d5;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: border-color .15s;
}
.pw-plan-radio::after {
  content: "";
  position: absolute; inset: 3px;
  background: var(--pw-accent);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .15s, transform .15s;
}
/* Active selection — use :has for full-row state */
.pw-plan:has(input:checked) {
  border-color: var(--pw-accent);
  background: linear-gradient(180deg, #f5efff 0%, #fff 60%);
  box-shadow: 0 2px 14px rgba(45,19,105,.10);
}
.pw-plan:has(input:checked) .pw-plan-radio { border-color: var(--pw-accent); }
.pw-plan:has(input:checked) .pw-plan-radio::after { opacity: 1; transform: scale(1); }
.pw-plan:has(input:checked) .pw-plan-day-pill { background: var(--pw-accent-day); }
.pw-plan-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; text-align: left; }
.pw-plan-name { font-weight: 800; font-size: 22px; color: var(--pw-ink); letter-spacing: -.01em; text-align: left; }
.pw-plan-price { font-size: 14px; color: var(--pw-ink); font-weight: 500; text-align: left; white-space: nowrap; }
.pw-plan-was { text-decoration: line-through; color: var(--pw-muted); font-weight: 400; margin-right: 2px; }
.pw-plan-perday { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pw-plan-was-day { font-size: 13px; color: var(--pw-muted); text-decoration: line-through; }

/* Per-day pill: clean rounded shape, no rotated-square trick */
.pw-plan-day-pill {
  background: #eeeaf3;
  color: var(--pw-ink);
  padding: 10px 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-weight: 800;
  line-height: 1;
  transition: background .15s;
  white-space: nowrap;
}
.pw-plan-day-pill .pw-plan-dollar { font-size: 13px; }
.pw-plan-day-pill b { font-size: 30px; line-height: 1; letter-spacing: -.02em; }
.pw-plan-day-pill sup { font-size: 13px; font-weight: 800; vertical-align: super; }
.pw-plan-day-pill .pw-plan-day-label { font-size: 10px; font-weight: 600; margin-left: 6px; opacity: .7; letter-spacing: .02em; }
/* Highlight per-day pill only when its plan is selected */

/* Popular plan: badge only — no border tint unless the user also picks it */
.pw-plan-badge {
  position: absolute;
  top: -11px; right: 18px;
  background: var(--pw-accent); color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
  z-index: 1;
}

.btn--accent {
  background: var(--pw-accent);
  color: #fff;
  width: 100%;
  padding: 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 17px;
  margin-top: 22px;
  letter-spacing: -.01em;
  box-shadow: 0 10px 28px rgba(92,63,181,.34);
  transition: background .15s, box-shadow .15s, transform .12s;
}
.btn--accent:hover { background: var(--pw-accent-strong); box-shadow: 0 12px 32px rgba(92,63,181,.44); }
.btn--accent:active { transform: scale(.985); }

.pw-safe {
  display: block;
  margin: 14px auto 0;
  width: 100%;
  max-width: 280px;
  height: auto;
}
.pw-trust-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  margin: 28px auto;
}
.pw-trust-img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  flex: 1 1 0;
  min-width: 0;
  object-fit: contain;
}
.pw-seal-img {
  display: block;
  width: 200px;
  height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 10px 24px rgba(245,124,30,.32));
}
.pw-secure {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e8f5ec; color: #18883e;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  margin: 14px auto 8px;
  justify-self: center;
}
.pw-cta + .pw-secure { display: flex; width: max-content; margin-inline: auto; }
.pw-pay-icons {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.pw-pay {
  background: #fff;
  border: 1px solid var(--pw-border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px; font-weight: 800;
  color: var(--pw-ink);
  letter-spacing: .02em;
}
.pw-pay--visa { color: #1a1f71; }
.pw-pay--mc   { color: #eb001b; }
.pw-pay--disc { color: #ff6000; }
.pw-pay--pp   { color: #003087; }
.pw-pay--amex { color: #2e77bb; }

/* Trust band */
.pw-trust {
  display: flex; gap: 12px;
  margin: 20px 0;
  justify-content: space-around;
}
.pw-trust-item {
  display: flex; align-items: center; gap: 8px;
}
.pw-trust-body { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.pw-trust-body b { font-size: 16px; color: var(--pw-ink); }
.pw-trust-body span { font-size: 12px; color: var(--pw-muted); }
.pw-laurel { font-size: 28px; color: var(--pw-ink); }
.pw-stars { color: #f5a623; font-size: 14px; letter-spacing: 2px; }

/* Section heading */
.pw-h--center { text-align: center; }
.pw-h .hl { color: var(--pw-accent); }

/* Features */
.pw-features { padding: 28px 24px; }
.pw-features .pw-h { font-size: clamp(24px, 6vw, 28px); margin: 0 0 22px; font-weight: 800; text-align: center; letter-spacing: -.02em; }
.pw-feat-list { display: flex; flex-direction: column; gap: 18px; text-align: left; }
.pw-feat-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--pw-ink);
  text-align: left;
}
.pw-feat-img {
  flex-shrink: 0;
  width: 60px; height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(20,16,31,.10));
}
.pw-feat-list li div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pw-feat-list li b { font-size: 16px; font-weight: 700; line-height: 1.25; color: var(--pw-ink); letter-spacing: -.005em; }
.pw-feat-list li span { font-size: 14px; line-height: 1.45; color: var(--pw-muted); }

/* Why Unchaind works — stats grid */
.pw-stats { padding: 28px 24px; }
.pw-stats .pw-h { font-size: clamp(24px, 6vw, 28px); margin: 0 0 22px; font-weight: 800; text-align: center; letter-spacing: -.02em; }
.pw-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pw-stat {
  background: var(--pw-accent-bg);
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.pw-stat b {
  font-family: var(--ff-display);
  font-size: clamp(28px, 7.4vw, 36px);
  font-weight: 700;
  color: var(--pw-accent);
  line-height: 1;
  letter-spacing: -.02em;
}
.pw-stat span { font-size: 12px; color: var(--pw-ink); line-height: 1.35; font-weight: 500; }

/* Before / After columns */
.pw-ba { padding: 28px 24px; }
.pw-ba .pw-h { margin: 0 0 20px; font-weight: 800; font-size: clamp(24px, 6vw, 28px); text-align: center; letter-spacing: -.02em; }
.pw-ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pw-ba-col {
  background: #faf6ff;
  border-radius: 16px;
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.pw-ba-col--before { background: #fcecec; }
.pw-ba-col--after  { background: #e6f4ea; }
.pw-ba-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pw-ba-col--before .pw-ba-label { color: #c43838; }
.pw-ba-col--after .pw-ba-label  { color: #138c3e; }
.pw-ba-col ul { display: flex; flex-direction: column; gap: 10px; }
.pw-ba-col li { font-size: 13px; line-height: 1.4; color: var(--pw-ink); padding-left: 20px; position: relative; }
.pw-ba-col--before li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #c43838 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%23fff'%3E%3Cpath d='M2.5 2.5l7 7m0-7l-7 7' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/9px no-repeat;
}
.pw-ba-col--after li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #138c3e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6l2.5 2.5L9.5 4' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* Testimonial cards */
.pw-testi-card { padding: 22px 22px; text-align: left; }
.pw-testi-card header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pw-testi-card header b { font-size: 15px; color: var(--pw-ink); font-weight: 700; }
.pw-testi-card header .avatar--cross { width: 32px; height: 32px; flex-shrink: 0; }
.pw-testi-card header .pw-stars { margin-left: auto; color: #f5a623; font-size: 14px; letter-spacing: 2px; }
.pw-testi-card h4 { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--pw-ink); letter-spacing: -.005em; }
.pw-testi-card > p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--pw-muted); }

.pw-social-header {
  text-align: center;
  font-size: 18px;
  color: var(--pw-ink);
  margin: 16px 0 18px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.005em;
}
.pw-social-header b { font-weight: 800; color: var(--pw-accent); }

.pw-testi-name { color: var(--pw-ink) !important; font-weight: 700; margin-top: 14px !important; }

/* Money-back guarantee */
.pw-guarantee { text-align: center; padding: 32px 24px; }
.pw-guarantee .pw-h { font-size: clamp(22px, 5.6vw, 26px); margin: 0 0 12px; font-weight: 800; letter-spacing: -.02em; }
.pw-guarantee > p { font-size: 14px; line-height: 1.55; color: var(--pw-muted); margin: 0; max-width: 38ch; margin-inline: auto; }
.pw-seal {
  width: 180px; height: 180px;
  margin: 8px auto 16px;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, transparent 47%, #f57c1e 48%, #f57c1e 100%);
  border-radius: 50%;
  display: grid; place-items: center;
}
.pw-seal::before {
  content: "";
  position: absolute; inset: 6px;
  background:
    repeating-conic-gradient(#f57c1e 0deg 11deg, #fff 11deg 12deg);
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%);
          mask: radial-gradient(circle, transparent 60%, #000 62%);
}
.pw-seal-inner {
  position: relative; z-index: 2;
  width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: #f57c1e;
  color: #fff;
  display: grid; place-items: center;
  text-align: center;
  gap: 0;
}
.pw-seal-top, .pw-seal-bot { font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.pw-seal-mid {
  background: #ff9636; color: #fff;
  padding: 6px 14px;
  font-size: 14px; font-weight: 900;
  letter-spacing: .04em;
  width: 110%;
  text-align: center;
  margin: 4px 0;
}

/* FAQ */
.pw-faq { padding: 8px 24px; }
.pw-faq details {
  border-bottom: 1px solid var(--pw-border);
  padding: 18px 0;
}
.pw-faq details:last-child { border-bottom: none; }
.pw-faq summary {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-weight: 700; font-size: 16px; color: var(--pw-ink);
  list-style: none;
  cursor: pointer;
  letter-spacing: -.005em;
}
.pw-faq summary::-webkit-details-marker { display: none; }
.pw-faq summary::after {
  content: "+";
  color: var(--pw-muted);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .25s ease;
  width: 22px; height: 22px;
  display: grid; place-items: center;
}
.pw-faq details[open] summary::after { transform: rotate(45deg); }
.pw-faq details p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--pw-muted);
  line-height: 1.55;
  text-align: left;
}

.pw-bottom-cta {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pw-bottom-cta .btn { margin-top: 0; }

.pw-brand-footer {
  background: #efebf3;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: none;
}
.pw-brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.pw-brand-row .brand-mark { width: 44px; height: 44px; border-radius: 12px; }
.pw-brand-row h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.pw-brand-footer p { font-size: 13px; line-height: 1.55; color: var(--pw-muted); margin: 8px 0; text-align: left; }
.pw-brand-footer a { color: var(--pw-accent); text-decoration: underline; font-weight: 600; }

/* =====================================================================
   Reviews screen — compact, fits in one viewport
   ===================================================================== */
.reviews-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px 22px;
  gap: 14px;
}
.reviews-title {
  font-family: var(--ff-body);
  font-weight: 800;
  font-size: clamp(22px, 5.5vw, 26px);
  margin: 0;
  color: var(--pw-ink);
  text-align: center;
  letter-spacing: -.01em;
}
.reviews-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--pw-muted);
  text-align: center;
  max-width: 36ch;
}
.reviews-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}
.review {
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}
.review header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}
.review header .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--pw-accent); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.review header b { color: var(--pw-ink); font-size: 15px; }
.review header .pw-stars { margin-left: auto; font-size: 13px; color: #f5a623; }
.review p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pw-muted);
}

/* Trustpilot-style verified reviews */
.review-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.review-top .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--pw-accent); color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
.review-id { display: flex; flex-direction: column; line-height: 1.25; }
.review-id b { color: var(--pw-ink); font-size: 15px; }
.review-meta { font-size: 12px; color: var(--pw-muted); }
.review-verified { color: #00b67a; font-weight: 700; }
.review-date { margin-left: auto; font-size: 12px; color: var(--pw-muted); white-space: nowrap; align-self: flex-start; }
.review-stars { display: inline-flex; gap: 3px; margin-bottom: 8px; }
.review-stars i {
  width: 18px; height: 18px;
  background: #00b67a;
  color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-style: normal;
  border-radius: 3px;
}

/* =====================================================================
   Pledge celebration overlay
   ===================================================================== */
.pledge-celebrate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  animation: pledgeBgIn .25s ease both;
}
.pledge-celebrate.is-out { animation: pledgeBgOut .35s ease both; }
.pledge-celebrate-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: pledgePop .55s cubic-bezier(.16,1,.32,1.05) both;
}
.pledge-celebrate.is-out .pledge-celebrate-card { animation: pledgePopOut .35s ease both; }
.pledge-celebrate-check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--green, #4caf6e);
  color: #fff;
  display: grid; place-items: center;
  font-size: 40px; font-weight: 800;
  animation: pledgeTick .4s .15s cubic-bezier(.2,1.4,.3,1) both;
  transform: scale(0);
}
.pledge-lottie {
  width: 200px;
  height: 200px;
  display: block;
}
.pledge-lottie svg { width: 100% !important; height: 100% !important; }
.pledge-celebrate-card p {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
}
@keyframes pledgeBgIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pledgeBgOut { to   { opacity: 0; } }
@keyframes pledgePop {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pledgePopOut {
  to { opacity: 0; transform: scale(.95); }
}
@keyframes pledgeTick { to { transform: scale(1); } }

/* =====================================================================
   Pedagogy slide transition — only animate the content stack (emoji,
   title, lede). Button + dots stay put across pedagogy steps.
   ===================================================================== */
.screen[data-step^="pedagogy-"].is-active .pedagogy > .hero-img,
.screen[data-step^="pedagogy-"].is-active .pedagogy > .display,
.screen[data-step^="pedagogy-"].is-active .pedagogy > .lede {
  animation: pedSlideIn .45s cubic-bezier(.18,.84,.32,1.02);
}
.screen[data-step^="pedagogy-"].is-active .pedagogy > .dots,
.screen[data-step^="pedagogy-"].is-active .cta-bar > .btn { animation: none !important; }
@keyframes pedSlideIn {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =====================================================================
   Superwall paywall iframe — fills the screen, no padding
   ===================================================================== */
.screen[data-step="paywall"] {
  padding: 0 !important;
}
.paywall-redirect {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pw-bg);
}
.paywall-redirect-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(44, 21, 93, .18);
  border-top-color: var(--purple-deep);
  animation: spin .7s linear infinite;
}

/* =====================================================================
   Dev skip button — visible only on localhost (toggled via JS)
   ===================================================================== */
.dev-skip {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 9999;
  background: #ff3b30;
  color: #fff;
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font: 600 12px/1 ui-monospace, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255,59,48,.4);
  opacity: .9;
}
.dev-skip:hover { opacity: 1; transform: translateY(-1px); }
.dev-skip[hidden] { display: none; }

/* =====================================================================
   Success page — processing / failed / done states
   ===================================================================== */
.success-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(255,255,255,.18);
  border-top-color: var(--white, #fff);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: successSpin 1s linear infinite;
}
@keyframes successSpin { to { transform: rotate(360deg); } }
.success-processing .display,
.success-failed .display { color: var(--white, #fff); }
.success-processing .lede,
.success-failed .lede { color: rgba(255,255,255,.78); }
.success-help {
  margin: 18px 0 8px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  text-align: center;
}
.success-download {
  margin-top: 28px;
  padding: 20px 24px !important;
  font-size: 17px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 16px;
  background: #fff !important;
  color: #1c1340 !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.success-download:hover { transform: translateY(-1px); }
.success-download .arrow { font-size: 18px; }

/* =====================================================================
   Payment modal — opens on paywall Continue click
   ===================================================================== */
.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: payFadeIn .25s ease;
  transition: opacity .22s ease, visibility 0s linear 0s;
}
/* Closed state — modal stays in DOM (so Stripe iframe is preloaded) but is
 * invisible and non-interactive. */
.pay-modal.is-closed {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  animation: none;
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.pay-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(20,18,40,.55);
}
.pay-modal__card {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 22px 22px 18px;
  max-width: 440px;
  width: 100%;
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(20,18,40,.40);
  animation: payPop .28s cubic-bezier(.22,1.2,.36,1);
}
.pay-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  background: transparent;
  color: #1c1340;
  cursor: pointer;
  transition: background .15s;
}
.pay-modal__close:hover { background: rgba(0,0,0,.06); }
.pay-modal__title {
  margin: 2px 0 10px;
  font-family: var(--ff-body);
  font-weight: 800;
  font-size: 18px;
  text-align: center;
  color: #1c1340;
  letter-spacing: -.01em;
}
.pay-modal__pitch {
  margin: 0 0 14px;
  text-align: center;
  font-family: var(--ff-body);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  color: #1c1340;
  letter-spacing: -.01em;
}
.pay-modal__hl { color: var(--pw-accent); }
.pay-modal__hl--accent { color: var(--pw-accent); }
.pay-modal__hl--warm { color: #ff5a3c; }

.pay-modal__breakdown {
  margin: 0 0 8px;
  padding: 0;
}
.pay-modal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 2px;
  font-size: 14px;
  color: #6e6a85;
  font-weight: 600;
}
.pay-modal__row b { color: #6e6a85; font-weight: 700; font-size: 15px; }
.pay-modal__row--discount { color: #e15a5a; }
.pay-modal__row--discount b { color: #e15a5a; }
.pay-modal__row--total {
  border-top: 1px solid #e9e6ef;
  margin-top: 2px;
  padding-top: 8px;
  color: #1c1340;
  font-size: 15px;
}
.pay-modal__row--total span { font-weight: 800; }
.pay-modal__row--total b { color: #1c1340; font-weight: 900; font-size: 19px; letter-spacing: -.01em; }

.pay-modal__express {
  margin: 4px 0 0;
}
.pay-modal__express:empty { display: none; }
.pay-modal__sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 4px;
  font-size: 10px;
  color: #8a85a3;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.pay-modal__sep::before, .pay-modal__sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e9e6ef;
}
.pay-modal__sep[hidden] { display: none; }
.pay-modal__mount {
  margin: 4px 0 6px;
  min-height: 220px;
  position: relative;
}
.pay-modal__mount .checkout-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #6e6a85;
  font-size: 13px;
}
.pay-modal__mount .checkout-loading::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 3px solid rgba(45,19,105,.15);
  border-top-color: var(--pw-accent);
  border-radius: 50%;
  animation: payLoadSpin .8s linear infinite;
}
@keyframes payLoadSpin { to { transform: rotate(360deg); } }
/* Skeleton rows while Stripe iframe loads */
.pay-modal__mount .checkout-loading::after {
  content: "Loading secure payment…";
  opacity: .8;
}
.pay-modal__error {
  color: #d33;
  font-size: 12px;
  text-align: center;
  margin: 4px 0 0;
  min-height: 14px;
}
.pay-modal__submit {
  width: 100%;
  margin: 8px 0 4px;
  padding: 14px;
  font-size: 15px;
  border-radius: 12px;
  font-weight: 700;
}
.pay-modal__submit[disabled] { opacity: .65; cursor: wait; }
.pay-modal__safe {
  width: 100%;
  max-width: 220px;
  margin: 10px auto 0;
  display: block;
  opacity: .85;
}
.pay-modal__fineprint {
  text-align: center;
  font-size: 11px;
  color: #8a85a3;
  margin: 4px 0 0;
}
@keyframes payFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes payPop {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 480px) {
  .pay-modal { padding: 10px; align-items: flex-end; }
  .pay-modal__card { border-radius: 22px 22px 14px 14px; max-height: calc(100dvh - 20px); }
}

/* ===== Prepaywall sticky CTA — always visible, unlocks near page bottom ===== */
.screen[data-step="prepaywall"] .cta-bar--sticky {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 30;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(251,242,236,0) 0%, #fbf2ec 42%);
  padding-top: 30px;
}
.screen[data-step="prepaywall"] .paywall { padding-bottom: 132px; }
.cta-bar--sticky .btn.is-locked { opacity: .55; pointer-events: auto !important; cursor: pointer; }
.cta-bar--sticky .btn.is-locked .cta-circle { animation: ctaScrollBounce 1.2s ease-in-out infinite; }
@keyframes ctaScrollBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* ===== Insight (reassurance) screens between quiz questions ===== */
.insight {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 0 28px;
}
.insight-big {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(54px, 16vw, 84px);
  line-height: 1;
  color: var(--purple-deep);
  letter-spacing: -.02em;
}
/* Social proof: keep the whole group centered (don't push awards to the bottom) */
.screen[data-step="social-1"] .finally-awards { margin: 18px auto 0; max-width: 240px; }
.insight-title {
  margin: 0;
  font-family: var(--ff-body);
  font-size: clamp(22px, 5.8vw, 27px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--ink);
  max-width: 340px;
}
.insight-sub {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

/* =====================================================================
   V2 additions — trust strip, score, freedom, plan preview, timer
   ===================================================================== */

/* Trust strip (welcome screen) */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted-light);
  opacity: .8;
}
.trust-strip span {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.trust-strip svg {
  flex-shrink: 0;
  opacity: .7;
}

/* Welcome v2 — fills entire viewport with content distributed */
.welcome-v2 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--safe-top) + 24px) 20px calc(var(--safe-bottom) + 16px);
  overflow: hidden;
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}
/* Top spacer pushes content to golden ratio ~40% from top */
.welcome-v2-logo {
  width: 56px;
  height: 56px;
  margin-top: auto;
  margin-bottom: 16px;
}
.welcome-v2-title {
  font-family: var(--ff-display);
  font-size: clamp(24px, 6.5vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 10px;
  max-width: 320px;
}
.welcome-v2-sub {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted-light);
  max-width: 300px;
  margin: 0 0 24px;
}
.welcome-v2-quiz {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  letter-spacing: .02em;
  margin: 4px 0 26px;
}
.welcome-v2-quiz .hl-accent {
  font-weight: 800;
  letter-spacing: .12em;
}
.welcome-v2-ageq {
  font-family: var(--ff-body);
  font-size: clamp(20px, 5.4vw, 24px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -.01em;
}
/* Trust line (inline stats) */
.welcome-v2-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted-light);
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-sep { opacity: .4; }

/* Privacy reassurance directly under the age choices */
.welcome-v2-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-light);
  letter-spacing: -.005em;
}
.welcome-v2-secure .lock { font-size: 13px; opacity: .9; }

/* Age grid pushes to bottom via auto margin (secure line rides with it) */
.screen[data-step="welcome"] .welcome-v2-secure {
  margin-bottom: auto;
}
/* Dark options variant */
.options--dark .option {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  color: #fff;
}
.options--dark .option.is-selected {
  background: rgba(124,92,252,.35);
  border-color: #7c5cfc;
}
/* Age options — 2x2 grid */
.options--age {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 10px;
  row-gap: 26px;
  width: 100%;
  margin: 0 auto 26px;
}
.options--age .option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 12px 14px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.options--age .opt-avatar {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.25));
}
.options--age .option:active,
.options--age .option.is-selected {
  transform: scale(.97);
  background: rgba(124,92,252,.35);
  border-color: #7c5cfc;
}

/* ===================== V2 intro additions ===================== */
.welcome-v2-brand {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto; margin-bottom: 20px;
}
.welcome-v2-brand .welcome-v2-logo { width: 40px; height: 40px; margin: 0; }
.welcome-v2-brandname {
  font-family: var(--ff-display); font-size: 24px; font-weight: 700;
  color: #fff; letter-spacing: -.01em;
}
.tag-chip {
  display: inline-block;
  background: linear-gradient(135deg, #7c5cfc, #9d7bff);
  color: #fff; font-weight: 800;
  padding: .02em .4em; border-radius: .3em;
  box-shadow: 0 4px 16px rgba(124,92,252,.5);
  transform: rotate(-1.5deg);
}
.welcome-v2-quiz b { color: #fff; font-weight: 800; }
/* Photo age cards: photo fills card, gradient, pill + arrow at bottom */
.options--age .option {
  position: relative; padding: 0; height: 200px; border-radius: 20px; overflow: visible;
  display: flex; flex-direction: row; gap: 0; align-items: flex-end; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(124,92,252,.24) 100%);
  border: 1.5px solid rgba(255,255,255,.16);
}
.options--age .option::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 20px;
  background: linear-gradient(180deg, transparent 42%, rgba(18,9,44,.6) 100%);
}
.options--age .opt-avatar {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  border-radius: 20px; filter: none;
}
.options--age .opt-label {
  position: relative; z-index: 2; margin: 0 6px -14px 0;
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: #2c155d;
  padding: 9px 12px 9px 18px; border-radius: 50px;
  font-size: 15px; font-weight: 800; letter-spacing: -.01em;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.age-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 21px; height: 21px; border-radius: 50%;
  background: #2c155d; color: #fff; font-size: 15px; font-weight: 700; line-height: 1;
}
.options--age .option.is-selected { outline: 3px solid #7c5cfc; }
.options--age .option.is-selected .opt-label { background: #7c5cfc; color: #fff; }
.options--age .option.is-selected .age-arrow { background: #fff; color: #7c5cfc; }

/* Intro splash — like the app launch screen (longer so the verse can land) */
.intro-splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: #2c155d;
  animation: introSplash 1.9s ease forwards; animation-delay: .05s;
}
.intro-splash-mark { width: 72px; height: 72px; animation: introMark 1s ease; }
.intro-splash-name {
  font-family: var(--ff-display); font-size: 30px; font-weight: 700;
  color: #fff; letter-spacing: -.01em;
}
.intro-splash-verse {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
  color: rgba(255,255,255,.78);
  max-width: 300px;
  margin: 10px 0 0;
  animation: introVerse .6s ease .35s both;
}
.intro-splash-verse-ref {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: 8px;
}
@keyframes introVerse {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes introSplash {
  0%, 76% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
@keyframes introMark {
  0% { transform: scale(.8); opacity: 0; }
  35% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .intro-splash { display: none; } }

/* Score card */
.score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 24px 0 16px;
  padding: 28px 24px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card-strong);
}
.score-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
}
.score-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.score-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
}
.score-label {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.score-severity {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

/* Score markers */
.score-markers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 20px;
}
.score-marker {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  background: #f3e8ff;
  color: #6b21a8;
  border-radius: var(--r-pill);
}

/* Freedom card */
.freedom-card {
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(135deg, #1c1340 0%, #2d1369 100%);
  border-radius: var(--r-lg);
  text-align: center;
  color: #fff;
}
.freedom-label {
  font-size: 13px;
  opacity: .75;
  margin: 0 0 6px;
}
.freedom-date {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #ffb37a;
}
.freedom-sub {
  font-size: 12px;
  opacity: .65;
  margin: 0;
}

/* Plan preview */
.plan-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.plan-day {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,.85);
  border-radius: var(--r-md);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.plan-day-num {
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 700;
  color: #7c5cfc;
  min-width: 44px;
}
.plan-day-text {
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
}
.plan-preview-sub {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* Review streak badge */
.review-streak {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4caf6e;
}

/* Discount timer */
.scratch-timer {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted-light);
  text-align: center;
}
.scratch-timer b {
  color: #ffb37a;
  font-variant-numeric: tabular-nums;
}
.pw-timer-reminder {
  margin-top: 8px;
  font-size: 14px;
  color: #e53e3e;
  text-align: center;
}
.pw-timer-reminder b {
  font-variant-numeric: tabular-nums;
}

/* Discreet billing note */
.pw-discreet {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* Pinned section name, fixed right under the progress segments */
.section-name[hidden] { display: none; }
.section-name {
  position: fixed;
  top: calc(var(--topbar-h) + 4px);
  left: 0; right: 0;
  z-index: 29;
  margin: 0;
  text-align: center;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #7c5cfc;
  pointer-events: none;
}
/* The old in-flow label is replaced by the pinned one */
.quiz > .section-label { display: none; }

/* Section labels */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #7c5cfc;
  margin-bottom: 12px;
}

/* Insight images */
.insight-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 16px;
}

/* Welcome v2 hero image */
.welcome-v2-hero {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto 20px;
}

/* Accent highlight for welcome sub */
.hl-accent {
  color: #ffb37a;
  font-weight: 600;
}

/* Mentioned-in logos */
.mentioned-in-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--muted);
  margin: 20px 0 8px;
  text-align: center;
}
.mentioned-in-logos {
  max-width: 220px;
  margin: 0 auto;
  opacity: .35;
  filter: grayscale(1);
}

/* Light fineprint */
.cta-fineprint--light {
  color: var(--muted-light);
  opacity: .6;
}

/* ===== Before/After grid ===== */
/* Before/After — fill the screen, center vertically */
.content--ba { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.ba-title {
  font-family: var(--ff-body); font-weight: 800;
  font-size: clamp(22px, 5.8vw, 27px); letter-spacing: -.02em;
  text-align: center; color: var(--ink); margin: 2px 0 4px;
}
.ba-arrow {
  align-self: center;
  font-size: 26px; color: var(--purple-deep); font-weight: 700;
}
.ba-foot { text-align: center; font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.ba-foot b { color: var(--ink); }
.ba-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 10px;
  margin: 22px 0 4px;
}
.ba-col {
  padding: 18px 14px;
  border-radius: var(--r-md);
}
.ba-col--before {
  background: #fce8e8;
}
.ba-col--after {
  background: #e8f5e9;
}
.ba-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 10px;
}
.ba-col--before .ba-label { color: #c62828; }
.ba-col--after .ba-label { color: #2e7d32; }
.ba-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ba-col li {
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
}
.ba-col--before li::before { content: "- "; color: #c62828; font-weight: 600; }
.ba-col--after li::before { content: "+ "; color: #2e7d32; font-weight: 600; }

/* Loader: allow scroll when popups appear */
.screen[data-step="calculating"] { min-height: 100dvh; height: auto; overflow-y: auto; }
.screen[data-step="calculating"] .loader { justify-content: center; padding-top: 0; }

/* ===== Loader popup — centered modal ===== */
.loader-popup[hidden] { display: none; }
.loader-popup {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(20,10,45,.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: popupFade .25s ease;
}
.loader-popup-card {
  width: 100%; max-width: 340px;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(20,10,45,.35);
}
.loader-popup-label {
  text-align: center; font-size: 13px; color: #8b8a99; margin: 0;
  padding: 20px 20px 4px;
}
.loader-popup-q {
  text-align: center; font-size: 18px; font-weight: 800; color: var(--ink);
  margin: 0; padding: 4px 20px 18px; line-height: 1.3;
}
.loader-popup-btns {
  display: flex; gap: 12px; justify-content: center;
  padding: 0 20px 20px;
}
.loader-popup-btn {
  flex: 1; padding: 14px 0; border-radius: 14px;
  font-size: 16px; font-weight: 700; cursor: pointer; border: none;
  transition: transform .15s ease;
}
.loader-popup-btn--no  { background: #efedf4; color: #4a4760; }
.loader-popup-btn--yes { background: var(--purple-deep); color: #fff; }
.loader-popup-btn:active { transform: scale(.96); }
.loader-popup.is-answered { animation: popupFade .25s ease reverse; }
@keyframes popupFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes popupIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ===== Loader reviews carousel (dark, Trustpilot-style) ===== */
.loader-reviews {
  width: 100%;
  max-width: 330px;
  margin: 26px auto 0;
  padding: 6px 4px 22px;     /* room for the card shadow */
}
/* One review at a time, centred, cross-fade — no partial/cut cards */
.loader-rev-track {
  display: grid;             /* all cards stacked in one cell → sizes to tallest, no clip */
}
.loader-rev {
  grid-area: 1 / 1;
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.loader-rev.is-active { opacity: 1; transform: none; }
.loader-rev-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.loader-rev-top .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--purple-deep); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.loader-rev-id { display: flex; flex-direction: column; line-height: 1.25; }
.loader-rev-id b { color: var(--ink); font-size: 15px; }
.loader-rev-meta { font-size: 12px; color: var(--muted); }
.loader-rev p { margin: 0; font-size: 14px; line-height: 1.5; color: #45435a; }

/* ===== Section progress segments (4 phases) ===== */
.section-dots[hidden] { display: none !important; }
.section-dots {
  position: fixed;
  top: calc(var(--topbar-h) - 6px);
  left: max(20px, calc(50vw - 240px));
  right: max(20px, calc(50vw - 240px));
  z-index: 29;
  display: flex;
  gap: 6px;
  pointer-events: none;
}
.section-dot {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
  overflow: hidden;
  font-size: 0;            /* hide the text label */
  position: relative;
}
body.theme--dark .section-dot { background: rgba(255,255,255,.15); }
.section-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--f, 0%);
  background: var(--ink);
  border-radius: 999px;
  transition: width .5s cubic-bezier(.2,.7,.2,1);
}
body.theme--dark .section-dot::after { background: var(--white); }

/* ===== Success steps ===== */
.success-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 24px;
  width: 100%;
  max-width: 320px;
}
.success-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--muted-light);
  line-height: 1.35;
}
.success-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #7c5cfc;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* ===== 1-5 Evaluation scale ===== */
.eval-scale {
  width: 100%;
  max-width: 460px;
  margin: 24px auto 0;
}
.eval-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  padding: 0 4px;
}
.eval-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.eval-btn {
  flex: 1;
  aspect-ratio: 1;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  border: 2px solid #e0dce6;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(20,30,70,.06);
  cursor: pointer;
  transition: all .2s ease;
}
.eval-btn:hover {
  border-color: #7c5cfc;
  background: #f5f0ff;
}
.eval-btn.is-selected {
  background: #7c5cfc;
  border-color: #7c5cfc;
  color: #fff;
  transform: scale(1.08);
}

/* Inline insight callout under a question (our palette) */
.q-callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(124,92,252,.07);
  border: 1px solid rgba(124,92,252,.16);
  border-radius: 14px;
  padding: 11px 13px;
  margin: 0 auto;
  max-width: 460px;
  width: 100%;
  font-size: 13px;
  line-height: 1.4;
  color: #473a63;
  text-align: left;
}
.q-callout .q-callout-ic { font-size: 17px; line-height: 1.3; flex-shrink: 0; }
.q-callout b { color: #5b3fb5; font-weight: 700; }
/* Reserve the callout's space while hidden so revealing it never shifts the
   centered layout — only its opacity changes. */
.q-callout[hidden] { display: flex; visibility: hidden; opacity: 0; }
.q-callout.is-in { animation: calloutFade .4s ease both; }
@keyframes calloutFade { from { opacity: 0; } to { opacity: 1; } }
/* On callout screens we don't auto-advance — keep the Continue button visible
   (overrides the single-select auto-advance hide rule above). */
.screen:has(.q-callout) .cta-bar { display: flex !important; }

/* Screen transitions handled by original .screen.is-active animation */

/* ===== Responsive fixes ===== */
/* ===== Mobile-first responsive for all new elements ===== */

/* Insight images — constrained to not overflow */
.insight-img { max-width: min(140px, 30vw); height: auto; }

/* Content containers — must respect mobile padding */
.score-card, .freedom-card, .plan-preview,
.success-steps, .loader-popups, .loader-review {
  max-width: min(100%, 360px);
  margin-left: auto;
  margin-right: auto;
}

/* Before/After: centered column that scales with the viewport */
.content--ba {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}
.ba-grid {
  max-width: min(100%, 440px);
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 600px) {
  .ba-col { padding: 22px 18px; }
  .ba-col li { font-size: 14px; }
  .ba-label { font-size: 14px; }
  .ba-foot { font-size: 15px; }
}

/* Before/After — sequenced reveal: title → today → arrow → after → foot.
   Overrides the generic content fade so the transformation reads as a story. */
.screen[data-step="before-after"].is-active .content--ba { animation: none; }
.screen[data-step="before-after"].is-active .result-eyebrow { animation: baIn .45s .05s both ease; }
.screen[data-step="before-after"].is-active .ba-title      { animation: baIn .45s .14s both cubic-bezier(.22,.61,.36,1); }
.screen[data-step="before-after"].is-active .ba-col--before{ animation: baIn .5s .3s both cubic-bezier(.22,.61,.36,1); }
.screen[data-step="before-after"].is-active .ba-arrow      { animation: baArrow .5s .55s both cubic-bezier(.34,1.56,.64,1); }
.screen[data-step="before-after"].is-active .ba-col--after { animation: baIn .5s .68s both cubic-bezier(.22,.61,.36,1); }
.screen[data-step="before-after"].is-active .ba-foot       { animation: baIn .45s .95s both ease; }
@keyframes baIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes baArrow { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

/* Faith-proof avatar stack pops in one by one */
.screen[data-step="faith-proof"].is-active .proof-avatars img,
.screen[data-step="faith-proof"].is-active .proof-avatars-more {
  animation: avIn .45s both cubic-bezier(.34,1.56,.64,1);
}
.screen[data-step="faith-proof"].is-active .proof-avatars img:nth-child(1) { animation-delay: .15s; }
.screen[data-step="faith-proof"].is-active .proof-avatars img:nth-child(2) { animation-delay: .24s; }
.screen[data-step="faith-proof"].is-active .proof-avatars img:nth-child(3) { animation-delay: .33s; }
.screen[data-step="faith-proof"].is-active .proof-avatars img:nth-child(4) { animation-delay: .42s; }
.screen[data-step="faith-proof"].is-active .proof-avatars-more { animation-delay: .52s; }
@keyframes avIn { from { opacity: 0; transform: scale(.4) translateX(-6px); } to { opacity: 1; transform: none; } }

/* Prepaywall goal pills stagger in (built from the user's own picks) */
.screen[data-step="prepaywall"].is-active .goal-pill {
  animation: pillIn .4s both cubic-bezier(.34,1.56,.64,1);
}
.screen[data-step="prepaywall"].is-active .goal-pill:nth-child(1) { animation-delay: .06s; }
.screen[data-step="prepaywall"].is-active .goal-pill:nth-child(2) { animation-delay: .13s; }
.screen[data-step="prepaywall"].is-active .goal-pill:nth-child(3) { animation-delay: .20s; }
.screen[data-step="prepaywall"].is-active .goal-pill:nth-child(4) { animation-delay: .27s; }
.screen[data-step="prepaywall"].is-active .goal-pill:nth-child(5) { animation-delay: .34s; }
.screen[data-step="prepaywall"].is-active .goal-pill:nth-child(6) { animation-delay: .41s; }
@keyframes pillIn { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .screen[data-step="before-after"].is-active .result-eyebrow,
  .screen[data-step="before-after"].is-active .ba-title,
  .screen[data-step="before-after"].is-active .ba-col--before,
  .screen[data-step="before-after"].is-active .ba-arrow,
  .screen[data-step="before-after"].is-active .ba-col--after,
  .screen[data-step="before-after"].is-active .ba-foot,
  .screen[data-step="faith-proof"].is-active .proof-avatars img,
  .screen[data-step="faith-proof"].is-active .proof-avatars-more,
  .screen[data-step="prepaywall"].is-active .goal-pill { animation: none; }
}

/* Eval scale must not overflow */
.eval-scale { max-width: min(460px, calc(100vw - 40px)); }

/* Before/after must stack on very small screens */
@media (max-width: 380px) {
  .ba-grid { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); }
  .ba-col li { font-size: 13px; }
}

/* Small phones */
@media (max-width: 360px) {
  .welcome-v2-proof { flex-wrap: wrap; }
  .eval-btns { gap: 6px; }
  .eval-btn { max-width: 44px; font-size: 16px; }
  .section-dot { font-size: 8px; padding: 2px 6px; }
  .loader-popup-btn { padding: 8px 16px; font-size: 13px; }
}

/* =====================================================================
   Short-viewport fit — keep every question + post-loader screen on ONE
   screen (CTA visible, no scroll) down to iPhone SE (375x667) and Safari
   with the URL bar showing (~750px). Tighten the generous offsets/margins
   that only matter on tall phones.
   ===================================================================== */
@media (max-height: 820px) {
  /* Question screens: reclaim the big fixed top offset + tighten options */
  .quiz { padding-top: clamp(40px, 8vh, 76px); gap: clamp(10px, 1.6vh, 16px); }
  .option { padding: clamp(10px, 1.4vh, 14px) 16px; }

  /* Proof 1 / 2 (pedagogy hero + lede) */
  .pedagogy { padding: 32px 26px 52px; }
  .hero-img { width: clamp(120px, 36vw, 168px); height: clamp(120px, 36vw, 168px); margin: 4px 0 12px; }
  .pedagogy > .display { margin: 0 0 10px; }
  .heal-chart { margin: 0 auto 14px; }
  .heal-chart svg { height: 120px; }

  /* Result diagnosis */
  .content { padding-top: 4px; padding-bottom: 12px; }
  .result-h { margin: 0 0 6px; }
  .score-hero { gap: 5px; margin: 0 0 8px; }
  .score-big > span:first-child { font-size: clamp(48px, 13vw, 68px); }
  .chart { margin: 6px 0 4px; }
  .bars { --chart-h: clamp(170px, 40vw, 240px); }
  .screen[data-step="result"] .disclaimer { padding-top: 8px; }

  /* Proof 3 reviews */
  .reviews-content { gap: 10px; padding: 12px 22px; }
  .reviews-grid { gap: 8px; }
  .review { padding: 12px 16px; }
  .review-top { margin-bottom: 6px; }
  .review-stars { margin-bottom: 6px; }
  .review p { font-size: 13px; line-height: 1.45; }

  /* Before / after */
  .ba-title { margin: 0 0 2px; }
  .ba-grid { margin: 12px 0 4px; gap: 8px; }
  .ba-col { padding: 12px 12px; }
  .ba-col ul { gap: 6px; }
  .ba-col li { font-size: 12.5px; line-height: 1.3; }
  .ba-label { margin: 0 0 6px; }

  /* Scratch reward */
  .scratch-screen { padding-top: 14px; }
  .scratch-badge { margin-bottom: 14px; }
  .scratch-card { margin: 16px 0 12px; height: 150px; }
}

@media (max-height: 700px) {
  .quiz { padding-top: clamp(28px, 5vh, 52px); gap: clamp(8px, 1.3vh, 14px); }
  .option { padding: clamp(9px, 1.2vh, 12px) 16px; }
  .pedagogy { padding: 24px 26px 48px; }
  .hero-img { width: clamp(108px, 30vw, 150px); height: clamp(108px, 30vw, 150px); }
  .bars { --chart-h: clamp(150px, 36vw, 210px); }
  /* Keep before/after side-by-side (stacking doubles the height) */
  .ba-grid { grid-template-columns: 1fr auto 1fr; }
  .ba-arrow { transform: none; }
  .ba-col { padding: 10px 10px; }
  .ba-col li { font-size: 12px; }
  /* Proof 3 reviews — squeeze hard so all 3 + CTA clear the fold */
  .reviews-content { gap: 8px; padding: 10px 22px; }
  .reviews-title { font-size: clamp(19px, 5vw, 22px); }
  .reviews-grid { gap: 6px; }
  .review { padding: 9px 14px; }
  .review-top { margin-bottom: 5px; }
  .review-top .avatar { width: 30px; height: 30px; }
  .review-stars { margin-bottom: 4px; }
  .review p { font-size: 12.5px; line-height: 1.35; }
}

/* ===== V2: linear progress only (hide hardcoded section dots) ===== */
#section-dots, #section-name { display: none !important; }

/* =====================================================================
   V2 net-new screens — stat proof · community avatars · testimonials
   ===================================================================== */
body.theme--dark .insight-title { color: var(--white); }
body.theme--dark .insight-sub { color: rgba(255,255,255,.74); }
body.theme--dark .insight-sub b { color: #fff; }

.proof-stat { display:flex; align-items:baseline; justify-content:center; gap:6px; margin-bottom:4px; }
.proof-stat-num {
  font-family: var(--ff-display); font-size: 76px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #b49bff, #7c5cfc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.proof-stat-unit { font-size: 22px; font-weight: 700; color: rgba(255,255,255,.78); }

.proof-avatars { display:flex; align-items:center; justify-content:center; margin-top: 22px; }
.proof-avatars img {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 2px solid #2c155d; margin-left: -12px; background: #3a2a6b;
}
.proof-avatars img:first-child { margin-left: 0; }
.proof-avatars-more {
  margin-left: -8px; padding: 0 13px; height: 48px;
  display: inline-flex; align-items: center;
  border-radius: 50px; background: #7c5cfc; color: #fff;
  font-weight: 800; font-size: 14px; border: 2px solid #2c155d;
}

.testi-list { display:flex; flex-direction:column; gap: 12px; width: 100%; max-width: 360px; margin: 20px auto 0; }
.testi-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px; padding: 14px 16px; text-align: left;
}
.testi-top { display:flex; align-items:center; gap: 10px; margin-bottom: 8px; }
.testi-av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: center top; flex: 0 0 auto; }
.testi-top b { display:block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.testi-card p { margin: 0; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.45; }
.testi-card .review-stars { font-size: 12px; }

/* ===== Hold-to-commit pledge ===== */
.hold-commit {
  position: relative; margin: 30px auto 4px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: none; border: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: none; user-select: none;
}
.hold-commit-ring { position: relative; width: 144px; height: 144px; display: grid; place-items: center; }
.hold-commit-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hcr-bg { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 8; }
.hcr-fg { fill: none; stroke: #7c5cfc; stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke .25s ease; }
.hold-commit-emoji { font-size: 54px; line-height: 1; transition: transform .2s ease; }
.hold-commit.is-holding .hold-commit-emoji { transform: scale(1.14); }
.hold-commit.is-committed .hcr-fg { stroke: #34d399; }
.hold-commit-label { font-weight: 700; font-size: 15px; color: #fff; letter-spacing: .01em; }

/* ===== Result — 90-day projection curve (replaces flat bars) ===== */
.result-proj { width: 100%; max-width: 360px; margin: 14px auto 8px; }
.rp-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.rp-tag { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.35; }
.rp-tag b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.rp-tag--now { text-align: left; color: #e0552f; }
.rp-tag--now b { color: #e0552f; }
.rp-tag--free { text-align: right; color: #1f9d57; }
.rp-tag--free b { color: #1f9d57; }
.rp-plot { position: relative; height: 168px; }
.rp-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.rp-line { filter: drop-shadow(0 4px 10px rgba(124,92,252,.35)); }
.rp-dot { stroke: #fff; stroke-width: 3; }
.rp-dot--start { fill: #ff5a3c; }
.rp-dot--end { fill: #34d399; }
.rp-axis { display: flex; justify-content: space-between; margin-top: 6px; }
.rp-axis span { font-size: 11px; color: var(--muted); font-weight: 600; }
.rp-axis span:nth-child(2) { transform: translateX(-6px); }

/* ===== Hold-to-commit clarity + verse contrast (dark) ===== */
body.theme--dark .verse { color: rgba(255,255,255,.7); }
.commit-intro-screen .verse, [data-step="commit-intro"] .verse { color: rgba(255,255,255,.72); }
/* idle pulse cue so the ring reads as interactive */
.hold-commit:not(.is-holding):not(.is-committed) .hold-commit-ring::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(124,92,252,.55); animation: holdPulse 1.8s ease-out infinite;
}
@keyframes holdPulse {
  0% { transform: scale(.92); opacity: .8; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* ===== Auto-advancing questions: answer advances automatically → hide Continue.
   Callout screens (insight reveal) and multi-select keep their button. ===== */
.screen:has(.options--numbered[data-required]):not(:has(.q-callout)) .cta-bar,
.screen:has(.eval-scale[data-required]):not(:has(.q-callout)) .cta-bar { display: none; }

/* Kill the mobile blue tap-flash on all interactive controls (was showing blue→purple) */
button, .btn, .eval-btn, .option, [role="button"] { -webkit-tap-highlight-color: transparent; }

/* ===== Generic proof curve (rising, distinct from the result's descending curve) ===== */
.proof-curve { width: 100%; max-width: 340px; margin: 16px auto 4px; }
.proof-curve-cap { font-size: 14px; color: rgba(255,255,255,.8); margin-bottom: 6px; text-align: center; }
.proof-curve-cap b { color: #34d399; font-weight: 800; font-size: 16px; }
.proof-curve-svg { width: 100%; height: 120px; display: block; overflow: visible; }
.proof-curve .pc-line { filter: drop-shadow(0 4px 10px rgba(52,211,153,.35)); }
.proof-curve .pc-dot { fill: #34d399; stroke: #2c155d; stroke-width: 3; }

/* Draw the curve in when the screen activates: line traces left → right,
   area sweeps behind it, end dot pops last. Re-runs on every entry because
   the screen flips display:none → flex. */
.screen.is-active .proof-curve .pc-line {
  stroke-dasharray: 1;
  animation: pcDraw 1.5s .25s cubic-bezier(.16,.84,.32,1.02) both;
}
.screen.is-active .proof-curve .pc-area {
  animation: pcSweep 1.5s .25s cubic-bezier(.16,.84,.32,1.02) both;
}
.screen.is-active .proof-curve .pc-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: pcPop .4s 1.55s cubic-bezier(.34,1.56,.64,1) both;
}
.screen.is-active .proof-curve-cap {
  animation: pcCap .45s 1.7s ease both;
}
@keyframes pcDraw {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}
@keyframes pcSweep {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes pcPop {
  from { opacity: 0; transform: scale(0); }
  60%  { opacity: 1; transform: scale(1.35); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pcCap {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .screen.is-active .proof-curve .pc-line,
  .screen.is-active .proof-curve .pc-area,
  .screen.is-active .proof-curve .pc-dot,
  .screen.is-active .proof-curve-cap { animation: none; }
}
.proof-curve-axis { display: flex; justify-content: space-between; margin-top: 4px; }
.proof-curve-axis span { font-size: 11px; color: rgba(255,255,255,.6); font-weight: 600; }
.proof-curve-axis span:nth-child(2) { transform: translateX(-6px); }

/* Hold-to-commit seal: the wash floods DURING the hold, in the NEXT page's
   color (commit-done = theme--quiz lavender #f4f1fa), then fades to reveal it. */
.hold-burst {
  position: fixed; width: 44px; height: 44px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  background: #f4f1fa;
  z-index: 60; pointer-events: none; opacity: 1;
  transition: transform .42s cubic-bezier(.5, 0, .25, 1), opacity .5s ease;
}
.hold-burst.is-grown { transform: translate(-50%, -50%) scale(62); }
.hold-burst.is-fading { opacity: 0; }
.hold-burst-hands {
  position: fixed; left: 50%; top: 42%; z-index: 61; pointer-events: none;
  transform: translate(-50%, -50%) scale(.4); opacity: 0;
  transition: transform .5s cubic-bezier(.2, .9, .3, 1.35), opacity .35s ease;
}
.hold-burst-hands span { font-size: 76px; line-height: 1; display: block; filter: drop-shadow(0 10px 22px rgba(90,63,214,.28)); }
/* Lottie prayer played on completion (emoji text is the no-lottie fallback) */
.hold-burst-hands [data-hands-lottie] {
  width: 150px; height: 150px;
  display: grid; place-items: center;
  font-size: 76px; line-height: 1;
  filter: drop-shadow(0 10px 22px rgba(90,63,214,.28));
}
.hold-burst-hands [data-hands-lottie] svg { width: 100%; height: 100%; }
.hold-burst-hands.is-in { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.hold-burst-hands.is-out { opacity: 0; transform: translate(-50%, -50%) scale(1.15); }

/* On dark screens, the near-black ink CTA was invisible → make it a light button */
body.theme--dark .cta-bar .btn--ink {
  background: var(--white); color: var(--ink);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
body.theme--dark .cta-bar .btn--ink .cta-circle {
  background: rgba(20,20,30,.12); color: var(--ink);
}
