/* ═══════════════════════════════════════════════════════════════
   Signature Health Intelligence — shi.css (clean theme, v1)
   Brief: DESIGN.md. Five rules: one object per screen, the report is
   the hero image, accent budget, one layout grammar, subtract first.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --paper: #FFFEFA; --paper-2: #F6F2EB;
  --ink: #2A2420; --ink-2: #5A514A; --ink-3: #716861; --line: #E6E0D6;
  --terra: #B85C3E; --terra-dark: #8C3E25;
  --display: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', -apple-system, system-ui, sans-serif;
  --w: 1180px; --gut: 32px;
  --pad: 120px; --pad-m: 72px;
  --ease: cubic-bezier(.16,1,.3,1);
  --shadow: 0 24px 60px -30px rgba(42,36,32,.35);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.container { width: min(var(--w), calc(100% - 48px)); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── type ── */
.ov { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; letter-spacing: -.01em; line-height: 1.05; }
h1 { font-size: clamp(44px, 5.5vw, 72px); }
h1, h2, h3, .doc q, .faq summary { text-wrap: balance; }
p, li { text-wrap: pretty; }
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h2 { font-size: clamp(34px, 4vw, 48px); }
h3 { font-size: clamp(24px, 2.4vw, 28px); line-height: 1.15; }
.lede { color: var(--ink-2); font-size: 17px; max-width: 44ch; }
.meta { font-size: 13px; color: var(--ink-3); }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(42,36,32,.4); transition: text-decoration-color .2s; display: inline-block; padding: 10px 0; margin: -10px 0; }
.link:hover { text-decoration-color: var(--ink); }
.ph { color: var(--ink-3); font-style: italic; font-weight: 400; }
.num { font-family: var(--display); line-height: 1; }

/* ── buttons: flat, pill, one accent ── */
.btn:active { transform: scale(.97); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1; transition: background .2s, color .2s, border-color .2s, transform .12s; white-space: nowrap; border: 0; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-dark); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-outline { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn .icon { width: 16px; height: 16px; }

/* ── sections and the one layout grammar ── */
section { padding: var(--pad) 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gut); align-items: start; }
.split > .text > .ov { margin-bottom: 18px; }
.split > .text > h2 { margin-bottom: 20px; }
.text > .ov { margin-bottom: 18px; }
.text > h2 + .lede { margin-top: 20px; }
.text .lede + .lede { margin-top: 14px; }
.text .btn { margin-top: 28px; }
.object { position: relative; }
.head { max-width: 640px; }
.head + * { margin-top: 56px; }

/* ── one motion ── */
.rise { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .bio-modal, .bio-overlay, .nav-links, .cookie-banner { transition: none; transform: none; } }
.no-js .rise { opacity: 1; transform: none; }

/* ── nav ── */
nav#nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
nav#nav.solid, nav#nav.light { background: rgba(255,254,250,.92); backdrop-filter: blur(10px); border-color: var(--line); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--paper); font-family: var(--display); font-size: 19px; transition: color .3s; }
nav.solid .logo, nav.light .logo { color: var(--ink); }
.logo svg { width: 46px; height: 27px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; color: rgba(255,254,250,.78); transition: color .3s; }
nav.solid .nav-links, nav.light .nav-links { color: var(--ink-2); }
.nav-links a:hover { color: var(--paper); }
nav.solid .nav-links a:hover, nav.light .nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current] { color: var(--paper); }
nav.solid .nav-links a[aria-current], nav.light .nav-links a[aria-current] { color: var(--ink); }
.nav-links .btn { padding: 11px 20px; font-size: 14px; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--paper); }
nav.solid .burger, nav.light .burger { color: var(--ink); }
.burger span { display: block; width: 20px; height: 1.5px; background: currentColor; margin: 5px auto; }

/* ── hero (homepage) ── */
#hero { position: relative; min-height: 100svh; background: #211B18; color: var(--paper); border-top: 0; padding: 0; display: flex; align-items: flex-start; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 62%; }
.hero-pause { position: absolute; right: 22px; bottom: 96px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,254,250,.35); background: rgba(42,36,32,.4); color: var(--paper); display: grid; place-items: center; cursor: pointer; }
.hero-pause svg { width: 14px; height: 14px; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42,36,32,.55) 0%, rgba(42,36,32,.15) 55%, rgba(42,36,32,0) 100%); }
.hero-inner { position: relative; width: min(var(--w), calc(100% - 64px)); margin: 0 auto; padding: clamp(120px, 16vh, 170px) 0 96px; }
.hero-inner .ov { color: rgba(255,254,250,.55); margin-bottom: 26px; }
.hero-inner h1 { max-width: 11ch; margin-bottom: 26px; }
.hero-inner h1 em { font-style: italic; font-weight: 300; color: #D4836A; }
.hero-inner .lede { color: rgba(255,254,250,.78); max-width: 46ch; margin-bottom: 36px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-actions .link { color: rgba(255,254,250,.85); border-color: rgba(255,254,250,.3); }
.hero-actions .link:hover { border-color: var(--paper); }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 28px; }
.hero-foot .container { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,254,250,.6); padding-right: 64px; }
.hero-foot span + span { margin-left: 28px; }

/* ── page head (inner pages) ── */
.page-head { padding: 160px 0 72px; border-top: 0; }
.page-head h1 { font-size: clamp(40px, 5vw, 64px); max-width: 16ch; }
.page-head .lede { margin-top: 22px; }
.page-head .counts { display: flex; gap: 48px; margin-top: 40px; flex-wrap: wrap; }
.page-head .counts .num { font-size: 56px; }
.page-head .counts .l { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }

/* ── report figures ── */
.page { background: var(--paper-2); padding: 7%; border-radius: 4px; }
.page img { box-shadow: var(--shadow); border-radius: 2px; background: #fff; outline: 1px solid rgba(0,0,0,.08); outline-offset: -1px; }
.page figcaption { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.pages-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gut); }
.pages-3 .page { padding: 9%; }
.pages-3 h3 { margin: 26px 0 8px; }
.pages-3 p { color: var(--ink-2); font-size: 15px; }

/* ── numbered list of three ── */
.threes { margin-top: 30px; border-top: 1px solid var(--line); }
.threes li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }
.threes li b { font-weight: 500; color: var(--ink); display: block; }
.threes li span:first-child { font-family: var(--display); font-size: 22px; color: var(--ink-3); line-height: 1.2; }

/* ── programmes ── */
.pkgs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); margin-top: 56px; }
.pkg { border: 1px solid var(--line); border-radius: 4px; padding: 40px; display: flex; flex-direction: column; }
.pkg.featured { background: var(--paper-2); }
.pkg h3 { font-size: 28px; margin-bottom: 8px; }
.pkg .for { color: var(--ink-2); font-size: 16px; }
.pkg .price { font-family: var(--display); font-size: 56px; line-height: 1; margin-top: 28px; }
.pkg .price small { display: block; font-family: var(--sans); font-size: 13px; color: var(--ink-3); margin-top: 8px; letter-spacing: .04em; }
.pkg .renew, .pkg .usd { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.pkg .usd { margin-top: 2px; }
.pkg .renew { margin-top: 2px; }
.pkg .was s { margin-left: 4px; }
.pkg .count { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 32px; }
.pkg .count .num { font-size: 40px; }
.pkg .count .l { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.pkg .tests { margin-top: 18px; color: var(--ink-2); font-size: 16px; flex: 1; }
.pkg .turn { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.pkg .btn { margin-top: 28px; align-self: flex-start; }
.pkg .link { font-size: 14px; margin-top: 16px; color: var(--ink-2); align-self: flex-start; }
.confirm { margin-top: 22px; font-size: 14px; color: var(--ink-3); }

.adds { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gut); }
.adds h3 { margin: 16px 0 14px; }
.adds .lede { font-size: 16px; }
.adds-list { border-top: 1px solid var(--line); }
.adds-list li { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.adds-list b { display: block; font-weight: 500; }
.adds-list p { font-size: 15px; color: var(--ink-2); margin-top: 3px; }
.adds-list .p { font-size: 15px; font-weight: 500; white-space: nowrap; }
.adds-list .p small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); text-align: right; }

.bad { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gut); }
.bad h3, .bad .h3-size { margin-top: 16px; }
.bad p { color: var(--ink-2); max-width: 60ch; }
.bad p + p { margin-top: 12px; }

/* ── steps ── */
.steps { margin-top: 64px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; border-top: 1px solid var(--line); }
.steps li { padding-top: 22px; position: relative; }
.steps li::before { content: ''; position: absolute; top: -1px; left: 0; width: 28px; height: 1px; background: var(--ink); }
.steps .when { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.steps b { display: block; font-weight: 500; margin: 8px 0 6px; }
.steps p { font-size: 15px; color: var(--ink-2); }

/* ── numbers row ── */
.nums { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gut); border-top: 1px solid var(--line); }
.nums li { padding-top: 24px; }
.nums .n { display: block; font-family: var(--display); font-size: 64px; line-height: 1; }
.nums .l { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 8px 0 12px; }
.nums p { font-size: 15px; color: var(--ink-2); }
.src { margin-top: 36px; }

/* ── journal list ── */
.posts { margin-top: 48px; border-top: 1px solid var(--line); }
.posts a { display: grid; grid-template-columns: 200px 1fr auto; gap: var(--gut); padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.posts .cat { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.posts h3 { font-size: 26px; transition: color .2s; }
.posts a:hover h3 { color: var(--terra-dark); }
.posts p { color: var(--ink-2); font-size: 15px; margin-top: 6px; max-width: 62ch; }

/* ── physician ── */
.doc { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gut); align-items: start; }
.portrait { background: var(--paper-2); border-radius: 4px; aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 12%; }
.portrait img { width: 100%; max-width: 340px; border-radius: 50%; }
.doc q { font-family: var(--display); font-size: 28px; line-height: 1.25; display: block; margin: 32px 0; quotes: '\201C' '\201D'; }
.cred { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; color: var(--ink-3); }

/* ── faq ── */
.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-family: var(--display); font-size: 24px; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ink-3); font-family: var(--sans); font-size: 20px; flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq .a { padding: 0 0 26px; color: var(--ink-2); font-size: 16px; max-width: 66ch; }
.faq .a p + p { margin-top: 10px; }

/* ── what we test: systems ── */
.systems { margin-top: 56px; column-count: 2; column-gap: var(--gut); border-top: 1px solid var(--line); }
.sys { padding: 28px 0 10px; border-bottom: 1px solid var(--line); break-inside: avoid; }
.sys-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.sys-head h2, .sys-head h3 { font-size: 26px; }
.sys-head .meta { white-space: nowrap; }
.sys li { display: block; padding: 0; border-top: 1px solid var(--line); }
.sys li:first-child { border-top: 0; }
.sys li:hover .bio-name, .bio-btn:focus-visible .bio-name { color: var(--terra-dark); }
.bio-name { transition: color .2s; }
.bio-name small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.tier { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.tier.p { color: var(--ink); }
.tier.p::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-right: 8px; vertical-align: middle; }
.sys-note { font-size: 13px; color: var(--ink-3); padding: 10px 0 8px; }

.build { margin-top: 64px; display: grid; grid-template-columns: 5fr 7fr; gap: var(--gut); align-items: start; }
.build-stack { border-top: 1px solid var(--line); }
.build-stack li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.build-stack .num { font-size: 44px; }
.build-stack .l { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }
.build-stack b { display: block; font-weight: 500; }
.build-stack p { font-size: 15px; color: var(--ink-2); margin-top: 4px; }

/* ── biomarker popup ── */
.bio-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(42,36,32,.45); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.bio-overlay.open { opacity: 1; visibility: visible; transition: opacity .25s; }
.bio-modal { background: var(--paper); border-radius: 4px; width: min(560px, 100%); max-height: 86vh; overflow: auto; transform: translateY(8px); transition: transform .3s var(--ease); }
.bio-overlay.open .bio-modal { transform: none; }
.bio-modal-inner { padding: 36px; position: relative; }
.bio-modal-close { position: absolute; top: 12px; right: 12px; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--ink-3); display: grid; place-items: center; }
.bio-modal-close:hover { color: var(--ink); }
.bio-modal-eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.bio-modal-title { font-size: 28px; margin-bottom: 14px; padding-right: 36px; }
.bio-modal-desc { color: var(--ink-2); font-size: 16px; }
.bio-modal-mod { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.bio-modal-read { margin-top: 18px; font-size: 14px; }
.bio-modal-link { border-bottom: 1px solid var(--line); }
.bio-modal-link:hover { border-color: var(--ink); }
.bio-modal-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* ── begin / form ── */
#begin, .section-mat { background: var(--paper-2); }
.begin { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gut); align-items: start; }
.begin .note { margin-top: 14px; }
.begin .addr { margin-top: 36px; font-size: 15px; color: var(--ink-2); line-height: 1.8; }
form.inquiry { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 36px; }
form.inquiry h3 { margin-bottom: 6px; }
form.inquiry .meta { margin-bottom: 24px; }
.row { margin-bottom: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; font-weight: 500; }
input, textarea, select { width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid #958C83; border-radius: 4px; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { border-color: var(--ink); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
textarea { min-height: 110px; resize: vertical; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 13px; color: var(--ink-3); }
.consent input { width: 20px; height: 20px; margin-top: 1px; }
.consent a { text-decoration: underline; }
form.inquiry .btn { margin-top: 20px; }
.form-status { margin-top: 14px; font-size: 14px; min-height: 1.4em; }
.form-status.error { color: var(--terra-dark); }
.form-status.success { color: var(--ink-2); }

/* ── footer ── */
footer { background: var(--ink); color: rgba(255,254,250,.7); padding: 72px 0 36px; font-size: 14px; }
.fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gut); }
footer .logo { color: var(--paper); margin-bottom: 14px; }
.fcol b { display: block; color: var(--paper); font-weight: 500; margin-bottom: 14px; }
.fcol a { display: block; margin-bottom: 9px; overflow-wrap: anywhere; }
.fcol a:hover { color: var(--paper); }
.fbot { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,254,250,.12); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: rgba(255,254,250,.6); }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: #128C7E; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); }
.wa-float svg { width: 26px; height: 26px; }

/* ── cookie banner (UK/EEA only; see shi.js) ── */
.cookie-banner { position: fixed; left: 22px; right: 22px; bottom: 22px; z-index: 60; max-width: 520px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 20px 22px; font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.cookie-banner[hidden] { display: none !important; }
.cookie-banner.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.cookie-banner .row-btns { display: flex; gap: 10px; margin-top: 14px; }
.cookie-banner .btn { padding: 10px 18px; font-size: 14px; }

/* ── mobile ── */
@media (max-width: 900px) {
  section { padding: var(--pad-m) 0; }
  .split, .adds, .bad, .doc, .begin, .pkgs, .build { grid-template-columns: 1fr; }
  .systems { column-count: 1; }
  .pages-3 { grid-template-columns: 1fr; max-width: 520px; }
  .steps, .nums { grid-template-columns: 1fr 1fr; }
  .posts a { grid-template-columns: 1fr; gap: 6px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .fgrid > div:first-child, .fgrid > div:last-child { grid-column: 1 / -1; }
  .adds { margin-top: 64px; }
  .portrait { max-width: 420px; }
  .page-head { padding: 130px 0 56px; }
}
@media (max-width: 768px) {
  nav#nav { padding: 14px 20px; }
  .nav-links { position: fixed; inset: 0; background: var(--paper); color: var(--ink); flex-direction: column; justify-content: center; font-size: 22px; gap: 26px; visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
  .nav-links.open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .burger { display: block; position: relative; z-index: 60; }
  nav.menu-open .burger { color: var(--ink); }
  .hero-inner { padding: 110px 0 110px; width: calc(100% - 48px); }
  .hero-foot .container { flex-direction: column; gap: 6px; }
  .hero-foot span { display: block; }
  .hero-foot span + span { margin-left: 0; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .pkg { padding: 28px; }
  .pkg .price { font-size: 48px; }
  .adds-list li { grid-template-columns: 1fr; gap: 6px; }
  .adds-list .p small { text-align: left; }
  form.inquiry { padding: 24px; }
  .steps, .nums { grid-template-columns: 1fr; }
  .steps { border-top: 0; }
  .steps li { border-top: 1px solid var(--line); padding-top: 20px; }
  .steps li::before { display: none; }
  .hero-video { display: none; }
  #hero { background: #211B18 url(media/hero-poster-mobile.jpg) 70% center / cover no-repeat; }
  .hero-pause { display: none; }
  .sys li { flex-wrap: wrap; }
  .sys .tier { flex-basis: 100%; margin-top: 4px; }
  .nums li { padding: 20px 0 0; border-top: 1px solid var(--line); }
  .nums li:first-child { border-top: 0; }
  .page-head .counts { gap: 28px; }
  .cookie-banner { left: 14px; right: 14px; bottom: 14px; }
}

/* ── additions from the design review ── */
html { scrollbar-gutter: stable; }
.lede--wide { max-width: 60ch; }
.head .meta { margin-top: 14px; }
.flush { margin-top: 0; }

/* ── physician byline (replaces the portrait mat) ── */
.doc--byline { grid-template-columns: 4fr 8fr; align-items: start; }
.byline { padding-top: 6px; }
.byline img { width: 168px; height: 168px; border-radius: 50%; margin-bottom: 20px; }
.byline b { display: block; font-family: var(--display); font-size: 26px; font-weight: 300; line-height: 1.1; margin-bottom: 8px; }
.byline span { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
@media (max-width: 900px) { .doc--byline { grid-template-columns: 1fr; } .byline img { width: 132px; height: 132px; } }

/* ── prose pages: journal, articles, physician, contact, legal ── */
.prose-head { padding: 150px 0 var(--pad); border-top: 0; }
.prose { max-width: 720px; }
.prose .crumbs { font-size: 12px; color: var(--ink-3); margin-bottom: 22px; }
.prose .crumbs a { text-decoration: underline; text-decoration-color: rgba(42,36,32,.4); text-underline-offset: 3px; }
.prose .crumbs span { margin: 0 6px; }
.prose h1 { font-size: clamp(38px, 4.6vw, 56px); margin: 14px 0 18px; }
.prose .post-meta, .prose .legal-updated { font-size: 13px; color: var(--ink-3); margin: 0 0 32px; }
.prose .post-meta a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(42,36,32,.4); }
.prose .post-lead { font-family: var(--display); font-size: clamp(22px, 2.3vw, 26px); line-height: 1.4; color: var(--ink); margin: 0 0 36px; }
.prose p, .prose li { font-size: 17px; line-height: 1.75; color: var(--ink-2); margin-bottom: 18px; }
.prose ul { padding-left: 20px; margin: 0 0 22px; list-style: disc; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--ink-3); }
.prose strong { font-weight: 500; color: var(--ink); }
.prose h2 { font-size: clamp(26px, 2.8vw, 32px); margin: 52px 0 14px; }
.prose h3 { font-family: var(--sans); font-weight: 500; font-size: 17px; color: var(--ink); margin: 30px 0 6px; }
.prose .cred-q { font-weight: 500; color: var(--ink); margin: 26px 0 6px; }
.prose p a, .prose li a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(42,36,32,.4); }
.prose p a:hover, .prose li a:hover { text-decoration-color: var(--ink); }
.prose code { font-size: 13px; background: var(--paper-2); padding: 1px 6px; border-radius: 3px; }
.prose blockquote, .prose .cred-quote { font-family: var(--display); font-size: 24px; line-height: 1.35; color: var(--ink); border-left: 1px solid var(--ink); padding-left: 22px; margin: 34px 0; }
.prose .post-sources { font-size: 13px; line-height: 1.7; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px; }
.prose .legal-note { font-size: 14px; line-height: 1.65; color: var(--ink-2); background: var(--paper-2); border-radius: 4px; padding: 16px 20px; margin-top: 30px; }
.prose .pkg-hero-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 40px 0 0; }
.prose .talk-secondary { font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(42,36,32,.4); }
.fig { margin: 34px 0 30px; }
.fig-svg { width: 100%; height: auto; display: block; color: var(--ink); background: var(--paper-2); border-radius: 4px; padding: 16px 14px; }
.fig-lbl { font-family: var(--sans); font-size: 11px; letter-spacing: .1em; fill: var(--ink-3); }
.fig-num { font-family: var(--sans); font-size: 16px; fill: var(--ink-2); }
.fig-key { font-family: var(--sans); font-size: 17px; font-weight: 500; fill: var(--ink); }
.fig figcaption { font-size: 13px; line-height: 1.6; color: var(--ink-3); margin-top: 12px; }
.cred-photo { width: 168px; height: 168px; border-radius: 50%; float: right; margin: 0 0 20px 28px; }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin: 22px 0 30px; clear: both; }
.cred-item { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.cred-item:nth-child(odd) { padding-right: 24px; }
.cred-k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cred-v { font-size: 15px; color: var(--ink); line-height: 1.4; }
.journal-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gut); margin-top: 20px; }
.journal-topic { border-top: 1px solid var(--line); padding-top: 16px; }
.journal-topic h3 { font-family: var(--display); font-weight: 300; font-size: 24px; margin: 0 0 6px; }
.journal-topic p { font-size: 15px; margin: 0; }
.prose .post-list { margin-top: 40px; }
.prose .post-list .post-card { display: block; padding: 24px 0; border-top: 1px solid var(--line); }
.prose .post-list .post-card:last-child { border-bottom: 1px solid var(--line); }
.prose .post-card-cat { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.prose .post-card-title { display: block; font-family: var(--display); font-size: 28px; line-height: 1.15; transition: color .2s; }
.prose .post-card:hover .post-card-title { color: var(--terra-dark); }
.prose .post-card-excerpt { display: block; font-size: 15px; color: var(--ink-2); margin-top: 8px; max-width: 62ch; }
.prose .post-card-meta { display: block; font-size: 13px; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 768px) { .prose-head { padding-top: 120px; } .cred-photo { float: none; margin: 0 0 20px; width: 132px; height: 132px; } .cred-grid { grid-template-columns: 1fr; } .cred-item:nth-child(odd) { padding-right: 0; } .journal-topics { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .fig-lbl { font-size: 20px; } .fig-num { font-size: 28px; } .fig-key { font-size: 30px; } .prose-head { padding-bottom: var(--pad-m); } }
.prose .post-summary { font-size: 16px; line-height: 1.65; color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 0 0 32px; }
.glossary { margin-top: 56px; column-count: 2; column-gap: var(--gut); }
.glossary section { break-inside: avoid; padding: 0 0 18px; border: 0; }
.glossary h3 { font-size: 22px; margin: 18px 0 8px; }
.glossary dt { font-weight: 500; font-size: 15px; margin-top: 12px; }
.glossary dd { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.glossary dd a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(42,36,32,.4); }
.fcol p { margin-bottom: 9px; }
@media (max-width: 900px) { .glossary { column-count: 1; } }
.prose .post-rule { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

/* ── homepage programmes (optimised 21 Oct) ── */
.founding{margin-top:22px;font-size:15px;color:var(--ink-2)} .founding + .confirm{margin-top:6px}
.included{margin:24px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:0 32px;border-top:1px solid var(--line);max-width:760px}
.included li{padding:12px 0 12px 22px;border-bottom:1px solid var(--line);font-size:15px;color:var(--ink-2);position:relative}
.included li::before{content:'';position:absolute;left:0;top:23px;width:10px;height:1px;background:var(--ink)}
.pkg .tests{margin-top:14px;padding-top:0;border-top:0;flex:none}
.pkg .tests + .tests{flex:1}
.notsure{margin-top:10px;font-size:15px;color:var(--ink-2)}
.pkg .count + .tests{margin-top:18px}
.pkg .tests b{display:block;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);font-weight:500;margin-bottom:4px}
.adds-note{margin-top:36px;max-width:760px;border-top:1px solid var(--line);padding-top:22px}
.adds-note p{color:var(--ink-2);font-size:16px}
.adds-note p b{color:var(--ink);font-weight:500}
.adds-note .link{font-size:15px;margin-top:10px}
@media (max-width:768px){.included{grid-template-columns:1fr}}

/* skip link (pre-launch audit, 22 Oct 2026) */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 4px; font-size: 14px; }
.skip:focus { top: 12px; }

/* article furniture: contents, steps, data tables, related reading (23 Oct 2026) */
.prose .toc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0 6px; margin: 0 0 32px; }
.prose .toc-h { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.prose .toc ol { list-style: decimal; padding-left: 20px; margin: 0; }
.prose .toc li { font-size: 15px; line-height: 1.5; margin-bottom: 8px; }
.prose .toc li::marker { color: var(--ink-3); }
.prose h2[id], .prose h3[id] { scroll-margin-top: 96px; }
.prose ol.steps-list { list-style: decimal; padding-left: 22px; margin: 0 0 22px; }
.prose .table-wrap { overflow-x: auto; margin: 8px 0 26px; }
.prose .data-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.prose .data-table caption { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 10px; }
.prose .data-table th, .prose .data-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.prose .data-table thead th { font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--ink); }
.prose .data-table tbody th { font-weight: 500; color: var(--ink); }
.prose .related { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 36px; }
.prose .related ul { list-style: none; padding: 0; margin: 0; }
.prose .related li { font-size: 16px; margin-bottom: 10px; }
.prose .post-sources p { font-size: 13px; margin-bottom: 8px; }
.prose .post-sources ol { list-style: decimal; padding-left: 18px; margin: 0; }
.prose .post-sources li { font-size: 13px; line-height: 1.6; color: var(--ink-3); margin-bottom: 6px; overflow-wrap: anywhere; }
.prose .post-sources a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(42,36,32,.3); }

.prose .toc li { margin-bottom: 0; }
.prose .toc a { display: inline-block; padding: 11px 0; }
.prose .post-summary + .toc { border-top: 0; padding-top: 0; }
.prose .pkg-hero-cta { justify-content: flex-start; margin-top: 34px; }
.prose .cred-quote.formula { font-style: normal; font-size: 20px; letter-spacing: .01em; }

@media (max-width: 480px) { .prose .data-table { font-size: 13.5px; } .prose .data-table th, .prose .data-table td { padding-right: 8px; } }
.pkg-hero-cta.cta-left { justify-content: flex-start; margin-top: 38px; }
.prose .author-box { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 36px; }
.prose .author-box p:last-child { font-size: 15px; line-height: 1.65; margin: 0; }

/* final QA fixes (24 Oct 2026) */
html { scroll-padding-top: 96px; }
.burger { flex: none; }
input, textarea, select { font-size: 16px; }
nav#nav.menu-open .nav-links a[aria-current] { color: var(--ink); }
.prose .talk-secondary { display: inline-block; padding: 10px 0; }
.cookie-banner .btn { min-height: 44px; }
.prose .post-list h2.post-card-title { margin: 0; font-size: 28px; }
.mt-34 { margin-top: 34px; }
@media (max-width: 768px) {
  nav#nav.menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; }
  footer .fbot { padding-bottom: 72px; }
  .fcol a { padding: 6px 0; margin-bottom: 3px; }
}
@media (max-width: 380px) { .logo span { font-size: 17px; } }
.prose.prose-wide { max-width: 820px; } .prose .mb-0 { margin-bottom: 0; } .prose .mt-48 { margin-top: 48px; }
.cookie-banner.menu-hidden { visibility: hidden; }

/* ── accessibility and security fixes (24 Oct 2026, shi.css v9; see _internal a11y-security-fixes-applied.md) ── */
/* A1: focus ring on dark surfaces (hero, footer, nav while transparent over the hero) */
#hero :focus-visible,
footer :focus-visible,
nav#nav:not(.solid):not(.light):not(.menu-open) :focus-visible { outline-color: var(--paper); }
.wa-float:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--paper), 0 10px 24px -8px rgba(0,0,0,.35); }
/* A3: hero foot back in the flow on phones, so the CTA can never overlap it */
@media (max-width: 768px) {
  #hero { flex-direction: column; }
  .hero-inner { padding-bottom: 40px; }
  .hero-foot { position: relative; bottom: auto; left: auto; right: auto; align-self: stretch; margin-top: auto; padding-bottom: 28px; }
  /* A2: lift the cookie banner clear of the WhatsApp float */
  .cookie-banner { bottom: 88px; }
}
/* A4: the one button inside prose keeps button colours */
.prose .btn-primary { color: #fff; text-decoration: none; }
/* A5: inline links that would otherwise differ only by being links */
.lede a:not(.link):not(.btn), .meta a:not(.link):not(.btn), .fbot a, .cookie-banner p a, .form-status a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fbot a:hover { color: var(--paper); }
/* A6: biomarker rows are li > button.bio-btn */
.bio-btn { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between;
  align-items: baseline; gap: 16px; padding: 12px 0; cursor: pointer; font-size: 15px; }
.bio-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 768px) { .bio-btn { flex-wrap: wrap; row-gap: 0; } }
/* A7: reflow at 320 px */
.sys-head { flex-wrap: wrap; row-gap: 2px; }
.sys-head .meta { white-space: normal; }
.prose a[href^="mailto:"], .begin .addr { overflow-wrap: anywhere; }
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; line-height: 1.25; } }
/* A16: a section heading at h2 level, drawn at h3 size */
.h3-size { font-size: clamp(24px, 2.4vw, 28px); line-height: 1.15; }
/* A17: scrollable data tables are focusable regions */
.prose .table-wrap:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* skip link pinned to the viewport, so it is visible whenever it has focus, however far down the page */
.skip { position: fixed; }
/* M2: enquiry-form honeypot, off screen and out of the tab order */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* A13: reduced motion, placed last so it beats the component rules */
@media (prefers-reduced-motion: reduce) {
  .bio-modal, .bio-overlay, .bio-overlay.open, .nav-links, .nav-links.open, .cookie-banner, .cookie-banner.is-visible {
    transition: none !important; transform: none !important;
  }
}
