/* Robovue marketing site. Tokens first; DESIGN.md is written from this world at the end of Phase 1. */

@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans.woff2?v=40fd85f3") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2?v=81da78c5") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* tokens:light:begin (generated from design/tokens.json by DesignTokensTests; don't edit by hand) */
  --ground: #F6F8FB;
  --surface: #FFFFFF;
  --surface-sunk: #EEF2F7;
  --ink: #0F1A2C;
  --ink-soft: #4E5A70;
  --line: #DCE3EE;
  --wire: #A9B8CF;
  --field-line: #7D8BA1;
  --action: #0B6BCB;
  --action-ink: #FFFFFF;
  --action-hover: #0959AA;
  --action-soft: #E4F0FC;
  --focus: #0B6BCB;
  --ok: #13804B;
  --ok-soft: #ECF8F1;
  --bad: #C9372A;
  --bad-soft: #FEF0EE;
  --late: #94530A;
  --late-soft: #FDF1E1;
  --run: #5244C9;
  --run-soft: #ECEAFD;
  --uipath: #0B6BCB;
  --aa: #5B4BD6;
  --pa: #0E7C86;
  --api: #0F1A2C;
  --uipath-ink: #0B6BCB;
  --aa-ink: #5B4BD6;
  --pa-ink: #0C717B;
  --api-ink: #0F1A2C;
  --mark-square: #0F1A2C;
  --mark-eye: #FFFFFF;
  --close-ground: #0F1A2C;
  --close-ink: #F6F8FB;
  /* tokens:light:end */

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 26, 44, .06);

  --font: "Albert Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 5vw, 80px);
  --max: 1280px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* tokens:dark:begin (generated from design/tokens.json by DesignTokensTests; don't edit by hand) */
    --ground: #0A111E;
    --surface: #111B2C;
    --surface-sunk: #0D1625;
    --ink: #E9EEF6;
    --ink-soft: #A3B0C4;
    --line: #233149;
    --wire: #3D4E6B;
    --field-line: #5A6C8A;
    --action: #4E9CF0;
    --action-ink: #06121F;
    --action-hover: #75B3F5;
    --action-soft: #12294A;
    --focus: #75B3F5;
    --ok: #4CC38A;
    --ok-soft: #0F2E21;
    --bad: #FF7B6E;
    --bad-soft: #3A1714;
    --late: #F0B35A;
    --late-soft: #33240C;
    --run: #A79CFF;
    --run-soft: #221D47;
    --uipath: #0B6BCB;
    --aa: #5B4BD6;
    --pa: #0E7C86;
    --api: #33425E;
    --uipath-ink: #4E9CF0;
    --aa-ink: #8377E0;
    --pa-ink: #11949F;
    --api-ink: #6D85B0;
    --mark-square: #E9EEF6;
    --mark-eye: #0A111E;
    --close-ground: #060B14;
    --close-ink: #E9EEF6;
    /* tokens:dark:end */

    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: "kern", "lnum";
  text-rendering: optimizeLegibility;
}

/* A short page (the 404) still ends at the bottom of the screen, footer and all. */
main { flex: 1 0 auto; }

::selection { background: var(--action); color: var(--action-ink); }

a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }

:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

img, svg { display: block; }

code { font-family: var(--mono); font-size: .875em; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: var(--gutter); top: -60px; background: var(--surface); padding: 10px 14px; border-radius: var(--radius-sm); z-index: 30; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }

.site-header__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  min-height: 72px; display: flex; align-items: center; gap: 32px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }

.mark__wire { stroke: var(--wire); }
.mark__a { fill: var(--uipath); }
.mark__b { fill: var(--aa); }
.mark__square { fill: var(--mark-square); }
.mark__eye { fill: var(--mark-eye); }

.site-nav { display: flex; gap: 28px; font-size: .95rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.menu__panel a[aria-current="page"] { color: var(--action); }

.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: .95rem; }
.site-header__actions .signin { color: var(--ink-soft); text-decoration: none; }
.site-header__actions .signin:hover { color: var(--ink); }

/* Phone menu: a native disclosure, so it opens without JavaScript; menu.js closes it after a jump. */

.menu { display: none; position: static; }
.menu__toggle {
  list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  min-height: 40px; padding: 0 12px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 700; font-size: .9rem; color: var(--ink);
}
.menu__toggle::-webkit-details-marker { display: none; }
.menu__icon { position: relative; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.menu__icon::before, .menu__icon::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease-out; }
.menu__icon::before { top: -5px; }
.menu__icon::after { top: 5px; }
.menu[open] .menu__icon { background: transparent; }
.menu[open] .menu__icon::before { transform: translateY(5px) rotate(45deg); }
.menu[open] .menu__icon::after { transform: translateY(-5px) rotate(-45deg); }
.menu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; padding: 8px var(--gutter) 16px;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.menu__panel a { display: flex; align-items: center; min-height: 48px; font-size: 1.05rem; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu__panel a:last-child { border-bottom: 0; }
.menu__signin { display: none !important; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 14px 22px; border-radius: 11px; text-decoration: none; cursor: pointer;
  border: 0; transition: background-color .15s ease-out, box-shadow .15s ease-out;
}
.button--primary { background: var(--action); color: var(--action-ink); }
.button--primary:hover { background: var(--action-hover); }
.button--secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button--secondary:hover { box-shadow: inset 0 0 0 1px var(--wire); }
.button--small { font-size: .9rem; padding: 9px 15px; border-radius: 9px; }

/* ---------- Hero ---------- */

.hero { max-width: var(--max); margin: 0 auto; padding: clamp(32px, 4.5vw, 56px) var(--gutter) 0; text-align: center; }

.hero h1 {
  margin: 0 auto; max-width: 21ch;
  font-size: clamp(2.3rem, 1.3rem + 2.8vw, 3.6rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em;
  text-wrap: balance;
}

.hero__offer { margin: 18px auto 0; max-width: 56ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--ink-soft); text-wrap: pretty; }

.hero__actions { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero__fine { margin: 14px 0 0; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Hub ---------- */

.hub { max-width: var(--max); margin: clamp(28px, 3vw, 40px) auto 0; padding: 0 var(--gutter) clamp(48px, 6vw, 88px); }

.hub__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr); gap: 0 clamp(40px, 6vw, 96px); align-items: center; }

.hub__wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hub__wires path { fill: none; stroke: var(--wire); stroke-width: 2; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.hub__wires circle { fill: var(--action); }
.hub__wires .pulse--bad { fill: var(--bad); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.sources, .outcomes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }

.source { display: flex; align-items: center; gap: 12px; padding: 11px 14px; text-align: left; }
.source__name { display: block; font-weight: 700; line-height: 1.25; }
.source__how { display: block; font-size: .84rem; color: var(--ink-soft); line-height: 1.35; }

.badge { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff; letter-spacing: .01em; }
.badge--uipath { background: var(--uipath); }
.badge--aa { background: var(--aa); }
.badge--pa { background: var(--pa); }
.badge--api { background: var(--api); font-size: .66rem; }

.fleet { position: relative; padding: 14px 20px 6px; text-align: left; border: 2px solid var(--ink); }
.fleet__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; }
.fleet__title { margin: 0; font-size: 1rem; font-weight: 800; }
.fleet__note { font-size: .8rem; color: var(--ink-soft); }
.fleet__list { list-style: none; margin: 0; padding: 0; }
.fleet__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.fleet__bot { display: block; font-weight: 600; line-height: 1.3; }
.fleet__meta { display: block; font-size: .82rem; color: var(--ink-soft); }

.state { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; line-height: 1rem; padding: 4px 10px; border-radius: 99px; white-space: nowrap; transition: background-color .4s ease-out, color .4s ease-out; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state--ok { background: var(--ok-soft); color: var(--ok); }
.state--failed { background: var(--bad-soft); color: var(--bad); }
.state--failed::before { border-radius: 2px; }
.state--missed { background: var(--bad-soft); color: var(--bad); }
.state--missed::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.state--late { background: var(--late-soft); color: var(--late); }
.state--late::before { border-radius: 1px; transform: rotate(45deg) scale(.85); }
.state--running { background: var(--run-soft); color: var(--run); }
.state--quiet { background: var(--surface-sunk); color: var(--ink-soft); }
.state--quiet::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; opacity: .6; }

.outcome { padding: 13px 15px; text-align: left; font-size: .92rem; line-height: 1.45; transition: opacity .6s ease-out; }
.outcome__channel { display: block; font-size: .8rem; font-weight: 700; color: var(--bad); }

.hub__caption { margin: 18px 0 0; text-align: center; font-size: .82rem; color: var(--ink-soft); }

/* Playback: hub.js adds .is-playing, which hides outcomes until the alert arrives. */
.hub.is-playing .outcome { opacity: 0; }
.hub.is-priming .state, .hub.is-priming .outcome { transition: none; }
.hub__wires .wire--missed { stroke: var(--bad); }
.hub__wires .wire--alert { stroke: var(--bad); }
.hub__wires .wire-end { fill: var(--surface); stroke: var(--bad); stroke-width: 2.5; }
.hub.is-playing .outcome.is-in { opacity: 1; }

@media (max-width: 960px) {
  .hub__stage { grid-template-columns: 1fr; gap: 28px; max-width: 520px; margin: 0 auto; }
  .hub__wires { display: none; }
  .sources { grid-template-columns: 1fr 1fr; gap: 10px; }
  .source { padding: 11px 12px; }
  .sources::after, .fleet::after {
    content: ""; position: absolute; left: 50%; bottom: -26px; height: 24px; border-left: 2px dashed var(--wire);
  }
  .site-nav { display: none; }
  .menu { display: block; }
  .site-header__inner { position: relative; }
}

@media (max-width: 480px) {
  .sources { grid-template-columns: 1fr; }
  .site-header__inner { gap: 16px; }
  .site-header__actions .signin { display: none; }
  .menu__signin { display: flex !important; }
  .menu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu__toggle { padding: 0 11px; }
  .site-header__actions { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer__inner { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter); }
.site-footer p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Sections ---------- */

.band { padding: clamp(64px, 9vw, 112px) 0; }
.band--surface { background: var(--surface); border-block: 1px solid var(--line); }
.band__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.band h2, .close h2 {
  margin: 0; max-width: 22ch;
  font-size: clamp(1.9rem, 1.3rem + 1.7vw, 2.6rem); line-height: 1.1; font-weight: 800; letter-spacing: -.03em;
  text-wrap: balance;
}
.band h2.centred { margin-inline: auto; text-align: center; }
.band p { max-width: 62ch; }
.band__lede { margin: 16px 0 0; font-size: 1.125rem; color: var(--ink-soft); }
.split__text > p { margin: 16px 0 0; font-size: 1.125rem; color: var(--ink-soft); }
.note { margin: 12px 0 0; font-size: .82rem; color: var(--ink-soft); }
.centred { text-align: center; margin-inline: auto; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 88px); align-items: center; }

.split--figure { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }

/* Runs that never happen */

.contrast { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contrast__row { padding: 16px 18px; }
.contrast__row + .contrast__row { border-left: 1px solid var(--line); }
.contrast__row--ours { background: var(--action-soft); }
.contrast dt { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.contrast__row--ours dt { color: var(--action); }
.contrast dd { margin: 4px 0 0; font-size: .98rem; line-height: 1.5; }

.timeline { margin: 0; padding: 22px 24px 16px; }
.timeline__table { width: 100%; border-collapse: collapse; }
.timeline__table thead th { font-size: .8rem; font-weight: 600; color: var(--ink-soft); text-align: left; padding: 0 0 10px; }
.timeline__table tbody th { text-align: left; font-weight: 400; padding: 14px 16px 14px 0; width: 38%; border-top: 1px solid var(--line); }
.timeline__table td { position: relative; padding: 14px 0; border-top: 1px solid var(--line); background: linear-gradient(var(--wire), var(--wire)) 0 50% / 100% 2px no-repeat; }
.timeline__bot { display: block; font-weight: 600; line-height: 1.3; }
.timeline__meta { display: block; font-size: .8rem; color: var(--ink-soft); }
.run { position: relative; display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--surface); }
.run--failed { background: var(--bad); border-radius: 4px; }
.run--missed { background: var(--surface); box-shadow: inset 0 0 0 3px var(--bad), 0 0 0 4px var(--surface); }
.timeline__note { display: block; margin-top: 3px; font-size: .8rem; font-weight: 700; color: var(--bad); }

/* Built for RPA */

/* The app's Fleet table, as an example: its columns, its words and its times, so a visitor who signs up
   finds the table they were shown. It fits at every width, so it never scrolls sideways. */
.fleet-table { margin-top: 36px; }
.fleet-table__caption { caption-side: top; text-align: left; padding: 12px 16px 0; font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.fleet-bot { display: inline-flex; align-items: center; gap: 10px; }
.fleet-bot__name { display: block; font-weight: 700; }
.fleet-bot__platform { display: block; font-size: .8rem; font-weight: 400; color: var(--ink-soft); }
.fleet-next__was { color: var(--ink-soft); }
.fleet-table table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.fleet-table th, .fleet-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fleet-table thead th { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.fleet-table tbody tr:last-child > * { border-bottom: 0; }
.fleet-table tbody th { font-weight: 700; }
.platform { display: inline-flex; align-items: center; gap: 10px; }
.badge--sm { width: 24px; height: 24px; border-radius: 7px; font-size: .64rem; }
.owner { display: inline-flex; align-items: center; gap: 8px; }
.owner__initials { width: 24px; height: 24px; border-radius: 50%; background: var(--action-soft); color: var(--action); display: grid; place-items: center; font-size: .66rem; font-weight: 800; }
.ticks { display: inline-flex; gap: 3px; vertical-align: middle; }
.ticks > span { width: 6px; height: 16px; border-radius: 2px; background: var(--ok); opacity: .35; }
.ticks > .ticks__failed { background: var(--bad); opacity: 1; }
.ticks > .ticks__missed { background: transparent; box-shadow: inset 0 0 0 1.5px var(--bad); opacity: 1; }
.context { display: inline-block; margin-left: 8px; font-size: .8rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 7px; padding: 2px 8px; }
.fleet-table .c-state .context { display: block; width: fit-content; margin: 6px 0 0; }

.facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 4px 0 0; color: var(--ink-soft); font-size: .98rem; }

/* Managers */

.points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.points li { display: flex; gap: 12px; }
.points li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .6em; border-radius: 50%; background: var(--action); }

.savings { position: relative; margin: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) 56px minmax(0, 1fr); align-items: center; }
.savings__wires { grid-column: 2; grid-row: 1; width: 100%; height: 100%; }
.savings__wires path { fill: none; stroke: var(--wire); stroke-width: 2; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.savings__sources { grid-column: 1; grid-row: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.savings__sources li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; font-weight: 600; white-space: nowrap; }
.savings__hours { font-weight: 800; font-variant-numeric: tabular-nums; }
.savings__total { grid-column: 3; grid-row: 1; margin: 0; padding: 22px 24px; border: 2px solid var(--ink); font-size: 1.05rem; line-height: 1.5; color: var(--ink-soft); }
.savings__total strong { color: var(--ink); }
.savings__total strong:first-child { display: block; white-space: nowrap; font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3rem); line-height: 1; letter-spacing: -.04em; margin-bottom: 8px; }
.savings .note { grid-column: 1 / -1; }

/* Pricing: what Team adds, as the app's own Reports and Savings bands drawn from its made-up fleet
   (SampleFleet), each tagged Example in the panel and again in its caption. The band's colours are the
   app's, the same in both themes because the panel is always ink. */
.peeks { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
/* Side by side the two panels match in height, each chart on the panel's foot, so the charts line up. */
.peek { margin: 0; display: flex; flex-direction: column; }
.peek__panel {
  --peek-soft: rgba(233, 238, 246, .72); --peek-faint: rgba(233, 238, 246, .58); --peek-line: rgba(233, 238, 246, .16);
  --peek-ok: #4CC38A; --peek-bad: #FF7B6E;
  flex: 1; display: flex; flex-direction: column;
  position: relative; padding: 26px 28px 24px; border-radius: var(--radius); background: var(--close-ground); color: var(--close-ink);
}
.peek__tag { position: absolute; top: 14px; right: 14px; padding: 1px 9px; border-radius: 999px; background: rgba(233, 238, 246, .14); font-size: .72rem; font-weight: 800; }
.peek__headline { margin: 0; padding-right: 64px; font-size: clamp(1.35rem, 1.05rem + .8vw, 1.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.band .peek__range { margin: 8px 0 0; color: var(--peek-soft); font-size: .95rem; }
.peek__figures { display: flex; flex-wrap: wrap; gap: 12px 0; margin: 20px 0 0; }
.peek__figures div { display: flex; flex-direction: column; padding: 0 18px; border-left: 1px solid var(--peek-line); }
.peek__figures div:first-child { padding-left: 0; border-left: 0; }
.peek__figures dt { font-size: .8rem; color: var(--peek-faint); }
.peek__figures dd { order: -1; margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.peek__chart { display: block; width: 100%; height: 120px; margin-top: auto; padding-top: 24px; box-sizing: content-box; border-bottom: 1px solid var(--peek-line); }
.peek__chart .ok { fill: var(--peek-ok); }
.peek__chart .bad { fill: var(--peek-bad); }
.peek__chart .part { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.peek__chart .ok.part { stroke: var(--peek-ok); }
.peek__chart .bad.part { stroke: var(--peek-bad); }
.band .peek__key { margin: 10px 0 0; font-size: .82rem; color: var(--peek-soft); }
.peek__swatch { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 2px; vertical-align: -1px; }
.peek__swatch--ok { background: var(--peek-ok); }
.peek__swatch--bad { margin-left: 6px; background: var(--peek-bad); }
.peek figcaption { margin-top: 14px; max-width: 62ch; font-size: .95rem; color: var(--ink-soft); }
.peek figcaption strong { color: var(--ink); }
@media (max-width: 960px) {
  .peeks { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .peek__panel { padding: 20px 18px 18px; }
  .peek__headline { padding-right: 0; margin-top: 26px; }
  .peek__tag { left: 18px; right: auto; }
  /* The figures wrap here, and a divider would lead a new line. */
  .peek__figures { gap: 12px 24px; }
  .peek__figures div { padding: 0; border-left: 0; }
}

/* Connect */

.routes { list-style: none; margin: 36px 0 0; padding: 0; }
.route { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.8fr) minmax(320px, 1.2fr); gap: 24px; align-items: center; padding: 20px 24px; }
.route + .route { border-top: 1px solid var(--line); }
.route__name { font-weight: 700; }
.route__how { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.route .route__endpoint--prose { font-family: var(--font); font-size: .9rem; font-weight: 600; color: var(--ink-soft); background: none; border: 0; padding: 0; }
.route__endpoint { justify-self: start; white-space: nowrap; font-size: .8rem; background: var(--surface-sunk); border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; }

/* Pricing */

.givens { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-weight: 600; }
.givens li { display: flex; align-items: center; gap: 9px; }
.givens li::before { content: ""; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg) translateY(-2px); }
.plans { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.plan--featured { border: 2px solid var(--action); }
.plan h3 { margin: 0; font-size: 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan__flag { font-size: .75rem; font-weight: 700; background: var(--action-soft); color: var(--action); padding: 3px 10px; border-radius: 99px; }
.plan__price { margin: 0; font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__price span { font-size: .95rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.plan__features { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.plan__features li { display: flex; gap: 10px; }
.plan__features li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .62em; border-radius: 50%; background: var(--action); }
.plan__foot { margin: auto 0 0; font-size: .85rem; color: var(--ink-soft); }

/* Close */

.close { background: var(--close-ground); color: var(--close-ink); text-align: center; padding: clamp(64px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.close h2 { margin-inline: auto; color: var(--close-ink); }
.close p { margin: 14px auto 0; color: var(--close-ink); font-size: 1.125rem; }
.button--ghost { color: var(--close-ink); box-shadow: inset 0 0 0 1.5px currentColor; background: transparent; }
.button--ghost:hover { background: color-mix(in srgb, var(--close-ink) 12%, transparent); }

@media (max-width: 1199px) {
  .fleet-table th, .fleet-table td { padding-inline: 12px; }
}

@media (max-width: 1139px) {
  .fleet-table thead th:nth-child(3), .fleet-table .c-runs { display: none; }
}

@media (max-width: 999px) {
  .fleet-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fleet-table table, .fleet-table tbody, .fleet-table caption { display: block; }
  .fleet-table tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .fleet-table tbody tr:last-child { border-bottom: 0; }
  .fleet-table tbody th, .fleet-table tbody td { display: block; padding: 0; border: 0; white-space: normal; }
  .fleet-table .c-state { grid-column: 2; grid-row: 1; text-align: right; }
  .fleet-table .c-state .context { margin: 6px 0 0 auto; }
  .fleet-table .c-owner, .fleet-table .c-next { grid-column: 1 / -1; font-size: .9rem; color: var(--ink-soft); }
}

/* Under 700px a row reads as the app's phone Fleet row: the name and its state on the first line (the name
   cut with an ellipsis, never wrapped), owner and next run under it, the context chip below. */
@media (max-width: 699px) {
  .fleet-table tbody tr { grid-template-columns: auto minmax(0, 1fr) auto; }
  .fleet-table tbody th { grid-column: 1 / 3; grid-row: 1; min-width: 0; }
  .fleet-table .c-state { display: contents; }
  .fleet-table .c-state .state { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; }
  .fleet-table .c-state .context { grid-column: 1 / -1; justify-self: start; margin: 0; }
  .fleet-table .c-owner { grid-column: 1; grid-row: 2; }
  .fleet-table .c-next { grid-column: 2 / -1; grid-row: 2; }
  .fleet-bot { min-width: 0; max-width: 100%; }
  .fleet-bot > span:last-child { min-width: 0; }
  .fleet-bot__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (min-width: 700px) and (max-width: 999px) {
  .fleet-table tbody { display: grid; grid-template-columns: max-content 1fr auto; }
  .fleet-table tbody tr { grid-column: 1 / -1; grid-template-columns: subgrid; column-gap: 24px; }
  .fleet-table tbody th { grid-column: 1 / 3; }
  .fleet-table .c-state { grid-column: 3; grid-row: 1 / 3; }
  .fleet-table .c-owner, .fleet-table .c-next { grid-column: auto; grid-row: 2; }
}

@media (max-width: 960px) {
  .split, .split--figure { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .route { grid-template-columns: 1fr; gap: 10px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

@media (max-width: 560px) {
  .contrast { grid-template-columns: 1fr; }
  .contrast__row + .contrast__row { border-left: 0; border-top: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr; }
  .savings { grid-template-columns: 1fr; gap: 14px; }
  .savings__wires { display: none; }
  .savings__sources, .savings__total { grid-column: 1; grid-row: auto; }
  .savings__sources li { white-space: normal; line-height: 1.25; }
  .savings__hours { white-space: nowrap; }
  .timeline__table tbody th { width: 44%; }
  .route__endpoint { white-space: normal; overflow-wrap: normal; }
  .givens { flex-direction: column; align-items: flex-start; width: max-content; max-width: 100%; margin-inline: auto; }
}

/* ---------- Footer columns (every page shares one footer) ---------- */

.site-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); max-width: 760px; }
.site-footer__nav h2 { margin: 0 0 10px; font-size: .8rem; font-weight: 700; color: var(--ink); }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer__nav li { text-wrap: balance; }
.site-footer__nav a { font-size: .9rem; text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer .site-footer__line { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .84rem; }

/* ---------- Pricing page ---------- */

.band--tight { padding-top: clamp(28px, 3vw, 40px); }
.band--tight .plans { margin-top: 0; }
.plan__intro { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 700; }
.plan__intro + .plan__features { border-top: 0; padding-top: 0; }
.nowrap { white-space: nowrap; }
.plan__soon { display: inline-block; margin-left: 4px; font-size: .75rem; font-weight: 700; color: var(--ink-soft); background: var(--surface-sunk); padding: 1px 8px; border-radius: 99px; white-space: nowrap; }

/* Every plan, line by line: the fleet table's grammar, one row per limit or feature. */
.compare { margin-top: 32px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.compare:focus-visible { outline-offset: 2px; }
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: .9rem; font-weight: 700; color: var(--ink-soft); background: var(--surface-sunk); }
.compare tbody th { width: 40%; font-weight: 600; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare .yes, .compare .no { display: inline-block; position: relative; width: 20px; height: 20px; vertical-align: middle; }
.compare .yes::before { content: ""; position: absolute; left: 4px; top: 4px; width: 11px; height: 6px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.compare .no::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 2px; border-radius: 1px; background: var(--wire); }

/* What happens, and when: each story's dates on the dashed wire. A step is an ink dot; the date
   something stops or goes is the late diamond. */
.stories { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.story h3 { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.when { list-style: none; margin: 18px 0 0; padding: 0; }
.when li { position: relative; padding: 0 0 22px 30px; }
.when li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--ground); z-index: 1; }
.when li:not(:last-child)::after { content: ""; position: absolute; left: 7.5px; top: .9em; bottom: -.45em; border-left: 2px dashed var(--wire); }
.when li.when--end::before { border-radius: 2px; background: var(--late); transform: rotate(45deg) scale(.9); }
.when li:last-child { padding-bottom: 0; }
.when p { margin: 0; max-width: 52ch; }
.when .when__at { font-size: .84rem; font-weight: 700; color: var(--ink-soft); }
.when .when__at + p { margin-top: 3px; }
.story > .note { margin-top: 18px; padding-left: 30px; }

@media (max-width: 960px) {
  .stories { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-footer__nav { grid-template-columns: 1fr 1fr; }
  .compare table { min-width: 0; font-size: .84rem; }
  .compare thead th { font-size: .84rem; }
  .compare th, .compare td { padding: 10px 8px; }
  .compare tbody th { width: 40%; }
  .compare .plan__soon { margin-left: 0; padding: 1px 6px; }
  .compare thead .plan__soon { display: block; width: max-content; margin-top: 4px; }
}

/* ---------- Platform pages ---------- */

.hero__badge { display: flex; justify-content: center; margin: 0 0 18px; }
.hero__badge .badge { width: 48px; height: 48px; border-radius: 12px; font-size: 1rem; }
.hero__badge .badge--api { font-size: .9rem; }
.hero--platform { padding-bottom: clamp(48px, 6vw, 80px); }
.points strong { color: var(--ink); }
a.route__name { text-decoration: none; }
a.route__name:hover { text-decoration: underline; }

/* Steps on the wire: a numbered disc per step, joined by the dashed connector. */
.steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: step; display: grid; gap: 0; max-width: 760px; }
.steps li { position: relative; padding: 0 0 28px 52px; counter-increment: step; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--ground); font-size: .9rem; font-weight: 800; box-shadow: 0 0 0 5px var(--ground); z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 30px; bottom: 0; border-left: 2px dashed var(--wire); }
.steps h3 { margin: 0; font-size: 1.05rem; font-weight: 800; line-height: 1.35; }
.steps p { margin: 6px 0 0; color: var(--ink-soft); max-width: 62ch; }

/* The hub, narrowed to one platform: its card, a wire into the fleet, and the alert out. Settled and
   drawn in CSS, so it needs no script; it stacks under 960px with short vertical connectors. */
.slice { max-width: 1120px; margin: clamp(36px, 4vw, 56px) auto 0; text-align: left; }
.slice__stage { display: grid; grid-template-columns: minmax(0, .9fr) 56px minmax(0, 1.35fr) 56px minmax(0, .95fr); align-items: center; }
.slice__wire { align-self: center; border-top: 2px dashed var(--wire); }
.slice__wire--alert { border-top-color: var(--bad); }
.slice .fleet__row:first-child { border-top: 1px solid var(--line); }
.slice .hub__caption { margin-top: 18px; }

/* A Verify step's line, as the app shows it, tagged as an example. */
.connect-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: 32px; }
.connect-split .steps { margin-top: 0; }
.verify-example { margin: 0; display: grid; gap: 12px; }
.verify-example figcaption { font-size: .84rem; font-weight: 700; color: var(--ink-soft); }
.verify-example figcaption span { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 99px; background: var(--surface-sunk); font-size: .72rem; font-weight: 800; vertical-align: 1px; }
.verify { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-sunk); }
.verify__mark { width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink-soft); }
.verify--ok { background: var(--ok-soft); }
.verify--ok .verify__mark { background: var(--ok); box-shadow: none; }
.verify--late { background: var(--late-soft); }
.verify--late .verify__mark { background: var(--late); box-shadow: none; border-radius: 2px; transform: rotate(45deg) scale(.9); }
.verify p { margin: 0; }
.verify__when { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.verify__head { font-weight: 700; color: var(--ink); }
.verify p.verify__detail { margin-top: 4px; font-size: .9rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.verify--late .verify__detail, .verify--ok .verify__detail { color: var(--ink); }
.verify__detail code { font-family: var(--mono); font-size: .8rem; font-weight: 700; }

@media (max-width: 960px) {
  .slice__stage { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .slice__wire { justify-self: center; height: 28px; border-top: 0; border-left: 2px dashed var(--wire); }
  .slice__wire--alert { border-left-color: var(--bad); }
  .slice .fleet::after { content: none; }
  .connect-split { grid-template-columns: 1fr; }
}

/* The request, rendered from IngestionContract. */
.spec { margin-top: 28px; max-width: 940px; }
.spec__route { margin: 0; }
.endpoint { display: inline-block; font-family: var(--mono); font-size: .84rem; color: var(--ink); background: var(--surface-sunk); border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; }
.endpoint b { font-weight: 800; margin-right: .4em; }
.band p.spec__body { margin: 12px 0 0; color: var(--ink-soft); max-width: 72ch; }
.spec h3 { margin: 28px 0 10px; font-size: 1rem; font-weight: 800; }
.spec h3 + .spec__body { margin: -4px 0 10px; }
/* A spec list: a 9px hairline frame of rows, the name on the left and what it's for on the right. */
.spec__list { margin: 0; display: grid; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.spec__item { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 6px 24px; padding: 14px 18px; border-top: 1px solid var(--line); }
.spec__item:first-child { border-top: 0; }
.spec__item dt { display: flex; flex-wrap: wrap; align-items: baseline; align-content: start; gap: 4px 8px; }
.spec__name { font-family: var(--mono); font-size: .84rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.spec__type, .spec__req { font-size: .8rem; color: var(--ink-soft); }
.spec__req { font-weight: 700; }
.spec__item dd { margin: 0; display: grid; gap: 6px; min-width: 0; font-size: .9rem; color: var(--ink-soft); }
.band .spec__item dd p { margin: 0; max-width: 64ch; }
.spec__item .spec__value { font-weight: 600; color: var(--ink); }
.spec__values { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.spec__example { overflow-wrap: anywhere; }
.spec__item code { font-family: var(--mono); font-size: .8rem; color: var(--ink); }
.spec__values code, .spec__example code, .spec__value code { background: var(--surface-sunk); border-radius: 7px; padding: 1px 6px; }

@media (max-width: 720px) {
  .spec__item { grid-template-columns: 1fr; padding: 12px 14px; }
}
@media (max-width: 560px) {
  .steps li { padding-left: 46px; }
}
.split--top { align-items: start; }

/* ---------- FAQ ---------- */

.hero--page { padding-bottom: clamp(36px, 4vw, 56px); }
.hero__offer a { color: var(--action); }
.faq, .doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq__topics, .doc__contents { position: sticky; top: 96px; }
.faq__topics ul, .doc__contents ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.faq__topics a, .doc__contents a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 9px; font-size: .95rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.faq__topics a:hover, .doc__contents a:hover { background: var(--surface-sunk); color: var(--ink); }
.faq__body { max-width: 680px; }
.doc__body { max-width: 62ch; }
.faq__group + .faq__group { margin-top: clamp(40px, 5vw, 64px); }
.faq__group h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + .8vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.faq__item { padding: 22px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.faq__item:last-child { border-bottom: 0; padding-bottom: 0; }
.faq__item h3 { margin: 0; font-size: 1.05rem; font-weight: 800; line-height: 1.35; }
.faq__item p { margin: 8px 0 0; color: var(--ink-soft); max-width: 60ch; }
.faq__item a { color: var(--action); }
.faq__item ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--ink-soft); display: grid; gap: 4px; }
.faq__group { scroll-margin-top: 96px; }

@media (max-width: 960px) {
  .faq, .doc { grid-template-columns: 1fr; gap: 28px; }
  .faq__topics, .doc__contents { position: static; }
  .faq__topics ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .faq__topics a { min-height: 40px; border: 1px solid var(--line); background: var(--surface); }
}

/* ---------- Legal text (Security and the legal pages, rendered from docs/ui-v2/content/legal) ---------- */

.doc { grid-template-columns: 260px minmax(0, 1fr); }
.doc__contents a { min-height: 36px; padding: 6px 12px; font-size: .9rem; line-height: 1.35; }
.legal > :is(p, ul) { max-width: 62ch; }
.doc__body h2 { max-width: none; margin: 48px 0 0; font-size: clamp(1.35rem, 1.15rem + .6vw, 1.65rem); letter-spacing: -.02em; scroll-margin-top: 96px; }
.doc__body > h2:first-child { margin-top: 0; }
.legal > h2:not(:first-child) { margin-top: 48px; }
.legal h3 { margin: 28px 0 0; font-size: 1.05rem; font-weight: 800; }
.legal p { margin: 14px 0 0; }
.legal ul { margin: 14px 0 0; padding-left: 1.25em; display: grid; gap: 8px; }
.legal li > ul { margin-top: 8px; gap: 6px; }
.legal li > p { margin-top: 8px; }
.legal a { color: var(--action); overflow-wrap: anywhere; }
/* The dated footnote closing a legal text. Its rule runs the doc column's measure. */
.legal p.legal__dated { max-width: none; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }

@media (max-width: 960px) {
  .doc { grid-template-columns: 1fr; }
  .doc__contents { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground); }
}

/* ---------- On this page (onpage.js): the contents kept in reach on a phone ---------- */

.faq__topics a[aria-current], .doc__contents a[aria-current] { background: var(--surface-sunk); color: var(--ink); }
.onpage { display: none; }

@media (max-width: 960px) {
  /* The bar replaces the stacked contents. Every jump lands clear of the header and the bar: the page's
     scroll padding takes their height, so the headings drop their own margin, which would add to it. */
  .has-onpage .faq__topics, .has-onpage .doc__contents { display: none; }
  .has-onpage { scroll-padding-top: 136px; }
  .has-onpage :is(.doc__body h2, .faq__item, .faq__group) { scroll-margin-top: 0; }

  .onpage {
    display: block; position: sticky; top: 72px; z-index: 10;
    margin: 0 calc(-1 * var(--gutter)) 28px; padding: 0 var(--gutter);
    background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .onpage__toggle {
    list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer;
    font-size: .9rem; color: var(--ink);
  }
  .onpage__toggle::-webkit-details-marker { display: none; }
  .onpage__label { flex: none; font-weight: 700; }
  .onpage__current { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-soft); }
  .onpage__current:not(:empty)::before { content: "· "; }
  .onpage__chevron { flex: none; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease-out; }
  .onpage[open] .onpage__chevron { transform: translateY(2px) rotate(-135deg); }
  .onpage__panel {
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: min(60vh, 480px); overflow-y: auto; overscroll-behavior: contain;
    padding: 4px var(--gutter) 12px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .onpage__panel ul { list-style: none; margin: 0; padding: 0; }
  .onpage__panel a { display: flex; align-items: center; min-height: 48px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .95rem; font-weight: 600; line-height: 1.35; color: var(--ink); text-decoration: none; }
  .onpage__panel li:last-child a { border-bottom: 0; }
  .onpage__panel a[aria-current] { color: var(--action); }
  .onpage__panel .onpage__top { color: var(--ink-soft); }
}

/* A phone on its side has no height to spare for a second sticky bar. */
@media (max-width: 960px) and (max-height: 500px) {
  .onpage { position: static; }
  .has-onpage { scroll-padding-top: 88px; }
  .has-onpage :is(.doc__body h2, .faq__item, .faq__group) { scroll-margin-top: 0; }
}

@media print {
  .onpage { display: none; }
}

/* Forced colours (Windows contrast themes) drop background colours and box-shadows, so the state
   shapes, the pricing table's "not included" dash, bullets and timeline marks would vanish. Redraw
   them in the theme's own colours; a hollow ring becomes an inset outline. */
@media (forced-colors: active) {
  .state::before, .points li::before, .plan__features li::before, .compare .no::before, .when li::before {
    forced-color-adjust: none;
    background: CanvasText;
    box-shadow: none;
  }
  .state--missed::before, .state--quiet::before {
    background: Canvas;
    outline: 2px solid CanvasText;
    outline-offset: -2px;
  }
}
