/* ═══════════════════════════════════════════════════════════════════════
   Precision Health Science Institute - Marketing & demo site
   Editorial-Scientific design language (shared with the clinical product):
   Newsreader serif headlines · Inter UI · JetBrains Mono data.
   Institutional trust-blue #1B4D8F + clinical teal #0E7C86.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Menlo", monospace;

  --text-display: clamp(2.4rem, 6.4vw, 5rem); --lh-display: 1.02; --ls-display: -0.028em;
  --text-h1: clamp(2.1rem, 4.2vw, 3.2rem);  --lh-h1: 1.07;  --ls-h1: -0.02em;
  --text-h2: clamp(1.65rem, 3.1vw, 2.3rem);--lh-h2: 1.12;  --ls-h2: -0.015em;
  --text-h3: 1.45rem;       --lh-h3: 1.25;  --ls-h3: -0.011em;
  --text-h4: 1.2rem;        --lh-h4: 1.35;  --ls-h4: -0.006em;
  --text-body-lg: 1.18rem;  --lh-body-lg: 1.65;
  --text-body: 1.075rem;    --lh-body: 1.62;
  --text-small: 1rem;       --lh-small: 1.55;
  --text-micro: 0.925rem;   --lh-micro: 1.5;
  --text-label: 0.8rem;     --lh-label: 1.4;  --ls-label: 0.07em;

  --ink: #0A0F1A;
  --gray-50: #F7F9FB;  --gray-100: #EEF2F6; --gray-200: #E2E8F0; --gray-300: #CBD4E1;
  --gray-400: #94A3B8; --gray-500: #64748B; --gray-600: #475569; --gray-700: #334155;
  --gray-800: #1E293B; --gray-900: #0F172A;

  --primary-50: #EAF1FA; --primary-100: #D2E0F2; --primary-200: #A9C5E8; --primary-400: #3E72B8;
  --primary: #1B4D8F; --primary-600: #173F75; --primary-700: #122F58;
  --primary-ghost: rgba(27, 77, 143, 0.08);

  --accent: #0E7C86; --accent-600: #0B656D; --accent-400: #2FA0AA; --accent-soft: #E0F2F1;

  --optimal: #1E7A52;    --optimal-soft: #E6F2EC;
  --borderline: #B7791F; --borderline-soft: #FBF1DD;
  --attention: #B4322A;  --attention-soft: #FBEAE8;

  --bg: #FBFCFD; --surface: #FFFFFF; --surface-2: #F7F9FB; --surface-3: #EEF2F6;
  --border: #E2E8F0; --border-strong: #CBD4E1; --border-hair: rgba(10, 15, 26, 0.06);
  --focus-shadow: 0 0 0 3px rgba(27, 77, 143, 0.30);

  /* Dark institutional surface for hero / footer */
  --ink-900: #0A1424; --ink-800: #0E1B30; --ink-700: #142440; --ink-950: #060D18;

  /* Ambient light washes + hairline rule (atmosphere) */
  --wash-top: rgba(27, 77, 143, 0.045);
  --wash-teal: rgba(46, 160, 170, 0.06);
  --rule-grad: linear-gradient(90deg, transparent, var(--border-strong) 18%, var(--border-strong) 82%, transparent);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;
  --space-9: 6rem; --space-10: 8rem; --space-11: 10rem;

  --container: 1180px; --container-wide: 1320px; --container-prose: 720px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --radius-xs: 4px; --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
  --radius-xl: 24px; --radius-2xl: 32px; --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(10,15,26,0.05), 0 1px 1px rgba(10,15,26,0.03);
  --shadow-sm: 0 1px 3px rgba(10,15,26,0.06), 0 1px 2px rgba(10,15,26,0.04);
  --shadow-md: 0 6px 16px rgba(10,15,26,0.07), 0 2px 4px rgba(10,15,26,0.05);
  --shadow-lg: 0 16px 40px rgba(10,15,26,0.10), 0 4px 10px rgba(10,15,26,0.05);
  --shadow-xl: 0 30px 70px rgba(10,15,26,0.16), 0 10px 20px rgba(10,15,26,0.06);
  --shadow-glow: 0 0 0 1px rgba(27,77,143,0.10), 0 20px 50px rgba(27,77,143,0.18);

  --grad-brand: linear-gradient(135deg, var(--primary), var(--accent));
  --grad-brand-soft: linear-gradient(135deg, #EAF1FA, #E0F2F1);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 220ms; --dur-slow: 420ms;
}

/* ── Reset & base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans); font-size: var(--text-body); line-height: var(--lh-body);
  color: var(--gray-700); background: var(--bg);
  font-feature-settings: "cv05" 1, "cv08" 1, "ss03" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
button { font: inherit; cursor: pointer; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ── Typography ────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { color: var(--ink); }
h1, h2, .h1, .h2, .display { overflow-wrap: break-word; }
.display { font-family: var(--font-serif); font-size: var(--text-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); font-weight: 500; color: var(--ink); }
h1, .h1 { font-family: var(--font-serif); font-size: var(--text-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: 500; }
h2, .h2 { font-family: var(--font-serif); font-size: var(--text-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-weight: 500; }
h3, .h3 { font-family: var(--font-sans); font-size: var(--text-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: 600; }
h4, .h4 { font-family: var(--font-sans); font-size: var(--text-h4); font-weight: 600; }
.serif { font-family: var(--font-serif); font-weight: 500; }
.lead { font-size: var(--text-body-lg); line-height: var(--lh-body-lg); color: var(--gray-600); }
.eyebrow { font-size: var(--text-label); letter-spacing: var(--ls-label); font-weight: 600; text-transform: uppercase; color: var(--accent-600); }
.muted { color: var(--gray-500); }
.small { font-size: var(--text-small); }
.micro { font-size: var(--text-micro); color: var(--gray-500); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.maxw { max-width: 62ch; }
.maxw-narrow { max-width: 48ch; }
strong, b { color: var(--ink); font-weight: 600; }
em { font-style: italic; }

/* ── Layout ────────────────────────────────────────────────────────────── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.container--wide { max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-head { max-width: 64ch; margin-inline: auto; text-align: center; margin-bottom: var(--space-8); }
.section-head .eyebrow { display: block; margin-bottom: var(--space-3); }
.section-head h2 { margin-bottom: var(--space-4); }
.grid { display: grid; gap: var(--space-5); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 900px){ .cols-3, .cols-4, .split { grid-template-columns: 1fr; } .cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .cols-2, .cols-4 { grid-template-columns: 1fr; } }

/* ── Top navigation ────────────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px var(--pad) 0; pointer-events: none; }
.nav__inner { pointer-events: auto; position: relative; display: flex; align-items: center; gap: var(--space-5);
  height: 58px; max-width: 1200px; margin-inline: auto; padding-inline: var(--space-5) var(--space-3);
  background: rgba(251,252,253,0.72); backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(255,255,255,0.55); border-radius: var(--radius-full);
  box-shadow: 0 1px 2px rgba(10,15,26,0.05), 0 10px 28px rgba(10,15,26,0.10);
  transition: background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.brand__mark { width: 32px; height: 32px; border-radius: 9px; background: var(--grad-brand);
  display: grid; place-items: center; box-shadow: var(--shadow-sm); flex: none; }
.brand__name { font-size: 1.0625rem; }
.brand__name span { color: var(--gray-400); font-weight: 500; }
.nav__links { display: flex; gap: var(--space-5); margin-inline: auto; align-items: center; }
.nav__links a { color: var(--gray-600); font-size: var(--text-small); font-weight: 500; transition: color var(--dur); }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: inline-flex; gap: var(--space-3); align-items: center; }
@media (max-width: 860px){ .nav__links { display: none; } .nav__cta .btn--ghost { display: none; } }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn { --bg: var(--primary); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-size: var(--text-small); font-weight: 600; line-height: 1; white-space: nowrap;
  padding: 0.72rem 1.2rem; border-radius: var(--radius-full); border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur), background var(--dur); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 0.9rem 1.6rem; font-size: var(--text-body); }
.btn--primary:hover { --bg: var(--primary-600); }
.btn--accent { --bg: var(--accent); } .btn--accent:hover { --bg: var(--accent-600); }
.btn--secondary { --bg: var(--surface); --fg: var(--gray-700); --bd: var(--border-strong); }
.btn--secondary:hover { --fg: var(--ink); --bd: var(--gray-400); }
.btn--ghost { --bg: transparent; --fg: var(--gray-600); box-shadow: none; }
.btn--ghost:hover { --fg: var(--ink); background: var(--gray-100); box-shadow: none; transform: none; }
.btn--light { --bg: rgba(255,255,255,0.12); --fg: #fff; --bd: rgba(255,255,255,0.22); backdrop-filter: blur(6px); }
.btn--light:hover { --bg: rgba(255,255,255,0.2); }
.btn--white { --bg: #fff; --fg: var(--primary); }

/* ── Pills / badges / chips ────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-label); font-weight: 600;
  letter-spacing: 0.02em; padding: 6px 13px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border); color: var(--gray-600); box-shadow: var(--shadow-xs); }
.pill--accent { background: var(--accent-soft); border-color: rgba(14,124,134,0.2); color: var(--accent-600); }
.pill--ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.9); box-shadow: none; }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-label); font-weight: 600;
  padding: 4px 10px; border-radius: var(--radius-full); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--optimal { color: var(--optimal); background: var(--optimal-soft); }
.chip--borderline { color: var(--borderline); background: var(--borderline-soft); }
.chip--attention { color: var(--attention); background: var(--attention-soft); }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur), border-color var(--dur); }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card--feature { border-radius: var(--radius-xl); padding: var(--space-7); }
.card--accent { position: relative; overflow: hidden; }
.card--accent::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-brand); }
.card--glass { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px); color: rgba(255,255,255,0.92); box-shadow: none; }
.card__icon { width: 46px; height: 46px; border-radius: var(--radius-md); display: grid; place-items: center;
  background: var(--primary-ghost); color: var(--primary); margin-bottom: var(--space-4); }
.card__icon--accent { background: var(--accent-soft); color: var(--accent-600); }
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--gray-600); font-size: var(--text-small); line-height: 1.6; }

/* ── Hero (dark institutional) ─────────────────────────────────────────── */
.hero { position: relative; background: var(--ink-900); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -8%; z-index: -2;
  background:
    radial-gradient(900px 520px at 75% -10%, rgba(46,160,170,0.38), transparent 60%),
    radial-gradient(800px 600px at 10% 110%, rgba(27,77,143,0.50), transparent 55%),
    radial-gradient(620px 520px at 90% 90%, rgba(46,160,170,0.14), transparent 60%),
    linear-gradient(160deg, var(--ink-900), var(--ink-950)); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.4;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000, transparent 75%); }
.hero .eyebrow { color: var(--accent-400); }
.hero h1, .hero .display { color: #fff; }
.hero .lead { color: rgba(255,255,255,0.74); }
.hero__inner { padding-block: clamp(6.5rem, 11vw, 9.5rem) clamp(3.5rem, 7vw, 6rem); position: relative; }
.hero__dna { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.15; pointer-events: none; }

/* Photographic hero (loovi-style): full-bleed lifestyle photo + scrim + slow Ken Burns zoom */
.hero--photo .hero__dna { display: none; }
.hero__photo { position: absolute; inset: 0; z-index: 1; background-size: cover; background-position: center; transform-origin: center; will-change: transform; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,16,30,0.82), rgba(8,16,30,0.58) 42%, rgba(8,16,30,0.92)); }
.hero--photo .hero__inner { z-index: 3; }
@media (prefers-reduced-motion: no-preference) { .hero__photo { animation: heroKenBurns 26s ease-in-out infinite alternate; } }
@keyframes heroKenBurns { from { transform: scale(1.0); } to { transform: scale(1.09); } }
.hero--center { text-align: center; }
.hero--center .lead { margin-inline: auto; }
.text-grad { background: linear-gradient(120deg, #fff 30%, var(--accent-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Hero atmosphere: aurora bloom + film grain + vignette ─────────────── */
.hero__atmos { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; contain: strict; }
.hero__aurora { position: absolute; inset: 0;  opacity: 0.55;
  background:
    radial-gradient(38% 42% at 28% 32%, rgba(47,160,170,0.30), transparent 70%),
    radial-gradient(34% 40% at 76% 64%, rgba(62,114,184,0.34), transparent 72%);
  filter: blur(14px); transform: translateZ(0); will-change: transform, opacity; }
.hero__atmos::before { content: ""; position: absolute; inset: 0; z-index: 1;
  opacity: 0.04; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
  background-size: 120px 120px; }
.hero__atmos::after { content: ""; position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(120% 120% at 50% 38%, transparent 55%, rgba(5,9,18,0.45) 100%); }
@keyframes auroraBloom {
  0%   { transform: translate3d(-1%, 1%, 0) scale(1);     opacity: 0.50; }
  50%  { transform: translate3d(1.5%, -1%, 0) scale(1.06); opacity: 0.62; }
  100% { transform: translate3d(-0.5%, 1.5%, 0) scale(1.02); opacity: 0.52; }
}

/* ── Cinematic headline: serif display rises out of a clip (hero only) ──── */
.hero .display.reveal { overflow: hidden; padding-bottom: 0.12em; opacity: 1; transform: none; }
.hero .display.reveal .hero__line { display: block; transform: translateY(112%);
  transition: transform 1s var(--ease-out); will-change: transform; }
.hero .display.reveal.in .hero__line { transform: translateY(0); }
.hero .display.reveal.in .hero__line:nth-child(2) { transition-delay: 0.10s; }

/* ── Stat counters ─────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 700px){ .stats { grid-template-columns: 1fr 1fr; } }
.stat { text-align: center; }
.stat__num { font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 500; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.stat__num--light { color: #fff; }
.stat__label { font-size: var(--text-small); color: var(--gray-500); margin-top: var(--space-2); }
.stat__label--light { color: rgba(255,255,255,0.6); }

/* ── Score gauge (radial 270°) ─────────────────────────────────────────── */
.gauge { position: relative; width: 100%; max-width: 260px; aspect-ratio: 1; margin-inline: auto; }
.gauge svg { width: 100%; height: 100%; transform: rotate(0deg); display: block; }
.gauge__track { fill: none; stroke: var(--gray-200); stroke-width: 13; stroke-linecap: round; }
.gauge__val { fill: none; stroke: url(#gaugeGrad); stroke-width: 13; stroke-linecap: round;
  transition: stroke-dashoffset 1.6s var(--ease-out); }
.gauge__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge__num { font-family: var(--font-serif); font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 500; color: var(--ink); line-height: 1; }
.gauge__num--light { color: #fff; }
.gauge__denom { font-family: var(--font-mono); font-size: var(--text-small); color: var(--gray-400); }
.gauge__cap { margin-top: 6px; }

/* ── Signature: Convergence Orb (recurring score centerpiece) ──────────── */
.orb { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; margin-inline: auto; isolation: isolate; }
.orb svg { width: 100%; height: 100%; display: block; overflow: visible; }
.orb__halo { opacity: 0; transform-box: fill-box; transform-origin: center;
  transition: opacity var(--dur-slow) var(--ease-out); }
.orb.in .orb__halo { opacity: 1; }
.orb__track { fill: none; stroke: #D7E0EA; stroke-width: 10; stroke-linecap: round; }
.orb--dark .orb__track { stroke: rgba(255,255,255,0.12); }
.orb__arc { fill: none; stroke: url(#orbArc); stroke-width: 10; stroke-linecap: round;
  transition: stroke-dashoffset 1.8s var(--ease-out); }
.orb__stream { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke: var(--border-strong); opacity: 0.55; }
.orb--dark .orb__stream { stroke: rgba(255,255,255,0.18); opacity: 1; }
.orb__pulse { fill: none; stroke: url(#orbStream); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 14 86; stroke-dashoffset: 100; opacity: 0; }
.orb.in .orb__pulse { opacity: 1; }
.orb__node { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.orb--dark .orb__node { fill: rgba(255,255,255,0.05); stroke: rgba(255,255,255,0.22); }
.orb__nodeicon { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.orb--dark .orb__nodeicon { stroke: var(--accent-400); }
.orb__nodelbl { font-family: var(--font-sans); font-size: 11px; font-weight: 600; fill: var(--gray-600); }
.orb--dark .orb__nodelbl { fill: rgba(255,255,255,0.66); }
.orb__core { transform-box: fill-box; transform-origin: center; }
.orb__corebg { filter: drop-shadow(0 14px 34px rgba(27,77,143,0.30)); }
.orb__num { font-family: var(--font-serif); font-weight: 500; fill: #fff; }
.orb__denom { font-family: var(--font-mono); fill: rgba(255,255,255,0.78); }
@keyframes orbBreath { 0%,100% { opacity: 0.42; transform: scale(1); } 50% { opacity: 0.62; transform: scale(1.035); } }
@keyframes orbArcGlow { 0%,100% { opacity: 0.85; } 50% { opacity: 1; } }
@keyframes orbStreamMove { to { stroke-dashoffset: 0; } }

/* ── Bars / distribution / radar ───────────────────────────────────────── */
.bar { height: 8px; background: var(--gray-100); border-radius: var(--radius-full); overflow: hidden; }
.bar__fill { height: 100%; border-radius: inherit; background: var(--grad-brand); width: 0; transition: width 1.2s var(--ease-out); }
.metricrow { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.metricrow__item { display: grid; grid-template-columns: 180px 1fr auto; gap: var(--space-4); align-items: center; }
.metricrow__name { font-size: var(--text-small); font-weight: 500; color: var(--gray-700); }
.metricrow__val { font-family: var(--font-mono); font-size: var(--text-small); color: var(--ink); font-weight: 500; min-width: 48px; text-align: right; }
@media (max-width: 560px){ .metricrow__item { grid-template-columns: 110px 1fr auto; } .metricrow__name { font-size: var(--text-micro); } }

.histogram { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: var(--space-4); }
.histogram__bar { flex: 1; background: var(--grad-brand); border-radius: 4px 4px 0 0; min-height: 4px;
  transition: height 1s var(--ease-out); position: relative; opacity: 0.92; }
.histogram__bar:hover { opacity: 1; }
.histogram__axis { display: flex; justify-content: space-between; margin-top: var(--space-2); font-family: var(--font-mono); font-size: var(--text-micro); color: var(--gray-400); }

/* ── Apple-Health-style activity rings ─────────────────────────────────── */
.rings { position: relative; width: 220px; height: 220px; margin-inline: auto; }
.rings svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke-width: 16; stroke-linecap: round; opacity: 0.16; }
.ring-fg { fill: none; stroke-width: 16; stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease-out); }
.healthcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.healthcard__label { font-size: var(--text-label); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray-500); display: flex; align-items: center; gap: 8px; }
.healthcard__val { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 500; color: var(--ink); line-height: 1.1; margin-top: var(--space-2); }
.healthcard__val small { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gray-400); font-weight: 400; }
.healthcard__trend { font-size: var(--text-micro); margin-top: 4px; }
.sparkline { width: 100%; height: 38px; margin-top: var(--space-3); }

/* ── Steps / process ───────────────────────────────────────────────────── */
.steps { display: grid; gap: var(--space-5); counter-reset: step; }
.step { display: flex; gap: var(--space-4); }
.step__num { flex: none; width: 38px; height: 38px; border-radius: var(--radius-full); display: grid; place-items: center;
  background: var(--primary-ghost); color: var(--primary); font-family: var(--font-mono); font-weight: 600; font-size: 0.95rem; }
.step__body h4 { margin-bottom: 4px; }
.step__body p { color: var(--gray-600); font-size: var(--text-small); }

/* ── Team / avatars ────────────────────────────────────────────────────── */
.avatar { width: 100%; aspect-ratio: 1; border-radius: var(--radius-lg); object-fit: cover; background: var(--grad-brand-soft); }
.avatar--ph { display: grid; place-items: center; color: var(--primary); font-family: var(--font-serif); font-size: 2.4rem; font-weight: 500;
  border: 1px solid var(--border); }
.team__name { font-weight: 600; color: var(--ink); margin-top: var(--space-3); }
.team__role { font-size: var(--text-small); color: var(--accent-600); }
.team__bio { font-size: var(--text-small); color: var(--gray-500); margin-top: var(--space-2); }

/* ── Pricing ───────────────────────────────────────────────────────────── */
.price { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 500; color: var(--ink); line-height: 1; }
.price small { font-family: var(--font-sans); font-size: var(--text-small); color: var(--gray-500); font-weight: 400; }

/* Booking calendar (contact page) */
.bcal { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); padding: var(--space-4); }
.bcal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.bcal__head strong { font-size: 1.05rem; color: var(--ink); text-transform: capitalize; }
.bcal__nav { width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--gray-700); font-size: 1.2rem; line-height: 1; }
.bcal__nav[disabled] { opacity: 0.35; cursor: default; }
.bcal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bcal__dow { text-align: center; font-size: var(--text-label); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gray-500); padding: 4px 0 6px; font-weight: 600; }
.bcal__day { aspect-ratio: 1; border-radius: var(--radius-sm); border: 1px solid transparent; background: none;
  color: var(--gray-700); font-size: 0.98rem; font-variant-numeric: tabular-nums;
  transition: background var(--dur), border-color var(--dur), color var(--dur); }
.bcal__day:not([disabled]):hover { background: var(--primary-ghost); border-color: var(--border-strong); }
.bcal__day[disabled] { color: var(--gray-300); cursor: default; }
.bcal__day--sel { background: var(--accent); color: #fff; font-weight: 700; }
.bcal__day--sel:not([disabled]):hover { background: var(--accent-600); }
.bcal__slots { border-top: 1px solid var(--border); margin-top: var(--space-3); padding-top: var(--space-3); }
.bcal__label { font-size: var(--text-small); color: var(--gray-500); margin-bottom: var(--space-2); }
.bcal__times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 7px; }
.bcal__slot { padding: 0.55rem 0; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--gray-700); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.bcal__slot:hover { border-color: var(--accent-400); color: var(--ink); }
.bcal__slot--sel { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.bcal__chosen { margin-top: var(--space-3); font-size: var(--text-small); color: var(--gray-600); }
.bcal__chosen strong { color: var(--accent-400); }

/* "Your documents" list (My Health) */
.doclink { display: flex; align-items: center; gap: 12px; padding: 0.85rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--surface-2); font-size: var(--text-small); color: var(--gray-700); }
.doclink svg { flex: none; stroke: var(--accent-400); }
.doclink a { color: var(--accent-400); font-weight: 600; }

/* Accepted payment methods strip (light pages) */
.accepted { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.accepted__label { font-size: var(--text-small); color: var(--gray-500); margin-right: 2px; }
.accepted svg { width: 44px; height: 28px; border-radius: 5px; box-shadow: var(--shadow-xs); flex: none; }
.plan { position: relative; }
.plan--featured { border-color: var(--primary); box-shadow: var(--shadow-glow); }
.plan__list { list-style: none; padding: 0; margin-top: var(--space-5); display: grid; gap: var(--space-3); }
.plan__list li { display: flex; gap: 10px; font-size: var(--text-small); color: var(--gray-600); align-items: flex-start; }
.plan__list svg { flex: none; color: var(--accent); margin-top: 3px; }

/* ── CTA band ──────────────────────────────────────────────────────────── */
.cta-band { background: var(--ink-900); color: #fff; border-radius: var(--radius-2xl); padding: clamp(2.5rem, 5vw, 4.5rem); position: relative; overflow: hidden; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.9;
  background: radial-gradient(700px 400px at 80% -20%, rgba(46,160,170,0.4), transparent 60%), radial-gradient(600px 400px at 0% 120%, rgba(27,77,143,0.5), transparent 55%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,0.75); margin-inline: auto; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { background: var(--ink-900); color: rgba(255,255,255,0.66); padding-block: var(--space-8) var(--space-6); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-6); }
@media (max-width: 800px){ .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { font-size: var(--text-label); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: var(--space-4); font-weight: 600; }
.footer a { color: rgba(255,255,255,0.72); font-size: var(--text-small); display: block; padding: 4px 0; transition: color var(--dur); }
.footer a:hover { color: #fff; }
.footer .brand__name { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: var(--space-7); padding-top: var(--space-5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); font-size: var(--text-micro); color: rgba(255,255,255,0.45); }
.footer__badges { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.footer__badge { font-size: var(--text-label); text-transform: uppercase; letter-spacing: 0.04em; color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius-xs); padding: 4px 8px; }

/* ── Callout / note ────────────────────────────────────────────────────── */
.callout { border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: var(--space-4) var(--space-5); }
.callout__title { font-weight: 600; color: var(--ink); margin-bottom: 4px; font-size: var(--text-small); }
.note-demo { position: fixed; bottom: 14px; left: 14px; z-index: 200; background: var(--ink-900); color: #fff;
  font-size: var(--text-micro); padding: 8px 14px; border-radius: var(--radius-full); box-shadow: var(--shadow-lg); opacity: 0.92; }

/* ── BankID modal + app shell (patient demo) ───────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: var(--space-5);
  background: rgba(10,15,26,0.55); backdrop-filter: blur(4px); }
.modal__card { width: min(420px, 100%); background: var(--surface); border-radius: var(--radius-xl); padding: var(--space-7);
  box-shadow: var(--shadow-xl); text-align: center; animation: pop var(--dur-slow) var(--ease-spring) both; }
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(10px); } to { opacity: 1; transform: none; } }
.bankid-logo { width: 64px; height: 64px; border-radius: var(--radius-md); background: #193e4f; display: grid; place-items: center; margin: 0 auto var(--space-4); }
.bankid-qr { width: 150px; height: 150px; margin: var(--space-4) auto; border-radius: var(--radius-md); border: 1px solid var(--border); padding: 8px; background: #fff; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--primary-100); border-top-color: var(--primary); animation: spin 0.8s linear infinite; margin: var(--space-5) auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.app-shell { max-width: 430px; margin: var(--space-7) auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-2xl); box-shadow: var(--shadow-xl); overflow: hidden; }
.app-status { height: 30px; background: var(--ink-900); }
.app-head { padding: var(--space-5) var(--space-5) var(--space-4); border-bottom: 1px solid var(--border); }
.app-body { padding: var(--space-5); display: grid; gap: var(--space-4); background: var(--surface-2); }

/* ── Logos strip ───────────────────────────────────────────────────────── */
.logos { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; justify-content: center; opacity: 0.6; }
.logos span { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--gray-500); letter-spacing: 0.02em; }

/* ── Scroll reveal ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: 0.08s; } .reveal[data-d="2"]{ transition-delay: 0.16s; }
.reveal[data-d="3"]{ transition-delay: 0.24s; } .reveal[data-d="4"]{ transition-delay: 0.32s; }

/* ── Polish pass: focus, responsive, mobile nav, standards, contrast ───── */
:where(a, button, input, [tabindex]):focus-visible { outline: none; box-shadow: var(--focus-shadow); border-radius: var(--radius-sm); }
.hero :focus-visible, .footer :focus-visible, .cta-band :focus-visible, .btn--white:focus-visible, .btn--light:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,0.7); }

/* Responsive utility grids that collapse on mobile */
.g-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.g-15 { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-6); align-items: start; }
@media (max-width: 760px){ .g-2, .g-15 { grid-template-columns: 1fr; } }

/* Contrast fixes (WCAG AA) */
.brand__name span { color: var(--gray-500); }
.gauge__denom, .histogram__axis, .agg-axis { color: var(--gray-500); }
.chip--borderline { color: #8A5A12; }
.footer__bottom { color: rgba(255,255,255,0.62); }

/* Mobile navigation */
.nav__toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); align-items: center; justify-content: center; flex: none; }
.nav__toggle svg { width: 20px; height: 20px; stroke: var(--ink); }
@media (max-width: 860px){
  .nav__toggle { display: inline-flex; }
  .nav__cta { margin-left: auto; }
  .nav__links { position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(255,255,255,0.97); backdrop-filter: saturate(180%) blur(16px); border: 1px solid var(--border-hair);
    border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4); box-shadow: var(--shadow-xl); display: none; }
  .nav__links.open { display: flex; }
  .nav__links a { padding: var(--space-3) var(--space-2); border-bottom: 1px solid var(--border-hair); font-size: var(--text-body); }
  .nav__links a:last-child { border-bottom: none; }
}
@media (max-width: 540px){ .brand__name span { display: none; } .nav__cta .btn--ghost { display: none; } .nav__cta { margin-left: 0; } .nav__inner { gap: var(--space-3); padding-inline: var(--space-3); } }
@media (max-width: 560px){ .hero h1, .hero .display { font-size: clamp(1.5rem, 6.2vw, 2.2rem); } .hero .lead { font-size: 1rem; } }

/* Standards / references strip (replaces faded text) */
.standards { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: center; }
.standards span { font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: 0.03em; color: var(--gray-600);
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-full); padding: 7px 15px; box-shadow: var(--shadow-xs); }

/* Histogram zone colors + median marker */
.histogram { position: relative; }
.histogram__bar.z-low { background: var(--attention); }
.histogram__bar.z-mid { background: var(--borderline); }
.histogram__bar.z-high { background: var(--optimal); }
.histogram__median { position: absolute; top: 0; bottom: 22px; width: 0; border-left: 2px dashed var(--ink); opacity: 0.55; }
.histogram__median span { position: absolute; top: -2px; left: 6px; font-family: var(--font-mono); font-size: var(--text-micro); color: var(--ink); white-space: nowrap; }

/* Polished form fields */
.field { display: block; }
.field label { display: block; font-size: 1.05rem; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; line-height: 1.4; }
.field input { width: 100%; padding: 0.85rem 1rem; font-size: 1.05rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; background: var(--surface-2); color: var(--ink); transition: border-color var(--dur), box-shadow var(--dur), background var(--dur); }
.field input::placeholder { color: var(--gray-400); }
.field input:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: var(--focus-shadow); }

/* Flexible metric label column (longer bars) */
.metricrow__item { grid-template-columns: minmax(120px, 30%) 1fr 44px; }

/* Social icons + bio prose + price tag (real-content build) */
.social { display: flex; gap: var(--space-3); }
.social a { width: 36px; height: 36px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: rgba(255,255,255,0.8); transition: background var(--dur), color var(--dur); }
.social a:hover { background: rgba(255,255,255,0.16); color: #fff; }
.prose-bio p { color: var(--gray-600); font-size: var(--text-small); line-height: 1.7; margin-top: var(--space-3); }
.prose-bio p:first-child { margin-top: 0; }
.pullquote { font-family: var(--font-serif); font-size: var(--text-h4); font-style: italic; color: var(--primary);
  border-left: 3px solid var(--accent); padding-left: var(--space-4); margin-top: var(--space-4); line-height: 1.5; }
.tier { display: flex; flex-direction: column; }
.tier__price { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 500; color: var(--ink); line-height: 1; }
.tier__price small { font-family: var(--font-sans); font-size: var(--text-small); color: var(--gray-500); font-weight: 400; }
.profile { display: grid; grid-template-columns: 200px 1fr; gap: var(--space-6); align-items: start; }
@media (max-width: 680px){ .profile { grid-template-columns: 1fr; } .profile .avatar { max-width: 160px; } }

/* ═══ Visualizations - restrained, Apple-style, clinical ═══════════════ */

/* Ambient: barely-there drift of the hero dot-grid */
@keyframes heroDrift { to { background-position: 28px 28px; } }

/* Signature ECG / HRV pulse line (home hero) */
.pulseline { width: 100%; height: 64px; display: block; overflow: visible; opacity: 0.95; }
.pulseline path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pulseline__base { stroke: rgba(47,160,170,0.42); stroke-width: 2; }
.pulseline__beat { stroke: #7DEAF2; stroke-width: 2.8; stroke-dasharray: 0.17 0.83; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(125,234,242,0.85)); }
.pulseline.in .pulseline__beat { animation: ecgSweep 2.6s linear infinite; }
@keyframes ecgSweep { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes drawIn { to { stroke-dashoffset: 0; } }

/* Convergence flow: Wearables · Genetics · Labs → Precision Health Score
   (paths use pathLength="100" so dash math is resolution-independent) */
.flow__svg { width: 100%; height: auto; display: block; }
.flow__line { fill: none; stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 100; }
.reveal.in .flow__line { animation: drawIn 1.5s var(--ease-out) forwards; }
.reveal.in .flow__line.l2 { animation-delay: .12s; }
.reveal.in .flow__line.l3 { animation-delay: .24s; }
.flow__flow { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 5 95; stroke-dashoffset: 100; opacity: 0; }
.reveal.in .flow__flow { animation: flowMove 3s linear 1.3s infinite; }
.reveal.in .flow__flow.l2 { animation-delay: 1.6s; }
.reveal.in .flow__flow.l3 { animation-delay: 1.9s; }
@keyframes flowMove { 0% { opacity: 0; stroke-dashoffset: 100; } 14% { opacity: .95; } 86% { opacity: .95; } 100% { opacity: 0; stroke-dashoffset: 0; } }
.flow__chip { font-family: var(--font-sans); font-size: 12px; font-weight: 600; }
.flow__core { filter: drop-shadow(0 8px 20px rgba(27,77,143,0.22)); }

/* Device mockup (the My Health app, Apple-style product shot) */
.device { width: min(290px, 78vw); margin-inline: auto; background: #0A1424; border-radius: 44px; padding: 11px;
  position: relative; box-shadow: var(--shadow-xl), inset 0 0 0 1px rgba(255,255,255,0.05); }
.device::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 36%; height: 22px; background: #0A1424; border-radius: 0 0 16px 16px; z-index: 3; }
.device__screen { border-radius: 33px; overflow: hidden; background: var(--bg); aspect-ratio: 9 / 19.3; display: flex; flex-direction: column; }
.device__bar { height: 38px; background: var(--ink-900); flex: none; }
.device__body { flex: 1; padding: var(--space-5) var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.device__row { display: flex; gap: var(--space-3); }
.device__tile { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); box-shadow: var(--shadow-xs); }
.device__tile .k { font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray-500); }
.device__tile .v { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; color: var(--ink); line-height: 1.1; }
.device__tile .v small { font-family: var(--font-mono); font-size: 0.7rem; color: var(--gray-400); }
.device-wrap { position: relative; }
.device-wrap::after { content: ""; position: absolute; inset: auto 0 -8% 0; height: 40%; z-index: -1;
  background: radial-gradient(60% 100% at 50% 100%, var(--primary-ghost), transparent 70%); }

/* Domain radar (what we measure) */
.radar { width: 100%; max-width: 440px; margin-inline: auto; }
.radar svg { width: 100%; height: auto; overflow: visible; display: block; }
.radar__grid, .radar__axis { fill: none; stroke: var(--border); stroke-width: 1; }
.radar__area { fill: rgba(14,124,134,0.14); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round;
  transform-box: fill-box; transform-origin: center; transform: scale(0.25); opacity: 0; }
.reveal.in .radar__area { animation: radarPop 1.1s var(--ease-spring) .2s forwards; }
@keyframes radarPop { to { transform: scale(1); opacity: 1; } }
.radar__dot { fill: var(--accent); opacity: 0; }
.reveal.in .radar__dot { animation: fadeInDot .5s var(--ease-out) 1s forwards; }
@keyframes fadeInDot { to { opacity: 1; } }
.radar__label { font-family: var(--font-sans); font-size: 11px; font-weight: 600; fill: var(--gray-500); }

/* Vertical timeline (founder journey) */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--primary), var(--accent)); border-radius: 2px; }
.timeline__item { position: relative; padding-bottom: var(--space-5); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ""; position: absolute; left: -29px; top: 3px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); }
.timeline__year { font-family: var(--font-mono); font-size: var(--text-micro); color: var(--accent-600); font-weight: 500; }
.timeline__text { font-size: var(--text-small); color: var(--gray-600); margin-top: 2px; line-height: 1.5; }

/* Stylized location map (contact) */
.map { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 11;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); background: #eef3f7; }
.map svg { width: 100%; height: 100%; display: block; }
.map__pin { transform-box: fill-box; transform-origin: center bottom; animation: pinDrop .7s var(--ease-spring) both; }
.map__ping { fill: var(--accent); opacity: .35; transform-box: fill-box; transform-origin: center; animation: ping 2.4s ease-out infinite; }
@keyframes pinDrop { from { transform: translateY(-14px) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ping { 0% { transform: scale(.4); opacity: .5; } 100% { transform: scale(2.4); opacity: 0; } }

/* Smoother, slightly richer scroll reveals */
.reveal { transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }

/* ═══ Micro-interactions & depth ════════════════════════════════════════ */
:root {
  --shadow-lift-strong: 0 1px 1px rgba(10,15,26,0.05), 0 3px 8px rgba(10,15,26,0.06),
    0 12px 28px rgba(10,15,26,0.10), 0 28px 56px rgba(10,15,26,0.13);
  --ring-hair: inset 0 1px 0 rgba(255,255,255,0.6);
  --spotlight: rgba(27,77,143,0.10);
}
.card--hover { position: relative; isolation: isolate;
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), border-color var(--dur) var(--ease-out); }
.card--hover::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit; opacity: 0; transition: opacity var(--dur-slow) var(--ease-out);
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), var(--spotlight), transparent 60%); }
.card--hover:hover::after { opacity: 1; }
.card--hover > * { position: relative; z-index: 2; }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift-strong), var(--ring-hair); border-color: var(--border-strong); }
.card--glass.card--hover::after, .card--accent.card--hover::after {
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(47,160,170,0.16), transparent 60%); }

/* Button sheen - solid brand CTAs only */
.btn--primary, .btn--accent { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after, .btn--accent::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; z-index: -1;
  pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.30), transparent);
  transform: translateX(-180%); opacity: 0; }
.btn--primary:hover::after, .btn--accent:hover::after { animation: btnSheen 0.7s var(--ease-out) forwards; }
@keyframes btnSheen { from { transform: translateX(-180%); opacity: 0; } 20% { opacity: 1; } to { transform: translateX(260%); opacity: 0; } }

/* Nav settle on scroll (floating pill) */
.nav--scrolled .nav__inner { background: rgba(251,252,253,0.9); box-shadow: 0 2px 6px rgba(10,15,26,0.06), 0 16px 42px rgba(10,15,26,0.13); }

/* Anchor offset so the sticky nav never covers headings */
:target { scroll-margin-top: 88px; }

/* Scroll-progress hairline */
.scrollbar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300; background: var(--grad-brand);
  transform: scaleX(0); transform-origin: 0 50%; will-change: transform; pointer-events: none; box-shadow: 0 0 8px rgba(14,124,134,0.5); }

/* Reveal variants + per-child stagger (opt-in) */
.reveal--left { transform: translate3d(-26px,0,0); } .reveal--right { transform: translate3d(26px,0,0); }
.reveal--scale { transform: scale(0.94); }
.reveal--left.in, .reveal--right.in, .reveal--scale.in { transform: none; }
.reveal--spring { transition: opacity 0.7s var(--ease-out), transform 0.75s var(--ease-spring); }
[data-stagger] > .reveal { transition-delay: calc(var(--i, 0) * 70ms); }

/* Sequenced viz clusters */
.seq > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.seq.in > * { opacity: 1; transform: none; }
.seq.in > *:nth-child(1){transition-delay:.00s} .seq.in > *:nth-child(2){transition-delay:.14s}
.seq.in > *:nth-child(3){transition-delay:.28s} .seq.in > *:nth-child(4){transition-delay:.42s}
.seq.in > *:nth-child(5){transition-delay:.56s}

/* ── Light atmosphere: top-light wash (kills the dead white scroll) ─────── */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -8%, var(--wash-teal), transparent 60%),
    radial-gradient(900px 700px at 8% 4%, var(--wash-top), transparent 55%); }
.section--seam { position: relative; }
.section--seam::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  pointer-events: none; background: var(--rule-grad); opacity: 0.7; }

/* ── Editorial polish ──────────────────────────────────────────────────── */
.section-head .eyebrow { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3); }
.section-head .eyebrow::before, .section-head .eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: 0.65; flex: none; }
.stat__num, .price, .tier__price, .gauge__num, .healthcard__val { font-variant-numeric: lining-nums tabular-nums; }
.price, .tier__price { letter-spacing: -0.025em; }
.display, h1, .h1, h2, .h2 { text-wrap: balance; }
.lead { text-wrap: pretty; }
.pullquote--lg { font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-style: italic; line-height: 1.4; max-width: 26ch;
  border-left: none; padding-left: 0; padding-top: var(--space-5); position: relative; color: var(--primary); }
.pullquote--lg::before { content: "\201C"; position: absolute; top: -0.1em; left: -0.04em; font-family: var(--font-serif);
  font-size: 3.2em; line-height: 1; color: var(--accent); opacity: 0.22; pointer-events: none; }
.pullquote__cite { display: block; margin-top: var(--space-4); font-family: var(--font-sans); font-style: normal;
  font-size: var(--text-small); font-weight: 600; color: var(--gray-600); }
.pullquote__cite span { color: var(--gray-500); font-weight: 400; }

/* ── Legal / long-form document pages ──────────────────────────────────── */
.legal-doc { font-size: 1rem; }
.legal-doc > .lead { color: var(--gray-500); margin-bottom: var(--space-7); }
.legal-doc h2 { font-family: var(--font-serif); font-weight: 500; font-size: var(--text-h3); color: var(--ink);
  margin: var(--space-8) 0 var(--space-3); }
.legal-doc h3 { font-size: var(--text-h4); margin: var(--space-5) 0 var(--space-2); }
.legal-doc p { color: var(--gray-600); line-height: 1.75; margin-bottom: var(--space-4); }
.legal-doc ul { margin: 0 0 var(--space-5); padding-left: var(--space-5); display: grid; gap: var(--space-2); }
.legal-doc li { color: var(--gray-600); line-height: 1.65; }
.legal-doc a { color: var(--accent-400); text-decoration: underline; text-underline-offset: 2px; }
.legal-doc code { font-family: var(--font-mono); font-size: 0.88em; background: rgba(255,255,255,0.07);
  padding: 1px 6px; border-radius: var(--radius-xs); }
.legal-doc small { color: var(--gray-500); }
.legal-doc strong { color: var(--gray-800); }
@media (max-width: 560px){ .pullquote--lg { font-size: clamp(1.2rem, 5.5vw, 1.5rem); } }

/* ═══════════════════════════════════════════════════════════════════════
   FULL DARK THEME - the hero's institutional navy, unified across the
   entire site. Redefines surface/text/border tokens to dark values, then
   fixes the components and visualizations that assumed a light canvas.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --ink: #EAF1F9;
  --bg: #0A1424;
  --surface: rgba(255,255,255,0.05);
  --surface-2: rgba(255,255,255,0.028);
  --surface-3: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.22);
  --border-hair: rgba(255,255,255,0.08);
  --gray-900: #F2F6FB; --gray-800: #E3EAF3; --gray-700: #CFD9E6;
  --gray-600: #B2BFD2; --gray-500: #8C9BB2; --gray-400: #6B7B94;
  --gray-300: rgba(255,255,255,0.22); --gray-200: rgba(255,255,255,0.13);
  --gray-100: rgba(255,255,255,0.08); --gray-50: rgba(255,255,255,0.04);
  --primary-ghost: rgba(47,160,170,0.12);
  --accent-soft: rgba(47,160,170,0.14);
  --grad-brand-soft: linear-gradient(135deg, rgba(27,77,143,0.22), rgba(14,124,134,0.16));
  --optimal-soft: rgba(30,122,82,0.20);
  --borderline-soft: rgba(183,121,31,0.20);
  --attention-soft: rgba(180,50,42,0.20);
  --focus-shadow: 0 0 0 3px rgba(47,160,170,0.5);
  --spotlight: rgba(47,160,170,0.14);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 6px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.4);
  --shadow-xl: 0 30px 70px rgba(0,0,0,0.5);
}

/* Page canvas - navy gradient like the hero, fixed across the whole site */
body { background: var(--ink-900); color: var(--gray-700); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 760px at 82% -6%, rgba(46,160,170,0.16), transparent 60%),
    radial-gradient(1100px 820px at -2% 6%, rgba(27,77,143,0.34), transparent 55%),
    radial-gradient(900px 760px at 100% 102%, rgba(46,160,170,0.10), transparent 60%),
    linear-gradient(168deg, var(--ink-900), var(--ink-950) 72%); }

a { color: var(--accent-400); }
.eyebrow, .team__role, .timeline__year { color: var(--accent-400); }
.pill--accent { color: var(--accent-400); }

/* Cards → glass */
.card { background: var(--surface); border-color: rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 18px 44px rgba(0,0,0,0.32); }
.card--hover:hover { border-color: rgba(255,255,255,0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 28px 60px rgba(0,0,0,0.42); }
.card__icon { background: rgba(47,160,170,0.12); color: var(--accent-400); }
.card__icon--accent { background: rgba(47,160,170,0.18); color: var(--accent-400); }
.step__num { background: rgba(47,160,170,0.14); color: var(--accent-400); }
.plan__list svg { color: var(--accent-400); }

/* Buttons */
.btn--secondary { --bg: rgba(255,255,255,0.06); --fg: #fff; --bd: rgba(255,255,255,0.22); }
.btn--secondary:hover { --bg: rgba(255,255,255,0.12); --fg: #fff; --bd: rgba(255,255,255,0.34); }
.btn--ghost { --fg: rgba(255,255,255,0.78); }
.btn--ghost:hover { --fg: #fff; background: rgba(255,255,255,0.08); }
.btn--white { --bg: #fff; --fg: var(--primary); }

/* Pills / standards */
.pill { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: rgba(255,255,255,0.85); box-shadow: none; }
.standards span { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); color: rgba(255,255,255,0.82); box-shadow: none; }

/* Status chips - lighten text for dark tints */
.chip--optimal { color: #5FD3A2; }
.chip--borderline { color: #E3B468; }
.chip--attention { color: #F1948C; }

/* Forms */
.field input { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.18); color: #fff; }
.field input::placeholder { color: rgba(255,255,255,0.42); }
.field input:focus { background: rgba(255,255,255,0.09); border-color: var(--accent-400); }

/* Nav - dark glass pill (links are light) */
.nav__inner { background: rgba(12,22,40,0.28); border-color: rgba(255,255,255,0.12); }
.nav--scrolled .nav__inner { background: rgba(10,18,33,0.55); box-shadow: 0 2px 6px rgba(0,0,0,0.25), 0 16px 42px rgba(0,0,0,0.4); }
.nav__toggle { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }

/* EN/SV language toggle */
.lang-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; flex: none; cursor: pointer;
  border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.05);
  font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.03em; }
.lang-toggle span { padding: 4px 9px; border-radius: var(--radius-full); color: var(--gray-500); line-height: 1;
  transition: color var(--dur) var(--ease-out), background var(--dur) var(--ease-out); }
.lang-toggle span.is-on { background: var(--accent); color: #fff; }
.lang-toggle:hover span:not(.is-on) { color: var(--gray-300); }

/* Avatars (placeholder) */
.avatar--ph { background: rgba(255,255,255,0.05); color: var(--accent-400); border-color: rgba(255,255,255,0.12); }

/* Footer / CTA band separation on an all-dark page */
.footer { background: rgba(0,0,0,0.22); border-top: 1px solid rgba(255,255,255,0.08); }
.cta-band { border: 1px solid rgba(255,255,255,0.1); }

/* Callout */
.callout { background: rgba(47,160,170,0.1); border-color: rgba(255,255,255,0.12); border-left-color: var(--accent-400); }

/* Visualizations on dark */
.map { background: #0E1B30; border-color: rgba(255,255,255,0.12); }
.timeline::before { background: linear-gradient(var(--accent-400), var(--primary-400)); }
.timeline__item::before { background: var(--ink-800); border-color: var(--accent-400); }
.device__tile { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.orb__track { stroke: rgba(255,255,255,0.16); }
.orb__nodeicon { stroke: var(--accent-400); }
.orb__nodelbl { fill: rgba(255,255,255,0.7); }
.radar__area { stroke: var(--accent-400); fill: rgba(47,160,170,0.16); }
.radar__dot { fill: var(--accent-400); }
.gauge__track, .ring-bg { opacity: 1; }

/* Loovi-style serif-italic accent word in headlines */
.text-grad { font-style: italic; }

@media (max-width: 860px){
  .nav__links { background: rgba(12,22,40,0.96); border-color: rgba(255,255,255,0.12); }
}

@media (prefers-reduced-motion: no-preference){
  .hero::after { animation: heroDrift 70s linear infinite; }
  .hero__aurora { animation: auroraBloom 26s ease-in-out infinite alternate; }
  .orb.in .orb__halo  { animation: orbBreath 6s ease-in-out infinite; }
}

@media (prefers-reduced-motion: reduce){
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .pulseline__beat { animation: none; stroke-dasharray: none; }
  .flow__line { stroke-dashoffset: 0; }
  .radar__area { transform: none; opacity: 1; }
  .radar__dot { opacity: 1; }
  .map__pin { opacity: 1; transform: none; }
  .map__ping { display: none; }
  .hero__aurora { animation: none !important; transform: none !important; opacity: 0.4; }
  .hero .display.reveal .hero__line { transform: none !important; }
  .orb__halo { opacity: 1; transform: none; animation: none; }
  .orb__arc { animation: none; }
  .orb__pulse { opacity: 1; stroke-dashoffset: 0; animation: none; }
  .orb__core { transform: none; }
  .reveal--left, .reveal--right, .reveal--scale { transform: none; opacity: 1; }
  .card--hover::after { display: none; }
  .btn--primary::after, .btn--accent::after { display: none; }
  .scrollbar { display: none; }
  [data-stagger] > .reveal { transition-delay: 0s !important; }
  .seq > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pullquote--lg { opacity: 1 !important; transform: none !important; }
}

/* ── Print: dark theme would print near-white text on white paper ───────── */
@media print {
  :root {
    --ink: #0A0F1A; --bg: #fff; --surface: #fff; --surface-2: #fff; --surface-3: #F1F5F9;
    --border: #CBD5E1; --border-strong: #94A3B8;
    --gray-900: #0F172A; --gray-800: #1E293B; --gray-700: #334155; --gray-600: #475569;
    --gray-500: #64748B; --gray-400: #94A3B8; --accent-400: #0E7C86;
  }
  body { background: #fff !important; color: #0A0F1A; }
  body::before, .hero__atmos, .hero__dna, .hero__photo, .pulseline { display: none !important; }
  .hero { background: #fff; color: #0A0F1A; }
  .nav, .footer, #phChatBtn, #phChat, .note-demo, .scrollbar { display: none !important; }
  a { color: #0E7C86; }
  .card, .consent { border: 1px solid #CBD5E1; box-shadow: none; background: #fff; }
}
