/* ============================================================
   HOMEPAGE MOTION
   Hero: headline reveal, word rotator, light field ..... .hx (+ assets/hero-bg.js)
   Offer cards + quick links under the hero ............ assets/hero.css
   Why this matters: count-up stats ..................... .wb    (#why)
   How it works: process line + sample texts ............ .hw    (#how)
   What the panel covers: tile build .................... .bento (#what)
   Routine screening comparison ......................... .cmp   (#compare)
   Free risk check demo ................................. .rd    (#riskdemo)
   Pricing: sliding toggle, rolling prices .............. .odo, .pm-pill (#pricing)
   Stage at diagnosis: card stack ....................... .ss    (#science)
   Pay button + success check ........................... checkout.css / success.html
   Accent colours follow the brand: deep green on light, powder blue on dark.
   Sections play once when they scroll into view; everything is static under
   prefers-reduced-motion.
   ============================================================ */
:root{
  --spring:cubic-bezier(.34,1.56,.64,1);
  --out-cubic:cubic-bezier(.33,1,.68,1);
  --inout-cubic:cubic-bezier(.65,0,.35,1);
  --out-expo:cubic-bezier(.16,1,.3,1);
  --ok:#1FA971;
}

/* ============================================================ HERO */
.hx{position:relative;overflow:hidden;color:var(--ink);text-align:center;
  padding:calc(var(--nav-h) + 60px) 0 76px;
  background:
    radial-gradient(760px 420px at 50% 112%,rgba(147,193,216,.38),transparent 70%),
    radial-gradient(620px 360px at 8% 0%,rgba(232,247,242,.95),transparent 70%),
    radial-gradient(520px 320px at 96% 6%,rgba(147,193,216,.18),transparent 70%),
    #FBFDFC}
.hx-in{display:flex;flex-direction:column;align-items:center}
/* live light-field background (assets/hero-bg.js); the CSS gradient above is the fallback */
.hx-bg{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:0;opacity:0;transition:opacity 1.6s ease;pointer-events:none}
.hx-bg.on{opacity:1}
.hx > .wrap{position:relative;z-index:1}
.hx-badge{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:center;
  font-size:12.5px;font-weight:600;letter-spacing:.02em;color:var(--deep);
  background:var(--white);border:1px solid rgba(45,90,80,.18);border-radius:999px;padding:7px 15px 7px 11px;box-shadow:var(--shadow-s)}
.hx-badge i{width:7px;height:7px;border-radius:999px;background:var(--ok);box-shadow:0 0 0 4px rgba(31,169,113,.16)}
.hx-badge .sep{width:3px;height:3px;border-radius:999px;background:rgba(45,90,80,.4)}
.hx-h1{font-family:var(--font-display);font-weight:500;font-size:clamp(52px,8.4vw,112px);line-height:.98;letter-spacing:-.035em;margin-top:22px;color:var(--ink)}
.hx-h1 .w{display:inline-block}
.hx-u{position:relative;color:var(--deep)}
.hx-ul{position:absolute;left:-2%;right:-2%;bottom:-.08em;width:104%;height:.2em;overflow:visible}
.hx-ul path{fill:none;stroke:var(--powder);stroke-width:7;stroke-linecap:round;stroke-dasharray:220;stroke-dashoffset:0}
.hx-rot{margin-top:22px;font-family:var(--font-display);font-weight:500;font-size:clamp(22px,2.9vw,36px);line-height:1.2;letter-spacing:-.015em;color:var(--teal);display:flex;align-items:center;justify-content:center;gap:.32em;flex-wrap:wrap}
.rot{position:relative;display:inline-flex;align-items:center}
.rot::before{content:"";position:absolute;inset:-14px -18px;border-radius:999px;background:radial-gradient(closest-side,rgba(147,193,216,.55),transparent);filter:blur(10px);animation:rotglow 3.2s ease-in-out infinite;z-index:0}
@keyframes rotglow{0%,100%{opacity:.55;transform:scale(.94)}50%{opacity:1;transform:scale(1.04)}}
.rot-pill{position:relative;z-index:1;display:inline-block;height:1.36em;overflow:hidden;border-radius:999px;background:var(--powder);color:var(--ink);
  padding:0 .5em;transition:width .42s var(--out-cubic);vertical-align:middle}
.rot-strip{display:flex;flex-direction:column;transition:transform .62s var(--spring)}
.rot-strip span{height:1.36em;line-height:1.36em;white-space:nowrap;text-align:center;transition:opacity .28s ease;opacity:0}
.rot-strip span.on{opacity:1}
.rot-dots{display:flex;gap:6px;justify-content:center;margin-top:14px}
.rot-dots i{width:6px;height:6px;border-radius:999px;background:rgba(45,90,80,.2);transition:background .3s,transform .3s}
.rot-dots i.on{background:var(--deep);transform:scale(1.3)}
.hx-sub{margin-top:18px;max-width:54ch;font-size:clamp(16px,1.5vw,18.5px);line-height:1.6;color:var(--teal)}
.hx-cta{margin-top:30px;display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.hx-primary{position:relative;overflow:hidden;background:var(--ink);color:#fff;box-shadow:0 18px 40px -18px rgba(17,21,28,.7)}
.hx-primary:hover{background:#000}
.hx-primary .stack small{color:rgba(255,255,255,.72)}
.hx-primary::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:45%;transform:skewX(-20deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);opacity:0}
.hx-ghost{background:var(--white);color:var(--ink);border:1px solid var(--stone)}
.hx-ghost:hover{background:var(--white);border-color:var(--deep)}
.hx-ghost .stack small{color:var(--teal);opacity:1}
.hx-trust{margin-top:22px;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 0;font-size:13.5px;color:var(--teal)}
.hx-trust li{padding:0 14px;border-left:1px solid var(--stone)}
.hx-trust li:first-child{border-left:0}
.hx-trust .fn{color:var(--deep);text-decoration:none}
.hx-fine{margin-top:12px;font-size:12px;color:var(--teal);max-width:70ch}
.hx-fine a{color:var(--deep);border-bottom:1px solid currentColor}

/* the product, rising from the bottom edge */

/* entrance (play once) */
.js-motion .hx:not(.hx-go) .hx-badge,
.js-motion .hx:not(.hx-go) .hx-h1 .w,
.js-motion .hx:not(.hx-go) .hx-rot,.js-motion .hx:not(.hx-go) .rot-dots,
.js-motion .hx:not(.hx-go) .hx-sub,.js-motion .hx:not(.hx-go) .hx-cta .btn,
.js-motion .hx:not(.hx-go) .hx-trust,.js-motion .hx:not(.hx-go) .hx-fine{opacity:0}
.hx-go .hx-badge{animation:hxDrop .7s var(--out-cubic) both}
.hx-go .hx-h1 .w{animation:hxWord .95s var(--out-cubic) both;animation-delay:calc(.25s + var(--i) * 100ms)}
.hx-go .hx-ul path{animation:hxLine .9s var(--inout-cubic) 1s both}
.hx-go .hx-rot,.hx-go .rot-dots{animation:hxUp .8s var(--out-cubic) .95s both}
.hx-go .hx-sub{animation:hxUp .8s var(--out-cubic) 1.1s both}
.hx-go .hx-cta .btn{animation:hxSpring .75s var(--spring) both;animation-delay:1.3s}
.hx-go .hx-cta .btn + .btn{animation-delay:1.4s}
.hx-go .hx-trust,.hx-go .hx-fine{animation:hxUp .8s var(--out-cubic) 1.5s both}
.hx-go .hx-primary::after{animation:hxShine 1.1s ease-in-out 2.3s 1 both}
@keyframes hxDrop{from{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:none}}
@keyframes hxWord{from{opacity:0;transform:translateY(28px);filter:blur(14px)}to{opacity:1;transform:none;filter:blur(0)}}
@keyframes hxLine{from{stroke-dashoffset:220}to{stroke-dashoffset:0}}
@keyframes hxUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes hxSpring{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
@keyframes hxShine{0%{left:-60%;opacity:0}15%{opacity:1}100%{left:130%;opacity:0}}

@media (max-width:900px){
  .hx{padding-top:calc(var(--nav-h) + 40px)}
}
@media (max-width:520px){
  .hx-h1{font-size:clamp(46px,14vw,60px)}
  .hx-rot{font-size:clamp(20px,6vw,24px)}
  .hx-cta{width:100%;flex-direction:column}
  .hx-cta .btn{width:100%}
  .hx-trust{flex-direction:column;gap:6px}
  .hx-trust li{border-left:0;padding:0}
}

/* ============================================================ COUNT-UP STATS (#why) */
.wb{margin-top:52px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);grid-template-rows:auto auto;gap:16px}
.wb-tile{position:relative;background:var(--ink-2);border:1px solid rgba(255,255,255,.08);border-radius:22px;padding:26px;overflow:hidden;min-width:0}
.wb-tile p{margin-top:10px;font-size:14.5px;line-height:1.55;color:rgba(255,255,255,.72);max-width:36ch}
.wb-num{font-size:clamp(44px,5vw,64px);font-weight:600;letter-spacing:-.035em;line-height:1;color:#fff;font-variant-numeric:tabular-nums}
.wb-num small{font-size:.55em;margin-left:2px;color:var(--powder)}
.wb-ring{grid-row:1 / span 2;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center}
.wb-ring .ringwrap{position:relative;width:min(100%,250px);aspect-ratio:1}
.ring{width:100%;height:100%;transform:rotate(-90deg)}
.ring circle{fill:none;stroke-width:16}
.ring .bg{stroke:rgba(255,255,255,.08)}
.ring .fg{stroke:var(--powder);stroke-linecap:round;stroke-dasharray:528;stroke-dashoffset:528}
.ring-num{position:absolute;inset:0;display:grid;place-items:center}
.wb-ring p{max-width:30ch}
.wb-chip{margin-top:14px;display:inline-flex;font-size:12px;font-weight:600;color:var(--powder);background:rgba(147,193,216,.12);border:1px solid rgba(147,193,216,.25);border-radius:999px;padding:5px 11px}
.ppl{display:flex;gap:10px;margin-top:16px}
.ppl svg{width:34px;height:52px}
.ppl path,.ppl circle{fill:rgba(255,255,255,.12);transition:fill .45s var(--out-cubic),transform .45s var(--spring)}
.ppl svg{transform-origin:50% 100%}
.ppl svg.on path,.ppl svg.on circle{fill:var(--powder)}
.ppl svg.on{animation:pplPop .5s var(--spring)}
@keyframes pplPop{0%{transform:scale(.8)}100%{transform:none}}
.lc-wrap{position:relative;margin-top:40px}
.wb-line .lc{display:block;width:100%;height:auto;overflow:visible}
.lc .base{stroke:rgba(255,255,255,.18);stroke-dasharray:4 5;stroke-width:1.5}
.lc .area{fill:url(#lcfill);opacity:0;transition:opacity .9s ease .6s}
.lc .ln{fill:none;stroke:var(--powder);stroke-width:3.5;stroke-linecap:round;stroke-dasharray:400;stroke-dashoffset:400}
.lc .dot{fill:var(--powder);opacity:0;transform-box:fill-box;transform-origin:center;transform:scale(0)}
.lc-ax{display:flex;justify-content:space-between;margin-top:6px;font-size:12px;color:rgba(255,255,255,.5);font-variant-numeric:tabular-nums}
.lc-tip{position:absolute;right:-6px;bottom:calc(75% + 12px);font-size:12px;font-weight:700;color:var(--ink);background:var(--powder);border-radius:999px;padding:5px 10px;opacity:0;transform:translateY(6px) scale(.85)}
.wb.go .ring .fg{transition:stroke-dashoffset 1.8s var(--out-expo);stroke-dashoffset:calc(528 - 528 * .70)}
.wb.go .lc .ln{transition:stroke-dashoffset 1.8s var(--out-expo) .2s;stroke-dashoffset:0}
.wb.go .lc .area{opacity:1}
.wb.go .lc .dot{opacity:1;transform:none;transition:transform .5s var(--spring) 1.7s,opacity .2s 1.7s}
.wb.go .lc-tip{opacity:1;transform:none;transition:all .5s var(--spring) 1.9s}
.js-motion .wb:not(.go) .wb-tile{opacity:0;transform:translateY(24px)}
.wb.go .wb-tile{transition:opacity .7s var(--out-cubic),transform .7s var(--out-cubic);transition-delay:calc(var(--i) * 100ms)}
@media (max-width:820px){
  .wb{grid-template-columns:1fr}
  .wb-ring{grid-row:auto}
}

/* ============================================================ PROCESS LINE + SAMPLE TEXTS (#how) */
.hw-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap}
.hw-head h2{margin-top:10px;max-width:18ch}
.hw-grid{margin-top:40px;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:22px;align-items:stretch}
.hw-panel{position:relative;background:var(--ink);color:#fff;border-radius:26px;padding:34px 30px 30px;overflow:hidden}
.hw-panel::before{content:"";position:absolute;inset:auto -20% -40% -20%;height:70%;background:radial-gradient(closest-side,rgba(147,193,216,.14),transparent);pointer-events:none}
.hw-track{position:relative;width:100%;aspect-ratio:600/180}
.hw-track svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.hw-track .trk{fill:none;stroke:rgba(255,255,255,.16);stroke-width:2.5;stroke-dasharray:6 8}
.hw-track .prog{fill:none;stroke:var(--powder);stroke-width:4;stroke-linecap:round;filter:drop-shadow(0 0 6px rgba(147,193,216,.55))}
.hw-track .tip{fill:#fff;filter:drop-shadow(0 0 10px rgba(147,193,216,.95));opacity:0}
.hw-node{position:absolute;width:48px;height:48px;margin:-24px 0 0 -24px;border-radius:999px;background:var(--ink-3);border:2px solid rgba(255,255,255,.18);display:grid;place-items:center;z-index:2;
  transition:background .4s,border-color .4s,transform .55s var(--spring),box-shadow .5s}
.hw-node b{font-size:15px;font-weight:700;color:rgba(255,255,255,.7);transition:opacity .2s}
.hw-node svg{position:absolute;width:22px;height:22px;stroke:var(--ink);stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}
.hw-node svg path{stroke-dasharray:30;stroke-dashoffset:30}
.hw-node.on{background:var(--powder);border-color:var(--powder);transform:scale(1.12);box-shadow:0 0 0 8px rgba(147,193,216,.16),0 0 30px rgba(147,193,216,.5)}
.hw-node.on b{opacity:0}
.hw-node.on svg path{stroke-dashoffset:0;transition:stroke-dashoffset .45s var(--out-cubic) .15s}
.hw-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:6px}
.hw-card{background:var(--ink-2);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:16px 16px 18px;transition:opacity .6s var(--out-cubic),transform .6s var(--spring)}
.hw-card .k{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.5)}
.hw-card h3{margin-top:8px;font-size:17px;font-weight:600;line-height:1.25;color:#fff}
.hw-card p{margin-top:6px;font-size:13px;line-height:1.5;color:rgba(255,255,255,.66)}
.js-motion .hw-card:not(.on){opacity:0;transform:translateY(26px)}
.hw-live{margin:22px auto 0;display:flex;width:max-content;align-items:center;gap:9px;background:#fff;color:var(--ink);font-size:13.5px;font-weight:600;border-radius:999px;padding:8px 16px 8px 12px;transition:opacity .5s,transform .5s var(--spring)}
.hw-live i{width:9px;height:9px;border-radius:999px;background:var(--ok);box-shadow:0 0 0 0 rgba(31,169,113,.6);animation:okPulse 1.6s ease-out infinite}
@keyframes okPulse{0%{box-shadow:0 0 0 0 rgba(31,169,113,.55)}100%{box-shadow:0 0 0 10px rgba(31,169,113,0)}}
.js-motion .hw-live:not(.on){opacity:0;transform:translateY(10px) scale(.9)}
/* lock screen */
.hw-phone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--white);border:1px solid var(--stone);border-radius:26px;padding:24px 16px}
.ls{position:relative;width:min(100%,282px);aspect-ratio:9/18.5;border-radius:42px;padding:9px;background:linear-gradient(160deg,#2A313B,#0E1216);box-shadow:0 40px 70px -30px rgba(17,21,28,.6),inset 0 0 0 1px rgba(255,255,255,.08)}
.ls-screen{position:relative;height:100%;border-radius:34px;overflow:hidden;color:#fff;
  background:radial-gradient(120% 70% at 70% 100%,rgba(201,169,106,.55),transparent 60%),radial-gradient(90% 60% at 10% 15%,rgba(147,193,216,.35),transparent 60%),linear-gradient(180deg,#152029,#0C1116)}
.ls-island{position:absolute;left:50%;top:10px;transform:translateX(-50%);width:86px;height:25px;border-radius:999px;background:#05070A}
.ls-date{margin-top:46px;text-align:center;font-size:13px;font-weight:600;color:rgba(255,255,255,.8)}
.ls-time{text-align:center;font-family:var(--font-display);font-size:64px;font-weight:500;line-height:1;letter-spacing:-.03em;margin-top:2px}
.nt-stack{position:absolute;left:10px;right:10px;top:150px;display:flex;flex-direction:column;gap:8px}
.nt{display:grid;grid-template-columns:30px 1fr auto;gap:9px;align-items:start;padding:10px 11px;border-radius:16px;background:rgba(244,246,245,.86);color:var(--ink);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  box-shadow:0 10px 24px -14px rgba(0,0,0,.6);animation:ntIn .7s var(--spring) both;transition:transform .55s var(--spring),opacity .4s}
.nt img{width:30px;height:30px;border-radius:8px;background:#fff;padding:3px;object-fit:contain}
.nt b{display:block;font-size:12px;font-weight:700;line-height:1.25}
.nt span{display:block;font-size:11px;line-height:1.35;color:#3A4741;margin-top:1px}
.nt time{font-size:10px;color:#5E6E61}
@keyframes ntIn{from{opacity:0;transform:translateY(-70px) scale(.92)}to{opacity:1;transform:none}}
.ls-tag{margin-top:12px;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--sage)}
.how-foot2{margin-top:26px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;align-items:center}
.how-foot2 .cadence{font-size:15px;color:var(--teal);max-width:60ch}
@media (max-width:980px){.hw-grid{grid-template-columns:1fr}.hw-phone{padding:26px 16px}}
@media (max-width:640px){
  .hw-panel{padding:24px 18px 22px}
  .hw-track{display:none}
  .hw-cards{grid-template-columns:1fr;gap:0;position:relative;margin-top:0}
  .hw-cards::before{content:"";position:absolute;left:23px;top:24px;bottom:24px;width:2.5px;background:repeating-linear-gradient(180deg,rgba(255,255,255,.18) 0 6px,transparent 6px 14px)}
  .hw-cards::after{content:"";position:absolute;left:23px;top:24px;width:2.5px;height:calc((100% - 48px) * var(--p,0));background:var(--powder);box-shadow:0 0 8px rgba(147,193,216,.6)}
  .hw-card{position:relative;margin-left:66px;margin-bottom:14px;background:var(--ink-2)}
  .hw-card .hw-node{left:-43px;top:24px;margin:0;width:40px;height:40px;position:absolute}
  .hw-card .hw-node{left:-66px}
}
.hw-card .hw-node{display:none}
@media (max-width:640px){.hw-card .hw-node{display:grid}}

/* ============================================================ TILE BUILD (#what) */
.bento{position:relative;margin-top:44px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.bento::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:24px;
  background:radial-gradient(260px 260px at var(--sx,30%) var(--sy,30%),rgba(147,193,216,.12),transparent 70%);animation:spot 14s ease-in-out infinite}
@keyframes spot{0%{--sx:15%;--sy:20%}25%{--sx:70%;--sy:25%}50%{--sx:85%;--sy:80%}75%{--sx:30%;--sy:85%}100%{--sx:15%;--sy:20%}}
@property --sx{syntax:'<percentage>';inherits:false;initial-value:30%}
@property --sy{syntax:'<percentage>';inherits:false;initial-value:30%}
.bt{position:relative;background:var(--ink-2);border:1px solid rgba(255,255,255,.08);border-radius:22px;padding:24px;overflow:hidden;min-width:0}
.bt h3{font-size:18px;font-weight:600;line-height:1.25;color:#fff}
.bt p{margin-top:6px;font-size:13.5px;line-height:1.5;color:rgba(255,255,255,.66)}
.bm li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);font-size:14px;color:#fff;transition:opacity .45s var(--out-cubic),transform .5s var(--spring);transition-delay:calc(.45s + var(--j) * 70ms)}
.bm .tg-mk{font-size:12px;font-weight:700;color:#DCEEF6;background:rgba(147,193,216,.18);border:1px solid rgba(147,193,216,.32);border-radius:999px;padding:3px 9px;white-space:nowrap}
.js-motion .bento:not(.go) .bm li{opacity:0;transform:translateX(-14px) scale(.96)}
.bt-count{display:flex;flex-direction:column;justify-content:center;gap:18px}
.bc{display:flex;align-items:baseline;gap:12px}
.bc b{font-size:clamp(54px,6vw,76px);font-weight:600;line-height:.9;letter-spacing:-.04em;color:#fff;font-variant-numeric:tabular-nums;min-width:1.2em}
.bc span{font-size:14px;line-height:1.35;color:rgba(255,255,255,.7)}
.bc span em{display:block;font-style:normal;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--powder)}
.bt-shield .sh{position:relative;width:76px;height:76px;margin-bottom:16px}
.sh svg{position:absolute;inset:0;width:100%;height:100%}
.sh .shp{fill:rgba(147,193,216,.12);stroke:var(--powder);stroke-width:2.5}
.sh .chk{fill:none;stroke:var(--powder);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40;stroke-dashoffset:40}
.sh .ringp{position:absolute;inset:6px;border-radius:999px;border:2px solid rgba(147,193,216,.45);opacity:0}
.bento.go .sh .chk{transition:stroke-dashoffset .6s var(--out-cubic) .9s;stroke-dashoffset:0}
.bento.go .sh .ringp{animation:shRing 2.4s ease-out 1.3s infinite}
.bento.go .sh .ringp + .ringp{animation-delay:2.1s}
@keyframes shRing{0%{opacity:.8;transform:scale(.7)}100%{opacity:0;transform:scale(1.6)}}
.days{display:flex;align-items:flex-end;gap:5px;height:76px;margin-bottom:16px}
.days i{flex:1;border-radius:5px 5px 2px 2px;background:rgba(255,255,255,.1);height:calc(18% + var(--d) * 7.5%);transform-origin:bottom;transition:transform .5s var(--spring),background .3s;transition-delay:calc(.7s + var(--d) * 80ms)}
.days i.rep{background:var(--powder)}
.js-motion .bento:not(.go) .days i{transform:scaleY(0)}
.avs{display:flex;align-items:center;height:76px;margin-bottom:16px}
.avs span{width:52px;height:52px;border-radius:999px;display:grid;place-items:center;border:3px solid var(--ink-2);margin-left:-12px;transition:opacity .45s,transform .55s var(--spring);transition-delay:calc(.8s + var(--j) * 120ms)}
.avs span:first-child{margin-left:0}
.avs span svg{width:24px;height:24px;stroke:var(--ink);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.avs .a1{background:var(--powder)}.avs .a2{background:#BFE3D5}.avs .a3{background:#E9D9B5}
.avs em{margin-left:10px;font-style:normal;font-size:12px;font-weight:700;color:var(--ink);background:#fff;border-radius:999px;padding:5px 10px;transition:opacity .4s,transform .5s var(--spring);transition-delay:1.25s;white-space:nowrap}
.js-motion .bento:not(.go) .avs span{opacity:0;transform:translateX(26px)}
.js-motion .bento:not(.go) .avs em{opacity:0;transform:scale(.6)}
.bt{transition:opacity .5s var(--out-cubic),transform .8s var(--spring);transition-delay:calc(var(--i) * 120ms)}
.js-motion .bento:not(.go) .bt{opacity:0;transform:translate(var(--fx,0),var(--fy,40px)) rotate(var(--fr,0deg)) scale(.94)}
@media (max-width:900px){.bento{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.bento{grid-template-columns:1fr}}

/* ============================================================ SCREENING COMPARISON (#compare) */
.cmp-sec{background:var(--white)}
.cmp-head{max-width:760px}
.cmp-head h2{margin-top:10px}
.cmp{position:relative;margin-top:36px;border:1px solid var(--stone);border-radius:22px;background:#FCFDFD;overflow:hidden}
.cmp-row{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,1fr);align-items:center;border-top:1px solid var(--stone-2)}
.cmp-row > *{padding:14px 20px;min-width:0}
.cmp-th{border-top:0;background:var(--stone-2)}
.cmp-th > *{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--sage);padding-block:14px}
.cmp-th .us{color:var(--deep)}
.cmp-hl{position:absolute;z-index:0;top:0;bottom:0;right:0;width:calc(100% / 3.25);background:linear-gradient(180deg,rgba(45,90,80,.10),rgba(45,90,80,.05));
  border-left:2px solid rgba(45,90,80,.55);border-right:2px solid rgba(45,90,80,.55);box-shadow:inset 0 0 40px rgba(45,90,80,.08);transform-origin:top;transition:transform 1s var(--out-expo)}
.js-motion .cmp:not(.go) .cmp-hl{transform:scaleY(0)}
.cl{font-size:15px;font-weight:600;color:var(--ink)}
.co,.cu{display:flex;align-items:center;gap:10px;font-size:13.5px;line-height:1.4}
.co{color:var(--teal)}
.cu{color:var(--ink);font-weight:600}
.co svg,.cu svg{width:22px;height:22px;flex:none}
.co .x path{stroke:#A5AEA7;stroke-width:2.4;stroke-linecap:round;stroke-dasharray:14;stroke-dashoffset:14}
.co .ck circle{fill:var(--stone-2);stroke:#C9D0CB}
.co .ck path,.co .md path{stroke:var(--sage);stroke-width:2.2;fill:none;stroke-linecap:round;stroke-dasharray:16;stroke-dashoffset:16}
.co .md circle{fill:var(--stone-2);stroke:#C9D0CB}
.cu circle{fill:var(--deep);transform-box:fill-box;transform-origin:center;transform:scale(0)}
.cu path{stroke:#fff;stroke-width:2.6;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16;stroke-dashoffset:16}
.cmp-row .cl{transition:opacity .45s var(--out-cubic),transform .45s var(--out-cubic)}
.cmp-row.on .cl{opacity:1;transform:none}
.js-motion .cmp-row:not(.cmp-th):not(.on) .cl{opacity:0;transform:translateX(-18px)}
.js-motion .cmp-row:not(.cmp-th):not(.on) .co span,.js-motion .cmp-row:not(.cmp-th):not(.on) .cu span{opacity:0}
.cmp-row .co span,.cmp-row .cu span{transition:opacity .4s ease .15s}
.cmp-row.on .co path{stroke-dashoffset:0;transition:stroke-dashoffset .35s var(--out-cubic) .1s}
.cmp-row.on .co .x path + path{transition-delay:.25s}
.cmp-row.on .cu circle{transform:none;transition:transform .45s var(--spring) .2s}
.cmp-row.on .cu path{stroke-dashoffset:0;transition:stroke-dashoffset .35s var(--out-cubic) .45s}
.cmp-cta{margin-top:26px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;transition:opacity .5s,transform .6s var(--spring)}
.js-motion .cmp:not(.done) + .cmp-cta{opacity:0;transform:scale(.85)}
.cmp-cta .btn{background:var(--ink);color:#fff}
.cmp-cta .btn:hover{background:#000}
.cmp-cta span{font-size:13.5px;color:var(--teal)}
.cmp-note{margin-top:18px;font-size:12px;line-height:1.6;color:var(--sage);max-width:90ch}
@media (max-width:720px){
  .cmp-row{grid-template-columns:1fr 1fr;grid-template-areas:"l ." "o u"}
  .cmp-row .cl{grid-area:l;padding-bottom:0}
  .cmp-row .co{grid-area:o}
  .cmp-row .cu{grid-area:u}
  .cmp-th{grid-template-areas:"o u"}
  .cmp-th > :first-child{display:none}
  .cmp-hl{width:50%}
}

/* ============================================================ RISK-CHECK DEMO (#riskdemo) */
.rd-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:48px;align-items:center}
.rd-copy h2{margin-top:10px}
.rd-copy .btn{margin-top:26px}
.rd-copy .rd-small{margin-top:12px;font-size:13px;color:rgba(255,255,255,.6)}
.rd-win{position:relative;border-radius:18px;background:#0B0F14;border:1px solid rgba(255,255,255,.1);box-shadow:0 50px 90px -40px rgba(0,0,0,.8);overflow:hidden}
.rd-bar{display:flex;align-items:center;gap:7px;padding:11px 14px;background:#151B22;border-bottom:1px solid rgba(255,255,255,.06)}
.rd-bar i{width:10px;height:10px;border-radius:999px;background:rgba(255,255,255,.16)}
.rd-bar span{margin-left:8px;font-size:12px;color:rgba(255,255,255,.55)}
.rd-cam{position:relative;aspect-ratio:16/10.5;transition:transform .7s var(--inout-cubic);transform-origin:50% 50%}
.rd-scene{position:absolute;inset:0;padding:26px 28px;transition:opacity .5s ease,transform .6s var(--inout-cubic)}
.rd-scene:not(.on){opacity:0;transform:translateX(40px);pointer-events:none}
.rd-scene.off{opacity:0;transform:translateX(-40px)}
.rd-prog{height:3px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.rd-prog i{display:block;height:100%;background:var(--powder);transition:width .6s var(--out-cubic)}
.rd-sec{margin-top:18px;font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--powder)}
.rd-q{margin-top:8px;font-family:var(--font-display);font-size:24px;font-weight:500;line-height:1.2;color:#fff}
.rd-opts{margin-top:18px;display:grid;gap:9px}
.rd-opt{display:flex;align-items:center;gap:11px;padding:11px 13px;border-radius:11px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);font-size:14px;color:#fff;transition:background .25s,border-color .25s,transform .2s}
.rd-opt kbd{width:22px;height:22px;border-radius:6px;border:1px solid rgba(255,255,255,.28);display:grid;place-items:center;font:600 11px var(--font-body);color:rgba(255,255,255,.7)}
.rd-opt.hit{border-color:var(--powder);background:rgba(147,193,216,.16)}
.rd-opt.hit kbd{background:var(--powder);color:var(--on-powder);border-color:var(--powder)}
.rd-opt.press{transform:scale(.98)}
.rd-res{background:var(--mint);color:var(--ink)}
.rd-res h4{font-family:var(--font-display);font-weight:500;font-size:21px;line-height:1.2}
.rd-rows{margin-top:12px;display:grid;gap:6px}
.rd-rows li{display:flex;justify-content:space-between;align-items:center;font-size:13px;padding:8px 11px;border-radius:9px;background:#fff;border:1px solid var(--stone);transition:opacity .4s,transform .5s var(--spring);transition-delay:calc(.25s + var(--j) * 110ms)}
.rd-rows li em{font-style:normal;font-size:10.5px;font-weight:700;color:#7A5A16;background:rgba(201,150,46,.16);border-radius:999px;padding:3px 8px}
.rd-res:not(.on) .rd-rows li{opacity:0;transform:translateY(8px)}
.rd-sug{margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:12px;background:#fff;border:1px solid var(--deep);box-shadow:0 0 0 4px rgba(45,90,80,.12);transition:opacity .4s,transform .6s var(--spring);transition-delay:.8s}
.rd-res:not(.on) .rd-sug{opacity:0;transform:scale(.9)}
.rd-sug b{display:block;font-size:13.5px}
.rd-sug span{font-size:12px;color:var(--teal)}
.rd-go{font-size:12.5px;font-weight:700;color:#fff;background:var(--ink);border-radius:999px;padding:8px 13px;white-space:nowrap;transition:transform .25s var(--spring),box-shadow .25s}
.rd-go.hov{transform:translateY(-2px);box-shadow:0 10px 20px -10px rgba(17,21,28,.6)}
.rd-cursor{position:absolute;left:0;top:0;width:22px;height:22px;z-index:5;pointer-events:none;transition:left .9s var(--inout-cubic),top .9s cubic-bezier(.45,.05,.3,1),transform .15s}
.rd-cursor svg{width:22px;height:22px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.5))}
.rd-cursor.down{transform:scale(.82)}
.rd-ripple{position:absolute;z-index:4;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:999px;border:2px solid var(--powder);opacity:0;pointer-events:none}
.rd-ripple.go{animation:ripple .6s var(--out-cubic)}
@keyframes ripple{0%{opacity:.9;transform:scale(.4)}100%{opacity:0;transform:scale(3.2)}}
.rd-tag{position:absolute;right:12px;top:9px;font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.55);background:rgba(255,255,255,.07);border-radius:999px;padding:3px 9px}
@media (max-width:900px){.rd-grid{grid-template-columns:1fr;gap:30px}}
@media (max-width:520px){.rd-scene{padding:18px 16px}.rd-q{font-size:19px}.rd-opt{padding:9px 11px;font-size:13px}.rd-cam{aspect-ratio:4/4.4}}

/* ============================================================ ROLLING PRICES (#pricing) */
.plan-mode{position:relative;isolation:isolate}
.plan-mode button{position:relative;z-index:1;background:transparent!important;transition:color .3s}
.plan-mode button[aria-pressed="true"]{color:#fff}
.pm-pill{position:absolute;z-index:0;top:5px;bottom:5px;left:5px;width:0;border-radius:999px;background:var(--ink);transition:left .45s var(--spring),width .45s var(--spring)}
.pm-wrap{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:6px auto 22px}
.pm-wrap .plan-mode{margin:0}
.pm-save{font-size:12px;font-weight:700;color:var(--deep);background:var(--pale);border:1px solid rgba(45,90,80,.25);border-radius:999px;padding:6px 12px;transition:opacity .3s,transform .5s var(--spring)}
#pricing:not([data-mode="member"]) .pm-save{opacity:0;transform:scale(.6)}
.odo{display:inline-flex;align-items:flex-start;font-variant-numeric:tabular-nums;line-height:1}
.odo-c{display:inline-block}
.odo-d{display:inline-block;height:1em;overflow:hidden;position:relative}
.odo-s{display:flex;flex-direction:column;transition:transform .9s var(--out-expo)}
.odo-s span{display:block;height:1em;line-height:1}
.odo-d.ones .odo-s{transition-duration:1.2s}
.per{position:relative;display:inline-grid}
.per > span{grid-area:1/1;transition:opacity .25s ease}
#pricing[data-mode="member"] .per-a,#pricing:not([data-mode="member"]) .per-b{opacity:0}
.plan-sub.swap{transition:opacity .18s ease;opacity:0}
.plan-sub{transition:opacity .25s ease}

/* ============================================================ STAGE AT DIAGNOSIS CARDS (#science) */
.ss{position:relative;margin:48px auto 0;width:min(100%,560px);height:330px}
.ss-card{position:absolute;left:0;right:0;top:46px;margin:auto;background:#fff;border:1px solid var(--stone);border-radius:22px;padding:26px 28px;text-align:left;box-shadow:0 24px 50px -30px rgba(17,21,28,.4);
  transition:transform .75s var(--inout-cubic),opacity .6s ease,filter .6s ease}
.ss-card[data-pos="0"]{z-index:3;transform:none}
.ss-card[data-pos="1"]{z-index:2;transform:translateY(-26px) scale(.94);filter:brightness(.96)}
.ss-card[data-pos="2"]{z-index:1;transform:translateY(-52px) scale(.88);filter:brightness(.92)}
.ss-card.out{z-index:4;transform:translateX(-120%) rotate(-10deg);opacity:0;transition:transform .6s var(--inout-cubic),opacity .22s ease .34s}
.ss-card.back{transition:none;opacity:0}
.ss-k{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--deep)}
.ss-q{margin-top:10px;font-family:var(--font-display);font-size:23px;font-weight:500;line-height:1.25;letter-spacing:-.01em;color:var(--ink)}
.ss-bars{margin-top:16px;display:grid;gap:10px}
.ss-bars > div{display:grid;grid-template-columns:150px 1fr 48px;align-items:center;gap:10px;font-size:13px;color:var(--teal)}
.ss-bars u{display:block;height:10px;border-radius:999px;background:var(--stone-2);overflow:hidden;text-decoration:none}
.ss-bars u i{display:block;height:100%;width:0;border-radius:999px;background:var(--deep);transition:width 1s var(--out-expo) .25s}
.ss-bars > div + div u i{background:#A5AEA7}
.ss-card[data-pos="0"] .ss-bars u i{width:var(--v)}
.ss-bars b{font-size:14px;color:var(--ink);text-align:right;font-variant-numeric:tabular-nums}
.ss-src{margin-top:14px;font-size:12px;color:var(--sage)}
.ss-dots{display:flex;gap:6px;justify-content:center;margin-top:16px}
.ss-dots i{width:7px;height:7px;border-radius:999px;background:var(--stone);transition:background .3s,transform .3s}
.ss-dots i.on{background:var(--deep);transform:scale(1.25)}
@media (max-width:520px){
  .ss{height:380px}
  .ss-card{padding:20px 18px}
  .ss-q{font-size:19px}
  .ss-bars > div{grid-template-columns:1fr 44px;grid-template-areas:"l v" "b b";row-gap:4px}
  .ss-bars > div > span{grid-area:l}
  .ss-bars u{grid-area:b}
  .ss-bars b{grid-area:v}
}

/* ============================================================ reduced motion: final state, no movement */
@media (prefers-reduced-motion:reduce){
  .wb *,.hw-panel *,.hw-phone *,.bento *,.bento::after,.cmp *,.cmp-cta,.rd-win *,.ss *,.odo *,.pm-pill{animation:none!important;transition:none!important}
}

/* ---------- fixes after first visual pass ---------- */
#what,#riskdemo,#how,#why,#compare,#science{overflow-x:clip}
/* panel: content centred vertically when the phone column is taller */
.hw-panel{display:flex;flex-direction:column;justify-content:center}
/* bento marker list: a plain 2-column list, no inherited chip layout */
.bm li .nm{min-width:0}
/* survival cards: give the label room */
.ss-bars > div{grid-template-columns:170px 1fr 52px}
@media (max-width:520px){
  .bc b{font-size:52px}
}

/* ============================================================ MOBILE POLISH (2026-10-19)
   The phone layout gets the same design as desktop, re-set for a 360 to 430px screen:
   whole dashboard card visible, full-width section CTAs, headings that use the full width,
   a phone mock that fades out under its notifications, and a clean loop in the risk demo. */
.rd-cam{transition:transform .7s var(--inout-cubic),opacity .35s ease}
.rd-snap .rd-scene,.rd-snap .rd-scene *{transition:none!important}
@media (max-width:640px){
  /* how it works: phone fades out below the last notification instead of showing empty wallpaper */
  .hw-phone{height:505px;padding:22px 16px 0;justify-content:flex-start;overflow:hidden}
  .ls{flex:none;-webkit-mask-image:linear-gradient(180deg,#000 70%,transparent 78%);mask-image:linear-gradient(180deg,#000 70%,transparent 78%)}
  .ls-date{margin-top:40px}
  .ls-time{font-size:56px}
  .nt-stack{top:128px}
  .ls-tag{position:absolute;left:0;right:0;bottom:14px;margin:0;text-align:center}
}
@media (max-width:520px){
  /* hero: the whole panel card shows, flush with the bottom edge like desktop */
  /* section heads: icon sits above the eyebrow so the heading gets the full width */
  .panel-head{flex-direction:column;gap:14px}
  .panel-check{width:30px;height:30px;margin-top:0}
  /* one CTA style on phones: full width, thumb height */
  .gap-cta .btn,.hw-head .btn,.cmp-cta .btn,.rd-copy .btn,.press-actions .btn,.faq-closer .btn{width:100%;justify-content:center}
  .hw-head{gap:18px}
  .cmp-cta{flex-direction:column;align-items:stretch;text-align:center;gap:10px}
  .press-actions{flex-direction:column;align-items:center;gap:16px}
  .faq-closer .btn{align-self:stretch}
  /* small caps labels: never below 11px */
  .cert .k,.hw-card .k{font-size:12px}
  /* risk demo: results fit the frame */
  .rd-res h4{font-size:18px}
  .rd-rows li{padding:7px 10px;font-size:12.5px}
  .rd-sug{padding:10px 12px}
}
@media (max-width:520px){
  /* long notes read left-aligned on a phone */
  #science .src-note,#science .sci-lede{text-align:left}
}
@media (max-width:520px){
  /* cert strip: label above value so nothing wraps mid-phrase on small phones */
  .cert{align-items:flex-start}
  .cert svg{margin-top:2px}
  .cert > span{display:flex;flex-direction:column;gap:2px}
  .cert .k{font-size:12px}
}

/* ============================================================ BODY SCAN (#what): figure photo, scan line, area points, female/male switch */
.bt-scan{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:34px;align-items:center;padding:22px}
.scan-fig{position:relative;aspect-ratio:1000/1339;border-radius:18px;overflow:hidden;background:#8C7A68;max-height:720px;width:100%;margin:0 auto}
.scan-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .6s ease}
.scan-fig[data-sex="female"] .scan-m,.scan-fig[data-sex="male"] .scan-f{opacity:0}
.scan-line{position:absolute;left:0;right:0;top:0;height:2px;z-index:2;opacity:0;
  background:linear-gradient(90deg,transparent,rgba(214,236,246,.95) 20%,#fff 50%,rgba(214,236,246,.95) 80%,transparent);
  box-shadow:0 0 18px 4px rgba(147,193,216,.55)}
.scan-line::after{content:"";position:absolute;left:0;right:0;bottom:2px;height:90px;background:linear-gradient(0deg,rgba(147,193,216,.22),transparent)}
.bt-scan.scanning .scan-line{animation:scanSweep 2.6s cubic-bezier(.45,0,.25,1) both}
@keyframes scanSweep{0%{top:0;opacity:0}6%{opacity:1}92%{opacity:1}100%{top:100%;opacity:0}}
.scan-pts{position:absolute;inset:0;margin:0;padding:0;list-style:none;z-index:3}
.scan-pts li{position:absolute;left:var(--xf);top:var(--yf);width:0;height:0;opacity:0;transition:opacity .45s ease}
.scan-fig[data-sex="male"] .scan-pts li{left:var(--xm);top:var(--ym)}
.scan-fig[data-sex="female"] .scan-pts li[data-sex="male"],.scan-fig[data-sex="male"] .scan-pts li[data-sex="female"]{display:none}
.bt-scan.scanned .scan-pts li{opacity:1}
.scan-pts i{position:absolute;left:-6px;top:-6px;width:12px;height:12px;border-radius:999px;background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.28),0 2px 8px rgba(17,21,28,.35);transition:transform .35s var(--spring),box-shadow .35s}
.scan-pts li.on i{transform:scale(1.25);box-shadow:0 0 0 7px rgba(147,193,216,.5),0 0 22px 6px rgba(147,193,216,.55)}
.scan-pts span{position:absolute;left:16px;top:-14px;white-space:nowrap;font-size:12px;font-weight:600;color:var(--ink);background:rgba(255,255,255,.95);border-radius:999px;padding:5px 10px;
  box-shadow:0 10px 24px -12px rgba(17,21,28,.6);opacity:0;transform:translateX(-4px);transition:opacity .3s,transform .4s var(--out-cubic);pointer-events:none}
.scan-pts span b{font-weight:700;color:var(--deep);margin-left:6px}
.scan-pts li.on span{opacity:1;transform:none}
.scan-pts li.left span{left:auto;right:16px;transform:translateX(4px)}
.scan-pts li.left.on span{transform:none}
.scan-switch{display:inline-flex;padding:4px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);margin-bottom:18px}
.scan-switch button{appearance:none;border:0;background:transparent;font:inherit;font-size:13.5px;font-weight:600;color:rgba(255,255,255,.75);padding:8px 18px;border-radius:999px;cursor:pointer;transition:background .25s,color .25s}
.scan-switch button[aria-pressed="true"]{background:#fff;color:var(--ink)}
.scan-switch button:focus-visible{outline:2px solid var(--powder);outline-offset:2px}
.scan-side h3{font-size:22px}
.scan-side > p{margin-top:8px;color:rgba(255,255,255,.72);font-size:14.5px;line-height:1.55}
.scan-list{margin-top:18px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.scan-list li{cursor:default;transition:background .25s,border-color .25s,opacity .3s}
.scan-list li:focus-visible{outline:2px solid var(--powder);outline-offset:2px}
.scan-list li.on{background:rgba(147,193,216,.16);border-color:rgba(147,193,216,.6)}
.scan-list li em{display:none;font-style:normal;font-size:12px;color:rgba(255,255,255,.55);width:100%;margin-top:2px}
.scan-list li{flex-wrap:wrap}
.scan-list li .nm,.scan-list li .tg{transition:opacity .3s}
.bt-scan[data-sex="female"] .scan-list li[data-sex="male"] :is(.nm,.tg),.bt-scan[data-sex="male"] .scan-list li[data-sex="female"] :is(.nm,.tg){opacity:.45}
.bt-scan[data-sex="female"] .scan-list li[data-sex="male"] em,.bt-scan[data-sex="male"] .scan-list li[data-sex="female"] em{display:block}
@media (max-width:900px){.bt-scan{grid-template-columns:1fr;gap:22px}.scan-fig{max-width:460px}}
.scan-cap{display:none}
@media (max-width:600px){
  .bt-scan{padding:16px}.scan-list{grid-template-columns:1fr}
  .scan-pts span{display:none}
  .scan-cap{display:flex;position:absolute;left:50%;bottom:14px;z-index:4;transform:translateX(-50%);align-items:center;gap:8px;margin:0;white-space:nowrap;
    font-size:13px;font-weight:600;color:var(--ink);background:rgba(255,255,255,.95);border-radius:999px;padding:7px 14px;box-shadow:0 10px 24px -12px rgba(17,21,28,.6);opacity:0;transition:opacity .3s}
  .bt-scan.scanned .scan-cap{opacity:1}
  .scan-cap span{color:var(--ink);font-size:13px;margin:0}
  .scan-cap b{font-weight:700;color:var(--deep)}
}
@media (prefers-reduced-motion:reduce){.bt-scan .scan-pts li{opacity:1}.scan-line{display:none}}

/* hero: light field fades into the offers section below, so there is no seam */
.hx::after{content:"";position:absolute;left:0;right:0;bottom:0;height:140px;z-index:0;pointer-events:none;background:linear-gradient(180deg,rgba(251,253,252,0),#FBFDFC)}
/* hero: third badge item hidden on phones */
@media (max-width:520px){.hx-badge .b3,.hx-badge .s3{display:none}.hx{padding-bottom:54px}}
@media (prefers-reduced-motion:reduce){.hx *,.hx::before{animation:none!important;transition:none!important}.rot::before{display:none}}

/* ============================================================ HOW IT WORKS: photo header (copy on the warm wall at left) */
.hw-photo{position:relative;display:block;border-radius:26px;overflow:hidden;aspect-ratio:21/9;background:#E9D9C4;margin-bottom:22px}
.hw-photo > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:60% 30%}
.hw-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(244,236,226,.88) 0%,rgba(244,236,226,.62) 30%,rgba(244,236,226,0) 52%);pointer-events:none}
.hw-photo-copy{position:absolute;left:44px;top:50%;transform:translateY(-50%);z-index:1;max-width:40%}
.hw-photo-copy h2{margin-top:10px;max-width:14ch}
.hw-photo-copy .btn{margin-top:22px}
@media (max-width:900px){
  .hw-photo{aspect-ratio:auto;display:flex;flex-direction:column;background:var(--white);border:1px solid var(--stone)}
  .hw-photo > img{position:relative;inset:auto;aspect-ratio:4/3;height:auto;object-position:62% 30%}
  .hw-photo::after{display:none}
  .hw-photo-copy{position:relative;left:auto;top:auto;transform:none;max-width:none;padding:22px 20px 24px}
}

/* ============================================================ HERO VIDEO BACKGROUND
   Pearly blood cells and protein molecules drifting on white. The still is the background
   until the loop is playing, and stays for reduced motion. */
.hx-media{position:absolute;inset:0;z-index:0;overflow:hidden;background:#FBFDFC url(img/hero-bg-light.jpg) center/cover no-repeat}
.hx-vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.2s ease}
.hx-vid.on{opacity:1}
@media (max-width:760px){
  .hx-media{background-image:url(img/hero-bg-light-960.jpg)}
}
/* soft scrim behind the copy so small text stays readable while cells drift past */
.hx .hx-in{position:relative;isolation:isolate}
.hx .hx-in::before{content:"";position:absolute;z-index:-1;inset:-10px max(-60px,-4vw) -18px;border-radius:80px;pointer-events:none;filter:blur(34px);background:rgba(251,253,252,.88)}
