/* Hallmark · shape: Map / Diagram · genre: modern-minimal · theme: brand · redesign: full · draw: 8af828 · job: request a demo
 * paper: oklch(15.5% 0.012 24.1) · accent: oklch(55.4% 0.224 24.1) · display: Clash Grotesk · body: Switzer · hero: Corridor · nav: edge-aligned · footer: colophon block · signature: the leak chain drawn as a system map, SAFE's four steps on the device between the app and the AI provider
 * axes: dark/grotesk-sans/chromatic-red · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a security page argues by evidence not attitude; the map and the misses-included results carry the argument */
/* Hallmark · dropped core, hud-stage, hud-count, progress, theme, https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.2/anime.min.js, https://unpkg.com/lenis@1.1.13/dist/lenis.min.js · the canvas animation, its counters, the scroll bar, the theme toggle and the two libraries that animated them were decoration; the page is dark only, as the brand is */
/* Hallmark · redrew the hero animation as the wire: real synthetic prompts on three lanes meet one crimson checkpoint and are allowed, masked in place or blocked; no glow, no placeholder bars, static frame under reduced motion */
/* Hallmark · answered F4 · the crimson demo band needs its own filled action in ink; the crimson primary would vanish on the crimson field */
/* Hallmark · swapped pricing (dealt) for the comparison table · SAFE has no published pricing to show */
@import url("./tokens.css");
@import url("./base.css");

/* a typographic second action */
.text-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-sm); color: var(--color-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-muted); text-underline-offset: 0.25em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.text-link:hover { text-decoration-color: var(--color-accent); }
.text-link:active { color: var(--color-ink-2); }
.text-link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* smooth in-page jumps, unless the reader asks for less motion; Lenis (scroll.js) takes over wheel and links when it runs */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
[tabindex="-1"]:focus { outline: none; }

/* reading progress: a crimson hairline over the nav, driven by the scroll itself; progress.js covers browsers without scroll timelines */
.progress { position: fixed; inset: 0 0 auto; z-index: calc(var(--z-sticky-nav) + 1); height: 3px; background: var(--color-accent); transform: scaleX(var(--progress, 0)); transform-origin: 0 50%; pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progress { animation: progress auto linear both; animation-timeline: scroll(root block); }
  @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* chrome */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 72px; }
.nav .wordmark img { height: 28px; width: auto; }
.nav-links { display: flex; align-items: center; gap: var(--space-lg); }
.nav-links a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-2xs); color: var(--color-ink-2); text-decoration: none; font-size: var(--text-sm); }
.nav-links a:not(.btn):hover { color: var(--color-ink); }

/* controls: eight states */
.btn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-on-field); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: color-mix(in oklch, var(--color-accent) 86%, var(--color-ink)); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--quiet { background: transparent; color: var(--color-ink); border-color: var(--color-rule); }
.btn--quiet:hover { background: var(--color-paper-2); border-color: var(--color-muted); }
.btn--small { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color var(--dur-short) linear; } }

/* hero: Corridor, one centred column, the figures as its foot */
.hero { min-height: min(calc(100dvh - 72px), 52rem); display: grid; align-content: center; padding-block: var(--space-2xl) var(--space-xl); }
.hero .container { display: grid; justify-items: center; text-align: center; gap: var(--space-xl); }
.hero h1 { font-size: clamp(3.25rem, 6vw + 1rem, 6.5rem); line-height: 0.98; max-width: 12ch; }
.hero .lead { color: var(--color-ink-2); max-width: 44ch; margin-top: calc(-1 * var(--space-md)); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; max-width: 1104px; margin-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); text-align: left; }
.figures > div { padding: var(--space-lg) var(--space-lg) 0; border-left: var(--rule-hair) solid var(--color-rule); }
.figures > div:first-child { padding-left: 0; border-left: 0; }
.figures b { display: block; font: var(--display-weight) var(--text-3xl)/1 var(--font-display); letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; }
.figures b small { font-size: var(--text-lg); color: var(--color-muted); }
.figures span { display: block; margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }

/* hero wire: three lanes, one crimson checkpoint; prompts are real text, not placeholder bars */
.wire { width: 100%; max-width: 1104px; text-align: left; font-size: var(--text-sm); }
.wire-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 9rem; align-items: center; min-height: 68px; }
.wire-row .src, .wire-row .dst { font-family: var(--font-outlier); font-size: var(--text-xs); color: var(--color-ink-2); }
.wire-row .src { padding-right: var(--space-md); text-align: right; }
.wire-row .dst { padding-left: var(--space-md); }
.wire-head { min-height: 40px; color: var(--color-muted); font-size: var(--text-xs); }
.wire-head > span:first-child { text-align: right; padding-right: var(--space-md); }
.wire-head > span:last-child { padding-left: var(--space-md); }
.wire-gate-label { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); }
.wire-gate-label img { height: 20px; width: auto; }
.wire-track { position: relative; align-self: stretch; overflow: hidden; }
.wire-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: var(--rule-hair) solid var(--color-rule); }
.wire-track::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--color-accent); }
.wire-row.hit .wire-track::before { border-top-color: var(--color-accent); }
.chip { position: absolute; left: 0; top: 50%; margin-top: calc(-1 * var(--space-md)); height: 32px; display: inline-flex; align-items: center; gap: 0.5ch; padding: 0 var(--space-sm); white-space: nowrap; font: 400 var(--text-xs)/1 var(--font-outlier); color: var(--color-ink-2); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: 6px; z-index: var(--z-base); }
.chip .s { font-weight: 400; color: var(--color-ink); }
.chip.masked .s { color: var(--color-accent-text); background: color-mix(in oklch, var(--color-accent) 18%, transparent); padding: var(--space-2xs); border-radius: 3px; }
.chip.blocked { border-color: var(--color-accent); color: var(--color-ink); }
.chip.blocked .s { text-decoration: line-through; text-decoration-color: var(--color-accent); }
.chip .verdict { position: absolute; left: 0; bottom: calc(100% + 6px); font: 600 var(--text-xs)/1 var(--font-body); font-style: normal; color: var(--color-accent-text); }
.chip.at-out { left: calc(50% + 14px); }
.chip.at-gate { left: auto; right: calc(50% + 14px); }
.wire-tally { display: flex; justify-content: space-between; gap: var(--space-lg); margin-top: var(--space-sm); font-size: var(--text-xs); color: var(--color-muted); }
#wire-count { font-family: var(--font-outlier); color: var(--color-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 40rem) {
  .wire-row { grid-template-columns: minmax(0, 1fr); }
  .wire-row .src, .wire-row .dst, .wire-head > span:not(.wire-gate-label) { display: none; }
  .chip { padding: 0 var(--space-xs); font-size: 0.75rem; }
  .chip.at-out, .chip.at-gate { display: block; line-height: 30px; max-width: calc(50% - 18px); overflow: hidden; text-overflow: ellipsis; }
  .chip.at-gate .verdict { display: none; }
  .wire-tally { flex-direction: column; gap: var(--space-2xs); }
}

/* section rhythm: mixed gaps, three ways to part */
section { padding-block: var(--section-gap); }
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.head h2 { max-width: 18ch; }
.head .lead { color: var(--color-ink-2); }

/* the map: the signature */
#chain { background: var(--color-paper-2); padding-block: var(--section-gap-l); }
.map-wrap { overflow-x: auto; }
.map { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto auto auto; column-gap: var(--space-sm); min-width: 1040px; }
.map ol { display: contents; list-style: none; margin: 0; padding: 0; }
.node { grid-row: 2; position: relative; display: grid; align-content: start; gap: var(--space-xs); min-height: 236px; padding: var(--space-lg) var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); }
.node:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: calc(-1 * var(--space-sm)); width: var(--space-sm); border-top: 2px solid var(--color-muted); }
.node .n { font: 400 var(--text-sm)/1 var(--font-outlier); color: var(--color-muted); }
.node h3 { font-size: var(--text-xl); }
.node p { font-size: var(--text-sm); color: var(--color-ink-2); }
.node .who { margin-top: auto; padding-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.node.safe { border-color: color-mix(in oklch, var(--color-accent) 70%, var(--color-rule)); }
.node.safe .who { color: var(--color-accent-text); }
.node.safe::after { border-top-color: var(--color-accent); }
.node.end h3 { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--color-accent); }
.node.end .who { color: var(--color-ink); }
.bracket { grid-row: 1; grid-column: 3 / 7; display: flex; align-items: end; gap: var(--space-sm); padding-bottom: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink); }
.bracket::before, .bracket::after { content: ""; flex: 1; border-top: 2px solid var(--color-accent); margin-bottom: 0.45em; }
.bracket span { white-space: nowrap; font-weight: 600; }
.lane { grid-row: 3; display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-md); padding: var(--space-sm) var(--space-md); border: var(--rule-hair) dashed var(--color-rule); border-radius: var(--radius-card); font-size: var(--text-sm); color: var(--color-ink-2); }
.lane--policy { grid-column: 3 / 7; }
.lane--reply { grid-column: 7 / 8; }
.lane b { color: var(--color-ink); font-weight: 600; }
.map-note { margin-top: var(--space-xl); font-size: var(--text-sm); color: var(--color-muted); }

/* platform: the heading's three parts on one wire, device and console joined by the signed policy */
.head .lead .text-link { display: inline; min-height: 0; padding: 0; }
/* a row for the labels, then one row per part (four), shared by all three columns so the wire and the parts stay level */
.platform { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 5fr); grid-template-rows: auto repeat(4, auto); gap: var(--space-lg) var(--gap-columns); }
.tier { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; }
.tier dl { display: grid; grid-row: 2 / -1; grid-template-rows: subgrid; margin: 0; }
.tier--policy dl > div { grid-row: 1 / -1; }
.tier-label { display: flex; align-items: center; height: 32px; max-width: none; font: 600 var(--text-xs)/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-ink-2); }
.tier-label span { display: inline-flex; align-items: center; height: 100%; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); white-space: nowrap; }
.tier--policy .tier-label span { border-color: var(--color-accent); color: var(--color-accent-text); background: color-mix(in oklch, var(--color-accent) 8%, var(--color-paper)); }
/* the wire: from each label across the gap to the next label's edge */
.tier-label::after { content: ""; flex: 1; min-width: var(--space-md); margin-right: calc(-1 * var(--gap-columns)); border-top: 2px solid var(--color-accent); }
.tier:last-child .tier-label::after { content: none; }
.tier dt { font: var(--display-weight) var(--text-lg)/1.2 var(--font-display); letter-spacing: var(--tracking-display); }
.tier dt a { text-decoration: none; }
.tier dt a:hover { color: var(--color-accent-text); }
.tier dd { margin: var(--space-2xs) 0 0; color: var(--color-ink-2); font-size: var(--text-sm); max-width: 44ch; }
.tier .see { color: var(--color-ink); white-space: nowrap; text-decoration-color: var(--color-accent); }
.tier .see::after { content: " ↓"; }
.platform-sdk { max-width: none; margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); font-size: var(--text-sm); }
.platform-sdk b { margin-right: var(--space-xs); color: var(--color-ink); font-weight: 600; }
.platform-sdk a { text-decoration: none; }
.platform-sdk a:hover { color: var(--color-accent-text); }
code { font-family: var(--font-outlier); font-size: 0.92em; color: var(--color-ink); background: var(--color-paper-3); padding: 0 var(--space-2xs); border-radius: 4px; }

/* compare: a table */
#compare { padding-block: var(--section-gap-s); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
.compare th, .compare td { text-align: left; padding: var(--space-md) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: top; }
.compare thead th { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); white-space: nowrap; }
.compare tbody th { font-weight: 400; color: var(--color-ink); width: 34%; }
.compare .us { background: var(--color-paper-2); }
.compare thead .us { color: var(--color-ink); box-shadow: inset 0 3px 0 var(--color-accent); }
.yes { color: var(--color-ink); font-weight: 600; }
.no { color: var(--color-accent-text); }
.partly { color: var(--color-muted); }
#pricing { padding-block: var(--section-gap-s); }
.plans .price td { font-size: var(--text-xl); font-weight: 600; color: var(--color-ink); letter-spacing: -0.01em; }
.none { color: var(--color-muted); }
.compare.plans { table-layout: fixed; }
.plans th:first-child { width: 28%; }
.plan-pick { display: none; }
@media (max-width: 40rem) {
  .plan-pick:not([hidden]) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2xs); padding: var(--space-2xs); margin-bottom: var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); }
  .plan-pick button { min-height: 44px; padding: 0 var(--space-xs); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-2); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
  .plan-pick button:hover { color: var(--color-ink); }
  .plan-pick button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
  .plan-pick button[aria-pressed="true"] { background: var(--color-paper-3); color: var(--color-ink); font-weight: 600; }
  .compare.plans[data-show] { min-width: 0; table-layout: fixed; }
  .plans[data-show] :is(th, td):not(:first-child) { display: none; }
  .plans[data-show="2"] :is(th, td):nth-child(2), .plans[data-show="3"] :is(th, td):nth-child(3),
  .plans[data-show="4"] :is(th, td):nth-child(4), .plans[data-show="5"] :is(th, td):nth-child(5) { display: table-cell; }
  .plans[data-show] th:first-child { width: 50%; }
  .plans .price td { font-size: var(--text-lg); }
}

/* results: a showcase chart, notes beneath */
#results { background: var(--color-paper-2); }
.chart { position: relative; padding: var(--space-xl); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-lg); }
.legend { display: flex; gap: var(--space-lg); font-size: var(--text-sm); color: var(--color-ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: var(--space-xs); vertical-align: -1px; }
.legend .k-p { background: var(--color-ink-2); }
.legend .k-r { background: var(--color-accent); }
.legend .k-t { width: 2px; height: 14px; border-radius: 0; background: var(--color-ink); vertical-align: -3px; }
#rows { display: grid; gap: var(--space-md); }
.row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 128px; gap: var(--space-lg); align-items: center; }
.row .name { font: 400 var(--text-sm)/1.3 var(--font-outlier); color: var(--color-ink); overflow-wrap: anywhere; }
.row .name small { display: block; font-family: var(--font-body); font-size: var(--text-xs); color: var(--color-muted); }
.track { position: relative; display: grid; gap: var(--space-2xs); }
.bar-hit { height: 12px; background: var(--color-paper-3); border-radius: 2px; }
.bar { height: 12px; border-radius: 2px; background: var(--c); }
.target { position: absolute; top: calc(-1 * var(--space-2xs)); bottom: calc(-1 * var(--space-2xs)); width: 2px; background: var(--color-ink); }
.verdict { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); }
.verdict.fail { color: var(--color-accent-text); }
.axis { display: grid; grid-template-columns: 200px minmax(0, 1fr) 128px; gap: var(--space-lg); margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.ticks { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.table-toggle { margin-top: var(--space-lg); min-height: 44px; padding: 0; background: none; border: 0; color: var(--color-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.table-toggle:hover { color: var(--color-accent-text); }
.table-toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.data-table { margin-top: var(--space-md); font-size: var(--text-sm); }
.data-table th, .data-table td { padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; }
.data-table td:nth-child(n+3), .data-table th:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.tip { position: absolute; z-index: var(--z-tooltip); pointer-events: none; padding: var(--space-xs) var(--space-sm); border-radius: 6px; background: var(--color-ink); color: var(--color-paper); font-size: var(--text-sm); white-space: nowrap; }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-2xl); }
.notes h3 { margin-bottom: var(--space-sm); }
.notes p, .notes li { font-size: var(--text-sm); color: var(--color-ink-2); }
.notes ul { margin: 0; padding-left: var(--space-md); display: grid; gap: var(--space-xs); }
.notes b { color: var(--color-ink); }

/* console: the real product, captured */
.shots { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); }
.shot { margin: 0; }
.shot--lead { grid-column: 1 / -1; }
.shot [data-slot] { aspect-ratio: 16 / 10; border-radius: var(--radius-card); }
.shot [data-slot] > img { object-fit: cover; object-position: top left; outline: 1px solid var(--color-rule); outline-offset: -1px; border-radius: var(--radius-card); }
.shot figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }
.shot figcaption b { color: var(--color-ink); }

/* governance and privacy: rows */
#governance { background: var(--color-paper-2); }
.gov { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: start; }
#gov-rows { display: grid; }
.gov-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 40px; gap: var(--space-lg); align-items: center; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.gov-row:first-child { border-top: var(--rule-hair) solid var(--color-rule); }
.gov-row .name { font-weight: 600; }
.gov-row .name small { display: block; font-weight: 400; font-size: var(--text-sm); color: var(--color-muted); }
.stack { display: flex; height: 16px; gap: var(--space-3xs); }
.s-impl, .k-impl { background: var(--color-ink-2); }
.s-part, .k-part { background: var(--color-paper-3); outline: 1px solid var(--color-muted); outline-offset: -1px; }
.s-gap, .k-gap { background: var(--color-accent); }
.gov-row .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--color-ink-2); }
.gov-legend { margin-bottom: var(--space-md); }
.gaps h3 { margin-bottom: var(--space-sm); }
.gaps ul { margin: 0; padding-left: var(--space-md); display: grid; gap: var(--space-sm); color: var(--color-ink-2); font-size: var(--text-sm); }
.gaps b { color: var(--color-ink); }
.privacy { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-3xl); padding-top: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.privacy h2 { grid-column: 1 / -1; margin-bottom: var(--space-lg); }
.privacy h3 { margin-bottom: var(--space-xs); }
.privacy p { font-size: var(--text-sm); color: var(--color-ink-2); }

/* roadmap: rows beside the head */
.roadmap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); }
.roadmap .head-side h2 { max-width: 12ch; }
.roadmap .head-side .lead { margin-top: var(--space-md); color: var(--color-ink-2); }
.limits { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.limits li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); }
.limits b { color: var(--color-ink); font-weight: 600; }

/* the close: a crimson band */
#demo { background: var(--color-field); color: var(--color-on-field); padding-block: var(--section-gap-s); }
#demo .container { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap-columns); align-items: end; }
#demo h2 { max-width: 16ch; }
#demo .lead { margin-top: var(--space-md); color: var(--color-on-field); }
#demo .btn { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
#demo .btn:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }
#demo .container > div:last-child { display: flex; flex-direction: column; align-items: flex-end; }
#demo .btn:focus-visible { outline-color: var(--color-ink); }

/* footer: brand, three link columns, a base row */
.footer { padding-block: var(--space-3xl) var(--space-xl); }
.footer .container:first-child { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.footer img { display: block; height: 28px; width: auto; }
.colophon { margin-top: var(--space-md); color: var(--color-ink-2); max-width: 36ch; }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.foot-nav h3 { font: 600 var(--text-xs)/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); margin-bottom: var(--space-xs); }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--color-ink-2); text-decoration: none; font-size: var(--text-sm); overflow-wrap: anywhere; }
.foot-nav a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.25em; }
.foot-nav a:focus-visible, .foot-base a:focus-visible, .footer .foot-brand a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-sm); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.legal { font-size: var(--text-sm); color: var(--color-muted); }
a.legal { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
a.legal:hover { color: var(--color-ink); }

/* under 60rem every composition stacks */
@media (max-width: 60rem) {
  .nav-links a:not(.btn):not(.keep) { display: none; }
  .head, .gov, .roadmap, #demo .container, .footer .container:first-child { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .figures > div:nth-child(n+3) { margin-top: var(--space-lg); }
  /* stacked: each label becomes a divider, its rule running to the edge; crimson only for the policy */
  .platform { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: var(--space-xl); }
  .tier { display: block; grid-row: auto; }
  .tier dl, .tier--policy dl > div { grid-row: auto; grid-template-rows: none; }
  .tier dl { row-gap: var(--space-lg); }
  .tier-label { margin-bottom: var(--space-md); }
  .tier-label::after, .tier:last-child .tier-label::after { content: ""; margin-right: 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .tier--policy .tier-label::after { border-top: 2px solid var(--color-accent); }
  .tier dd { max-width: none; }
  .notes, .privacy { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: minmax(0, 1fr); }
  .compare { min-width: 44rem; }
  .compare th, .compare td { padding: var(--space-sm) var(--space-md); }
  .limits li { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  #demo .container > div:last-child { align-items: flex-start; }
  .row, .axis { grid-template-columns: 112px minmax(0, 1fr) 96px; gap: var(--space-sm); }
  .gov-row { grid-template-columns: 120px minmax(0, 1fr) 32px; gap: var(--space-sm); }
  .chart { padding: var(--space-lg); }
}
@media (max-width: 30rem) {
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-nav > div:last-child { grid-column: 1 / -1; }
}
/* the map collapses to its ordered list */
@media (max-width: 60rem) {
  .map { display: block; min-width: 0; }
  .map ol { display: grid; gap: var(--space-sm); }
  .node { min-height: 0; grid-row: auto; }
  .node:not(:last-child)::after { top: auto; bottom: calc(-1 * var(--space-sm)); right: auto; left: var(--space-xl); width: 0; height: var(--space-sm); border-top: 0; border-left: 2px solid var(--color-muted); }
  .node.safe::after { border-left-color: var(--color-accent); }
  .bracket { display: none; }
  .lane { margin-top: var(--space-sm); }
}

abbr { text-decoration: none; }
