/* MM40 · The Order: V2 design system
   Source: the reference board in 01_BUSINESS/Design system (editorial monochrome, near-white paper,
   big light type, letter-spaced labels, hairlines, soft stacked shadows, black pill buttons) and
   BUILD_SPEC_V2 §3. The board names no fonts, so: Geist (all UI) + Newsreader (one emotional line per screen).
   Colour budget: black/white/greys. One accent, a calm deep green, only for ticks, progress and good news.
   No red anywhere. */

@font-face { font-family: 'Geist'; src: url('fonts/geist-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-latin-wght-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  /* colour */
  --paper-top: #ffffff;
  --paper-bottom: #ebebe8;
  --ink: #111111;
  --ink-2: #5f5f5b;
  --ink-3: #8a8a85;
  --hair: #e6e6e3;
  --card: #ffffff;
  --green: #1e6b4a;
  --green-tint: #e8f2ec;

  /* type */
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;

  /* space: 8-point scale */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s9: 72px;
  --side: 24px;
  --max: 520px;

  /* surfaces: stacked 5% shadows, from the board's shadow study */
  --shadow-soft: 0 0 0 1px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.03), 0 2px 2px rgba(0,0,0,.03), 0 4px 4px rgba(0,0,0,.03), 0 8px 8px rgba(0,0,0,.03), 0 16px 16px rgba(0,0,0,.03);
  --shadow-btn: 0 1px 1px rgba(0,0,0,.10), 0 3px 3px -1.5px rgba(0,0,0,.10), 0 6px 6px -3px rgba(0,0,0,.10), 0 12px 12px -6px rgba(0,0,0,.10), 0 24px 24px -12px rgba(0,0,0,.12);

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --slow: 560ms;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper-bottom); }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.6; font-weight: 400;
  /* very soft light from the top: white, fading to a pale warm grey */
  background:
    radial-gradient(120% 60% at 50% 0%, #ffffff 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, var(--paper-top) 0%, #f7f7f5 45%, var(--paper-bottom) 100%) fixed;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
  font-feature-settings: 'ss01', 'tnum' 0;
}
/* 2% paper grain */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--ink); color: #fff; }

/* ---------- header: 2px green progress line, back arrow, step count ---------- */
.top { position: sticky; top: 0; z-index: 10; }
.top-line { height: 2px; background: transparent; }
.top-line i { display: block; height: 100%; width: 0; background: var(--green); transition: width var(--slow) var(--ease); }
.top-row { display: flex; align-items: center; justify-content: space-between; max-width: calc(var(--max) + var(--side) * 2); margin: 0 auto; padding: 6px calc(var(--side) - 12px) 0; height: 52px; }
.back { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); }
.back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.count { padding-right: 12px; font-size: 12px; letter-spacing: .16em; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- frame ---------- */
#app { position: relative; z-index: 1; max-width: calc(var(--max) + var(--side) * 2); margin: 0 auto; padding: 0 var(--side); }
/* 100vh first, for older in-app browsers (Facebook, Instagram) that don't know svh */
.screen { display: flex; flex-direction: column; min-height: calc(100vh - 54px); min-height: calc(100svh - 54px); padding-top: var(--s3); }
.screen.first { min-height: 100vh; min-height: 100svh; padding-top: var(--s4); }
.screen.in > * { animation: rise var(--slow) var(--ease) both; }
/* The opening and the booking pages only slide up (no fade): their headline is visible from the first
   frame, so it paints at once and the page counts as loaded (Lighthouse LCP). */
.screen.first > *, .screen.first.in > * { animation: lift var(--slow) var(--ease) both; }
@keyframes lift { from { transform: translateY(12px); } }
.screen.in > *:nth-child(2) { animation-delay: 80ms; }
.screen.in > *:nth-child(3) { animation-delay: 160ms; }
.screen.in > *:nth-child(4) { animation-delay: 240ms; }
.screen.in > *:nth-child(5) { animation-delay: 320ms; }
.screen.in > *:nth-child(n+6) { animation-delay: 400ms; }
/* Everything is visible by default and only animates IN. */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- type ---------- */
.wordmark { font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--ink); }
.label { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
/* Headline: bold, tight, set close to its sub-headline (Moopar's reference, 7 Nov). No italics anywhere. */
.display {
  font-weight: 700; font-size: clamp(34px, 10vw, 42px); line-height: 1.02; letter-spacing: -.035em; text-transform: uppercase; text-wrap: balance;
}
.display-2 { display: block; margin-top: 8px; font-size: .5em; font-weight: 500; letter-spacing: .02em; line-height: 1.2; color: var(--ink-2); }
.sub { margin-top: 14px; max-width: 32ch; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.question { font-weight: 300; font-size: clamp(28px, 8.2vw, 34px); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
em { font-style: normal; }
.lede { margin-top: var(--s3); max-width: 30ch; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.hint { margin-top: var(--s2); font-size: 15px; color: var(--ink-2); }
.micro { margin-top: 12px; font-size: 14px; color: var(--ink-2); text-align: center; }

/* ---------- primary button: black gradient pill ---------- */
.actions { margin-top: auto; padding: var(--s5) 0 calc(var(--s3) + var(--safe-b)); }
.btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 0 20px; white-space: nowrap;
  border-radius: 999px; font-size: 17px; font-weight: 500; letter-spacing: -.005em; color: #fff;
  background: linear-gradient(180deg, #2a2a2a, #0a0a0a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), var(--shadow-btn);
  transition: transform 240ms var(--ease), opacity 240ms var(--ease), box-shadow 240ms var(--ease);
}
.btn:active { transform: scale(.985); }
.btn .arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 300ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:disabled { opacity: .18; box-shadow: none; }

/* ---------- segmented pill CTA (Moopar's reference, 7 Nov) ---------- */
.pill-cta {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; width: 100%; height: 60px; padding: 4px;
  border-radius: 999px; background: #fafaf9; box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.04), 0 6px 12px -4px rgba(0,0,0,.08), 0 18px 28px -14px rgba(0,0,0,.14);
  transition: transform 240ms var(--ease);
}
.pill-cta:active { transform: scale(.985); }
.pill-on {
  display: grid; place-items: center; height: 100%; border-radius: 999px; color: #fff; font-size: 15px; font-weight: 500; letter-spacing: -.005em;
  background: linear-gradient(180deg, #1c1c1c, #000); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 6px rgba(0,0,0,.18);
}
.pill-off { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.pill-off b { font-size: 15px; font-weight: 600; color: var(--ink); }
.pill-off small { margin-top: 2px; font-size: 12px; color: var(--ink-2); }

/* ---------- S1 ---------- */
.s1-head { display: flex; justify-content: space-between; align-items: baseline; }
.s1-body { margin-top: 18vh; }
.video { position: relative; margin-top: var(--s5); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #ececea; box-shadow: var(--shadow-soft); }
.video iframe, .video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video .play span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: var(--shadow-btn); }
.video .play svg { width: 22px; height: 22px; margin-left: 3px; fill: var(--ink); }
.video-note { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.trust { margin-top: var(--s5); padding-top: var(--s2); border-top: 1px solid var(--hair); font-size: 13px; letter-spacing: .02em; color: var(--ink-2); text-align: center; }
.trust b { display: block; font-weight: 500; color: var(--ink); }
.trust span { display: block; margin-top: 2px; }

/* ---------- S2: the deck (Moopar's reference, 7 Nov) ----------
   One raised card per question, centred where the eye lands first. The answered card slides up and
   back and tucks behind: only its top edge shows, under the active card's shadow. */
.quiz { justify-content: center; padding-bottom: 10vh; }
.deck { position: relative; padding-top: 14px; }

/* section bar: Health · Pattern · Commitment (Moopar's reference: a recessed tray, the current part raised) */
.sections {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 8px 22px; padding: 4px; border-radius: 999px;
  background: #ececea; box-shadow: inset 0 1px 2px rgba(0,0,0,.06), 0 1px 0 rgba(255,255,255,.9);
}
.sections span {
  display: grid; place-items: center; height: 34px; border-radius: 999px; font-size: 12px; letter-spacing: .04em; color: var(--ink-3);
  transition: background 400ms var(--ease), box-shadow 400ms var(--ease), color 400ms var(--ease);
}
.sections span.done { color: var(--ink-2); }
.sections span.on {
  color: var(--ink); font-weight: 500; background: linear-gradient(180deg, #fbfbfa, #e9e9e6);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.08), 0 8px 14px -8px rgba(0,0,0,.25);
}

.ghost {
  position: absolute; z-index: 1; top: 0; left: 16px; right: 16px; height: 72px; border-radius: 22px;
  background: linear-gradient(180deg, #f3f3f1, #ececea);
  box-shadow: 0 0 0 1px rgba(0,0,0,.035), inset 0 1px 0 rgba(255,255,255,.8);
}
.ghost > * { display: none; }
.ghost:empty { display: none; }
.rails { display: none; }

.qcard {
  position: relative; z-index: 2; padding: 20px 14px 12px; border-radius: 24px;
  background: linear-gradient(180deg, #fcfcfb 0%, #f5f5f3 100%);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.04),
    inset 0 1px 0 #fff,
    0 -6px 14px -8px rgba(0,0,0,.14),
    0 1px 2px rgba(0,0,0,.04),
    0 6px 12px -6px rgba(0,0,0,.08),
    0 22px 40px -18px rgba(0,0,0,.18),
    0 44px 64px -38px rgba(0,0,0,.22);
}
.qcard .label { padding: 0 6px; font-size: 11px; letter-spacing: .18em; }
.qcard .label.alert { color: #c0352b; }
.qcard .question { margin-top: 8px; padding: 0 6px; font-size: 21px; line-height: 1.25; font-weight: 400; letter-spacing: -.018em; }
.qcard .hint { padding: 0 6px; margin-top: 4px; font-size: 13.5px; }

.stack { position: relative; z-index: 1; }
.stack i { display: block; height: 12px; margin: 0 14px; border-radius: 0 0 20px 20px; background: #efefed; box-shadow: 0 0 0 1px rgba(0,0,0,.03), 0 10px 16px -10px rgba(0,0,0,.18); }
.stack i + i { margin: 0 30px; height: 10px; background: #eaeae8; }

/* options: small soft rows; the chosen one is raised */
.opts { display: grid; gap: 2px; margin-top: 12px; }
.opt {
  position: relative; display: grid; grid-template-columns: 28px 1fr 20px; align-items: center; min-height: 46px; padding: 8px 12px 8px 10px;
  border-radius: 14px; text-align: left; font-size: 15.5px; line-height: 1.3; color: var(--ink);
  transition: background 320ms var(--ease), box-shadow 320ms var(--ease), transform 200ms var(--ease);
}
.opt + .opt::before { content: ''; position: absolute; top: -1px; left: 38px; right: 12px; height: 1px; background: #e9e9e6; transition: opacity 200ms; }
.opt .n { font-size: 11px; letter-spacing: .06em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.opt .tick { width: 18px; height: 18px; justify-self: end; opacity: 0; }
.opt .tick path { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 460ms var(--ease) 60ms; }
.opt:active { transform: scale(.99); }
.opt.on {
  background: linear-gradient(180deg, #f1f1ef, #e2e2df);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 0 0 1px rgba(0,0,0,.05), 0 2px 3px rgba(0,0,0,.06), 0 10px 18px -10px rgba(0,0,0,.25);
}
.opt.on::before, .opt.on + .opt::before { opacity: 0; }
.opt.on .n { color: var(--green); }
.opt.on .tick { opacity: 1; }
.opt.on .tick path { stroke-dashoffset: 0; }
.opts.wait { pointer-events: none; }

.card-actions { margin-top: 12px; }
.btn-sm { min-height: 48px; font-size: 15px; }

/* typed number (HbA1c) */
.num { display: flex; align-items: baseline; gap: 8px; margin: 14px 6px 0; padding: 4px 4px 8px; border-bottom: 1.5px solid #dcdcd8; transition: border-color 200ms; }
.num:focus-within { border-color: var(--ink); }
.num input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 30px; font-weight: 300; letter-spacing: -.02em; color: var(--ink); outline: none; padding: 0; }
.num input::placeholder { color: #c4c4bf; }
.num span { font-size: 15px; color: var(--ink-2); }
.num-err { margin: 6px 6px 0; font-size: 13px; color: var(--ink-2); }
.alt-link { display: block; margin: 8px auto 0; min-height: 40px; padding: 0 10px; font-size: 13.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* the sustainability card */
.req { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 0; }
.req div { padding: 12px 12px 10px; border-radius: 14px; background: #f0f0ee; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 1px rgba(0,0,0,.03); }
.req b { display: block; font-size: 24px; font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.req b small { font-size: 13px; font-weight: 400; color: var(--ink-2); margin-left: 3px; letter-spacing: 0; }
.req span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-2); }
.req .total { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; background: var(--green-tint); }
.req .total b { color: var(--green); }
.req .total span { margin: 0; color: var(--green); }
.info-text { margin-top: 8px; padding: 0 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* motion: the answered card slides up and back behind the next; the next rises from below */
.qcard.leave { animation: card-leave 420ms var(--ease) forwards; }
@keyframes card-leave { to { transform: translateY(-14px) scale(.93); opacity: 0; } }
.deck.fwd .qcard { animation: card-in 640ms var(--ease) both; }
@keyframes card-in { from { transform: translateY(110px) scale(.97); opacity: 0; } }
.deck.fwd .ghost { animation: ghost-in 520ms var(--ease) both; }
@keyframes ghost-in { from { transform: translateY(14px) scale(1.05); } }
.deck.fwd .stack { animation: stack-in 640ms var(--ease) both; }
@keyframes stack-in { from { transform: translateY(40px); opacity: 0; } }
.deck.bwd .qcard { animation: card-back 520ms var(--ease) both; }
@keyframes card-back { from { transform: translateY(-40px) scale(.95); opacity: 0; } }
.quiz.in > * { animation: none; }

/* ---------- declines and the preview end ---------- */
.decline { justify-content: center; padding-bottom: 12vh; }
.qcard.plain { padding: 30px 24px 26px; }
.say { margin-top: 10px; font-size: 17px; line-height: 1.45; font-weight: 300; letter-spacing: -.012em; color: var(--ink); }
.say.small { font-size: 16px; color: var(--ink-2); }
.sign { margin-top: 18px; font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.choice { margin-top: 26px; }
.choice .btn { font-size: 15.5px; }
.done-mark { width: 52px; height: 52px; margin-bottom: 20px; }
.done-mark circle { fill: var(--green-tint); }
.done-mark path { fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 700ms var(--ease) 300ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.linkish { margin: 14px auto 0; display: block; min-height: 44px; padding: 0 12px; font-size: 15px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- S3: the gate ---------- */
.gate { justify-content: center; padding-bottom: 8vh; }
.gate-head .done-mark { width: 40px; height: 40px; margin-bottom: 14px; }
.gate-head .question { font-size: 22px; font-weight: 400; letter-spacing: -.02em; }
.peek {
  position: relative; margin: 18px 10px -18px; padding: 16px 18px 30px; border-radius: 22px; background: #f2f2f0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.035); filter: blur(5px); opacity: .8; user-select: none; pointer-events: none;
}
.peek .peek-name { margin-top: 6px; font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.peek .peek-line { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.gate-form { padding: 20px 18px 18px; }
.field { display: block; margin-bottom: 14px; }
.field > span:first-child { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.field input, .tel {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 0; font: inherit; font-size: 16px; color: var(--ink);
  background: #efefed; box-shadow: inset 0 1px 2px rgba(0,0,0,.07), 0 1px 0 #fff; outline: none;
}
.field input:focus { box-shadow: inset 0 1px 2px rgba(0,0,0,.07), 0 0 0 1.5px var(--ink); }
.tel { display: flex; align-items: center; gap: 10px; padding: 0 0 0 14px; }
.tel b { font-weight: 500; color: var(--ink-2); font-size: 15px; }
.tel input { flex: 1; min-width: 0; padding: 0 14px 0 0; background: transparent; box-shadow: none !important; border-radius: 0; }
.tel:focus-within { box-shadow: inset 0 1px 2px rgba(0,0,0,.07), 0 0 0 1.5px var(--ink); }
.field-err { margin: -6px 0 12px; font-size: 13px; color: var(--ink-2); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin: 10px 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check i { width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; background: #efefed; box-shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 0 0 1px rgba(0,0,0,.06); position: relative; transition: background 200ms; }
.check input:checked + i { background: var(--green); box-shadow: none; }
.check input:checked + i::after { content: ""; position: absolute; left: 6px; top: 3px; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check input:focus-visible + i { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.check a { color: var(--ink); }
.gate-form .btn { margin-top: 14px; }

/* ---------- S4: the result, green, green, green ---------- */
.result { padding-top: 0; }
.result #result { padding-bottom: calc(40px + var(--safe-b)); }
.beat { min-height: 82vh; min-height: 82svh; display: flex; flex-direction: column; justify-content: center; padding: 48px 4px; }
.beat > * { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.beat.in > * { opacity: 1; transform: none; }
.beat.in > *:nth-child(2) { transition-delay: 120ms; }
.beat.in > *:nth-child(3) { transition-delay: 240ms; }
.beat.in > *:nth-child(4) { transition-delay: 360ms; }
.beat.in > *:nth-child(n+5) { transition-delay: 480ms; }
.beat .label { color: var(--green); }
.beat-line { margin-top: 14px; max-width: 32ch; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.beat-note { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #f0f0ee; font-size: 14px; color: var(--ink-2); }

.b1 { min-height: 92vh; min-height: 92svh; background: radial-gradient(90% 50% at 50% 30%, rgba(30,107,74,.07), rgba(30,107,74,0) 70%); }
.b1 .lead { margin-top: 18px; font-size: 20px; font-weight: 300; color: var(--ink-2); }
.b1 .pattern { margin-top: 2px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 12vw, 52px); line-height: 1.02; letter-spacing: -.02em; }

.qualify {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 22px 20px; border-radius: 22px;
  background: linear-gradient(180deg, #fbfdfb, #f1f6f2); border: 1px solid rgba(30,107,74,.35);
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 18px 34px -20px rgba(30,107,74,.35);
}
.qualify > svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--green); fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.qualify b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.015em; color: var(--green); line-height: 1.3; }
.qualify span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

.favours { list-style: none; margin: 18px 0 0; padding: 0; }
.favours li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--hair); opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.b3.in .favours li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 350ms + 200ms); }
.favours svg { width: 24px; height: 24px; margin-top: 1px; }
.favours circle { fill: var(--green-tint); stroke: none; }
.favours path { fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 500ms var(--ease); }
.b3.in .favours li path { stroke-dashoffset: 0; transition-delay: calc(var(--i) * 350ms + 380ms); }
.favours b { display: block; font-size: 16px; font-weight: 500; line-height: 1.35; }
.favours span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.tally { margin-top: 20px; font-size: 16px; color: var(--ink-2); }
.tally b { font-size: 40px; font-weight: 300; letter-spacing: -.03em; color: var(--green); font-variant-numeric: tabular-nums; margin-right: 6px; vertical-align: -4px; }

.rings { width: 100%; max-width: 340px; margin: 22px auto 0; display: block; overflow: visible; }
.ring { fill: rgba(30,107,74,.05); stroke: var(--green); stroke-width: 1.6; stroke-dasharray: 453; stroke-dashoffset: 453; transition: stroke-dashoffset 1400ms var(--ease) 300ms; }
.ring.r2 { transition-delay: 700ms; }
.b4.in .ring { stroke-dashoffset: 0; }
.rings .rt { font: 500 14px var(--sans); fill: var(--ink); }
.rings .rs { font: 400 12px var(--sans); fill: var(--ink-2); }
.both { margin-top: 6px; text-align: center; font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }

.timeline { display: grid; grid-template-columns: 14px 1fr 14px; align-items: center; margin-top: 26px; }
.timeline .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px #ececea; }
.timeline .dot.end { background: var(--green); box-shadow: 0 0 0 5px var(--green-tint); }
.timeline .track { height: 2px; margin: 0 8px; background: #dededa; position: relative; overflow: hidden; }
.timeline .track i { position: absolute; inset: 0; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 1400ms var(--ease) 400ms; }
.b5.in .timeline .track i { transform: none; }
.tl-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

.b6 { min-height: auto; padding-top: 24px; }
.offer { padding: 24px 18px 16px; }
.offer .question { font-size: 24px; font-weight: 400; }
.offer-lines { list-style: none; margin: 14px 0 0; padding: 0; }
.offer-lines li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 7px 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.offer-lines svg { width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bring { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--green-tint); font-size: 14px; color: var(--green); }
.offer .pill-cta { margin-top: 18px; }
/* Razorpay's Payment Button: kept out of sight and clicked by our pill; shown only if that isn't possible */
.rzp-form { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rzp-form.own { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: flex; justify-content: center; margin-top: 18px; }
.offer .micro { font-size: 13px; }
.disc { margin-top: 28px; font-size: 12px; line-height: 1.55; color: var(--ink-3); text-align: center; }

/* ---------- S6 paid.html and S7 booked.html ---------- */
.after { justify-content: flex-start; padding-top: 48px; padding-bottom: calc(40px + var(--safe-b)); }
.after > * { animation: lift var(--slow) var(--ease) both; }
.after > *:nth-child(2) { animation-delay: 120ms; }
.after > *:nth-child(3) { animation-delay: 240ms; }
.after-head { margin-bottom: 22px; }
.after-head .done-mark { width: 44px; height: 44px; margin-bottom: 16px; }
.after-head .question { font-size: 24px; font-weight: 400; letter-spacing: -.02em; }
.after-head .hint { margin-top: 6px; }
.preview-note { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #f0f0ee; font-size: 13px; color: var(--ink-2); }
.center { text-align: center; }
.cal-card { padding: 8px; overflow: hidden; }
/* room reserved for the calendar (it is ~1080px tall on a phone), so nothing shifts when it arrives */
.cal-box { min-height: 1080px; border-radius: 18px; overflow: auto; }
@media (min-width: 600px) { .cal-box { min-height: 760px; } }
.cal-box > .hint { padding: 160px 20px 0; }

.when { padding: 22px 20px 18px; }
.when .label { color: var(--green); }
.when-date { margin-top: 10px; font-size: 22px; font-weight: 400; letter-spacing: -.02em; }
.when-time { font-size: 40px; font-weight: 300; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.when .hint { margin-top: 4px; }
.add { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-top: 18px; }
.add-g { padding: 0 6px; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.next-card { margin-top: 14px; padding: 22px 20px 18px; }
.next-steps { list-style: none; margin: 14px 0 0; padding: 0; }
.next-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.next-steps li:last-child { border-bottom: 0; }
.next-steps span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green-tint); color: var(--green); font-size: 13px; font-weight: 500; }
.next-steps p { font-size: 15px; line-height: 1.5; padding-top: 2px; }

/* two-row cards: tablets then/now (chips) and HbA1c then/now (numbers) */
.pair-row { margin-top: 14px; padding: 0 6px; }
.pair-label, .nlabel { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; padding: 3px; border-radius: 14px; background: #ececea; box-shadow: inset 0 1px 2px rgba(0,0,0,.06); }
.chips.wait { pointer-events: none; }
.chip { min-height: 40px; border-radius: 11px; font-size: 14px; color: var(--ink-2); transition: background 300ms var(--ease), box-shadow 300ms var(--ease), color 300ms; }
.chip:last-child { font-size: 12.5px; }
.chip.on { color: var(--ink); font-weight: 500; background: linear-gradient(180deg, #fbfbfa, #e7e7e4); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.08), 0 8px 14px -8px rgba(0,0,0,.25); }

.nrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px 10px; margin-top: 14px; padding: 0 6px; }
.nrow .nlabel { grid-column: 1 / -1; }
.nrow .num { margin: 0; padding: 2px 2px 6px; }
.nrow .num input { font-size: 26px; width: 100%; }
.nrow .num { min-width: 0; }
.nrow .num.off { opacity: .35; }
.dk { min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2); background: #ececea; box-shadow: inset 0 1px 2px rgba(0,0,0,.06); }
.dk.on { color: var(--ink); background: linear-gradient(180deg, #fbfbfa, #e7e7e4); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(0,0,0,.05), 0 4px 10px -6px rgba(0,0,0,.25); }

/* ---------- privacy.html, terms.html, check.html ---------- */
.legal { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 24px 24px 72px; }
.legal .home { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.legal h1 { margin-top: 18px; font-size: 30px; font-weight: 400; letter-spacing: -.02em; }
.legal h2 { margin-top: 30px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.legal p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.legal .updated { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.legal-links { display: flex; justify-content: center; gap: 18px; margin-top: 10px; font-size: 12.5px; }
.legal-links a { color: var(--ink-2); }
.check-list { list-style: none; margin: 10px 0 0; padding: 0; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 14.5px; line-height: 1.45; }
.check-list li b { font-weight: 500; }
.check-list li small { display: block; color: var(--ink-2); font-size: 12.5px; word-break: break-word; }
.check-list .ok { color: var(--green); }
.check-list .todo { color: #b4632a; }
.check-sum { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #f0f0ee; font-size: 14px; }

/* press-and-hold picture view (in-app browsers, iPhone) */
.pic-view { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 20px calc(24px + var(--safe-b)); overflow: auto; background: rgba(240,240,238,.97); }
.pic-view p { font-size: 14px; color: var(--ink-2); text-align: center; }
.pic-view img { width: 100%; max-width: 420px; border-radius: 16px; box-shadow: var(--shadow-soft); -webkit-touch-callout: default; }
.pic-view .btn { max-width: 420px; }

.no-slot { display: block; margin-top: 10px; min-height: 40px; padding: 0; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-align: left; }
.no-slot-done { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--green-tint); font-size: 14px; color: var(--green); }

/* ---------- review round 3 (7 Nov) ---------- */

/* year picker */
.year { position: relative; display: block; margin: 16px 6px 0; }
.year select {
  width: 100%; min-height: 52px; padding: 0 44px 0 16px; border: 0; border-radius: 14px; appearance: none; -webkit-appearance: none;
  background: #efefed; box-shadow: inset 0 1px 2px rgba(0,0,0,.07), 0 1px 0 #fff; font: inherit; font-size: 18px; color: var(--ink);
}
.year select:focus { outline: none; box-shadow: inset 0 1px 2px rgba(0,0,0,.07), 0 0 0 1.5px var(--ink); }
.year svg { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

/* small placeholders ("e.g. 7.8") */
.num input::placeholder { font-size: 15px; letter-spacing: 0; color: #b9b9b4; }
.field input::placeholder { font-size: 15px; color: #b9b9b4; }

/* gate: black and white ticks, no browser-blue autofill */
.check input:checked + i { background: var(--ink); }
.gate-head .done-mark circle { fill: #e9e9e6; }
.gate-head .done-mark path { stroke: var(--ink); }
.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus,
.tel input:-webkit-autofill, .tel input:-webkit-autofill:hover, .tel input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #efefed inset !important; box-shadow: 0 0 0 1000px #efefed inset !important;
  transition: background-color 9999s ease-out 0s;
}
.field input:autofill, .tel input:autofill { background: #efefed; }

/* result: stacked papers. Each block fills the screen and stays; the next slides up over it. */
.result #result { position: relative; }
.beat {
  position: sticky; top: 0; min-height: 100vh; min-height: 100svh;
  margin: 0 calc(var(--side) * -1); padding: 56px calc(var(--side) + 4px);
  background: linear-gradient(180deg, #fdfdfc 0%, #f3f3f1 100%);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -1px 0 rgba(0,0,0,.05), 0 -14px 30px -14px rgba(0,0,0,.20);
}
.b1 { border-radius: 0; box-shadow: none; background: radial-gradient(90% 50% at 50% 30%, rgba(30,107,74,.07), rgba(30,107,74,0) 70%), linear-gradient(180deg, #ffffff, #f3f3f1); }
.b6 { justify-content: center; }

/* real lab reports under the payment card (scrolls over the stack) */
.proof {
  position: relative; z-index: 2; margin: 0 calc(var(--side) * -1); padding: 48px calc(var(--side) + 4px) calc(40px + var(--safe-b));
  background: #f6f6f4; border-radius: 28px 28px 0 0; box-shadow: 0 -1px 0 rgba(0,0,0,.05), 0 -14px 30px -14px rgba(0,0,0,.20);
}
.proof .question { margin-top: 8px; font-size: 22px; font-weight: 400; }
.proof-list { display: grid; gap: 14px; margin-top: 18px; }
.proof-card { margin: 0; padding: 8px 8px 12px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.proof-card img { width: 100%; height: auto; border-radius: 12px; display: block; }
.proof-card figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 10px 6px 0; font-size: 14px; }
.proof-card b { font-weight: 500; }
.proof-card span { color: var(--ink-2); text-align: right; }
.foot { margin-top: 28px; }
.foot .disc { margin-top: 10px; }

@media (min-width: 768px) {
  .s1-body { margin-top: 14vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .opt .tick path, .done-mark path { stroke-dashoffset: 0; }
}
