/* Layout: a clinic, not a brochure. Clean clinical white and a trusted health-service blue; the one dark object on the page is
   the radiology light box, where the visitor drags between the first view and the second view of the same scan. */
:root {
  --paper: #F2F5F7;
  --surface: #FFFFFF;
  --surface-2: #E8EDEE;
  --ink: #212B32;
  --ink-2: #4C6272;
  --muted: #687B89;
  --line: #D8DDE0;
  --line-strong: #AEB7BD;
  --brand: #005EB8;
  --brand-hover: #004C99;
  --on-brand: #FFFFFF;
  --brand-ink: #005EB8;
  --brand-soft: #E3EEF8;
  --mint: #41B6E6;
  --alert: #C8401F;
  --alert-soft: #FBE5DF;
  --live: #009639;
  --warm: #FFF6DD;
  --warm-ink: #5A4100;
  --warm-accent: #FFB81C;
  --stage: #E7EDF3;
  --stage-dot: rgba(0, 94, 184, .10);
  --scrim: rgba(5, 12, 25, .6);
  --shadow: 0 1px 2px rgba(33, 43, 50, .05), 0 10px 30px -10px rgba(33, 43, 50, .16);
  --shadow-lg: 0 2px 6px rgba(33, 43, 50, .06), 0 32px 64px -24px rgba(33, 43, 50, .32);

  /* The light box stays film black; the bold bands are a deep health-service blue */
  --film: #050B14;
  --film-2: #003087;
  --deep: #00204F;
  --film-line: rgba(255, 255, 255, .14);
  --film-raise: rgba(255, 255, 255, .06);
  --on-film: #FFFFFF;
  --on-film-2: #C3D3E8;

  /* Documents and app screens inside the page are paper in both themes */
  --doc-bg: #FFFFFF;
  --doc-under: #CDD6DD;
  --doc-ink: #212B32;
  --doc-strong: #003087;
  --doc-muted: #5F7180;
  --doc-line: #D8DDE0;
  --doc-chip: #EEF2F5;
  --doc-mark: rgba(255, 184, 28, .5);
  --doc-brand: #005EB8;
  --doc-brand-soft: #E3EEF8;

  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-sign: "Mrs Saint Delafield", "Snell Roundhand", cursive;

  --radius: 14px;
  --header-h: 70px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A1220; --surface: #0F1A2B; --surface-2: #15233A; --ink: #E8EEF5; --ink-2: #B9C6D6; --muted: #8798AD;
    --line: #1E2D45; --line-strong: #2C3F5C; --brand: #4A9BE8; --brand-hover: #63ABEE; --on-brand: #031326;
    --brand-ink: #7DB8F0; --brand-soft: rgba(74,155,232,.15); --alert: #F08A6E; --alert-soft: rgba(240,138,110,.14);
    --live: #3CC46E; --warm: #1A1608; --warm-ink: #F2D48A; --warm-accent: #FFB81C;
    --stage: #0D1828; --stage-dot: rgba(255,255,255,.06); --scrim: rgba(0,0,0,.7);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -10px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.3), 0 32px 64px -24px rgba(0,0,0,.75);
    --film: #03070E; --film-2: #0A2350; --deep: #061530; --doc-under: #6F8094;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A1220; --surface: #0F1A2B; --surface-2: #15233A; --ink: #E8EEF5; --ink-2: #B9C6D6; --muted: #8798AD;
  --line: #1E2D45; --line-strong: #2C3F5C; --brand: #4A9BE8; --brand-hover: #63ABEE; --on-brand: #031326;
  --brand-ink: #7DB8F0; --brand-soft: rgba(74,155,232,.15); --alert: #F08A6E; --alert-soft: rgba(240,138,110,.14);
  --live: #3CC46E; --warm: #1A1608; --warm-ink: #F2D48A; --warm-accent: #FFB81C;
  --stage: #0D1828; --stage-dot: rgba(255,255,255,.06); --scrim: rgba(0,0,0,.7);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -10px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.3), 0 32px 64px -24px rgba(0,0,0,.75);
  --film: #03070E; --film-2: #0A2350; --deep: #061530; --doc-under: #6F8094;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); overflow-x: clip;
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -.022em; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { max-width: 100%; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.section { padding-block: clamp(72px, 9vw, 124px); }
.paper { background: var(--paper); }
.white { background: var(--surface); }
.dark { background: var(--film-2); color: var(--on-film); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-ink);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.dark .eyebrow { color: var(--mint); }

.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 18px clamp(32px, 6vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 60px); }
.sec-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.06; margin-top: 16px; }
.sec-head h2 span { color: var(--brand-ink); }
.dark .sec-head h2 span { color: var(--mint); }
.sec-head p { color: var(--ink-2); font-size: 1.0625rem; max-width: 52ch; }
.dark .sec-head p { color: var(--on-film-2); }
@media (max-width: 860px) { .sec-head { grid-template-columns: minmax(0, 1fr); align-items: start; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  }
}

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95rem 1.35rem; border-radius: 12px; border: 1px solid transparent; overflow: hidden;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 24px -12px rgba(0, 94, 184, .8); }
.btn-primary:hover { background: var(--brand-hover); box-shadow: 0 14px 30px -12px rgba(0, 94, 184, .9); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); transform: translateX(-120%); }
.btn-primary:hover::after { transform: translateX(120%); transition: transform .7s ease; }
.btn-quiet { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-quiet:hover { border-color: var(--ink-2); }
.btn-film { background: var(--mint); color: #031326; }
.btn-film:hover { background: #6CC8EE; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); transition: box-shadow .3s ease; }
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); }
}
.site-header.scrolled { box-shadow: 0 10px 30px -22px rgba(33, 43, 50, .5); }
.scroll-line { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; line-height: 1.05; }
.brand-name span { display: block; font-weight: 400; color: var(--muted); }
.brand-name small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); margin-left: auto; }
.nav a { position: relative; color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500; transition: color .15s; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s var(--ease); }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-cta { padding: .7rem 1.05rem; font-size: .9375rem; box-shadow: none; }
.menu-btn { display: none; margin-left: 4px; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }
.cta-short { display: none; }
@media (max-width: 940px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
         background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px clamp(16px, 4vw, 40px) 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav { max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; }
  .nav a { padding: 14px 0; border-top: 1px solid var(--line); font-size: 1.0625rem; }
  .nav a::after { display: none; }
  .nav a:first-child { border-top: 0; }
  .menu-btn { display: inline-flex; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 520px) {
  .header-inner { gap: 10px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand-name { font-size: 1.05rem; }
  .header-cta { padding: .65rem .75rem; }
  .header-cta, .menu-btn { flex-shrink: 0; }
  .brand-name small { display: none; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(800px 520px at 82% 40%, var(--brand-soft), transparent 70%), var(--paper); padding-block: clamp(40px, 6vw, 84px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .875rem; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow); }
.hero-kicker b { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.4rem, 4.3vw, 3.65rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin-top: 24px; }
.hero h1 span { color: var(--brand-ink); }
.hero h1 .hl { position: relative; white-space: nowrap; color: inherit; isolation: isolate; }
.hero h1 .hl::after { content: ""; position: absolute; left: -2px; right: -4px; bottom: .06em; height: .32em; background: var(--doc-mark); z-index: -1; border-radius: 2px; transform-origin: 0 50%; animation: hl-in .9s var(--ease) .5s both; }
@keyframes hl-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero .lede { margin-top: 24px; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-assure { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: .9063rem; color: var(--ink-2); }
.hero-assure span { display: inline-flex; align-items: center; gap: 7px; }
.hero-assure svg { width: 17px; height: 17px; color: var(--brand); }

/* Light box: first view vs second view */
.lightbox-wrap { position: relative; width: 100%; max-width: 540px; justify-self: end; }
@media (max-width: 980px) { .lightbox-wrap { justify-self: center; } }
.viewer { position: relative; background: var(--film); color: var(--on-film); border-radius: 22px; padding: 10px; box-shadow: 0 50px 90px -40px rgba(3, 20, 45, .7), 0 0 0 1px rgba(255, 255, 255, .05) inset; animation: rise 1s var(--ease) .1s both; }
@keyframes rise { from { transform: translateY(24px); opacity: .3; } to { transform: none; opacity: 1; } }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px 12px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-film-2); white-space: nowrap; }
.viewer-bar .lights { display: inline-flex; gap: 6px; }
.viewer-bar .lights i { width: 9px; height: 9px; border-radius: 50%; background: #1E2A3D; }
.viewer-bar .lights i:first-child { background: var(--mint); box-shadow: 0 0 10px rgba(65, 182, 230, .8); }
.viewer-bar .meta { overflow: hidden; text-overflow: ellipsis; }
.compare { position: relative; aspect-ratio: 5 / 5.6; border-radius: 14px; overflow: hidden; background: #000; --pos: 50%; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.layer { position: absolute; inset: 0; }
.layer > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.layer.second { clip-path: inset(0 0 0 var(--pos)); }
.layer.second .xr { filter: contrast(1.18) brightness(1.06) saturate(1.2); }
.layer.second::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(65, 182, 230, .10), transparent 40%); z-index: 1; pointer-events: none; }
.anno { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.anno .ln { stroke: var(--mint); stroke-width: 2; fill: none; stroke-linecap: round; }
.anno .ring { stroke: var(--mint); stroke-width: 2.4; fill: rgba(65, 182, 230, .08); stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.2s ease 1.9s forwards; }
.anno text { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; fill: var(--mint); }
.anno .bg { fill: rgba(4, 10, 20, .78); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.xtag { position: absolute; top: 12px; z-index: 3; max-width: 46%; padding: 9px 11px; border-radius: 10px; background: rgba(5, 11, 22, .82); backdrop-filter: blur(4px); font-size: .78rem; line-height: 1.35; }
.xtag span { display: block; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 3px; }
.xtag b { font-weight: 600; color: var(--on-film); }
.xtag.first { left: 12px; border: 1px solid rgba(232, 128, 107, .55); }
.xtag.first span { color: #F09A86; }
.xtag.second { right: 12px; border: 1px solid rgba(65, 182, 230, .6); }
.xtag.second span { color: var(--mint); }
.vlabel { position: absolute; bottom: 12px; z-index: 3; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; padding: 4px 8px; border-radius: 5px; background: rgba(5, 11, 22, .7); }
.vlabel.l { left: 12px; color: #F09A86; }
.vlabel.r { right: 12px; color: var(--mint); }
.handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--mint); box-shadow: 0 0 14px rgba(65, 182, 230, .8); z-index: 4; pointer-events: none; }
.grip { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: var(--mint); color: #031326; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.grip svg { width: 22px; height: 22px; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 5; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.compare:has(input:focus-visible) .grip { outline: 3px solid #fff; outline-offset: 3px; }
.viewer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 8px 4px; }
.doc-who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.doc-who .av { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #10294A; color: var(--mint); font-family: var(--font-display); font-weight: 600; font-size: .9rem; flex-shrink: 0; }
.doc-who div { min-width: 0; }
.doc-who b { display: block; font-size: .875rem; font-weight: 600; }
.doc-who span { display: block; font-size: .75rem; color: var(--on-film-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signed { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(65, 182, 230, .14); color: var(--mint); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.signed svg { width: 14px; height: 14px; }
.float-chip { position: absolute; left: -26px; bottom: 96px; z-index: 6; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 9px; border-radius: 999px; background: var(--doc-bg); color: var(--doc-ink); font-size: .8125rem; font-weight: 600; box-shadow: 0 18px 36px -14px rgba(3, 20, 45, .55); white-space: nowrap; animation: pop-in .6s cubic-bezier(.2, .9, .3, 1.3) 1.2s both; }
.float-chip i { width: 24px; height: 24px; border-radius: 50%; background: var(--doc-brand); color: #fff; display: grid; place-items: center; }
.float-chip i svg { width: 14px; height: 14px; }
@keyframes pop-in { from { transform: scale(.7) translateY(8px); opacity: .2; } to { transform: none; opacity: 1; } }
.lightbox-cap { margin-top: 12px; text-align: center; font-size: .8125rem; color: var(--muted); }
@media (max-width: 560px) { .float-chip { left: 8px; bottom: auto; top: -30px; } .xtag { max-width: 47%; font-size: .72rem; padding: 7px 9px; } }

.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof > div { padding: 22px 22px 22px 0; min-width: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.proof > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.proof i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.proof i svg { width: 20px; height: 20px; }
.proof strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.25; letter-spacing: -.01em; }
.proof span { display: block; margin-top: 2px; font-size: .875rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 980px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof > div, .proof > div + div { padding: 18px 14px 18px 0; border-left: 0; }
  .proof > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .proof > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) { .proof > div { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* Who it's for */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cases { grid-template-columns: minmax(0, 1fr); } }
.case { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: border-color .2s, transform .2s, box-shadow .2s; min-width: 0; }
.case:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.case .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--brand-ink); }
.case .ic svg { width: 23px; height: 23px; }
.case h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.015em; }
.case p { margin-top: 6px; color: var(--ink-2); font-size: .9375rem; }

/* How it works: sticky story */
.story { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.story-stage {
  position: sticky; top: calc(var(--header-h) + 32px); height: min(560px, calc(100vh - var(--header-h) - 64px)); min-height: 440px;
  border-radius: 22px; background-color: var(--stage); overflow: hidden; border: 1px solid var(--line);
  background-image: radial-gradient(var(--stage-dot) 1px, transparent 1px); background-size: 18px 18px;
}
.stage-meta { position: absolute; left: 20px; right: 20px; top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; z-index: 3; white-space: nowrap; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stage-dots { display: flex; gap: 6px; }
.stage-dots i { width: 22px; height: 3px; border-radius: 3px; background: var(--line-strong); transition: background .3s, width .3s; }
.stage-dots i.on { background: var(--brand); width: 34px; }
.scene > * { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.scene { position: absolute; inset: 44px 20px 20px; display: block; overflow: visible; opacity: 0; transition: opacity .55s var(--ease), translate .55s var(--ease); translate: 0 16px; pointer-events: none; }
.scene.on { opacity: 1; translate: 0 0; }
.story-steps { display: grid; }
.sstep { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-block: 24px; opacity: .4; transition: opacity .4s ease; }
.sstep:first-child { min-height: 44vh; justify-content: flex-start; padding-top: 56px; }
.sstep:last-child { min-height: 52vh; }
.sstep.on { opacity: 1; }
.sstep .num { font-family: var(--font-mono); font-size: .8125rem; color: var(--brand-ink); display: flex; align-items: center; gap: 12px; }
.sstep .num::after { content: ""; width: 40px; height: 1px; background: currentColor; }
.sstep h3 { font-size: clamp(1.7rem, 2.6vw, 2.15rem); line-height: 1.1; margin-top: 14px; }
.sstep p { margin-top: 12px; color: var(--ink-2); font-size: 1.0625rem; max-width: 42ch; }
@media (max-width: 900px) {
  .story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-stage { top: calc(var(--header-h) + 10px); height: min(360px, 38vh); height: min(360px, 38svh); min-height: 0; z-index: 5; box-shadow: 0 0 0 10px var(--paper); }
  .scene { inset: 40px 12px 12px; }
  .stage-meta { left: 14px; right: 14px; top: 14px; }
  #stage-label { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .sstep, .sstep:first-child, .sstep:last-child { min-height: 52vh; padding-top: 32px; justify-content: flex-start; opacity: 1; }
}
@media (max-width: 900px) and (max-height: 600px), (pointer: coarse) and (max-height: 600px) {
  .story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-stage { position: relative; top: auto; height: 260px; min-height: 0; }
  .scene { inset: 40px 12px 12px; }
  .stage-meta { left: 14px; right: 14px; top: 14px; }
  #stage-label { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .sstep, .sstep:first-child, .sstep:last-child { min-height: 0; padding-block: 28px; justify-content: flex-start; opacity: 1; }
}

/* Paper documents and app screens used in the story */
.doc { position: relative; background: var(--doc-bg); color: var(--doc-ink); border-radius: 6px; padding: 22px 24px; font-size: .78rem; line-height: 1.5; box-shadow: var(--shadow-lg); }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--doc-strong); }
.doc-brand { font-family: var(--font-display); font-weight: 700; font-size: .98rem; letter-spacing: -.02em; color: var(--doc-strong); line-height: 1.2; }
.doc-brand small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--doc-muted); margin-top: 3px; }
.doc-ref { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; line-height: 1.55; text-align: right; color: var(--doc-muted); white-space: nowrap; }
.doc-ref b { color: var(--doc-strong); font-weight: 500; }
.doc .lbl { display: block; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; color: var(--doc-muted); margin-bottom: 4px; }
.doc-block { padding-top: 11px; }
.doc-q p { font-family: var(--font-serif); font-style: italic; font-size: 1rem; line-height: 1.38; color: var(--doc-strong); }
.mark { background-image: linear-gradient(var(--doc-mark), var(--doc-mark)); background-repeat: no-repeat; background-position: 0 88%; background-size: 100% 48%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.doc-steps ol { counter-reset: s; display: grid; gap: 3px; }
.doc-steps li { counter-increment: s; display: grid; grid-template-columns: 18px 1fr; }
.doc-steps li::before { content: counter(s) "."; font-family: var(--font-mono); font-size: .68rem; color: var(--doc-muted); }
.doc-sign { display: flex; align-items: flex-end; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--doc-line); }
.sig { font-family: var(--font-sign); font-size: 2.1rem; line-height: .8; color: var(--doc-strong); transform: rotate(-5deg); padding: 0 4px 4px 0; white-space: nowrap; }
.doc-sign p { font-size: .72rem; line-height: 1.4; color: var(--doc-muted); }
.doc-sign p strong { color: var(--doc-ink); font-weight: 600; font-size: .78rem; }
.doc-full { width: 400px; }
.scene.on .doc-full .mark { animation: mark-in 1.1s cubic-bezier(.4, 0, .2, 1) .5s both; }
.scene.on .doc-full .sig { animation: sign 1.4s steps(18, end) 1.2s both; }
@keyframes mark-in { from { background-size: 0% 48%; } to { background-size: 100% 48%; } }
@keyframes sign { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.ui { width: 400px; background: var(--doc-bg); color: var(--doc-ink); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 18px; font-size: .84rem; }
.ui-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--doc-line); }
.ui-head b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--doc-strong); }
.ui-head span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; color: var(--doc-muted); }
.ui-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: .74rem; color: var(--doc-muted); font-family: var(--font-mono); letter-spacing: .04em; }
.ui-foot b { color: var(--doc-brand); font-weight: 500; }
.up-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 20px; gap: 12px; align-items: center; padding-block: 10px; }
.ft { width: 38px; height: 44px; border-radius: 6px; background: var(--doc-chip); display: grid; place-items: end center; padding-bottom: 6px; font-family: var(--font-mono); font-size: .56rem; font-weight: 500; color: var(--doc-strong); position: relative; }
.ft::before { content: ""; position: absolute; right: 0; top: 0; width: 10px; height: 10px; background: linear-gradient(225deg, var(--doc-bg) 50%, var(--doc-line) 50%); border-radius: 0 6px 0 0; }
.up-row strong { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: .8rem; }
.up-row strong em { font-style: normal; font-weight: 400; color: var(--doc-muted); font-family: var(--font-mono); font-size: .68rem; }
.bar { display: block; height: 5px; border-radius: 5px; background: var(--doc-chip); margin-top: 7px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--doc-brand), #41B6E6); }
.tick-s { width: 20px; height: 20px; border-radius: 50%; background: var(--doc-brand); color: #fff; display: grid; place-items: center; }
.tick-s svg { width: 12px; height: 12px; }
.scene.on .bar span { animation: fill 1.3s var(--ease) var(--d, 0s) both; }
.scene.on .up-row .tick-s { animation: pop .4s cubic-bezier(.2, .9, .3, 1.4) calc(var(--d, 0s) + 1.2s) both; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.match { display: grid; gap: 14px; width: 420px; }
.case-pill { justify-self: center; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--doc-bg); color: var(--doc-ink); box-shadow: var(--shadow); font-size: .8rem; }
.case-pill code { font-family: var(--font-mono); font-size: .68rem; color: var(--doc-muted); }
.route { justify-self: center; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); display: grid; justify-items: center; gap: 6px; }
.route::before, .route::after { content: ""; width: 1px; height: 22px; background: linear-gradient(var(--brand), transparent); }
.route::after { background: linear-gradient(transparent, var(--brand)); }
.scene.on .route::before, .scene.on .route::after { animation: grow .5s var(--ease) both; transform-origin: top; }
.scene.on .route::after { animation-delay: .35s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.cands { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 10px; align-items: center; }
.cand-dim { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; background: var(--surface-2); color: var(--muted); opacity: .75; border: 1px dashed var(--line-strong); }
.cand { background: var(--doc-bg); color: var(--doc-ink); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-lg); border: 2px solid var(--doc-brand); position: relative; }
.scene.on .cand { animation: pick .6s cubic-bezier(.2, .9, .3, 1.2) .55s both; }
@keyframes pick { from { transform: scale(.9); opacity: .4; } to { transform: none; opacity: 1; } }
.cand-top { display: flex; gap: 12px; align-items: center; }
.av { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: var(--doc-strong); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; flex-shrink: 0; }
.cand h4 { font-size: 1.05rem; line-height: 1.2; color: var(--doc-strong); }
.cand .cr { font-family: var(--font-mono); font-size: .66rem; color: var(--doc-muted); }
.cand ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cand li { font-size: .72rem; padding: 3px 8px; border-radius: 999px; background: var(--doc-chip); }
.matched { position: absolute; top: -11px; right: 12px; background: var(--doc-brand); color: #fff; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.scene.on .matched { animation: pop .4s cubic-bezier(.2, .9, .3, 1.4) 1.05s both; }

.review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; width: 460px; align-items: center; }
.mini-box { position: relative; width: 100%; border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.mini-box > svg { width: 100%; height: 100%; display: block; }
.mini-box .scan { position: absolute; left: 0; right: 0; height: 40px; top: -40px; background: linear-gradient(transparent, rgba(65, 182, 230, .38), transparent); }
.scene.on .mini-box .scan { animation: scan 2.6s ease-in-out .3s 2 both; }
@keyframes scan { from { top: -40px; } to { top: 100%; } }
.mini-box .tagm { position: absolute; left: 10px; top: 10px; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; color: #9FB2C8; }
.mini-ring { fill: none; stroke: var(--mint); stroke-width: 3; stroke-dasharray: 260; stroke-dashoffset: 0; }
.scene.on .mini-ring { animation: draw-from 1s ease 1.4s both; }
@keyframes draw-from { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
.mini-note { position: absolute; left: 8px; right: 8px; bottom: 10px; font-size: .68rem; color: #D5ECF8; background: rgba(4, 10, 20, .78); border: 1px solid rgba(65, 182, 230, .5); border-radius: 6px; padding: 6px 8px; }
.checklist { background: var(--doc-bg); color: var(--doc-ink); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.checklist .lbl2 { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--doc-muted); margin-bottom: 6px; }
.checklist li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-block: 8px; border-top: 1px solid var(--doc-line); font-size: .8rem; }
.checklist li:first-of-type { border-top: 0; }
.checklist li .tick-s { width: 18px; height: 18px; }
.scene.on .checklist .tick-s { animation: pop .35s cubic-bezier(.2, .9, .3, 1.4) var(--d, 0s) both; }
.checklist .by { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--doc-line); font-size: .72rem; color: var(--doc-muted); }
.checklist .by b { color: var(--doc-ink); }

.next { display: grid; gap: 12px; width: 420px; }
.minimap { position: relative; height: 170px; border-radius: 14px; overflow: hidden; background: #E8EEF3; box-shadow: var(--shadow-lg); }
.minimap svg { width: 100%; height: 100%; display: block; }
.pin { position: absolute; left: 56%; top: 30%; width: 34px; height: 34px; transform: translate(-50%, -100%); color: var(--doc-brand); filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25)); }
.pin svg { width: 100%; height: 100%; }
.scene.on .pin { animation: drop .7s cubic-bezier(.3, 1.4, .5, 1) .3s both; }
@keyframes drop { from { transform: translate(-50%, -260%); opacity: 0; } to { transform: translate(-50%, -100%); opacity: 1; } }
.pin-pulse { position: absolute; left: 56%; top: 30%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: rgba(0, 94, 184, .35); }
.scene.on .pin-pulse { animation: ping 1.8s ease-out 1s infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(3.4); opacity: 0; } }
.mm-city { position: absolute; left: 12px; bottom: 10px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #4C6272; background: rgba(255, 255, 255, .85); padding: 3px 7px; border-radius: 4px; }
.row-card { display: flex; align-items: center; gap: 12px; background: var(--doc-bg); color: var(--doc-ink); border-radius: 12px; padding: 13px 14px; box-shadow: var(--shadow); }
.row-card .ri { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--doc-brand-soft); color: var(--doc-brand); flex-shrink: 0; }
.row-card .ri svg { width: 19px; height: 19px; }
.row-card b { display: block; font-size: .84rem; }
.row-card span { font-size: .74rem; color: var(--doc-muted); }
.scene.on .row-card { animation: slide-up .5s var(--ease) var(--d, 0s) both; }
@keyframes slide-up { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

.prep { margin-top: clamp(48px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); }
.prep h3 { font-size: 1.3rem; }
.prep h3 + p { color: var(--muted); font-size: .9375rem; margin-top: 6px; }
.prep ul { display: flex; flex-wrap: wrap; gap: 10px; }
.prep li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); font-size: .9375rem; }
.prep li svg { width: 16px; height: 16px; color: var(--brand); }
@media (max-width: 760px) { .prep { grid-template-columns: minmax(0, 1fr); } }

/* Wherever you live (dark band) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.benefits li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding-block: 22px; border-top: 1px solid var(--film-line); }
.benefits li:first-child { border-top: 0; padding-top: 0; }
.benefits .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--film-raise); border: 1px solid var(--film-line); color: var(--mint); }
.benefits .ic svg { width: 21px; height: 21px; }
.benefits h3 { font-size: 1.2rem; line-height: 1.25; }
.benefits p { margin-top: 6px; color: var(--on-film-2); font-size: .98rem; }
.benefits a { color: var(--mint); text-underline-offset: 3px; }
.countries { background: var(--film-raise); border: 1px solid var(--film-line); border-radius: 18px; padding: clamp(22px, 3vw, 32px); }
.countries h3 { font-size: 1.35rem; }
.countries > p { color: var(--on-film-2); font-size: .9375rem; margin-top: 6px; }
.cgroup { margin-top: 26px; }
.cgroup-label { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-film-2); margin-bottom: 12px; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mint); animation: ping 2s ease-out infinite; }
.dot.build { background: transparent; border: 1.5px dashed var(--on-film-2); }
.dot.build::after { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 9px; border: 1px solid var(--film-line); background: var(--film-raise); font-size: .9063rem; color: var(--on-film); cursor: pointer; transition: border-color .15s, transform .15s; }
.chip:hover { border-color: var(--mint); transform: translateY(-1px); }
.chip code { font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .04em; padding: 2px 5px; border-radius: 4px; background: rgba(65, 182, 230, .16); color: var(--mint); }
.chip.build { border-style: dashed; color: var(--on-film-2); background: transparent; }
.chip.build code { background: transparent; border: 1px solid var(--film-line); color: var(--on-film-2); }
.countries .note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--film-line); color: var(--on-film-2); font-size: .875rem; }

/* Specialties */
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
.spec { position: relative; padding-block: 22px 26px; border-top: 1px solid var(--line-strong); min-width: 0; }
.spec::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.spec:hover::before { transform: scaleX(1); }
.spec h3 { font-size: 1.15rem; line-height: 1.2; }
.spec p { margin-top: 8px; color: var(--ink-2); font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; line-height: 1.45; }
.spec p::before { content: "\201C"; }
.spec p::after { content: "\201D"; }
.spec.more h3 { color: var(--brand-ink); }
.spec.more p { font-family: var(--font-body); font-style: normal; font-size: .9375rem; }
.spec.more p::before, .spec.more p::after { content: none; }
.spec.more button { margin-top: 12px; padding: 0; border: 0; background: none; color: var(--brand-ink); font-weight: 600; font-size: .9375rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.spec.more button svg { width: 16px; height: 16px; }
@media (max-width: 1000px) { .spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; } }
@media (max-width: 440px) { .spec-grid { grid-template-columns: minmax(0, 1fr); } }

/* Doctors */
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .panel-grid { grid-template-columns: minmax(0, 1fr); } }
.doctor { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); transition: border-color .2s, box-shadow .2s, transform .2s; min-width: 0; overflow: hidden; isolation: isolate; }
.doctor::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), var(--brand-soft), transparent 60%); opacity: 0; transition: opacity .3s; }
.doctor:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.doctor:hover::before { opacity: 1; }
.doctor-specialty { color: var(--brand-ink); font-weight: 600; font-size: .875rem; margin-bottom: 12px; }
.doctor h3 { font-size: clamp(1.45rem, 2.3vw, 1.85rem); line-height: 1.2; }
.doctor-role { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: var(--ink-2); font-size: .9375rem; margin-top: 8px; }
.doctor-role span { font-family: var(--font-mono); font-size: .8rem; }
.doctor-bio { margin-top: 22px; color: var(--ink-2); font-size: .9688rem; line-height: 1.65; }
.doctor h4 { font-size: .8125rem; font-weight: 600; margin-bottom: 10px; }
.doctor-focus { margin-top: 24px; padding-bottom: 24px; }
.doctor-focus ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.doctor-focus li { padding: 6px 10px; background: var(--brand-soft); color: var(--brand-ink); border-radius: 7px; font-size: .8125rem; line-height: 1.4; }
.doctor-education { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.doctor-education p { color: var(--ink-2); font-size: .875rem; line-height: 1.65; }
.fine { margin-top: 24px; font-size: .8438rem; color: var(--muted); font-style: italic; }
.fine a { color: var(--brand-ink); }

/* Network */
.net-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 22px; }
.net-bar label { font-weight: 600; font-size: .9688rem; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; min-width: 240px; max-width: 100%; padding: .78rem 2.6rem .78rem 1rem; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 500; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: .875rem; }
.status svg { width: 15px; height: 15px; }
.net-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.net-panel h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); line-height: 1.2; }
.net-panel > p { color: var(--ink-2); margin-top: 8px; max-width: 70ch; }
.net-panel.swap > * { animation: slide-up .45s var(--ease) both; }
.clinics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
@media (max-width: 900px) { .clinics { grid-template-columns: minmax(0, 1fr); } }
.clinic { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--paper); display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: border-color .2s, transform .2s; }
.clinic:hover { border-color: var(--brand); transform: translateY(-2px); }
.clinic .city { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.clinic .city svg { width: 13px; height: 13px; }
.clinic h4 { font-size: 1.1rem; line-height: 1.25; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: .78rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); }
.clinic .checked { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line-strong); font-size: .8rem; color: var(--brand-ink); display: flex; align-items: center; gap: 6px; font-weight: 600; }
.clinic .checked svg { width: 14px; height: 14px; }
.waitlist { text-align: center; padding-block: 12px; }
.waitlist > * + * { margin-top: 12px; }
.waitlist p { color: var(--ink-2); max-width: 62ch; margin-inline: auto; }
.inline-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px !important; }
.inline-form input { flex: 1 1 240px; max-width: 320px; min-width: 0; padding: .9rem 1rem; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); }
.inline-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-msg { font-size: .9rem; min-height: 1.2em; }
.form-msg.err { color: var(--alert); }
.form-msg.ok { color: var(--brand-ink); font-weight: 600; }
.independent { margin-top: 24px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 22px; align-items: start; background: var(--film-2); color: var(--on-film); border-radius: 18px; padding: clamp(22px, 3vw, 32px); }
.independent .ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--film-raise); border: 1px solid var(--film-line); color: var(--mint); }
.independent .ic svg { width: 26px; height: 26px; }
.independent h3 { font-size: 1.3rem; }
.independent p { margin-top: 8px; color: var(--on-film-2); max-width: 72ch; }
@media (max-width: 560px) { .independent { grid-template-columns: minmax(0, 1fr); } }

/* Compare */
.compare-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 820px) { .compare-cols { grid-template-columns: minmax(0, 1fr); } }
.col { border-radius: 18px; padding: clamp(24px, 3vw, 34px); }
.col h3 { font-size: 1.3rem; padding-bottom: 16px; }
.col li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding-block: 14px; border-top: 1px solid var(--line); font-size: 1rem; }
.col li svg { width: 18px; height: 18px; margin-top: 3px; }
.col.them { background: var(--surface-2); color: var(--ink-2); }
.col.them h3 { color: var(--muted); }
.col.them svg { color: var(--alert); }
.col.us { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-lg); }
.col.us li { border-color: rgba(255, 255, 255, .18); }
.col.us svg { color: currentColor; }

/* Pricing */
.bands { position: relative; display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--surface-2); border-radius: 14px; width: fit-content; max-width: 100%; isolation: isolate; }
.band-ind { position: absolute; z-index: -1; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); transition: left .35s var(--ease), top .35s var(--ease), width .35s var(--ease), height .35s var(--ease); }
.band { border: 0; background: transparent; padding: .7rem 1.1rem; border-radius: 10px; cursor: pointer; text-align: left; font-size: .9063rem; font-weight: 500; color: var(--ink-2); line-height: 1.3; transition: color .15s; }
.band small { display: block; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.band:hover, .band[aria-selected="true"] { color: var(--ink); }
.band[aria-selected="true"] small { color: var(--brand-ink); }
.band-note { margin-top: 16px; color: var(--ink-2); max-width: 70ch; font-size: .9688rem; min-height: 3em; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 3vw, 32px); min-width: 0; transition: transform .25s var(--ease), box-shadow .25s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 24px 50px -24px rgba(0, 94, 184, .5); }
.pill { position: absolute; top: -13px; left: 28px; background: var(--brand); color: var(--on-brand); font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; }
.plan h3 { font-size: 1.3rem; line-height: 1.2; }
.plan .for { color: var(--muted); font-size: .9063rem; margin-top: 4px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.price .from { font-size: .9375rem; color: var(--muted); }
.price .amt { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 4vw, 3.1rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums lining-nums; }
.price .per { font-size: .875rem; color: var(--muted); }
.plan ul { display: grid; gap: 12px; margin-block: 22px 28px; }
.plan li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: .9688rem; color: var(--ink-2); }
.plan li svg { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.plan .btn { margin-top: auto; }
.price-fine { margin-top: 22px; color: var(--muted); font-size: .875rem; }

/* Charity */
.charity { background: var(--warm); color: var(--warm-ink); }
.charity-inner { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.heart { position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--warm-accent); color: #231F20; }
.heart::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--warm-accent); animation: ping 2.6s ease-out infinite; }
.heart svg { width: 40px; height: 40px; animation: beat 2.6s ease-in-out infinite; }
@keyframes beat { 0%, 30%, 100% { transform: scale(1); } 10% { transform: scale(1.14); } 20% { transform: scale(1.04); } }
.charity h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; }
.charity p { margin-top: 14px; max-width: 64ch; font-size: 1.0625rem; }
@media (max-width: 600px) { .charity-inner { grid-template-columns: minmax(0, 1fr); } .heart { width: 72px; height: 72px; } .heart svg { width: 30px; height: 30px; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) { .faq-intro { position: static; } }
.faq-intro h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.06; margin-top: 16px; }
.faq-intro p { color: var(--ink-2); margin-top: 16px; }
.faq-intro .btn { margin-top: 24px; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 22px; font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; font-size: 1.15rem; line-height: 1.3; transition: color .15s; }
.faq summary:hover { color: var(--brand-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex-shrink: 0; transition: transform .25s var(--ease), background .2s; }
.faq summary .pm svg { width: 14px; height: 14px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--surface-2); }
.faq details p { padding-bottom: 22px; color: var(--ink-2); max-width: 64ch; }
.faq details[open] p { animation: slide-up .35s var(--ease) both; }

/* Final CTA */
.final { position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; right: -120px; top: 50%; width: 520px; height: 520px; margin-top: -260px; border-radius: 50%; border: 1px solid var(--film-line); box-shadow: 0 0 0 60px rgba(65,182,230,.03), 0 0 0 120px rgba(65,182,230,.02); pointer-events: none; }
.final-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: center; }
.final h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.05; }
.final h2 span { color: var(--mint); }
.final p { margin-top: 14px; color: var(--on-film-2); max-width: 56ch; }
@media (max-width: 800px) { .final-inner { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: var(--deep); color: var(--on-film-2); padding-block: 64px 40px; font-size: .9375rem; border-top: 1px solid var(--film-line); }
.site-footer .brand { color: var(--on-film); }
.site-footer .brand-name span, .site-footer .brand-name small { color: var(--on-film-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }
.foot-grid > div > p { margin-top: 14px; max-width: 36ch; }
.foot-grid h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-film); font-weight: 500; margin-bottom: 14px; }
.foot-grid li + li { margin-top: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--on-film); }
.notice { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 820px) { .notice { grid-template-columns: minmax(0, 1fr); } }
.notice div { border: 1px solid var(--film-line); border-radius: 12px; padding: 18px 20px; font-size: .875rem; line-height: 1.55; background: var(--film-raise); }
.notice strong { color: var(--on-film); }
.notice .urgent { border-color: rgba(232, 128, 107, .4); }
.notice .urgent strong { color: #F09A86; }
.legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--film-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .8438rem; }

/* Intake dialog */
dialog.intake { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .55); overflow: hidden; }
dialog.intake[open] { display: flex; flex-direction: column; animation: dlg-in .3s var(--ease); }
dialog.intake > form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
dialog.intake::backdrop { background: var(--scrim); backdrop-filter: blur(4px); }
@keyframes dlg-in { from { transform: translateY(18px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 26px 0; }
.dlg-head h2 { font-size: 1.45rem; line-height: 1.15; }
.dlg-head p { color: var(--muted); font-size: .8125rem; margin-top: 4px; font-family: var(--font-mono); letter-spacing: .04em; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.icon-btn svg { width: 18px; height: 18px; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 18px 26px 0; }
.progress span { position: relative; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress span::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.progress span.on::after { transform: scaleX(1); }
.dlg-body { padding: 22px 26px; overflow-y: auto; flex: 1; min-height: 0; }
.dlg-body fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 18px; }
.dlg-body [data-step]:not([hidden]) { animation: slide-up .35s var(--ease) both; }
.dlg-body legend { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 4px; padding: 0; }
.field-l { display: grid; gap: 7px; }
.field-l > span { font-weight: 600; font-size: .9375rem; }
.field-l > em { font-style: normal; color: var(--muted); font-size: .8438rem; margin-top: -3px; }
.field-l textarea { width: 100%; padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); min-height: 120px; resize: vertical; line-height: 1.5; }
.field-l .select select { width: 100%; min-width: 0; }
.field-l select:focus, .field-l textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-block; padding: .65rem 1rem; border-radius: 10px; border: 1px solid var(--line-strong); font-weight: 500; font-size: .9375rem; transition: border-color .15s, background .15s; }
.seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--mint); outline-offset: 2px; }
.drop { position: relative; border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 24px; text-align: center; background: var(--paper); transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop svg { width: 28px; height: 28px; color: var(--brand); }
.drop strong { display: block; margin-top: 8px; }
.drop small { color: var(--muted); font-size: .8438rem; }
.files { display: grid; gap: 6px; }
.files li { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); animation: slide-up .3s var(--ease) both; }
.files li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.files li span:last-child { color: var(--muted); font-family: var(--font-mono); font-size: .75rem; flex-shrink: 0; }
.opt { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt input { position: absolute; opacity: 0; }
.opt strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.opt small { grid-column: 1; color: var(--muted); font-size: .875rem; }
.opt b { grid-row: 1 / span 2; grid-column: 2; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.opt:has(input:focus-visible) { outline: 3px solid var(--mint); outline-offset: 2px; }
.indicative { font-size: .8438rem; color: var(--warm-ink); }
.dlg-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 26px 22px; border-top: 1px solid var(--line); }
.dlg-foot .err { color: var(--alert); font-size: .875rem; flex: 1; }
.done { text-align: center; padding-block: 12px 4px; }
.done .tick { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); animation: pop .5s cubic-bezier(.2, .9, .3, 1.4) .1s both; }
.done .tick svg { width: 30px; height: 30px; }
.done h3 { font-size: 1.45rem; }
.done p { color: var(--ink-2); margin: 10px auto 0; max-width: 46ch; }
.summary { margin: 20px auto 0; max-width: 420px; text-align: left; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; font-size: .9063rem; border-top: 1px solid var(--line); }
.summary div:first-child { border-top: 0; }
.summary dt { color: var(--muted); }
.summary dd { font-weight: 600; text-align: right; }
.preview-note { margin-top: 18px; font-size: .8125rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anno .ring { stroke-dashoffset: 0; }
}

/* Keep the compact controls comfortable to use on touch screens. */
@media (max-width: 940px), (pointer: coarse) {
  .btn, .chip, .spec.more button { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .foot-grid li a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
  .foot-grid li + li { margin-top: 0; }
}
