@import url("./colors_and_type.css");

/* ─── Quiz tokens (built on the design system) ─── */
:root {
  --quiz-bg: var(--paper-cream);
  --quiz-surface: var(--paper-warm);
  --quiz-rule: rgba(0, 0, 0, 0.10);
  --quiz-option-border: rgba(0, 0, 0, 0.12);
  --quiz-option-hover: rgba(0, 0, 0, 0.18);
  --quiz-cta: var(--sky);
  --quiz-cta-disabled: #BBDDF9;
  --quiz-cta-text-disabled: #FFFFFF;
  --quiz-sky-tint: #DDEEFC;
  --quiz-select-blue: var(--sky);
  --quiz-track: #E8E2D7;
  --quiz-dark-bg: #0E0D0C;
  --quiz-dark-fg: #B5B0A5;
  --quiz-orange: #EE8534;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--quiz-bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}
html, body { overflow-x: clip; }

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

input { font-family: inherit; }

/* ─── App shell ─── */
.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--quiz-bg);
  transition: background 220ms ease;
}
.app[data-variant="dark"] {
  background: var(--quiz-dark-bg);
  color: var(--quiz-dark-fg);
}

/* ─── Progress bar ─── */
.progress {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 4px;
  background: var(--quiz-track);
}
.app[data-variant="dark"] .progress {
  background: rgba(255, 255, 255, 0.10);
}
.progress__fill {
  height: 100%;
  background: var(--sky);
  transition: width 260ms ease;
}

/* ─── Header ─── */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 32px 8px;
  gap: 16px;
}
.header__back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--w-bold);
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 8px 4px;
  border-radius: 6px;
  transition: opacity 140ms ease;
}
.header__back:hover { opacity: 0.7; }
.header__back--hidden { visibility: hidden; }

.header__logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
}
.header__logo img {
  height: 22px;
  width: auto;
  display: block;
}
.app[data-variant="dark"] .header__logo img {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.header__section {
  justify-self: end;
  font-weight: var(--w-bold);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.app[data-variant="dark"] .header__section {
  color: var(--quiz-dark-fg);
}
.app[data-variant="dark"] .header__back { color: var(--quiz-dark-fg); }

/* ─── Stage ─── */
.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 24px 140px;
}
.stage__inner {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
}

/* ─── Eyebrow ─── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: var(--w-bold);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}
.eyebrow--center {
  align-self: center;
}

/* ─── Headings ─── */
.q-title {
  font-family: var(--font-sans);
  font-weight: var(--w-bold);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 6px;
  text-wrap: balance;
}
.q-title--center { text-align: center; text-wrap: pretty; }
.app[data-variant="dark"] .q-title { color: var(--quiz-dark-fg); }

.q-sub {
  font-weight: var(--w-bold);
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--ink-muted);
  margin: 8px 0 28px;
}
.q-body {
  font-weight: var(--w-light);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 12px 0 28px;
  text-wrap: pretty;
}
.q-body--center { text-align: center; }
.q-body--narrow { max-width: 46ch; margin-left: auto; margin-right: auto; text-wrap: balance; }
.q-body--spacious { margin-top: 32px; }

/* Image placeholder (drop real illustration here later) */
.intro-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 480px;
  margin: 22px auto 0;
  padding: 18px 22px;
  text-align: left;
  background: color-mix(in srgb, var(--sunshine) 22%, var(--paper));
  border: 1.5px solid color-mix(in srgb, var(--sunshine) 55%, transparent);
  border-radius: 16px;
  font-weight: var(--w-bold);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.intro-callout__ic {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: color-mix(in srgb, var(--sunshine) 50%, var(--ink));
}
.intro-callout__ic svg { width: 100%; height: 100%; display: block; }
.intro-illus {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 18px;
  mix-blend-mode: multiply;
}
.img-placeholder {
  width: 100%;
  max-width: 560px;
  min-height: 280px;
  margin: 8px auto 36px;
  padding: 40px 48px;
  border-radius: 28px;
  border: 2px dashed rgba(0, 0, 0, 0.28);
  background: var(--quiz-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
}
.img-placeholder__label {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  font-weight: var(--w-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1.5px solid rgba(0, 0, 0, 0.28);
  padding: 7px 16px;
  border-radius: 999px;
}
.img-placeholder__brief {
  margin: 0;
  max-width: 34ch;
  font-size: 16px;
  font-weight: var(--w-bold);
  line-height: 1.5;
  color: var(--ink-muted);
}
@media (max-width: 720px) {
  .img-placeholder { min-height: 220px; padding: 32px 26px; border-radius: 22px; }
  .img-placeholder__brief { font-size: 15px; }
}
.app[data-variant="dark"] .q-body { color: var(--quiz-dark-fg); opacity: 0.75; }

/* ─── Options (radio + checkbox) ─── */
.opts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.opt {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  background: var(--paper);
  border: 2px solid rgba(20, 19, 15, 0.12);
  border-radius: 15px;
  font-weight: var(--w-bold);
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
  transition: border-color 140ms ease, transform 120ms ease, background 140ms ease, box-shadow 140ms ease;
}
.opt:hover {
  border-color: var(--sky);
  background: var(--quiz-sky-tint);
  color: var(--quiz-select-blue);
  box-shadow: none;
}
.opt:hover .opt__box { border-color: var(--sky); }
.opt:active { transform: scale(0.99); }
.opt[aria-pressed="true"],
.opt--selected {
  border-color: var(--sky);
  background: var(--quiz-sky-tint);
  color: var(--quiz-select-blue);
  box-shadow: none;
}
.opt__arrow {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  color: var(--quiz-select-blue);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 150ms ease, transform 150ms ease;
}
.opt:hover .opt__arrow,
.opt--selected .opt__arrow { opacity: 1; transform: translateX(0); }
.opt__box {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--paper);
  transition: all 140ms ease;
}
.opt--selected .opt__box {
  border-color: var(--sky);
  background: var(--sky);
}
.opt--selected .opt__box svg { opacity: 1; transform: scale(1); }
.opt__box svg {
  width: 14px;
  height: 14px;
  color: white;
  opacity: 0;
  transform: scale(0.5);
  transition: all 120ms ease;
}

/* ─── Slider ─── */
.slider-wrap {
  margin-top: 12px;  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.slider-chip {
  background: var(--quiz-sky-tint);
  color: var(--quiz-select-blue);
  font-weight: var(--w-bold);
  font-size: 17px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  min-width: 120px;
  text-align: center;
}
.slider-chip__pct {
  display: block;
  margin-top: 2px;
  font-weight: var(--w-medium);
  font-size: 13px;
  opacity: 0.7;
}
.slider {
  position: relative;
  width: 100%;
  padding: 12px 0;
}
.slider__track {
  position: relative;
  height: 8px;
  background: var(--quiz-track);
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.slider__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--sky);
  border-radius: var(--radius-pill);
  pointer-events: none;
}
.slider__thumb {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  background: var(--sky);
  border: 3px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: grab;
}
.slider__thumb:active { cursor: grabbing; }
.slider--untouched .slider__thumb {
  background: #C9C2B4;
  border-color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
@media (max-width: 720px) {
  .slider { padding: 22px 0; }
  .slider__track { height: 14px; }
  .slider__thumb { width: 40px; height: 40px; border-width: 4px; box-shadow: 0 3px 10px rgba(0,0,0,0.18); }
  .slider__tick { width: 14px; height: 14px; border-width: 3px; }
  .slider__input { height: 44px; top: 50%; transform: translateY(-50%); inset: auto 0; }
}
.slider__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.slider__labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-weight: var(--w-bold);
  font-size: 15px;
  color: var(--ink-muted);
  letter-spacing: -0.005em;
}
.slider__ends {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 4px;
  font-weight: var(--w-bold);
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.slider__tick {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--paper);
  border: 2px solid var(--quiz-track);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}
.slider__tick.is-active {
  background: var(--sky);
  border-color: var(--sky);
}
.slider__gradient {
  position: relative;
  width: 100%;
  min-height: 56px;
  margin-top: -4px;
}
.slider__gradient-label {
  position: absolute;
  top: 0;
  display: block;
  max-width: 22%;
  font-weight: var(--w-medium);
  font-size: 13px;
  line-height: 1.25;
  color: var(--ink-muted);
  letter-spacing: -0.005em;
  cursor: pointer;
  user-select: none;
  padding-top: 2px;
  transition: color 120ms ease;
}
.slider__gradient-label:hover { color: var(--ink); }
.slider__gradient-label.is-active {
  color: var(--ink);
  font-weight: var(--w-bold);
}

/* ─── Matrix ─── */
.matrix {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.matrix__item {
  padding: 22px 24px;
  background: var(--paper);
  border: 2px solid rgba(20, 19, 15, 0.12);
  border-radius: 15px;
  box-shadow: none;
}
.matrix__q {
  font-weight: var(--w-bold);
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.3;
}
.matrix__opts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.matrix__opt {
  padding: 12px 6px;
  border: 1px solid var(--quiz-option-border);
  border-radius: 10px;
  font-weight: var(--w-medium);
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--paper-warm);
  text-align: center;
  transition: all 140ms ease;
  line-height: 1.2;
}
.matrix__opt:hover { border-color: var(--quiz-option-hover); }
.matrix__opt--selected {
  background: var(--quiz-sky-tint);
  border-color: var(--sky);
  color: var(--quiz-select-blue); /* darker shade of --sky azure, matching the quiz blue (not the cyan --sky-dark) */
  font-weight: var(--w-bold);
}

/* ─── Footer CTA ─── */
.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 24px 28px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 9;
}
.footer__inner {
  width: 100%;
  max-width: 540px;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cta {
  width: 100%;
  padding: 20px 32px;
  background: var(--quiz-cta);
  color: white;
  font-weight: var(--w-bold);
  font-size: 18px;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 0 var(--sky-dark);
  transition: transform .14s ease, box-shadow .2s ease, background .2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--sky-dark); }
.cta:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--sky-dark); }
.cta:disabled,
.cta[data-disabled="true"] {
  background: var(--quiz-cta-disabled);
  color: var(--quiz-cta-text-disabled);
  box-shadow: 0 6px 0 #9FC8EC;
  cursor: not-allowed;
  transform: none;
}
.footer__note {
  font-weight: var(--w-bold);
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}
.app[data-variant="dark"] .footer__note {
  color: var(--quiz-dark-fg);
  opacity: 0.7;
}

/* ─── Interstitial layout ─── */
.intersitial-icon {
  width: 80px;
  height: 80px;
  background: var(--quiz-sky-tint);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}
.intersitial-icon svg { width: 36px; height: 36px; color: var(--sky); }
.intersitial-icon--smile img { height: 56px; width: auto; }
.intersitial-badge {
  display: flex;
  justify-content: center;
  margin: 0 auto 28px;
}
.intersitial-badge img { width: 104px; height: auto; display: block; }

.info-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.info-list li {
  position: relative;
  padding-left: 30px;
  font-size: 19px;
  font-weight: var(--w-medium);
  line-height: 1.35;
  color: var(--ink);
}
.info-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sky);
}
.info-list__note {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--quiz-option-border);
}

.intersitial--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.intersitial--center .q-title { text-align: center; }

/* Testimonial quote card */
.quote-card {
  margin-top: 24px;
  padding: 28px 28px 24px;
  background: var(--paper-warm);
  border: 1px solid var(--quiz-option-border);
  border-radius: 18px;
}
.quote-card__mark {
  color: var(--sky);
  font-size: 36px;
  line-height: 0.6;
  margin-bottom: 12px;
  font-weight: var(--w-bold);
  letter-spacing: -0.1em;
}
.quote-card__text {
  font-weight: var(--w-light);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 18px;
  text-align: left;
}
.quote-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.quote-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--quiz-sky-tint);
  color: var(--sky-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--w-bold);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.quote-card__name {
  font-weight: var(--w-bold);
  font-size: 15px;
  color: var(--ink);
}
.quote-card__meta {
  font-weight: var(--w-light);
  font-size: 13px;
  color: var(--ink-muted);
}
.quote-card--center .quote-card__mark { text-align: center; }
.quote-card--center .quote-card__text { text-align: center; }
.quote-card--center .quote-card__author { justify-content: center; text-align: left; }

/* ─── Flare reactivity gauge (Your lived IBS experience) ─── */
.gauge { width: 100%; max-width: 620px; margin: 40px auto 8px; }
.gauge-stage { position: relative; padding-top: 78px; padding-bottom: 6px; }
.gauge-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg,
    color-mix(in oklab, #2E9E6B 20%, var(--paper-warm)),
    color-mix(in oklab, var(--sunshine) 18%, var(--paper-warm)),
    color-mix(in oklab, var(--terracotta) 18%, var(--paper-warm)),
    color-mix(in oklab, var(--terracotta-dark) 24%, var(--paper-warm))
  );
  box-shadow: inset 0 0 0 1px var(--quiz-option-border);
}
.gauge-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--sunshine) 0%, var(--sunshine) 12%, var(--terracotta) 50%, var(--terracotta-dark) 100%);
  background-size: calc(100% * (100 / var(--fillpct, 62.5))) 100%;
  background-position: left center;
  transition: width 1.4s cubic-bezier(.2, .8, .2, 1);
  border-radius: 999px 0 0 999px;
}
.gauge.in .gauge-fill { width: var(--fill, 62.5%); }
.gauge-marker {
  position: absolute;
  top: 0;
  left: var(--pos, 62.5%);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity .5s ease .9s;
}
.gauge.in .gauge-marker { opacity: 1; }
.gauge-marker .gm-tag {
  font-size: 10px;
  font-weight: var(--w-bold);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--terracotta-dark);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
  box-shadow: 0 6px 16px rgba(180, 62, 18, .28);
}
.gauge-marker .gm-val {
  font-size: 22px;
  font-weight: var(--w-bold);
  letter-spacing: -0.01em;
  color: var(--terracotta-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.gauge-marker .gm-arrow {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--terracotta-dark);
  margin-top: 2px;
}
.gauge-ticks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
  font-size: 13px;
  font-weight: var(--w-bold);
  letter-spacing: .04em;
  color: var(--ink-muted);
}
.gauge-ticks span { position: relative; padding-top: 14px; text-align: center; }
.gauge-ticks span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 8px;
  background: var(--quiz-option-border);
  border-radius: 2px;
}
.gauge-ticks .is-active { color: var(--terracotta-dark); }
.gauge-ticks .is-active::before { background: var(--terracotta-dark); }
.gauge-accent { color: var(--terracotta-dark); }
.gauge-caption { max-width: 52ch; margin-top: 22px; }

/* ─── Harvard "original finding" line chart (WE GOT YOU screen) ─── */
.finding-title { font-size: clamp(28px, 4.6vw, 44px); margin-bottom: 22px; }
.finding-accent { color: var(--sky-dark); }
.harvard-finding { width: 100%; }
.harvard-wegotyou {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
  padding-top: 44px;
  border-top: 1px solid var(--quiz-option-border);
}
.placebo-body { max-width: 760px; margin: 0 auto; }
.placebo-body > p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 22px;
  font-weight: var(--w-light);
  text-align: center;
}
.placebo-body > p strong { color: var(--ink); font-weight: var(--w-bold); }
.lc-card {
  max-width: 760px;
  margin: 8px auto 0;
  background: var(--paper-warm);
  border: 1px solid var(--quiz-option-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow-lift);
  text-align: left;
}
.lc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.lc-head h3 {
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  max-width: 30ch;
  font-weight: var(--w-bold);
  color: var(--ink);
  margin: 0;
}
.lc-legend { display: flex; flex-direction: column; gap: 8px; }
.lc-key {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: var(--w-bold);
  color: var(--ink);
  white-space: nowrap;
}
.lc-key .sw { width: 22px; height: 4px; border-radius: 99px; display: inline-block; }
.lc-key .sw.olp { background: var(--sky); }
.lc-key .sw.ctrl { background: #8A2433; opacity: .85; }
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .gridline { stroke: var(--quiz-option-border); stroke-width: 1; }
.chart .axis { stroke: rgba(0, 0, 0, 0.28); stroke-width: 1.5; }
.chart .grid-lbl { font-size: 12px; font-weight: var(--w-bold); fill: var(--ink-muted); }
.chart .curve { fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .curve.olp { stroke: var(--sky); }
.chart .curve.ctrl { stroke: #8A2433; stroke-dasharray: 2 9; opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .chart .curve { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.5s cubic-bezier(.4, .7, .3, 1); }
  .chart .curve.ctrl { stroke-dasharray: 2 9; stroke-dashoffset: 0; opacity: 0; transition: opacity 1s ease .5s; }
  .chart.in .curve { stroke-dashoffset: 0; }
  .chart.in .curve.ctrl { opacity: .9; }
  .chart .dot, .chart .dp-label { opacity: 0; transition: opacity .5s ease; }
  .chart.in .dot, .chart.in .dp-label { opacity: 1; transition-delay: 1.15s; }
}
.chart .dot { stroke: var(--paper-warm); stroke-width: 4; }
.chart .dot.olp { fill: var(--sky); }
.chart .dot.ctrl { fill: #8A2433; }
.chart .endcircle { fill: var(--paper-warm); }
.lc-tag {
  position: absolute;
  left: 3%;
  top: 2%;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #E7F1FD;
  border: 2px solid var(--sky);
  color: var(--sky);
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(85, 168, 250, .20);
}
.lc-tag::before { content: "\2191"; font-size: 32px; font-weight: 900; line-height: 1; }
.lc-tag .t-num { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.lc-tag .t-lbl { font-size: 12.5px; font-weight: var(--w-bold); line-height: 1.15; max-width: 12ch; text-align: left; }
.lc-xaxis {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: var(--w-bold);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 10px;
  padding: 0 4px;
}
.lc-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--quiz-option-border);
}
.lc-cap {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0;
  font-style: italic;
  line-height: 1.5;
  font-weight: var(--w-light);
  flex: 1;
}
.lc-harvard img { height: 40px; width: auto; display: block; }
@media (max-width: 640px) {
  .lc-tag .t-num { font-size: 24px; }
  .lc-tag::before { font-size: 22px; }
  .lc-foot { flex-direction: column; align-items: flex-start; }
}

/* ─── Harvard 2021 followup section (dark stat cards + charts) ─── */
.h2021 {
  width: 100%;
  max-width: 720px;
  margin: 56px auto 0;
  padding-top: 44px;
  border-top: 1px solid var(--quiz-option-border);
  text-align: center;
}
.h2021-eyebrow {
  font-size: 11px;
  font-weight: var(--w-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin-bottom: 16px;
}
.h2021-underline {
  color: var(--ink);
  border-bottom: 3px solid var(--sky);
  padding-bottom: 2px;
}
.h2021-study {
  display: block;
  max-width: 340px;
  margin: 6px auto 32px;
  border: 1px solid var(--quiz-option-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.h2021-study img { display: block; width: 100%; height: auto; }
.h2021-card {
  background: #0E0E0E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: clamp(28px, 5vw, 44px);
  text-align: left;
}
.h2021-card__label {
  font-size: 12px;
  font-weight: var(--w-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}
.h2021-bignum {
  font-size: clamp(80px, 20vw, 150px);
  font-weight: var(--w-bold);
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: #55A8FA;
}
.h2021-card__desc {
  margin-top: 18px;
  font-size: 16px;
  font-weight: var(--w-light);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  max-width: 40ch;
}
.h2021-chart { margin-top: 26px; }
.ibs-chart { width: 100%; height: auto; display: block; overflow: visible; }
.h2021-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}
@media (min-width: 620px) { .h2021-pair { grid-template-columns: 1fr 1fr; } }
.h2021-mini {
  background: #0E0E0E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: clamp(26px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  text-align: center;
}
.h2021-mini .h2021-card__label { text-align: left; }
.h2021-donutwrap,
.h2021-1in4wrap {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.donut69-svg { width: 100%; max-width: 200px; display: block; }
.h2021-mini__desc {
  margin-top: 20px;
  font-size: 16px;
  font-weight: var(--w-light);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  max-width: 24ch;
}
.h2021-mini__foot {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  font-weight: var(--w-regular);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.45);
  text-align: left;
}
.h2021-mini__small {
  font-size: 12.5px;
  font-weight: var(--w-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}
.h2021-1in4 {
  display: inline-flex;
  align-items: baseline;
  font-weight: var(--w-bold);
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: #55A8FA;
}
.h2021-1in4 .big { font-size: clamp(72px, 16vw, 130px); }
.h2021-1in4 .mid {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: var(--w-medium);
  opacity: 0.7;
  margin: 0 0.18em;
}
@media (prefers-reduced-motion: no-preference) {
  .ibs-chart .ibs-line, .ibs-chart .ibs-dash { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s cubic-bezier(.45, .05, .2, 1) .1s; }
  .ibs-chart .ibs-dots { opacity: 0; transition: opacity .5s ease 1.7s; }
  .ibs-chart.drawn .ibs-line, .ibs-chart.drawn .ibs-dash { clip-path: inset(0 0 0 0); }
  .ibs-chart.drawn .ibs-dots { opacity: 1; }
  .donut69-svg .donut69-fill { transition: stroke-dashoffset 1.8s cubic-bezier(.45, .05, .2, 1) .1s; }
  .donut69-svg.drawn .donut69-fill { stroke-dashoffset: 159.72; }
}
@media (prefers-reduced-motion: reduce) {
  .donut69-svg .donut69-fill { stroke-dashoffset: 159.72; }
}

/* Gut/Brain diagram */
.gb-diagram {
  position: relative;
  width: 320px;
  height: 340px;
  margin: 28px auto 24px;
}
.gb-diagram__oval {
  position: absolute;
  inset: 0;
  border: 2px solid var(--sky);
  border-radius: 50%;
  opacity: 0.85;
}
.gb-circle {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: var(--w-bold);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--quiz-dark-fg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
}
.gb-circle__sub {
  font-weight: var(--w-light);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 4px;
  line-height: 1.3;
  opacity: 0.9;
}
.gb-circle--brain {
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
}
.gb-circle--gut {
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sky-deep);
  border-color: var(--sky);
  color: white;
}
.gb-tag {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.06);
  font-weight: var(--w-bold);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta-tint);
}
.gb-tag--left { left: 0; }
.gb-tag--right { right: 0; color: var(--quiz-dark-fg); }

/* Harvard / bottle screen */
.bottle-photo {
  margin: 24px auto 0;
  max-width: 440px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.bottle-photo img { width: 100%; display: block; }

/* Loading screen */
.loading {
  background: var(--quiz-dark-bg);
  color: var(--quiz-dark-fg);
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 24px 28px;
  overflow: hidden;
}
.loading__ring {
  width: 156px;
  height: 156px;
  position: relative;
  margin-bottom: 20px;
}
.loading__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.loading__pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--w-bold);
  font-size: 36px;
  color: var(--quiz-dark-fg);
}
.loading__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  width: 100%;
  max-width: 420px;
}
.loading__step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: var(--w-bold);
  font-size: 17px;
  color: var(--quiz-dark-fg);
  opacity: 0.45;
  transition: opacity 220ms ease;
}
.loading__step--active { opacity: 1; }
.loading__step--done { opacity: 0.85; }
.loading__check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--sky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  transition: background 200ms ease;
}
.loading__step--done .loading__check { background: var(--sky); }
.loading__check svg { width: 12px; height: 12px; color: white; opacity: 0; }
.loading__step--done .loading__check svg { opacity: 1; }

/* Bright variant (final results loader) */
.loading--bright {
  background: var(--quiz-bg);
  color: var(--ink);
}
.loading--bright .loading__pct { color: var(--ink); }
.loading--bright .loading__step { color: var(--ink); }

.loading__banner {
  margin-top: auto;
  width: 100%;
  max-width: 980px;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(20, 19, 15, 0.08);
}
.loading__banner-label {
  font-size: 11px;
  font-weight: var(--w-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.45;
  max-width: 60ch;
}
.loading__banner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: clamp(28px, 5vw, 64px);
  row-gap: 20px;
}
.loading__banner-logos img {
  height: 26px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: grayscale(1);
  opacity: 0.55;
  mix-blend-mode: multiply;
}
@media (max-width: 720px) {
  .loading__banner-logos img { height: 22px; }
  .loading__banner-label { font-size: 10px; letter-spacing: 0.16em; }
}

/* Light variant (IBS-SSS score loader) */
.loading--light {
  background: var(--quiz-bg);
  color: var(--ink);
}
.loading--light .loading__pct { color: var(--ink); }
.loading--light .loading__list { margin-top: 26px; }
.loading--light .loading__step { color: var(--ink); }
.loading--light .loading__step--active { color: var(--ink); }
.loading--light .loading__step--done { opacity: 0.55; }
.loading--light .loading__check {
  border: 2px solid color-mix(in srgb, var(--quiz-orange) 35%, transparent);
}
.loading--light .loading__step--active .loading__check {
  border-color: var(--quiz-orange);
  background: color-mix(in srgb, var(--quiz-orange) 14%, transparent);
}
.loading--light .loading__step--done .loading__check {
  border-color: var(--quiz-orange);
  background: var(--quiz-orange);
}
.loading--light .loading__check svg { color: white; }

/* Email capture */
.email-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.email-input {
  width: 100%;
  padding: 16px 28px;
  background: var(--paper);
  border: 2px solid rgba(20, 19, 15, 0.12);
  border-radius: 15px;
  font-weight: var(--w-bold);
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.005em;
  outline: none;
  transition: border-color 140ms ease;
}
.email-input::placeholder {
  color: var(--ink-muted);
  opacity: 0.55;
  font-weight: var(--w-bold);
}
.email-input:focus {
  border-color: var(--sky);
}
.email-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  width: 100%;
  margin-top: 4px;
  padding: 2px;
  background: transparent;
}
.email-consent__box {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 120ms ease, border-color 120ms ease;
}
.email-consent__box svg { width: 13px; height: 13px; opacity: 0; }
.email-consent--on .email-consent__box {
  background: var(--sky);
  border-color: var(--ink);
}
.email-consent--on .email-consent__box svg { opacity: 1; }
.email-consent__text {
  font-size: 14px;
  line-height: 1.45;
  font-weight: var(--w-light);
  color: var(--ink-muted);
}
.email-consent__text a { color: var(--sky-dark); text-decoration: underline; }

/* ─── Score reveal interstitial (IBS-SSS) ─── */
.scorecard {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.scorecard__dial {
  position: relative;
  width: min(300px, 70vw);
  margin: 8px auto 0;
}
.scorecard__dial svg {
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(-90deg);
}
.scorecard__track { fill: none; stroke: rgba(0, 0, 0, 0.10); }
.scorecard__fill {
  fill: none;
  stroke: var(--score-color, #E0586B);
  stroke-linecap: round;
}
.scorecard__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.scorecard__num {
  font-size: clamp(50px, 13vw, 78px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.scorecard__of {
  font-size: 12px;
  font-weight: var(--w-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 10px auto 0;
  max-width: 14ch;
  line-height: 1.3;
}
.scorecard__scale {
  width: min(340px, 82vw);
  margin: 24px auto 0;
}
.scorecard__bar {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg,
    #6EBF8F 0%, #6EBF8F 15%,
    #E8923E 35%, #E8923E 45%,
    #E0586B 60%, #E0586B 100%);
}
.scorecard__marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FBF6EA;
  border: 3px solid var(--score-color, #E0586B);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.22);
}
.scorecard__ticks {
  display: grid;
  grid-template-columns: 15% 20% 25% 40%;
  margin-top: 10px;
  font-size: 10.5px;
  font-weight: var(--w-bold);
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.scorecard__ticks span { text-align: center; line-height: 1.25; }
.scorecard__ticks span b {
  display: block;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.scorecard__ticks span.is-here b { color: var(--score-color, #E0586B); }
.scorecard__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 28px 0 0;
  padding: 8px 15px;
  border-radius: 999px;
  font-weight: var(--w-bold);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--score-color, #E0586B);
  background: color-mix(in srgb, var(--score-color, #E0586B) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--score-color, #E0586B) 42%, transparent);
}
.scorecard__badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}
.scorecard__head {
  font-family: var(--font-sans);
  font-weight: var(--w-bold);
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
  margin: 26px 0 0;
}
.scorecard__hl { color: var(--score-color, #E0586B); }
.scorecard__lead {
  font-weight: var(--w-light);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-muted);
  text-align: center;
  text-wrap: pretty;
  max-width: 46ch;
  margin: 26px 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(0, 0, 0, 0.10);
}
.scorecard__lead strong { color: var(--ink); font-weight: var(--w-bold); }
.scorecard__note {
  margin: 14px auto 0;
  max-width: 52ch;
}
.scorecard__cite {
  font-size: 0.42em;
  font-weight: var(--w-bold);
  color: var(--sky);
  vertical-align: super;
  margin-left: 1px;
}
.scorecard__footnote {
  margin: 25px auto 0;
  padding-top: 26px;
  border-top: 1px solid rgba(0, 0, 0, 0.10);
  max-width: 60ch;
  font-weight: var(--w-light);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-muted);
  text-align: center;
  text-wrap: pretty;
}
.scorecard__footnote sup {
  color: var(--sky);
  font-weight: var(--w-bold);
  margin-right: 2px;
}
.scorecard__footnote em { font-style: italic; color: var(--ink-muted); }

/* ─── Mobile ─── */
@media (max-width: 720px) {
  .header { padding: 14px 18px 6px; }
  .header__logo img { height: 18px; }
  .header__section { font-size: 11px; letter-spacing: 0.13em; }
  .header__back { font-size: 14px; }
  .stage { padding: 24px 18px 160px; }
  .opt { padding: 18px 20px; font-size: 16px; gap: 14px; }
  .opt__box { width: 20px; height: 20px; }
  .matrix__item { padding: 18px 18px; }
  .matrix__q { font-size: 15px; }
  .matrix__opts { gap: 6px; }
  .matrix__opt { padding: 10px 4px; font-size: 11px; }
  .footer { padding: 14px 18px 20px; }
  .cta { padding: 18px 28px; font-size: 17px; }
  .eyebrow { font-size: 12px; letter-spacing: 0.14em; }
  .gb-diagram { width: 280px; height: 300px; }
  .gb-circle { width: 110px; height: 110px; font-size: 12px; }
  .gb-circle__sub { font-size: 12px; }
  .quote-card { padding: 22px; }
  .loading__ring { width: 140px; height: 140px; }
  .loading__pct { font-size: 28px; }
  .loading__step { font-size: 15px; }
}

@media (max-width: 380px) {
  .matrix__opt { font-size: 10px; padding: 9px 2px; }
  .q-title { font-size: 26px; }
}

/* ─── Intro citation footnote (IBS-SSS intro) ─── */
.hl-term {
  color: var(--quiz-select-blue);
}
.hl-stat {
  color: var(--sky);
  font-weight: var(--w-bold);
  white-space: nowrap;
}
.hl-pay {
  font-weight: var(--w-bold);
  color: var(--ink);
}
.hl-study {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(0, 0, 0, 0.32);
  font-weight: var(--w-medium);
}
.hl-term__cite {
  font-size: 0.42em;
  font-weight: var(--w-bold);
  vertical-align: super;
  margin-left: 0.08em;
  color: var(--sky);
  letter-spacing: 0;
}
.intro-cite {
  margin: 26px auto 0;
  max-width: 56ch;
  font-size: 13px;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink-muted);
  padding-top: 18px;
  border-top: 1px solid var(--quiz-option-border);
}
.intro-cite--numbered {
  position: relative;
  padding-left: 13px;
  font-size: 12px;
  text-align: left;
}
.intro-cite__marker {
  position: absolute;
  left: 0;
  top: 17px;
  font-style: normal;
  font-weight: var(--w-bold);
  font-size: 11px;
  color: var(--sky);
}
.intro-cite__link {
  font-style: normal;
  font-weight: var(--w-bold);
  color: var(--sky-dark);
  text-decoration: none;
  white-space: nowrap;
}
.intro-cite__link:hover { text-decoration: underline; }
.study-thumb {
  display: block;
  width: 100%;
  max-width: 440px;
  margin: 28px auto 0;
  padding: 10px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 6px 8px 0 rgba(20, 19, 15, 0.42);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.study-thumb:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 10px 0 rgba(20, 19, 15, 0.42);
}
.study-thumb img { width: 100%; display: block; border-radius: 8px; }

/* ─── Score-reduction projection ─── */
.projection-lead { max-width: 54ch; }

/* Prelander-style finding card (used on the projection screen) */
.finding-card {
  margin: 30px auto 0;
  width: 100%;
  max-width: 560px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 8px 0 rgba(20, 19, 15, 0.10);
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
}
.finding-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 2px solid var(--ink);
}
.finding-card__title-group { display: flex; align-items: center; gap: 12px; }
.finding-card__ic {
  flex: none;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.finding-card__title {
  font-size: 12px;
  font-weight: var(--w-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.finding-card__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: var(--w-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.finding-card__dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--quiz-orange);
}
.finding-card__chart-wrap {
  padding: clamp(22px, 3vw, 32px) clamp(16px, 3vw, 26px) clamp(14px, 2vw, 20px);
}
.finding-card__footer {
  background: color-mix(in srgb, var(--quiz-orange) 14%, var(--paper));
  border-top: 2px solid var(--ink);
  padding: 14px 22px;
  font-size: 13px;
  font-weight: var(--w-light);
  line-height: 1.4;
  color: var(--ink-soft);
}
.finding-card__footer strong {
  color: var(--quiz-orange);
  font-weight: var(--w-bold);
}
.projection-chart__label {
  font-size: 12px;
  font-weight: var(--w-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.projection-chart { display: block; width: 100%; height: auto; overflow: visible; }

/* Entry animation for the DropChart (projection + drop screens) */
@media (prefers-reduced-motion: no-preference) {
  .projection-chart .dc-area {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    animation: dc-reveal 1.3s cubic-bezier(.45,.05,.2,1) .25s forwards;
  }
  .projection-chart .dc-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: dc-draw 1.3s cubic-bezier(.45,.05,.2,1) .25s forwards;
  }
  .projection-chart .dc-dot--from,
  .projection-chart .dc-val--from {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: dc-pop .45s cubic-bezier(.34,1.56,.64,1) .05s forwards;
  }
  .projection-chart .dc-dot--to,
  .projection-chart .dc-val--to {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: dc-pop .5s cubic-bezier(.34,1.56,.64,1) 1.35s forwards;
  }
  .projection-chart .dc-badge {
    opacity: 0;
    animation: dc-fade .5s ease 1.55s forwards;
  }
}
@keyframes dc-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes dc-reveal {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes dc-pop {
  0%   { opacity: 0; transform: scale(.6); }
  60%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes dc-fade {
  to { opacity: 1; }
}
.ibs-cycle {
  margin: 20px auto 4px;
  width: 100%;
  max-width: 460px;
  border-radius: 24px;
  overflow: hidden;
}
.ibs-cycle--framed {
  margin: 4px auto 28px;
  max-width: 420px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 8px 0 rgba(20, 19, 15, 0.42);
  background: var(--paper);
}
.ibs-cycle img { display: block; width: 100%; height: auto; }
.intro-highlight {
  margin: 28px auto 0;
  width: 100%;
  max-width: 540px;
  background: var(--quiz-sky-tint);
  border: 0;
  border-radius: 14px;
  box-shadow: none;
  padding: 20px 22px;
  text-align: left;
}
.intro-highlight__heading {
  font-size: 13px;
  font-weight: var(--w-bold);
  letter-spacing: 0.04em;
  color: var(--sky-dark);
  margin: 0 0 6px;
}
.intro-highlight p {
  margin: 0;
}
.intro-highlight .q-body {
  margin: 0;
  text-align: left;
}
.projection-card {
  margin: 34px auto 0;
  width: 100%;
  max-width: 520px;
  background: var(--quiz-surface);
  border: 1px solid var(--quiz-option-border);
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.projection-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
}
.projection-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.projection-stat__label {
  font-size: 12px;
  font-weight: var(--w-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.3;
}
.projection-stat__num {
  font-size: clamp(48px, 13vw, 68px);
  font-weight: var(--w-bold);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.projection-stat__num--now { color: var(--ink); }
.projection-stat__num--goal { color: var(--sky-dark); }
.projection-arrow {
  display: flex;
  align-items: center;
  color: var(--sky);
}
.projection-arrow svg { width: 28px; height: 28px; }
.projection-note {
  margin: 26px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--quiz-option-border);
  font-size: 18px;
  line-height: 1.5;
  font-weight: var(--w-light);
  color: var(--ink);
}
.projection-note strong { font-weight: var(--w-bold); }

/* ─── Protocol / kit reveal ─── */
.protocol-intro {
  margin: 30px auto 0;
  max-width: 50ch;
  font-size: 18px;
  font-weight: var(--w-medium);
  line-height: 1.45;
  color: var(--ink);
}

/* ─── Kit reveal: carousel + what's inside ─── */
.stage__inner--kit { max-width: min(1060px, 92vw); }
.stage__inner--kit .q-title,
.stage__inner--kit .q-body,
.stage__inner--kit .protocol-intro { max-width: 680px; }
.kit-block {
  width: 100%;
  margin: 40px 0 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
  text-align: left;
}
@media (min-width: 880px) {
  .kit-block { grid-template-columns: 0.92fr 1.08fr; gap: clamp(44px, 4vw, 72px); align-items: start; }
}
.kit-car-wrap { width: 100%; }
.kit-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-warm);
  box-shadow: var(--shadow-lift);
}
.kit-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kit-car {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--quiz-surface);
  box-shadow: var(--shadow-lift);
}
.kit-car__track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4,.02,.2,1); }
.kit-car__slide { flex: 0 0 100%; height: 100%; }
.kit-car__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kit-car__badge {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  background: var(--terracotta-dark); color: var(--paper);
  font-size: 11.5px; font-weight: var(--w-bold); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 15px; border-radius: var(--radius-pill); box-shadow: var(--shadow-soft);
}
.kit-car__nav { position: absolute; right: 16px; bottom: 16px; z-index: 3; display: flex; gap: 12px; }
.kit-car__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid #000;
  background: var(--paper); color: var(--ink); font-size: 28px; line-height: 1;
  display: grid; place-items: center; cursor: pointer; box-shadow: 3px 3px 0 rgba(0,0,0,0.22);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.kit-car__btn:hover { transform: translateY(-2px); background: #fff; box-shadow: 4px 5px 0 rgba(0,0,0,0.22); }
.kit-car__btn:active { transform: translateY(1px); box-shadow: 2px 2px 0 rgba(0,0,0,0.22); }
.kit-car__foot { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 20px; }
.kit-car__cap { font-size: 13px; font-weight: var(--w-bold); letter-spacing: 0.04em; color: var(--ink-muted); text-align: center; }
.kit-car__dots { display: flex; gap: 9px; }
.kit-car__dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(0,0,0,0.18); transition: background .2s ease, transform .2s ease;
}
.kit-car__dots button[aria-current="true"] { background: var(--terracotta); transform: scale(1.15); }

.kit-list__eyebrow { margin-bottom: 6px; }
.kit-list ul { list-style: none; margin: 0; padding: 0; }
.kit-list li {
  display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start;
  padding: 12px 0; border-bottom: 1px solid var(--quiz-option-border);
}
.kit-list li:first-child { border-top: 1px solid var(--quiz-option-border); }
.kit-list__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.kit-list__ic svg { width: 21px; height: 21px; }
.kit-list__ic--blue { background: color-mix(in oklab, var(--sky) 18%, var(--paper-warm)); color: var(--sky-dark); }
.kit-list__ic--orange { background: color-mix(in oklab, var(--terracotta) 16%, var(--paper-warm)); color: var(--terracotta-dark); }
.kit-list h3 { font-size: 16px; font-weight: var(--w-bold); letter-spacing: -0.01em; margin: 1px 0 3px; line-height: 1.1; color: var(--ink); }
.kit-list p { margin: 0; font-size: 13px; line-height: 1.4; font-weight: var(--w-light); color: var(--ink-muted); max-width: 46ch; }

.protocol-steps {
  list-style: none;
  margin: 28px auto 0;
  padding: 0;
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;
}
/* Steps + app screenshot, 70/30 on desktop */
.protocol-row {
  width: 100%;
  display: flex;
  justify-content: center;
}
.protocol-row--has-img {
  margin: 20px auto 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 28px;
  align-items: stretch;
}
.protocol-row--has-img .protocol-steps {
  margin: 0;
  max-width: none;
}
.protocol-row__img {
  border-radius: 16px;
  overflow: hidden;
}
.protocol-row__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 720px) {
  .protocol-row--has-img {
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: 16px;
  }
  .protocol-row__img { max-width: 360px; margin: 0 auto; }
}
.protocol-steps li {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 26px;
  align-items: center;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 5px 8px 0 rgba(20, 19, 15, 0.18);
  color: var(--ink);
}
.protocol-steps__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.protocol-steps__indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
}
.protocol-steps__label {
  font-size: 12px;
  font-weight: var(--w-bold);
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  text-transform: uppercase;
  line-height: 1;
}
.protocol-steps__indicator::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
}
.protocol-steps__num {
  font-size: 12px;
  font-weight: var(--w-bold);
  color: var(--sky);
  letter-spacing: 0.16em;
  line-height: 1;
}
.protocol-steps__title {
  margin: 0;
  font-size: 18px;
  font-weight: var(--w-bold);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}
.protocol-steps__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  font-weight: var(--w-light);
  color: var(--ink);
  text-wrap: pretty;
}
.protocol-steps__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-warm);
}
.protocol-steps__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .protocol-steps li {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }
  .protocol-steps__img {
    max-width: 240px;
    margin: 0 auto;
  }
}

/* ─── FAQ screen ─── */
.faq-list {
  margin: 30px auto 0;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.faq-item {
  background: var(--quiz-surface);
  border: 1px solid var(--quiz-option-border);
  border-radius: 16px;
  padding: 22px 24px;
}
.faq-item__q {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: var(--w-bold);
  color: var(--ink);
  line-height: 1.3;
}
.faq-item__a {
  margin: 0;
  font-size: 16px;
  font-weight: var(--w-light);
  line-height: 1.55;
  color: var(--ink-muted);
}
.faq-quote {
  margin: 26px auto 0;
  width: 100%;
  max-width: 560px;
  text-align: left;
  border-left: 3px solid var(--sky);
  padding: 6px 0 6px 22px;
}
.faq-quote__mark { color: var(--sky); opacity: 0.5; margin-bottom: 8px; }
.faq-quote__text {
  margin: 0;
  font-size: 18px;
  font-style: italic;
  font-weight: var(--w-light);
  line-height: 1.5;
  color: var(--ink);
}
.faq-quote__cite {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* ─── Insurance discount reveal ─── */
.discount-seal {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--sky);
  color: #fff;
  font-size: 30px;
  font-weight: var(--w-bold);
  line-height: 1;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 22px rgba(85, 168, 250, 0.4);
}
.discount-seal span {
  font-size: 13px;
  letter-spacing: 0.18em;
  margin-top: 3px;
}

@media (max-width: 720px) {
  .projection-card { padding: 24px 20px; }
  .projection-row { gap: 10px; }
  .projection-note { font-size: 16px; }
  .protocol-steps li { padding: 20px; }
  .protocol-steps__text { font-size: 15px; }
  .faq-item__q { font-size: 16px; }
  .faq-item__a { font-size: 15px; }
  .faq-quote__text { font-size: 16px; }
}
