/* ==========================================================================
   DOC2US Weight Health Check microsite
   Visual reference: Canva "Microsite Desktop Version" + "Microsite Mobile Version".
   Main text colours are dark grey (--ink) and white only; accent colours are
   reserved for the BMI card and the personality cards.
   ========================================================================== */

:root {
  --navy: #192a54;
  --ink: #565b70;              /* main dark grey */
  --ink-strong: #454a5e;
  --ink-soft: #6d7286;
  --lavender: #a57fc2;
  --panel: #b3b3d4;
  --option: #ffffff;
  --option-on: #eef0f6;
  --error: #7a1236;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --times: 'Times New Roman', 'Tinos', Times, serif;   /* result-screen headline (Tinos = web fallback where Times New Roman is missing) */

  --gutter: clamp(20px, 5.4vw, 104px);
  --nav-h: clamp(96px, 13vh, 116px);   /* Back / Continue bar under every step */
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Per-scene colours (overridden on body[data-scene]) */
  --fg: var(--ink);            /* headings + labels on the page background */
  --top-fg: var(--navy);       /* header links */
  --nav-fg: var(--ink-strong); /* Back / Continue */
  --em: linear-gradient(100deg, #5d6079 0%, #8b6fae 55%, #a57fc2 100%);

  /* Four-leaf "clover" silhouette used by stat cards, form panels and the doctor button */
  --leaf: radial-gradient(closest-side, #000 99.4%, transparent 100%);
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: #dfe5ec;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
/* Headings receive focus from script on step changes (for screen readers); no ring needed there */
[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Scenes: each step has its own wallpaper, cross-faded behind the content
   -------------------------------------------------------------------------- */

body:is([data-scene="landing"], [data-scene="result"], [data-scene="consent"], [data-scene="name"], [data-scene="q3"], [data-scene="q4"]) { --top-fg: #fff; }
body:is([data-scene="consent"], [data-scene="name"], [data-scene="q2"], [data-scene="q3"], [data-scene="q4"]) {
  --fg: #fff;
  --em: linear-gradient(100deg, #fff 0%, #f6d9d6 100%);
}
body:is([data-scene="consent"], [data-scene="q2"], [data-scene="q3"]) { --nav-fg: #fff; }

.atmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #fff 0%, #e6eaf0 45%, #b1c1d1 100%);
}

.bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity .7s var(--ease);
}
.bg--sunset { background-image: url('../img/bg-sunset.webp?v=1'); }
.bg--sunset-flip { background-image: url('../img/bg-sunset.webp?v=1'); transform: scaleY(-1); }
.bg--lilac { background: linear-gradient(180deg, #fff 0%, #f9f4fe 45%, #f1e3fc 100%); }
.bg--lilac-flip { background: linear-gradient(180deg, #f1e3fc 0%, #f8f1fe 45%, #fff 85%); }
.bg--mauve { background: linear-gradient(180deg, #c2a5af 0%, #dccbd0 38%, #f1e9eb 68%, #fff 100%); }

body:is([data-scene="consent"], [data-scene="q2"]) .bg--sunset,
body:is([data-scene="name"], [data-scene="q3"]) .bg--sunset-flip,
body[data-scene="profile"] .bg--lilac,
body[data-scene="q1"] .bg--lilac-flip,
body[data-scene="q4"] .bg--mauve { opacity: 1; }

/* White horizon arcs (name step: bottom, "Almost there" step: top) */
.arc {
  position: absolute;
  left: -3vw;
  width: 106vw;
  height: 40vh;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity .6s var(--ease), translate .8s var(--ease);
}
.arc--top { top: -19vh; translate: 0 -12vh; }
.arc--bottom { bottom: -19vh; translate: 0 12vh; }
body[data-scene="q2"] .arc--top,
body[data-scene="name"] .arc--bottom { opacity: 1; translate: 0 0; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 3vw, 44px) var(--gutter) 0 clamp(18px, 3.6vw, 68px);
}

.topbar__logo img { width: clamp(112px, 10.5vw, 180px); height: auto; }
.topbar__logo .logo--light { display: none; }
body:is([data-scene="landing"], [data-scene="result"], [data-scene="consent"], [data-scene="name"], [data-scene="q3"], [data-scene="q4"]) .topbar__logo .logo--light { display: block; }
body:is([data-scene="landing"], [data-scene="result"], [data-scene="consent"], [data-scene="name"], [data-scene="q3"], [data-scene="q4"]) .topbar__logo .logo--dark { display: none; }

.topbar__nav { display: flex; align-items: center; gap: clamp(22px, 4.6vw, 80px); }

.topbar__link {
  font-size: clamp(14px, 1.1vw, 20px);
  font-weight: 500;
  color: var(--top-fg);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s, color .4s;
}
.topbar__link:hover { border-bottom-color: currentColor; }
.topbar__lang { min-width: 2.2em; text-align: center; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.display {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(36px, 5.2vw, 92px);
  line-height: 1.08;
  letter-spacing: -.04em;
  color: var(--fg);
  text-wrap: balance;
  transition: color .4s;
}

.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.012em;
  padding-right: .06em;
  background: var(--em);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.display--center { text-align: center; }
.display--md { font-size: clamp(30px, 3.4vw, 60px); }
.display--lg { font-size: clamp(36px, 4.4vw, 80px); }
.display--xl { font-size: clamp(40px, 5.6vw, 104px); }

/* Serif "aside" above a step: Welcome {name}! / Almost there! */
.kicker {
  position: absolute;
  left: 50%;
  top: clamp(26px, 4.6vh, 52px);
  z-index: 21;
  margin: 0;
  max-width: 44vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  translate: -50% 0;
  padding: 0 .1em;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 3.2vw, 56px);
  line-height: 1.2;
  background: linear-gradient(100deg, #5d6079 0%, #a57fc2 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.kicker--warm { top: 12.5vh; background-image: linear-gradient(100deg, #c2531a 0%, #e98a4a 70%, #f3c0a0 100%); }

/* Chinese: no faux-italic serif; accent keeps the colour, not the face */
:lang(zh-Hans) .display { letter-spacing: 0; line-height: 1.2; }
:lang(zh-Hans) .display em,
:lang(zh-Hans) .kicker,
:lang(zh-Hans) .result-hero__title,
:lang(zh-Hans) .result-hero__sub,
:lang(zh-Hans) .result-hero__more,
:lang(zh-Hans) .advice__cta { font-family: var(--sans); font-style: normal; font-weight: 500; letter-spacing: 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.arrow { width: 36px; height: 14px; flex: none; transition: transform .3s var(--ease); }

/* Floating shape buttons: "Discover your result" (cloud) and "Speak to our doctor" (clover) */
.shape-btn {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: .25em;
  color: var(--ink-strong);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.03em;
  text-align: left;
  text-decoration: none;
  isolation: isolate;
  animation: btn-float 3.4s ease-in-out infinite;
  transition: scale .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.shape-btn__shape {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 18px 18px rgba(52, 62, 96, .28));
  animation: btn-shadow 3.4s ease-in-out infinite;
}
.shape-btn__tick { width: .78em; height: .78em; transition: transform .3s var(--ease); }
.shape-btn:hover { scale: 1.06; }
.shape-btn:hover .shape-btn__tick { transform: translate(3px, 3px); }
.shape-btn:active { scale: .98; }
.shape-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 6px; border-radius: 28px; }

/* Soft ring that pulses out from the button so it reads as the main action */
.shape-btn::after {
  content: '';
  position: absolute;
  inset: 12%;
  z-index: -2;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  animation: btn-ping 3.4s ease-out infinite;
}

@keyframes btn-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes btn-shadow {
  0%, 100% { filter: drop-shadow(0 10px 10px rgba(52, 62, 96, .3)); }
  50% { filter: drop-shadow(0 26px 22px rgba(52, 62, 96, .2)); }
}
@keyframes btn-ping {
  0% { scale: .8; opacity: .7; }
  70%, 100% { scale: 1.55; opacity: 0; }
}

/* Padding is derived from --w: percentage padding would resolve against the parent, not the button */
.cloud-btn {
  --w: clamp(212px, 19vw, 290px);
  width: var(--w);
  aspect-ratio: 270 / 172;
  padding: calc(var(--w) * .1) calc(var(--w) * .06) 0 calc(var(--w) * .28);
  font-size: calc(var(--w) * .087);
}
.cloud-btn::after { inset: 30% 8% 4%; border-radius: 999px; }

.clover-btn {
  --w: clamp(132px, 12.4vw, 184px);
  width: var(--w);
  aspect-ratio: 1;
  padding: 0 calc(var(--w) * .12) calc(var(--w) * .05) calc(var(--w) * .2);
  font-size: calc(var(--w) * .132);
}
.clover-btn span { max-width: 5.2em; }
:lang(zh-Hans) .shape-btn { letter-spacing: 0; }

.float-cta {
  position: fixed;
  right: clamp(14px, 3.4vw, 64px);
  bottom: clamp(18px, 12vh, 150px);
  z-index: 15;
  transition: opacity .35s, visibility .35s, scale .3s var(--ease);
}
.float-cta.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 62px;
  padding: 0 34px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-strong);
  font-size: clamp(17px, 1.3vw, 22px);
  font-weight: 600;
  box-shadow: 0 16px 34px -16px rgba(60, 50, 80, .55);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -16px rgba(60, 50, 80, .6); }
.btn-pill:hover .arrow { transform: translateX(5px); }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-strong);
}
.btn-text:hover .arrow--back { transform: translateX(-5px); }

/* --------------------------------------------------------------------------
   Landing
   -------------------------------------------------------------------------- */

.hero,
.result-hero {
  position: relative;
  min-height: 100svh;
  background: #a9b9cb url('../img/bg-dune.webp?v=1') 50% 100% / cover no-repeat;
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 24px;
  padding: clamp(150px, 21vh, 220px) var(--gutter) clamp(20px, 3vh, 36px);
}

.hero__title {
  grid-column: 1;
  font-size: clamp(34px, 3.5vw, 66px);
  line-height: 1.16;
  letter-spacing: -.03em;
  color: #fff;
  text-wrap: nowrap;
}
.hero__title em { background: none; color: #fff; }
.hero__title .soft { color: #f6dfe3; }

.hero__title .w { display: inline-block; }
.js .hero__title:not(.is-in) .w { opacity: 0; }
.hero__title.is-in .w { animation: word-in .95s var(--ease) both; animation-delay: calc(var(--i, 0) * 75ms + .1s); }

@keyframes word-in {
  from { opacity: 0; translate: 0 .42em; filter: blur(8px); }
  to { opacity: 1; translate: 0 0; filter: none; }
}

.hero__action {
  grid-column: 2;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: clamp(22px, 3.4vh, 40px);
  margin-top: clamp(24px, 5vh, 60px);
}

.hero__sub {
  margin: 0;
  font-size: clamp(18px, 1.9vw, 30px);
  letter-spacing: .005em;
  color: #fff;
  text-align: center;
}

.stats {
  grid-column: 1 / -1;
  grid-row: 3;
  width: min(1500px, 100%);
  justify-self: center;
  margin-top: clamp(28px, 5vh, 60px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 2vw, 34px);
}

.stat {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1;
  padding: 26% 12% 12% 14%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  color: #fff;
  transition: translate .6s var(--ease), color .5s;
}
.stat::before,
.stat::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-mask: var(--leaf) 0 0 / 62% 62% no-repeat, var(--leaf) 100% 0 / 62% 62% no-repeat, var(--leaf) 0 100% / 62% 62% no-repeat, var(--leaf) 100% 100% / 62% 62% no-repeat;
          mask: var(--leaf) 0 0 / 62% 62% no-repeat, var(--leaf) 100% 0 / 62% 62% no-repeat, var(--leaf) 0 100% / 62% 62% no-repeat, var(--leaf) 100% 100% / 62% 62% no-repeat;
}
/* Frosted leaf */
.stat::before {
  background: linear-gradient(165deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .26));
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}
/* Colour fill: none at rest; slides in from where the pointer (or finger) lands, and back out when it leaves */
.stat::after {
  background: linear-gradient(135deg, #e1e0d8 0%, #f3f3f3 20%, #c2dfeb 40%, #d3d1d6 60%, #b4b4d4 80%, #c6dfed 100%);
  -webkit-clip-path: circle(0 at var(--mx, 50%) var(--my, 50%));
          clip-path: circle(0 at var(--mx, 50%) var(--my, 50%));
  transition: clip-path .85s var(--ease), -webkit-clip-path .85s var(--ease);
}
.stat.is-lit::after {
  -webkit-clip-path: circle(150% at var(--mx, 50%) var(--my, 50%));
          clip-path: circle(150% at var(--mx, 50%) var(--my, 50%));
}
.stat.is-lit { color: var(--ink); translate: 0 -8px; }

.stat__num {
  margin: 0;
  font-size: clamp(48px, 8.2vw, 152px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.stat__num sup { font-size: .26em; font-weight: 500; vertical-align: top; position: relative; top: .25em; margin-left: .22em; letter-spacing: 0; }

.stat__label { margin: 0; min-height: 2.5em; max-width: 13em; font-size: clamp(13px, 1.65vw, 26px); line-height: 1.2; }

.stats__source { grid-column: 1 / -1; grid-row: 4; justify-self: end; margin: 10px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .95); text-shadow: 0 1px 6px rgba(60, 70, 90, .5); }

.hero__more {
  display: none;
  grid-column: 1 / -1;
  justify-self: center;
  width: 44px; height: 44px;
  color: #fff;
  animation: nudge 2.2s ease-in-out infinite;
}
.hero__more svg { width: 34px; height: 34px; margin: 5px; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }

/* FAQ */
.faq {
  padding: clamp(72px, 9vw, 130px) var(--gutter) clamp(90px, 10vw, 150px);
  background: linear-gradient(180deg, #fff 0%, #eef1f5 30%, #d3dbe5 70%, #b1c1d1 100%);
}
.faq > .display { text-align: center; color: var(--ink); margin-bottom: clamp(28px, 3.4vw, 52px); }

.faq__list { display: grid; gap: 12px; width: min(980px, 100%); margin: 0 auto; }

.faq__item {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px -32px rgba(30, 40, 80, .5);
}

.faq__item summary {
  display: grid;
  grid-template-columns: clamp(40px, 3.6vw, 60px) 1fr 24px;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 1.5vw, 24px) clamp(18px, 2vw, 34px);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 2.3vw, 40px);
  line-height: 1;
  color: #d9c3c8;
}

.faq__q { font-size: clamp(16px, 1.4vw, 23px); font-weight: 600; line-height: 1.3; color: var(--ink); letter-spacing: -.01em; }

.faq__icon { position: relative; width: 16px; height: 16px; justify-self: end; }
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1.4px;
  background: var(--ink-soft);
  transition: transform .3s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }

.faq__a {
  margin: 0;
  padding: 0 clamp(18px, 2vw, 34px) clamp(20px, 1.8vw, 30px) calc(clamp(18px, 2vw, 34px) + clamp(40px, 3.6vw, 60px) + 16px);
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding: 40px var(--gutter) 56px;
  background: #b1c1d1;
  color: var(--ink-strong);
  font-size: 14px;
}
.footer p { margin: 0 0 6px; }
.footer a { color: inherit; text-underline-offset: 3px; }
.footer__company { font-weight: 600; }
.footer__right { text-align: right; }
.footer__social { display: flex; gap: 18px; justify-content: flex-end; }

/* --------------------------------------------------------------------------
   Assessment flow
   -------------------------------------------------------------------------- */

.screen {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-content: center;
  padding: clamp(120px, 15vh, 180px) var(--gutter) 28px;
}

.screen--split {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  column-gap: clamp(32px, 4vw, 90px);
  row-gap: 20px;
  align-items: center;
}
.screen--split > .question { display: contents; }
.screen--split .question__head { grid-column: 1; }
.screen--split .options,
.screen--split .question > .field-error { grid-column: 2; }
.screen--split .panel { justify-self: center; }
.screen[data-step="q2"] { padding-top: clamp(140px, 22vh, 230px); }

.screen--stack { justify-items: center; }
.screen--stack .question { width: min(1340px, 100%); }
.options--2col .option { font-size: clamp(16px, 1.5vw, 24px); }
.screen--stack .question__head { text-align: center; margin-bottom: clamp(32px, 7vh, 90px); }

.screen--center { justify-items: center; text-align: center; }

.screen--consent {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  column-gap: clamp(32px, 5vw, 110px);
  align-items: center;
}
.screen--consent .display { align-self: start; font-size: clamp(46px, 5.4vw, 100px); }

.consent {
  max-width: 660px;
  padding: clamp(22px, 2.6vw, 44px);
  border-radius: 28px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(22px);
          backdrop-filter: blur(22px);
  box-shadow: 0 30px 70px -40px rgba(60, 40, 60, .55);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  color: var(--ink-strong);
}
.consent p { margin: 0 0 14px; }
.consent a { color: var(--ink-strong); font-weight: 600; text-underline-offset: 3px; }
.consent .btn-pill { margin-top: 10px; width: 100%; background: var(--ink-strong); color: #fff; }

.check {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  margin: 20px 0 8px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .8);
  cursor: pointer;
  font-weight: 500;
}
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 2px solid var(--ink-strong);
  background: #fff;
  display: grid;
  place-items: center;
}
.check input:checked + .check__box { background: var(--ink-strong); }
.check input:checked + .check__box::after {
  content: '';
  width: 12px; height: 7px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.check input:focus-visible + .check__box { outline: 3px solid var(--navy); outline-offset: 3px; }

/* Options */
.options { display: grid; gap: clamp(12px, 1.25vw, 20px); }
.options--2col { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: clamp(16px, 2vw, 30px); }

.option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: clamp(56px, 4.8vw, 80px);
  padding: 10px clamp(18px, 1.9vw, 30px) 10px clamp(24px, 2.8vw, 44px);
  border-radius: 999px;
  border: 2.5px solid transparent;
  background: var(--option);
  color: var(--ink);
  font-size: clamp(16px, 1.7vw, 27px);
  line-height: 1.25;
  box-shadow: 0 14px 30px -24px rgba(60, 50, 90, .5);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.option:hover { transform: translateY(-2px); }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.option__mark {
  flex: none;
  width: clamp(24px, 2.3vw, 36px);
  height: clamp(24px, 2.3vw, 36px);
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background .2s, border-color .2s;
}
.option__mark svg { width: 74%; height: 74%; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--ease); }

.option:has(input:checked) { background: var(--option-on); border-color: var(--ink); }
.option:has(input:checked) .option__mark { background: var(--ink); }
.option:has(input:checked) .option__mark svg { opacity: 1; transform: none; }
.option:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }

/* Clover panel + glass pill inputs */
.panel {
  position: relative;
  isolation: isolate;
  width: min(680px, 100%);
  aspect-ratio: 1.07;
  display: grid;
  align-content: center;
  padding: 9% 9.5%;
}
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--panel);
  -webkit-mask: var(--leaf) 0 0 / 60% 62% no-repeat, var(--leaf) 100% 0 / 60% 62% no-repeat, var(--leaf) 0 100% / 60% 62% no-repeat, var(--leaf) 100% 100% / 60% 62% no-repeat;
          mask: var(--leaf) 0 0 / 60% 62% no-repeat, var(--leaf) 100% 0 / 60% 62% no-repeat, var(--leaf) 0 100% / 60% 62% no-repeat, var(--leaf) 100% 100% / 60% 62% no-repeat;
}

.panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 6vw, 96px) clamp(16px, 3.4vw, 60px);
}

.field { display: grid; gap: clamp(8px, 1vw, 14px); align-content: start; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field--solo { width: min(560px, 100%); margin-top: clamp(40px, 9vh, 110px); justify-items: center; }

.field__label {
  font-size: clamp(19px, 2vw, 34px);
  font-weight: 500;
  letter-spacing: -.035em;
  color: var(--fg);
}
.panel .field__label { color: #fff; padding-left: .7em; }
.field__label--lg { font-size: clamp(21px, 2vw, 34px); }
.field__opt { font-size: .55em; letter-spacing: 0; }

.goal {
  margin: 0;
  width: fit-content;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 500;
  color: var(--ink-strong);
  animation: rise .5s var(--ease) both;
}
.goal strong { font-weight: 700; font-variant-numeric: tabular-nums; }

.field__hint { margin: 0; font-size: 13px; font-weight: 500; color: #fff; }

.pill-input {
  width: 100%;
  height: clamp(46px, 4.6vw, 70px);
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .92);
  background: linear-gradient(100deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .18) 38%, rgba(255, 255, 255, .12) 100%);
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, .7), 0 10px 22px -16px rgba(40, 40, 90, .5);
  font: 500 clamp(17px, 1.45vw, 23px) var(--sans);
  color: #fff;
  -webkit-appearance: none;
          appearance: none;
  transition: box-shadow .2s, border-color .2s;
}
.pill-input option { color: var(--ink-strong); background: #fff; }
.pill-input:focus { outline: none; border-color: #fff; box-shadow: inset 0 2px 5px rgba(255, 255, 255, .7), 0 0 0 4px rgba(255, 255, 255, .45); }
.pill-input[aria-invalid="true"] { border-color: #ffd0de; }
.pill-input--xl {
  height: clamp(72px, 9.4vw, 136px);
  font-size: clamp(22px, 2.3vw, 38px);
  text-align: center;
  background: linear-gradient(100deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, .14) 22%, rgba(255, 255, 255, .1) 100%);
  text-shadow: 0 1px 8px rgba(120, 60, 60, .35);
}
.pill-input::-webkit-outer-spin-button,
.pill-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pill-input[type="number"] { -moz-appearance: textfield; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 26px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select-wrap .pill-input { padding-right: 54px; cursor: pointer; }
.field--wide .select-wrap .pill-input { border-radius: 24px; }

.unit-wrap { position: relative; }
.unit-wrap::after {
  content: attr(data-unit);
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: clamp(14px, 1.1vw, 18px);
  color: #fff;
  pointer-events: none;
}
.unit-wrap .pill-input { padding-right: 58px; }

.field-error {
  margin: 0;
  width: fit-content;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--error);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.field-error:empty { display: none; }

/* Target weight slider */
.range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range-value {
  font-size: clamp(19px, 2vw, 34px);
  font-weight: 600;
  letter-spacing: -.03em;
  color: #fff;
  white-space: nowrap;
}

.range {
  --pct: 50%;
  width: 100%;
  height: 34px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
          appearance: none;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 14px;
  border-radius: 999px;
  background: #e9e9f1;
  box-shadow: inset 0 1px 2px rgba(40, 50, 90, .16);
}
.range::-moz-range-track { height: 14px; border-radius: 999px; background: #e9e9f1; }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 60px; height: 30px;
  margin-top: -8px;
  border-radius: 12px;
  background: #fff;
  border: 0;
  box-shadow: 0 5px 14px rgba(30, 40, 90, .28), inset 0 -3px 6px rgba(120, 130, 180, .18);
}
.range::-moz-range-thumb {
  width: 60px; height: 30px;
  border-radius: 12px;
  background: #fff;
  border: 0;
  box-shadow: 0 5px 14px rgba(30, 40, 90, .28);
}
.range:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 999px; }

/* Step navigation: sits under the step (never on top of the answers), at the screen bottom when the step is short */
.flow-nav {
  position: relative;
  z-index: 10;
  min-height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 4vw, 70px);
  padding: 0 var(--gutter) env(safe-area-inset-bottom);
}

.flow-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 0 6px;
  font-size: clamp(18px, 1.7vw, 27px);
  font-weight: 500;
  color: var(--nav-fg);
  transition: color .4s;
}
.flow-nav__btn[data-action="back"] { justify-self: end; }
.flow-nav__btn[data-action="next"] { justify-self: start; }
.flow-nav__btn:hover .arrow { transform: translateX(5px); }
.flow-nav__btn:hover .arrow--back { transform: translateX(-5px); }

.progress { display: grid; justify-items: center; gap: 8px; min-width: 120px; color: var(--nav-fg); transition: color .4s; }
.progress__text { font-size: 12.5px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.progress__track { position: relative; width: 110px; height: 3px; border-radius: 3px; overflow: hidden; }
.progress__track::before { content: ''; position: absolute; inset: 0; background: currentColor; opacity: .25; }
.progress__fill { position: relative; display: block; height: 100%; background: currentColor; transition: width .5s var(--ease); }

#flow[data-step="consent"] [data-action="next"],
#flow[data-step="consent"] .progress { visibility: hidden; }

/* One motion for the whole microsite: fade + lift + de-blur. Uses `translate`, so hover `transform`s still work. */
@keyframes rise { from { opacity: 0; translate: 0 26px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: none; } }
@keyframes fall { from { opacity: 0; translate: 0 -20px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.js [data-reveal]:not(.is-in),
.js [data-reveal-group]:not(.is-in) > * { opacity: 0; }
[data-reveal].is-in { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
[data-reveal-group].is-in > * { animation: rise .85s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
.stats > :nth-child(2) { --i: 1; }
.stats > :nth-child(3) { --i: 2; }

.is-entering :is(h2, .panel, .field--solo, .consent) { animation: rise .7s var(--ease) both; }
.is-entering :is(.panel, .field--solo, .consent) { animation-delay: .12s; }
.is-entering .kicker { animation: fade .9s var(--ease) .2s both; }
.is-entering .option { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms + 140ms); }
.is-entering-back :is(h2, .panel, .field--solo, .consent, .option) { animation: fall .5s var(--ease) both; }

/* --------------------------------------------------------------------------
   Result
   -------------------------------------------------------------------------- */

.result { background: #fdf8f7; overflow-x: clip; }

.result-hero {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  padding: clamp(150px, 27vh, 260px) var(--gutter) 0;
  text-align: center;
  overflow: hidden;
}

.result-hero__title {
  margin: 0;
  font-family: var(--times);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(50px, 6vw, 110px);
  line-height: 1.08;
  letter-spacing: -.01em;
  padding: 0 .08em;
  background: linear-gradient(100deg, #fff 30%, #f3dadf 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.result-hero__sub {
  margin: clamp(14px, 2.4vh, 28px) 0 0;
  font-family: var(--times);
  font-style: italic;
  font-size: clamp(20px, 2.3vw, 40px);
  line-height: 1.2;
  color: #fff;
  text-wrap: balance;
}

.result-hero__more {
  align-self: end;
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: clamp(8px, 2vh, 24px);
  font-family: var(--times);
  font-style: italic;
  font-size: clamp(19px, 1.7vw, 28px);
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(70, 80, 100, .45);
}
.result-hero__more svg { width: 26px; height: 20px; animation: nudge 2.2s ease-in-out infinite; }

/* Giant heading sinking into the next section */
.result-hero__big {
  margin: 0 0 -.3em;
  font-size: clamp(40px, 15.2vw, 300px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.05em;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff 30%, #e9e7e6 62%, #b9b8b6 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
:lang(zh-Hans) .result-hero__big { letter-spacing: 0; font-size: clamp(40px, 19vw, 300px); }

.result-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 90px);
  align-items: start;
  padding: clamp(60px, 8vw, 130px) calc(var(--gutter) + clamp(120px, 14vw, 220px)) clamp(40px, 5vw, 70px) var(--gutter);
  scroll-margin-top: 0;
}

.tag {
  display: inline-block;
  margin: 0 0 clamp(26px, 4vw, 60px);
  padding: 4px 20px;
  border-radius: 999px;
  border: 1.5px solid #cfd2dc;
  background: #fff;
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 500;
  color: var(--ink-soft);
}

.advice__text { margin: 0; max-width: 24em; font-size: clamp(18px, 1.55vw, 27px); line-height: 1.45; color: var(--ink-strong); }
.advice__cta { margin: clamp(18px, 2vw, 32px) 0 0; font-size: clamp(18px, 1.55vw, 27px); font-weight: 700; font-style: italic; line-height: 1.35; color: var(--ink-strong); }

/* BMI card: each category has its own accent colour */
.bmi-card {
  --accent: #c4230b;
  --accent-soft: #f0958a;
  --accent-pale: #f8efee;
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(520px, 100%);
  padding: clamp(18px, 1.6vw, 28px) clamp(22px, 2.6vw, 44px) clamp(26px, 2.8vw, 46px);
  border-radius: 30px;
  border: 5px solid var(--accent);
  background: #fff;
  box-shadow: 0 0 46px color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
  transition: border-color .4s, box-shadow .4s;
}
.bmi-card[data-category="severe_under"],
.bmi-card[data-category="underweight"] { --accent: #1fa3b5; --accent-soft: #b4eef8; --accent-pale: #eef5f7; }
.bmi-card[data-category="healthy"] { --accent: #5aa83f; --accent-soft: #cdf6ad; --accent-pale: #f0f5ee; }
.bmi-card[data-category="overweight"] { --accent: #d9530a; --accent-soft: #ffc3ad; --accent-pale: #f9f0ee; }
.bmi-card[data-category^="obesity"] { --accent: #c4230b; --accent-soft: #f0958a; --accent-pale: #f8efee; }

.bmi-card__title { margin: 0 0 6px; font-size: clamp(30px, 2.9vw, 46px); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; text-align: center; }

.gauge { position: relative; max-width: 380px; margin: 0 auto; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge__seg { fill: none; stroke: var(--accent-pale); stroke-width: 26; stroke-linecap: round; transition: stroke .4s; }
.gauge__seg.is-active { stroke: var(--accent-soft); }
.gauge__ticks text { font: 600 12px var(--sans); fill: var(--ink-strong); }
.gauge__dot { fill: #fff; stroke: #2a2f3c; stroke-width: 3.5; }

.gauge__center {
  position: absolute;
  left: 0; right: 0; bottom: 12%;
  display: grid;
  justify-items: center;
  gap: 2px;
}
.gauge__label { font-size: 14px; font-weight: 500; color: var(--ink-strong); }
.gauge__value {
  font-size: clamp(58px, 5.6vw, 92px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}

.bmi-card__desc { margin: clamp(14px, 1.6vw, 26px) 0 0; font-size: clamp(17px, 1.5vw, 25px); line-height: 1.4; }
.bmi-card__range { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #ebe6e6; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.bmi-card__range strong { color: var(--ink-strong); }

/* Your personality: the matched card is large, the other seven sit beside it */
.persona {
  position: relative;
  padding: clamp(40px, 5vw, 80px) 0 clamp(50px, 6vw, 90px);
  background: linear-gradient(180deg, #f5f0f0 0%, #f5f0f0 62%, #fff 100%);
}
.persona::before {
  content: '';
  position: absolute;
  left: -10%; right: -10%; top: -44px;
  height: 90px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: #f5f0f0;
}
.persona__title {
  position: relative;
  margin: 0 var(--gutter);
  font-size: clamp(30px, 2.9vw, 46px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: #c9c6c6;
}

.persona__track {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: clamp(12px, 1.4vw, 22px);
  margin-top: clamp(-70px, -3vw, -20px);
  padding: clamp(150px, 15vw, 230px) var(--gutter) 46px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.persona__track::-webkit-scrollbar { display: none; }

.pcard {
  --c: #1c2a5e;
  --t: #cfe6f7;
  flex: none;
  position: relative;
  width: clamp(200px, 20vw, 300px);
  padding: 0 clamp(14px, 1.4vw, 22px) clamp(16px, 1.6vw, 26px);
  border-radius: clamp(26px, 2.6vw, 40px);
  border: 4px solid transparent;
  background: linear-gradient(135deg, var(--t) 0%, color-mix(in srgb, var(--t) 45%, #fff) 55%, #fff 100%);
  color: var(--c);
  scroll-snap-align: center;
}
.pcard[data-p="explorer"] { --c: #1c2a5e; --t: #c6e3f6; }
.pcard[data-p="feelgood"] { --c: #d9560b; --t: #ffd6a3; }
.pcard[data-p="balancer"] { --c: #33432a; --t: #c5f7d8; }
.pcard[data-p="rebuilder"] { --c: #5c0f86; --t: #e9c4f1; }
.pcard[data-p="matcher"] { --c: #6b2f0a; --t: #faefae; --b: #f0c419; }
.pcard[data-p="chaser"] { --c: #7e8b1e; --t: #e4fba2; }
.pcard[data-p="achiever"] { --c: #14161c; --t: #dedede; --b: #555a66; }
.pcard[data-p="planner"] { --c: #c4230b; --t: #ffb5a4; }

.pcard__img {
  width: auto;
  max-width: none;
  height: clamp(190px, 19vw, 280px);
  margin: clamp(-130px, -9.5vw, -95px) auto 0;
  filter: drop-shadow(0 12px 12px rgba(30, 40, 80, .14));
}
.pcard__name { margin: 10px 0 0; font-size: clamp(20px, 1.9vw, 29px); font-weight: 700; line-height: 1.08; letter-spacing: -.04em; }
.pcard__intro { display: none; margin: 10px 0 0; font-size: clamp(17px, 1.55vw, 25px); line-height: 1.4; }

.pcard.is-active {
  width: clamp(280px, 26vw, 400px);
  border-color: var(--b, var(--c));
  box-shadow: 0 0 60px color-mix(in srgb, var(--t) 85%, transparent);
  animation: rise .9s var(--ease) .25s both;
}
.pcard.is-active .pcard__img {
  height: clamp(300px, 28vw, 430px);
  margin-top: clamp(-210px, -14vw, -150px);
  animation: idle-float 5s ease-in-out infinite alternate;
}
.pcard.is-active .pcard__name { font-size: clamp(28px, 2.7vw, 42px); }
.pcard.is-active .pcard__intro { display: block; }

@keyframes idle-float { from { translate: 0 0; } to { translate: 0 -10px; } }

.result__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  padding: 26px calc(var(--gutter) + clamp(120px, 14vw, 220px)) 34px var(--gutter);
  background: #b1c1d1;
}
.result__disclaimer { margin: 0; max-width: 70ch; font-size: 14px; color: var(--ink-strong); }

body[data-view="result"] .result-hero__title { animation: rise 1s var(--ease) .1s both; }
body[data-view="result"] .result-hero__sub { animation: rise 1s var(--ease) .3s both; }
body[data-view="result"] .result-hero__more { animation: fade 1s var(--ease) .9s both; }
body[data-view="result"] .result-hero__big { animation: rise 1.1s var(--ease) .5s both; }

/* --------------------------------------------------------------------------
   Privacy (dialog + standalone page)
   -------------------------------------------------------------------------- */

.privacy-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: 86vh;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: linear-gradient(160deg, #fbfbfd, #eceff4);
  color: var(--ink-strong);
  box-shadow: 0 40px 100px -30px rgba(20, 30, 70, .6);
}
.privacy-dialog::backdrop { background: rgba(40, 50, 80, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.privacy-dialog__head {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px 28px 16px 32px;
  background: linear-gradient(#fbfbfd 70%, rgba(251, 251, 253, 0));
}
.privacy-dialog .display,
.privacy-page .display { --em: linear-gradient(100deg, #5d6079 0%, #8b6fae 55%, #a57fc2 100%); color: var(--ink); font-size: clamp(30px, 3.4vw, 48px); }
.privacy-dialog__close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fff; flex: none; box-shadow: 0 6px 16px -10px rgba(30, 40, 80, .6); }
.privacy-dialog__close svg { width: 20px; height: 20px; }

.privacy-body { padding: 0 32px 32px; font-size: 16px; line-height: 1.65; }
.privacy-body :is(h2, h3) { margin: 22px 0 6px; font-size: 17px; font-weight: 600; color: var(--ink-strong); }
.privacy-body p { margin: 0; color: var(--ink); }
.privacy-body__updated { font-size: 13px; }

.privacy-page { padding: clamp(110px, 14vh, 160px) var(--gutter) 80px; display: grid; justify-items: center; }
.privacy-page__card {
  width: min(820px, 100%);
  padding: clamp(24px, 4vw, 56px) 0 8px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 30px 70px -40px rgba(30, 40, 80, .5);
}
.privacy-page__card .display { padding: 0 32px; }
.privacy-page__back { margin: 28px 0 0; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .result-main { padding-right: var(--gutter); }
}

@media (max-width: 860px) {
  body { font-size: 16px; }

  .topbar__nav { gap: clamp(20px, 8vw, 52px); }

  .hero,
  .result-hero { background-image: url('../img/bg-dune-m.webp?v=1'); background-position: 34% 100%; }

  /* Landing: headline, cloud button to the right, then the stat row (swipeable, middle card centred) */
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto auto;
    padding: 124px 0 14px;
  }
  .hero__title { padding: 0 var(--gutter); font-size: clamp(27px, 7.2vw, 46px); }
  .hero__action { grid-column: 1; justify-self: end; margin: clamp(48px, 11vh, 120px) var(--gutter) 0 0; gap: 22px; }
  .hero__sub { font-size: clamp(17px, 4.4vw, 24px); }
  .stats {
    grid-row: 4;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 58vw;
    gap: 3vw;
    width: 100%;
    margin-top: clamp(40px, 8vh, 90px);
    padding: 12px 21vw 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .stats::-webkit-scrollbar { display: none; }
  .stat { scroll-snap-align: center; }
  .stat.is-lit { translate: 0 0; }
  .stat__num { font-size: clamp(46px, 14.6vw, 94px); }
  .stat__label { font-size: clamp(13px, 3.7vw, 21px); }
  .stats__source { grid-row: 5; justify-self: center; padding: 0 var(--gutter); text-align: center; }
  .hero__more { display: block; grid-row: 6; }

  .faq > .display { font-size: clamp(30px, 7.4vw, 44px); }
  .faq__item summary { grid-template-columns: 34px 1fr 16px; gap: 10px; }
  .faq__a { padding-left: calc(clamp(18px, 2vw, 34px) + 44px); }

  .footer { flex-direction: column; padding-bottom: 150px; }
  .footer__right { text-align: left; }
  .footer__social { justify-content: flex-start; }

  .float-cta { bottom: clamp(18px, 4vh, 40px); }
  .clover-btn { --w: 120px; }
  .result-hero__more { margin-bottom: 104px; }

  /* Flow */
  .screen { align-content: start; padding-top: 132px; padding-bottom: 20px; }
  .screen--split,
  .screen--consent { grid-template-columns: 1fr; row-gap: 28px; }
  .screen--split .options,
  .screen--split .question > .field-error { grid-column: 1; }
  .screen--stack .question__head { margin-bottom: 30px; text-align: left; }
  .screen--stack .display--center { text-align: left; }
  .screen--center { padding-top: clamp(180px, 27vh, 300px); }
  .screen--consent .display { font-size: clamp(42px, 11.5vw, 60px); }
  .screen[data-step="profile"],
  .screen[data-step="q2"] { padding-top: clamp(190px, 25vh, 280px); }
  .screen[data-step="q1"],
  .screen[data-step="q3"],
  .screen[data-step="q4"],
  .screen[data-step="body"] { padding-top: clamp(140px, 20vh, 240px); }
  .options { gap: 12px; }
  .screen[data-step="body"] .display { text-align: center; }
  .display--lg,
  .display--xl { font-size: clamp(32px, 8.4vw, 52px); }
  .options--2col { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .option { font-size: clamp(15.5px, 4.3vw, 20px); min-height: 56px; }
  .options--2col .option { font-size: clamp(15.5px, 4.3vw, 20px); }
  .field--solo { margin-top: 36px; width: min(360px, 86%); }
  .pill-input--xl { height: 84px; }

  .kicker { top: 116px; max-width: 86vw; font-size: clamp(30px, 8vw, 40px); }
  .kicker--warm { top: clamp(104px, 12.5vh, 140px); }
  .arc { left: -22vw; width: 144vw; height: 34vh; }
  .arc--top { top: -15vh; }
  .arc--bottom { bottom: -17vh; }

  .panel { width: min(520px, 100%); padding: 10% 8%; }
  .panel__grid { gap: clamp(30px, 11vw, 70px) 12px; }
  .pill-input { height: 46px; padding: 0 16px; font-size: 16px; }
  .select-wrap .pill-input { padding-right: 34px; }
  .select-wrap::after { right: 16px; width: 9px; height: 9px; border-width: 2px; }
  .unit-wrap .pill-input { padding-right: 38px; }
  .unit-wrap::after { right: 14px; font-size: 13px; }
  .field__label { font-size: clamp(17px, 5vw, 24px); }
  .panel .field__label { padding-left: .5em; }
  .range-value { font-size: clamp(17px, 5vw, 24px); }
  .field__hint { font-size: 12px; }
  .field-error { font-size: 12.5px; padding: 4px 10px; }

  .flow-nav { grid-template-columns: auto auto auto; justify-content: space-between; gap: 10px; }
  .flow-nav__btn { gap: 10px; padding: 0; font-size: 17px; white-space: nowrap; }
  .flow-nav__btn .arrow { width: 24px; }
  .progress { min-width: 0; }
  .progress__track { width: 64px; }

  /* Result */
  .result-hero { padding-top: clamp(200px, 30vh, 330px); }
  .result-hero__title { font-size: clamp(42px, 12.2vw, 76px); }
  .result-hero__sub { font-size: clamp(17px, 4.7vw, 28px); }
  .result-main { grid-template-columns: 1fr; gap: 22px; padding: clamp(56px, 14vw, 100px) var(--gutter) 30px; }
  .tag { margin-bottom: 14px; }
  .advice__cta { margin-top: 12px; }
  .gauge { max-width: 290px; }
  .bmi-card { padding: 14px 20px 20px; }
  .bmi-card__title { font-size: 28px; }
  .bmi-card__desc { margin-top: 10px; font-size: 16.5px; }
  .bmi-card__range { margin-top: 10px; padding-top: 10px; font-size: 13.5px; }
  .persona { padding-top: 26px; }
  .persona::before { top: -26px; height: 60px; }
  .advice__text,
  .advice__cta { font-size: clamp(16.5px, 4.4vw, 21px); }
  .bmi-card { border-width: 4px; border-radius: 26px; }
  .persona__track { margin-top: 0; padding-top: 150px; }
  .pcard { width: 190px; }
  .pcard.is-active { width: min(78vw, 320px); }
  .pcard.is-active .pcard__img { height: 300px; margin-top: -150px; }
  .result__foot { flex-direction: column-reverse; align-items: flex-start; padding: 26px var(--gutter) 170px; }
  .persona::before { left: -30%; right: -30%; }
}

@media (max-width: 360px) {
  .topbar__nav { gap: 16px; }
  .panel { padding: 10% 6%; }
  .flow-nav__btn { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .shape-btn::after { display: none; }
}
