/* Plumbline site, built from the "Plumbline website redesign" canvas.
   Colours, type, spacing and radii are the NativeOps design tokens
   (ds/nativeops/tokens.json): light on :root, dark under prefers-color-scheme.
   One stylesheet, no scripts. */

:root {
  /* Colour tokens, light. */
  --paper: #f6f4ee;
  --surface: #fffdf8;
  --surface-sunk: #efeae0;
  --night: #121a2b;
  --hairline: #e2ded3;
  --ink: #121a2b;
  --ink-2: #3e4556;
  --slate: #5b6172;
  --accent: #e8893a;
  --accent-text: #a84f14;
  --stage-0: #d9dce3;
  --stage-1: #bfd6ec;
  --stage-2: #5b8fc7;
  --stage-3: #1f4e86;
  --stage-0-ink: #121a2b;
  --stage-1-ink: #121a2b;
  --stage-2-ink: #121a2b;
  --stage-3-ink: #fffdf8;
  --verified: #0e7466;
  --verified-tint: #e3f2ef;
  --agent: #6e56cf;
  --agent-tint: #eeeafb;
  --regressed: #b42318;
  --regressed-tint: #fbe9e7;
  --focus: #1f4e86;
  --shadow-popover: 0 8px 24px rgba(18, 26, 43, 0.12);

  /* Night bands (header, heroes, statement bands) look the same in both
     themes: "text on it uses paper", so these are the dark-theme values of
     paper, ink-2, slate, accent-text, hairline, surface and stage-3. */
  --on-night: #f6f4ee;
  --on-night-2: #c9cfdb;
  --on-night-3: #9aa3b5;
  --on-night-accent: #f0a764;
  --night-line: #2a3650;
  --night-raised: #162033;
  --night-link: #9cc3ee;
  --night-outline: #5b6172;
  /* Text on the accent fill is ink (6.7:1) in both themes. */
  --on-accent: #121a2b;
  --link: var(--stage-3);

  /* Type tokens. */
  --font-display: "Source Serif 4", Georgia, serif;
  --font-sans: "IBM Plex Sans", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Spacing and radius tokens. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --gutter: clamp(20px, 4vw, 48px);
  --page-max: 1200px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1422;
    --surface: #162033;
    --surface-sunk: #1c2740;
    --night: #1c2740;
    --hairline: #2a3650;
    --ink: #f6f4ee;
    --ink-2: #c9cfdb;
    --slate: #9aa3b5;
    --accent: #e8893a;
    --accent-text: #f0a764;
    --stage-0: #2a3142;
    --stage-1: #2b4a6f;
    --stage-2: #4f86c6;
    --stage-3: #9cc3ee;
    --stage-0-ink: #f6f4ee;
    --stage-1-ink: #f6f4ee;
    --stage-2-ink: #0e1422;
    --stage-3-ink: #0e1422;
    --verified: #3dbfa8;
    --verified-tint: #12302c;
    --agent: #a594f0;
    --agent-tint: #26213f;
    --regressed: #f07167;
    --regressed-tint: #3a1c1c;
    --focus: #9cc3ee;
    --shadow-popover: 0 8px 24px rgba(0, 0, 0, 0.45);
  }
}

/* ---- Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
svg { flex: none; }
code { font-family: var(--font-mono); font-size: 13px; }
strong, b { font-weight: 600; }
a { color: var(--link); text-decoration-color: var(--hairline); text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: var(--slate); }
a:focus-visible, label:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 10;
  padding: 8px 14px; border-radius: var(--radius-md);
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
main:focus { outline: none; }

/* Page width and gutter: 1200px of content (the canvas sizes content boxes)
   plus a clamp(20px, 4vw, 48px) gutter each side. */
.wrap { max-width: calc(var(--page-max) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Vertical rhythm of the canvas's regions. */
.pt-0 { padding-top: 0; }
.pt-32 { padding-top: 32px; }
.pt-48 { padding-top: 48px; }
.pt-64 { padding-top: 64px; }
.pt-72 { padding-top: 72px; }
.pt-80 { padding-top: 80px; }
.pt-88 { padding-top: 88px; }
.pt-96 { padding-top: 96px; }
.pb-0 { padding-bottom: 0; }
.pb-48 { padding-bottom: 48px; }
.pb-64 { padding-bottom: 64px; }
.pb-80 { padding-bottom: 80px; }
.pb-88 { padding-bottom: 88px; }
.pb-96 { padding-bottom: 96px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.measure-16 { max-width: 16em; }
.measure-20 { max-width: 20em; }
.measure-22 { max-width: 22em; }
.measure-30 { max-width: 30em; }
.measure-34 { max-width: 34em; }
.measure-36 { max-width: 36em; }
.measure-40 { max-width: 40em; }

/* ---- Type ------------------------------------------------------------------ */

.eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text);
}
/* (0,3,0) so the slate label inside the hero window beats .band .eyebrow. */
.eyebrow-slate, .band .eyebrow.eyebrow-slate { color: var(--slate); }
.step-label { font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); }
.h-display {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -0.01em;
}
.h-page { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 4.6vw, 56px); line-height: 1.08; }
.h-section { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; color: var(--ink); }
.h-block { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 38px; color: var(--ink); }
.h-title-2 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 34px; color: var(--ink); }
.h-card-serif { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 32px; color: var(--ink); }
.h-heading { font-size: 20px; line-height: 28px; font-weight: 600; color: var(--ink); }
.h-heading-sm { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
.lede { font-size: 18px; line-height: 28px; }
.body-lg { font-size: 17px; line-height: 26px; }
.small { font-size: 14px; line-height: 21px; }
.caption { font-size: 13px; line-height: 20px; color: var(--slate); }
.mono { font-family: var(--font-mono); font-size: 13px; }
.strong { font-weight: 600; color: var(--ink); }
.icon-link { color: var(--stage-3); }
.icon-agent { color: var(--agent); }
.icon-verified { color: var(--verified); }

/* ---- Buttons --------------------------------------------------------------- */

.button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-md);
  font-weight: 600; text-decoration: none;
}
.button:hover { text-decoration: underline; text-underline-offset: 4px; }
.button-accent, .button-accent:hover { background: var(--accent); color: var(--on-accent); }
.button-ink, .button-ink:hover { background: var(--ink); color: var(--paper); }
.button-outline, .button-outline:hover { border: 1px solid var(--slate); color: var(--ink); font-weight: 500; }
.button-outline-night, .button-outline-night:hover { border: 1px solid var(--night-outline); color: var(--on-night); font-weight: 500; }
.button-login, .button-login:hover {
  min-height: 40px; padding: 0 16px;
  border: 1px solid var(--night-outline); color: var(--on-night); font-weight: 500;
}
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Night bands: header, heroes, statement bands -------------------------- */

.band { background: var(--night); color: var(--on-night); --focus: var(--night-link); }
.band .eyebrow { color: var(--on-night-accent); }
.band .h-page, .band .h-display, .band .h-section, .band .h-title-2 { color: var(--on-night); }
.band .lede, .band .body-lg, .band .body-night { color: var(--on-night-2); }
.band :where(a:not(.button)) { color: var(--night-link); }
.band :where(a:not(.button)):hover { color: var(--on-night); text-decoration-color: var(--on-night-3); }

.site-header { background: var(--night); border-bottom: 1px solid var(--night-line); --focus: var(--night-link); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 16px; padding-bottom: 16px;
}
.brand, .brand:hover {
  font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 32px;
  color: var(--on-night); text-decoration: none;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.site-nav a:not(.button) { color: var(--on-night-2); text-decoration: none; }
.site-nav a:not(.button):hover { color: var(--on-night); text-decoration: underline; text-decoration-color: var(--on-night-3); text-underline-offset: 6px; }
.site-nav a[aria-current="page"] {
  color: var(--on-night); text-decoration: underline;
  text-decoration-color: var(--on-night-accent); text-underline-offset: 6px;
}

/* Hero layouts. */
.hero-split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-stack { display: flex; flex-direction: column; gap: 20px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-copy-tight { gap: 20px; }
.hero-actions { padding-top: 8px; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; color: var(--on-night-3); }
.hero-login, .hero-login:hover { color: var(--on-night-2); }

/* A grid of dark tiles separated by 1px night lines (security and rules bands). */
.tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1px; background: var(--night-line); border: 1px solid var(--night-line);
  border-radius: var(--radius-md); overflow: hidden;
}
.tiles-300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.tile { background: var(--night-raised); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.tiles-300 .tile { padding: 28px; gap: 10px; }
.tile code { color: var(--night-link); }
.tile-title { color: var(--on-night); font-weight: 600; }
.tiles-300 .tile-title { font-size: 18px; }
.tile-text { font-size: 14px; line-height: 21px; color: var(--on-night-2); }
.tile-cta { justify-content: space-between; }
.tile-cta .button { align-self: flex-start; padding: 0 20px; }

/* ---- Cards and grids ------------------------------------------------------- */

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-260 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid-240 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.grid-220 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.grid-220.tight { gap: 12px; }
.span-all { grid-column: 1 / -1; }

.card {
  display: flex; flex-direction: column; gap: 16px; padding: 28px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md);
}
.card-steps { gap: 14px; }
.card-24 { padding: 24px; gap: 10px; }
.card-20 { padding: 20px; gap: 6px; }
.card-agent { background: var(--agent-tint); border: 0; }
.card-row { flex-direction: row; gap: 16px; }
.card-row > div { display: flex; flex-direction: column; gap: 6px; }
.card-link { margin-top: auto; font-weight: 600; }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--slate); }
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-md);
}
.icon-tile-agent { background: var(--agent-tint); color: var(--agent); }
.icon-tile-sunk { background: var(--surface-sunk); color: var(--ink); }
.icon-tile-verified { background: var(--verified-tint); color: var(--verified); }

/* Closing call to action. */
.cta-panel {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
  padding: 40px; background: var(--surface-sunk); border-radius: var(--radius-md);
}
.cta-panel.band { background: var(--night); }
.cta-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

/* ---- Evidence badges ------------------------------------------------------- */

.badge {
  display: inline-flex; gap: 4px; align-items: center; padding: 4px 8px;
  border-radius: var(--radius-sm); font-size: 13px; line-height: 20px; font-weight: 600;
}
.badge-verified { background: var(--verified-tint); color: var(--verified); }
.badge-attested { border: 1px dashed var(--slate); color: var(--slate); padding: 3px 7px; }
.badge-stale { color: var(--slate); padding: 4px 0; }
.badge-none { background: var(--surface-sunk); color: var(--ink-2); }
.chip {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 13px; line-height: 20px; font-weight: 600;
}

/* Stage colours: fill and the text that sits on it. */
.s0 { --stage-bg: var(--stage-0); --stage-ink: var(--stage-0-ink); }
.s1 { --stage-bg: var(--stage-1); --stage-ink: var(--stage-1-ink); }
.s2 { --stage-bg: var(--stage-2); --stage-ink: var(--stage-2-ink); }
.s3 { --stage-bg: var(--stage-3); --stage-ink: var(--stage-3-ink); }
.chip.s0, .chip.s1, .chip.s2, .chip.s3 { background: var(--stage-bg); color: var(--stage-ink); }

/* ---- Home: product window with the portfolio rollup ------------------------ */

.hero-window { flex: 1 1 520px; min-width: 0; }
.window {
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--night-line); border-radius: var(--radius-lg); overflow: hidden;
  --focus: var(--stage-3);
}
.window-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px;
  padding: 16px 20px; border-bottom: 1px solid var(--hairline);
}
.window-title { display: flex; flex-direction: column; gap: 2px; }
.window-title .finding { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); }
.rollup-scroll { padding: 16px 20px 8px; overflow-x: auto; }
.rollup-grid { min-width: 480px; display: flex; flex-direction: column; gap: 4px; }
.rollup-row { display: grid; grid-template-columns: 92px repeat(5, minmax(0, 1fr)); gap: 4px; align-items: stretch; }
.rollup-cols { font-size: 12px; line-height: 16px; color: var(--slate); font-weight: 500; }
.rollup-company { display: flex; align-items: center; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); }
.cell-wrap { position: relative; display: flex; }
.cell-wrap input { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; }
.cell {
  position: relative; flex: 1; height: 44px; border-radius: var(--radius-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  font: 600 17px/20px var(--font-sans); font-variant-numeric: tabular-nums;
  background: var(--stage-bg); color: var(--stage-ink);
}
.cell-a { background: repeating-linear-gradient(135deg, var(--stage-bg) 0 6px, var(--surface) 6px 9px); }
.cell-a .score { background: var(--stage-bg); padding: 0 6px; border-radius: var(--radius-sm); }
.cell-n { background: var(--surface); box-shadow: inset 0 0 0 1px var(--slate); }
.cell-n .score { color: var(--slate); font-weight: 400; }
.cell-s::after {
  content: ""; position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; border-radius: var(--radius-pill); background: currentColor;
}
.cell-wrap input:checked + .cell { outline: 2px solid var(--ink); outline-offset: 2px; }
.cell-wrap input:focus-visible + .cell { outline: 2px solid var(--focus); outline-offset: 2px; }
.rollup-pending {
  grid-column: span 5; display: flex; align-items: center; justify-content: space-between;
  height: 44px; padding: 0 12px; border-radius: var(--radius-sm);
  background: var(--stage-0); color: var(--stage-0-ink); font-size: 13px; line-height: 20px;
}
.rollup-pending .strong { color: inherit; }
.prov-box {
  margin: 12px 20px 20px; padding: 16px; border: 1px solid var(--hairline); border-radius: var(--radius-md);
  background: var(--paper); display: flex; flex-direction: column; gap: 10px;
}
.prov { display: none; flex-direction: column; gap: 10px; }
.prov-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.prov-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.prov-score { font-size: 32px; line-height: 36px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.prov-source { font-size: 13px; line-height: 20px; color: var(--ink-2); }
.prov-hint { font-size: 12px; line-height: 16px; color: var(--slate); }
.rollup:has(#hm-0-0:checked) .prov-hm-0-0, .rollup:has(#hm-0-1:checked) .prov-hm-0-1,
.rollup:has(#hm-0-2:checked) .prov-hm-0-2, .rollup:has(#hm-0-3:checked) .prov-hm-0-3,
.rollup:has(#hm-0-4:checked) .prov-hm-0-4, .rollup:has(#hm-1-0:checked) .prov-hm-1-0,
.rollup:has(#hm-1-1:checked) .prov-hm-1-1, .rollup:has(#hm-1-2:checked) .prov-hm-1-2,
.rollup:has(#hm-1-3:checked) .prov-hm-1-3, .rollup:has(#hm-1-4:checked) .prov-hm-1-4,
.rollup:has(#hm-2-0:checked) .prov-hm-2-0, .rollup:has(#hm-2-1:checked) .prov-hm-2-1,
.rollup:has(#hm-2-2:checked) .prov-hm-2-2, .rollup:has(#hm-2-3:checked) .prov-hm-2-3,
.rollup:has(#hm-2-4:checked) .prov-hm-2-4, .rollup:has(#hm-3-0:checked) .prov-hm-3-0,
.rollup:has(#hm-3-1:checked) .prov-hm-3-1, .rollup:has(#hm-3-2:checked) .prov-hm-3-2,
.rollup:has(#hm-3-3:checked) .prov-hm-3-3, .rollup:has(#hm-3-4:checked) .prov-hm-3-4 { display: flex; }
/* Browsers without :has() show the default selection's provenance. */
@supports not selector(:has(*)) {
  .prov-hm-0-2 { display: flex; }
  .prov-hint { display: none; }
  /* The panel cannot follow a new selection here, so the cells stay put. */
  .cell { pointer-events: none; cursor: default; }
  .cell-wrap input { visibility: hidden; }
}

/* ---- Home: stage ramp and evidence list ------------------------------------ */

.ramp {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 4px; border-radius: var(--radius-md); overflow: hidden;
}
.ramp-step {
  background: var(--stage-bg); color: var(--stage-ink);
  padding: 28px 24px 32px; min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.ramp-step > div { display: flex; flex-direction: column; gap: 8px; }
.ramp-name { font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 600; }

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split-copy { flex: 1 1 340px; min-width: 0; }
.states {
  flex: 1.4 1 480px; min-width: 0;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md);
}
.state-row {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start;
  padding: 20px 24px; border-bottom: 1px solid var(--hairline);
}
.state-row:last-child { border-bottom: 0; }
.state-row > :first-child { flex: 0 0 150px; }
.state-row > :last-child { flex: 1 1 260px; }

/* Source summary cards. */
.source-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.source-kind { font-size: 13px; color: var(--slate); }
.source-field { display: flex; flex-direction: column; gap: 4px; }
.source-field > :first-child { font-size: 13px; font-weight: 600; color: var(--slate); }
.source-field.reads > :first-child { color: var(--verified); }
.source-field > :last-child { font-size: 14px; line-height: 21px; }
.source-scopes { line-height: 20px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hairline); color: var(--slate); }
.after-grid { margin-top: 24px; font-size: 14px; color: var(--slate); }

/* ---- Product ---------------------------------------------------------------- */

.jump { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.jump a, .jump a:hover {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--night-line); border-radius: var(--radius-md);
  color: var(--on-night); text-decoration: none;
}
.jump a:hover { border-color: var(--night-outline); }
.jump .mono { color: var(--night-link); }
.step-section { display: flex; flex-wrap: wrap; gap: 48px; }
.step-section.align-start { align-items: flex-start; }
.step-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.step-aside { flex: 1.2 1 440px; min-width: 0; }
.sunk { background: var(--surface-sunk); }
.facts { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); margin-top: 8px; list-style: none; padding: 0; }
.facts li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.facts .icon-link { flex: 0 0 auto; }

.panel {
  flex: 1.1 1 460px; min-width: 0; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-popover); overflow: hidden;
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--hairline);
}
.panel-title { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
.panel-steps { list-style: none; margin: 0; padding: 8px 0; }
.panel-steps > li { display: flex; gap: 12px; align-items: center; padding: 10px 20px; }
.panel-steps > li.done > span:last-child { color: var(--slate); }
.panel-steps > li.current {
  flex-direction: column; align-items: stretch; gap: 14px; padding: 14px 20px 18px;
  background: var(--paper); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.panel-current { display: flex; gap: 12px; align-items: center; }
.panel-current > :last-child { font-weight: 600; color: var(--ink); }
.dot {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 24px; height: 24px; border-radius: var(--radius-pill); font-size: 12px;
}
.dot-done { background: var(--stage-3); color: var(--stage-3-ink); }
.dot-current { border: 2px solid var(--ink); color: var(--ink); font-weight: 600; }
.dot-next { border: 1px solid var(--hairline); color: var(--slate); }
.panel-review { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 16px; padding-left: 36px; }
.panel-review > div { display: flex; flex-direction: column; gap: 6px; }
.panel-review .label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--slate); }
.panel-review .label.reads { color: var(--verified); }
.panel-review .text { font-size: 13px; line-height: 20px; }
.panel-scopes { margin-left: 36px; color: var(--slate); }
.panel-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 20px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--slate);
}
.panel-button {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  background: var(--ink); color: var(--paper); border-radius: var(--radius-md); font-weight: 600;
}

.examples .card { padding: 0; gap: 0; overflow: hidden; }
.example-cell {
  position: relative; height: 96px; display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--stage-bg); color: var(--stage-ink);
}
.example-cell.cell-a { background: repeating-linear-gradient(135deg, var(--stage-bg) 0 8px, var(--surface) 8px 12px); }
.example-cell.cell-a .score { padding: 0 10px; }
.example-cell.cell-n { background: var(--surface); box-shadow: inset 0 0 0 1px var(--slate); color: var(--slate); font-weight: 400; }
.example-cell.cell-s::after { top: 12px; right: 12px; width: 8px; height: 8px; }
.example-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.example-body .badge { align-self: flex-start; }

/* ---- Integrations ----------------------------------------------------------- */

.hero-index {
  flex: 0 1 360px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--night-line); border: 1px solid var(--night-line);
  border-radius: var(--radius-md); overflow: hidden;
}
.hero-index a, .hero-index a:hover {
  background: var(--night-raised); padding: 16px; display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: var(--on-night);
}
.hero-index a:hover { background: var(--night-line); }
.hero-index span:first-child { font-size: 12px; color: var(--on-night-3); }
.hero-index span:last-child { font-weight: 600; }
.hero-split.align-end { gap: 48px; align-items: flex-end; }
.hero-split.align-end .hero-copy { flex-basis: 520px; gap: 20px; }

.sources { display: flex; flex-direction: column; gap: 24px; }
.source {
  display: flex; flex-wrap: wrap; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius-md); overflow: hidden;
}
.source-intro {
  flex: 1 1 324px; min-width: 0; padding: 32px; border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 8px;
}
.source-intro p { margin-top: 8px; font-size: 14px; line-height: 21px; }
.source-detail { flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.source-col { padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.source-col.never { background: var(--paper); }
.source-label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--slate); }
.source-label.reads { color: var(--verified); }
.source-perms {
  grid-column: 1 / -1; padding: 16px 32px; border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px;
}
.source-perms > .caption { margin-right: 4px; line-height: inherit; }
.scope { color: var(--ink); background: var(--surface-sunk); padding: 2px 8px; border-radius: var(--radius-sm); }
.planned {
  display: flex; gap: 12px; align-items: center; padding: 20px 24px;
  border: 1px dashed var(--slate); border-radius: var(--radius-md); color: var(--slate);
}

/* ---- Security --------------------------------------------------------------- */

.notice-night {
  align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px;
  border: 1px dashed var(--on-night-3); border-radius: var(--radius-sm); color: var(--on-night-2); font-size: 14px;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.pills a, .pills a:hover {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--night-line); border-radius: var(--radius-pill);
  color: var(--on-night); text-decoration: none; font-size: 14px;
}
.pills a:hover { border-color: var(--night-outline); }
.control {
  display: flex; flex-wrap: wrap; gap: 24px 48px; padding: 48px 0; border-bottom: 1px solid var(--hairline);
}
.control:last-child { border-bottom: 0; }
.control-head { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.control-body { flex: 1.6 1 460px; min-width: 0; }
.control-body.stack { display: flex; flex-direction: column; gap: 16px; }
.rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.rules li { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.rules li:last-child { border-bottom: 0; }
.rules code { color: var(--ink); }
.chain { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding: 4px 0; color: var(--slate); }
.chain-link {
  flex: 1 0 150px; padding: 14px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
}
.chain-link code { font-size: 12px; color: var(--slate); }
.chain-link.latest { background: var(--verified-tint); border-color: var(--verified); }
.chain-link.latest code { color: var(--verified); }
.write-num { font-family: var(--font-mono); font-size: 13px; color: var(--slate); }
.closure {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 4px;
}
.closure-step {
  display: flex; flex-direction: column; gap: 14px; padding: 28px;
  background: var(--night-raised); border-top: 4px solid;
}
/* The canvas's ramp along the closure timeline; fixed, like the band it sits on. */
.closure-step.day-0 { border-top-color: #bfd6ec; }
.closure-step.day-28 { border-top-color: #5b8fc7; }
.closure-step.day-30 { border-top-color: var(--night-link); }
.closure-step .mono { color: var(--night-link); }
.closure-step .h-heading { color: var(--on-night); }

/* ---- Contact ---------------------------------------------------------------- */

.mail-card {
  flex: 1 1 464px; min-width: 0; padding: 32px; background: var(--night-raised);
  border: 1px solid var(--night-line); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 20px;
}
.mail-card > span:first-child { color: var(--night-link); }
.mail-address { font-size: clamp(16px, 1.8vw, 20px); line-height: 28px; color: var(--on-night); word-break: break-all; }
.mail-card .button { align-self: flex-start; }
.mail-note { font-size: 13px; line-height: 20px; color: var(--on-night-3); }
.hero-split.contact { gap: 48px; }
.hero-split.contact .hero-copy { gap: 20px; }

/* ---- Legal pages and 404 ---------------------------------------------------- */

.doc { max-width: 46rem; }
.doc > h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 4.6vw, 56px); line-height: 1.08; color: var(--ink); margin-bottom: 16px; }
.doc > .lede { color: var(--ink-2); margin-bottom: 32px; }
.draft-banner {
  margin-bottom: 32px; padding: 16px 20px; border: 1px dashed var(--slate); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink); font-weight: 600;
}
.draft-banner span { display: block; margin-top: 4px; font-weight: 400; color: var(--ink-2); font-size: 14px; line-height: 21px; }
.prose { padding: 32px 0; border-top: 1px solid var(--hairline); }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 34px; color: var(--ink); margin-bottom: 12px; }
.prose p, .prose ul { margin-bottom: 12px; }
.prose p:last-child, .prose ul:last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; margin: 8px 0 12px; }
.table-wrap table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius-md); font-size: 14px; line-height: 21px;
}
.table-wrap caption { text-align: left; padding-bottom: 8px; font-size: 13px; color: var(--slate); }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--hairline); }
.table-wrap th { color: var(--ink); font-weight: 600; background: var(--surface-sunk); }
.table-wrap tr:last-child td { border-bottom: 0; }

/* ---- Footer ----------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--hairline); }
.site-footer .wrap {
  padding-top: 40px; padding-bottom: 56px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; max-width: 28em; }
.footer-brand > :first-child { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 28px; color: var(--ink); }
.footer-brand > :last-child { font-size: 13px; line-height: 20px; color: var(--slate); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; align-items: flex-start; }

/* ---- Small additions ---------------------------------------------------------- */

.strong-link { font-weight: 600; }
.card-24.source-card { gap: 16px; }
