/*
 * Home page styles. The first part is the hero, the console preview, the
 * figures band and the visit reel; the second part (after the marker) is the
 * refinement pass that used to load as its own file after them, so the order
 * of the cascade is unchanged.
 */
:root{ --cream:#eef0d0; --ground:#050505; }
body{ background:#050505; }

/* ---------- Hero ---------- */
.thero{ position:relative; overflow:hidden; padding:150px 24px 56px; text-align:center; isolation:isolate; }
.thero__video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.5; z-index:-2; }
.thero__fade{ position:absolute; inset:0; z-index:-1; background:linear-gradient(to bottom, rgba(0,0,0,.6) 0%, rgba(5,5,5,.75) 55%, #050505 100%); }
.badge{ display:inline-flex; align-items:center; gap:8px; font-family:var(--font); font-size:13px; font-weight:500; color:rgba(255,255,255,.85);
  border-radius:999px; padding:7px 14px 7px 10px; background:rgba(255,255,255,.08); box-shadow:inset 0 0 0 1px rgba(255,255,255,.14); }
.badge svg{ width:16px; height:16px; }
/* the headline cycles through the products' punch lines: every line sits in the same grid cell,
   the active one rises in word by word, then leaves upward; the tag above names the product.
   Only the first line is the <h1>; the others are siblings, so the page has one heading */
/* the headline font sits on the wrapper, not the lines, so its 18ch width is measured in headline
     characters: on the lines alone it was measured in body text and every word overflowed to the right */
.thero .lines{ display:grid; margin:26px auto 0; max-width:18ch; font-family:"Inter Tight",var(--font); font-weight:500; font-size:clamp(44px,6.2vw,80px); line-height:1.02; letter-spacing:-.03em; color:#fff; }
.thero .lines .line{ font:inherit; letter-spacing:inherit; color:inherit; margin:0; max-width:none; text-wrap:balance; grid-area:1/1; visibility:hidden; }
.thero .lines .line em{ font-family:var(--serif); font-style:italic; font-weight:400; letter-spacing:0; font-size:1.08em; }
.thero .lines .line.in{ visibility:visible; }
.thero .lines .line.out{ visibility:visible; animation:lineOut .5s cubic-bezier(.4,0,.2,1) forwards; }
.thero .lines .line .w{ display:inline-block; opacity:0; transform:translateY(.55em); }
.thero .lines .line.in .w{ animation:wordRise .6s cubic-bezier(.16,1,.3,1) forwards; animation-delay:calc(var(--i) * 70ms); }
.hero-tag{ display:flex; width:fit-content; margin-inline:auto; align-items:center; gap:.5em; margin-top:26px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12.5px; letter-spacing:.06em; text-transform:uppercase; color:rgba(238,240,208,.8); }
.hero-tag i{ width:7px; height:7px; border-radius:50%; background:var(--cream); box-shadow:0 0 0 4px rgba(238,240,208,.18); }
.hero-tag span{ transition:opacity .3s ease; }
.hero-tag.swap span{ opacity:0; }
.thero p#hero-sub{ transition:opacity .35s ease; min-height:4.8em; }
@media (max-width:640px){ .thero p#hero-sub{ min-height:7.2em; } }
.thero p#hero-sub.swap{ opacity:0; }
.hero-tag + .lines{ margin-top:14px; }
.thero .lines.still .line{ display:none; } .thero .lines.still .line:first-child{ display:block; visibility:visible; }
.thero .lines.still .line .w{ opacity:1; transform:none; }
@keyframes wordRise{ to{ opacity:1; transform:none } }
@keyframes lineOut{ to{ opacity:0; transform:translateY(-.5em) } }
.thero p{ font-family:var(--font); font-size:clamp(15px,1.2vw,18px); color:#9ca3af; max-width:52ch; margin:22px auto 0; line-height:1.55; }
.thero .cta{ display:inline-flex; margin-top:30px; background:#fff; color:#000; font-family:var(--cta); font-weight:600; font-size:16px; padding:15px 28px; border-radius:999px;
  transition:transform .2s ease, box-shadow .2s ease; box-shadow:0 10px 30px rgba(0,0,0,.35); }
.thero .cta:hover{ transform:scale(1.04); box-shadow:0 16px 40px rgba(255,255,255,.12); }
.thero .cta--ghost{ background:transparent; color:#fff; box-shadow:inset 0 0 0 1px rgba(255,255,255,.35); }
.thero .cta--ghost:hover{ box-shadow:inset 0 0 0 1px rgba(255,255,255,.6); }

/* entrance */
.up{ opacity:0; transform:translateY(18px); animation:up .8s cubic-bezier(.16,1,.3,1) forwards; }
.up.d1{ animation-delay:.1s } .up.d2{ animation-delay:.25s } .up.d3{ animation-delay:.4s } .up.d4{ animation-delay:.6s }
@keyframes up{ to{ opacity:1; transform:none; } }

/* ---------- Product shot: light-mode doctor console ---------- */
/* the console preview keeps its 1180px layout and scales to the viewport (fitShot below);
   the scale lives on a wrapper so the panel's own entrance transforms are untouched */
.shot-fit{ position:relative; margin:64px auto 0; width:100%; }
.shot-scale{ position:absolute; left:50%; top:0; width:1180px; transform:translateX(-50%); transform-origin:top center; }
.shot-fit.natural{ height:auto !important; }
.shot-fit.natural .shot-scale{ position:static; width:auto; transform:none; }
@media (max-height:720px){ .thero{ padding-top:104px; } .thero .lines{ font-size:clamp(38px,5.4vw,64px); } .thero p{ margin-top:14px; } .thero .cta{ margin-top:22px; } .shot-fit{ margin-top:40px; } }
.shot{ position:relative; margin:0 auto; width:min(1180px,100%); border-radius:18px; background:#e6e8ec; color:#111827; text-align:left;
  box-shadow:0 -1px 0 rgba(255,255,255,.25), 0 40px 120px -30px rgba(0,0,0,.8); overflow:hidden; display:grid; grid-template-columns:1.05fr 1.05fr .66fr; gap:12px; padding:12px; font-family:"Inter",var(--font); }
/* two consoles, two roles: the front desk runs the queue, the doctor runs the room */
.win{ position:relative; background:#F9F9FA; border:1px solid #d9dce3; border-radius:12px; padding:14px 16px 18px; display:flex; flex-direction:column; gap:12px; height:720px; overflow:hidden; }
.winhead{ display:flex; align-items:center; gap:10px; min-height:32px; }
.winhead .wt{ font-size:12.5px; font-weight:500; color:#374151; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.winhead .right{ margin-left:auto; display:flex; align-items:center; gap:10px; }
/* each window is a real console page: the title bar names it */
.winbar{ display:flex; align-items:center; gap:5px; margin:-14px -16px 0; padding:7px 12px; background:#f1f2f5; border-bottom:1px solid #e5e7eb; font-size:10.5px; color:#6b7280; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
.winbar i{ width:8px; height:8px; border-radius:50%; background:#d1d5db; }
.winbar i:first-child{ background:#fca5a5; } .winbar i:nth-child(2){ background:#fcd34d; } .winbar i:nth-child(3){ background:#86efac; }
.winbar span{ margin-left:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.winbar span b{ font-weight:600; color:#374151; }
/* the patient's phone: the summary lands on WhatsApp after the desk sends it */
.win.pt{ background:#f4f5f7; }
/* the thread sizes to the row (absolute inside a flex:1 wrap) so a long message never grows the panel */
.chatwrap{ flex:1; position:relative; min-height:200px; }
.chat{ position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end; gap:8px; background:#e8ebe4; border-radius:12px; padding:12px 10px; overflow:hidden; }
.bub{ align-self:flex-start; max-width:96%; background:#fff; border-radius:10px 10px 10px 3px; padding:8px 10px 6px; font-size:11.5px; line-height:1.45; color:#111827; box-shadow:0 1px 1px rgba(0,0,0,.06); }
.bub b{ font-weight:600; }
.bub .meta{ display:block; text-align:right; font-size:9.5px; color:#6b7280; margin-top:4px; }
.bub .meta em{ font-style:normal; color:#3b82f6; margin-left:3px; }
.bub.in{ animation:bubIn .5s cubic-bezier(.16,1,.3,1) both; }
@keyframes bubIn{ from{ opacity:0; transform:translateY(10px) scale(.97) } }
.bub.out{ animation:bubOut .4s ease forwards; }
@keyframes bubOut{ to{ opacity:0; height:0; padding:0; margin:0 } }
.chat .day{ align-self:center; font-size:9.5px; color:#6b7280; background:#f4f5f7; padding:2px 8px; border-radius:999px; }
.chat .day.in{ animation:bubIn .4s ease both; }
.chat .day.out{ animation:bubOut .4s ease forwards; }
.bub.me{ align-self:flex-end; background:#dcf8c6; border-radius:10px 10px 3px 10px; }
.bub .kbd{ display:inline-block; font-weight:600; background:rgba(0,0,0,.06); border-radius:4px; padding:0 5px; }
.pt .cap{ font-size:10.5px; color:#6b7280; line-height:1.35; }
.search{ flex:1; max-width:340px; height:34px; border-radius:9px; background:#fff; border:1px solid #e5e7eb; display:flex; align-items:center; padding:0 12px; font-size:12.5px; color:#9ca3af; gap:8px; }
.bell{ width:32px; height:32px; border-radius:9px; background:#fff; border:1px solid #e5e7eb; position:relative; }
.bell::after{ content:""; position:absolute; top:7px; right:7px; width:6px; height:6px; border-radius:50%; background:#ef4444; }
.avs{ display:flex; }
.avs span{ width:28px; height:28px; border-radius:50%; border:2px solid #fff; margin-left:-8px; font-size:10px; font-weight:600; display:grid; place-items:center; color:#fff; }
.cards{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.scard{ background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:14px 16px 12px; }
.scard .k{ font-size:11.5px; color:#6b7280; font-weight:500; }
.scard .v{ font-size:24px; font-weight:600; letter-spacing:-.02em; margin-top:4px; display:flex; align-items:baseline; gap:8px; }
.scard .v small{ font-size:11.5px; font-weight:600; color:#16a34a; }
.scard .v small.dn{ color:#dc2626; }
.mini{ display:flex; align-items:flex-end; gap:3px; height:26px; margin-top:10px; }
.mini i{ flex:1; background:#e5e7eb; border-radius:2px 2px 0 0; }
.mini i.hi{ background:#111827; }
.live{ background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:14px 16px 12px; display:flex; flex-direction:column; gap:10px; flex:1; }
.live h4, .tbl h4{ font-size:13px; font-weight:600; margin:0 0 2px; }
.live .s, .tbl .s{ font-size:11.5px; color:#6b7280; }
.live .lhead{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.live .dot{ display:inline-block; width:7px; height:7px; border-radius:50%; background:#ef4444; margin-right:6px; vertical-align:middle; animation:blink 1.2s ease-in-out infinite; }
.live .dot.off{ background:#d1d5db; animation:none; }
.live .who{ font-size:11.5px; color:#374151; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.live .said{ font-family:var(--serif); font-size:15.5px; line-height:1.35; color:#111827; min-height:4.1em; margin:0; }
.live .said .w{ opacity:0; animation:wordIn .32s ease forwards; }
@keyframes wordIn{ to{ opacity:1 } }
.live .said .caret{ display:inline-block; width:2px; height:1em; background:#111827; vertical-align:-.15em; margin-left:2px; animation:blink 1s steps(2) infinite; }
/* a report the desk uploaded, with the value the doctor should look at first */
.live .rep{ display:flex; align-items:center; gap:9px; background:#fff; border:1px solid #e5e7eb; border-radius:9px; padding:7px 10px; min-height:46px; font-size:11px; opacity:0; }
.live .rep.in{ animation:fadeUp .5s cubic-bezier(.16,1,.3,1) forwards; }
.live .rep svg{ width:16px; height:16px; color:#6b7280; flex:none; }
.live .rep .rt{ min-width:0; flex:1; }
.live .rep .rt b{ display:block; font-weight:600; color:#111827; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.live .rep .rt span{ display:block; color:#6b7280; font-size:10.5px; }
.live .rep .rv{ display:flex; gap:5px; flex-wrap:wrap; justify-content:flex-end; }
.live .rep .rv span{ background:#f3f4f6; border-radius:5px; padding:2px 6px; font-weight:600; white-space:nowrap; font-variant-numeric:tabular-nums; }
.live .rep .rv span.hl{ background:#fff4e0; color:#9a5b00; box-shadow:0 0 0 2px #fcd34d; animation:hlPulse 1.1s ease-in-out 2; }
@keyframes hlPulse{ 50%{ box-shadow:0 0 0 4px rgba(252,211,77,.35); } }
.live .rep.none .rt b{ color:#6b7280; font-weight:500; }
.live .note{ background:#f9fafb; border:1px solid #e5e7eb; border-radius:9px; padding:9px 11px; font-size:11.5px; line-height:1.4; display:grid; gap:5px; align-content:start; height:200px; overflow:hidden; }
.live .note .f{ display:grid; grid-template-columns:62px 1fr; gap:8px; opacity:0; transform:translateY(4px); }
.live .note .f.in{ animation:fadeUp .45s cubic-bezier(.16,1,.3,1) forwards; }
.live .note .f b{ font-weight:600; color:#6b7280; font-size:10.5px; letter-spacing:.02em; text-transform:uppercase; padding-top:1px; }
.live .note .icd{ display:inline-block; margin-left:6px; font-size:10px; font-weight:600; padding:1px 7px; border-radius:999px; background:#eef2ff; color:#3730a3; vertical-align:1px; }
.live .foot{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:auto; }
.live .qc{ font-size:11px; color:#6b7280; display:flex; align-items:center; gap:6px; opacity:0; transition:opacity .3s ease; }
.live .qc.on{ opacity:1; }
.live .qc.ok{ color:#166534; }
.live .qc svg{ width:13px; height:13px; }
.live .sign{ font-size:11.5px; font-weight:600; padding:6px 12px; border-radius:8px; white-space:nowrap; background:#e5e7eb; color:#9ca3af; transition:background .3s ease, color .3s ease, transform .15s ease; }
.live .sign.ready{ background:#111827; color:#fff; }
.live .sign.press{ transform:scale(.94); }
.tbl{ background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:14px 16px; overflow:hidden; flex:1; }
.tbl table{ width:100%; border-collapse:collapse; font-size:12px; margin-top:10px; }
.tbl th{ text-align:left; font-weight:500; color:#6b7280; padding:6px 0; border-bottom:1px solid #e5e7eb; font-size:11px; }
.tbl td{ padding:8px 0; border-bottom:1px solid #f3f4f6; vertical-align:middle; }
.tbl td.pt{ font-weight:500; }
.tbl .lang{ font-size:11px; color:#6b7280; }
.tag2{ font-size:10.5px; font-weight:600; padding:3px 8px; border-radius:999px; background:#dcfce7; color:#166534; }
.tag2.new{ background:#eef2ff; color:#3730a3; }
.tag2.wait{ background:#f3f4f6; color:#374151; }
.own{ width:22px; height:22px; border-radius:50%; display:inline-grid; place-items:center; font-size:9.5px; font-weight:600; color:#fff; }


/* ---------- Console animation ---------- */
.shot.play{ animation:tilt 1.2s cubic-bezier(.16,1,.3,1) both; }
@keyframes tilt{ from{ transform:perspective(1400px) rotateX(9deg) translateY(30px); opacity:0 } to{ transform:none; opacity:1 } }
.mini i{ transform:scaleY(0); transform-origin:bottom; }
.play .mini i{ animation:grow .9s cubic-bezier(.16,1,.3,1) forwards; animation-delay:calc(.5s + var(--i,0) * 70ms); }
@keyframes grow{ to{ transform:scaleY(1) } }
.scard .v, .winhead, .live .lhead, .tbl h4, .tbl .s, .tbl thead{ opacity:0; }
.play .scard .v, .play .winhead, .play .live .lhead, .play .tbl h4, .play .tbl .s, .play .tbl thead{ animation:fadeUp .7s cubic-bezier(.16,1,.3,1) forwards; animation-delay:.35s; }
.tbl tbody tr{ opacity:0; transform:translateX(14px); }
.play .tbl tbody tr{ animation:rowIn .7s cubic-bezier(.16,1,.3,1) forwards; animation-delay:calc(.8s + var(--i,0) * 120ms); }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(8px) } to{ opacity:1; transform:none } }
@keyframes rowIn{ to{ opacity:1; transform:none } }
.bell::after{ animation:ping 2.4s ease-out infinite; }
@keyframes ping{ 0%,70%,100%{ box-shadow:0 0 0 0 rgba(239,68,68,.45) } 35%{ box-shadow:0 0 0 6px rgba(239,68,68,0) } }
.tag2{ display:inline-block; white-space:nowrap; transition:background .35s ease, color .35s ease; }
.tag2.flip{ animation:flip .5s cubic-bezier(.16,1,.3,1); }
@keyframes flip{ 0%{ transform:scale(.7); opacity:0 } 100%{ transform:none; opacity:1 } }
.tag2.live::before{ content:""; display:inline-block; width:6px; height:6px; border-radius:50%; background:#ef4444; margin-right:5px; vertical-align:middle; animation:blink 1.2s ease-in-out infinite; }
@keyframes blink{ 50%{ opacity:.25 } }
.play .mini i{ transition:height .5s cubic-bezier(.16,1,.3,1); }
/* live loop: rows leave, numbers bump, a toast confirms each signed note */
.tbl tbody tr.out{ animation:rowOut .55s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes rowOut{ to{ opacity:0; transform:translateX(-14px) } }
.tbl tbody tr.done td{ transition:color .4s ease; color:#9ca3af; }
.scard .v .num.bump{ animation:bump .5s cubic-bezier(.16,1,.3,1); }
@keyframes bump{ 30%{ transform:translateY(-3px) scale(1.06) } }
.scard .v .num{ display:inline-block; }
.bell.ring::after{ animation:ring .7s ease-out; }
@keyframes ring{ 0%{ box-shadow:0 0 0 0 rgba(239,68,68,.55) } 100%{ box-shadow:0 0 0 9px rgba(239,68,68,0) } }
.toast{ position:absolute; right:14px; bottom:14px; z-index:6; display:flex; align-items:center; gap:10px; padding:10px 14px 10px 10px; background:#111827; color:#fff; border-radius:12px;
  box-shadow:0 14px 34px -10px rgba(0,0,0,.55); font-size:12.5px; line-height:1.3; pointer-events:none; opacity:0; transform:translateY(12px) scale(.98);
  transition:opacity .35s cubic-bezier(.16,1,.3,1), transform .45s cubic-bezier(.16,1,.3,1); }
.toast.on{ opacity:1; transform:none; }
.toast .tick{ width:24px; height:24px; border-radius:50%; background:#16a34a; display:grid; place-items:center; flex:none; }
.toast .tick svg{ width:13px; height:13px; }
.toast b{ display:block; font-weight:600; }
.toast span{ color:#9ca3af; font-size:11.5px; }
@media (max-width:600px){ .toast{ right:10px; bottom:10px; left:10px; } }
@media (prefers-reduced-motion:reduce){
  .mini i, .scard .v, .winhead, .live .lhead, .tbl h4, .tbl .s, .tbl thead, .tbl tbody tr, .live .said .w, .live .note .f{ opacity:1; transform:none; animation:none !important; }
  .live .qc{ opacity:1; }
  .shot.play{ animation:none; }
}

@media (max-width:820px){
  .thero{ padding-top:120px; padding-bottom:40px; }
  .shot{ grid-template-columns:1fr; margin-top:44px; padding:10px; gap:10px; }
  .shot .win.desk, .shot .win.pt{ display:none; } /* one window on a phone: the consultation; the desk and the patient's phone show from 820px */
  .win{ height:auto; }
  .chatwrap{ min-height:190px; }
  .tbl table th:nth-child(3), .tbl table td:nth-child(3){ display:none; }
}
@media (max-width:600px){
  .win{ padding:12px 12px 14px; gap:10px; }
  .cards{ gap:8px; }
  .scard{ padding:10px 10px 8px; }
  .scard .k{ font-size:10px; line-height:1.25; }
  .scard .v{ font-size:18px; gap:5px; }
  .scard .v small{ font-size:10px; }
  .mini{ display:none; }
  .live{ min-height:0; }
  .live .said{ min-height:2.7em; font-size:14px; }
  .live .note{ height:auto; min-height:0; }
  .live .rep{ min-height:0; }
  .tbl td{ padding:7px 6px 7px 0; }
  .tbl td.pt{ white-space:nowrap; }
  .thero .cta{ padding:14px 24px; }
}
/* ---------- Below the band: the near-black page ---------- */
.page{ max-width:min(100%, clamp(1080px, 82vw, 1700px)); margin-inline:auto; padding:0 clamp(18px,3.2vw,56px); }
.band{ padding:clamp(64px,7vw,120px) 0; border-top:1px solid rgba(255,255,255,.08); }
.band:first-of-type{ border-top:0; }
.band:last-of-type{ padding-bottom:0; }
.page h2{ margin:0 0 .35em; font-size:clamp(30px,3.4vw,54px); line-height:1.08; letter-spacing:-.005em; color:#fff; max-width:22ch; text-wrap:balance; }
.page .lede{ margin:0; font-size:clamp(15px,1.15vw,19px); line-height:1.55; color:rgba(255,255,255,.66); max-width:58ch; }

.figures{ display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(18px,2.4vw,40px); }
.figure b{ display:block; font-weight:400; color:var(--cream); font-size:clamp(40px,4.6vw,76px); line-height:1; letter-spacing:-.01em; }
.figure span{ display:block; margin-top:.6em; font-size:clamp(13px,1vw,16px); color:rgba(255,255,255,.66); max-width:22ch; line-height:1.4; }
.measured{ margin:2.2em 0 0; font-size:13px; color:rgba(255,255,255,.5); max-width:70ch; line-height:1.5; }

/* ---------- The reel: one patient's visit, one product on stage at a time ---------- */
.reel-head{ max-width:62ch; }
.reel-eyebrow{ margin:0 0 1.1em; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:rgba(238,240,208,.7); }
.reel-head h2{ margin:0 0 .5em; }
.reel-links{ margin:1.2em 0 0; font-size:clamp(14px,1.05vw,16px); color:rgba(255,255,255,.55); line-height:1.6; }
.reel-links a{ color:var(--cream); text-decoration:underline; text-underline-offset:3px; }
.reel{ display:grid; grid-template-columns:190px minmax(0,1fr); gap:clamp(24px,4vw,64px); align-items:start; margin-top:clamp(36px,4vw,64px); }
/* the rail: eight products; the wire climbs and each node lights as its product takes the stage */
.rail{ list-style:none; margin:0; padding:6px 0 0; }
.rail li{ position:relative; display:flex; align-items:center; gap:12px; height:46px; padding-left:2px; color:rgba(255,255,255,.35); font-size:13.5px; transition:color .4s ease; }
.rail li i{ position:relative; z-index:1; width:10px; height:10px; border-radius:50%; border:1.5px solid rgba(238,240,208,.35); background:#050505; flex:none; transition:background .35s ease, border-color .35s ease; }
.rail li i::after{ content:""; position:absolute; inset:-8px; border-radius:50%; border:1px solid rgba(238,240,208,.6); opacity:0; }
.rail li + li::before{ content:""; position:absolute; left:6px; top:-23px; width:2px; height:46px; background:linear-gradient(to bottom, rgba(238,240,208,.9), rgba(238,240,208,.35)); transform:scaleY(0); transform-origin:top; transition:transform .55s cubic-bezier(.16,1,.3,1); }
.rail li.lit{ color:rgba(255,255,255,.8); }
.rail li.lit i{ background:var(--cream); border-color:var(--cream); }
.rail li.lit::before{ transform:scaleY(1); }
.rail li.lit:not(:has(~ li.lit)){ color:#fff; font-weight:500; }
.rail li.lit:not(:has(~ li.lit)) i::after{ animation:ring 1.1s ease-out both; }
.stage-wrap{ display:grid; min-height:430px; align-items:stretch; }
.step{ grid-area:1/1; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1); border-radius:18px; padding:clamp(18px,2.2vw,30px); min-width:0; }
.when{ display:flex; align-items:center; gap:12px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:13px; color:rgba(255,255,255,.75); }
.when .idx{ margin-left:auto; color:rgba(255,255,255,.4); }
.day-tag{ font-size:10.5px; padding:2px 8px; border-radius:999px; background:rgba(238,240,208,.12); color:var(--cream); letter-spacing:.04em; }
.step .who{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin-top:1em; }
.step .who b{ font-family:"Inter Tight",var(--font); font-weight:500; font-size:clamp(26px,2.6vw,38px); letter-spacing:-.02em; line-height:1.05; color:#fff; }
.step .who span{ font-size:14px; color:rgba(255,255,255,.5); }
.step p{ margin:.7em 0 0; font-size:clamp(15px,1.15vw,18px); line-height:1.5; color:rgba(255,255,255,.75); max-width:46ch; }
.step p.said{ font-family:var(--serif); font-size:clamp(20px,1.8vw,28px); line-height:1.3; color:#fff; margin-top:.7em; }
.step p.said .caret{ background:#fff; }
.chips{ display:flex; flex-wrap:wrap; gap:7px; margin-top:1.1em; }
.chips span{ font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:11.5px; padding:4px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.14); color:rgba(255,255,255,.78); }
.chips .hi{ background:var(--cream); border-color:var(--cream); color:#1a1a12; font-weight:600; }
.chips .ok{ border-color:rgba(74,222,128,.4); color:#86efac; }
.chips .warn{ border-color:rgba(251,191,36,.45); color:#fcd34d; }
/* the record on the right: rows light as products finish */
.record{ position:sticky; top:96px; background:var(--cream); color:#1a1a12; border-radius:1.2em; padding:1.2em 1.3em 1.1em; }
.rhead b{ display:block; font-family:var(--serif); font-weight:400; font-size:26px; line-height:1.1; }
.rhead span{ display:block; margin-top:.3em; font-size:12px; color:#5a5a3e; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
.rec{ list-style:none; margin:1.1em 0 0; padding:0; border-top:1px solid rgba(26,26,18,.15); }
.rec li{ display:grid; grid-template-columns:14px 1fr auto; gap:10px; align-items:center; padding:9px 0; border-bottom:1px solid rgba(26,26,18,.1); font-size:13.5px; opacity:.3; transition:opacity .5s ease; }
.rec li i{ width:9px; height:9px; border-radius:50%; border:1.5px solid #1a1a12; transition:background .4s ease; }
.rec li span{ font-weight:500; }
.rec li em{ font-style:normal; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:11px; color:#5a5a3e; white-space:nowrap; }
.rec li.lit{ opacity:1; }
.rec li.lit i{ background:#1a1a12; }
.rfoot{ margin-top:1em; font-size:12px; color:#5a5a3e; line-height:1.45; }
/* motion: shot.js reveals .beat in order (shot.css is not linked here, so the rules are scoped); data-clear on each step retires the one before */
#reel-stage.play .beat{ display:none; }
#reel-stage.play .beat.on{ display:block; animation:bubIn .8s cubic-bezier(.16,1,.3,1) both; }
/* hand-off: the old card leaves first (380 ms), the new one enters after it has gone; never both moving at once */
#reel-stage.pre .step.beat, #reel-stage.play .step.beat{ opacity:0; }
#reel-stage.pre .step.beat:first-of-type{ opacity:1; display:block; }
#reel-stage.pre .rail li:first-child{ color:#fff; } #reel-stage.pre .rail li:first-child i{ background:var(--cream); border-color:var(--cream); }
#reel-stage.pre .rec li:first-child{ opacity:1; } #reel-stage.pre .rec li:first-child i{ background:#1a1a12; }
#reel-stage.play .step.beat.on{ animation:stepIn 1s cubic-bezier(.22,1,.36,1) .75s both; }
#reel-stage.play .step.beat.on.off{ animation:stepOut .7s cubic-bezier(.4,0,.2,1) forwards; pointer-events:none; }
#reel-stage.play .step.beat.on.off .beat.on{ animation:none; }
#reel-stage.play .chips.beat.on{ display:flex; }
#reel-stage.play .chips span.beat.on{ display:inline-block; animation:chipIn .7s cubic-bezier(.16,1,.3,1) both; }
#reel-stage.play .listen.beat.on{ display:flex; }
.listen{ display:flex; align-items:center; gap:.55em; margin-top:1.1em; font-size:13px; color:rgba(255,255,255,.6); }
.listen i{ width:8px; height:8px; border-radius:50%; background:#f0653f; box-shadow:0 0 0 4px rgba(240,101,63,.22); animation:blink 1.3s ease-in-out infinite; }
@keyframes chipIn{ from{ opacity:0; transform:translateY(6px) scale(.96) } }
#reel-stage .w{ opacity:0; } #reel-stage.play .w.in{ animation:wordIn .55s ease forwards; } #reel-stage.still .w{ opacity:1; }
#reel-stage .caret{ display:inline-block; width:2px; height:1em; background:#fff; vertical-align:-.15em; margin-left:2px; animation:blink 1s steps(2) infinite; } #reel-stage.still .caret{ display:none; }
.still .step{ display:block; } .still .stage-wrap{ display:grid; gap:14px; } .still .step{ grid-area:auto; }
.still .rail li{ color:rgba(255,255,255,.8); } .still .rail li i{ background:var(--cream); border-color:var(--cream); } .still .rail li::before{ transform:none; }
.still .rec li{ opacity:1; } .still .rec li i{ background:#1a1a12; }
@keyframes stepIn{ from{ opacity:0; transform:translateY(14px) } to{ opacity:1; transform:none } }
@keyframes stepOut{ from{ opacity:1; transform:none } to{ opacity:0; transform:translateY(-10px) } }
.rail li{ transition:color .8s ease; } .rail li + li::before{ transition-duration:.9s; } .rec li{ transition:opacity .9s ease, transform .9s cubic-bezier(.16,1,.3,1); transform:translateX(-4px); } .rec li.lit{ transform:none; }
@keyframes ring{ 0%{ opacity:.9; transform:scale(.4) } 100%{ opacity:0; transform:scale(1.6) } }
@media (max-width:980px){
  .reel{ grid-template-columns:1fr; }
  .rail{ display:flex; gap:0; padding:0; overflow:hidden; }
  .rail li{ flex:1; height:auto; flex-direction:column; align-items:flex-start; gap:8px; padding:0 4px 0 0; }
  .rail li span{ font-size:11px; line-height:1.2; }
  .rail li + li::before{ top:4px; left:calc(-100% + 12px); width:100%; height:2px; transform:scaleX(0); transform-origin:left; background:linear-gradient(to right, rgba(238,240,208,.9), rgba(238,240,208,.35)); }
  .rail li.lit::before{ transform:scaleX(1); }
  .record{ position:static; }
}
@media (max-width:640px){ .rail li span{ display:none; } .stage-wrap{ min-height:0; } }
@media (prefers-reduced-motion:reduce){ #reel-stage.play .beat, #reel-stage.play .step.beat{ display:block; animation:none; opacity:1; } #reel-stage.play .chips.beat{ display:flex; } #reel-stage .w{ opacity:1; } #reel-stage .caret{ display:none; } .play .stage-wrap{ gap:14px; } .play .step{ grid-area:auto; } .rail li i::after{ animation:none; } .rec li{ opacity:1; } .rec li i{ background:#1a1a12; } }

.stage{ position:relative; display:flex; flex-direction:column; border-radius:1.4em; overflow:hidden; min-height:420px; padding:clamp(20px,2.2vw,36px);
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(255,214,150,.30), transparent 60%),
    linear-gradient(168deg,#0f2432 0%,#1a4454 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.1); color:#fff; }

/* how it works: the stage plays once it scrolls into view */

.close{ background:var(--cream); color:#1a1a12; border-radius:1.4em; padding:clamp(40px,5vw,80px) clamp(24px,4vw,64px); display:grid; grid-template-columns:1.3fr 1fr; gap:32px; align-items:end; }
.close h2{ margin:0; font-size:clamp(32px,3.8vw,60px); line-height:1.05; letter-spacing:-.005em; color:#1a1a12; max-width:18ch; text-wrap:balance; }
.close p{ margin:.6em 0 0; font-size:clamp(15px,1.15vw,19px); color:#4a4a36; max-width:44ch; line-height:1.5; }
.close .actions{ display:flex; gap:12px; flex-wrap:wrap; justify-content:flex-end; font-size:clamp(14px,1vw,17px); }
.close .btn--dark{ font-size:1em; padding:.9em 1.35em; box-shadow:none; }
.close .btn--ghost{ background:transparent; color:#1a1a12; box-shadow:inset 0 0 0 1px rgba(26,26,18,.35); font-size:1em; padding:.9em 1.35em; }
.close .btn--ghost:hover{ background:rgba(26,26,18,.06); }



@media (max-width:820px){ .figures{ grid-template-columns:1fr 1fr; } .close{ grid-template-columns:1fr; } .close .actions{ justify-content:flex-start; } .stage{ min-height:380px; } }


/* ---------- Refinements (formerly home-refinements.css) ---------- */
.thero { padding-bottom: 64px; }
.thero .lines .line { letter-spacing: -.035em; }
.thero .lines .line em { color: #eef0d0; }
.thero > p { max-width: 57ch; line-height: 1.7; color: #abb0b9; }
.badge { background: rgba(255,255,255,.055); font-size: 12px; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 30px; }
.thero .hero-actions .cta { margin-top: 0; padding: 14px 26px; font-size: 15px; }
.thero .cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,255,255,.08); }
.hero-secondary { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #d4d6dc; }
.hero-secondary span { transition: transform .2s ease; }
.hero-secondary:hover { color: #fff; }
.hero-secondary:hover span { transform: translateY(3px); }
.shot-fit { margin-top: 52px; }
.shot { box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 28px 90px -24px rgba(0,0,0,.8); }
.page .band { padding-top: clamp(56px,6vw,96px); padding-bottom: clamp(56px,6vw,96px); }
.page .band:last-of-type { padding-bottom: 0; }
.figure + .figure { border-left: 1px solid rgba(255,255,255,.1); padding-left: clamp(18px,2.4vw,40px); }
.figure b { font-size: clamp(40px,4.2vw,66px); }
.figure span { line-height: 1.6; }
.page h2 { letter-spacing: -.02em; line-height: 1.12; }
.page .lede { line-height: 1.75; }
.list li { padding: 1.3em 0; }
.stage { border-radius: 18px; background: radial-gradient(70% 60% at 85% 0%,rgba(174,189,193,.13),transparent 70%),linear-gradient(160deg,#13212a,#183340); }
.stage__note { border-radius: 12px; }
.pq { display: flex; flex-direction: column; padding: 25px 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.025); }
.pq p { line-height: 1.45; }
.pq footer { margin-top: auto; padding-top: 26px; font-size: 13px; }
.close { border-radius: 18px; }
@media (max-width: 820px) {
  .figure:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-actions { gap: 20px; }
}
@media (max-width: 600px) {
  .thero { padding-inline: 18px; }
  .badge { max-width: 100%; text-align: left; font-size: 10px; line-height: 1.5; }
  .badge svg { flex-shrink: 0; }
  /* three actions no longer fit on one phone line: stack them so no label breaks mid-word */
  .hero-actions { gap: 12px; flex-direction: column; }
  .hero-actions .cta { width: 100%; max-width: 320px; justify-content: center; }
  .hero-secondary { font-size: 13px; }
  .thero .hero-actions .cta { font-size: 14px; padding: 14px 20px; }
  .figure span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-secondary span, .thero .cta { transition: none; }
}

/* ---------- The reel, playing itself on a desk (assets/home.js autoReel) ---------- */
#reel-stage.scrolly .record{ position:static; }
#reel-stage.scrolly .step{ opacity:0; transform:translateY(34px) scale(.985); transition:opacity .55s ease, transform .9s cubic-bezier(.22,1,.36,1); pointer-events:none; will-change:transform, opacity; }
#reel-stage.scrolly .step.past{ transform:translateY(-26px) scale(.985); }
#reel-stage.scrolly .step.on{ opacity:1; transform:none; pointer-events:auto; transition-delay:.08s; }
#reel-stage.scrolly .step .chips span, #reel-stage.scrolly .step .listen, #reel-stage.scrolly .step p{ opacity:0; transform:translateY(10px); transition:opacity .5s ease, transform .7s cubic-bezier(.22,1,.36,1); }
#reel-stage.scrolly .step.on p, #reel-stage.scrolly .step.on .listen{ opacity:1; transform:none; transition-delay:.22s; }
#reel-stage.scrolly .step.on p + p{ transition-delay:.34s; }
#reel-stage.scrolly .step.on .chips span{ opacity:1; transform:none; transition-delay:calc(.4s + var(--i, 0) * 90ms); }
/* a thin line under the rail says how far through the visit the reader is */
#reel-stage.scrolly .rail{ position:relative; }
#reel-stage.scrolly .rail::after{ content:""; position:absolute; left:0; right:0; bottom:-18px; height:2px; border-radius:2px; background:linear-gradient(90deg, var(--cream) calc(var(--rp, 0) * 100%), rgba(238,240,208,.14) 0); }

/* ---------- Things rising into place as they reach the screen ---------- */
.rv{ opacity:0; transform:translateY(28px); transition:opacity .8s ease, transform 1s cubic-bezier(.22,1,.36,1); }
.rv.rv-in{ opacity:1; transform:none; }

/* ---------- Each step's product, drawn small: what the reader would see in the clinic ---------- */
.viz{ margin-top:22px; padding-top:18px; border-top:1px solid rgba(255,255,255,.08); font-size:13px; color:rgba(255,255,255,.8); }
.viz em{ font-style:normal; }
#reel-stage.scrolly .viz > *, #reel-stage.scrolly .viz .slots i, #reel-stage.scrolly .viz .bars i{ opacity:0; transform:translateY(10px); transition:opacity .5s ease, transform .7s cubic-bezier(.22,1,.36,1); }
#reel-stage.scrolly .step.on .viz > *{ opacity:1; transform:none; transition-delay:calc(.5s + var(--vi, 0) * 110ms); }
#reel-stage.scrolly .step.on .viz .slots i, #reel-stage.scrolly .step.on .viz .bars i{ opacity:1; transform:none; transition-delay:calc(.55s + var(--vi, 0) * 40ms); }
.v-cal .lab{ display:block; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:rgba(238,240,208,.55); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
.v-cal .slots{ display:grid; grid-template-columns:repeat(6,1fr); gap:8px; margin-top:10px; }
.v-cal .slots i{ font-style:normal; display:flex; flex-direction:column; gap:2px; padding:9px 10px; border-radius:10px; border:1px dashed rgba(255,255,255,.14); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px; color:rgba(255,255,255,.55); }
.v-cal .slots i em{ font-family:var(--font); font-size:11px; }
.v-cal .slots i.bk{ border-style:solid; background:rgba(255,255,255,.04); color:rgba(255,255,255,.35); }
.v-cal .slots i.hd{ border:1px solid var(--cream); background:rgba(238,240,208,.1); color:var(--cream); }
.v-wave .bars{ display:flex; align-items:center; gap:4px; height:54px; }
.v-wave .bars i{ flex:1; height:var(--h); border-radius:2px; background:linear-gradient(var(--cream), rgba(238,240,208,.35)); }
#reel-stage .step.on .v-wave .bars i{ animation:vbar 1.4s ease-in-out infinite alternate; animation-delay:calc(var(--vi, 0) * -90ms); }
@keyframes vbar{ to{ height:calc(var(--h) * .35); } }
.v-wave .xl{ display:flex; gap:10px; align-items:center; margin-top:12px; flex-wrap:wrap; }
.v-wave .xl span{ padding:5px 10px; border-radius:99px; background:rgba(255,255,255,.06); }
.v-wave .xl span:first-child{ color:var(--cream); }
.v-wave .xl b{ color:rgba(238,240,208,.6); font-weight:400; }
.v-chk{ display:grid; gap:8px; }
.v-chk > div{ display:grid; grid-template-columns:22px minmax(0,1fr); column-gap:10px; align-items:center; }
.v-chk .t{ grid-row:span 2; width:22px; height:22px; border-radius:50%; background:rgba(143,217,168,.16); color:#8fd9a8; display:grid; place-items:center; }
.v-chk .t svg{ width:12px; height:12px; }
.v-chk em{ grid-column:2; font-size:12px; color:rgba(255,255,255,.45); }
.v-bima .pill{ justify-self:start; margin-top:6px; padding:5px 12px; border-radius:99px; background:var(--cream); color:#16160f; font-size:12px; font-weight:600; }
.v-wa .bub{ max-width:440px; background:#1f2c34; color:#e9edef; border-radius:4px 12px 12px 12px; padding:10px 12px 7px; font-size:13px; line-height:1.5; }
.v-wa .bub span{ display:block; text-align:right; font-size:10.5px; color:#8696a0; margin-top:3px; }
.v-wa .bub span em{ color:#53bdeb; }
.v-route{ display:grid; gap:10px; }
.v-route > div{ display:grid; grid-template-columns:150px minmax(40px,1fr) auto; gap:12px; align-items:center; }
.v-route b{ font-weight:500; color:#fff; font-size:13px; }
.v-route i{ height:2px; background:repeating-linear-gradient(90deg, var(--cream) 0 6px, transparent 6px 11px); background-size:22px 2px; opacity:.7; }
#reel-stage .step.on .v-route i{ animation:vroute 1s linear infinite; }
@keyframes vroute{ to{ background-position:22px 0; } }
.v-route span{ padding:5px 11px; border-radius:99px; border:1px solid rgba(238,240,208,.4); color:var(--cream); font-size:12px; white-space:nowrap; }
.v-route > em{ font-size:12px; color:rgba(255,255,255,.45); }
.v-lab .tb{ display:grid; grid-template-columns:1fr auto auto; gap:6px 18px; align-items:baseline; max-width:360px; }
.v-lab .tb span{ color:rgba(255,255,255,.6); }
.v-lab .tb b{ font-weight:500; color:#fff; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12.5px; text-align:right; }
.v-lab .tb em{ font-size:11px; color:#8fd9a8; }
.v-lab .plain{ margin:12px 0 0 !important; font-family:var(--serif); font-size:17px !important; color:var(--cream) !important; }
.v-rank{ display:grid; gap:6px; }
.v-rank > div{ display:flex; align-items:center; gap:12px; padding:8px 10px; border-radius:10px; color:rgba(255,255,255,.55); }
.v-rank > div b{ width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:11px; background:rgba(255,255,255,.08); }
.v-rank > div span{ flex:1; display:flex; flex-direction:column; }
.v-rank > div span em{ font-size:11.5px; color:rgba(255,255,255,.4); }
.v-rank .top{ background:rgba(238,240,208,.08); border:1px solid rgba(238,240,208,.3); color:#fff; }
.v-rank .top b{ background:var(--cream); color:#16160f; }
.v-rank .top i{ font-style:normal; font-size:11.5px; color:var(--cream); }
@media (max-width:640px){ .viz{ display:none; } }

/* the coding and claims demo video on the homepage */
#coding-video .cv-frame{ max-width:1100px; margin:clamp(28px,4vw,48px) auto 0; border-radius:18px; overflow:hidden; border:1px solid rgba(255,255,255,.14); background:#000; aspect-ratio:16/9; box-shadow:0 40px 90px -40px rgba(0,0,0,.9); }
#coding-video .cv-frame video{ display:block; width:100%; height:100%; object-fit:contain; background:#000; }
/* full screen: the whole frame, letterboxed on a screen that is not 16:9, never cropped */
#coding-video video:fullscreen, #coding-video video:-webkit-full-screen{ object-fit:contain !important; width:100%; height:100%; background:#000; }
#coding-video .cv-links{ text-align:center; margin:18px 0 0; font-size:15px; }
#coding-video .cv-links a{ color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
#coding-video h2 em{ font-style:italic; color:var(--accent); }
