/* FertilityPath — clinical luxury */
:root {
  --teal: #0D6E6E;
  --teal-700: #0A5757;
  --teal-900: #073F3F;
  --ivory: #FAF9F6;
  --navy: #1A2634;
  --navy-70: #4A5563;
  --navy-50: #6B7684;
  --sage: #E6F2F2;
  --sage-2: #D3E8E8;
  --coral: #E07A5F;
  --coral-700: #C9634A;
  --wa: #1FA855;
  --wa-700: #178A45;
  --amber: #B7791F;
  --amber-bg: #FCF3E3;
  --line: #E6E2D9;
  --white: #FFFFFF;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(26, 38, 52, .05), 0 8px 24px -12px rgba(26, 38, 52, .14);
  --shadow-lg: 0 2px 4px rgba(26, 38, 52, .04), 0 24px 48px -24px rgba(13, 110, 110, .28);
  --font-body: "Manrope", var(--script-font, system-ui), system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Young Serif", var(--script-font, Georgia), Georgia, serif;
  /* Motion tokens: strong exponential ease-outs, calm durations */
  --ease: cubic-bezier(.23, 1, .32, 1);          /* UI ease-out */
  --ease-expo: cubic-bezier(.16, 1, .3, 1);       /* entrances */
  --ease-inout: cubic-bezier(.77, 0, .175, 1);    /* on-screen movement */
  --dur-press: 140ms;
  --dur-ui: 220ms;
  --dur-enter: 640ms;
}
html:not([data-script="1"]) { font-synthesis: none; } /* Young Serif ships one weight: never fake-bold it */
html[data-script="1"] { --font-display: var(--script-font), var(--font-body); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[data-script="1"] body { line-height: 1.75; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.012em; line-height: 1.16; margin: 0; color: var(--navy); text-wrap: balance; }
p { text-wrap: pretty; }
html[data-script="1"] h1, html[data-script="1"] h2, html[data-script="1"] h3 { letter-spacing: 0; line-height: 1.4; font-weight: 700; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; transform: translateY(-200%); transition: transform var(--dur-ui) var(--ease); }
.skip:focus { transform: none; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 32px); }
.muted { color: var(--navy-70); }
:focus-visible { outline: 3px solid rgba(13, 110, 110, .45); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(250, 249, 246, .88); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font-family: "Young Serif", Georgia, serif; font-weight: 400; font-size: 1.28rem; letter-spacing: -.01em; }
.brand-sep { color: var(--sage-2); font-weight: 300; font-size: 1.3rem; }
.brand-tag { color: var(--navy-70); font-size: .88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang { position: relative; display: flex; align-items: center; flex: none; }
.lang svg { position: absolute; inset-inline-start: 12px; width: 18px; height: 18px; color: var(--teal); pointer-events: none; }
.lang select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line); background: var(--white); border-radius: 999px;
  padding: 9px 34px 9px 38px; font-size: .9rem; font-weight: 600; cursor: pointer; max-width: 210px;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy-50) 50%), linear-gradient(135deg, var(--navy-50) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
[dir="rtl"] .lang select { padding: 9px 38px 9px 34px; background-position: 17px 52%, 12px 52%; }
.lang select:hover { border-color: var(--teal); }
@media (max-width: 720px) {
  .brand-tag, .brand-sep { display: none; }
  .lang select { max-width: 150px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; padding: 13px 24px; font-weight: 700; font-size: 1rem; line-height: 1.3;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: transform var(--dur-press) var(--ease), background-color var(--dur-ui) ease, box-shadow var(--dur-ui) var(--ease);
  -webkit-user-select: none; user-select: none;
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform var(--dur-ui) var(--ease); }
[dir="rtl"] .hero-cta .btn svg { transform: scaleX(-1); }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn-coral:hover, .btn-wa:hover { transform: translateY(-1px); }
  .btn-coral:hover:active, .btn-wa:hover:active { transform: scale(.97); }
  .hero-cta .btn:hover svg { transform: translateX(3px); }
  [dir="rtl"] .hero-cta .btn:hover svg { transform: scaleX(-1) translateX(3px); }
}
.btn-lg { padding: 17px 30px; font-size: 1.06rem; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -12px rgba(224, 122, 95, .8); }
.btn-coral:hover { background: var(--coral-700); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-700); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--white); border-color: var(--navy-50); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 12px 28px -14px rgba(31, 168, 85, .9); }
.btn-wa:hover { background: var(--wa-700); }
/* ---------- Views ---------- */
.view { display: none; }
.view.is-active { display: block; }
/* Fallback screen change for browsers without View Transitions */
html:not(.vt) .view.is-active { animation: rise .5s var(--ease-expo) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* View Transitions: screens and languages crossfade through a soft blur */
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 200ms var(--ease) both; }
::view-transition-new(root) { animation: vt-in 420ms var(--ease-expo) both; }
@keyframes vt-out { to { opacity: 0; filter: blur(6px); transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; filter: blur(8px); transform: translateY(12px); } }
html.vt-lang::view-transition-old(root) { animation: vt-fade-out 160ms ease both; }
html.vt-lang::view-transition-new(root) { animation: vt-fade-in 320ms var(--ease) both; }
@keyframes vt-fade-out { to { opacity: 0; filter: blur(4px); } }
@keyframes vt-fade-in { from { opacity: 0; filter: blur(4px); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px; isolation: isolate; }
/* Slow drifting light: teal + a warm coral glow, like morning light through a window */
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; will-change: transform;
}
.hero::before {
  inset: -38% -12% auto auto; width: 760px; height: 760px;
  background: radial-gradient(closest-side, rgba(13, 110, 110, .16), rgba(13, 110, 110, 0));
  animation: drift-a 22s var(--ease-inout) infinite alternate;
}
.hero::after {
  inset: auto auto -30% -14%; width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(224, 122, 95, .13), rgba(224, 122, 95, 0));
  animation: drift-b 28s var(--ease-inout) infinite alternate;
}
[dir="rtl"] .hero::before { inset: -38% auto auto -12%; }
[dir="rtl"] .hero::after { inset: auto -14% -30% auto; }
@keyframes drift-a { to { transform: translate(-60px, 50px) scale(1.08); } }
@keyframes drift-b { to { transform: translate(70px, -40px) scale(1.12); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero h1 .w { display: inline-block; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
html[data-script="1"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .92rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--coral); border-radius: 2px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); max-width: 17ch; }
html[data-script="1"] .hero h1 { max-width: 22ch; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.lede { margin-top: 20px; font-size: 1.1rem; color: var(--navy-70); max-width: 60ch; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.hero-meta { color: var(--navy-50); font-size: .9rem; font-weight: 600; }

/* Stage: floating lab chips + flowing path + care-plan card */
.hero-stage { position: relative; padding: 92px 0 0 64px; }
[dir="rtl"] .hero-stage { padding: 92px 64px 0 0; }
.flow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.flow-line { fill: none; stroke: var(--teal); stroke-opacity: .3; stroke-width: 1.6; stroke-linecap: round; }
.flow-pulse { fill: var(--coral); }
.lab-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 10px 24px -14px rgba(26, 38, 52, .35); font-size: .86rem; font-weight: 600; color: var(--navy); white-space: nowrap;
  animation: float 6s var(--ease-inout) infinite alternate;
}
.lab-chip b { color: var(--teal); font-weight: 700; }
.lab-chip[data-chip="amh"] { top: 6px; inset-inline-start: 0; }
.lab-chip[data-chip="afc"] { top: 0; inset-inline-start: 42%; animation-delay: -1.5s; }
.lab-chip[data-chip="hsg"] { top: 128px; inset-inline-start: -6px; animation-delay: -3s; }
.lab-chip[data-chip="sa"] { top: 236px; inset-inline-start: -14px; animation-delay: -4.5s; }
@keyframes float { from { transform: translateY(-3px); } to { transform: translateY(4px); } }
.tick { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); position: relative; flex: none; }
.tick::after { content: ""; position: absolute; left: 4px; top: 3px; width: 4px; height: 6px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.wave { display: inline-block; width: 22px; height: 10px; flex: none;
  background: linear-gradient(90deg, var(--coral) 0 0) 0 60% / 3px 40% no-repeat, linear-gradient(90deg, var(--coral) 0 0) 6px 30% / 3px 70% no-repeat,
              linear-gradient(90deg, var(--coral) 0 0) 12px 0 / 3px 100% no-repeat, linear-gradient(90deg, var(--coral) 0 0) 18px 50% / 3px 50% no-repeat; }

.demo-card {
  position: relative; z-index: 1; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--shadow-lg); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(1.2deg);
  transform-style: preserve-3d;
}
[dir="rtl"] .demo-card { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-1.2deg); }
.demo-card::after { /* soft highlight that follows the tilt */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 70%) var(--gy, 0%), rgba(255, 255, 255, .55), transparent 55%);
  mix-blend-mode: soft-light;
}
.demo-path .badge { transform-origin: left center; }
[dir="rtl"] .demo-path .badge { transform-origin: right center; }
.demo-head { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--navy-50); text-transform: uppercase; letter-spacing: .06em; }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(31, 168, 85, .15); }
.demo-params { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.demo-params div { background: var(--sage); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.demo-params small { display: block; font-size: .72rem; color: var(--navy-50); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-params strong { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-path { border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 14px 0; margin-bottom: 16px; }
.demo-path p { font-family: var(--font-display); font-size: 1.25rem; margin-top: 8px; }
html[data-script="1"] .demo-path p { font-weight: 700; }
.demo-bars { display: grid; gap: 10px; }
.demo-bar { display: grid; grid-template-columns: 42px 1fr 28px; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; color: var(--navy-50); }
.demo-bar i { height: 8px; border-radius: 8px; background: var(--sage); position: relative; overflow: hidden; }
.demo-bar i::after { content: ""; position: absolute; inset: 0; background: var(--sage-2); border-radius: 8px; transform: scaleX(var(--s, 0)); transform-origin: left; transition: transform 1s var(--ease-expo); }
[dir="rtl"] .demo-bar i::after { transform-origin: right; }
.demo-bar b { font-variant-numeric: tabular-nums; }
.demo-bar.is-rec { color: var(--teal); }
.demo-bar.is-rec i::after { background: var(--teal); }
.demo-bar b { text-align: end; }

@media (max-width: 900px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stage { max-width: 480px; padding: 104px 0 0; }
  [dir="rtl"] .hero-stage { padding: 104px 0 0; }
  /* Each chip sits above its own card column so the streams never cross */
  .lab-chip[data-chip="amh"] { top: 0; inset-inline-start: 0; }
  .lab-chip[data-chip="hsg"] { top: 54px; inset-inline-start: 13%; }
  .lab-chip[data-chip="afc"] { top: 6px; inset-inline-start: auto; inset-inline-end: 3%; }
  .lab-chip[data-chip="sa"] { top: 58px; inset-inline-start: auto; inset-inline-end: 15%; }
  .demo-card { --rx: 0deg; --ry: 0deg; }
}

/* ---------- Trust strip ---------- */
.trust { background: var(--teal); color: var(--ivory); }
.trust-strip { list-style: none; margin: 0 auto; padding: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-strip li { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 600; font-size: .98rem; text-align: start; }
.trust-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(250, 249, 246, .12); flex: none; }
.trust-icon svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .trust-strip { grid-template-columns: 1fr; } .trust-strip li { justify-content: flex-start; } }

/* ---------- Journey (what you receive) ---------- */
.how { padding: 88px 0 96px; }
.how h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); text-align: center; max-width: 22ch; margin-inline: auto; }
.journey { position: relative; margin-top: 56px; }
/* The line: drawn by scroll progress (--p on the line itself, set by motion.js) */
.journey-line { position: absolute; top: 11px; inset-inline: calc(100% / 6); height: 2px; background: var(--sage-2); border-radius: 2px; }
.journey-line i { position: absolute; inset: 0; border-radius: inherit; background: var(--teal); transform: scaleX(var(--p, 1)); transform-origin: left; }
[dir="rtl"] .journey-line i { transform-origin: right; }
.journey-stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stop { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.stop-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--sage-2); position: relative; z-index: 1;
  transition: border-color 400ms ease, background-color 400ms ease, transform 500ms var(--ease-expo); }
.stop-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--coral); transform: scale(0); transition: transform 500ms var(--ease-expo); }
.stop.is-lit .stop-dot { border-color: var(--teal); transform: scale(1.08); }
.stop.is-lit .stop-dot::after { transform: scale(1); }
.stop h3 { font-size: 1.3rem; margin: 22px 0 8px; }
.stop p { color: var(--navy-70); max-width: 32ch; }
.stop-visual { margin-top: 26px; width: 100%; max-width: 260px; height: 150px; border-radius: 20px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 18px 36px -26px rgba(13, 110, 110, .5); display: grid; position: relative; overflow: hidden; }
/* Stop 1: a lab report whose values get highlighted */
.vis-report { align-content: center; gap: 6px; padding: 14px 18px; }
.rep-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .84rem; padding: 4px 8px; border-radius: 8px; position: relative; isolation: isolate; }
.rep-row b { color: var(--navy-70); font-weight: 600; }
.rep-row em { font-style: normal; font-weight: 700; display: inline-flex; }
.rep-row::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(224, 122, 95, .16); clip-path: inset(0 100% 0 0); transition: clip-path 600ms var(--ease-expo); }
[dir="rtl"] .rep-row::before { clip-path: inset(0 0 0 100%); }
.stop.is-lit .rep-row::before { clip-path: inset(0 0 0 0); }
.stop.is-lit .rep-row:nth-child(2)::before { transition-delay: 120ms; }
.stop.is-lit .rep-row:nth-child(3)::before { transition-delay: 240ms; }
.stop.is-lit .rep-row:nth-child(4)::before { transition-delay: 360ms; }
/* Stop 2: pathway bars rise, the recommended one tallest */
.vis-bars { grid-template-columns: repeat(3, 1fr); align-items: end; gap: 14px; padding: 18px 26px 12px; }
.vbar { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.vbar i { width: 100%; max-width: 38px; height: 82%; border-radius: 10px 10px 4px 4px; background: var(--sage-2); transform: scaleY(.06); transform-origin: bottom; transition: transform 900ms var(--ease-expo); }
.vbar.is-rec i { background: var(--teal); }
.vbar b { font-size: .74rem; color: var(--navy-50); }
.vbar.is-rec b { color: var(--teal); }
.vbar[data-h="38"] i { --h: .38; } .vbar[data-h="88"] i { --h: .88; } .vbar[data-h="56"] i { --h: .56; }
.stop.is-lit .vbar i { transform: scaleY(var(--h)); }
.stop.is-lit .vbar:nth-child(2) i { transition-delay: 120ms; }
.stop.is-lit .vbar:nth-child(3) i { transition-delay: 240ms; }
/* Stop 3: a 90-day ring fills */
.vis-ring { place-items: center; }
.vis-ring svg { width: 112px; height: 112px; transform: rotate(-90deg); }
.ring-bg, .ring-fg { fill: none; stroke-width: 9; }
.ring-bg { stroke: var(--sage); }
.ring-fg { stroke: var(--coral); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1400ms var(--ease-expo); }
.stop.is-lit .ring-fg { stroke-dashoffset: 4; }
.ring-n { position: absolute; font-family: "Young Serif", Georgia, serif; font-size: 2rem; color: var(--navy); }
.how-cta { display: flex; justify-content: center; margin-top: 56px; }
@media (max-width: 860px) {
  .journey { margin-top: 40px; }
  .journey-line { top: 0; bottom: 0; height: auto; width: 2px; inset-inline-start: 11px; inset-inline-end: auto; }
  .journey-line i { transform: scaleY(var(--p, 1)); transform-origin: top; }
  .journey-stops { grid-template-columns: 1fr; gap: 44px; }
  .stop { display: grid; grid-template-columns: 24px 1fr; column-gap: 20px; align-items: start; text-align: start; }
  .stop-dot { grid-row: 1 / span 3; }
  .stop-visual { grid-column: 2; margin-top: 0; max-width: 300px; height: 132px; }
  .stop h3 { grid-column: 2; margin-top: 18px; }
  .stop p { grid-column: 2; }
}
/* Without JS the journey is simply complete */
html:not(.js) .stop .stop-dot { border-color: var(--teal); }
html:not(.js) .rep-row::before { clip-path: inset(0 0 0 0); }
html:not(.js) .vbar i { transform: scaleY(var(--h)); }
html:not(.js) .ring-fg { stroke-dashoffset: 4; }

/* ---------- Form ---------- */
#view-form { padding: 40px 0 72px; }
.stepper { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stepper-track { height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 4px; overflow: hidden; }
.stepper-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #2A8F86); transform: scaleX(var(--s, .3333)); transform-origin: left; transition: transform 700ms var(--ease-expo); }
[dir="rtl"] .stepper-track i { transform-origin: right; background: linear-gradient(270deg, var(--teal), #2A8F86); }
.stepper li { display: flex; align-items: center; gap: 10px; padding: 10px 4px; font-size: .9rem; font-weight: 600; color: var(--navy-50); transition: color 300ms ease; }
.stepper-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .8rem; background: var(--line); color: var(--navy-70); flex: none; }
.stepper li.is-current { color: var(--navy); }
.stepper li.is-current .stepper-n { background: var(--teal); color: #fff; }
.stepper li.is-done { color: var(--teal); }
.stepper li.is-done .stepper-n { background: var(--sage); color: transparent; position: relative; }
.stepper li.is-done .stepper-n::after { content: ""; position: absolute; left: 9px; top: 6px; width: 6px; height: 11px; border: solid var(--teal); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); animation: tick-in 360ms var(--ease-expo) both; }
@keyframes tick-in { from { transform: rotate(45deg) scale(.4); opacity: 0; } }
.stepper-n { transition: background-color 300ms ease, color 300ms ease, transform 400ms var(--ease-expo); }
.stepper li.is-current .stepper-n { transform: scale(1.08); }
@media (max-width: 560px) { .stepper li { font-size: .78rem; padding: 8px 4px; gap: 6px; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.form-card { padding: 36px; }
@media (max-width: 560px) { .form-card { padding: 22px 18px; } }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-of { color: var(--coral); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.step h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.step > .muted { margin: 8px 0 26px; }
.field { margin-bottom: 20px; min-width: 0; }
.field label, .field .label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.req { font-style: normal; font-weight: 600; font-size: .72rem; color: var(--coral-700); background: #FBEDE8; border-radius: 999px; padding: 2px 8px; margin-inline-start: 6px; vertical-align: 2px; }
.field input[type="text"], .field input[type="tel"], .field input[type="number"], .field select {
  width: 100%; border: 1.5px solid var(--line); background: var(--ivory); border-radius: var(--r-sm);
  padding: 13px 14px; font-size: 1rem; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy-50) 50%), linear-gradient(135deg, var(--navy-50) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .field select { background-position: 20px 52%, 15px 52%; }
.field input, .field select { transition: border-color var(--dur-ui) ease, background-color var(--dur-ui) ease, box-shadow 320ms var(--ease); }
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 4px rgba(13, 110, 110, .12); }
.field.has-error input, .field.has-error select { border-color: var(--coral); background: #FFF8F5; }
.err { color: var(--coral-700); font-size: .86rem; font-weight: 600; margin-top: 6px; }
.hint { color: var(--navy-50); font-size: .82rem; margin-top: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
.phone, .dur { display: flex; gap: 8px; }
.phone select { width: 118px !important; flex: none; }
.dur select { width: 130px !important; flex: none; }
.phone input { direction: ltr; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex !important; align-items: center; margin: 0 !important; cursor: pointer; font-weight: 600 !important; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--ivory); font-size: .92rem;
  transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease, color var(--dur-ui) ease, transform var(--dur-press) var(--ease); }
.chip:active span { transform: scale(.96); }
.chip span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--navy-50); flex: none;
  transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease, transform 320ms var(--ease-expo); }
.chip input:checked + span::before { transform: scale(1.12); }
.chip:hover span { border-color: var(--teal); }
.chip input:checked + span { background: var(--sage); border-color: var(--teal); color: var(--teal-900); }
.chip input:checked + span::before { background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--teal); }
.chip input:focus-visible + span { outline: 3px solid rgba(13, 110, 110, .45); outline-offset: 2px; }
.consent { font-size: .84rem; color: var(--navy-50); background: var(--sage); border-radius: var(--r-sm); padding: 12px 14px; margin-top: 8px; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-nav .btn-ghost[hidden] + .btn { margin-inline-start: auto; }
.form-nav .btn[hidden] { display: none; }
@media (max-width: 560px) { .form-nav { flex-direction: column-reverse; } .form-nav .btn { width: 100%; } }

/* ---------- Loading ---------- */
#view-loading { padding: 120px 0; }
.loading { text-align: center; color: var(--navy-70); font-weight: 600; }
.analyse { position: relative; width: min(420px, 100%); aspect-ratio: 32 / 22; margin: 0 auto 28px; }
.analyse-flow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.af-line { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-opacity: .5; stroke-dasharray: 100; stroke-dashoffset: 100; }
.an-chip { position: absolute; top: 0; transform: translateX(-50%); padding: 7px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 10px 22px -14px rgba(26, 38, 52, .4); font-size: .8rem; font-weight: 700; color: var(--navy); white-space: nowrap; max-width: 26%; overflow: hidden; text-overflow: ellipsis; }
[dir="rtl"] .an-chip { transform: translateX(50%); }
.an-chip:nth-of-type(1) { inset-inline-start: 12.5%; top: 6%; } .an-chip:nth-of-type(2) { inset-inline-start: 37.5%; }
.an-chip:nth-of-type(3) { inset-inline-start: 62.5%; } .an-chip:nth-of-type(4) { inset-inline-start: 87.5%; top: 6%; }
.an-chip b { color: var(--teal); margin-inline-end: 4px; }
.an-node { position: absolute; left: 50%; top: 68%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--teal);
  display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(13, 110, 110, .1), 0 18px 36px -12px rgba(13, 110, 110, .6); transform: scale(.85); }
.an-node::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(224, 122, 95, .5); animation: halo 1.6s var(--ease-expo) infinite; }
@keyframes halo { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.an-node-text { color: #fff; font-weight: 700; font-size: .78rem; line-height: 1.1; text-align: center; padding: 4px; }
.loading-text { max-width: 36ch; margin-inline: auto; }
@keyframes pulse { 0%, 100% { transform: scale(.6); opacity: .4; } 50% { transform: scale(1); opacity: 1; } }

/* ---------- Results ---------- */
#view-results { padding: 36px 0 120px; }
.res-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.res-head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.res-head .muted { margin-top: 6px; }
.res-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.snapshot { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.snap { display: inline-flex; align-items: baseline; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .86rem; }
.snap b { color: var(--navy-50); font-weight: 600; }
.snap span { unicode-bidi: isolate; }

.section { margin-top: 28px; }
.section-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-k { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--ivory); font-weight: 700; font-size: .85rem; flex: none; font-family: var(--font-body); }
.section-h h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }

.primary-card { overflow: hidden; }
.primary-top { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-900) 100%); color: var(--ivory); padding: 30px 32px; position: relative; }
.primary-top::after { content: ""; position: absolute; inset: auto -60px -80px auto; width: 240px; height: 240px; border-radius: 50%; border: 36px solid rgba(250, 249, 246, .06); }
[dir="rtl"] .primary-top::after { inset: auto auto -80px -60px; }
.primary-top .label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
html[data-script="1"] .primary-top .label { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.primary-top h3 { color: var(--ivory); font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 10px 0 8px; max-width: 26ch; }
.primary-top p { opacity: .88; max-width: 60ch; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: .8rem; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-strong { background: #E3F5EA; color: #13703A; }
.badge-good { background: var(--sage); color: var(--teal); }
.badge-provisional { background: var(--amber-bg); color: var(--amber); }
.primary-top .badge { margin-top: 14px; }
.provisional-note { margin-top: 14px; display: inline-block; background: rgba(250, 249, 246, .12); border-radius: 10px; padding: 8px 14px; font-weight: 600; }
.primary-body { padding: 28px 32px 32px; display: grid; grid-template-columns: 300px 1fr; gap: 32px; }
@media (max-width: 860px) { .primary-body { grid-template-columns: 1fr; padding: 24px 20px; } .primary-top { padding: 26px 20px; } }
.triggers h4, .reasoning h4 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-50); margin: 0 0 12px; font-weight: 700; }
html[data-script="1"] .triggers h4, html[data-script="1"] .reasoning h4 { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.triggers ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.triggers li { display: flex; gap: 10px; background: var(--sage); border-radius: 12px; padding: 12px 14px; font-size: .92rem; font-weight: 600; color: var(--teal-900); }
.triggers li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--coral); }
.reasoning p { color: var(--navy); margin-bottom: 14px; font-size: 1.01rem; }

.reasoning p:last-child { margin-bottom: 0; }

/* Comparison */
.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 680px; }
.cmp th, .cmp td { padding: 16px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .94rem; }
.cmp thead th { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; background: var(--ivory); position: relative; }
.cmp thead th:first-child, .cmp tbody th { font-family: var(--font-body); font-size: .8rem; font-weight: 700; color: var(--navy-50); text-transform: uppercase; letter-spacing: .06em; width: 190px; }
html[data-script="1"] .cmp thead th:first-child, html[data-script="1"] .cmp tbody th { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.cmp tr > :first-child { padding-inline-start: 24px; }
.cmp .is-rec { background: #F2F9F9; }
.cmp thead .is-rec { background: var(--sage); }
.rec-tag { display: block; width: fit-content; margin-top: 6px; font-family: var(--font-body); font-size: .72rem; font-weight: 700; color: #fff; background: var(--teal); border-radius: 999px; padding: 2px 10px; }
.rate { font-family: "Young Serif", Georgia, serif; font-size: 1.4rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.na { color: var(--coral-700); font-weight: 600; }
.score { display: flex; align-items: center; gap: 10px; }
.score-bar { flex: 1; height: 8px; border-radius: 8px; background: var(--sage); overflow: hidden; min-width: 60px; }
.score-bar i { display: block; height: 100%; width: 100%; border-radius: 8px; background: var(--sage-2); transform: scaleX(var(--s, 1)); transform-origin: left; }
[dir="rtl"] .score-bar i { transform-origin: right; }
.is-rec .score-bar i { background: var(--teal); }
.score b { font-variant-numeric: tabular-nums; min-width: 32px; }
.cmp-note { padding: 14px 24px; font-size: .84rem; color: var(--navy-50); }
.cmp-note.warn { color: var(--amber); font-weight: 600; }

/* Supplements */
.sup-label { display: inline-flex; align-items: center; gap: 8px; background: var(--amber-bg); color: var(--amber); font-weight: 700; font-size: .86rem; border-radius: 999px; padding: 7px 14px; margin-bottom: 16px; }
.sup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.sup-card { padding: 24px; }
.sup-card h3 { font-size: 1.15rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sup-card .why { font-size: .86rem; color: var(--navy-50); margin: 6px 0 16px; }
.sup-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sup-list li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--ivory); }
.sup-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-weight: 700; }
.dose { color: var(--teal); font-size: .86rem; font-weight: 700; }
.sup-list p { font-size: .88rem; color: var(--navy-70); margin-top: 4px; }
.diet { margin-top: 18px; padding: 24px; }
.diet h3 { font-size: 1.15rem; margin-bottom: 14px; }
.diet ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: d; }
.diet li { counter-increment: d; display: flex; gap: 12px; align-items: flex-start; }
.diet li::before { content: counter(d); display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sage); color: var(--teal); font-weight: 700; font-size: .82rem; margin-top: 1px; }

/* Tests */
.tests { padding: 8px 0; }
.tests-sub { padding: 18px 24px 4px; color: var(--navy-70); font-size: .92rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.test-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 24px; border-top: 1px solid var(--line); }
.test-row:first-of-type { border-top: 0; }
.test-row h4 { margin: 0; font-size: .98rem; }
.test-row p { font-size: .86rem; color: var(--navy-50); }
.status { font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.status-missing { background: #FBEDE8; color: var(--coral-700); }
.status-done { background: #E3F5EA; color: #13703A; }
.status-review { background: var(--amber-bg); color: var(--amber); }
.all-done { padding: 14px 24px; color: #13703A; font-weight: 600; }

/* WhatsApp CTA */
.wa-card { background: var(--navy); color: var(--ivory); border-radius: var(--r-lg); padding: 34px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.wa-card h2 { color: var(--ivory); font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.wa-card p { opacity: .8; margin-top: 8px; }
.wa-card .btn-wa { padding: 18px 26px; font-size: 1rem; max-width: 420px; }
.wa-ico { width: 24px; height: 24px; flex: none; }
@media (max-width: 860px) { .wa-card { grid-template-columns: 1fr; padding: 26px 20px; } .wa-card .btn-wa { max-width: none; width: 100%; } }

.wa-banner { position: fixed; z-index: 50; inset-inline: 16px; bottom: 16px; margin-inline: auto; max-width: 620px; display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid rgba(31, 168, 85, .35); border-radius: 18px; padding: 10px 10px 10px 12px; box-shadow: 0 20px 40px -16px rgba(26, 38, 52, .35); animation: slideup .6s var(--ease-expo) both; }
.wa-banner[hidden] { display: none; }
.wa-banner .wa-ico { color: var(--wa); }
.wa-banner p { flex: 1; font-weight: 600; font-size: .92rem; }
.wa-close { border: 0; background: transparent; font-size: 1.4rem; line-height: 1; color: var(--navy-50); cursor: pointer; width: 32px; height: 32px; border-radius: 50%; flex: none; }
.wa-close:hover { background: var(--sage); }
@keyframes slideup { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .wa-banner p { font-size: .84rem; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--white); padding: 28px 0 36px; }
.disclaimer { font-size: .86rem; color: var(--navy-70); max-width: 90ch; background: var(--sage); border-radius: var(--r-sm); padding: 14px 16px; }
.footer-meta { margin-top: 14px; font-size: .82rem; color: var(--navy-50); }

/* ---------- Print ---------- */
@media print {
  .site-header, .wa-banner, .res-actions, .wa-card .btn, .site-footer .footer-meta { display: none !important; }
  body { background: #fff; }
  .card, .wa-card { box-shadow: none; break-inside: avoid; }
  .primary-top { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #view-results { padding: 0; }
}

/* ================= Mobile (iOS Safari + Android Chrome) ================= */
html { -webkit-tap-highlight-color: transparent; }
html { overflow-x: hidden; overflow-x: clip; } /* never allow sideways scroll (matters in RTL); on html only so the sticky header keeps working */
button, .btn, .chip, select { touch-action: manipulation; }
/* iPhone notch / home bar (viewport-fit=cover) */
.wrap { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.site-footer { padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
.wa-banner { bottom: calc(16px + env(safe-area-inset-bottom)); }
#view-results { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
/* Hover styles only on real pointers, so taps don't leave "stuck" highlights */
@media (hover: none) {
  .btn-coral:hover { background: var(--coral); }
  .btn-teal:hover { background: var(--teal); }
  .btn-wa:hover { background: var(--wa); }
  .btn-ghost:hover { background: transparent; border-color: var(--line); }
  .chip:hover span { border-color: var(--line); }
  .chip input:checked + span { border-color: var(--teal); }
  .lang select:hover { border-color: var(--line); }
}

/* Comparison: table on desktop, stacked cards on phones */
.cmp-cards { display: none; }
@media (max-width: 640px) {
  .cmp-wrap { display: none; }
  .cmp-cards { display: grid; gap: 12px; padding: 14px; }
  .cmp-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--white); }
  .cmp-card.is-rec { border: 2px solid var(--teal); background: #F2F9F9; }
  .cmp-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .cmp-card h4 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; }
  .cmp-card .rec-tag { margin-top: 0; }
  .cc-rate { margin: 10px 0 12px; display: flex; flex-direction: column; }
  .cc-rate small { color: var(--navy-50); font-size: .8rem; font-weight: 600; }
  .cmp-card dl { margin: 0; display: grid; gap: 4px; }
  .cmp-card dt { color: var(--navy-50); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: 8px; }
  html[data-script="1"] .cmp-card dt { text-transform: none; letter-spacing: 0; font-size: .86rem; }
  .cmp-card dd { margin: 0; font-size: .92rem; }
  .cmp-note { padding: 4px 16px 14px; }
}

@media (max-width: 560px) {
  /* iOS zooms into any field whose text is under 16px — keep every control at 16px */
  .lang select, .field input, .field select { font-size: 16px; }
  .lang select { max-width: 158px; padding: 8px 28px 8px 34px; }
  [dir="rtl"] .lang select { padding: 8px 34px 8px 28px; }
  .lang svg { inset-inline-start: 11px; width: 16px; height: 16px; }
  .header-inner { min-height: 60px; }
  .brand-name { font-size: 1.12rem; }
  .hero { padding: 28px 0 36px; }
  .hero h1 { font-size: 1.85rem; }
  html[data-script="1"] .hero h1 { font-size: 1.55rem; }
  .lede { font-size: 1rem; }
  .hero-cta .btn { width: 100%; }
  .demo-card { padding: 18px; }
  .how { padding: 48px 0 56px; }
  .how-cta .btn { width: 100%; }
  #view-form { padding: 20px 0 48px; }
  .phone select { width: 104px !important; }
  .dur select { width: 112px !important; }
  .chip span { padding: 10px 14px; }  /* ≥44px tap target */
  .res-head { align-items: stretch; }
  .res-actions { width: 100%; }
  .res-actions .btn { flex: 1 1 auto; }
  .primary-top h3 { font-size: 1.45rem; }
  .sup-grid { grid-template-columns: 1fr; }
  .sup-card, .diet { padding: 18px; }
  .test-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
  .test-row .status { justify-self: start; }
  .tests-sub { padding: 16px 16px 4px; }
  .wa-card .btn-wa { padding: 16px 18px; font-size: .95rem; }
  .wa-banner { inset-inline: 10px; padding: 10px; gap: 8px; }
  .wa-banner .btn-sm { padding: 8px 12px; font-size: .84rem; }
}

/* ================= Motion details ================= */
.wa-banner .wa-ico { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgba(31, 168, 85, .12); }
/* A single light sweep across the WhatsApp CTA when it scrolls into view */
.wa-card .btn-wa { position: relative; overflow: hidden; isolation: isolate; }
.wa-card .btn-wa::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-110%); }
.wa-card.is-seen .btn-wa::after { animation: sheen 1.4s var(--ease-inout) 300ms both; }
@keyframes sheen { to { transform: translateX(110%); } }
.field.shake input, .field.shake select { animation: nudge 320ms var(--ease) both; }
@keyframes nudge { 25% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }
.form-card { overflow: hidden; }
.primary-card { will-change: auto; }

/* ================= Reduced motion: keep gentle fades, remove movement ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .hero::before, .hero::after, .lab-chip, .an-node::after { animation: none !important; }
  .demo-card { --rx: 0deg !important; --ry: 0deg !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: vt-fade-out 1ms both !important; }
  .flow-pulses { display: none; }
}

/* Digits inside Young Serif display text use Manrope's clear lining figures */
.num { font-family: "Manrope", var(--font-body); font-weight: 700; font-size: .9em; letter-spacing: -.02em; }
.ring-n, .rate { font-family: "Manrope", var(--font-body) !important; font-weight: 700; letter-spacing: -.03em; }
.ring-n { font-size: 1.9rem; }

/* While the visitor's own language file is loading (set by boot.js), hide the body briefly
   so there's no English flash. The header stays visible. */
html.i18n-pending main, html.i18n-pending .site-footer { visibility: hidden; }
html.lang-loading .lang select { cursor: progress; opacity: .7; transition: opacity var(--dur-ui) ease; }
