/* S4 RetrofitBox vendor site. One stylesheet for every page; see docs/vendor-site-contract.md for the component list.
   World: the blueprint sheet. One framed column ruled by hairlines holds every section as cells; the product works
   inside it. Off-white ground, white cells, one violet for actions and the box's own marks, deep indigo panels that
   carry a live pixel mosaic. Geist sets headlines and prose, Geist Mono sets transports, code and cell tags.
   Light first, dark by system preference or data-theme="dark" on <html>. */

:root {
  --bg: #FAFAFA;
  --paper: #FFFFFF;
  --band: #F2F2F5;
  --line: #E7E7EC;
  --line-2: #D3D3DB;
  --ink: #111114;
  --ink-2: #55555F;
  --ink-3: #6E6E78;
  --accent: #4545E5;          /* links, focus, the box's own marks */
  --accent-soft: rgba(69, 69, 229, .07);
  --btn: #4545E5;             /* the one filled action */
  --btn-hover: #3434C9;
  --btn-ink: #FFFFFF;
  --btn-solid: #4545E5;       /* violet that stays violet inside indigo */
  --tile: #F0F0FF;            /* icon tiles */
  --field: #F7F7FF;           /* lavender pixel field */
  --field-cell: rgba(69, 69, 229, .07);
  /* indigo: panels that carry the mosaic, and whole bands set in it */
  --indigo: #1B0E47;
  --indigo-2: #261463;
  --indigo-line: #3A2885;
  --indigo-ink: #FFFFFF;
  --indigo-ink-2: #CFC8F2;
  --indigo-accent: #B4ABFF;
  /* product outcome colours, as in the box UI */
  --o-applied: #1F6B45;
  --o-present: #4A5566;
  --o-remediated: #2B59C3;
  --o-resolved: #6B3FA8;
  --o-manual: #9A4A00;
  --pass: #1F6B45;
  --fail: #B42318;
  --diff-add: #E3F3E8;
  --diff-todo: #FBEEDD;
  --code-bg: #15112B;
  --code-fg: #E2DFF5;
  --code-dim: #9C96BC;
  --rail: #15112B;
  --lift: 0 24px 48px -24px rgba(27, 14, 71, .45), 0 2px 6px rgba(27, 14, 71, .08);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--sans);
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --frame: 1280px;
  --frame-gap: clamp(0px, 2.6vw, 40px);
  --pad: clamp(20px, 4vw, 56px);
  --gutter: var(--pad);
  --r-s: 6px;
  --r-m: 8px;
  --r-l: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C0C10; --paper: #131318; --band: #1A1A21; --line: #26262F; --line-2: #383844;
    --ink: #F1F1F4; --ink-2: #ABABB7; --ink-3: #8F8F9C;
    --accent: #9A9AFF; --accent-soft: rgba(154, 154, 255, .1);
    --btn: #5252F0; --btn-hover: #6464FF; --btn-solid: #5252F0;
    --tile: #1E1E33; --field: #101018; --field-cell: rgba(154, 154, 255, .07);
    --indigo: #140A36; --indigo-2: #1E1050; --indigo-line: #33236F;
    --o-applied: #5BC28A; --o-present: #9AA6B5; --o-remediated: #8FB0FF; --o-resolved: #C3A2EE; --o-manual: #F0A64A;
    --pass: #5BC28A; --fail: #F07A6E; --diff-add: rgba(91, 194, 138, .14); --diff-todo: rgba(240, 166, 74, .14);
    --code-bg: #0E0B1F; --rail: #0E0B1F;
    --lift: 0 24px 48px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .03);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C0C10; --paper: #131318; --band: #1A1A21; --line: #26262F; --line-2: #383844;
  --ink: #F1F1F4; --ink-2: #ABABB7; --ink-3: #8F8F9C;
  --accent: #9A9AFF; --accent-soft: rgba(154, 154, 255, .1);
  --btn: #5252F0; --btn-hover: #6464FF; --btn-solid: #5252F0;
  --tile: #1E1E33; --field: #101018; --field-cell: rgba(154, 154, 255, .07);
  --indigo: #140A36; --indigo-2: #1E1050; --indigo-line: #33236F;
  --o-applied: #5BC28A; --o-present: #9AA6B5; --o-remediated: #8FB0FF; --o-resolved: #C3A2EE; --o-manual: #F0A64A;
  --pass: #5BC28A; --fail: #F07A6E; --diff-add: rgba(91, 194, 138, .14); --diff-todo: rgba(240, 166, 74, .14);
  --code-bg: #0E0B1F; --rail: #0E0B1F;
  --lift: 0 24px 48px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .03);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; scrollbar-color: var(--line-2) var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; caret-color: var(--accent);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 26%, transparent); color: var(--ink); }
[hidden] { display: none !important; }
code, kbd, .mono { font-family: var(--mono); font-size: .86em; }
:not(pre) > code { background: var(--band); border: 1px solid var(--line); padding: .05em .35em; border-radius: var(--r-s); color: var(--ink); }
.num, td, output { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: var(--r-m); }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
.display { font-size: clamp(2.6rem, 3.3vw + 1.1rem, 4.4rem); line-height: 1.03; letter-spacing: -0.038em; }
h1, .h1 { font-size: clamp(2.3rem, 2.6vw + 1.2rem, 3.6rem); line-height: 1.05; letter-spacing: -0.035em; }
h2, .h2 { font-size: clamp(1.9rem, 2vw + 1.1rem, 3rem); line-height: 1.08; }
.h-xl { font-size: clamp(2.3rem, 3vw + 1.1rem, 4rem); line-height: 1.04; letter-spacing: -0.036em; }
h3, .h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
h4, .h4 { font-size: .95rem; line-height: 1.4; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(1.07rem, .4vw + 1rem, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.small { font-size: .875rem; }
p.small { max-width: 58ch; }
dd, li, td { text-wrap: pretty; }
.muted { color: var(--ink-3); }
.ink-2 { color: var(--ink-2); }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin: .3em 0; }
strong { font-weight: 600; color: var(--ink); }
/* a cell tag: Geist Mono, sentence case, names the cell it sits in (never a label above a heading) */
.tag { font: 500 12.5px/1.3 var(--mono); letter-spacing: .01em; color: var(--ink-3); }

/* ---------- the frame: one ruled column holds every section ---------- */
.site-header > .wrap, main > section, .cta-band, .site-footer {
  width: calc(100% - 2 * var(--frame-gap)); max-width: var(--frame); margin-inline: auto;
  border-inline: 1px solid var(--line);
}
main > section + section, .cta-band, .site-footer { border-top: 1px solid var(--line); }
.wrap { width: 100%; padding: 0 var(--pad); }
.section { padding: clamp(64px, 7.5vw, 104px) 0; }
.section.band { background: var(--paper); }
.section.tight { padding: clamp(44px, 5vw, 64px) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head h2 { margin-bottom: 16px; }
.section-head .lede { margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.center { align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.stack > * + * { margin-top: 16px; }
.sticky { position: sticky; top: 96px; }
@media (max-width: 900px) {
  .split, .split.even, .split.flip, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

/* indigo: a panel or band set in deep indigo, which remaps the tokens inside it */
.indigo, .slate {
  --bg: var(--indigo); --paper: var(--indigo-2); --band: var(--indigo-2); --line: var(--indigo-line); --line-2: #4D3A9E;
  --ink: var(--indigo-ink); --ink-2: var(--indigo-ink-2); --ink-3: #B3AADB; --accent: var(--indigo-accent);
  --accent-soft: rgba(180, 171, 255, .12); --btn: #FFFFFF; --btn-hover: #E9E6FF; --btn-ink: #1B0E47;
  --tile: rgba(255, 255, 255, .08);
  background: var(--indigo); color: var(--indigo-ink-2); position: relative; isolation: isolate;
}
.indigo ::selection, .slate ::selection { background: rgba(180, 171, 255, .34); color: #fff; }
/* the mosaic canvas (drawn by site.js) sits under the content of any [data-mosaic] element */
[data-mosaic] { position: relative; isolation: isolate; overflow: hidden; }
[data-mosaic] > canvas.mosaic { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.06rem/1 var(--sans); letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--indigo); display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.brand-mark::after { content: ""; width: 10px; height: 5.5px; border: 2px solid #fff; border-right: 0; border-top: 0; transform: translateY(-1.5px) rotate(-45deg); }
.brand-name b { font-weight: 600; margin-right: .26em; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 12px; flex: 1; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; padding: 8px 12px; border-radius: var(--r-m); }
.nav a:hover { color: var(--ink); background: var(--band); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--band); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--btn-ink); background: var(--btn); }
.nav a.btn-primary:hover { background: var(--btn-hover); }
.theme-toggle, .nav-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-m);
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; flex: none;
}
.theme-toggle:hover, .nav-toggle:hover { color: var(--ink); border-color: var(--line-2); }
.theme-toggle svg, .nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .site-header .wrap { gap: 10px; }
  .nav-toggle { display: inline-grid; margin-left: auto; width: 44px; height: 44px; }
  .theme-toggle { width: 44px; height: 44px; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 4px var(--pad) 20px;
    box-shadow: 0 24px 40px -24px rgba(27, 14, 71, .3); display: none; margin: 0;
  }
  .nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:hover, .nav-links a[aria-current="page"] { background: transparent; }
  .nav-links a[aria-current="page"] { font-weight: 600; }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; min-height: 48px; border-radius: var(--r-m); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: var(--r-m); border: 1px solid transparent; font: 500 .95rem/1 var(--sans); text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--btn); color: var(--btn-ink); box-shadow: 0 1px 2px rgba(27, 14, 71, .16), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-primary:hover { background: var(--btn-hover); color: var(--btn-ink); }
.btn-secondary { background: var(--band); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--line-2); color: var(--ink); }
.indigo .btn-secondary, .slate .btn-secondary { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.indigo .btn-secondary:hover, .slate .btn-secondary:hover { border-color: #fff; }
.btn-quiet { color: var(--accent); padding: 0 4px; min-height: 44px; }
.btn-quiet:hover { text-decoration: underline; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- home hero: copy cell beside an indigo mosaic cell ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: min(calc(100svh - 64px - 104px), 760px); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 6vw, 88px) var(--pad); }
.hero .display { max-width: 13ch; margin: 0 0 24px; }
.hero .lede { margin: 0 0 32px; max-width: 52ch; }
.hero-note { margin: 28px 0 0; display: flex; align-items: baseline; gap: 10px; }
.hero-note::before { content: ""; width: 7px; height: 7px; transform: translateY(-1px); border-radius: 50%; background: var(--o-applied); flex: none; }
.hero-vis { border-left: 1px solid var(--line); display: grid; place-items: center; padding: clamp(40px, 5vw, 72px) clamp(20px, 4vw, 56px); min-height: 520px; }
.hero-stack { position: relative; width: 100%; max-width: 500px; }
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-vis { border-left: 0; border-top: 1px solid var(--line); min-height: 0; padding-block: 56px 64px; }
}

/* queue card: the product's queue, small, in a white card on the mosaic */
.qcard { background: var(--paper); color: var(--ink); border-radius: var(--r-l); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; font-size: 14px; line-height: 1.45; }
.qcard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.qcard-head b { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.qcard-head b::before { content: ""; width: 16px; height: 16px; border-radius: 5px; background: var(--btn-solid, #4545E5); }
.qcard ol { list-style: none; margin: 0; padding: 0; }
.qcard li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.qcard li .mono { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.qcard li > span:nth-child(2) { grid-column: 1; color: var(--ink-3); font-size: 13px; }
.qcard li .chip { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.qcard-gates { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 12px 16px; font-size: 12.5px; color: var(--ink-2); background: var(--band); }
.qcard-gates span { display: inline-flex; align-items: center; gap: 6px; }
.qcard-gates span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pass); }
.qcard-gates span.fail { color: var(--fail); }
.qcard-gates span.fail::before { background: var(--fail); }
.toast {
  position: relative; z-index: 1; width: min(300px, 78%); margin: -10px clamp(-28px, -2vw, -8px) 0 auto;
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start;
  background: var(--paper); color: var(--ink); border-radius: var(--r-l); padding: 12px 14px; font-size: 13px; line-height: 1.4;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
}
.toast i { width: 32px; height: 32px; border-radius: var(--r-m); background: var(--btn-solid, #4545E5); display: grid; place-items: center; }
.toast i::after { content: ""; width: 11px; height: 6px; border: 2px solid #fff; border-right: 0; border-top: 0; transform: translateY(-1.5px) rotate(-45deg); }
.toast b { display: block; font-weight: 600; }
.toast span { color: var(--ink-3); }
.hero-cap { margin: 36px 0 0; color: var(--indigo-ink-2); font: 500 12px/1.4 var(--mono); text-align: center; max-width: none; }
@media (max-width: 520px) {
  .toast { width: auto; margin: 12px 0 0; }
  .hero-cap { margin-top: 24px; }
}
/* the one authored moment: Retrofits arrive in the queue, their gates pass, and a person approves one */
@media (prefers-reduced-motion: no-preference) {
  .qcard { animation: q-in .9s var(--ease) .1s backwards; }
  .qcard li { animation: q-row .7s var(--ease) backwards; }
  .qcard li:nth-child(1) { animation-delay: .45s; }
  .qcard li:nth-child(2) { animation-delay: .7s; }
  .qcard li:nth-child(3) { animation-delay: .95s; }
  .qcard-gates span::before { animation: q-gate .35s var(--ease) backwards; }
  .qcard-gates span:nth-child(1)::before { animation-delay: 1.3s; }
  .qcard-gates span:nth-child(2)::before { animation-delay: 1.5s; }
  .qcard-gates span:nth-child(3)::before { animation-delay: 1.7s; }
  .toast { animation: q-toast .8s var(--ease) 2.1s backwards; }
  @keyframes q-in { from { transform: translateY(28px); opacity: 0; filter: blur(6px); } }
  @keyframes q-row { from { transform: translateY(10px); opacity: 0; } }
  @keyframes q-gate { from { transform: scale(.3); background: var(--line-2); } }
  @keyframes q-toast { from { transform: translateY(18px) scale(.96); opacity: 0; } }
}

/* the queue keeps running after the entrance (site.js): a row arrives as Checking, its gates tick, its outcome settles */
.chip { transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease); }
.chip[data-o="checking"] { color: var(--ink-3); }
.qcard-gates span::before { transition: background-color .25s var(--ease), transform .25s var(--ease); }
.qcard-gates span.wait { color: var(--ink-3); }
.qcard-gates span.wait::before { background: var(--line-2); transform: scale(.7); }
.toast i { transition: background-color .3s var(--ease); }
.toast[data-kind="wait"] i { background: var(--o-manual); }
.toast[data-kind="wait"] i::after { width: 10px; height: 0; border: 0; border-top: 2px solid #fff; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .chip[data-o="checking"]::before { animation: q-pulse 1s ease-in-out infinite alternate; }
  @keyframes q-pulse { to { opacity: .25; } }
}
/* pause control for everything that moves on its own; it sits in the hero's mosaic corner */
.motion-toggle {
  position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(255, 255, 255, .24); border-radius: var(--r-m); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.motion-toggle:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }
.motion-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.motion-toggle::before { content: ""; width: 10px; height: 12px; border-inline: 3px solid currentColor; box-sizing: border-box; }
.motion-toggle[aria-pressed="true"]::before { width: 0; height: 0; border: 6.5px solid transparent; border-left: 10px solid currentColor; border-right: 0; margin-left: 3px; }
.motion-toggle[hidden] { display: none; }

/* inner page hero: copy over a ruled pixel field that fades in from the right */
.page-hero { position: relative; isolation: isolate; padding: clamp(56px, 7vw, 96px) 0 clamp(44px, 5vw, 64px); background: var(--bg); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--field-cell) 1px, transparent 1px), linear-gradient(90deg, var(--field-cell) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%); mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}
.page-hero h1 { margin-bottom: 18px; max-width: 20ch; }
.page-hero .lede { margin: 0; }
.page-hero .btn-row { margin-top: 28px; }
.crumb { display: inline-block; font: 500 12.5px/1.3 var(--mono); color: var(--ink-3); margin-bottom: 20px; text-decoration: none; }
a.crumb:hover { color: var(--accent); text-decoration: underline; }

/* sections whose ruled cells meet the frame's bottom edge */
.section.cells-host { padding-bottom: 0; }
.section.cells-host > .wrap { padding-bottom: clamp(36px, 4vw, 56px); }
.section.cells-host .section-head { margin-bottom: 0; }

/* ---------- technology strip: cells with a role tag, not a logo wall ---------- */
.tech { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.tech li { position: relative; margin: 0; min-height: 104px; display: grid; place-items: center; padding: 26px 16px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.tech li:nth-child(4n) { border-right: 0; }
.tech li:nth-last-child(-n + 4) { border-bottom: 0; }
.tech b { font: 600 1.18rem/1.2 var(--sans); letter-spacing: -0.025em; color: var(--ink); }
.tech .tag { position: absolute; top: 9px; right: 11px; font-size: 11.5px; color: var(--accent); }
@media (max-width: 760px) {
  .tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech li:nth-child(4n) { border-right: 1px solid var(--line); }
  .tech li:nth-child(2n) { border-right: 0; }
  .tech li:nth-last-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .tech li:nth-last-child(-n + 2) { border-bottom: 0; }
  .tech .tag { position: static; display: block; margin-top: 4px; }
  .tech li { display: block; min-height: 0; padding: 20px 12px; }
}

/* ---------- cells: what is done, as a ruled grid that meets the frame ---------- */
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.cells > li { margin: 0; padding: clamp(24px, 3vw, 36px) var(--pad) clamp(28px, 3.4vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cells > li:nth-child(3n) { border-right: 0; }
.cells > li:nth-last-child(-n + 3) { border-bottom: 0; }
.cells p { margin: 18px 0 0; font-size: 1rem; color: var(--ink-2); }
.cells p strong { font-weight: 600; color: var(--ink); }
.ico { width: 40px; height: 40px; border-radius: var(--r-m); background: var(--tile); border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line)); display: grid; place-items: center; color: var(--accent); flex: none; }
.ico svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cells > li:nth-child(3n) { border-right: 1px solid var(--line); }
  .cells > li:nth-child(2n) { border-right: 0; }
  .cells > li:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .cells > li:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .cells { grid-template-columns: minmax(0, 1fr); }
  .cells > li { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .cells > li:last-child { border-bottom: 0 !important; }
}
.cells-foot { padding: 28px var(--pad); border-top: 1px solid var(--line); }

/* ---------- stage: the working review screen on an indigo mosaic ---------- */
.stage { padding: clamp(64px, 7.5vw, 104px) 0 clamp(56px, 6vw, 80px); }
.stage .section-head { margin-bottom: clamp(32px, 4vw, 48px); }
.stage h2 { color: #fff; }
.stage .lede { color: var(--indigo-ink-2); }
.stage figcaption { margin: 22px auto 0; max-width: 64ch; text-align: center; color: var(--indigo-ink-2); font-size: .9rem; }

/* ---------- the review screen: a working reproduction with the demo transports ---------- */
.rs, .ui {
  --bg: #FAFAFA; --paper: #FFFFFF; --band: #F2F2F5; --line: #E7E7EC; --line-2: #D3D3DB;
  --ink: #111114; --ink-2: #55555F; --ink-3: #6E6E78; --accent: #4545E5; --accent-soft: rgba(69, 69, 229, .07);
  --btn: #4545E5; --btn-ink: #fff;
}
.rs {
  display: flex; text-align: left; background: var(--paper); color: var(--ink); border-radius: var(--r-l);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; font-size: 14px; line-height: 1.5;
}
:root[data-theme="dark"] :is(.rs, .ui) {
  --bg: #0C0C10; --paper: #131318; --band: #1A1A21; --line: #26262F; --line-2: #383844;
  --ink: #F1F1F4; --ink-2: #ABABB7; --ink-3: #8F8F9C; --accent: #9A9AFF; --accent-soft: rgba(154, 154, 255, .1); --btn: #5252F0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.rs, .ui) {
    --bg: #0C0C10; --paper: #131318; --band: #1A1A21; --line: #26262F; --line-2: #383844;
    --ink: #F1F1F4; --ink-2: #ABABB7; --ink-3: #8F8F9C; --accent: #9A9AFF; --accent-soft: rgba(154, 154, 255, .1); --btn: #5252F0;
  }
}
.rs-rail { flex: 0 0 180px; background: var(--rail); color: #CFC8F2; padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.rs-rail b { display: flex; align-items: center; gap: 8px; margin: 0 8px 16px; font: 600 15px/1 var(--sans); color: #fff; letter-spacing: -0.01em; }
.rs-rail b i { width: 18px; height: 18px; border-radius: 5px; background: #4545E5; }
.rs-rail span { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: var(--r-s); }
.rs-rail span.on { background: rgba(255, 255, 255, .09); color: #fff; }
.rs-rail em { font-style: normal; color: #9C96BC; font-variant-numeric: tabular-nums; }
.rs-rail small { margin: auto 10px 0; padding-top: 18px; font: 500 11.5px/1.3 var(--mono); color: #9C96BC; }
.rs-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
/* every Retrofit shares one cell, so the screen keeps its height and the queue never moves under the pointer */
.rs-panels { display: grid; flex: 1 1 auto; }
.rs-panels > [role="tabpanel"] { grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0; }
.rs-panels > [role="tabpanel"][hidden] { display: flex !important; visibility: hidden; }
.rs-panels > [role="tabpanel"]:focus-visible { outline-offset: -3px; }
.rs-head { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rs-id { margin: 0; font: 500 14px/1.3 var(--mono); color: var(--ink); }
.rs-obj { margin: 0; color: var(--ink-3); font-size: 13.5px; }
.rs-state { font: 500 12px/1 var(--sans); padding: 5px 10px; border-radius: 999px; background: var(--band); color: var(--ink-2); border: 1px solid var(--line); }
.rs-gates { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-2); }
.rs-gates span { display: inline-flex; align-items: center; gap: 6px; }
.rs-gates span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pass); }
.rs-gates span.fail { color: var(--fail); font-weight: 600; }
.rs-gates span.fail::before { background: var(--fail); }
.rs-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 248px; flex: 1 1 auto; }
.rs-pane { min-width: 0; }
.rs-pane + .rs-pane { border-left: 1px solid var(--line); }
.rs-label { margin: 0; padding: 9px 14px; font: 500 12px/1.3 var(--mono); color: var(--ink-3); border-bottom: 1px solid var(--line); }
.rs-code { padding: 10px 0 14px; font: 12.5px/1.95 var(--mono); color: var(--ink); overflow-x: auto; }
.rs-code { counter-reset: ln; }
.rs-q .rs-label { border-bottom: 0; }
.rs-code > span { display: grid; grid-template-columns: 2.4ch minmax(max-content, 1fr) auto; gap: 0 12px; padding: 0 14px 0 10px; white-space: pre; min-width: max-content; counter-increment: ln; }
.rs-code > span > i { position: sticky; right: 0; padding: 0 10px 0 8px; margin-right: -10px; background: linear-gradient(var(--row, transparent), var(--row, transparent)) var(--paper); }
.rs-code > span::before { content: counter(ln); color: var(--ink-3); opacity: .7; text-align: right; }
.rs-code .c { color: var(--ink-3); }
.rs-code .add { --row: var(--diff-add); }
.rs-code :is(.add, .todo) { background: linear-gradient(var(--row), var(--row)) no-repeat 0 0 / 100% 100%; }
.rs-code .todo { --row: var(--diff-todo); }
.rs-code i { font: 700 11px/1.95 var(--mono); font-style: normal; color: var(--o-applied); }
.rs-code .todo i { color: var(--o-manual); }
.rs-aside { border-left: 1px solid var(--line); background: var(--band); padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.rs-aside > p { margin: 0; }
.rs-aside h3 { font: 600 13px/1.3 var(--sans); letter-spacing: 0; }
.rs-find { border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px 11px; background: var(--paper); }
.rs-find b { display: block; font-weight: 600; color: var(--ink); }
.rs-find b em { font: 700 11px var(--mono); font-style: normal; color: var(--accent); margin-right: 6px; }
.rs-find.todo b em { color: var(--o-manual); }
.rs-find p { margin: 3px 0 0; color: var(--ink-3); }
.rs-who { color: var(--ink-3); }
.rs-acts { display: grid; gap: 8px; margin-top: auto; }
.rs-btn { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: var(--r-m); font-weight: 500; background: var(--btn); color: #fff; }
.rs-btn.ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); }
.rs-btn.off { background: var(--line); color: var(--ink-3); }
.rs-q { border-top: 1px solid var(--line); }
.rs-q [role="tab"] {
  display: grid; grid-template-columns: 128px minmax(0, 1fr) 150px 64px; gap: 12px; align-items: center; width: 100%;
  padding: 11px 20px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink);
  font: 400 13.5px/1.4 var(--sans); text-align: left; cursor: pointer; transition: background-color .15s;
}
.rs-q [role="tab"]:hover { background: var(--band); }
.rs-q [role="tab"][aria-selected="true"] { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.rs-q [role="tab"][aria-selected="true"] .rs-t { font-weight: 600; }
.rs-q [role="tab"]:focus-visible { outline-offset: -3px; border-radius: 0; }
.rs-q .rs-t { font: 500 13px var(--mono); }
.rs-q .rs-st { color: var(--ink-3); }
.rs-o { font-weight: 600; }
.rs-o[data-o="applied"] { color: var(--o-applied); }
.rs-o[data-o="present"] { color: var(--o-present); }
.rs-o[data-o="remediated"] { color: var(--o-remediated); }
.rs-o[data-o="manual"] { color: var(--o-manual); }
@media (max-width: 1240px) { .rs-rail { display: none; } }
@media (max-width: 900px) {
  .rs-body { grid-template-columns: minmax(0, 1fr) 236px; }
  .rs-pane { grid-column: 1; }
  .rs-pane + .rs-pane { border-left: 0; border-top: 1px solid var(--line); }
  .rs-aside { grid-column: 2; grid-row: 1 / span 3; }
  .rs-body { grid-template-rows: auto auto 1fr; }
  .rs-q { order: -1; border-top: 0; border-bottom: 1px solid var(--line); }
  .rs-q [role="tab"]:first-of-type { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .rs-body { grid-template-columns: minmax(0, 1fr); }
  .rs-aside { grid-column: 1; grid-row: auto; border-left: 0; border-top: 1px solid var(--line); }
  .rs-gates { margin-left: 0; width: 100%; }
  .rs-head { padding: 12px 14px; }
  .rs-q [role="tab"] { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 11px 14px; }
  .rs-q [role="tab"] > :nth-child(2) { grid-row: 2; grid-column: 1 / -1; color: var(--ink-2); }
  .rs-q .rs-st { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .rs-panels > [role="tabpanel"]:not([hidden]) { animation: rs-swap .4s var(--ease); }
  @keyframes rs-swap { from { transform: translateY(6px); opacity: .4; } }
  .rs-panels > [role="tabpanel"]:not([hidden]) .rs-gates span::before { animation: q-gate .3s var(--ease) backwards; }
  .rs-panels > [role="tabpanel"]:not([hidden]) .rs-gates span:nth-child(2)::before { animation-delay: .18s; }
  .rs-panels > [role="tabpanel"]:not([hidden]) .rs-gates span:nth-child(3)::before { animation-delay: .36s; }
}

/* ---------- platform rows: an exclusive accordion, copy beside its visual ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:last-child { border-bottom: 0; }
.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 12px var(--pad);
  color: var(--ink-2); transition: background-color .15s, color .15s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: var(--paper); color: var(--ink); }
.acc-title { margin: 0; font: 500 clamp(1.05rem, .5vw + .95rem, 1.25rem)/1.3 var(--sans); letter-spacing: -0.015em; color: var(--ink); }
.acc summary .ico { width: 36px; height: 36px; }
.acc summary .ico svg { width: 18px; height: 18px; }
.acc summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease); opacity: .6; }
.acc details[open] > summary { color: var(--ink); background: var(--paper); border-bottom: 1px solid var(--line); }
.acc details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.acc details[open] > summary .ico { background: var(--btn-solid, #4545E5); border-color: transparent; color: #fff; }
.acc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.acc-copy { padding: clamp(36px, 5vw, 64px) var(--pad); display: flex; flex-direction: column; justify-content: center; }
.acc-copy .acc-lede { margin: 0 0 4px; font-size: clamp(1.1rem, .5vw + 1rem, 1.3rem); line-height: 1.5; color: var(--ink); max-width: 44ch; }
.acc-copy .btn-row { margin-top: 28px; }
.acc-copy ul.ticks { list-style: none; padding: 0; margin: 8px 0 0; }
.acc-copy ul.ticks li { position: relative; padding-left: 28px; margin: 10px 0; font-size: .98rem; }
.acc-copy ul.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 5px; background: var(--tile); border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); }
.acc-copy ul.ticks li::after { content: ""; position: absolute; left: 5.5px; top: calc(.2em + 6px); width: 7px; height: 4px; border: 1.75px solid var(--accent); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.acc-vis { background: var(--field); border-left: 1px solid var(--line); padding: clamp(32px, 4.5vw, 56px) clamp(20px, 4vw, 52px); display: grid; align-content: center; }
@media (max-width: 960px) {
  .acc-body { grid-template-columns: minmax(0, 1fr); }
  .acc-vis { border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: no-preference) {
  .acc details[open] .acc-copy > * { animation: acc-in .6s var(--ease) backwards; }
  .acc details[open] .acc-copy > :nth-child(2) { animation-delay: .05s; }
  .acc details[open] .acc-copy > :nth-child(3) { animation-delay: .1s; }
  .acc details[open] .acc-copy > :nth-child(4) { animation-delay: .15s; }
  .acc details[open] .acc-vis > * { animation: acc-in .7s var(--ease) .08s backwards; }
  @keyframes acc-in { from { transform: translateY(10px); opacity: 0; } }
}
/* a white card that sits on a field */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: 0 18px 40px -26px rgba(27, 14, 71, .3); }
.card + .card { margin-top: 16px; }

/* ---------- air gap diagram: who can reach what (vertical, on a field) ---------- */
.agv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 0 18px; align-items: center; }
.agv-node { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 14px 16px; box-shadow: 0 14px 30px -22px rgba(27, 14, 71, .35); }
.agv-node b { display: block; font: 600 1rem/1.25 var(--sans); color: var(--ink); letter-spacing: -0.015em; }
.agv-node span { display: block; margin-top: 3px; font-size: .84rem; color: var(--ink-3); line-height: 1.4; }
.agv-node.box { border: 1.5px solid var(--accent); box-shadow: 0 14px 30px -22px rgba(27, 14, 71, .35); }
.agv-node.box b::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--btn-solid, #4545E5); margin-right: 8px; vertical-align: -1px; }
.agv-node.model { border: 1.5px dashed var(--accent); background: color-mix(in srgb, var(--paper) 70%, transparent); box-shadow: none; }
.agv-arr { grid-column: 1; display: flex; align-items: center; gap: 12px; padding: 6px 0 6px 28px; font: 500 12px/1.35 var(--mono); color: var(--ink-3); }
.agv-arr::before { content: ""; flex: none; width: 2px; height: 34px; background: linear-gradient(var(--ink-3), var(--ink-3)) top / 2px calc(100% - 7px) no-repeat; position: relative; }
.agv-arr { position: relative; }
.agv-arr::after { content: ""; position: absolute; left: 24px; bottom: 6px; border: 5px solid transparent; border-top: 7px solid var(--ink-3); border-bottom: 0; }
.agv-c1 { grid-column: 1; }
.agv-link { grid-column: 2; grid-row: 3; position: relative; }
.agv-link::before { content: ""; position: absolute; right: 100%; top: 50%; width: 18px; border-top: 1.5px dashed var(--accent); }
.agv-no { grid-column: 2; grid-row: 4 / span 2; align-self: start; margin: 10px 0 0; display: grid; gap: 6px; }
.agv-no span { display: block; font: 500 12px/1.3 var(--mono); color: var(--accent); border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); border-radius: var(--r-m); padding: 7px 10px; background: color-mix(in srgb, var(--paper) 60%, transparent); }
@media (max-width: 520px) {
  .agv { grid-template-columns: minmax(0, 1fr); }
  .agv > * { grid-column: 1 !important; grid-row: auto !important; }
  .agv-link { margin-top: 14px; }
  .agv-link::before { display: none; }
}

/* points: a short heading over a paragraph, under a rule */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.points > li { margin: 0; padding: 22px 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.points h3 { margin-bottom: 8px; }
.points p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* done-list (inner pages): the same cells, boxed */
.done { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.done > li { margin: 0; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.done h3 { margin-bottom: 8px; }
.done p { margin: 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 900px) { .done { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .done { grid-template-columns: minmax(0, 1fr); } }

/* works with (legacy typeset list) */
.works-list { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; }
.works-list > p { margin: 0; font-size: .92rem; color: var(--ink-3); }
.works-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.works-list li { margin: 0; font: 600 1.05rem/1.3 var(--sans); color: var(--ink-2); white-space: nowrap; letter-spacing: -0.02em; }

/* proof: one figure per card, each with its caveat */
.proof { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(20px, 2.6vw, 28px); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 40px -26px rgba(27, 14, 71, .3); }
.proof + .proof { margin-top: 16px; }
.grid-2 > .proof + .proof { margin-top: 0; }
.proof b { font: 500 clamp(2.4rem, 3.4vw, 3.4rem)/1 var(--sans); letter-spacing: -0.045em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.proof p { margin: 0; font-weight: 500; font-size: 1rem; color: var(--ink); }
.proof small { color: var(--ink-3); font-size: .85rem; max-width: 56ch; }
.proof .obar { margin-top: 6px; }
.olegend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .84rem; color: var(--ink-2); }
.olegend li { display: flex; align-items: center; gap: 6px; margin: 0; }
.olegend li[data-o]::before { content: ""; width: 9px; height: 9px; border-radius: 2px; }
.olegend [data-o="applied"]::before { background: var(--o-applied); }
.olegend [data-o="present"]::before { background: var(--o-present); }
.olegend [data-o="remediated"]::before { background: var(--o-remediated); }
.olegend [data-o="manual"]::before { background: var(--o-manual); }
.olegend .of { color: var(--ink-3); }

/* security points: rows in a card */
.sec-list { list-style: none; margin: 0; padding: 0; }
.sec-list li { position: relative; margin: 0; padding: 14px 18px 14px 50px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .94rem; }
.sec-list li:first-child { border-top: 0; }
.sec-list li::before { content: ""; position: absolute; left: 18px; top: 17px; width: 18px; height: 18px; border-radius: 5px; background: color-mix(in srgb, var(--o-applied) 14%, transparent); }
.sec-list li::after { content: ""; position: absolute; left: 23.5px; top: 23px; width: 7px; height: 4px; border: 1.75px solid var(--o-applied); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.sec-list strong { display: block; color: var(--ink); font: 600 .98rem/1.35 var(--sans); letter-spacing: -0.01em; margin-bottom: 2px; }
.sec-list li.open { background: color-mix(in srgb, var(--o-manual) 7%, transparent); }
.sec-list li.open::before { background: color-mix(in srgb, var(--o-manual) 16%, transparent); }
.sec-list li.open::after { width: 8px; height: 0; border: 0; border-top: 1.75px solid var(--o-manual); transform: none; left: 23px; top: 25.5px; }

/* ---------- outcome chips and status tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; font: 500 .78rem/1 var(--sans); padding: 6px 10px 6px 9px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); white-space: nowrap; background: color-mix(in srgb, currentColor 6%, transparent);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip[data-o="applied"] { color: var(--o-applied); }
.chip[data-o="present"] { color: var(--o-present); }
.chip[data-o="remediated"] { color: var(--o-remediated); }
.chip[data-o="resolved"] { color: var(--o-resolved); }
.chip[data-o="manual"] { color: var(--o-manual); }
.chip[data-o="pass"] { color: var(--pass); }
.chip[data-o="fail"] { color: var(--fail); }
.status { display: inline-block; font: 500 11.5px/1 var(--mono); padding: 5px 8px; border-radius: var(--r-s); white-space: nowrap; vertical-align: middle; letter-spacing: .01em; }
.status-now { background: color-mix(in srgb, var(--o-applied) 12%, transparent); color: var(--o-applied); }
.status-road { background: transparent; color: var(--ink-2); border: 1px dashed var(--line-2); padding: 4px 7px; }

/* outcome legend: a definition list with colour keys */
.outcomes { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.outcomes > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.outcomes dt { margin: 0; }
.outcomes dd { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .outcomes > div { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* stacked outcome bar */
.obar { display: flex; height: 10px; border-radius: 3px; overflow: hidden; gap: 2px; background: var(--line); }
.obar span { display: block; height: 100%; }
.obar [data-o="applied"] { background: var(--o-applied); }
.obar [data-o="present"] { background: var(--o-present); }
.obar [data-o="remediated"] { background: var(--o-remediated); }
.obar [data-o="resolved"] { background: var(--o-resolved); }
.obar [data-o="manual"] { background: var(--o-manual); }

/* ---------- steps (only for real sequences) ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; margin: 0; padding: 22px 0; border-top: 1px solid var(--line); }
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before {
  content: counter(step); width: 36px; height: 36px; border-radius: var(--r-m); display: grid; place-items: center;
  background: var(--tile); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); font: 500 .9rem/1 var(--mono);
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-2); margin: 0; }
.steps.across { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.steps.across > li { grid-template-columns: minmax(0, 1fr); border-top: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 20px 24px; gap: 14px; }
@media (max-width: 1000px) {
  .steps.across { grid-template-columns: minmax(0, 1fr); border: 0; }
  .steps.across > li { grid-template-columns: 52px minmax(0, 1fr); border: 0; border-top: 1px solid var(--line); padding: 22px 0; gap: 16px; }
  .steps.across > li:last-child { border-bottom: 1px solid var(--line); }
}

/* ---------- feature list: ruled cells ---------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--paper); }
.features > li { margin: 0; padding: 22px 24px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features h3 { font-size: 1.08rem; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.features p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.features.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .features, .features.three { grid-template-columns: minmax(0, 1fr); } }

/* panel: the one card style, for things that are objects (a plan, a form, a quote) */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(22px, 3vw, 32px); }
.section.band .panel { background: var(--bg); }
.panel.accent { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 18px 40px -30px rgba(27, 14, 71, .4); }
.panel h3 { margin-bottom: 10px; }

/* key facts: definition list */
.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: minmax(110px, 2fr) minmax(0, 5fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts > div:first-child { border-top: 1px solid var(--line); }
.facts dt { font: 500 12.5px/1.6 var(--mono); color: var(--ink); padding-top: 2px; }
.facts dd { margin: 0; color: var(--ink-2); }
.card .facts > div { padding: 14px 18px; }
.card .facts > div:first-child { border-top: 0; }
.card .facts > div:last-child { border-bottom: 0; }

/* stat: a figure with its context, always with the source beside it */
.stat { display: grid; gap: 6px; }
.stat b { font: 500 clamp(2.1rem, 3.2vw, 2.75rem)/1 var(--sans); letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); font-size: .95rem; }
.stat small { color: var(--ink-3); font-size: .82rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--paper); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
@media (max-width: 640px) { .table-wrap table:has(tr > :nth-child(3)) { min-width: 640px; } }
caption { text-align: left; padding: 14px 16px 0; color: var(--ink-3); font-size: .875rem; caption-side: top; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
td { color: var(--ink-2); }
th { font: 500 12.5px/1.4 var(--mono); color: var(--ink-2); background: var(--band); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td .mono, td code { white-space: nowrap; }
td.num, th.num { text-align: right; }

/* ---------- code block ---------- */
pre.code { background: var(--code-bg); color: var(--code-fg); font: 13px/1.65 var(--mono); padding: 18px 20px; border-radius: var(--r-l); overflow-x: auto; margin: 0; }
pre.code .del, pre.code .add { display: inline-block; min-width: calc(100% + 40px); margin: 0 -20px; padding: 0 20px; }
pre.code .del { background: rgba(240, 122, 110, .16); color: #F6C4BE; }
pre.code .add { background: rgba(91, 194, 138, .17); color: #C2EBD3; }
pre.code .c { color: var(--code-dim); }

/* ---------- screenshots ---------- */
.shot { margin: 0; }
.shot-frame { border-radius: var(--r-l); overflow: hidden; background: var(--indigo); box-shadow: var(--lift); border: 1px solid var(--line-2); }
.shot-bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: var(--indigo-2); border-bottom: 1px solid var(--indigo-line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #4D3A9E; }
.shot-bar span { margin-left: 10px; color: #CFC8F2; font: 12px/1 var(--mono); }
.shot img { width: 100%; height: auto; }
.shot figcaption { margin-top: 14px; color: var(--ink-3); font-size: .9rem; max-width: 60ch; }
.shot-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 900px) { .shot-pair { grid-template-columns: minmax(0, 1fr); } }

/* tabs for the product tour (progressive enhancement: without JS every panel shows) */
.tour-tabs { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-bottom: 20px; padding: 4px; border: 1px solid var(--line); border-radius: calc(var(--r-m) + 4px); background: var(--paper); }
.tour-tabs button { font: 500 .92rem/1 var(--sans); color: var(--ink-2); background: none; border: 0; padding: 12px 14px; min-height: 44px; cursor: pointer; border-radius: var(--r-m); }
.tour-tabs button:hover { color: var(--ink); background: var(--band); }
.tour-tabs button[aria-selected="true"] { color: var(--btn-ink); background: var(--btn); }

/* ---------- callout ---------- */
.callout { border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); background: var(--accent-soft); padding: 16px 20px; border-radius: var(--r-m); color: var(--ink); }
.callout p { margin: 0; max-width: 64ch; }
.callout.warn { border-color: color-mix(in srgb, var(--o-manual) 35%, var(--line)); background: color-mix(in srgb, var(--o-manual) 8%, transparent); }

/* ---------- checklist ---------- */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin: 10px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 18px; height: 18px; border-radius: 5px; background: color-mix(in srgb, var(--o-applied) 14%, transparent); }
.checks li::after { content: ""; position: absolute; left: 5.5px; top: calc(.25em + 6px); width: 7px; height: 4px; border: 1.75px solid var(--o-applied); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.checks.no li::before { background: color-mix(in srgb, var(--fail) 12%, transparent); }
.checks.no li::after { width: 8px; height: 0; border: 0; border-top: 1.75px solid var(--fail); transform: none; left: 5px; top: calc(.25em + 8.5px); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 52px 20px 0; min-height: 44px; position: relative; font: 500 1.08rem/1.35 var(--sans); letter-spacing: -0.015em; color: var(--ink); }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; position: absolute; right: 0; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--paper); }
.faq summary::after {
  content: ""; position: absolute; right: 9px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat; }
.faq details > div, .faq details > p { padding: 0 52px 22px 0; margin: 0; color: var(--ink-2); max-width: 64ch; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-size: .92rem; font-weight: 500; color: var(--ink); }
.field .hint { font-size: .85rem; color: var(--ink-3); }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-m); padding: 11px 13px; width: 100%; min-height: 48px; transition: border-color .15s, box-shadow .15s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--fail); }
.field ::placeholder { color: var(--ink-3); opacity: 1; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--paper); font-weight: 500; cursor: pointer; }
.radios label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radios input { accent-color: var(--btn); margin: 0; width: 18px; height: 18px; flex: none; }
.radios input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: .85rem; color: var(--ink-3); }
.form-status { padding: 14px 16px; border-radius: var(--r-m); border: 1px solid currentColor; }
.form-status.ok { background: color-mix(in srgb, var(--o-applied) 11%, transparent); color: var(--ink); border-color: color-mix(in srgb, var(--o-applied) 40%, transparent); }
.form-status.err { background: color-mix(in srgb, var(--fail) 11%, transparent); color: var(--ink); border-color: color-mix(in srgb, var(--fail) 40%, transparent); }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--paper); }
.calc-inputs { padding: clamp(22px, 3vw, 32px); display: grid; gap: 20px; align-content: start; }
.calc-out {
  --ink: var(--indigo-ink); --ink-2: var(--indigo-ink-2); --ink-3: #B3AADB; --line: var(--indigo-line);
  padding: clamp(22px, 3vw, 32px); background: var(--indigo); color: var(--indigo-ink); display: grid; gap: 22px; align-content: start;
}
.calc-out hr { border: 0; border-top: 1px solid var(--indigo-line); margin: 0; }
.range { display: grid; gap: 8px; }
.range-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.range-head label { font-weight: 500; font-size: .95rem; color: var(--ink); }
.range-head output { font: 500 1rem/1 var(--mono); white-space: nowrap; color: var(--ink); }
.range input[type="range"] { width: 100%; accent-color: var(--btn); min-height: 28px; }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CTA band: the close, on the indigo mosaic ---------- */
.cta-band { padding: clamp(80px, 10vw, 136px) 0; text-align: center; }
.cta-band h2 { font-size: clamp(2.2rem, 3.4vw + .9rem, 3.75rem); line-height: 1.04; letter-spacing: -0.038em; max-width: 17ch; margin: 0 auto 18px; color: #fff; }
.cta-band p { font-size: clamp(1.03rem, .4vw + .95rem, 1.15rem); color: var(--indigo-ink-2); max-width: 56ch; margin: 0 auto; }
.cta-band .btn-row { justify-content: center; margin-top: 32px; }

/* ---------- footer ---------- */
.site-footer { padding: 56px 0 0; background: var(--bg); font-size: .92rem; color: var(--ink-2); overflow: hidden; container-type: inline-size; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h4 { font: 500 12.5px/1.3 var(--mono); margin-bottom: 12px; color: var(--ink-3); letter-spacing: .01em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 2px 0; }
.footer-grid a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-grid .brand { margin-bottom: 14px; color: var(--ink); }
.footer-legal { margin: 40px calc(-1 * var(--pad)) 0; padding: 20px var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-legal p { margin: 0; max-width: 82ch; }
.footer-mark {
  margin: 0; max-width: none; padding: 0 var(--pad); text-align: center; white-space: nowrap; user-select: none;
  font: 500 18.4cqi/1 var(--sans); letter-spacing: -0.055em; color: transparent; -webkit-text-stroke: 1px var(--line-2);
  transform: translateY(14%); margin-top: -2%;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } .footer-grid a { min-height: 44px; } }

/* ---------- diagram (inline SVG) ---------- */
.diagram { width: 100%; height: auto; }
.diagram .box { fill: var(--paper); stroke: var(--line-2); stroke-width: 1.5; }
.diagram .box.hi { stroke: var(--accent); stroke-width: 2; }
.diagram .box.sap { fill: var(--band); }
.diagram .t { fill: var(--ink); font: 600 15px var(--sans); }
.diagram .s { fill: var(--ink-3); font: 400 12.5px var(--sans); }
.diagram .m { fill: var(--ink-2); font: 400 12px var(--mono); }
.diagram .wire { stroke: var(--ink-3); stroke-width: 1.5; fill: none; }
.diagram .wire.hi { stroke: var(--accent); stroke-width: 2; }
.diagram .wire.dash { stroke-dasharray: 5 5; }
.diagram .arrow { fill: var(--ink-3); }
.diagram .arrow.hi { fill: var(--accent); }
.diagram .zone { fill: none; stroke: var(--line-2); stroke-dasharray: 4 6; }
.diagram .zl { fill: var(--ink-3); font: 500 12px var(--mono); }

/* print: buyers print vendor pages for bid reviews */
@media print {
  .site-header, .cta-band, .nav-toggle, .theme-toggle, .tour-tabs, .footer-mark, canvas.mosaic, .hero-vis { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  main > section, .site-footer { border: 0 !important; width: auto; }
  .indigo, .slate, .stage { background: #fff !important; color: #000 !important; }
  .section { padding: 24px 0; }
  .shot-frame, .rs, .card, .proof { box-shadow: none; animation: none; }
  a { color: inherit; }
}

/* Motion beyond the hero. html.motion is set by site.js only when reduced motion is off, so without it (or without
   script) everything below is already in its finished state. */
.btn { transition: background-color .15s, border-color .15s, color .15s, transform .12s var(--ease); }
.btn:active { transform: scale(.97); }
.cells li .ico { transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.cells li:hover .ico { background: var(--btn-solid, #4545E5); border-color: transparent; color: #fff; }
.motion .tech[data-reveal] > * { opacity: 0; filter: blur(6px); }
.motion .tech[data-reveal].in > * { opacity: 1; filter: none; transition: opacity .7s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.motion .cells[data-reveal] > * { opacity: 0; transform: translateY(16px); }
.motion .cells[data-reveal].in > * { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.motion .cells[data-reveal].in .ico svg * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + .25s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* the review screen writes the rewritten lines in, one after another, then names the rule beside each */
.motion .rs.in [role="tabpanel"]:not([hidden]) .rs-code :is(.add, .todo) { animation: rs-wipe .6s var(--ease) backwards; animation-delay: calc(.2s + var(--n) * 60ms); }
.motion .rs.in [role="tabpanel"]:not([hidden]) .rs-code :is(.add, .todo) > i { animation: rs-tag .35s ease-out backwards; animation-delay: calc(.45s + var(--n) * 60ms); }
@keyframes rs-wipe { from { background-size: 0% 100%; } }
@keyframes rs-tag { from { opacity: 0; } }
/* the footer wordmark's outline arrives lit violet and settles to the hairline grey, once */
.motion .footer-mark.in { animation: mark-light 2.4s var(--ease) .2s backwards; }
@keyframes mark-light { from { -webkit-text-stroke-color: var(--accent); } }
@media (prefers-reduced-motion: reduce) {
  /* state changes stay legible as a short crossfade, with no movement */
  .rs-panels > [role="tabpanel"]:not([hidden]) { animation: rs-fade .2s ease-out; }
  @keyframes rs-fade { from { opacity: .3; } }
  .btn:active { transform: none; }
}
@media print {
  .motion [data-reveal] > * { opacity: 1 !important; filter: none !important; transform: none !important; }
  .motion-toggle { display: none !important; }
}
