/* Watered Heart Counselling · Freedom Program quiz
   Layout follows the Sunkissed quiz: centred card column, soft blurred glows, pill buttons,
   big tappable options, thin progress bar, Back / Next at the bottom.
   Palette is taken from the client logo: water-drop cyan and heart red on a cool near-white. */

:root {
  --bg: #F5FAFC;
  --ink: #14232B;
  --ink-soft: rgba(20, 35, 43, 0.62);
  --ink-faint: rgba(20, 35, 43, 0.4);
  --line: rgba(20, 35, 43, 0.1);
  --cyan: #12B5DB;
  --cyan-deep: #0A7E9E;
  --cyan-wash: rgba(18, 181, 219, 0.1);
  --heart: #9E3532;
  --card: rgba(255, 255, 255, 0.78);
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.quiz {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.quiz::before,
.quiz::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.quiz::before {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(18, 181, 219, 0.3), rgba(18, 181, 219, 0) 70%);
  top: -140px; right: -110px;
}
.quiz::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(158, 53, 50, 0.13), rgba(158, 53, 50, 0) 70%);
  bottom: -150px; left: -120px;
}

.quiz__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* Brand mark */
.quiz__brand { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.quiz__brand img { height: 92px; width: auto; display: block; }

/* Top bar */
.quiz__topbar { margin-bottom: 2rem; }
.quiz__topbar[hidden], .quiz__nav[hidden] { display: none; }
.quiz__topbar-label {
  display: block;
  text-align: right;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.65rem;
}
.quiz__progress { height: 4px; border-radius: 9999px; background: rgba(20, 35, 43, 0.08); overflow: hidden; }
.quiz__progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-deep) 100%);
  border-radius: 9999px;
  transition: width 0.5s var(--ease);
}

/* Steps */
.quiz__step { display: none; }
.quiz__step--active { display: block; animation: quizFadeUp 0.5s var(--ease) both; }
.quiz__step--active.quiz__step--capture { animation: none; }
@keyframes quizFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin: 0 0 0.75rem;
}
.quiz__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}
.quiz__heading--hero { font-size: clamp(2.3rem, 5.4vw, 3.6rem); text-align: center; }
.quiz__question {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
  max-width: 560px;
  text-wrap: balance;
}
.quiz__hint { font-size: 0.82rem; color: var(--ink-soft); margin: 0 0 1.5rem; }
.quiz__question + .quiz__options { margin-top: 1.5rem; }
.quiz__sub { font-size: 0.97rem; line-height: 1.65; color: var(--ink-soft); margin: 0 0 1.6rem; max-width: 500px; }
.quiz__sub--center { margin-left: auto; margin-right: auto; text-align: center; }
.quiz__sub--wide { max-width: 540px; }
.quiz__lead { font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); text-align: center; margin: 0 0 1.4rem; max-width: 600px; }

/* Intro */
.quiz__step--intro { text-align: center; }
.quiz__step--intro.quiz__step--active { display: flex; flex-direction: column; align-items: center; }
.quiz__intro-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--cyan-wash);
  color: var(--heart);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.quiz__intro-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 0 0 2rem; }
.quiz__intro-feature {
  display: flex; align-items: center; gap: 0.45rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.78rem; font-weight: 600;
  color: rgba(20, 35, 43, 0.78);
}
.quiz__intro-feature-icon {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cyan-wash); color: var(--cyan-deep);
  font-size: 0.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.quiz__trust { font-size: 0.72rem; text-align: center; color: var(--ink-faint); letter-spacing: 0.03em; margin: 1.1rem 0 0; max-width: 420px; }

/* Options */
.quiz__options { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.quiz__option {
  display: flex; align-items: center; gap: 0.9rem;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.05rem 1.2rem;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  color: var(--ink); text-align: left; cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.quiz__option:hover { transform: translateY(-2px); border-color: rgba(18, 181, 219, 0.5); box-shadow: 0 8px 24px rgba(10, 126, 158, 0.1); }
.quiz__option:active { transform: scale(0.99); }
.quiz__option:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(18, 181, 219, 0.35); }
.quiz__option--selected { background: var(--cyan-wash); border-color: rgba(18, 181, 219, 0.7); box-shadow: 0 8px 20px rgba(10, 126, 158, 0.1); }
.quiz__option-mark {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(20, 35, 43, 0.2);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.quiz__option--multi .quiz__option-mark { border-radius: 0.4rem; }
.quiz__option-mark::after {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; transform: scale(0); transition: transform 0.25s var(--ease);
}
.quiz__option--multi .quiz__option-mark::after {
  width: 5px; height: 10px; border-radius: 0; background: transparent;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); margin-top: -2px;
}
.quiz__option--selected .quiz__option-mark { border-color: transparent; background: linear-gradient(135deg, var(--cyan), var(--cyan-deep)); }
.quiz__option--selected .quiz__option-mark::after { transform: scale(1); }
.quiz__option--multi.quiz__option--selected .quiz__option-mark::after { transform: rotate(45deg) scale(1); }
.quiz__option-label { flex: 1; }

/* Buttons */
.quiz__btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1AB8DD 0%, #0E9CC0 45%, #0A7E9E 100%);
  color: #fff; font-family: inherit; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.04em;
  border: none; text-decoration: none;
  padding: 1rem 2rem; border-radius: 9999px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(10, 126, 158, 0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.quiz__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(10, 126, 158, 0.38); }
.quiz__btn:active { transform: scale(0.98); }
.quiz__btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(18, 181, 219, 0.45); }
.quiz__btn:disabled { background: rgba(20, 35, 43, 0.12); color: rgba(20, 35, 43, 0.35); box-shadow: none; cursor: not-allowed; }
.quiz__btn:disabled:hover { transform: none; box-shadow: none; }
.quiz__btn--large { padding: 1.15rem 2.5rem; font-size: 0.94rem; }
.quiz__btn--block { width: 100%; }
.quiz__link { color: var(--cyan-deep); font-weight: 600; font-size: 0.85rem; }

/* Bottom nav */
.quiz__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 2rem; }
.quiz__nav-back {
  background: none; border: none; font-family: inherit; font-size: 0.84rem; font-weight: 600;
  color: var(--ink-faint); cursor: pointer; padding: 0.6rem 0; transition: color 0.25s ease;
}
.quiz__nav-back:hover { color: var(--ink); }
.quiz__nav-back:focus-visible, .quiz__nav-next:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(18, 181, 219, 0.35); border-radius: 9999px; }
.quiz__nav-next[hidden] { display: none; }

/* Capture */
.quiz__form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 400px; }
.quiz__input {
  width: 100%; padding: 0.95rem 1.1rem;
  border: 1px solid rgba(20, 35, 43, 0.15); border-radius: 0.85rem;
  background: #fff; font-family: inherit; font-size: 16px; color: var(--ink); outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.quiz__input::placeholder { color: rgba(20, 35, 43, 0.35); }
.quiz__input:focus { border-color: rgba(18, 181, 219, 0.7); box-shadow: 0 0 0 3px rgba(18, 181, 219, 0.16); }
.quiz__consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.76rem; line-height: 1.5; color: var(--ink-soft); margin: 0.25rem 0 0.4rem; }
.quiz__consent input { margin-top: 0.2rem; width: 17px; height: 17px; accent-color: var(--cyan-deep); flex-shrink: 0; }
.quiz__error { font-size: 0.78rem; color: var(--heart); margin: 0; }
.quiz__error[hidden] { display: none; }

/* Results */
.quiz__results { max-width: 580px; margin: 0 auto; text-align: center; }
.quiz__results .quiz__sub { margin-left: auto; margin-right: auto; }
.quiz__card { background: rgba(255, 255, 255, 0.55); border: 1px solid var(--line); border-radius: 1.5rem; padding: 6px; margin-bottom: 1.25rem; text-align: left; }
.quiz__card-inner { background: #fff; border-radius: calc(1.5rem - 6px); padding: 1.4rem 1.6rem; }
.quiz__card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin: 0 0 0.85rem; }
.quiz__bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.quiz__bullets li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; line-height: 1.55; color: rgba(20, 35, 43, 0.75); }
.quiz__bullets li::before {
  content: '\2713'; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cyan-wash); color: var(--cyan-deep);
  font-size: 0.62rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 0.15rem;
}
.quiz__tier-price { font-size: 0.8rem; font-weight: 700; color: var(--cyan-deep); margin: 0 0 0.6rem; }
.quiz__results .quiz__btn { margin-top: 0.75rem; }
.quiz__results-links { margin-top: 1rem; }
.quiz__note { font-size: 0.72rem; color: var(--ink-faint); margin: 1.25rem auto 0; max-width: 420px; }

/* Stop screen (under 18) */
.quiz__stop { max-width: 520px; margin: 0 auto; text-align: center; }
.quiz__stop .quiz__sub { margin-left: auto; margin-right: auto; }

/* Chooser page */
.chooser { display: grid; grid-template-columns: 1fr; gap: 0.9rem; max-width: 460px; margin: 0 auto; }
.chooser a { text-decoration: none; }
.chooser .quiz__option { justify-content: space-between; padding: 1.3rem 1.4rem; }
.chooser__arrow { color: var(--cyan-deep); font-size: 1.1rem; }

.quiz__footer { text-align: center; font-size: 0.7rem; color: var(--ink-faint); margin-top: 2.5rem; }
.quiz__footer a { color: inherit; }

@media (max-width: 640px) {
  .quiz { padding: 1.5rem 1.25rem 2rem; align-items: stretch; }
  .quiz__container { display: flex; flex-direction: column; flex: 1; }
  .quiz__stage { flex: 1; display: flex; flex-direction: column; }
  .quiz__step--intro.quiz__step--active { flex: 1; justify-content: center; }
  .quiz__step--intro .quiz__btn { width: 100%; }
  .quiz__topbar-label { text-align: left; }
  .quiz__brand img { height: 76px; }
  .quiz__intro-feature { font-size: 0.72rem; padding: 0.45rem 0.85rem; }
}

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

/* ===== Fit every screen in one viewport =====
   Sizes scale with the viewport height. quiz.js adds .fit-1 and then .fit-2 when a screen is still too tall. */
.quiz { min-height: 100vh; min-height: 100dvh; padding: clamp(0.6rem, 2.2vh, 2rem) 1.25rem; }
.quiz__brand { margin-bottom: clamp(0.35rem, 1.5vh, 1.1rem); }
.quiz__brand img { height: clamp(44px, 9vh, 88px); width: auto; }
.quiz__brand .brand-mark { display: none; height: clamp(30px, 5.5vh, 44px); }
.quiz__brand .brand-full { display: block; }
[data-screen]:not([data-screen="intro"]) .quiz__brand .brand-full { display: none; }
[data-screen]:not([data-screen="intro"]) .quiz__brand .brand-mark { display: block; }

.quiz__topbar { margin-bottom: clamp(0.6rem, 2.2vh, 1.8rem); }
.quiz__topbar-label { margin-bottom: clamp(0.35rem, 1vh, 0.65rem); }
.quiz__eyebrow { margin-bottom: clamp(0.35rem, 1vh, 0.75rem); }
.quiz__question { font-size: clamp(1.3rem, min(5vw, 3.4vh), 2.05rem); margin-bottom: clamp(0.3rem, 0.9vh, 0.6rem); }
.quiz__hint { margin-bottom: clamp(0.5rem, 1.4vh, 1.2rem); }
.quiz__question + .quiz__options { margin-top: clamp(0.7rem, 2vh, 1.5rem); }
.quiz__options { gap: clamp(0.35rem, 1.2vh, 0.8rem); }
.quiz__option { padding: clamp(0.55rem, 1.7vh, 1.05rem) 1.1rem; font-size: clamp(0.86rem, 2.1vh, 0.95rem); }
.quiz__nav { margin-top: clamp(0.7rem, 2.2vh, 2rem); }
.quiz__footer { margin-top: clamp(0.6rem, 2vh, 2rem); }

.quiz__heading { font-size: clamp(1.7rem, min(5vw, 5.4vh), 3rem); margin-bottom: clamp(0.4rem, 1.2vh, 0.9rem); }
.quiz__heading--hero { font-size: clamp(1.8rem, min(6vw, 6.2vh), 3.4rem); }
.quiz__lead { font-size: clamp(0.88rem, 2.2vh, 1.05rem); margin-bottom: clamp(0.6rem, 1.8vh, 1.4rem); }
.quiz__sub { font-size: clamp(0.84rem, 2vh, 0.97rem); margin-bottom: clamp(0.7rem, 2vh, 1.6rem); }
.quiz__intro-features { margin-bottom: clamp(0.8rem, 2.6vh, 2rem); gap: clamp(0.35rem, 1vh, 0.6rem); }
.quiz__intro-feature { padding: clamp(0.3rem, 1vh, 0.5rem) 0.9rem; }
.quiz__btn--large { padding: clamp(0.8rem, 2vh, 1.15rem) 2.4rem; }
.quiz__trust { margin-top: clamp(0.6rem, 1.6vh, 1.1rem); }
.quiz__form { gap: clamp(0.5rem, 1.2vh, 0.75rem); }
.quiz__input { padding: clamp(0.65rem, 1.7vh, 0.95rem) 1.1rem; }

/* Results: two cards side by side on wide screens */
[data-screen="results"] .quiz__container { max-width: 900px; }
.quiz__results { max-width: none; }
.quiz__results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 clamp(0.6rem, 1.8vh, 1.2rem); text-align: left; }
.quiz__results-grid .quiz__card { margin-bottom: 0; }
.quiz__card-inner { padding: clamp(0.9rem, 2.2vh, 1.4rem) 1.4rem; }
.quiz__card-title { font-size: clamp(1rem, 2.4vh, 1.2rem); margin-bottom: clamp(0.5rem, 1.2vh, 0.85rem); }
.quiz__bullets { gap: clamp(0.4rem, 1vh, 0.7rem); }
.quiz__bullets li { font-size: clamp(0.8rem, 1.9vh, 0.88rem); line-height: 1.5; }
.quiz__incl summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; margin: 0; }
.quiz__incl summary::-webkit-details-marker { display: none; }
.quiz__incl summary::after { content: '+'; color: var(--cyan-deep); font-weight: 700; font-family: var(--font-body); }
.quiz__incl[open] summary { margin-bottom: clamp(0.5rem, 1.2vh, 0.85rem); }
.quiz__incl[open] summary::after { content: '\2013'; }
.quiz__results .quiz__btn { margin-top: 0.25rem; }
.quiz__results-links { margin-top: clamp(0.5rem, 1.2vh, 1rem); margin-bottom: 0; }
.quiz__note { margin-top: clamp(0.5rem, 1.4vh, 1.25rem); }
@media (max-width: 760px) {
  .quiz__results-grid { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* Still too tall: tighten further */
.fit-1 .quiz__eyebrow { margin-bottom: 0.25rem; }
.fit-1 .quiz__hint { display: none; }
.fit-1 .quiz__topbar { margin-bottom: 0.5rem; }
.fit-1 .quiz__nav { margin-top: 0.6rem; }
.fit-1 .quiz__footer { display: none; }
.fit-1 .quiz__brand { margin-bottom: 0.25rem; }
.fit-2 .quiz__brand .brand-full, .fit-2 .quiz__brand .brand-mark { display: none !important; }
.fit-2 .quiz__brand { margin: 0; }
.fit-2 .quiz__eyebrow { display: none; }
.fit-2 .quiz__intro-features { margin-bottom: 0.6rem; }
.fit-2 .quiz__trust { margin-top: 0.4rem; }
.fit-2 .quiz__note { display: none; }

/* ===== Feedback round 1: readability, contrast, tap targets ===== */
:root { --ink-soft: #3A4C56; --ink-faint: #566872; --line: rgba(20, 35, 43, 0.16); }

/* Intro: larger text */
.quiz__lead { font-size: clamp(1.02rem, 2.4vh, 1.2rem); color: var(--ink-soft); }
.quiz__sub { font-size: clamp(0.98rem, 2.2vh, 1.1rem); color: var(--ink-soft); }
.quiz__intro-feature { font-size: 0.9rem; color: var(--ink); }
.quiz__trust { font-size: 0.82rem; color: var(--ink-faint); }
.quiz__btn--large { font-size: 1rem; }
.quiz__hint { font-size: 0.9rem; color: var(--ink-soft); }
.quiz__topbar-label { font-size: 0.72rem; color: var(--ink-faint); }
.quiz__nav-back { font-size: 0.95rem; color: var(--ink-soft); }
.quiz__footer { font-size: 0.78rem; }
.quiz__input::placeholder { color: rgba(20, 35, 43, 0.55); }
.quiz__consent { font-size: 0.85rem; color: var(--ink-soft); }

/* Questions: bigger answer text */
.quiz__option { font-size: clamp(0.98rem, 2.3vh, 1.05rem); }

/* Results: bigger, calmer text */
.quiz__results-grid { gap: 1.25rem; align-items: stretch; }
.quiz__card-inner { padding: clamp(1.1rem, 2.6vh, 1.6rem) 1.6rem; height: 100%; }
.quiz__card { height: 100%; }
.quiz__results-grid .quiz__card { height: auto; }
.quiz__card-title { font-size: clamp(1.15rem, 2.8vh, 1.4rem); margin-bottom: 1rem; }
.quiz__bullets { gap: clamp(0.6rem, 1.6vh, 0.95rem); }
.quiz__bullets li { font-size: clamp(0.95rem, 2.2vh, 1.02rem); line-height: 1.55; color: var(--ink); gap: 0.75rem; }
.quiz__bullets li::before { width: 22px; height: 22px; font-size: 0.75rem; margin-top: 0.1rem; }
.quiz__tier-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 0.9rem; }
.quiz__tier-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 3vh, 1.6rem); line-height: 1.15; margin: 0; }
.quiz__tier-price { display: inline-block; background: var(--cyan-wash); color: var(--cyan-deep); border: 1px solid rgba(18, 181, 219, 0.35); border-radius: 9999px; padding: 0.3rem 0.85rem; font-size: 0.9rem; font-weight: 700; margin: 0; }
.quiz__tier-price--muted { font-weight: 600; color: var(--ink-soft); background: transparent; border-color: var(--line); }
.quiz__incl-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan-deep); margin: 0 0 0.7rem; }
.quiz__results .quiz__sub { font-size: clamp(1rem, 2.3vh, 1.12rem); }
.quiz__note { font-size: 0.82rem; color: var(--ink-faint); }
.quiz__results-links .quiz__link { font-size: 0.95rem; }

@media (max-width: 640px) {
  /* Bigger, easier answer buttons */
  .quiz__options { gap: 0.8rem; }
  .quiz__option { min-height: 60px; padding: 1rem 1.15rem; font-size: 1.02rem; gap: 1rem; }
  .quiz__option-mark { width: 26px; height: 26px; }
  .quiz__question { font-size: clamp(1.45rem, 6vw, 1.8rem); }
  /* Next and Back sit directly under the last answer, full width, easy to reach */
  .quiz__stage { flex: 0 0 auto; }
  [data-screen="intro"] .quiz__stage { flex: 1 1 auto; }
  .quiz__nav { flex-direction: column-reverse; align-items: stretch; gap: 0.25rem; margin-top: 1.1rem; }
  .quiz__nav-next { width: 100%; padding: 1.1rem 2rem; font-size: 1rem; }
  .quiz__nav-back { text-align: center; padding: 0.8rem 0; }
  .quiz__nav-next[hidden] { display: none; }
  .quiz__brand img { height: 64px; }
  /* Results: bigger text, button always in reach */
  .quiz__bullets li { font-size: 1.02rem; }
  .quiz__tier-name { font-size: 1.45rem; }
  .quiz__results .quiz__btn--large { position: sticky; bottom: 0.75rem; width: 100%; z-index: 3; box-shadow: 0 10px 28px rgba(10, 126, 158, 0.38); }
  .quiz__input { font-size: 16px; }
}
.quiz__results-grid .quiz__card { display: flex; }
.quiz__results-grid .quiz__card-inner { flex: 1; height: auto; }

/* ===== Results redesign: one recommendation, not two options to compare ===== */
[data-screen="results"] .quiz__container { max-width: 980px; }
.quiz__results { text-align: left; max-width: none; }
.quiz__results-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas: "head card" "why card" "about card" "cta card";
  column-gap: clamp(1.5rem, 4vw, 3.5rem); row-gap: clamp(0.9rem, 2vh, 1.4rem);
  align-items: start; text-align: left; margin: 0;
}
.r-head { grid-area: head; } .r-card { grid-area: card; } .r-why { grid-area: why; } .r-cta { grid-area: cta; }
.quiz__results .quiz__heading { text-align: left; }
.quiz__results .quiz__sub { margin-left: 0; margin-right: 0; max-width: none; text-align: left; }
.r-card {
  background: #fff; border: 1px solid rgba(18, 181, 219, 0.35); border-top: 4px solid var(--cyan);
  border-radius: 1.25rem; padding: clamp(1.2rem, 3vh, 1.8rem) 1.7rem;
  box-shadow: 0 18px 40px rgba(10, 126, 158, 0.12);
}
.r-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  padding: 0.32rem 0.85rem; border-radius: 9999px; margin-bottom: 1rem;
}
.r-why .quiz__incl-label { margin-bottom: 0.8rem; }
.r-cta { display: flex; flex-direction: column; align-items: flex-start; }
.r-cta .quiz__btn--large { margin-top: 0; }
.quiz__results-links, .quiz__note { text-align: left; margin-left: 0; }
@media (max-width: 860px) {
  .quiz__results-grid { grid-template-columns: 1fr; grid-template-areas: "head" "card" "why" "about" "cta"; }
  .r-cta {
    align-items: stretch; text-align: center; position: sticky; bottom: 0; z-index: 3;
    background: linear-gradient(to bottom, rgba(245, 250, 252, 0), var(--bg) 30%);
    padding: 1rem 0 0.6rem;
  }
  .r-cta .quiz__btn--large { position: static; width: 100%; }
  .quiz__results-links { text-align: center; margin-left: auto; margin-right: auto; margin-top: 0.6rem; }
  .quiz__note { display: none; }
}

.quiz__tier-price[hidden] { display: none; }

/* Headings get focus for screen readers after each step; do not draw a box around them */
.quiz [tabindex="-1"]:focus { outline: none; }

/* About the program (parent results) */
.r-about { grid-area: about; }
.r-about[hidden] { display: none; }
.r-about-intro { font-size: clamp(0.98rem, 2.2vh, 1.05rem); line-height: 1.65; color: var(--ink); margin: 0 0 1.1rem; }
.r-about-help-label { margin-top: 0.4rem; }
.quiz__bullets--rich li { display: flex; }
.quiz__bullets--rich strong { color: var(--ink); }

/* Results layout v3: left column explains, right column holds the recommendation and the button */
.quiz__results-grid { grid-template-areas: none; align-items: start; }
.r-main, .r-side { display: flex; flex-direction: column; gap: clamp(0.9rem, 2vh, 1.4rem); min-width: 0; }
.r-head, .r-card, .r-why, .r-about, .r-cta { grid-area: auto; }
.r-side { position: sticky; top: 1.25rem; }
@media (max-width: 860px) {
  .quiz__results-grid { grid-template-columns: 1fr; row-gap: 1rem; }
  .r-main, .r-side { display: contents; }
  .r-side { position: static; }
  .r-head { order: 1; } .r-card { order: 2; } .r-why { order: 3; } .r-about { order: 4; } .r-cta { order: 5; }
}

/* ===== Results layout v4: one calm centred column (matches the Sunkissed result page) ===== */
[data-screen="results"] .quiz__container { max-width: 640px; }
.quiz__results { max-width: none; text-align: center; }
.quiz__results .quiz__heading { text-align: center; }
.quiz__results .quiz__sub { text-align: center; margin-left: auto; margin-right: auto; max-width: 520px; }
.quiz__results .quiz__eyebrow { text-align: center; }
.quiz__results .quiz__card { margin-bottom: 1rem; }
.quiz__results .quiz__card-title { text-align: center; }
.r-about { background: rgba(18, 181, 219, 0.07); border: 1px solid rgba(18, 181, 219, 0.22); border-radius: 1.25rem; padding: 1.2rem 1.4rem; margin-bottom: 1rem; text-align: center; }
.r-about[hidden] { display: none; }
.r-box-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin: 0 0 0.5rem; }
.r-about-intro { margin: 0; font-size: 0.95rem; line-height: 1.65; color: var(--ink); text-align: left; }
.r-incl { background: rgba(20, 35, 43, 0.04); border: 1px dashed rgba(20, 35, 43, 0.28); border-radius: 1.1rem; padding: 1.1rem 1.4rem; margin-bottom: 1.4rem; text-align: left; }
.r-incl .r-box-title { text-align: center; margin-bottom: 0.8rem; }
.r-incl .quiz__bullets li { font-size: 0.95rem; }
.r-cta { display: block; text-align: center; }
.r-cta .quiz__btn--large { width: 100%; max-width: 100%; }
.quiz__results-links, .quiz__note { text-align: center; margin-left: auto; margin-right: auto; }
@media (max-width: 860px) {
  .r-cta { position: sticky; bottom: 0; z-index: 3; background: linear-gradient(to bottom, rgba(245, 250, 252, 0), var(--bg) 30%); padding: 1rem 0 0.6rem; }
  .quiz__note { display: block; }
}

.r-help-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan-deep); margin: 1rem 0 0.7rem; text-align: left; }
.r-about .quiz__bullets { text-align: left; }
.r-about .quiz__bullets li { font-size: 0.95rem; }

/* Name and email screen: centred */
.quiz__step--capture { text-align: center; }
.quiz__step--capture .quiz__question, .quiz__step--capture .quiz__sub { margin-left: auto; margin-right: auto; text-align: center; }
.quiz__step--capture .quiz__form { margin: 0 auto; }
.quiz__step--capture .quiz__consent { text-align: left; }
.quiz__step--capture .quiz__error { text-align: center; }
[data-screen="capture"] .quiz__nav { justify-content: center; }
[data-screen="capture"] .quiz__nav-back { text-align: center; }

.r-extra-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-deep); margin: 1rem 0 0.7rem; padding-top: 0.9rem; border-top: 1px solid rgba(20, 35, 43, 0.16); text-align: left; }
.r-extra-title[hidden], .r-extra[hidden] { display: none; }

/* Phones: the logo stays at the top of every screen */
@media (max-width: 640px) {
  .quiz[data-screen] .quiz__brand .brand-full { display: block !important; height: 56px; width: auto; }
  .quiz[data-screen] .quiz__brand .brand-mark { display: none !important; }
  .quiz[data-screen="intro"] .quiz__brand .brand-full { height: 72px; }
  .quiz[data-screen] .quiz__brand { margin: 0 0 0.9rem; }
}

/* overflow:hidden on .quiz stopped the pinned button on phones from sticking to the screen. clip keeps the glows trimmed without that side effect. */
.quiz { overflow: clip; }

/* Phone intro: bigger logo, tidier lines, less dead space under the logo */
@media (max-width: 640px) {
  .quiz[data-screen="intro"] .quiz__brand .brand-full { height: clamp(100px, 17vh, 150px); }
  .quiz[data-screen="intro"] .quiz__brand { margin-bottom: 1rem; }
  .quiz__lead { font-size: 1.05rem; text-wrap: balance; }
}

/* Phone intro v2: content sits right under a larger logo; compact pills so the button stays in view */
@media (max-width: 640px) {
  .quiz[data-screen="intro"] .quiz__brand .brand-full { height: clamp(88px, 13vh, 120px); }
  .quiz[data-screen="intro"] .quiz__step--intro.quiz__step--active { justify-content: flex-start; }
  .quiz__lead { font-size: 1rem; }
  .quiz__step--intro .quiz__sub { font-size: 1rem; line-height: 1.6; }
  .quiz__intro-features { gap: 0.4rem; }
  .quiz__intro-feature { font-size: 0.78rem; padding: 0.4rem 0.7rem; }
}

/* Results page: no logo */
.quiz[data-screen="results"] .quiz__brand { display: none !important; }

/* Logo size: the same full logo on every screen except results, larger on question screens too */
.quiz[data-screen]:not([data-screen="results"]) .quiz__brand .brand-full { display: block !important; height: clamp(64px, 10vh, 92px); width: auto; }
.quiz[data-screen] .quiz__brand .brand-mark { display: none !important; }
@media (max-width: 640px) {
  .quiz[data-screen="question"] .quiz__brand .brand-full,
  .quiz[data-screen="capture"] .quiz__brand .brand-full,
  .quiz[data-screen="stop"] .quiz__brand .brand-full { height: 84px; }
  .quiz[data-screen="intro"] .quiz__brand .brand-full { height: clamp(88px, 13vh, 120px); }
}

.quiz__lead-line { display: block; text-wrap: balance; }

/* Desktop: logo larger and near the top, content starts under it instead of floating in the middle */
@media (min-width: 641px) {
  .quiz { align-items: flex-start; padding-top: clamp(1rem, 3.5vh, 2.25rem); }
  .quiz[data-screen]:not([data-screen="results"]) .quiz__brand .brand-full { height: clamp(84px, 14vh, 128px); }
  .quiz[data-screen="results"] .quiz__container { padding-top: 0.5rem; }
}
