/* qdx.systems. One order in, every result out: a lit router on a dark field.
   Every size, space and radius below comes from the tokens in :root; DESIGN.md "Rules" says where each is used. */
@font-face { font-family: "Archivo"; src: url("/fonts/Archivo-Variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("/fonts/MartianMono-Variable.woff2") format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }

:root {
  /* Colour */
  --bg: #07090c; --bg-2: #0b0e13; --panel: #0e1218; --panel-2: #131822;
  --line: rgba(214,228,253,.075); --line-2: rgba(214,228,253,.13);
  --ink: #eef1f6; --read: #c8cfda; --muted: #9ba4b4; --quiet: #7d8697;
  --accent: #5b8cff; --accent-2: #8fb0ff; --accent-ink: #060a14; --glow: rgba(91,140,255,.45);
  --gold: #f6dc96;          /* the one warm accent: timeline titles, the hero's accent word */
  --tint: rgba(91,140,255,.1); --tint-line: rgba(91,140,255,.22);
  --ok: #5cc983; --warn: #e3a43b; --off: #9ba4b4; --down: #ef6f6c;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale */
  --t-display: clamp(2.8rem, 6.4vw, 5.6rem);   /* home hero headline only */
  --t-title: clamp(2.3rem, 4.8vw, 4rem);       /* page titles */
  --t-close: clamp(2.5rem, 5.4vw, 4.6rem);     /* the closing band: between the hero and a page title */
  --t-display-sm: 3.5rem;
  --t-wordmark: clamp(9rem, 30vw, 24rem);       /* the ghost QDX above the footer */                      /* the home headline and every closing line on phones */
  --t-section: clamp(2rem, 3.8vw, 3.1rem);     /* section heads */
  --t-sub: clamp(1.5rem, 2.6vw, 2rem);         /* sub-section heads (groups, reading-page sections) */
  --t-card: 1.22rem;                           /* card, list-row and step titles */
  --t-lede: clamp(1.1rem, 1.7vw, 1.3rem);      /* the paragraph under a page title */
  --t-lead: 1.08rem;                           /* the paragraph under a section head, split text */
  --t-body: 1rem;                              /* 17px body */
  --t-small: .92rem;                           /* nav, list descriptions, fine print, footer, diagram nodes */
  --t-label: .78rem;                           /* pills, step numbers, window bars, table headers */
  --t-code: .8rem;                             /* code blocks */
  --t-code-sm: .7rem;                          /* code blocks on phones */
  --t-code-xs: .64rem;                         /* code blocks on the narrowest phones */
  --t-code-read: .86rem;                       /* code blocks on reading pages (the API reference): read, not glanced at */
  --t-code-read-sm: .76rem;                    /* the same on phones */

  /* Space */
  --s-section: 128px;       /* vertical padding of a page head's following section (legacy) */
  --section-y: 96px;        /* top and bottom padding of every content section */
  --section-y-close: 128px; /* around the closing band */
  --s-head-top: 112px;      /* page head: above the title */
  --s-head-bottom: 104px;   /* page head: below its last element */
  --s-gap-heading: 20px;    /* heading to the paragraph under it */
  --s-gap-actions: 32px;    /* paragraph to the buttons under it */
  --s-gap-content: 56px;    /* section head to its content */
  --s-gap-showpiece: 64px;  /* page-head text to its showpiece */
  --s-gap-block: 112px;     /* between stacked splits or groups in one section */
  --s-grid: 16px;           /* gap between cards in a grid */
  --pad-card: 28px;         /* inside every card */
  --pad-row: 18px 24px;     /* inside every list row */

  /* Shape */
  --r-card: 16px;           /* cards, lists, code windows, the closing panel's inner frame */
  --r-feature: 24px;        /* the closing panel */
  --r-control: 10px;        /* buttons, diagram nodes, code blocks on reading pages */
  --r-tile: 10px;           /* icon tiles */
  --r-tile-sm: 8px;         /* small icon tiles */
  --r-pill: 999px;          /* status pills, chips */
  --tile: 40px; --tile-icon: 20px;          /* icon tile */
  --tile-sm: 28px; --tile-sm-icon: 15px;    /* small icon tile, inside diagram nodes */
  --tile-lg: 48px; --tile-lg-icon: 24px;    /* large icon tile, heading a card */

  --wrap: 1200px; --gutter: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* Two motion speeds: interaction, and slow ambient light. */
  --dur: 180ms;
  --dur-ambient: 40s;
  /* Soft gradient fill for display and section headings. */
  --ink-fade: linear-gradient(180deg, var(--ink) 35%, rgba(238,241,246,.62));
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (max-width: 720px) { :root { --section-y: 56px; --section-y-close: 72px; --s-section: 80px; --s-head-top: 64px; --s-head-bottom: 64px; --s-gap-content: 40px; --s-gap-showpiece: 48px; --s-gap-block: 72px; --pad-card: 24px; --pad-row: 16px 18px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; background: var(--bg); scrollbar-color: #2a303a var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; letter-spacing: -.028em; }
h1, h2 { font-weight: 540; }
p { margin: 0; }
main p { text-wrap: pretty; }
code, pre { font-family: var(--mono); font-stretch: 87.5%; font-variant-numeric: slashed-zero; }
:not(pre) > code { font-size: .82em; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; overflow-wrap: anywhere; }
svg.i { width: var(--tile-icon); height: var(--tile-icon); flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 20; background: rgba(7,9,12,.72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
header.site .bar { display: flex; align-items: center; gap: 12px 36px; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 800; letter-spacing: -.01em; font-stretch: 105%; font-size: var(--t-card); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand .mark { flex: none; display: block; }
header.site nav { display: flex; align-items: baseline; gap: 6px 28px; flex: 1; flex-wrap: wrap; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: var(--t-small); }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--ink); }
/* Menus: the top link goes to the group's hub; its panel opens on hover or keyboard focus. Phones show the tops only. */
header.site .menu { position: relative; }
header.site .menu-top::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
header.site .menu-panel { position: absolute; top: 100%; left: -18px; padding-top: 14px; display: none; z-index: 30; }
header.site .menu:hover .menu-panel, header.site .menu:focus-within .menu-panel { display: block; }
header.site .menu-panel > ul, header.site .menu-panel.wide { list-style: none; margin: 0; padding: 10px; min-width: 268px; border-radius: var(--r-card); border: 1px solid var(--line-2); background: #0c0f15; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.4); }
header.site .menu-panel.wide { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; min-width: 420px; }
/* The wide panel carries its own box, so it opens at the same 14px gap as the others; an invisible bridge keeps hover across the gap. */
header.site .menu-panel.wide { top: calc(100% + 14px); }
header.site .menu-panel.wide::before { content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 15px; }
header.site .menu:hover .menu-panel.wide, header.site .menu:focus-within .menu-panel.wide { display: grid; }
header.site .menu-panel ul { list-style: none; margin: 0; padding: 0; }
header.site .menu-panel p { margin: 6px 12px 4px; font: 500 var(--t-label) var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
header.site .menu-panel a { display: block; padding: 8px 12px; border-radius: var(--r-control); color: var(--ink); font-size: var(--t-small); }
header.site .menu-panel a:hover { background: rgba(255,255,255,.05); }
header.site .menu-panel a:focus-visible { outline-offset: -2px; }
header.site nav:hover .menu:not(:hover) .menu-panel, header.site nav:hover .menu:not(:hover) .menu-panel.wide { display: none; }
header.site .menu-panel a small { display: block; color: var(--muted); font-size: var(--t-label); margin-top: 2px; }
@media (max-width: 900px) { header.site .menu-panel, header.site .menu-panel.wide { display: none !important; } header.site .menu-top::after { display: none; } }
header.site .cta { display: flex; align-items: center; gap: 20px; margin-left: auto; }
header.site .cta a:not(.button) { color: var(--ink); text-decoration: none; font-size: var(--t-small); }


/* Button: one component in three sizes (default, .large, and the header's small one) */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 500 var(--t-body)/1 var(--sans); padding: 13px 20px; border-radius: var(--r-control); border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); text-decoration: none; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 8px 24px -8px var(--glow); transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.button:hover { background: var(--accent-2); box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 10px 32px -8px var(--glow); }
.button.ghost { background: rgba(255,255,255,.04); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.button.ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.button.large { padding: 15px 24px; }
header.site .button { padding: 10px 16px; font-size: var(--t-small); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Type */
.display { font-size: var(--t-display); line-height: 1; letter-spacing: -.038em; }
/* The fill fades from white at the top; `color` stays ink for contrast checks and for browsers without clipping. */
.display, .title, main h2:not(.h3) { background: var(--ink-fade); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.display .alt { -webkit-text-fill-color: var(--gold); }
.title { font-size: var(--t-title); line-height: 1.03; letter-spacing: -.032em; }
h2 { font-size: var(--t-section); line-height: 1.06; }
h3, .h3 { font-size: var(--t-card); line-height: 1.25; letter-spacing: -.015em; }
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--muted); max-width: 36em; }
.fine { font-size: var(--t-small); color: var(--quiet); }
.muted { color: var(--muted); }

/* Alignment: centred heads; cards, lists, code and prose are always left-aligned inside them */
.center { text-align: center; }
.center .lede, .center .head-lead { margin-left: auto; margin-right: auto; text-wrap: balance; }
.center .actions, .center .legend { justify-content: center; }
.panel, .trio > div, .contact > div, .list, .window, .prose, .doc, .ticks, .switch { text-align: left; }

/* Status: a pill with a mark and the word */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-label); font-weight: 500; line-height: 1; padding: 5px 9px; border-radius: var(--r-pill); border: 1px solid currentColor; white-space: nowrap; background: rgba(0,0,0,.25); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.available { color: var(--ok); border-color: rgba(92,201,131,.35); }
.pill.available::before { box-shadow: 0 0 8px currentColor; }
.pill.testing { color: var(--warn); border-color: rgba(227,164,59,.38); }
.pill.testing::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.pill.coming { color: var(--off); border-color: rgba(155,164,180,.3); border-style: dashed; }
.pill.coming::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.pill.down { color: var(--down); border-color: rgba(239,111,108,.4); }
.pill.down::before { box-shadow: 0 0 8px currentColor; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--t-small); }
.legend li { display: flex; gap: 10px; align-items: center; }
.legend.stack { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 8px; }

/* Sections */
.section { padding: var(--section-y) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.head { max-width: 44rem; margin-bottom: var(--s-gap-content); }
.head.center { margin-left: auto; margin-right: auto; }
.head-lead, .head h2 + p { margin-top: var(--s-gap-heading); color: var(--muted); font-size: var(--t-lead); max-width: 38em; }
.head.center > p, .head.center .head-lead { margin-left: auto; margin-right: auto; text-wrap: pretty; } /* fill the first line: a subhead never renders narrower than its heading */

/* Page heads (and the home hero): title, lede, actions, showpiece, in one lit band */
.lit { position: relative; isolation: isolate; overflow: hidden; }
.lit::before { content: ""; position: absolute; inset: -10% -20% auto; height: 900px; background: radial-gradient(50% 55% at 50% 0%, rgba(91,140,255,.22), rgba(91,140,255,.06) 45%, transparent 70%); z-index: -1; pointer-events: none; }
.lit::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(214,228,253,.16) 1.2px, transparent 1.5px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%); z-index: -1; pointer-events: none; }
.page-head, .hero { padding: var(--s-head-top) 0 var(--s-head-bottom); border-bottom: 1px solid var(--line); }
.page-head h1, .hero h1 { margin: 0; }
.page-head.center h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.hero h1 { max-width: 17ch; margin-left: auto; margin-right: auto; }
.page-head .lede, .hero .lede { margin-top: var(--s-gap-heading); }
.page-head.center .lede, .hero .lede { max-width: 42em; }
.page-head .actions, .hero .actions { margin-top: var(--s-gap-actions); }
.page-head .legend { margin-top: var(--s-gap-actions); }
.hero .fine { margin-top: var(--s-gap-heading); }
.showpiece { margin: var(--s-gap-showpiece) auto 0; max-width: 1100px; }
.page-head + .section { border-top: 0; padding-top: calc(var(--section-y) / 2); } /* the head already ends in its own padding */
@media (max-width: 520px) { .center .actions .button, .close-panel .actions .button { flex: 1 1 0; min-width: max-content; } }

/* Card: one component (.panel, .trio > div, .contact > div share radius, border, padding and hover) */
.panel, .trio > div, .contact > div { position: relative; border-radius: var(--r-card); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset; overflow: hidden; transition: border-color var(--dur) var(--ease); }
.panel .body, .trio > div, .contact > div { padding: var(--pad-card); }
.panel h3, .panel .h3, .trio h3, .trio .h3 { margin-bottom: 10px; }
.panel p, .trio p { color: var(--muted); }
.panel .pill, .trio .pill { margin-top: 18px; align-self: flex-start; }
.steps .panel { display: flex; flex-direction: column; }
.steps .panel .body { display: flex; flex-direction: column; flex: 1; }
.steps .panel .body > .pill, .trio > div > .pill { margin-top: auto; }
.steps .panel .body > p { margin-bottom: 18px; }
.trio > div > p { margin-bottom: 18px; }
.trio > div > .pill + .more { margin-top: 14px; }
.art { position: relative; height: 220px; border-bottom: 1px solid var(--line); background: radial-gradient(80% 90% at 50% 100%, rgba(91,140,255,.12), transparent 70%); overflow: hidden; }
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art .s, .emr-art .s { stroke: rgba(255,255,255,.22); fill: none; stroke-width: 1.2; }
.art .s2, .emr-art .s2 { stroke: rgba(255,255,255,.1); fill: none; stroke-width: 1; }
.art .a, .emr-art .a { stroke: var(--accent-2); fill: none; stroke-width: 1.6; }
.art .af, .emr-art .af { fill: var(--accent); }
.art .fill, .emr-art .fill { fill: rgba(255,255,255,.04); }
.art .t, .emr-art .t { fill: var(--muted); font: 500 13px var(--sans); }
.art .tm, .emr-art .tm { fill: var(--muted); font: 400 11.5px var(--mono); }
.art .ta, .emr-art .ta { fill: var(--accent-2); font: 500 13px var(--sans); }
.art .tw, .emr-art .tw { stroke: var(--warn); fill: none; stroke-width: 1.4; stroke-dasharray: 4 4; }
.art .dw, .emr-art .dw { fill: var(--warn); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-grid); }
.step-n { font: 500 var(--t-label) var(--mono); color: var(--accent-2); margin-bottom: 14px; display: block; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Icon tile: one component in two sizes */
.ic { width: var(--tile); height: var(--tile); border-radius: var(--r-tile); display: grid; place-items: center; background: var(--tint); border: 1px solid var(--tint-line); color: var(--accent-2); flex: none; }
.ic svg { width: var(--tile-icon); height: var(--tile-icon); }
.trio .ic, .contact .ic { margin-bottom: 18px; width: var(--tile-lg); height: var(--tile-lg); }
.trio .ic svg, .contact .ic svg { width: var(--tile-lg-icon); height: var(--tile-lg-icon); }
.trio > div > p:last-child { margin-bottom: 0; }

/* Channel bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-grid); }
.bento .panel { grid-column: span 2; display: flex; flex-direction: column; }
.bento .panel.wide { grid-column: span 2; }
/* Two-card rows are centred on the three-card row, so every card is the same width: a 2 × 3 × 2 shape. */
.bento .panel.wide:nth-child(1), .bento .panel.wide:nth-child(6) { grid-column: 2 / span 2; }
.bento .panel .body { display: flex; flex-direction: column; flex: 1; }
.bento .panel .pill { margin-top: auto; }
.bento .panel .body > p { margin-bottom: 18px; }
.bento .panel .body > p.more { margin: auto 0 0; }
.bento .art { height: 170px; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento .panel, .bento .panel.wide, .bento .panel.wide:nth-child(1), .bento .panel.wide:nth-child(6) { grid-column: span 1; } .bento .panel.legend-card { grid-column: 1 / -1; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } }

/* Split: text beside a visual (left-aligned) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s-gap-content) 72px; align-items: center; }
.split > * { min-width: 0; }
.split h2 + p { margin-top: var(--s-gap-heading); }
.split > div > p { color: var(--muted); font-size: var(--t-lead); }
.split > div > p + p { margin-top: 14px; }
.split .actions { margin-top: var(--s-gap-actions); }
.split + .split, .list + .split { margin-top: var(--s-gap-block); }
.split + .list { margin-top: var(--s-gap-content); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .split > .panel:first-child, .split > .window:first-child { order: 2; } .split > div:not(.panel):not(.window) { max-width: 38em; } }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; max-width: 30em; }
.ticks li > i { width: 18px; height: 18px; flex: none; position: relative; margin-top: 3px; }
.ticks li > i::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.ticks li > svg { width: 18px; height: 18px; color: var(--accent-2); margin-top: 3px; flex: none; }
.ticks li > span:not(.pill) { flex: 1; }
.ticks li .pill { margin-left: auto; }

/* Code window: one component */
.window { border-radius: var(--r-card); background: #0a0d13; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4), 0 0 80px -30px var(--glow); overflow: hidden; }
.window .bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font: 400 var(--t-label) var(--mono); color: var(--muted); }
.window .bar i { width: 10px; height: 10px; border-radius: 50%; background: #262c36; display: block; }
.window .bar span { margin-left: 8px; }
.window pre { margin: 0; padding: 20px 22px 24px; overflow-x: auto; font-size: var(--t-code); line-height: 1.75; color: #d5dbe6; }
.window .s { color: #a9c1ff; } .window .k { color: #8fe0b0; } .window .c { color: var(--quiet); }
@media (max-width: 520px) { .window pre { font-size: var(--t-code-sm); padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; } }

/* Card grids */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-grid); }
.trio.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trio > div { display: flex; flex-direction: column; }
.trio .more { font-weight: 500; }
.trio > div > p + .more { margin-top: auto; }
.trio.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .trio.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .trio, .trio.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .trio, .trio.two, .trio.four { grid-template-columns: 1fr; } }

/* Closing panel */
.section:has(> .wrap > .close-panel) { padding: 0 0 var(--section-y-close); border-top: 0; }
.nb { white-space: nowrap; }
.close-panel { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-feature); border: 1px solid rgba(143,176,255,.25); padding: 72px 32px; text-align: center; background: radial-gradient(60% 120% at 50% 0%, rgba(91,140,255,.22), transparent 70%), linear-gradient(180deg, #0e1422, #0a0d13); }
.close-panel h2 { font-size: var(--t-close); line-height: 1.02; letter-spacing: -.036em; max-width: 18ch; margin: 0 auto; }
.close-panel p { color: var(--muted); font-size: var(--t-lead); max-width: 40em; margin: var(--s-gap-heading) auto 0; text-wrap: pretty; }
.close-panel .actions { justify-content: center; margin-top: var(--s-gap-actions); }
@media (max-width: 720px) { .close-panel { padding: 56px 22px; } }

/* List row: icon tile, name, what it means, status */
.list { border-radius: var(--r-card); border: 1px solid var(--line); background: rgba(255,255,255,.015); overflow: hidden; }
.list > div { display: grid; grid-template-columns: var(--tile) minmax(0, 1fr) minmax(0, 1.6fr) 7.5rem; gap: 6px 20px; align-items: center; padding: var(--pad-row); border-top: 1px solid var(--line); }
.list > div:first-child { border-top: 0; }
.list strong { font-weight: 600; }
.list p { color: var(--muted); font-size: var(--t-small); }
.list .pill { justify-self: end; }
@media (max-width: 760px) { .list > div { grid-template-columns: var(--tile) minmax(0, 1fr) auto; } .list p { grid-column: 2 / -1; grid-row: 2; } }
.group + .group { margin-top: var(--s-gap-block); }
.group .head { margin-bottom: 24px; }
.group .head h2 { font-size: var(--t-sub); }

/* Reading pages */
.prose { max-width: 38em; margin: 0 auto; }
.page-head.reading .wrap > * { max-width: 38rem; margin-left: auto; margin-right: auto; }
.page-head.reading .lede { max-width: 38rem; }
.page-head.reading + .section { padding-top: var(--s-gap-content); }
.prose ul { padding-left: 1.1em; }
.prose h2 { font-size: var(--t-sub); letter-spacing: -.015em; margin: 2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 1em; color: var(--read); }
.prose li { margin: .35em 0; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-grid); }
.contact h3 { font-size: var(--t-small); color: var(--muted); font-weight: 500; letter-spacing: 0; margin-bottom: 6px; }
.contact p { font-size: var(--t-lead); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.note-below { margin-top: 28px; color: var(--muted); font-size: var(--t-small); }

/* API reference */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 72px; padding-bottom: 104px; }
.doc nav.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; font-size: var(--t-small); }
.doc nav.toc p { margin: 0 0 10px; color: var(--muted); }
.doc nav.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.doc nav.toc li a { display: block; padding: 4px 0 4px 14px; color: var(--muted); text-decoration: none; }
.doc nav.toc li a:hover { color: var(--ink); }
.doc article { min-width: 0; max-width: 50rem; }
.doc article h1 { font-size: var(--t-title); line-height: 1.05; margin-bottom: var(--s-gap-heading); }
.doc article h2 { font-size: var(--t-sub); margin: 2.4em 0 .7em; padding-top: 1em; border-top: 1px solid var(--line); }
.doc article h3 { margin: 2em 0 .5em; font-size: var(--t-card); }
.doc article p, .doc article ul { margin: 0 0 1em; color: var(--read); }
.doc article li { margin: .3em 0; }
.doc article strong { color: var(--ink); }
.doc pre { background: #0a0d13; border: 1px solid var(--line); border-radius: var(--r-control); padding: 16px 18px; overflow-x: auto; font-size: var(--t-code); line-height: 1.65; margin: 0 0 1.3em; }
.doc .table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--r-control); }
.doc table { border-collapse: collapse; width: 100%; font-size: var(--t-small); line-height: 1.45; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--read); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { color: var(--muted); font-weight: 500; font-size: var(--t-label); white-space: nowrap; background: rgba(255,255,255,.025); }
.doc td code { white-space: nowrap; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; } .doc nav.toc { position: static; max-height: none; } .doc table { min-width: 640px; } }
@media (max-width: 520px) { .doc pre { font-size: var(--t-code-sm); } }

/* Footer */
footer.site { border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--muted); background: var(--bg-2); }
footer.site .foot { display: grid; grid-template-columns: minmax(0, 2.1fr) repeat(5, minmax(0, 1fr)); gap: 28px; padding: 64px 0 40px; }
footer.site .status-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--read); font-size: var(--t-label); }
footer.site .status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }
footer.site .status-pill:hover { border-color: rgba(143,176,255,.45); color: var(--ink); }
footer.site h2 { font-size: var(--t-small); font-weight: 500; color: var(--ink); letter-spacing: 0; margin: 0 0 12px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: 7px 0; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }
footer.site address { font-style: normal; margin-top: 14px; line-height: 1.7; }
footer.site .fine { border-top: 1px solid var(--line); padding: 22px 0 36px; font-size: var(--t-label); }
@media (max-width: 1080px) { footer.site .foot { grid-template-columns: repeat(5, minmax(0, 1fr)); } footer.site .foot > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { footer.site .foot { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { footer.site .foot { grid-template-columns: 1fr 1fr; } }

/* Pointer light on cards (site.js adds .glow only for fine pointers without reduced motion) */
.glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--dur) var(--ease); background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(143,176,255,.09), transparent 42%); }
.glow:hover::after { opacity: 1; }
.glow:hover { border-color: rgba(143,176,255,.22); }

/* Diagram node (router): a control-radius chip with a small icon tile */
.node { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-control); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)), var(--bg); border: 1px solid var(--line-2); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 12px 30px -18px #000; font-weight: 500; font-size: var(--t-small); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.node .ic { width: var(--tile-sm); height: var(--tile-sm); border-radius: var(--r-tile-sm); }
.node .ic svg { width: var(--tile-sm-icon); height: var(--tile-sm-icon); }
.node small { display: block; font-size: var(--t-label); font-weight: 400; color: var(--muted); }

/* The router: orders in from the left, one core, results out to the right */
.router { text-align: left; position: relative; margin: var(--s-gap-showpiece) auto 0; max-width: 1100px; display: grid; grid-template-columns: 250px 1fr 180px 1fr 250px; align-items: center; min-height: 520px; }
.router .wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.router .wires path { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.router .wires path.t { stroke-dasharray: 5 5; stroke: rgba(227,164,59,.35); }
.router .wires .pulse { stroke: var(--accent-2); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 95; stroke-dashoffset: 100; opacity: 0; filter: drop-shadow(0 0 4px var(--accent)); }
.router .wires path.hot { stroke: var(--accent-2); stroke-width: 2; filter: drop-shadow(0 0 5px var(--accent)); }
.router .wires path.t.hot { stroke: var(--warn); filter: drop-shadow(0 0 5px rgba(227,164,59,.6)); }
.router .col { position: relative; z-index: 1; display: flex; flex-direction: column; }
.router .ins { grid-column: 1; gap: 22px; justify-content: center; height: 100%; }
.router .core { grid-column: 3; }
.router .outs { grid-column: 5; height: 100%; justify-content: space-between; }
.router .node.hot { border-color: rgba(143,176,255,.55); transform: translateX(-3px); }
.router .ins .node.hot { transform: translateX(3px); }
.outs .node { padding: 7px 10px; gap: 10px; }
.outs .node .pill { margin-left: auto; }
.outs .node.t { border-style: dashed; border-color: rgba(227,164,59,.3); }
.core-box { position: relative; aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center; text-align: center; background: radial-gradient(120% 120% at 50% 0%, #1a2440, #0c111c 60%); border: 1px solid rgba(143,176,255,.35); box-shadow: 0 0 0 8px rgba(91,140,255,.05), 0 0 60px -6px var(--glow), 0 1px 0 rgba(255,255,255,.12) inset; }
.core-box::before { content: ""; position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(91,140,255,.28), transparent); z-index: -1; }
.core-box strong { display: block; font-size: 1.9rem; letter-spacing: .14em; font-weight: 700; }
.core-box span { display: block; font-size: var(--t-label); color: var(--muted); margin-top: 6px; line-height: 1.35; }
@media (prefers-reduced-motion: no-preference) {
  .router .wires .pulse { animation: flow var(--d, 3.2s) linear infinite; animation-delay: var(--delay, 0s); }
  @keyframes flow { 0% { stroke-dashoffset: 100; opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
  .core-box { animation: breathe 5s ease-in-out infinite; }
  @keyframes breathe { 50% { box-shadow: 0 0 0 10px rgba(91,140,255,.07), 0 0 80px -4px var(--glow), 0 1px 0 rgba(255,255,255,.12) inset; } }
}
@media (max-width: 980px) {
  .router { grid-template-columns: 1fr; min-height: 0; gap: 0; max-width: 520px; }
  .router .wires { display: none; }
  .router .ins, .router .core, .router .outs { grid-column: 1; }
  .router .ins { flex-direction: column; gap: 8px; }
  .router .ins .node > span:last-child { display: flex; align-items: center; flex: 1; gap: 8px; }
  .router .ins .node .pill { margin: 0 0 0 auto; }
  .router .ins .node small { display: none; }
  .router .core { width: 170px; margin: 0 auto; padding: 44px 0; position: relative; }
  .router .core::before, .router .core::after { content: ""; position: absolute; left: 50%; width: 1px; height: 32px; }
  .router .core::before { top: 6px; background: linear-gradient(transparent, var(--accent)); }
  .router .core::after { bottom: 6px; background: linear-gradient(var(--accent), transparent); }
  .router .outs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
}
@media (max-width: 460px) { .router .outs { grid-template-columns: 1fr; } }

/* Integrations orbit */
.orbit { display: block; width: 100%; max-width: 1040px; height: auto; margin: 0 auto; overflow: visible; }
.orbit .ring { fill: none; stroke: rgba(255,255,255,.08); }
.orbit .core { fill: #111a2e; stroke: rgba(143,176,255,.5); filter: drop-shadow(0 0 30px rgba(91,140,255,.45)); }
.orbit .core-t { fill: var(--ink); font: 700 22px var(--sans); letter-spacing: .14em; }
.orbit .on circle { fill: #0e1218; stroke: rgba(92,201,131,.75); stroke-width: 1.5; }
.orbit .on use { color: var(--accent-2); }
.orbit .on text { fill: var(--muted); font: 500 14px var(--sans); paint-order: stroke; stroke: var(--bg); stroke-width: 6px; stroke-linejoin: round; }
.orbit .on.t circle { stroke: rgba(227,164,59,.6); stroke-dasharray: 4 3; }
.orbit .on.c circle { stroke: rgba(155,164,180,.5); stroke-dasharray: 1.5 3; }
.orbit .on.c use { color: var(--muted); }
@media (max-width: 720px) { .page-head .orbit { display: none; } .page-head .legend { flex-direction: column; align-items: flex-start; width: fit-content; margin-left: auto; margin-right: auto; } }
@media (prefers-reduced-motion: no-preference) {
  .orbit .core { animation: corepulse 5s ease-in-out infinite; }
  @keyframes corepulse { 50% { filter: drop-shadow(0 0 44px rgba(91,140,255,.6)); } }
}

/* EMR setup: QDX inside a chart */

/* Developers: a test-mode session that plays once when it scrolls into view */
.term { max-width: 880px; margin-left: auto; margin-right: auto; }
.term pre { line-height: 1.85; min-height: 26em; }
.term .ln { display: block; white-space: pre; }
.term .ln.gap { height: .9em; }
.term .p { color: var(--accent-2); } .term .ok { color: var(--ok); } .term .ev { color: var(--warn); }
@media (prefers-reduced-motion: no-preference) {
  .term.armed .ln { opacity: 0; }
  .term.play .ln { animation: line .45s var(--ease) both; animation-delay: calc(var(--i) * .32s); }
  .term.play .ln.cmd { animation-name: type; animation-duration: .6s; animation-timing-function: steps(28, end); }
  @keyframes line { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
  @keyframes type { from { opacity: 1; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
}
@media (max-width: 720px) { .term pre { min-height: 0; } }

/* How it works: the order's real states on one rail */
.rail { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.rail-line { position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: linear-gradient(90deg, rgba(143,176,255,.5), rgba(143,176,255,.15)); border-radius: 2px; }
.rail-pulse { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 16px var(--accent), 0 0 4px #fff; opacity: 0; }
.stop { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stop .dot { width: 56px; height: 56px; border-radius: var(--r-card); display: grid; place-items: center; background: radial-gradient(120% 120% at 50% 0%, #1a2440, #0c111c 70%); border: 1px solid rgba(143,176,255,.35); color: var(--accent-2); box-shadow: 0 0 30px -8px var(--glow); margin-bottom: 10px; position: relative; z-index: 1; }
.stop .dot svg { width: 22px; height: 22px; }
.stop strong { font-weight: 600; }
.stop span:last-child { font-size: var(--t-small); color: var(--muted); max-width: 14em; }
@media (prefers-reduced-motion: no-preference) {
  .rail-pulse { animation: rail 6s var(--ease) infinite; }
  @keyframes rail { 0% { left: 0; opacity: 0; } 6% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
}
@media (max-width: 760px) {
  .rail { grid-template-columns: 1fr; gap: 22px; max-width: 420px; margin-left: auto; margin-right: auto; }
  .rail-line { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: linear-gradient(rgba(143,176,255,.5), rgba(143,176,255,.15)); }
  .rail-pulse { display: none; }
  .stop { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; text-align: left; align-items: center; }
  .stop .dot { margin: 0; grid-row: 1 / span 2; }
  .stop strong { align-self: end; }
  .stop span:last-child { align-self: start; max-width: none; }
}

/* Clinicians: a routing switchboard, practice default and each clinician's own */
.switch { display: grid; gap: 6px; padding: var(--pad-card); }
.sw-row { display: grid; grid-template-columns: minmax(8.5em, 1.4fr) repeat(6, minmax(0, 1fr)); align-items: center; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.sw-head { border-top: 0; padding-top: 0; }
.sw-col { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--accent-2); }
.sw-col svg { width: 18px; height: 18px; }
.sw-col em { font-style: normal; font-size: var(--t-label); color: var(--muted); white-space: nowrap; }
.sw-col.t { color: var(--warn); }
.sw-name { font-size: var(--t-small); font-weight: 500; }
.sw-cell { display: grid; place-items: center; }
.sw-cell i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.18); }
.sw-cell.on i { background: var(--accent); border-color: var(--accent-2); box-shadow: 0 0 12px var(--glow); }
.sw-cell.t.on i { background: transparent; border: 1.5px dashed var(--warn); box-shadow: 0 0 12px rgba(227,164,59,.4); }
.sw-note { margin-top: 14px; font-size: var(--t-small); color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sw-note .pill { margin: 0; }
@media (max-width: 460px) { .sw-row { grid-template-columns: 6.5em repeat(6, minmax(0, 1fr)); } .sw-name { font-size: var(--t-label); } .sw-col em { display: none; } }

/* Page not found: the one page whose mark sits above the title */
.nf .wrap { width: 100%; }
.nf-art { display: block; width: min(520px, 100%); height: auto; margin: 0 auto var(--s-gap-content); filter: drop-shadow(0 0 30px rgba(91,140,255,.35)); }

/* Head visuals for Clinicians and Contact, each with a vertical phone version */
.head-art { display: block; width: 100%; max-width: 1000px; height: auto; margin: 0 auto; overflow: visible; }
.head-art.small { max-width: 820px; }
.head-art .hw-tangle { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.2; stroke-dasharray: 3 5; }
.head-art .hw-clear { fill: none; stroke: var(--accent-2); stroke-width: 2; filter: drop-shadow(0 0 6px var(--accent)); }
.head-art .hw-dot { fill: #fff; filter: drop-shadow(0 0 6px var(--accent)); }
.head-art .hw-core { fill: #111a2e; stroke: rgba(143,176,255,.5); filter: drop-shadow(0 0 30px rgba(91,140,255,.45)); }
.head-art .hw-core-t { fill: var(--ink); font: 700 22px var(--sans); letter-spacing: .14em; }
.head-art .hw-core-i { color: var(--accent-2); }
.head-art .hn circle { fill: #0e1218; stroke: rgba(255,255,255,.18); stroke-width: 1.2; }
.head-art .hn use { color: var(--muted); }
.head-art .hn text { fill: var(--muted); font: 500 13px var(--sans); }
.head-art .hn.bright circle { stroke: rgba(143,176,255,.6); fill: #111a2e; }
.head-art .hn.bright use { color: var(--accent-2); }
.head-art .hn.bright text { fill: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .head-art .hw-dot { animation: hwdot 3.2s ease-in-out infinite; }
  @keyframes hwdot { 0%, 100% { transform: translateX(-90px); opacity: 0; } 15%, 85% { opacity: 1; } 50% { transform: translateX(90px); } }
}
.head-art.phone { display: none; }
@media (max-width: 820px) { .head-art.wide { display: none; } .head-art.phone { display: block; max-width: 360px; } }
@media (max-width: 380px) { .window pre { font-size: var(--t-code-xs); padding: 14px 12px; } }
.art .tmk, .emr-art .tmk { fill: var(--accent-2); font: 500 11.5px var(--mono); }
.art .dim { opacity: .45; }
.ins .node .pill { display: flex; width: fit-content; margin-top: 8px; }

/* EMR setup: the status of a whole page's subject, under its lede */
.head-status { margin-top: var(--s-gap-heading); display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: var(--t-small); }
.center-note { text-align: center; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.emr-art { max-width: 1100px; margin: 0 auto; }
.emr-art svg { display: block; width: 100%; height: auto; }
.emr-art svg.phone { display: none; max-width: 360px; margin: 0 auto; }
@media (max-width: 720px) { .emr-art svg.wide { display: none; } .emr-art svg.phone { display: block; } }
.contact .sub { color: var(--muted); font-size: var(--t-small); margin-top: 4px; }

.split .art { height: 280px; }
@media (max-width: 960px) { .split .art { height: 220px; } }
.head-art.small .hn text { font-size: 17px; }
/* Phones: the icon sits beside the card title, so each card is short (after the card rules above). */
@media (max-width: 620px) { .trio > div { display: grid; grid-template-columns: var(--tile-lg) minmax(0, 1fr); column-gap: 16px; align-content: start; } .trio > div > .ic { grid-row: 1 / span 2; margin: 0; } .trio > div > *:not(.ic) { grid-column: 2; } .trio > div > h3, .trio > div > .h3 { align-self: center; } .trio > div > .pill, .trio > div > .more { justify-self: start; } }

/* Ways to order: a compact list in a split's text column, beside its drawing */
.ways { list-style: none; margin: var(--s-gap-actions) 0 0; padding: 0; border-top: 1px solid var(--line); }
.ways li { display: grid; grid-template-columns: var(--tile) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ways .w { display: flex; flex-direction: column; }
.ways .w strong { font-weight: 600; }
.ways .w span { color: var(--muted); font-size: var(--t-small); }
.split > div > p.ways-soon, .ways-soon { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--muted); font-size: var(--t-small); }
.ways-soon .pill { margin: 0; }

/* ---------- Phone menu (owner, 2026-10-03) ----------
   Under 900px the header is one row: brand, Get started and a menu button. The menu opens a full-height panel
   with each group as a fold-out list, then Sign in and Get started. A native <details>, so it needs no script. */
header.site .mnav { display: none; }
@media (max-width: 900px) {
  header.site { position: sticky; }
  header.site .bar { flex-wrap: nowrap; padding-top: 0; gap: 12px; }
  header.site nav, header.site .cta a:not(.button) { display: none; }
  header.site .cta { gap: 12px; }
  header.site .mnav { display: block; }
  header.site .mnav > summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-control); border: 1px solid var(--line-2); cursor: pointer; }
  header.site .mnav > summary::-webkit-details-marker { display: none; }
  header.site .mnav > summary span, header.site .mnav > summary span::before, header.site .mnav > summary span::after { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
  header.site .mnav > summary span { position: relative; }
  header.site .mnav > summary span::before, header.site .mnav > summary span::after { content: ""; position: absolute; left: 0; }
  header.site .mnav > summary span::before { top: -5px; }
  header.site .mnav > summary span::after { top: 5px; }
  header.site .mnav[open] > summary span { background: transparent; }
  header.site .mnav[open] > summary span::before { transform: translateY(5px) rotate(45deg); }
  header.site .mnav[open] > summary span::after { transform: translateY(-5px) rotate(-45deg); }
  header.site .mnav:not([open]) .mnav-panel { display: none; }
  header.site .mnav-panel { position: fixed; left: 0; right: 0; top: 64px; bottom: 0; overflow-y: auto; padding: 8px var(--gutter) 32px; background: var(--bg); border-top: 1px solid var(--line); }
  header.site .mnav-panel details { border-bottom: 1px solid var(--line); }
  header.site .mnav-panel summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 18px 0; color: var(--ink); font-size: var(--t-lead); font-weight: 500; cursor: pointer; }
  header.site .mnav-panel summary::-webkit-details-marker { display: none; }
  header.site .mnav-panel summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform var(--dur) var(--ease); }
  header.site .mnav-panel details[open] summary::after { transform: rotate(-135deg); }
  header.site .mnav-panel ul { list-style: none; margin: 0; padding: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  header.site .mnav-panel p { margin: 4px 0 6px; font: 500 var(--t-label) var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
  header.site .mnav-panel li a { display: block; padding: 8px 0; color: var(--muted); text-decoration: none; font-size: var(--t-body); }
  header.site .mnav-panel li a:hover, header.site .mnav-panel li a[aria-current="page"] { color: var(--ink); }
  header.site .mnav-link { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: var(--t-lead); font-weight: 500; }
  header.site .mnav-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  header.site .mnav-cta .button { width: 100%; padding: 14px 20px; font-size: var(--t-body); }
  body:has(header.site .mnav[open]) { overflow: hidden; }
  /* The header's blur would make it the containing block for the fixed panel, so it drops while the menu is open. */
  header.site:has(.mnav[open]) { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
}
/* Phones: the header is just the brand and the menu. Get started lives in the page and at the foot of the menu. */
@media (max-width: 900px) { header.site .cta { display: none; } header.site .mnav { margin-left: auto; } }
footer.site .brand { color: var(--ink); }
/* Footer below 1080px (owner, 2026-10-03): the menus first, then the company block, laid out as on desktop
   (wordmark, address lines, email, status), left-aligned above the fine print. */
@media (max-width: 1080px) {
  footer.site .foot > div:first-child { order: 99; grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); }
}
footer.site address .sep { display: none; }
