/* XHalo360 website styles — "calm clinical futurism" tokens */
:root {
  /* Dark navy theme, matched to openemr.healagetek.com/xhalo360 (sampled 2026-10-13). */
  --bg: #060E1C;          /* page */
  --bg-2: #0A1224;        /* alternate sections, side rails */
  --surface: #0F1628;     /* cards and panels */
  --ivory: #141F36;       /* raised surface inside a card (name kept from the light draft) */
  --ivory-2: #1A2D4A;     /* chips, tracks */
  --paper: #0F1628;
  --ink: #FFFFFF;
  --ink-2: #A0BDE0;
  --ink-3: #7F9CBE;       /* ≥4.5:1 on --surface and --ivory */
  --line: rgba(160, 189, 224, .12);
  --line-2: rgba(160, 189, 224, .22);

  --blue: #3F89F8;        /* brand blue — fills, rings, glows */
  --btn: #2B6FE6;         /* button fill: brand blue deepened so white text clears 4.5:1 */
  --btn-hover: #2560D0;
  --cyan: #2EA3F2;
  --teal: #4FA3F7;        /* accent text on dark (name kept from the light draft) */
  --teal-deep: #98C5F6;
  --teal-soft: rgba(63, 137, 248, .16);
  --violet: #C3A6EE;
  --violet-soft: rgba(155, 109, 206, .20);
  --amber: #F5C77A;
  --amber-soft: rgba(245, 184, 90, .10);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 18px 40px -18px rgba(0,0,0,.7);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.04) inset, 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(63,137,248,.10);

  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); color-scheme: dark;
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.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; }
.muted { color: var(--ink-3); }
.fine { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.proto-banner { background: #000; color: var(--ink-2); border-bottom: 1px solid var(--line); font-size: 12.5px; text-align: center; padding: 7px var(--gutter); letter-spacing: .01em; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(3,7,15,.82); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--s5); height: 64px; }
.brand img { height: 21px; width: auto; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: var(--s6); }
.nav-list a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 2px; white-space: nowrap; }
.nav-list a:hover { color: var(--ink); }
.nav-toggle { display: none; }

.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15.5px; text-decoration: none; border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s; cursor: pointer; }
.btn-primary { background: var(--btn); color: #fff; box-shadow: 0 8px 24px -8px rgba(63,137,248,.55); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { color: var(--teal-deep); border-color: rgba(63,137,248,.6); background: transparent; }
.btn-ghost:hover { border-color: var(--blue); background: rgba(63,137,248,.10); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }

/* ── Hero ── */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 520px at 75% 35%, rgba(63,137,248,.20), transparent 70%), radial-gradient(700px 420px at 95% 85%, rgba(120,80,220,.18), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--teal-deep); background: rgba(63,137,248,.10); border: 1px solid rgba(63,137,248,.28); padding: 6px 14px; border-radius: 999px; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: conic-gradient(var(--cyan), var(--blue), #9C8FE0, var(--cyan)); box-shadow: 0 0 0 3px rgba(91,184,192,.18); }
h1 { font-size: clamp(2.5rem, 4.5vw, 4.5rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 500; margin-top: var(--s5); text-wrap: balance; }
.h1-soft { background: linear-gradient(90deg, #98C5F6, #3F89F8 55%, #9B6DCE); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: var(--s5); font-size: clamp(1.06rem, 1.3vw, 1.22rem); color: var(--ink-2); max-width: 34em; line-height: 1.6; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s6); font-size: 14px; color: var(--ink-3); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 14px; height: 1px; background: var(--teal); }

.hero-visual { position: relative; }
.halo { position: absolute; width: 118%; left: -9%; top: 50%; transform: translateY(-50%); z-index: 0; pointer-events: none; }

.composition { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-areas: "patient day" "rel rel"; gap: var(--s4); }
.pane { background: rgba(15,22,40,.86); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); min-width: 0; }
.pane-patient { grid-area: patient; box-shadow: var(--shadow-lg); }
.pane-day { grid-area: day; }
.pane-rel { grid-area: rel; }
.pane-head { display: flex; align-items: center; gap: var(--s3); }
.pane-head-row { justify-content: space-between; font-size: 13px; }
.pane-title { font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; }
.pane-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.pane-kicker { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-top: var(--s4); }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-size: 14px; color: var(--teal-deep); background: linear-gradient(135deg, var(--teal-soft), var(--violet-soft)); border: 1px solid var(--line); }
.avatar-sm { width: 34px; height: 34px; font-size: 12.5px; }
.src-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); margin-top: var(--s4); padding: 6px 10px; border-radius: 8px; background: var(--ivory); border: 1px solid var(--line); width: fit-content; }
.sep { color: var(--ink-3); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--teal); }
.dot-warn { background: transparent; border: 1.5px solid var(--amber); }

.mini-chart { margin-top: var(--s4); padding: var(--s3) var(--s3) var(--s2); border: 1px solid var(--line); border-radius: var(--radius-sm); background: linear-gradient(180deg, var(--ivory), var(--surface)); }
.mini-chart-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; }
.mini-chart-head .muted { font-weight: 400; }
.mini-chart svg { width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.svg-lbl { font: 600 10px var(--font); fill: var(--ink-2); }

.since { margin-top: var(--s2); display: grid; gap: var(--s2); }
.since li { font-size: 13.5px; line-height: 1.4; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; }
.since .ref { grid-column: 2; font-size: 12px; color: var(--ink-3); }
.tag { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; }
.tag-lab { background: var(--teal-soft); color: var(--teal-deep); }
.tag-visit { background: var(--violet-soft); color: var(--violet); }
.review-note { margin-top: var(--s4); font-size: 12px; color: var(--violet); font-weight: 600; display: flex; gap: 6px; align-items: center; }

.day-list { margin-top: var(--s3); display: grid; gap: 2px; }
.day-list li { display: grid; grid-template-columns: 42px 1fr auto; gap: 8px; align-items: center; font-size: 13px; padding: 7px 0; border-top: 1px solid var(--line); }
.day-list li:first-child { border-top: 0; }
.day-list time { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.day-list span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip-teal { border-color: transparent; background: var(--teal-soft); color: var(--teal-deep); }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: var(--s3) 0 0; }
.counts div { background: var(--ivory); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.counts dt { font-size: 11px; color: var(--ink-3); line-height: 1.25; }
.counts dd { margin: 2px 0 0; font-size: 18px; font-weight: 650; }

.journey { display: flex; margin-top: var(--s4); position: relative; }
.journey li { flex: 1; position: relative; padding-top: 18px; font-size: 11.5px; color: var(--ink-3); text-align: center; min-width: 0; }
.journey li::before { content: ""; position: absolute; top: 5px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line-2); z-index: 1; }
.journey li::after { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 1.5px; background: var(--line-2); }
.journey li:first-child::after { display: none; }
.journey li.done::before { background: var(--teal); border-color: var(--teal); }
.journey li.done::after, .journey li.now::after { background: var(--teal); }
.journey li.now { color: var(--ink); font-weight: 650; }
.journey li.now::before { width: 13px; height: 13px; margin-left: -6.5px; top: 3px; border: 2px solid var(--teal); box-shadow: 0 0 0 4px rgba(31,122,128,.14); }
.journey span { display: block; }
.pane-rel { display: grid; grid-template-columns: 1fr 1.6fr; column-gap: var(--s5); align-items: center; }
.pane-rel .pane-head { grid-column: 1 / -1; }
.pane-rel .journey { grid-column: 2; grid-row: 2 / 4; margin-top: var(--s3); }
.pane-rel .pane-sub, .pane-rel .boundary { grid-column: 1; }
.pane-rel .pane-sub { margin-top: var(--s3); }
.boundary { margin-top: var(--s3); font-size: 12px; color: var(--ink-2); background: var(--ivory); border: 1px dashed var(--line-2); border-radius: 8px; padding: 7px 10px; }

.labels { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0; }
.label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.label-demo { background: var(--ivory-2); color: var(--ink-2); border: 1px solid var(--line); }
.label-concept { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(138,90,0,.2); }

/* ── Patient 360 ── */
.p360 { padding: clamp(64px, 9vw, 128px) 0; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: var(--s7); }
.h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.06; letter-spacing: -.025em; font-weight: 500; margin-top: var(--s4); text-wrap: balance; }
.h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -.02em; font-weight: 650; }
.section-lede { margin-top: var(--s4); font-size: 1.08rem; color: var(--ink-2); max-width: 40em; }

.app-frame { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--ivory), var(--surface)); flex-wrap: wrap; }
.app-id { display: flex; gap: var(--s3); align-items: center; }
.app-name { font-weight: 650; }
.app-meta { font-size: 13px; color: var(--ink-3); }
.tablist { display: flex; gap: 2px; padding: 4px; background: var(--ivory-2); border-radius: 999px; border: 1px solid var(--line); overflow-x: auto; max-width: 100%; }
.tablist [role="tab"] { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; white-space: nowrap; min-height: 38px; }
.tablist [role="tab"][aria-selected="true"] { background: var(--btn); color: #fff; box-shadow: 0 4px 14px -4px rgba(63,137,248,.6); }

.app-body { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 560px; }
.sources { border-right: 1px solid var(--line); padding: var(--s5); background: var(--bg-2); }
.side-title { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; }
.src-details summary { list-style: none; cursor: default; }
.src-details summary::-webkit-details-marker { display: none; }
.src-sum { display: none; }
.source-list { margin-top: var(--s3); display: grid; gap: var(--s2); }
.source-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.source-list li.unavailable { background: var(--amber-soft); border-color: rgba(138,90,0,.22); }
.src-name { font-size: 13.5px; font-weight: 600; display: flex; gap: 7px; align-items: center; }
.src-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.src-status { font-size: 12px; margin-top: 4px; font-weight: 600; }
.src-status.ok { color: var(--teal-deep); }
.src-status.warn { color: var(--amber); }
.side-note { font-size: 12px; color: var(--ink-3); margin-top: var(--s4); line-height: 1.5; }

.panels { padding: var(--s5); min-width: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); flex-wrap: wrap; }
.filters { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; min-height: 36px; }
.fchip[aria-pressed="true"] { background: var(--btn); color: #fff; border-color: var(--btn); }
.fchip .g { font: 700 10px var(--mono); width: 16px; height: 16px; display: grid; place-items: center; border-radius: 4px; background: var(--ivory-2); color: var(--ink-2); }
.fchip[aria-pressed="true"] .g { background: rgba(255,255,255,.18); color: #fff; }
.range { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; background: var(--surface); }
.range button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer; min-height: 32px; white-space: nowrap; }
.range button[aria-pressed="true"] { background: var(--teal-soft); color: var(--teal-deep); }
.result-count { font-size: 13px; color: var(--ink-3); margin: var(--s4) 0 var(--s2); }

.timeline { position: relative; }
.tl-year { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s3); }
.tl-year + .tl-year { margin-top: var(--s2); }
.tl-year-label { font: 650 13px var(--mono); color: var(--ink-3); padding-top: 14px; }
.tl-items { position: relative; border-left: 1.5px solid var(--line-2); padding-left: var(--s4); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: calc(-1 * var(--s4) - 5.5px); top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--teal); }
.tl-item[data-cat="reported"]::before { border-color: var(--violet); border-radius: 2px; }
.tl-item[data-cat="imaging"]::before, .tl-item[data-cat="procedure"]::before { border-color: var(--ink-3); }
.tl-btn { width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.tl-btn:hover { background: var(--ivory); border-color: var(--line); }
.tl-item.open .tl-btn { background: var(--ivory); border-color: var(--line); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.tl-cat { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); background: var(--ivory-2); padding: 2px 7px; border-radius: 5px; }
.tl-title { font-weight: 600; font-size: 14.5px; min-width: 0; }
.tl-date { font: 12.5px var(--mono); color: var(--ink-3); white-space: nowrap; }
.tl-sum { grid-column: 2 / 4; font-size: 13.5px; color: var(--ink-2); }
.tl-caret { display: inline-block; transition: transform .2s; color: var(--ink-3); margin-left: 6px; font-size: 11px; }
.tl-item.open .tl-caret { transform: rotate(90deg); }
.tl-detail { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; padding: 12px 14px 14px; background: var(--surface); font-size: 13.5px; color: var(--ink-2); display: grid; gap: 10px; }
.tl-detail-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.tl-review { font-size: 12.5px; font-weight: 600; color: var(--teal-deep); }
.tl-review.pending { color: var(--amber); }
.tl-src-btn { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 34px; }
.tl-src-btn:hover { border-color: var(--teal); color: var(--teal-deep); }
.empty { padding: var(--s6); text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: 12px; font-size: 14px; }
.empty button { margin-top: 10px; }

.ov-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s4); }
.card { border: 1px solid var(--line); border-radius: 12px; padding: var(--s5); background: var(--surface); }
.card-title { font-size: 15px; font-weight: 650; }
.ov-list { margin-top: var(--s3); display: grid; gap: var(--s3); }
.ov-list li { font-size: 14px; line-height: 1.45; padding-left: 14px; position: relative; }
.ov-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.ov-ref { display: block; margin-top: 2px; }
.linkish { background: none; border: 0; padding: 0; color: var(--teal-deep); font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.glance { margin: var(--s3) 0 0; display: grid; gap: 10px; }
.glance div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.glance dt { color: var(--ink-3); }
.glance dd { margin: 0; font-weight: 600; text-align: right; }

.trend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-bottom: var(--s4); }
.trend { border: 1px solid var(--line); border-radius: 12px; padding: var(--s4); }
.trend h4 { font-size: 14.5px; font-weight: 650; display: flex; justify-content: space-between; gap: 8px; }
.trend h4 span { font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
.trend .latest { font-size: 26px; font-weight: 650; letter-spacing: -.02em; margin-top: 6px; }
.trend .latest small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.trend .when { font-size: 12px; color: var(--ink-3); }
.trend svg { width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.trend details { margin-top: 8px; font-size: 13px; }
.trend summary { cursor: pointer; color: var(--teal-deep); font-weight: 600; }
.trend table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 12.5px; }
.trend td, .trend th { text-align: left; padding: 4px 0; border-bottom: 1px solid var(--line); }
.trend th { color: var(--ink-3); font-weight: 600; }

.plan { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: var(--s4); }
.plan th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.plan td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; }
.status-open { background: var(--teal-soft); color: var(--teal-deep); border-color: transparent; }

/* ── Scope + footer ── */
.scope { padding: var(--s8) 0; border-top: 1px solid var(--line); background: var(--bg); }
.scope-list { margin-top: var(--s5); display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s3) var(--s6); font-size: 15px; color: var(--ink-2); }
.scope-list li { padding: var(--s3) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.site-footer { padding: var(--s7) 0; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: var(--s3); }
.footer-top > img { height: 16px; width: auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.legit-seal { display: inline-block; border-radius: 12px; line-height: 0; }
.legit-seal img { height: 72px; width: auto; }


/* ── Drawer ── */
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(420px, 100vw); max-width: 100vw; border: 0; padding: 0; background: var(--surface); box-shadow: -20px 0 60px rgba(0,0,0,.6); border-left: 1px solid var(--line); color: var(--ink); }
.drawer::backdrop { background: rgba(0,0,0,.6); }
.drawer-inner { padding: var(--s5); display: grid; gap: var(--s4); align-content: start; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer-head h3 { font-size: 18px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 15px; }
.kv { display: grid; gap: 12px; margin: 0; }
.kv div { display: grid; gap: 2px; }
.kv dt { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.kv dd { margin: 0; font-size: 14.5px; }
.callout { font-size: 13px; background: var(--ivory); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--ink-2); }
.drawer .label { width: fit-content; }


/* ── Hero (centred) + platform graphic ── */
.hero-eyebrow { font-size: clamp(13px, 1.25vw, 16px); padding: 8px 18px; gap: 12px; }
.hero-eyebrow .eyebrow-dot { width: 10px; height: 10px; }
.hero-center { text-align: center; max-width: 980px; display: flex; flex-direction: column; align-items: center; }
.hero-center .lede { margin-left: auto; margin-right: auto; max-width: 40em; }
.hero-center .cta-row { justify-content: center; }
.hero-center h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); }

.platform { margin: clamp(40px, 6vw, 72px) 0 0; position: relative; }
.orbit-stage { position: relative; aspect-ratio: 2 / 1; width: 100%; }
.orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.link { fill: none; stroke-width: 1.4; transition: stroke-opacity .3s, stroke-width .3s; }
.link-emr { stroke: #3F89F8; stroke-opacity: .38; }
.link-crm { stroke: #9B6DCE; stroke-opacity: .42; }
.pulse { fill: none; stroke-width: 2.6; stroke-linecap: round; opacity: 0; }
.pulse-emr { stroke: #7FB4FF; }
.pulse-crm { stroke: #C9A8F4; }
.has-focus .link:not(.lit) { stroke-opacity: .10; }
.has-focus .pulse:not(.lit) { opacity: 0 !important; }
.link.lit { stroke-opacity: .95; stroke-width: 2; }

.side-label { position: absolute; top: -2%; font-size: clamp(17px, 1.6vw, 20px); color: #fff; font-weight: 600; letter-spacing: -.01em; display: flex; gap: 8px; align-items: center; }
.side-emr { left: 0; }
.side-crm { right: 0; }
.side-kicker { font-size: 11px; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.side-emr .side-kicker { background: rgba(63,137,248,.16); color: #9CC4FF; border: 1px solid rgba(63,137,248,.4); }
.side-crm .side-kicker { background: rgba(155,109,206,.18); color: #D6BFF6; border: 1px solid rgba(155,109,206,.45); }
.side-label { top: -44px; }

.node-li { position: absolute; transform: translate(-50%, -50%); width: 19.6%; }
.node { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; border-radius: 14px;
  background: rgba(15,22,40,.92); border: 1px solid var(--line-2); color: var(--ink); cursor: pointer;
  box-shadow: 0 14px 30px -16px rgba(0,0,0,.8); transition: border-color .2s, transform .2s, box-shadow .2s, opacity .2s; }
.node:hover { transform: translateY(-2px); }
.node-emr:hover, .node-emr.lit { border-color: rgba(63,137,248,.7); box-shadow: 0 0 0 1px rgba(63,137,248,.35), 0 18px 36px -16px rgba(63,137,248,.55); }
.node-crm:hover, .node-crm.lit { border-color: rgba(155,109,206,.75); box-shadow: 0 0 0 1px rgba(155,109,206,.35), 0 18px 36px -16px rgba(155,109,206,.55); }
.has-focus .node:not(.lit) { opacity: .45; }
.node-icon { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.node-emr .node-icon { background: linear-gradient(135deg, rgba(63,137,248,.32), rgba(46,163,242,.12)); color: #9CC4FF; }
.node-crm .node-icon { background: linear-gradient(135deg, rgba(155,109,206,.36), rgba(120,80,220,.12)); color: #D6BFF6; }
.node-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.node-text { display: grid; min-width: 0; }
.node-title { font-size: 14px; font-weight: 600; line-height: 1.25; }
.node-sub { font-size: 12px; color: var(--ink-3); line-height: 1.3; }

.core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 21%; aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  background: transparent; border: 0; color: var(--ink); cursor: pointer; padding: 0 2%; }
.core-kicker { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); font-weight: 700; }
.core .avatar { width: 52px; height: 52px; font-size: 17px; margin: 4px 0 2px; color: #fff; background: linear-gradient(135deg, #2B6FE6, #9B6DCE); border: 2px solid rgba(255,255,255,.18); box-shadow: 0 0 30px rgba(63,137,248,.5); }
.avatar-img { padding: 0; object-fit: cover; background: none !important; }
.avatar-sm.avatar-img { width: 40px; height: 40px; }
.core .avatar-img { width: 84px; height: 84px; margin: 6px 0 4px; border: 2px solid rgba(255,255,255,.22); box-shadow: 0 0 34px rgba(63,137,248,.55); }
.core-name { font-size: 17px; font-weight: 600; }
.core-meta { font-size: 12px; color: var(--ink-3); }
.core-split { display: grid; gap: 4px; margin-top: 6px; }
.core-chip { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.core-chip.emr { background: rgba(63,137,248,.16); color: #9CC4FF; }
.core-chip.crm { background: rgba(155,109,206,.2); color: #D6BFF6; }
.core[aria-pressed="true"] .avatar { box-shadow: 0 0 0 4px rgba(63,137,248,.35), 0 0 40px rgba(63,137,248,.7); }

.zared { position: absolute; left: 50%; top: 5%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px; font-size: 13px; color: var(--ink-2); cursor: pointer;
  background: linear-gradient(90deg, rgba(63,137,248,.18), rgba(155,109,206,.18)); border: 1px solid rgba(160,189,224,.28); }
.zared strong { color: #fff; letter-spacing: .04em; }
.zared[aria-pressed="true"] { border-color: rgba(160,189,224,.7); color: #fff; }
.zared-mark { width: 10px; height: 10px; border-radius: 50%; background: conic-gradient(#2EA3F2, #3F89F8, #9B6DCE, #2EA3F2); box-shadow: 0 0 12px rgba(63,137,248,.8); }

.boundary-label { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); font-size: 12px; color: var(--ink-3); white-space: nowrap; background: var(--bg); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); }

.journey-wrap { margin-top: clamp(40px, 5vw, 56px); }
.journey-title { text-align: center; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 14px; }
.journey-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; counter-reset: j; }
.jstep { width: 100%; height: 100%; display: grid; gap: 2px; justify-items: start; text-align: left; padding: 12px 14px; border-radius: 14px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); position: relative; transition: border-color .2s, background .2s; }
.jstep::after { content: ""; position: absolute; right: -6px; top: 50%; width: 5px; height: 1.5px; background: var(--line-2); }
.journey-strip li:last-child .jstep::after { display: none; }
.jstep-emr { box-shadow: inset 0 2px 0 rgba(63,137,248,.8); }
.jstep-crm { box-shadow: inset 0 2px 0 rgba(155,109,206,.85); }
.jstep-both { box-shadow: inset 0 2px 0 #2EA3F2; }
.jstep[aria-pressed="true"], .jstep:hover { border-color: rgba(160,189,224,.55); background: var(--ivory); }
.jnum { font: 700 11px var(--mono); color: var(--ink-3); }
.jtitle { font-size: 14px; font-weight: 600; }
.jside { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ink-3); }

.platform-detail { margin: 18px auto 0; max-width: 760px; text-align: center; min-height: 104px; padding: 16px 20px; border-radius: 16px; background: rgba(15,22,40,.7); border: 1px solid var(--line); }
.pd-head { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-side { font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: .03em; }
.pd-title { font-size: 18px; font-weight: 600; margin-top: 6px; }
.pd-body { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }
.label-built { background: rgba(63,137,248,.14); color: #9CC4FF; border: 1px solid rgba(63,137,248,.35); }
.platform .labels { justify-content: center; }

@media (prefers-reduced-motion: no-preference) {
  .pulse { opacity: .95; animation: travel 3.6s linear infinite; }
  .pulse.reverse { animation-direction: reverse; }
  .core-orbiter { transform-origin: 600px 300px; animation: orbit 18s linear infinite; }
  .orbit-dash { transform-origin: 600px 300px; animation: orbit 90s linear infinite reverse; }
  .core-ring { stroke-dasharray: 880; stroke-dashoffset: 880; animation: draw 1.8s .2s cubic-bezier(.4,0,.2,1) forwards; }
  .node-li { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .node-li:nth-child(2) { animation-delay: .06s; } .node-li:nth-child(3) { animation-delay: .12s; }
  .node-li:nth-child(4) { animation-delay: .18s; } .node-li:nth-child(5) { animation-delay: .24s; } .node-li:nth-child(6) { animation-delay: .3s; }
}
@keyframes travel { from { stroke-dashoffset: calc(var(--len) * 1px + 14px); } to { stroke-dashoffset: 0; } }
/* node-li keeps its centring transform while animating */
@keyframes rise-node { from { opacity: 0; } to { opacity: 1; } }
.node-li { animation-name: rise-node; }

@media (max-width: 1080px) {
  .node-title { font-size: 12.5px; }
  .node-sub { display: none; }
  .node-icon { width: 30px; height: 30px; }
  .node { gap: 8px; padding: 8px; }
  .core-chip { display: none; }
}
@media (max-width: 860px) {
  .orbit-stage { aspect-ratio: auto; display: grid; gap: 14px; }
  .orbit-svg, .boundary-label { display: none; }
  .core { position: static; transform: none; width: 100%; aspect-ratio: auto; border-radius: 18px; padding: 22px 16px; order: 0;
    background: radial-gradient(260px 160px at 50% 40%, rgba(63,137,248,.22), transparent 70%), var(--surface); border: 1px solid rgba(63,137,248,.35); }
  .core-chip { display: inline-block; }
  .core-split { grid-auto-flow: column; }
  .zared { position: static; transform: none; justify-self: center; order: 1; }
  .side-label { position: static; order: 2; margin-top: 8px; }
  #nodes-emr { order: 3; }
  .side-crm { order: 4; }
  #nodes-crm { order: 5; }
  .node-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .node-li { position: static; transform: none; width: auto; }
  .node-sub { display: block; }
  .node { height: 100%; align-items: flex-start; }
  .journey-strip { grid-template-columns: 1fr 1fr; }
  .jstep::after { display: none; }
}
@media (max-width: 420px) {
  .node-list { grid-template-columns: 1fr; }
}


/* ── Longitudinal health map (timeline) ── */
.hmap-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background:
  radial-gradient(600px 200px at 85% 0%, rgba(63,137,248,.10), transparent 70%), var(--bg-2); }
.hmap { display: grid; grid-template-columns: 158px minmax(560px, 1fr); position: relative; width: max-content; min-width: 100%; }
.hm-corner { border-bottom: 1px solid var(--line); position: sticky; left: 0; background: var(--bg-2); z-index: 3; }
.hm-axis { position: relative; height: 40px; border-bottom: 1px solid var(--line); margin-right: 28px; }
.hm-tick { position: absolute; bottom: 9px; transform: translateX(-50%); font: 600 11.5px var(--mono); color: var(--ink-3); white-space: nowrap; }
.hm-today-tag { position: absolute; top: 6px; transform: translateX(-50%); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--btn); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.hm-label { position: sticky; left: 0; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 0 12px 0 16px; font-size: 13px; font-weight: 600;
  color: var(--ink-2); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.hm-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); flex: none; }
.hm-count { margin-left: auto; font: 600 11px var(--mono); color: var(--ink-3); background: var(--ivory-2); border-radius: 999px; padding: 1px 7px; }
.hm-track { position: relative; height: 62px; border-bottom: 1px solid var(--line); margin-right: 28px; }
.hmap > .hm-track:last-child, .hmap > .hm-track:last-child ~ .hm-label { border-bottom: 0; }
[data-cat="visit"] { --c: #6FA8FF; } [data-cat="lab"] { --c: #2EC5E8; } [data-cat="imaging"] { --c: #7FE0C8; }
[data-cat="med"] { --c: #C3A6EE; } [data-cat="procedure"] { --c: #F49AC1; } [data-cat="reported"] { --c: #F5D27A; }
.hm-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(160,189,224,.07); }
.hm-now { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed rgba(63,137,248,.7); }
.hm-gap { position: absolute; top: 5px; bottom: 5px; border-radius: 8px; overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(245,199,122,.10) 0 6px, transparent 6px 12px); border: 1px dashed rgba(245,199,122,.4); }
.hm-gap-text { position: absolute; left: 10px; top: 4px; font-size: 10.5px; font-weight: 600; color: var(--amber); white-space: nowrap; }
.hm-span { position: absolute; top: 50%; height: 22px; transform: translateY(-50%); border-radius: 999px;
  background: linear-gradient(90deg, rgba(195,166,238,.45), rgba(195,166,238,.12)); border: 1px solid rgba(195,166,238,.45); }
.hm-span-b { top: 50%; transform: translateY(calc(-50% + 13px)); height: 14px; }
.hm-span:not(.hm-span-b) { transform: translateY(calc(-50% - 9px)); height: 16px; }
.hm-span-text { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 10.5px; font-weight: 600; color: #E6DAFA; white-space: nowrap; }
.hm-trend { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-trend polyline { fill: none; stroke: rgba(46,197,232,.45); stroke-width: 1.5; stroke-dasharray: 3 4; }
.hm-trend-tag { position: absolute; right: 4px; bottom: 3px; font-size: 10.5px; color: var(--ink-3); }
.hm-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border: 0; background: transparent; padding: 0; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.hm-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--bg-2), 0 0 14px var(--c); transition: transform .2s, box-shadow .2s; }
.hm-mark:hover .hm-dot { transform: scale(1.25); }
.hm-mark.sel .hm-dot { transform: scale(1.45); box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 5px var(--c), 0 0 22px var(--c); }
.hm-mark.pending .hm-dot { background: var(--bg-2); border: 2.5px solid var(--c); }
.hm-tip { position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; font-weight: 600;
  background: #000; color: #fff; padding: 3px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.hm-mark:hover .hm-tip, .hm-mark:focus-visible .hm-tip { opacity: 1; }
.hm-mark.sel .hm-tip { opacity: 1; background: var(--btn); }

.hm-card { margin-top: 14px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; padding: 18px 20px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: inset 3px 0 0 var(--c); }
.hm-card-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.hm-card-cat { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bg); background: var(--c); padding: 2px 8px; border-radius: 6px; }
.hm-card-title { font-size: 18px; font-weight: 600; margin-top: 8px; }
.hm-card-sum { font-size: 14.5px; color: var(--ink); margin-top: 4px; }
.hm-card-detail { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.hm-card-side { display: grid; gap: 8px; align-content: start; font-size: 13.5px; border-left: 1px solid var(--line); padding-left: 20px; }
.hm-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tl-src-btn:disabled { opacity: .4; cursor: default; }
.tl-src-primary { background: var(--btn); border-color: var(--btn); color: #fff; }
@media (max-width: 760px) {
  .hmap { grid-template-columns: 112px 640px; }
  .hm-label { padding: 0 8px 0 10px; font-size: 12px; }
  .hm-count { display: none; }
  .hm-card { grid-template-columns: 1fr; }
  .hm-card-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
}



/* ── About ── */
.about { margin: clamp(48px, 6vw, 80px) auto 0; text-align: center; max-width: 820px; padding: clamp(22px, 3vw, 32px) clamp(20px, 4vw, 44px); border-radius: 22px;
  background: linear-gradient(135deg, rgba(63,137,248,.12), rgba(155,109,206,.10)), rgba(15,22,40,.7);
  border: 1px solid rgba(160,189,224,.22); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.about-title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -.02em; }
.about p { color: var(--ink-2); font-size: clamp(1rem, 1.25vw, 1.12rem); margin-top: 12px; line-height: 1.65; }



/* ── Clinical protocols ── */
.proto { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--line);
  background: radial-gradient(800px 420px at 50% 20%, rgba(63,137,248,.13), transparent 70%), var(--bg-2); }
.proto-demo { max-width: 980px; margin: 0 auto; }
.proto-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.proto-tabs [role="tab"] { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 9px 18px;
  font-size: 14.5px; font-weight: 600; cursor: pointer; min-height: 42px; }
.proto-tabs [role="tab"][aria-selected="true"] { background: var(--btn); border-color: var(--btn); color: #fff; box-shadow: 0 6px 20px -6px rgba(63,137,248,.6); }
.proto-card { background: linear-gradient(160deg, rgba(63,137,248,.10), rgba(15,22,40,.96) 40%); border: 1px solid var(--line-2); border-radius: 22px;
  padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow-lg); }
.pt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pt-k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.pt-title { font-size: clamp(18px, 2vw, 22px); font-weight: 600; margin-top: 2px; }
.pt-chip { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(245,199,122,.35); }
.pt-enrol { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.pt-check { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: rgba(80,200,140,.18); color: #8FE3B5; }
.pt-chart { position: relative; margin-top: 18px; display: grid; gap: 6px; }
.pt-lane { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px; }
.pt-lane-l { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.pt-ladder { position: relative; height: 76px; }
.pt-step { position: absolute; bottom: calc(var(--lvl) * 14px); height: 30px; border-radius: 9px; padding: 0 10px; display: flex; align-items: center;
  background: rgba(63,137,248,.14); border: 1px solid rgba(63,137,248,.35); overflow: hidden; }
.pt-step.done { background: rgba(63,137,248,.28); }
.pt-step.now { background: linear-gradient(90deg, #2B6FE6, #6A5BD6); border-color: transparent; box-shadow: 0 8px 24px -8px rgba(63,137,248,.7); }
.pt-step-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #DCE9FF; }
.pt-step.now .pt-step-name { color: #fff; }
.pt-row { position: relative; height: 30px; border-top: 1px dashed var(--line-2); }
.pt-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.pt-lab { width: 14px; height: 14px; border-radius: 4px; transform: translate(-50%, -50%) rotate(45deg); background: #2EC5E8; box-shadow: 0 0 10px rgba(46,197,232,.7); }
.pt-visit { width: 12px; height: 12px; border-radius: 50%; background: #C3A6EE; box-shadow: 0 0 10px rgba(195,166,238,.7); }
.pt-mark.past { opacity: .45; box-shadow: none; }
.pt-axis { position: relative; height: 22px; }
.pt-axis span { position: absolute; transform: translateX(-50%); font: 600 11px var(--mono); color: var(--ink-3); white-space: nowrap; }
.pt-axis span:first-child { transform: none; }
.pt-axis span:last-child { transform: translateX(-100%); }
.pt-today { position: absolute; top: -6px; bottom: 22px; left: calc(92px + 12px + (100% - 104px) * var(--x) / 100); width: 0; border-left: 1.5px dashed rgba(127,180,255,.9); }
.pt-today i { position: absolute; top: -18px; left: 0; transform: translateX(-50%); font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--btn); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.pt-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.pt-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.pt-legend span { display: inline-flex; gap: 8px; align-items: center; }
.lg { display: inline-block; width: 10px; height: 10px; }
.lg-lab { background: #2EC5E8; border-radius: 3px; transform: rotate(45deg); }
.lg-visit { background: #C3A6EE; border-radius: 50%; }
.pt-goal { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.pt-bar { width: 140px; height: 8px; border-radius: 999px; background: var(--ivory-2); overflow: hidden; }
.pt-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3F89F8, #9B6DCE); }
.pt-goal b { color: #fff; }
.proto-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(40px, 5vw, 56px); }
.pb-col { border-radius: 20px; padding: clamp(20px, 3vw, 28px); background: rgba(15,22,40,.8); border: 1px solid var(--line-2); }
.pb-provider { box-shadow: inset 0 3px 0 rgba(63,137,248,.85); }
.pb-patient { box-shadow: inset 0 3px 0 rgba(155,109,206,.9); }
.pb-title { font-size: 20px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.pb-dot { width: 10px; height: 10px; border-radius: 50%; background: #3F89F8; box-shadow: 0 0 10px #3F89F8; }
.pb-patient .pb-dot { background: #9B6DCE; box-shadow: 0 0 10px #9B6DCE; }
.pb-col ul { margin-top: 16px; display: grid; gap: 14px; }
.pb-col li { display: grid; gap: 3px; }
.pb-col b { font-size: 15px; font-weight: 600; }
.pb-col li span { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.proto-fine { text-align: center; margin-top: 20px; }
@media (max-width: 860px) { .proto-benefits { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .pt-lane { grid-template-columns: 1fr; gap: 4px; }
  .pt-today { left: calc(100% * var(--x) / 100); }
  .pt-step-name { font-size: 10.5px; }
  .pt-bar { width: 100px; }
}

/* ── Aesthetic services ── */
.aes { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--line);
  background: radial-gradient(700px 420px at 80% 40%, rgba(155,109,206,.14), transparent 70%), var(--bg); }
.aes-copy .section-lede { max-width: 46em; }
.aes-feats { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.aes-feats li { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(15,22,40,.8); border: 1px solid var(--line-2); }
.aes-feats div { display: grid; gap: 4px; align-content: start; }
.aes-feats b { font-size: 14.5px; font-weight: 600; }
.aes-feats span:not(.aes-ic) { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.aes-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #E2CCFA;
  background: linear-gradient(135deg, rgba(155,109,206,.38), rgba(63,137,248,.14)); }
.aes-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.aes-tag { justify-self: start; font-style: normal; font-size: 11px; font-weight: 600; margin-top: 4px; padding: 2px 8px; border-radius: 999px;
  background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(245,199,122,.35); }
@media (max-width: 1000px) { .aes-feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .aes-feats { grid-template-columns: 1fr; } }

/* ── Mobile apps ── */
.apps { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--line);
  background: radial-gradient(700px 400px at 20% 20%, rgba(63,137,248,.12), transparent 70%), radial-gradient(700px 400px at 80% 75%, rgba(155,109,206,.13), transparent 70%), var(--bg); }
.section-head-center { margin: 0 auto var(--s8); text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head-center .section-lede { margin-left: auto; margin-right: auto; }
.app-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.app-row + .app-row { margin-top: clamp(64px, 8vw, 112px); }
.app-row-rev .phone-wrap { order: 2; }
.phone-wrap { display: grid; place-items: center; position: relative; }
.phone-wrap::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 2px solid rgba(63,137,248,.45);
  box-shadow: 0 0 80px rgba(63,137,248,.25), inset 0 0 60px rgba(63,137,248,.12); }
.phone-wrap-crm::before { border-color: rgba(155,109,206,.5); box-shadow: 0 0 80px rgba(155,109,206,.25), inset 0 0 60px rgba(155,109,206,.12); }
.phone { position: relative; width: 300px; max-width: 100%; aspect-ratio: 300 / 620; border-radius: 46px; padding: 12px; z-index: 1;
  background: linear-gradient(160deg, #2a3550, #0b1222 40%, #1d2740); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(160,189,224,.25); }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 999px; background: #000; z-index: 2; }
.ps { height: 100%; border-radius: 36px; overflow: hidden; background: linear-gradient(180deg, #0b1426, #060d1a); padding: 14px 14px 0; display: flex; flex-direction: column; gap: 9px; position: relative; font-size: 12px; }
.ps-status { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: #fff; padding: 2px 10px 6px; }
.ps-kicker { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-top: 6px; }
.ps-hello { font-size: 18px; font-weight: 600; color: #fff; margin-top: -4px; }
.ps-card { background: rgba(255,255,255,.04); border: 1px solid var(--line-2); border-radius: 16px; padding: 10px 12px; }
.ps-label { font-size: 10.5px; color: var(--ink-2); font-weight: 600; }
.ps-person { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.ps-name { font-size: 13px; font-weight: 600; color: #fff; }
.ps-sub { font-size: 11px; color: var(--ink-3); }
.ps-actions { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 6px; margin-top: 10px; }
.ps-actions span { text-align: center; padding: 6px 0; border-radius: 999px; border: 1px solid var(--line-2); font-size: 11px; font-weight: 600; color: var(--ink-2); }
.ps-actions .ps-primary { background: var(--btn); border-color: var(--btn); color: #fff; }
.ps-scribe { border-color: rgba(63,137,248,.45); background: linear-gradient(135deg, rgba(63,137,248,.16), rgba(155,109,206,.10)); }
.ps-rec { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #fff; }
.ps-recdot { width: 8px; height: 8px; border-radius: 50%; background: #FF5D6C; box-shadow: 0 0 8px #FF5D6C; }
.ps-time { margin-left: auto; font-family: var(--mono); color: var(--ink-2); }
.ps-wave { display: flex; gap: 3px; align-items: center; height: 30px; margin: 8px 0 6px; }
.ps-wave i { flex: 1; border-radius: 2px; background: linear-gradient(#7FB4FF, #9B6DCE); height: 30%; }
.ps-wave i:nth-child(3n) { height: 75%; } .ps-wave i:nth-child(4n+1) { height: 50%; } .ps-wave i:nth-child(5n+2) { height: 95%; } .ps-wave i:nth-child(7n) { height: 20%; }
.ps-list { display: grid; gap: 6px; padding: 2px 4px; color: var(--ink-2); font-size: 11.5px; }
.ps-list b { color: #fff; font-family: var(--mono); font-weight: 600; margin-right: 6px; }
.ps-tag { font-size: 10px; padding: 1px 7px; border-radius: 999px; background: rgba(63,137,248,.2); color: #9CC4FF; }
.ps-tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 6px 18px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--ink-3); background: rgba(6,13,26,.9); }
.ps-tabs .on { color: #7FB4FF; font-weight: 700; }
.phone-wrap-crm .ps-tabs .on { color: #D6BFF6; }
.ps-insight { border-color: rgba(155,109,206,.5); background: linear-gradient(135deg, rgba(155,109,206,.20), rgba(63,137,248,.10)); }
.ps-spark { color: #D6BFF6; }
.ps-text { font-size: 12px; color: #fff; margin-top: 4px; line-height: 1.45; }
.ps-fine { font-size: 9.5px; color: var(--ink-3); margin-top: 4px; }
.ps-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ps-metrics div { background: rgba(255,255,255,.04); border: 1px solid var(--line-2); border-radius: 12px; padding: 7px 8px; display: grid; }
.ps-metrics b { font-size: 14px; color: #fff; }
.ps-metrics span { font-size: 10px; color: var(--ink-3); }
.ps-source { font-size: 9.5px; color: var(--ink-3); margin-top: -4px; padding-left: 4px; }
.ps-meal { display: flex; gap: 10px; align-items: center; }
.ps-food { flex: none; width: 54px; height: 54px; border-radius: 50%; position: relative; background: radial-gradient(circle at 50% 50%, #f1e6cf 0 58%, #c9b38a 59% 64%, transparent 65%); }
.ps-food i { position: absolute; border-radius: 50%; }
.ps-food i:nth-child(1) { width: 18px; height: 18px; left: 10px; top: 14px; background: #6fbf73; }
.ps-food i:nth-child(2) { width: 16px; height: 14px; left: 26px; top: 24px; background: #e0884f; }
.ps-food i:nth-child(3) { width: 14px; height: 12px; left: 18px; top: 32px; background: #c4566b; }
.ps-faces { display: flex; gap: 5px; margin-top: 8px; }
.ps-faces span { flex: 1; text-align: center; padding: 5px 0; border-radius: 999px; font-size: 10px; border: 1px solid var(--line-2); color: var(--ink-2); }
.ps-faces .on { background: #7a55c4; border-color: #7a55c4; color: #fff; }

.app-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.app-kicker-emr { color: #9CC4FF; }
.app-kicker-crm { color: #D6BFF6; }
.app-title { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 500; letter-spacing: -.02em; margin-top: 10px; line-height: 1.15; }
.app-lede { color: var(--ink-2); margin-top: 12px; font-size: 1.04rem; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.feat-grid li { padding: 14px 16px; border-radius: 14px; background: rgba(15,22,40,.8); border: 1px solid var(--line-2); display: grid; gap: 4px; }
.feat-grid b { font-size: 14.5px; font-weight: 600; }
.feat-grid span { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.app-row:not(.app-row-rev) .feat-grid li { box-shadow: inset 2px 0 0 rgba(63,137,248,.8); }
.app-row-rev .feat-grid li { box-shadow: inset 2px 0 0 rgba(155,109,206,.85); }
.app-fine { margin-top: 16px; }
.labels-center { justify-content: center; margin-top: 0; }
@media (max-width: 960px) {
  .app-row { grid-template-columns: 1fr; }
  .app-row-rev .phone-wrap { order: 0; }
  .phone-wrap::before { width: 320px; height: 320px; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
  .phone-wrap::before { width: 260px; height: 260px; }
}


/* ── Request a demo ── */
.demo { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--line);
  background: radial-gradient(800px 420px at 85% 30%, rgba(63,137,248,.14), transparent 70%), var(--bg-2); }
.demo-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.demo-points { margin-top: 28px; display: grid; gap: 14px; }
.demo-points li { display: grid; gap: 2px; padding-left: 18px; position: relative; }
.demo-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.demo-points b { font-weight: 600; }
.demo-points span { color: var(--ink-2); font-size: 14.5px; }
.demo-form { background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; }
.req { color: #7FB4FF; }
.opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 13px; min-height: 46px; }
.field textarea { resize: vertical; min-height: 104px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(63,137,248,.3); }
.field [aria-invalid="true"] { border-color: #FF7A85; }
.field-error { font-size: 13px; color: #FF9AA3; min-height: 0; }
.field-error:empty { display: none; }
.field-hint { font-size: 13px; color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-submit { width: 100%; margin-top: 4px; }
.form-note { text-align: center; }
.form-errors { background: rgba(255,93,108,.10); border: 1px solid rgba(255,122,133,.45); color: #FFD0D4; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.form-errors ul { margin: 6px 0 0 18px; list-style: disc; }
.form-errors a { color: #FFD0D4; }
.form-result { border-radius: 14px; padding: 16px; font-size: 14.5px; line-height: 1.55; background: rgba(63,137,248,.10); border: 1px solid rgba(63,137,248,.4); }
.form-result.ok { background: rgba(80,200,140,.10); border-color: rgba(80,200,140,.45); }
.form-result h3 { font-size: 16px; margin-bottom: 6px; }
.form-result p + p { margin-top: 8px; }
.form-result .result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }


/* ── Medical Board page ── */
.nav-list a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--blue); }
.board-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 4vw, 40px); text-align: center;
  background: radial-gradient(800px 400px at 50% 0%, rgba(63,137,248,.18), transparent 70%); }
.board-hero .wrap { display: flex; flex-direction: column; align-items: center; }
.board-hero .section-lede { margin-left: auto; margin-right: auto; }
.board-title { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 500; margin-top: 20px; }
.board { padding: clamp(24px, 4vw, 48px) 0 clamp(72px, 9vw, 120px); }
.board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bm { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr); gap: 22px; padding: 20px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(63,137,248,.08), rgba(15,22,40,.95) 45%); border: 1px solid var(--line-2); box-shadow: var(--shadow); align-items: start; }
.bm-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-2); }
.bm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.bm-photo.has-img .bm-fallback { display: none; }
.bm-fallback { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px;
  background: radial-gradient(circle at 50% 35%, rgba(63,137,248,.25), transparent 65%); }
.bm-silhouette { width: 46%; aspect-ratio: 1 / 1.25; opacity: .35;
  background: radial-gradient(circle at 50% 28%, #A0BDE0 0 22%, transparent 23%), radial-gradient(ellipse 50% 32% at 50% 100%, #A0BDE0 0 98%, transparent 100%); }
.bm-ph-text { font-size: 12px; color: var(--ink-3); }
.bm-initials { font-size: clamp(32px, 4vw, 44px); font-weight: 600; color: #fff; }
.bm-role { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #9CC4FF; font-weight: 700; }
.bm-name { font-size: clamp(19px, 2vw, 23px); font-weight: 600; margin-top: 6px; letter-spacing: -.01em; }
.bm-spec { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.bm-bio { margin-top: 14px; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.bm-bio.clamped { max-height: 11.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.bm-more { margin-top: 10px; background: none; border: 0; padding: 4px 0; color: #9CC4FF; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bm-empty .bm-role, .bm-empty .bm-name, .bm-empty .bm-spec, .bm-bio.is-placeholder { opacity: .55; }
.bm-empty .bm-name { font-style: italic; }
.bm-empty { border-style: dashed; }
.board-cta { margin-top: clamp(40px, 5vw, 56px); text-align: center; display: grid; gap: 14px; justify-items: center; color: var(--ink-2); }
@media (max-width: 960px) { .board-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .bm { grid-template-columns: 1fr; } .bm-photo { max-width: 260px; } }


/* ── Terms & Conditions page ── */
.terms-hero .section-lede { font-size: 15px; color: var(--ink-3); }
.terms { padding: clamp(16px, 3vw, 32px) 0 clamp(72px, 9vw, 120px); }
.terms-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.terms-toc-wrap { position: sticky; top: 88px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); max-height: calc(100vh - 110px); overflow: auto; }
.terms-toc-title { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 10px; }
.terms-toc { display: grid; gap: 2px; }
.terms-toc a { display: block; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); text-decoration: none; }
.terms-toc a:hover { background: var(--ivory); color: #fff; }
.terms-article { max-width: 760px; }
.terms-notice { padding: 16px 18px; border-radius: 14px; background: rgba(63,137,248,.10); border: 1px solid rgba(63,137,248,.4); margin-bottom: 28px; font-size: 15px; color: var(--ink-2); }
.terms-notice .tn-title { color: #fff; font-weight: 600; margin-bottom: 4px; }
.terms-notice a { color: #9CC4FF; }
.terms-sec { padding: 22px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.terms-sec:first-child { border-top: 0; padding-top: 0; }
.terms-h { font-size: clamp(18px, 1.8vw, 21px); font-weight: 600; letter-spacing: -.01em; }
.terms-sec p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.terms-list { margin-top: 10px; padding-left: 20px; list-style: disc; display: grid; gap: 6px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.terms-h3 { font-size: 15.5px; font-weight: 600; color: #fff; margin-top: 18px; }
.terms-sec a { color: #9CC4FF; }
.terms-table-wrap { overflow-x: auto; margin-top: 12px; }
.terms-table { border-collapse: collapse; font-size: 14.5px; min-width: 320px; }
.terms-table th, .terms-table td { text-align: left; padding: 8px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.terms-table th { color: #fff; font-weight: 600; }
.terms-pending { font-style: italic; color: var(--ink-3) !important; font-size: 14px !important; }
@media (max-width: 860px) {
  .terms-grid { grid-template-columns: 1fr; }
  .terms-toc-wrap { position: static; max-height: none; }
}

/* ── Motion ── */
@media (prefers-reduced-motion: no-preference) {
  .pane, .hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .05s; }
  .hero-copy > *:nth-child(3) { animation-delay: .1s; }
  .hero-copy > *:nth-child(4) { animation-delay: .15s; }
  .pane-patient { animation-delay: .15s; } .pane-day { animation-delay: .28s; } .pane-rel { animation-delay: .4s; }
  .halo-ring { stroke-dasharray: 1460; stroke-dashoffset: 1460; animation: draw 2.2s .2s cubic-bezier(.4,0,.2,1) forwards; }
  .orbit-dot { transform-origin: 300px 300px; animation: orbit 28s linear infinite; }
  .tl-detail { animation: fade .25s ease both; }
  .drawer[open] { animation: slide .28s cubic-bezier(.2,.7,.2,1); }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 760px; }
  .app-body { grid-template-columns: 1fr; }
  .sources { border-right: 0; border-bottom: 1px solid var(--line); }
  .source-list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .trend-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .header-inner { gap: var(--s3); }
  .nav { order: 3; margin-left: 0; }
  .header-cta { margin-left: auto; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; }
  .nav-toggle-bars { width: 14px; height: 10px; background: linear-gradient(var(--ink), var(--ink)) top/100% 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center/100% 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) bottom/100% 1.5px no-repeat; }
  .nav-list { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: var(--s2) var(--gutter) var(--s4); box-shadow: 0 20px 30px -20px rgba(0,0,0,.6); }
  .nav-list.open { display: flex; }
  .nav-list a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .composition { grid-template-columns: 1fr; grid-template-areas: "patient" "day" "rel"; }
  .pane-rel { display: block; }
  .halo { width: 160%; left: -30%; top: 30%; }
  .ov-grid, .trend-grid, .scope-list { grid-template-columns: 1fr; }
  .app-top { padding: var(--s4); }
  .panels { padding: var(--s4); }
  .tablist { width: 100%; }
  .sources { padding: var(--s3) var(--s4); }
  .src-details summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; }
  .src-details summary::after { content: "▾"; font-size: 12px; transition: transform .2s; }
  .src-details[open] summary::after { transform: rotate(180deg); }
  .src-sum { display: inline; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink-2); font-size: 12.5px; margin-left: auto; }
  .source-list li { padding: 8px 10px; }
  .side-note { margin-top: var(--s2); }
  .tablist [role="tab"] { flex: 1; padding: 8px 10px; font-size: 13.5px; }
  .tl-year { grid-template-columns: 1fr; gap: 4px; }
  .tl-year-label { padding-top: 6px; }
  .tl-btn { grid-template-columns: 1fr auto; }
  .tl-btn .tl-cat { grid-column: 1 / 3; width: fit-content; }
  .tl-sum { grid-column: 1 / 3; }
  .plan thead { display: none; }
  .plan tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .plan td { border: 0; padding: 0; font-size: 13.5px; }
  .plan td:nth-child(1) { font-weight: 600; }
  .plan td:nth-child(2), .plan td:nth-child(3) { color: var(--ink-3); grid-column: 1; }
  .plan td:nth-child(4) { grid-column: 2; grid-row: 1; }
  .day-list li { grid-template-columns: 42px 1fr; }
  .day-list .chip { grid-column: 2; width: fit-content; }
}
@media (max-width: 400px) {
  .header-cta { padding: 0 12px; font-size: 13.5px; }
  .brand img { height: 18px; }
}
