﻿/* Kyber Clinical AI — public KDS site (v2)
   Design system: DESIGN.md. Harmonised DEOX + Kyber logo palette; the hexes below are the ONLY
   colours allowed. Alpha tints are built from these colours only (rgba of the same RGB values).
   Contrast rules: no orange text on light surfaces; no teal on dark; CTA = dark label on orange. */

:root {
  /* Navy ramp (brand dark) */
  --night: #050B1D;           /* hero, stats band, footer (logo navy family) */
  --deep: #0F2438;            /* DEOX dark blue: platform band, raised dark cards */
  /* Structural */
  --blue: #1B3A5C;            /* DEOX Blue: headings on light, nodes, table headers, icons */
  /* Accents */
  --orange: #FF8A0A;          /* Kyber/DEOX orange: CTAs, key numerals on dark, meters */
  --orange-hover: #E07600;
  --teal: #007B83;            /* sparing: links and labels on light only */
  /* Text */
  --ink: #2D2D2D;
  --ink-2: #666666;
  --on-dark: #F4F6F8;
  --on-dark-2: rgba(244, 246, 248, .72);   /* >= 8.14:1 on --deep */
  /* Light surfaces */
  --white: #FFFFFF;
  --tint: #F2F6FA;
  --surface: #F8FAFC;
  /* Lines */
  --line-light: rgba(27, 58, 92, .12);
  --line-light-2: rgba(27, 58, 92, .24);
  --line-dark: rgba(244, 246, 248, .12);
  --line-dark-2: rgba(244, 246, 248, .32);

  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --max: 1200px;
  --gutter: 1.5rem;
  --section: 4rem;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) { :root { --section: 5rem; --gutter: 2rem; } }
@media (min-width: 1024px) { :root { --section: 6rem; --gutter: 3rem; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--night); /* dark canvas behind the sticky header and overscroll; light sections set their own */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--orange); }

h1, h2, h3, h4 { color: var(--blue); margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.04; font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
code { font-family: var(--mono); font-size: .9em; }

.container {
  width: 100%; max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-left)) 0 max(var(--gutter), env(safe-area-inset-right));
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--orange); color: var(--night); padding: .75rem 1.25rem; font-weight: 700; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: var(--night); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Surfaces ---------- */
.on-dark { color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--on-dark); }
.on-dark a:not(.btn) { color: var(--on-dark); }
.on-dark a:not(.btn):hover { color: var(--orange); }
.band-night { background: var(--night); }
.band-deep { background: var(--deep); }
.band-tint { background: var(--tint); }
.band-white { background: var(--white); }
.section { padding: var(--section) 0; }

/* ---------- Buttons, pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.6rem; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary, .btn-primary:visited { background: var(--orange); color: var(--night); }
.btn-primary:hover, .btn-primary:active { background: var(--orange-hover); color: var(--night); }
.btn-primary:focus-visible { outline: 3px solid var(--on-dark); outline-offset: 3px; box-shadow: 0 0 0 6px var(--orange); }
.btn-ghost, .btn-ghost:visited { background: transparent; color: var(--on-dark); border-color: var(--line-dark-2); }
.btn-ghost:hover { border-color: var(--on-dark); color: var(--on-dark); }
.btn-outline, .btn-outline:visited { background: transparent; color: var(--blue); border-color: var(--line-light-2); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-small { min-height: 44px; padding: .55rem 1.15rem; font-size: .9375rem; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .4rem 1rem .4rem .85rem; margin: 0 0 1.75rem;
  border: 1px solid var(--line-dark-2); border-radius: 999px;
  font-size: .875rem; font-weight: 600; letter-spacing: .01em; color: var(--on-dark);
  background: rgba(244, 246, 248, .04);
}
.pill .dot, .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none;
  box-shadow: 0 0 0 4px rgba(255, 138, 10, .18);
}

.eyebrow {
  display: inline-block; margin: 0 0 1rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal);
}
.on-dark .eyebrow { color: var(--orange); }

.section-head { max-width: 46rem; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.1875rem; color: var(--ink-2); margin: 0; }
.on-dark .section-head p { color: var(--on-dark-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 11, 29, .86);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark);
  padding-top: env(safe-area-inset-top);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: .8rem; margin-right: auto;
  color: var(--on-dark); text-decoration: none; min-height: 44px;
}
.brand:hover { color: var(--on-dark); text-decoration: none; }
.brand img { width: 36px; height: 40px; }
.brand-name { font-weight: 700; font-size: 1.1875rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-name span { font-weight: 400; color: var(--on-dark-2); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border-radius: 999px;
  color: var(--on-dark-2); text-decoration: none; font-size: .9375rem; font-weight: 500;
}
.site-nav a:hover { color: var(--on-dark); background: rgba(244, 246, 248, .06); }
.site-nav a[aria-current="page"] { color: var(--on-dark); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }

.nav-toggle {
  display: none; align-items: center; gap: .5rem; min-height: 44px; min-width: 44px; padding: 0 .9rem;
  background: transparent; color: var(--on-dark); border: 1px solid var(--line-dark-2); border-radius: 999px;
  font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s var(--ease);
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* Mobile/tablet nav: without JS the links wrap below the brand; with JS they sit behind Menu. */
@media (max-width: 1023.98px) {
  .site-nav { order: 3; flex-basis: 100%; padding-bottom: .5rem; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav.is-open ul { flex-direction: column; gap: 0; padding: .25rem 0 .75rem; border-top: 1px solid var(--line-dark); }
  .site-nav.is-open a { width: 100%; border-radius: 10px; font-size: 1.0625rem; }
  .header-cta { order: 2; }
}
@media (max-width: 479.98px) {
  .brand-name span { display: none; }
  .header-inner { gap: .5rem; }
  .header-cta { padding: .55rem .9rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 55% at 78% 100%, rgba(255, 138, 10, .16), rgba(255, 138, 10, 0) 70%),
    radial-gradient(70% 60% at 15% 0%, rgba(27, 58, 92, .55), rgba(27, 58, 92, 0) 70%),
    var(--night);
  color: var(--on-dark);
}
.hero::before { /* faint grid, echoing the logo's drawing board */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 246, 248, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 246, 248, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 80% at 70% 60%, var(--night) 30%, transparent 80%);
  mask-image: radial-gradient(80% 80% at 70% 60%, var(--night) 30%, transparent 80%);
}
.hero-grid { display: grid; gap: 2.5rem; align-items: end; }
.hero-copy { padding: 4.5rem 0 0; }
.hero h1 { color: var(--on-dark); margin-bottom: 1.5rem; }
.h1-brand {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin-bottom: 1.25rem;
  font-size: 1.125rem; line-height: 1.3; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.h1-by { font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--on-dark-2); }
.h1-tag { display: block; }
.h1-tag em, .accent { font-style: normal; color: var(--orange); }
.hero .lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.6; color: var(--on-dark-2); max-width: 36rem; margin-bottom: 2.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .875rem; }
.hero-targets {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; list-style: none;
  margin: 2.75rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line-dark);
  font-size: .9375rem; color: var(--on-dark-2);
}
.hero-targets li:first-child { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark); }
.hero-targets li:not(:first-child)::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: .6rem; vertical-align: middle; border-radius: 50%; background: var(--orange); }
.hero-emblem { position: relative; justify-self: center; width: min(100%, 340px); }
.hero-emblem img { width: 100%; height: auto; }
.hero-emblem::before { /* soft glow behind the crystal */
  content: ""; position: absolute; left: 50%; bottom: 0; width: 120%; aspect-ratio: 1; transform: translate(-50%, 35%);
  background: radial-gradient(closest-side, rgba(255, 138, 10, .22), rgba(255, 138, 10, 0));
  z-index: -1; pointer-events: none;
}
.horizon {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 138, 10, 0), rgba(255, 138, 10, .9) 50%, rgba(255, 138, 10, 0));
}
@media (min-width: 640px) { .hero-emblem { width: min(100%, 420px); } }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; min-height: min(calc(100vh - 73px), 760px); }
  .hero-copy { padding: 6rem 0 6rem; align-self: center; }
  .hero-emblem { width: min(100%, 480px); justify-self: end; margin-right: 1rem; }
  .horizon { background: linear-gradient(90deg, rgba(255, 138, 10, 0) 30%, rgba(255, 138, 10, .9) 76%, rgba(255, 138, 10, 0)); }
}

/* Page hero (standards) */
.page-hero .hero-copy { padding: 3.5rem 0 3rem; }
.page-hero .hero-emblem { display: none; }
@media (min-width: 1024px) {
  .page-hero .hero-grid { min-height: 0; grid-template-columns: 1.3fr .7fr; }
  .page-hero .hero-copy { padding: 4.5rem 0 4.5rem; }
  .page-hero .hero-emblem { display: block; width: min(100%, 360px); }
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; font-size: .875rem; color: var(--on-dark-2); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--line-dark-2); }
.breadcrumb a { color: var(--on-dark-2); }
.chips { display: flex; flex-wrap: wrap; gap: .625rem; list-style: none; margin: 0; padding: 0; }
.chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px;
  border: 1px solid var(--line-dark-2); color: var(--on-dark); text-decoration: none; font-size: .9375rem; font-weight: 600;
}
.chips a:hover { border-color: var(--orange); color: var(--on-dark); }

/* ---------- Stats (hero moments) ---------- */
.stats { padding: calc(var(--section) * .9) 0 var(--section); }
.stat-row { list-style: none; margin: 0 0 4.5rem; padding: 0; display: grid; gap: 3rem; }
@media (min-width: 640px) { .stat-row { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: clamp(3.25rem, 7vw, 5.5rem); line-height: 1; font-weight: 700; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums; color: var(--on-dark);
}
.stat-num.is-accent { color: var(--orange); }
.stat-rule { display: block; width: 32px; height: 2px; margin: 1.25rem 0 1rem; background: var(--orange); border-radius: 2px; }
.stat-label { font-size: 1.125rem; font-weight: 600; color: var(--on-dark); }
.stat-detail { font-size: .9375rem; color: var(--on-dark-2); margin-top: .25rem; }

.coverage {
  display: grid; gap: 2.5rem; padding: 2.5rem; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 36, 56, .9), rgba(15, 36, 56, .55));
  border: 1px solid var(--line-dark);
}
@media (min-width: 1024px) { .coverage { grid-template-columns: .8fr 1.2fr; gap: 4rem; padding: 3.5rem; align-items: center; } }
.coverage-lead .stat-num { font-size: clamp(3.5rem, 8vw, 6.5rem); }
.coverage-lead p { margin: 1rem 0 0; font-size: 1.125rem; color: var(--on-dark-2); }
.coverage-lead p strong { color: var(--on-dark); }

.meters { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .55rem; font-size: 1rem; }
.meter-head span:first-child { font-weight: 600; }
.meter-head .meter-value { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.meter {
  height: 8px; border-radius: 4px; overflow: hidden; background: rgba(244, 246, 248, .12);
}
.meter-fill {
  display: block; height: 100%; width: var(--v); min-width: 4px; border-radius: 4px; background: var(--orange);
  transform-origin: left center;
}
.meter-note { font-size: .875rem; color: var(--on-dark-2); margin: 0; }
.meter-note-gap { margin-top: 1.25rem; }
.on-light .meter { background: var(--line-light); }
.on-light .meter-note, .band-white .meter-note, .band-tint .meter-note { color: var(--ink-2); }
.on-light .meter-head span:first-child { color: var(--ink); }
.on-light .meter-value { color: var(--blue); }

.as-of { margin: 2rem 0 0; font-size: .875rem; color: var(--ink-2); }
.on-dark .as-of { color: var(--on-dark-2); }

/* ---------- Feature cards ---------- */
.features { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .features { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.feature {
  position: relative; display: flex; flex-direction: column;
  padding: 2.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-light);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.feature:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(15, 36, 56, .10); border-color: var(--line-light-2); }
.feature h3 { font-size: 1.5rem; margin: 1.5rem 0 .6rem; }
.feature p { color: var(--ink-2); margin-bottom: 1.5rem; }
.feature .key {
  margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem;
}
.key-num { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; color: var(--blue); font-variant-numeric: tabular-nums; }
.key-label { font-size: .9375rem; color: var(--ink-2); }
.feature-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; margin-top: .5rem; font-weight: 600; }
.icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line-light);
}
.icon svg { width: 28px; height: 28px; }
.icon svg, .share-icon svg {
  fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.share-list .share-icon svg { stroke: var(--on-dark); }
.icon svg .i-acc, .share-icon svg .i-acc { stroke: var(--orange); }

/* ---------- How it works: steps + crosswalk diagram ---------- */
.steps { list-style: none; margin: 0 0 4rem; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.step { position: relative; }
.step-num {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--night); color: var(--orange); font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums;
  margin-bottom: 1.25rem;
}
.step h3 { font-size: 1.375rem; margin-bottom: .5rem; }
.step p { color: var(--ink-2); margin: 0; }
@media (min-width: 768px) {
  .step:not(:last-child)::after { /* connector between step numbers */
    content: ""; position: absolute; top: 24px; left: 64px; right: -1.5rem; height: 1px;
    background: linear-gradient(90deg, var(--line-light-2), var(--line-light-2) 60%, rgba(27, 58, 92, 0));
  }
}

.xwalk {
  display: grid; gap: 0; align-items: stretch;
  padding: 2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line-light);
}
.xwalk-source {
  align-self: center; padding: 1.75rem; border-radius: 16px; background: var(--deep); color: var(--on-dark);
}
.xwalk-source .node-kicker { color: var(--orange); }
.node-kicker { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .35rem; color: var(--teal); }
.xwalk-source strong { display: block; font-size: 1.375rem; line-height: 1.25; }
.xwalk-source span:last-child { display: block; margin-top: .35rem; color: var(--on-dark-2); font-size: .9375rem; }
.xwalk-link { position: relative; min-height: 40px; }
.xwalk-link svg { display: none; width: 100%; height: 100%; overflow: visible; }
.xwalk-link::before { /* vertical connector on narrow screens */
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; background: var(--blue);
}
.xwalk-link::after {
  content: ""; position: absolute; left: calc(50% - 4px); bottom: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange);
}
.xwalk-targets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(3, 1fr); }
.xwalk-targets li { display: flex; align-items: center; padding: .5rem 0; }
.target {
  position: relative; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 76px; padding: .9rem 1.4rem; border-radius: 16px; background: var(--white); border: 1px solid var(--line-light-2);
}
.target strong { display: block; font-size: 1.125rem; color: var(--blue); line-height: 1.25; }
.target .target-use { display: block; font-size: .875rem; color: var(--ink-2); }
.target-count { text-align: right; flex: none; }
.target-count b { display: block; font-size: 1.75rem; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.target-count small { font-size: .8125rem; color: var(--ink-2); }
@media (min-width: 768px) {
  .xwalk { grid-template-columns: minmax(0, .9fr) minmax(64px, .45fr) minmax(0, 1.25fr); padding: 2.5rem; }
  .xwalk-link { min-height: 0; }
  .xwalk-link::before, .xwalk-link::after { display: none; }
  .xwalk-link svg { display: block; }
  .target::before { /* orange end dot where the connector lands */
    content: ""; position: absolute; left: -5px; top: calc(50% - 4.5px); width: 9px; height: 9px; border-radius: 50%; background: var(--orange);
  }
}
.xwalk-caption { margin: 1.25rem 0 0; font-size: .9375rem; color: var(--ink-2); }

/* ---------- Platform (private preview) ---------- */
.platform-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .platform-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.platform-grid .lead { font-size: 1.1875rem; color: var(--on-dark-2); }
.preview-tag {
  display: inline-flex; align-items: center; gap: .6rem; margin: .5rem 0 2rem;
  font-weight: 700; color: var(--on-dark);
}
.share-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.share-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center;
  padding: 1.5rem 1.75rem; border-radius: 16px; background: rgba(5, 11, 29, .55); border: 1px solid var(--line-dark);
}
.share-list .share-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 138, 10, .12); border: 1px solid rgba(255, 138, 10, .35);
}
.share-list .share-icon svg { width: 24px; height: 24px; }
.share-list strong { display: block; font-size: 1.125rem; color: var(--on-dark); }
.share-list span { color: var(--on-dark-2); font-size: .9375rem; }
.share-list li.share-core { background: rgba(255, 138, 10, .08); border-color: rgba(255, 138, 10, .45); }

/* Dashboard tease: stylised mock panel (published figures + labelled synthetic tiles). */
.dash { grid-column: 1 / -1; margin: 1rem 0 0; display: grid; gap: 2rem; }
@media (min-width: 1024px) { .dash { grid-template-columns: .55fr 1.45fr; gap: 4rem; align-items: start; } }
.dash-intro h3 { font-size: 1.5rem; color: var(--on-dark); margin: .25rem 0 .6rem; }
.dash-intro p { color: var(--on-dark-2); margin: 0; }
.dash-panel { border-radius: var(--radius); background: var(--night); border: 1px solid var(--line-dark); overflow: hidden; min-width: 0; }
.dash-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--line-dark); background: rgba(244, 246, 248, .04);
}
.dash-dots { display: inline-flex; gap: 6px; }
.dash-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-dark-2); }
.dash-name { font-weight: 700; font-size: .9375rem; color: var(--on-dark); }
.dash-flag {
  margin-left: auto; padding: .25rem .7rem; border-radius: 999px; border: 1px solid rgba(255, 138, 10, .45);
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange);
}
.dash-grid { display: grid; gap: 1px; background: var(--line-dark); }
@media (min-width: 640px) { .dash-grid { grid-template-columns: 1fr 1fr; } }
.dash-tile { padding: 1.5rem; background: var(--night); display: grid; gap: .9rem; align-content: start; min-width: 0; }
.tile-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem .75rem; }
.tile-head h4 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--on-dark); }
.tile-tag {
  padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--line-dark-2);
  font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-2);
}
.tile-tag.tag-syn { border-style: dashed; }
.tile-num { margin: 0; font-size: 2.75rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--orange); font-variant-numeric: tabular-nums; }
.tile-note { margin: 0; font-size: .875rem; color: var(--on-dark-2); }
.donut-row { display: flex; align-items: center; gap: 1.25rem; }
.donut { width: 104px; height: 104px; flex: none; }
.donut circle { fill: none; stroke-width: 12; }
.donut-track { stroke: rgba(244, 246, 248, .12); }
.donut-arc { stroke: var(--orange); }
.donut-key { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .875rem; color: var(--on-dark-2); }
.donut-key strong { color: var(--on-dark); font-variant-numeric: tabular-nums; }
.key-swatch { display: inline-block; width: 10px; height: 10px; margin-right: .5rem; border-radius: 3px; background: rgba(244, 246, 248, .12); vertical-align: -1px; }
.key-swatch.key-on { background: var(--orange); }
.spark { width: 100%; height: auto; display: block; overflow: visible; }
.spark-base { stroke: var(--line-dark); stroke-width: 1; }
.spark-line { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-end { fill: var(--orange); stroke: var(--night); stroke-width: 2; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.bars li { display: grid; grid-template-columns: 3rem 1fr 1.5rem; align-items: center; gap: .75rem; }
.bars code { font-weight: 700; font-size: .8125rem; letter-spacing: .06em; color: var(--on-dark); }
.bar-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--on-dark); }

/* ---------- Roadmap ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 2.5rem 2.75rem; }
.timeline li::before { /* node */
  content: ""; position: absolute; left: 0; top: .3rem; width: 15px; height: 15px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--blue);
}
.timeline li.is-active::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 5px rgba(255, 138, 10, .2); }
.timeline li:not(:last-child)::after { /* track */
  content: ""; position: absolute; left: 7px; top: 1.6rem; bottom: .2rem; width: 1px; background: var(--line-light-2);
}
.timeline h3 { font-size: 1.375rem; margin: .9rem 0 .4rem; }
.timeline p { color: var(--ink-2); margin: 0; max-width: 34rem; }
@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
  .timeline li { padding: 2.75rem 0 0; }
  .timeline li::before { top: 0; }
  .timeline li:not(:last-child)::after { left: 1.6rem; right: -2.3rem; top: 7px; bottom: auto; width: auto; height: 1px; }
}
.status {
  display: inline-flex; align-items: center; min-height: 28px; padding: .15rem .8rem; border-radius: 999px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .02em;
}
.status-progress { background: var(--orange); color: var(--night); }
.status-ongoing { background: var(--blue); color: var(--white); }
.status-preview { background: var(--white); color: var(--teal); border: 1px solid var(--teal); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  background:
    radial-gradient(50% 70% at 50% 110%, rgba(255, 138, 10, .2), rgba(255, 138, 10, 0) 70%),
    linear-gradient(180deg, var(--night), var(--deep));
}
.cta h2 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); }
.cta .section-head { margin-bottom: 2.5rem; }
.cta .actions { justify-content: center; }
.access-note {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0;
  padding: .7rem 1.25rem; border-radius: 999px; border: 1px solid var(--line-dark-2);
  font-weight: 600; color: var(--on-dark);
}
.access-note[hidden], [hidden] { display: none !important; }

/* ---------- Callouts ---------- */
.callout {
  display: grid; gap: .5rem; margin: 3rem 0 0; padding: 1.75rem 2rem;
  border-radius: 16px; background: var(--white); border: 1px solid var(--line-light); border-left: 4px solid var(--orange);
}
.callout p { margin: 0; }
.callout strong { color: var(--blue); }
.callout-dark { background: var(--deep); border-color: var(--line-dark); border-left-color: var(--orange); color: var(--on-dark); }
.callout-dark strong { color: var(--on-dark); }

/* ---------- Standards: structure diagram ---------- */
.anatomy { list-style: none; margin: 0 0 3.5rem; padding: 0; display: grid; gap: 1rem; }
.anatomy li {
  position: relative; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--line-light); background: var(--surface);
}
.anatomy li:first-child { background: var(--deep); border-color: var(--deep); color: var(--on-dark); }
.anatomy li:first-child .anatomy-num { color: var(--orange); }
.anatomy li:first-child p { color: var(--on-dark-2); }
.anatomy li:first-child .node-kicker { color: var(--orange); }
.anatomy-num { display: block; font-size: clamp(2.75rem, 5vw, 4rem); line-height: 1; font-weight: 700; letter-spacing: -.035em; color: var(--blue); font-variant-numeric: tabular-nums; margin: .5rem 0 .75rem; }
.anatomy p { margin: 0; color: var(--ink-2); }
.anatomy li:not(:last-child)::after { /* arrow to next */
  content: ""; position: absolute; left: 50%; bottom: -1rem; width: 1.5px; height: 1rem; background: var(--blue);
}
@media (min-width: 768px) {
  .anatomy { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .anatomy li:not(:last-child)::after { left: auto; right: -2.5rem; top: 50%; bottom: auto; width: 2.5rem; height: 1.5px; }
  .anatomy li:not(:last-child)::before {
    content: ""; position: absolute; right: -2.5rem; top: calc(50% - 4px); width: 9px; height: 9px; border-radius: 50%; background: var(--orange); transform: translateX(4px);
  }
}
.meter-groups { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .meter-groups { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }
.meter-panel { padding: 2.25rem; border-radius: var(--radius); background: var(--tint); }
.meter-panel h3 { margin-bottom: .35rem; }
.meter-panel > p { color: var(--ink-2); font-size: .9375rem; margin-bottom: 1.75rem; }

/* Principles (icon fragments) */
.principles { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; gap: 2rem; }
@media (min-width: 768px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.principles h3 { font-size: 1.1875rem; margin: 1rem 0 .4rem; }
.principles p { color: var(--ink-2); margin: 0; }

/* ---------- Standards: taxonomy tree ---------- */
.tax-layout { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .tax-layout { grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: start; } }
.tree { list-style: none; margin: 0; padding: 0; }
.tree li { position: relative; }
.tree-node {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: start;
  padding: 1.25rem 1.5rem; border-radius: 16px; background: var(--white); border: 1px solid var(--line-light-2);
}
.tree > li > .tree-node { background: var(--deep); border-color: var(--deep); color: var(--on-dark); }
.tree > li > .tree-node h3 { color: var(--on-dark); }
.tree > li > .tree-node p { color: var(--on-dark-2); }
.tree > li > .tree-node .lvl { background: var(--orange); color: var(--night); }
.tree ul { list-style: none; margin: 0; padding: 1rem 0 0 2.25rem; position: relative; }
.tree ul::before { content: ""; position: absolute; left: 1.1rem; top: 0; bottom: 2.4rem; width: 1.5px; background: var(--blue); }
.tree ul > li > .tree-node::before {
  content: ""; position: absolute; left: -1.15rem; top: 2.1rem; width: 1.15rem; height: 1.5px; background: var(--blue);
}
.tree ul > li > .tree-node::after {
  content: ""; position: absolute; left: -5px; top: calc(2.1rem - 4px); width: 9px; height: 9px; border-radius: 50%; background: var(--orange);
}
.lvl {
  grid-row: span 2; display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .5rem; border-radius: 12px;
  background: var(--blue); color: var(--white); font-weight: 700; font-size: .8125rem; letter-spacing: .04em;
}
.tree-node h3 { margin: 0; font-size: 1.1875rem; }
.tree-node p { margin: 0; font-size: .9375rem; color: var(--ink-2); }
.analogue { display: inline-block; margin-left: .35rem; font-size: .8125rem; font-weight: 600; color: var(--teal); white-space: nowrap; }
.tree > li > .tree-node .analogue { color: var(--on-dark); opacity: .8; }

.classes { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .classes { grid-template-columns: repeat(2, 1fr); } }
.classes li {
  display: flex; align-items: center; gap: .9rem; min-height: 64px; padding: .75rem 1rem;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line-light); font-size: .9375rem; font-weight: 600; color: var(--ink);
}
.classes code {
  flex: none; min-width: 3.4rem; padding: .3rem .5rem; border-radius: 8px; text-align: center;
  background: var(--deep); color: var(--on-dark); font-weight: 700; font-size: .8125rem; letter-spacing: .06em;
}
.families { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.families li { padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); border: 1px dashed var(--line-light-2); background: var(--white); }
.families code { display: block; font-weight: 700; color: var(--teal); font-size: 1rem; margin-bottom: .2rem; }
.families span { font-size: .9375rem; color: var(--ink); }
.subhead { font-size: 1.375rem; margin: 3rem 0 .4rem; }
.subhead + p { color: var(--ink-2); margin: 0; }
h2 small { font-size: .45em; font-weight: 600; letter-spacing: 0; color: var(--teal); vertical-align: middle; white-space: nowrap; }

/* ---------- Standards: tracker example (synthetic) ---------- */
.tracker-example {
  margin: 4rem 0 0; padding: 2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-light);
}
@media (max-width: 639px) { .tracker-example { padding: 1.5rem 1rem; } }
.tracker-head { max-width: 46rem; margin-bottom: 1.75rem; }
.tracker-head > p:last-child { color: var(--ink-2); margin: 0; }
.synthetic-tag {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1rem; padding: .45rem .9rem;
  border-radius: 999px; border: 1px solid var(--line-light-2); background: var(--white);
  font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue);
}
.tracker-wrap { border-radius: 16px; border: 1px solid var(--line-light); background: var(--white); overflow: hidden; }
table.tracker { min-width: 0; }
.tracker td { font-size: .9375rem; color: var(--ink); }
.tracker td:first-child code { font-size: .875rem; white-space: nowrap; }
.code-path { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.code-path code {
  padding: .25rem .5rem; border-radius: 8px; background: var(--deep); color: var(--on-dark);
  font-weight: 700; font-size: .8125rem; letter-spacing: .06em;
}
.held {
  display: inline-block; padding: .2rem .4rem; border-radius: 6px; border: 1px dashed var(--line-light-2);
  font-size: .75rem; font-weight: 600; color: var(--ink-2); line-height: 1.2;
}
.status, .xstate { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; box-sizing: border-box; }
.s-open::before { background: var(--orange); }
.s-action::before { border: 2px solid var(--orange); }
.s-check::before { background: var(--teal); }
.s-closed { color: var(--ink-2); }
.s-closed::before { background: var(--blue); }
/* Crosswalk state: a 28 px meter (DESIGN.md §4 meter idiom), so state is shape + label, never colour alone. */
.xstate::before {
  content: ""; width: 28px; height: 6px; border-radius: 4px; flex: none;
  background: var(--line-light); box-shadow: inset var(--x) 0 0 var(--orange);
}
.x-full { --x: 28px; }
.x-part { --x: 14px; }
.x-none { --x: 0px; color: var(--ink-2); }
.tracker-note { margin-top: 1.25rem; font-size: .875rem; color: var(--ink-2); }
.held-key { margin: 0 .15rem; }
@media (max-width: 767px) {
  .tracker thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tracker tr { display: grid; gap: .6rem; padding: 1.25rem 1rem; }
  .tracker td { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; align-items: center; padding: 0; }
  .tracker td::before { content: attr(data-label); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
  .tracker td > * { justify-self: start; }
  .tracker .status, .tracker .xstate, .code-path { white-space: normal; }
}

/* ---------- Packs ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; border: 1px solid var(--line-light); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 760px; }
caption { caption-side: bottom; text-align: left; padding: .9rem 1.25rem; font-size: .875rem; color: var(--ink-2); border-top: 1px solid var(--line-light); }
th, td { padding: 1rem 1.25rem; text-align: left; vertical-align: middle; }
thead th { background: var(--blue); color: var(--white); font-weight: 600; font-size: .875rem; letter-spacing: .02em; white-space: nowrap; }
tbody tr:nth-child(even) { background: var(--surface); }
tbody tr + tr { border-top: 1px solid var(--line-light); }
td:first-child { font-weight: 700; color: var(--blue); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; white-space: nowrap; }

.composition { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.composition li { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; align-items: baseline; }
.composition .comp-name { font-weight: 700; color: var(--blue); }
.composition .comp-name code { font-size: .95em; }
.composition .comp-desc { grid-column: 1 / -1; grid-row: 2; font-size: .875rem; color: var(--ink-2); }
.composition .comp-count { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.composition .meter { grid-column: 1 / -1; grid-row: 3; background: var(--line-light); }
.packs-grid { display: grid; gap: 3rem; margin-top: 4rem; }
@media (min-width: 1024px) { .packs-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; } }
.packs-grid > * { min-width: 0; } /* let the table scroll inside .table-wrap instead of widening the page */

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark); padding: 4.5rem 0 calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); }
.footer-top { display: grid; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.3fr 2fr; gap: 4rem; } }
.footer-brand .brand { margin: 0 0 1.25rem; }
.cobrand { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.25rem; color: var(--on-dark-2); font-size: .9375rem; }
.cobrand img { width: 120px; height: auto; }
.footer-brand p { color: var(--on-dark-2); font-size: .9375rem; max-width: 26rem; margin: 0; }
.footer-cols { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-cols h2 { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark); margin: 0 0 .75rem; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-cols a { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-dark-2); text-decoration: none; font-size: .9375rem; }
.site-footer .footer-cols a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; font-size: .875rem; color: var(--on-dark-2); }
.footer-bottom p { margin: 0; max-width: 46rem; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* ---------- Print (regulatory readers print summaries) ---------- */
@media print {
  .site-header, .skip-link, .nav-toggle, .hero-emblem, .horizon, .actions, .cta .actions, .chips, .breadcrumb { display: none !important; }
  body { font-size: 11pt; color: var(--ink); }
  .hero, .band-night, .band-deep, .cta, .site-footer, .coverage, .xwalk-source, .anatomy li:first-child, .tree > li > .tree-node, .callout-dark {
    background: none !important; color: var(--ink) !important; border-color: var(--ink) !important;
  }
  .on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark p, .on-dark span, .on-dark strong, .on-dark a, .stat-num, .anatomy-num, .site-footer * { color: var(--ink) !important; }
  .section, .stats { padding: 1.25rem 0; }
  .feature, .target, .tree-node, .classes li { break-inside: avoid; }
  a[href^="standards"]::after, a[href^="index"]::after { content: ""; }
}

/* v2.2 (2026-10-05, Joe directive 23:26): real platform screenshots in the dash band.
   Sources captured from the v3 private-preview build on the Compass mock study. */
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: 1.25rem; }
.shot { margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.shot-wide { grid-column: 1 / -1; }
.shot img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); border: 1px solid var(--line-dark-2); }
.shot figcaption { font-size: .9375rem; color: var(--on-dark-2); }
@media (max-width: 720px) { .shot-grid { grid-template-columns: 1fr; } }
