/* Clinic website — cinematic (ported 1:1 from the approved prototype, 14 Oct 2026). Tokens are the family's shared names. */
:root {
  --ground: #F4F8FA; --ground-2: #EAF2F6; --ink: #0E1B26; --ink-2: #44566A; --line: rgba(14, 27, 38, .10);
  --glass: rgba(255, 255, 255, .66); --night: #071521; --night-2: #0C2333;
  --arogo: #1B6E9C; --arogo-2: #2E86BE; --cyan: #8FF0FA; --gold: #E9B949; --ok: #2FA98C; --danger: #E5574A; --wa: #25D366;
  --accent: #1B6BD6; --accent-2: #10284A;
  --serif: "Instrument Serif", "Times New Roman", serif; --sans: Barlow, "Helvetica Neue", Arial, sans-serif; --cond: "Barlow Condensed", "Arial Narrow", Barlow, sans-serif;
  --hdr: 64px; --r: 22px; --sh: 0 24px 60px -24px rgba(14, 60, 90, .28); --ease: cubic-bezier(.22, 1, .36, 1);
  --gut: clamp(16px, 4.2vw, 72px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: linear-gradient(180deg, #CFE3EE 0%, var(--ground) 38%, var(--ground-2) 100%) fixed; color: var(--ink); font: 400 17px/27px var(--sans); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--accent-2); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; }
.cond { font-family: var(--cond); font-weight: 600; font-variant-numeric: tabular-nums; }
.eyebrow { margin: 0 0 8px; font: 600 13px/18px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.lede { margin: 12px 0 0; color: var(--ink-2); }
.fine { margin: 14px 0 0; font-size: 14.5px; line-height: 21px; color: var(--ink-2); }

/* ---- the stage + page frame ---- */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
main { position: relative; z-index: 1; }
.st { position: relative; height: calc(var(--len, 100) * 1vh); height: calc(var(--len, 100) * 1svh); margin-top: calc(var(--gap, 0) * 1vh); margin-top: calc(var(--gap, 0) * 1svh); }   /* --gap: empty scroll the camera flies through between two stations */
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.panel { background: var(--glass); backdrop-filter: blur(20px) saturate(1.35); -webkit-backdrop-filter: blur(20px) saturate(1.35); border: 1px solid rgba(255, 255, 255, .7); border-top-color: rgba(255, 255, 255, .96); border-radius: var(--r); box-shadow: var(--sh); padding: clamp(18px, 3vh, 30px) clamp(20px, 2.4vw, 34px); }
h1.serif { font-size: clamp(44px, min(5.2vw, 9.2vh), 84px); line-height: 1.02; }
h2.serif { font-size: clamp(44px, min(4.4vw, 8vh), 66px); line-height: 1.04; }
.pill { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; background: var(--glass); font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.pill:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(14, 60, 90, .4); }
.pill-pri { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 22px -10px rgba(27, 107, 214, .8); }
.pill-wa { background: var(--wa); color: #06310f; }
.pill-ghost { border-color: rgba(14, 27, 38, .18); background: rgba(255, 255, 255, .5); }
.pill.sm { min-height: 38px; padding: 0 16px; font-size: 15px; }
.pill.lg { min-height: 52px; padding: 0 26px; font-size: 17px; }

/* ---- reveal: visible by default; hidden only once the 3D flight has started (data-fx=on) ---- */
html[data-fx="on"] .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease) calc(var(--d, 0) * 1s), transform .9s var(--ease) calc(var(--d, 0) * 1s); }
html[data-fx="on"] .rv.in { opacity: 1; transform: none; }
html.jump .rv, html.jump .rv.in { transition: none !important; }

/* ---- header ---- */
.hdr { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--hdr); display: flex; align-items: center; gap: 24px; padding: 0 var(--gut); background: rgba(244, 248, 250, .66); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.mono { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: #fff; display: grid; place-items: center; font: 400 24px/1 var(--serif); flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.bn { font: 600 17px/1.1 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 36px); margin: 0 auto; }
.nav a { text-decoration: none; font: 500 15.5px/1 var(--sans); color: var(--ink-2); padding: 10px 2px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.hdr-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .hdr-r { margin-left: 0; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); align-items: center; justify-content: center; }
.menu { position: fixed; z-index: 49; left: 10px; right: 10px; top: calc(var(--hdr) + 8px); display: none; flex-direction: column; gap: 4px; padding: 14px; }
.menu.open { display: flex; }
.menu a { padding: 13px 10px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.menu a:hover { background: rgba(27, 107, 214, .08); }
#prog { position: fixed; z-index: 51; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--cyan)); }

/* ---- hero ---- */
.hero-copy { position: absolute; left: var(--gut); top: calc(50% + var(--hdr) / 2); transform: translateY(-50%); width: min(47vw, 660px); }
.hero-copy::before { content: ""; position: absolute; inset: -40px -90px -40px -80px; z-index: -1; background: radial-gradient(ellipse at 38% 50%, rgba(244, 248, 250, .86) 0%, rgba(244, 248, 250, .6) 55%, rgba(244, 248, 250, 0) 100%); pointer-events: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(10px, 2vh, 18px); padding: 0; list-style: none; }
.pills li { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .8); font: 600 13.5px/18px var(--sans); color: var(--accent-2); backdrop-filter: blur(10px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(16px, 3vh, 28px); }
.facts { display: flex; gap: clamp(18px, 2.6vw, 38px); margin: clamp(18px, 3.2vh, 32px) 0 0; padding: clamp(10px, 1.6vh, 16px) 0 0; border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dt { font: 600 13px/18px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 0; font: 600 clamp(32px, 5vh, 46px)/1 var(--cond); color: var(--accent-2); }
.open { display: inline-flex; align-items: center; gap: 9px; margin: clamp(10px, 2vh, 18px) 0 0; font: 500 15px/20px var(--sans); color: var(--ink-2); }
.open .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 169, 140, .2); }
.cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cue i { width: 1px; height: 28px; background: linear-gradient(var(--ink-2), transparent); }

/* ---- doctors ---- */
.doc-intro { position: absolute; left: var(--gut); top: calc(50% + var(--hdr) / 2); transform: translateY(-50%); width: min(34vw, 470px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(14, 27, 38, .14); background: rgba(255, 255, 255, .6); font: 500 15px/1 var(--sans); backdrop-filter: blur(10px); }
.chip[aria-pressed="true"] { background: var(--accent-2); color: #fff; border-color: transparent; }
.doc-right { position: absolute; right: var(--gut); top: calc(50% + var(--hdr) / 2); transform: translateY(-50%); width: min(47vw, 780px); }
.doc-right .chips { margin: 0 0 14px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.dcard { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 16px; background: var(--glass); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); border: 1px solid rgba(255, 255, 255, .72); border-top-color: #fff; border-radius: var(--r); box-shadow: var(--sh); }
.dcard[hidden] { display: none; }
.dport { position: relative; width: 74px; height: 92px; border-radius: 16px; background: linear-gradient(150deg, var(--c1), var(--c2)); overflow: hidden; }
.dport::before { content: ""; position: absolute; left: 50%; top: 20px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: rgba(255, 255, 255, .88); }
.dport::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 66px; height: 60px; margin-left: -33px; border-radius: 50% 50% 0 0; background: rgba(255, 255, 255, .88); }
.dport .ic { position: absolute; z-index: 1; left: 6px; top: 6px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--accent); stroke-width: 2; }
.dbody { min-width: 0; display: flex; flex-direction: column; }
.dbody h3 { font-size: 24px; line-height: 1.05; }
.dq { margin: 3px 0 0; font-size: 14px; line-height: 19px; color: var(--ink-2); }
.dspec { color: var(--ink); font-weight: 500; }
.dline { margin: 4px 0 0; font-size: 14px; line-height: 19px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dnext { margin: 8px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; white-space: nowrap; min-width: 0; }
.dnext span { font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.dnext b { font: 600 20px/1 var(--cond); color: var(--accent); overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dwhen { margin: 6px 0 0; font: 500 13.5px/17px var(--sans); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dfoot { margin-top: auto; padding-top: 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dfee { font: 600 17px/1 var(--cond); padding: 4px 10px; border-radius: 999px; background: rgba(233, 185, 73, .18); box-shadow: inset 0 0 0 1px rgba(233, 185, 73, .55); }

/* ---- whatsapp (the night beat: dark glass copy over the dusk world) ---- */
.wa-panel { position: absolute; left: var(--gut); top: calc(50% + var(--hdr) / 2); transform: translateY(-50%); width: min(36vw, 470px); background: rgba(7, 21, 33, .62); border-color: rgba(143, 240, 250, .18); border-top-color: rgba(143, 240, 250, .34); color: #E6F2F8; box-shadow: 0 30px 70px -26px rgba(0, 0, 0, .6); }
.wa-panel .eyebrow { color: var(--wa); }
.wa-panel .lede, .wa-panel .fine { color: #AFC3D1; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 14px; color: #8EA6B6; transition: background .5s var(--ease), color .5s var(--ease); }
.steps li b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(143, 240, 250, .3); font: 600 15px/1 var(--cond); flex: none; transition: all .5s var(--ease); }
.steps li.on { background: rgba(37, 211, 102, .12); color: #fff; }
.steps li.on b { background: var(--wa); border-color: var(--wa); color: #06310f; }
.wa-panel .pill { margin-top: 18px; }
.chat-log { list-style: none; margin: 0; padding: 0; }
html:not([data-tier="low"]) .phone-dom .chat-log { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- lab ---- */
.lab-wrap { position: absolute; right: var(--gut); top: calc(50% + var(--hdr) / 2); transform: translateY(-50%); width: min(47vw, 700px); display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
.tests { width: 100%; border-collapse: collapse; margin-top: 14px; }
.tests th { text-align: left; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 0 0 8px; }
.tests td { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 21px; }
.tests td:nth-child(2) { color: var(--ink-2); }
.tests td:last-child, .tests th:last-child { text-align: right; }
.price { font: 600 19px/1 var(--cond); padding: 4px 10px; border-radius: 999px; background: rgba(233, 185, 73, .18); box-shadow: inset 0 0 0 1px rgba(233, 185, 73, .55); white-space: nowrap; }
.pkg { margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: rgba(27, 107, 214, .08); font-size: 14.5px; line-height: 20px; }
.bill { background: var(--glass); border: 1px solid rgba(255, 255, 255, .72); border-top-color: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 18px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.bill h3 { font: 600 13px/18px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--wa); margin: 0 0 12px; display: flex; gap: 8px; align-items: center; }
.bill pre { margin: 0; padding: 12px 14px; background: #D9FDD3; border-radius: 12px 12px 4px 12px; font: 400 14.5px/20px var(--sans); white-space: pre-wrap; word-break: break-word; color: #111B21; box-shadow: 0 1px 0 rgba(11, 20, 26, .13); }
.bill p { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }

/* ---- facilities ---- */
.fac-panel { position: absolute; left: var(--gut); top: calc(50% + var(--hdr) / 2); transform: translateY(-50%); width: min(37vw, 480px); }
.facs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.facs li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; font-size: 15px; line-height: 19px; color: var(--ink-2); transition: background .4s var(--ease), color .4s var(--ease); }
.facs li.on { background: rgba(27, 107, 214, .12); color: var(--accent-2); font-weight: 600; }
.facs .ic { color: var(--accent); }
.fac-n { margin: 12px 0 0; font: 600 14px/1 var(--cond); letter-spacing: .14em; color: var(--ink-2); }

/* ---- visit (normal flow, on a frosted sheet) ---- */
.st-visit { height: auto; }
.visit-top { min-height: 78vh; min-height: 78svh; position: relative; }
.visit-hero { position: absolute; left: var(--gut); top: 50%; transform: translateY(-40%); width: min(40vw, 520px); }
.sheet { position: relative; background: linear-gradient(180deg, rgba(244, 248, 250, 0) 0, rgba(244, 248, 250, .9) 90px, rgba(244, 248, 250, .96) 100%); padding: 40px var(--gut) 36px; }
.board { background: linear-gradient(160deg, var(--night), var(--night-2)); color: #E6F2F8; border-radius: 26px; padding: clamp(18px, 3vw, 34px); box-shadow: 0 40px 80px -30px rgba(7, 21, 33, .7); max-width: 1240px; margin: 0 auto; border: 1px solid rgba(143, 240, 250, .16); }
.board h2 { font: 600 clamp(15px, 1.4vw, 18px)/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--cyan); display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.board h2::after { content: ""; flex: 1; height: 1px; background: rgba(143, 240, 250, .25); }
.board .sub { margin: 0 0 16px; color: #8EA6B6; font-size: 14.5px; }
.bscroll { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.tt { width: 100%; min-width: 760px; border-collapse: collapse; }
.tt th { font: 600 13px/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; text-align: left; padding: 10px 8px; color: #8EA6B6; border-bottom: 1px solid rgba(143, 240, 250, .22); }
.tt th.today { color: var(--cyan); }
.tt td { padding: 11px 8px; border-bottom: 1px solid rgba(255, 255, 255, .07); font: 600 15.5px/1.15 var(--cond); color: #E6F2F8; letter-spacing: .02em; vertical-align: top; }
.tt td.today { background: rgba(143, 240, 250, .08); }
.tt td.off { color: #4D6578; font-weight: 400; }
.tt .who { font: 600 17px/1.15 var(--sans); letter-spacing: 0; min-width: 190px; }
.tt .who small { display: block; font: 400 13.5px/1.2 var(--sans); color: #8EA6B6; margin-top: 3px; }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1240px; margin: 18px auto 0; }
.card { background: rgba(255, 255, 255, .8); border: 1px solid #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 22px 24px; }
.card h3 { font: 600 13px/18px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.card p { margin: 4px 0; }
.card .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.band { max-width: 1240px; margin: 18px auto 0; border-radius: 26px; padding: clamp(24px, 4vw, 44px); background: linear-gradient(120deg, var(--accent-2), var(--accent)); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; box-shadow: 0 30px 60px -28px rgba(16, 40, 74, .7); }
.band h2 { font-size: clamp(36px, 4vw, 54px); }
.band .pill-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .12); }
.faq { max-width: 1240px; margin: 18px auto 0; display: grid; gap: 8px; }
.faq details { background: rgba(255, 255, 255, .7); border: 1px solid #fff; border-radius: 16px; padding: 14px 20px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 2px; color: var(--ink-2); }
.foot { position: relative; z-index: 1; background: var(--night); color: #AFC3D1; padding: 34px var(--gut) 40px; font-size: 15px; line-height: 23px; }   /* above #stage (fixed, z-index 0) like main: else the whole footer paints under the 3D canvas */
.foot-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.foot h4 { margin: 0 0 8px; font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.foot a { color: #E6F2F8; }
.foot .pw { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: #E6F2F8; font-weight: 500; }
.foot .pw svg { width: 22px; height: 24px; --mk1: #8FF0FA; --mk2: #2E86BE; }
.foot .sample { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: #7E94A5; }

/* ---- booking modal (mock) ---- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 14px; background: rgba(7, 21, 33, .5); backdrop-filter: blur(6px); }
.modal.open { display: flex; }
.mbox { width: min(760px, 100%); max-height: calc(100% - 8px); overflow: auto; background: #fff; border-radius: 26px; box-shadow: 0 50px 100px -30px rgba(7, 21, 33, .7); padding: clamp(18px, 3vw, 30px); position: relative; }
.mbox h2 { font-size: clamp(34px, 4vw, 44px); }
.mclose { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.mlbl { margin: 18px 0 8px; font: 600 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(14, 27, 38, .16); background: #fff; text-align: left; line-height: 1.15; }
.opt small { display: block; color: var(--ink-2); font-size: 12.5px; }
.opt[aria-pressed="true"] { border-color: var(--accent); background: rgba(27, 107, 214, .08); box-shadow: inset 0 0 0 1px var(--accent); }
.opt:disabled { opacity: .4; cursor: not-allowed; }
.days .opt { min-width: 64px; text-align: center; }
.days .opt b { display: block; font: 600 20px/1 var(--cond); }
.slots .opt { min-width: 92px; font: 600 17px/1 var(--cond); text-align: center; }
.mform { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.mform label { display: grid; gap: 6px; font: 600 12.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.mform input { height: 46px; border-radius: 12px; border: 1px solid rgba(14, 27, 38, .2); padding: 0 14px; font: 400 17px var(--sans); color: var(--ink); letter-spacing: 0; text-transform: none; }
.merr { margin: 12px 0 0; color: var(--danger); font-weight: 500; min-height: 24px; }
.mgo { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.mnote { font-size: 14px; line-height: 20px; color: var(--ink-2); max-width: 36ch; }
.mdone { text-align: center; padding: 18px 0 6px; }
.mdone .big { width: 64px; height: 64px; border-radius: 50%; background: rgba(47, 169, 140, .14); color: var(--ok); display: grid; place-items: center; margin: 0 auto 12px; }
.mdone dl { display: inline-grid; grid-template-columns: auto auto; gap: 6px 18px; text-align: left; margin: 14px 0; }
.mdone dt { color: var(--ink-2); } .mdone dd { margin: 0; font-weight: 600; }

/* ---- low tier / motion off: no canvas, stacked sections, illustrated frames ---- */
.art { display: none; }
html[data-tier="low"] #stage { display: none; }
html[data-tier="low"] .st { height: auto; margin-top: 0; }
html[data-tier="low"] .pin { position: relative; height: auto; min-height: 0; overflow: visible; padding: calc(var(--hdr) + 28px) var(--gut) 44px; display: grid; gap: 22px; align-items: start; }
html[data-tier="low"] .hero-copy, html[data-tier="low"] .doc-intro, html[data-tier="low"] .doc-right, html[data-tier="low"] .wa-panel,
html[data-tier="low"] .lab-wrap, html[data-tier="low"] .fac-panel, html[data-tier="low"] .visit-hero { position: static; transform: none; width: auto; max-width: 960px; }
html[data-tier="low"] .doc-right { max-width: 1100px; } html[data-tier="low"] .hero-copy::before { display: none; }
html[data-tier="low"] .visit-top { min-height: 0; }
html[data-tier="low"] .visit-hero { padding: calc(var(--hdr) + 28px) var(--gut) 0; }
html[data-tier="low"] .cue { display: none; }
html[data-tier="low"] .art { display: block; width: min(100%, 560px); margin: 0; filter: drop-shadow(0 24px 40px rgba(14, 60, 90, .22)); }
html[data-tier="low"] .phone-dom { display: block; width: min(100%, 390px); border-radius: 44px; padding: 14px; background: #111b26; box-shadow: var(--sh); }
html[data-tier="low"] .phone-dom .chat-log { background: #EFE7DD; border-radius: 32px; padding: 14px 12px; max-height: 560px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.chat-log li { max-width: 88%; padding: 8px 12px; border-radius: 10px; font-size: 15px; line-height: 20px; box-shadow: 0 1px 0 rgba(11, 20, 26, .13); }
.chat-log .bot, .chat-log .sys { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.chat-log .you { background: #D9FDD3; align-self: flex-end; border-top-right-radius: 2px; }
.chat-log .sys { background: #E4EBEF; align-self: center; font-size: 14px; }
.chat-log .m { white-space: pre-line; display: block; color: #111B21; }
.chat-log .o { display: block; margin-top: 6px; color: #00806A; font-weight: 500; font-size: 14px; }
.chat-log li.hid { display: none; }

/* never taller than the window: if copy ever outgrows it, it scrolls inside instead of being clipped */
.doc-right, .wa-panel, .lab-wrap, .fac-panel { max-height: calc(100vh - var(--hdr) - 20px); max-height: calc(100svh - var(--hdr) - 20px); overflow-y: auto; scrollbar-width: thin; overscroll-behavior: contain; }
.doc-right { padding: 2px; }

@media (max-height: 960px) and (min-width: 761px) { .dline { display: none; } }

/* ---- 1536x592 and other short, wide windows ---- */
@media (max-height: 700px) and (min-width: 761px) {
  .panel { padding: 16px 22px; }
  .lede { margin-top: 8px; font-size: 16px; line-height: 23px; }
  .wa-panel .lede, .wa-panel .fine { display: none; }
  .steps { margin-top: 12px; } .steps li { padding: 5px 10px; }
  .wa-panel .pill { margin-top: 12px; }
  .doc-grid .dcard { padding: 12px; gap: 10px; } .doc-right .chips { margin-bottom: 10px; gap: 6px; } .chip { min-height: 30px; padding: 0 12px; font-size: 14px; } .dport { width: 56px; height: 72px; } .dcard { grid-template-columns: 56px 1fr; } .dwhen { font-size: 13px; }
  .dline { display: none; } .dbody h3 { font-size: 22px; } .dnext { margin-top: 6px; } .dfoot { padding-top: 7px; }
  .lab-wrap .lede { display: none; } .tests td { padding: 6px 0; } .pkg { margin-top: 8px; padding: 7px 12px; }
  .fac-panel .lede { display: none; } .facs { margin-top: 10px; } .facs li { padding: 5px 10px; }
  .facts { margin-top: 14px; } .cue { display: none; }
}
@media (max-height: 700px) and (min-width: 1180px) {
  .doc-right { width: min(57vw, 900px); } .doc-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- tablets / small laptops ---- */
@media (max-width: 1100px) and (min-width: 761px) {
  .doc-right { width: min(60vw, 700px); } .doc-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .doc-intro { width: 32vw; }
  .lab-wrap { width: 58vw; grid-template-columns: 1fr; } .lab-wrap .bill { display: none; }
  .vgrid { grid-template-columns: 1fr 1fr; }
}

/* ---- phone ---- */
@media (max-width: 760px) {
  :root { --hdr: 58px; --gut: 16px; }
  body { font-size: 16px; line-height: 25px; }
  .nav, .hdr-r .login, .hdr-r .pill-ghost { display: none; }
  .menu-btn { display: inline-flex; }
  .hdr { gap: 10px; } .bn { font-size: 16px; }
  .hdr-r .pill { min-height: 40px; padding: 0 16px; font-size: 15px; }
  h1.serif { font-size: clamp(34px, 9.6vw, 44px); line-height: 1.04; }
  h2.serif { font-size: clamp(34px, 9.4vw, 44px); }
  .hero-copy, .doc-intro, .wa-panel, .fac-panel { left: 12px; right: 12px; width: auto; top: auto; transform: none; }
  .hero-copy { bottom: 14px; padding: 18px 16px 8px; border-radius: 26px; background: linear-gradient(to top, rgba(244, 248, 250, .96) 62%, rgba(244, 248, 250, .0)); }
  .hero-copy .lede { margin-top: 8px; font-size: 15.5px; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cta-row .pill-ghost { display: none; } .cta-row { margin-top: 12px; } .cta-row .pill { flex: 1; justify-content: center; padding: 0 14px; }
  .facts { margin-top: 12px; gap: 22px; } .facts dd { font-size: 30px; } .open { margin-top: 8px; font-size: 14px; }
  .pills li { font-size: 12.5px; padding: 4px 10px; } .cue { display: none; }
  .doc-intro { bottom: 252px; } .doc-intro .lede, .doc-right .chips { display: none; }
  .doc-right { left: 0; right: 0; width: auto; top: auto; bottom: 14px; transform: none; }
  .doc-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 4px 16px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .doc-grid::-webkit-scrollbar { display: none; }
  .dcard { flex: 0 0 min(80vw, 330px); scroll-snap-align: center; grid-template-columns: 64px 1fr; padding: 14px; }
  .dport { width: 64px; height: 84px; } .dline { display: none; } .dbody h3 { font-size: 22px; }
  .dnext { margin-top: 7px; } .dnext b { font-size: 21px; }
  .wa-panel { bottom: 12px; padding: 16px 16px 14px; } .wa-panel .lede, .wa-panel .fine { display: none; }
  .steps { grid-template-columns: 1fr 1fr; margin-top: 12px; gap: 2px; } .steps li { padding: 5px 6px; font-size: 14px; line-height: 18px; gap: 8px; } .steps li b { width: 24px; height: 24px; font-size: 13px; }
  .wa-panel .pill { margin-top: 10px; width: 100%; justify-content: center; }
  .lab-wrap { left: 12px; right: 12px; width: auto; top: auto; bottom: 12px; transform: none; grid-template-columns: 1fr; gap: 10px; }
  .lab-wrap .lede { display: none; } .lab-wrap .panel { padding: 14px 16px; } .tests { margin-top: 8px; } .tests td { padding: 5px 0; font-size: 14.5px; line-height: 19px; }
  .tests tbody tr:nth-child(n+5) { display: none; } .pkg { display: none; }
  .bill { padding: 12px 14px; } .bill pre { max-height: 82px; overflow: hidden; font-size: 13px; line-height: 17px; padding: 8px 10px; } .bill p { display: none; } .bill h3 { margin-bottom: 8px; }
  .fac-panel { bottom: 12px; padding: 16px; } .fac-panel .lede { display: none; }
  .facs { grid-template-columns: 1fr 1fr; gap: 2px 6px; margin-top: 10px; } .facs li { padding: 4px 6px; font-size: 13.5px; gap: 7px; line-height: 17px; } .facs .ic { width: 17px; height: 17px; }
  .visit-top { min-height: 62svh; } .visit-hero { left: 12px; right: 12px; width: auto; top: auto; bottom: 18px; transform: none; padding: 18px 16px; }
  .vgrid { grid-template-columns: 1fr; } .foot-in { grid-template-columns: 1fr; } .mform { grid-template-columns: 1fr; }
  .band { flex-direction: column; align-items: flex-start; }
  .sheet { padding-top: 28px; }
  html[data-tier="low"] .pin { padding: calc(var(--hdr) + 18px) 14px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-tier="low"]) * { scroll-behavior: auto !important; }
  .rv { transition: none !important; }
}

html[data-tier="mid"] .panel, html[data-tier="mid"] .dcard, html[data-tier="mid"] .bill, html[data-tier="mid"] .hdr { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------- production additions: things the data decides ---------- */
[hidden] { display: none !important; }
.mform .gender { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; min-width: 0; }
.mform .gender legend { padding: 0; margin: 0 0 6px; font: 600 12.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.mform .seg { display: flex; gap: 6px; }
.mform .seg label { flex: 1; position: relative; display: block; text-transform: none; letter-spacing: 0; }
.mform .seg input { position: absolute; opacity: 0; height: 0; width: 0; }
.mform .seg span { display: block; text-align: center; padding: 12px 6px; border-radius: 12px; border: 1px solid rgba(14, 27, 38, .2); font: 500 16px var(--sans); color: var(--ink); cursor: pointer; }
.mform .seg input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.mform .seg input:focus-visible + span { outline: 3px solid var(--accent-2); outline-offset: 2px; }

