/* Switzer by Indian Type Foundry, from Fontshare (ITF Free Font License), hosted with the site so no visitor data goes to a font CDN. */
@font-face { font-family: "Switzer"; src: url("fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* House Style site. Plain CSS, no build step. Tokens first, then page, then interface fragments ([data-ui]). */

:root {
  color-scheme: light;
  --bg: #f7f9fa;
  --surface: #ecf0f2;
  --surface-2: #e1e8eb;
  --ink: #1f3038;
  --muted: #55646b;
  --accent: #0d7480;
  --accent-hover: #0a5f69;
  --accent-ink: #ffffff;
  --field: #0d7480;          /* the closing field */
  --field-ink: #ffffff;

  /* interface fragments */
  --ui-paper: #ffffff;
  --ui-chrome: #f1f4f5;
  --ui-line: #d3dbdf;
  --ui-ink: #1c2b32;
  --ui-muted: #5b6970;
  --ui-select: #e3f1f3;
  --ui-btn: #ffffff;
  --del: #b3261e;
  --ins: #0d7480;
  --err: #c62828;
  --warn: #a35f00;
  --warn-mark: #e0a100;
  --sugg: #2a6bb8;

  /* chart series (validated with the dataviz validator, light) */
  --s1: #008c9e;
  --s2: #d4682b;
  --s3: #2a78d6;
  --grid: #dfe6e9;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.875rem, 1.3rem + 2.4vw, 3.25rem);
  --step-display: clamp(1.8rem, 0.4rem + 5.8vw, 4.75rem);

  --margin: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --gap-section: clamp(96px, 12vw, 200px);
  --radius: 6px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Switzer", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ui-font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #10191e;
    --surface: #17242b;
    --surface-2: #203039;
    --ink: #e4ebee;
    --muted: #a5b5bc;
    --accent: #5cc3ce;
    --accent-hover: #86d5dd;
    --accent-ink: #0b1a1f;
    --field: #0e4f57;
    --field-ink: #f2f8f9;
    --ui-paper: #1b2930;
    --ui-chrome: #16222a;
    --ui-line: #34474f;
    --ui-ink: #e2eaed;
    --ui-muted: #a2b2b9;
    --ui-select: #1f3b42;
    --ui-btn: #22333b;
    --del: #ff8a80;
    --ins: #5cc3ce;
    --err: #ff7b72;
    --warn: #f0b443;
    --warn-mark: #f0b443;
    --sugg: #7fb3f0;
    --s1: #1aa3b0;
    --s2: #d95926;
    --s3: #4b8fe6;
    --grid: #2a3a42;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10191e; --surface: #17242b; --surface-2: #203039; --ink: #e4ebee; --muted: #a5b5bc;
  --accent: #5cc3ce; --accent-hover: #86d5dd; --accent-ink: #0b1a1f; --field: #0e4f57; --field-ink: #f2f8f9;
  --ui-paper: #1b2930; --ui-chrome: #16222a; --ui-line: #34474f; --ui-ink: #e2eaed; --ui-muted: #a2b2b9;
  --ui-select: #1f3b42; --ui-btn: #22333b; --del: #ff8a80; --ins: #5cc3ce; --err: #ff7b72; --warn: #f0b443;
  --warn-mark: #f0b443; --sugg: #7fb3f0; --s1: #1aa3b0; --s2: #d95926; --s3: #4b8fe6; --grid: #2a3a42;
}

/* ---- reset and base ------------------------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ol, ul, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
a { color: inherit; text-underline-offset: 0.18em; 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: var(--accent); color: var(--accent-ink); }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.88em; background: var(--surface); padding: 0.1em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 10; border-radius: 4px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }

/* ---- buttons -------------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 4px;
  font: 500 1rem/1 var(--font); letter-spacing: -0.005em; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-plain { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-plain:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---- header --------------------------------------------------------------------------------------------------- */
.site-head { padding-block: 20px; }
.site-head .wrap { display: flex; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 1.0625rem; text-decoration: none; letter-spacing: -0.02em; }
.wordmark svg { width: 26px; height: 26px; }
.site-nav { display: flex; gap: 24px; margin-left: auto; align-items: center; font-size: var(--step-small); }
.site-nav a { text-decoration: none; padding-block: 8px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }
.site-nav .btn { min-height: 40px; padding: 0 16px; font-size: var(--step-small); }
@media (max-width: 720px) {
  .site-nav .hide-sm { display: none; }
  .site-nav { gap: 16px; }
}

/* ---- hero ----------------------------------------------------------------------------------------------------- */
.hero { padding-top: clamp(32px, 6vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 40px; }
.hero h1 { grid-column: 1 / -1; font-size: var(--step-display); max-width: 14em; }
.hero-side { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 32px; }
.hero-lead { font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.5rem); line-height: 1.4; max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: auto; }
.stat { display: grid; gap: 2px; }
.stat dt { order: 2; color: var(--muted); font-size: var(--step-small); }
.stat dd { order: 1; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.05; font-weight: 500; white-space: nowrap; }
.hero-demo { grid-column: 6 / -1; }
.hero-hint { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
@media (max-width: 1080px) {
  .hero-side { grid-column: 1 / -1; }
  .hero-lead { max-width: 34ch; }
  .hero-demo { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .stats { gap: 14px; }
  .stat dd { font-size: 1.5rem; }
  .stat dt { font-size: 0.8125rem; }
}

/* masked headline */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 120ms); }
  .js .hero-side, .js .hero-demo { opacity: 0; animation: fade-up 700ms var(--ease-out) 520ms forwards; }
  .js .hero-demo { animation-delay: 640ms; }
}
@keyframes line-up { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* section entrances (only with JS, only without reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] > * { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .js [data-reveal].in > * { opacity: 1; transform: none; }
  .js [data-reveal].in > *:nth-child(2) { transition-delay: 80ms; }
  .js [data-reveal].in > *:nth-child(3) { transition-delay: 160ms; }
  .js [data-reveal].in > *:nth-child(4) { transition-delay: 240ms; }
}

/* ---- sections ------------------------------------------------------------------------------------------------- */
.section { padding-top: var(--gap-section); }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); align-items: end; }
.section-head h2 { grid-column: 1 / span 7; font-size: var(--step-head); }
.section-head p { grid-column: 8 / -1; max-width: 40ch; justify-self: end; }
@media (max-width: 900px) {
  .section-head h2, .section-head p { grid-column: 1 / -1; justify-self: start; }
}

/* ---- demo (tabs) ---------------------------------------------------------------------------------------------- */
.tabs { display: flex; gap: clamp(20px, 3vw, 48px); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  appearance: none; background: none; border: 0; padding: 4px 0 8px; cursor: pointer; scroll-snap-align: start;
  font: 500 clamp(1.125rem, 1rem + 0.6vw, 1.5rem)/1.2 var(--font); letter-spacing: -0.01em; color: var(--muted);
  white-space: nowrap; border-bottom: 3px solid transparent; transition: color 160ms ease, border-color 160ms ease;
}
.tab:hover { color: var(--ink); }
@media (max-width: 520px) { .tab { font-size: 1.0625rem; } .tabs { gap: 20px; } }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.stage { background: var(--surface); border-radius: var(--radius); padding: clamp(16px, 3vw, 40px); }
.steps { display: grid; grid-template-columns: 1fr 24px 1.05fr 24px 1.15fr; align-items: start; gap: 12px; }
.step h3 { font-size: 1rem; letter-spacing: -0.01em; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.step-arrow { align-self: center; color: var(--muted); }
.step-arrow svg { width: 24px; height: 24px; }
.panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .panel.swap { animation: fade-up 360ms var(--ease-out); }
}
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; }
  .step-arrow { justify-self: start; margin-left: 12px; transform: rotate(90deg); }
}

/* ---- rules band ----------------------------------------------------------------------------------------------- */
.rules-figure { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 28px; }
.rules-big { grid-column: 1 / span 4; }
.rules-big .num { font-size: clamp(4rem, 2rem + 9vw, 10rem); line-height: 0.85; letter-spacing: -0.05em; font-weight: 500; font-variant-numeric: proportional-nums; }
.rules-big p { margin-top: 16px; color: var(--muted); max-width: 26ch; }
.rules-chart { grid-column: 5 / -1; align-self: end; }
@media (max-width: 900px) { .rules-big, .rules-chart { grid-column: 1 / -1; } }

/* ---- features (numbered list) ---------------------------------------------------------------------------------- */
.features { list-style: none; padding: 0; counter-reset: f; display: grid; gap: clamp(96px, 10vw, 168px); }
.feature { counter-increment: f; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 28px; align-items: start; }
.feature-text { grid-column: 1 / span 4; position: sticky; top: 32px; }
.feature-text::before {
  content: counter(f); display: block; font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: 1; letter-spacing: -0.05em;
  color: var(--accent); font-weight: 500; margin-bottom: 20px;
}
.feature h3 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); margin-bottom: 16px; max-width: 14em; }
.feature-text p { max-width: 36ch; }
.feature-text p + p { margin-top: 12px; }
.feature-text .more { display: inline-block; margin-top: 16px; font-weight: 500; }
.feature-visual { grid-column: 6 / -1; }
.feature-visual.narrow { grid-column: 6 / span 6; }
@media (max-width: 900px) {
  .feature-text, .feature-visual, .feature-visual.narrow { grid-column: 1 / -1; position: static; }
}

/* ---- charts ---------------------------------------------------------------------------------------------------- */
.chart-title { font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.01em; }
.chart-sub { color: var(--muted); font-size: var(--step-small); margin-top: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 0; padding: 0; list-style: none; font-size: var(--step-small); color: var(--ink); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.sw.s1 { background: var(--s1); } .sw.s2 { background: var(--s2); } .sw.s3 { background: var(--s3); }

/* stacked bar */
.stack { display: flex; gap: 2px; height: 40px; margin-top: 18px; }
.stack .seg { min-width: 0; cursor: default; }
.stack .seg:first-child { border-radius: 4px 0 0 4px; }
.stack .seg:last-child { border-radius: 0 4px 4px 0; }
.stack .seg.s1 { background: var(--s1); } .stack .seg.s2 { background: var(--s2); } .stack .seg.s3 { background: var(--s3); }
.stack .seg:hover, .stack .seg:focus-visible { filter: brightness(1.08); }
.stack-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.stack-keys div { display: grid; grid-template-columns: 12px 1fr; column-gap: 10px; align-items: baseline; }
.stack-keys .sw { transform: translateY(1px); }
.stack-keys b { font-weight: 500; font-size: 1.375rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stack-keys span { grid-column: 2; color: var(--muted); font-size: var(--step-small); line-height: 1.35; }
@media (max-width: 600px) { .stack-keys { grid-template-columns: 1fr; gap: 12px; } }

/* horizontal bars (cost) */
.bars { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; align-items: center; column-gap: 16px; font-size: var(--step-small); }
.bar-row .lbl { line-height: 1.3; }
.bar-track { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar { height: 20px; border-radius: 0 4px 4px 0; background: var(--s1); flex: none; min-width: 2px; transition: filter 160ms ease; }
.bar.zero { background: transparent; border-left: 2px solid var(--muted); border-radius: 0; }
.bar-row .val { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-row:hover .bar { filter: brightness(1.1); }
@media (max-width: 520px) { .bar-row { grid-template-columns: 1fr; row-gap: 4px; } }

.table-toggle { margin-top: 16px; font-size: var(--step-small); }
.table-btn { display: none; appearance: none; background: none; border: 0; padding: 6px 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.table-btn:hover { color: var(--ink); }
.js .table-btn { display: inline-block; }
.js .table-toggle:not(.open) .data-table { display: none; }
.data-table { border-collapse: collapse; margin-top: 10px; font-size: var(--step-small); width: 100%; max-width: 560px; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--grid); vertical-align: top; }
.data-table td.n, .data-table th.n { text-align: right; }

.figure-note { margin-top: 14px; color: var(--muted); font-size: var(--step-small); max-width: 62ch; }

/* cost stats */
.cost-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 36px; }
.cost-figs dd { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); letter-spacing: -0.03em; font-weight: 500; line-height: 1; }
.cost-figs div { display: grid; gap: 6px; }
.cost-figs dt { order: 2; color: var(--muted); font-size: var(--step-small); }
.cost-figs dd { order: 1; }

/* ---- diagrams in HTML ------------------------------------------------------------------------------------------ */
.layers { display: grid; gap: 2px; }
.layer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; padding: 18px 20px; background: var(--surface); }
.layer:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.layer:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.layer .name { font-weight: 500; font-size: 1.125rem; letter-spacing: -0.015em; }
.layer .what { color: var(--muted); font-size: var(--step-small); grid-column: 1; }
.layer .wins { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: var(--step-small); color: var(--muted); text-align: right; }
.layer.focal { background: var(--surface-2); box-shadow: inset 4px 0 0 var(--accent); }
.flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 12px; margin-top: 28px; }
.node { background: var(--surface); border-radius: var(--radius); padding: 12px 16px; }
.node b { display: block; font-weight: 500; }
.node span { display: block; color: var(--muted); font-size: var(--step-small); }
.node.focal { background: var(--surface-2); box-shadow: inset 4px 0 0 var(--accent); }
.edge { display: grid; justify-items: center; gap: 4px; font-size: 0.8125rem; color: var(--muted); text-align: center; line-height: 1.25; }
.edge svg { width: 100%; height: 12px; color: var(--muted); }
.edge svg.v { display: none; }
.flow-note { margin-top: 12px; color: var(--muted); font-size: var(--step-small); }
@media (max-width: 640px) {
  .flow { grid-template-columns: 1fr; justify-items: start; gap: 6px; }
  .edge { justify-items: start; text-align: left; grid-template-columns: 16px auto; align-items: center; column-gap: 10px; padding-left: 14px; }
  .edge svg.h { display: none; }
  .edge svg.v { display: block; width: 12px; height: 28px; }
  .layer { grid-template-columns: 1fr; }
  .layer .wins { grid-column: 1; grid-row: auto; text-align: left; }
}

.privacy-map { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2px; }
.zone { background: var(--surface); padding: 20px; }
.zone:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.zone:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.zone h4 { font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.015em; margin-bottom: 4px; }
.zone > p { color: var(--muted); font-size: var(--step-small); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { background: var(--bg); border-radius: 4px; padding: 6px 10px; font-size: var(--step-small); }
.outbound { display: grid; gap: 12px; list-style: none; padding: 0; }
.outbound li { background: var(--bg); border-radius: var(--radius); padding: 12px 14px; font-size: var(--step-small); }
.outbound li b { display: block; font-size: 1rem; font-weight: 500; }
.outbound li .when { display: inline-block; margin-bottom: 4px; color: var(--muted); }
.outbound li.focal { box-shadow: inset 4px 0 0 var(--accent); }
@media (max-width: 720px) {
  .privacy-map { grid-template-columns: 1fr; }
  .zone:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .zone:last-child { border-radius: 0 0 var(--radius) var(--radius); }
}

/* ---- closing field --------------------------------------------------------------------------------------------- */
.closing { margin-top: clamp(96px, 10vw, 160px); background: var(--field); color: var(--field-ink); }
.closing .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 40px; min-height: min(88svh, 820px); align-items: center; padding-block: clamp(56px, 8vw, 112px); }
.closing-text { grid-column: 1 / span 5; align-self: end; }
.closing h2 { font-size: clamp(2.75rem, 1.4rem + 5vw, 6rem); line-height: 0.95; letter-spacing: -0.045em; margin-bottom: 24px; }
.closing p { max-width: 34ch; font-size: var(--step-lead); line-height: 1.35; }
.closing p a { color: inherit; }
.closing .dialog { grid-column: 7 / span 5; }
@media (max-width: 900px) {
  .closing-text, .closing .dialog { grid-column: 1 / -1; }
  .closing-text { align-self: start; }
  .closing .wrap { min-height: 0; row-gap: 32px; }
}

/* ---- footer --------------------------------------------------------------------------------------------------- */
.site-foot { padding-block: clamp(80px, 14vw, 160px) 32px; font-size: var(--step-small); }
.closing + .site-foot { padding-top: 40px; }
.site-foot .row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px 24px; align-items: baseline; }
.site-foot .what { color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
.site-foot nav a { text-decoration: none; }
.site-foot nav a:hover { text-decoration: underline; }
.site-foot .right { text-align: right; color: var(--muted); }
.site-foot .legal { margin-top: 20px; color: var(--muted); max-width: 80ch; }
@media (max-width: 760px) {
  .site-foot .row { grid-template-columns: 1fr; gap: 8px; }
  .site-foot nav { justify-content: flex-start; }
  .site-foot .right { text-align: left; }
}

/* ---- document pages (install, privacy) ------------------------------------------------------------------------- */
.doc-hero { padding-top: clamp(32px, 6vw, 88px); }
.doc-hero h1 { font-size: var(--step-display); max-width: 12em; }
.doc-hero p { margin-top: 24px; font-size: var(--step-lead); line-height: 1.35; max-width: 36ch; }
.doc-section { padding-top: clamp(56px, 6vw, 96px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 20px; }
.doc-section > h2 { grid-column: 1 / span 4; font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); position: sticky; top: 24px; align-self: start; }
.doc-section > .body { grid-column: 5 / -1; display: grid; gap: 16px; align-content: start; }
.doc-section > .body > * { max-width: 64ch; }
.doc-section > .body > table { max-width: none; }
.doc-section.with-aside > .body { grid-column: 5 / span 4; }
.doc-section > .aside { grid-column: 9 / -1; display: grid; gap: 16px; align-content: start; }
.doc-section > .aside .settings, .doc-section > .aside .dialog { justify-self: stretch; max-width: none; box-shadow: none; }
.doc-section ul, .doc-section ol { padding-left: 1.2em; display: grid; gap: 8px; }
.doc-section h3 { font-size: 1.25rem; letter-spacing: -0.015em; margin-top: 12px; }
.doc-section table { border-collapse: collapse; width: 100%; font-size: var(--step-small); }
.doc-section th, .doc-section td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--grid); vertical-align: top; }
.doc-section th { font-weight: 500; }
@media (max-width: 900px) {
  .doc-section > h2, .doc-section > .body, .doc-section.with-aside > .body, .doc-section > .aside { grid-column: 1 / -1; position: static; }
  .doc-section > .body > * { max-width: none; }
}
.note { color: var(--muted); }
.doc-hero .privacy-map p { margin-top: 0; font-size: var(--step-small); line-height: 1.5; max-width: none; }

/* install steps: big numerals from a real ordered list */
.install-steps { list-style: none; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-top: clamp(40px, 5vw, 72px); }
.install-steps > li { counter-increment: s; background: var(--surface); padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.install-steps > li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.install-steps > li:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.install-steps > li::before { content: counter(s); font-size: clamp(2.5rem, 1.8rem + 2.4vw, 4rem); line-height: 1; letter-spacing: -0.05em; color: var(--accent); font-weight: 500; }
.install-steps h2 { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); }
.install-steps p { color: var(--ink); }
.install-steps .btn { align-self: flex-start; margin-top: auto; }
.install-steps .shot { margin-top: 8px; }
@media (max-width: 900px) {
  .install-steps { grid-template-columns: 1fr; }
  .install-steps > li:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .install-steps > li:last-child { border-radius: 0 0 var(--radius) var(--radius); }
}

/* ============================================================================================================== */
/* Interface fragments. Inside [data-ui] the product's own conventions apply: 1px borders, small radii, Segoe UI.   */
/* ============================================================================================================== */
[data-ui] { font-family: var(--ui-font); color: var(--ui-ink); font-size: 13px; line-height: 1.45; letter-spacing: 0; }
[data-ui] h1, [data-ui] h2, [data-ui] h3, [data-ui] h4 { letter-spacing: 0; }
[data-ui] button { font: inherit; color: inherit; }

.ui-window { background: var(--ui-paper); border: 1px solid var(--ui-line); border-radius: 6px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.ui-editor { min-width: 0; border-right: 1px solid var(--ui-line); }
.ui-tabbar { display: flex; align-items: flex-end; gap: 2px; height: 34px; padding: 0 8px; background: var(--ui-chrome); border-bottom: 1px solid var(--ui-line); }
.ui-tab { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; background: var(--ui-paper); border: 1px solid var(--ui-line); border-bottom: 0; border-radius: 4px 4px 0 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ui-tab svg { width: 14px; height: 14px; flex: none; }
.ui-doc { padding: 20px 22px 26px; font-family: "Segoe UI", system-ui, sans-serif; font-size: 14px; line-height: 1.6; }
.ui-doc h4 { font-size: 22px; font-weight: 600; margin: 0 0 10px; line-height: 1.25; }
.ui-doc h5 { font-size: 17px; font-weight: 600; margin: 14px 0 6px; line-height: 1.3; display: flex; align-items: center; gap: 8px; }
.ui-doc p { margin: 0 0 10px; }
.ui-doc ol { margin: 0 0 10px; padding-left: 22px; }
.ui-doc .tag { font: 11px/1 var(--ui-font); color: var(--ui-muted); border: 1px solid var(--ui-line); border-radius: 3px; padding: 2px 4px; }
.hl { text-decoration: underline wavy var(--warn-mark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-skip-ink: none; border-radius: 2px; transition: background-color 200ms ease; }
.hl.err { text-decoration-color: var(--err); }
.hl.on { background: color-mix(in srgb, var(--warn-mark) 22%, transparent); }
.hl.block { text-decoration: none; outline: 2px solid transparent; }
.hl.block.on { outline: 2px solid var(--warn-mark); outline-offset: 2px; background: transparent; }
.hl.done { text-decoration: none; background: none; }
del.tc { color: var(--del); text-decoration: line-through; text-decoration-thickness: 1.5px; }
ins.tc { color: var(--ins); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  ins.tc { animation: ins-in 420ms var(--ease-out); display: inline-block; }
}
@keyframes ins-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.ui-pane { min-width: 0; display: flex; flex-direction: column; background: var(--ui-paper); }
.ui-pane-head { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; background: var(--ui-chrome); border-bottom: 1px solid var(--ui-line); font-size: 12px; font-weight: 600; }
.ui-pane-head .count { font-weight: 400; color: var(--ui-muted); }
.ui-pane-head .help { margin-left: auto; width: 20px; height: 20px; border: 1px solid var(--ui-line); border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: var(--ui-muted); font-size: 11px; }
.ui-issues { list-style: none; margin: 0; padding: 0; }
.ui-issue { padding: 10px 12px 12px; border-bottom: 1px solid var(--ui-line); display: grid; grid-template-columns: 16px 1fr; column-gap: 8px; transition: background-color 160ms ease; }
.ui-issue:hover, .ui-issue.on { background: var(--ui-select); }
.ui-issue .sev { width: 16px; height: 16px; margin-top: 2px; }
.ui-issue .msg { font-weight: 600; line-height: 1.35; }
.ui-issue .meta { color: var(--ui-muted); font-size: 12px; margin-top: 2px; }
.ui-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ui-btn { appearance: none; height: 26px; padding: 0 10px; border: 1px solid var(--ui-line); border-radius: 4px; background: var(--ui-btn); cursor: pointer; font-size: 12px; white-space: nowrap; transition: border-color 120ms ease, background-color 120ms ease; }
.ui-btn:hover { border-color: var(--ins); }
.ui-btn:active { transform: translateY(1px); }
.ui-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.ui-btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.ui-btn.link { border-color: transparent; background: transparent; color: var(--ui-muted); padding: 0 6px; }
.ui-btn.link:hover { color: var(--ui-ink); text-decoration: underline; }
.ui-issue.resolved .msg { font-weight: 400; color: var(--ui-muted); }
.ui-issue.resolved .ui-actions { display: none; }
.ui-firstnote { margin: 10px 12px; padding: 10px 12px; background: var(--ui-select); border-left: 3px solid var(--ins); font-size: 12.5px; }
.ui-empty { padding: 18px 12px; color: var(--ui-muted); display: grid; gap: 10px; justify-items: start; }
.ui-status { margin-top: auto; padding: 6px 10px; border-top: 1px solid var(--ui-line); font-size: 11.5px; color: var(--ui-muted); background: var(--ui-chrome); }
@media (max-width: 760px) {
  .ui-window { grid-template-columns: 1fr; }
  .ui-editor { border-right: 0; border-bottom: 1px solid var(--ui-line); }
  .ui-doc { padding: 16px 16px 18px; }
  .ui-doc h4 { font-size: 19px; }
}

/* small cards used inside the demo steps */
.ui-card { background: var(--ui-paper); border: 1px solid var(--ui-line); border-radius: 6px; overflow: hidden; }
.ui-card .ui-tabbar { height: 30px; }
.ui-card .ui-tab { height: 24px; }
.ui-card .ui-doc { padding: 14px 16px 16px; font-size: 13.5px; }
.ui-card .ui-doc h4 { font-size: 18px; }
.ui-card .ui-doc h5 { font-size: 15px; }
.rule-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rule-table th, .rule-table td { border: 1px solid var(--ui-line); padding: 6px 8px; text-align: left; vertical-align: top; }
.rule-table th { background: var(--ui-chrome); font-weight: 600; }
.rule-table .empty { color: var(--ui-muted); font-style: italic; }
.ui-check { padding: 14px 16px; display: grid; gap: 8px; }
.ui-check .row { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.ui-check p { color: var(--ui-muted); margin: 0; }
.ui-result { margin-top: 12px; padding: 10px 12px; background: var(--ui-paper); border: 1px solid var(--ui-line); border-left: 3px solid var(--ins); border-radius: 4px; font-size: 12.5px; }
.ui-result[hidden] { display: none; }

/* Lint Project pane as a chart */
.lp { background: var(--ui-paper); border: 1px solid var(--ui-line); border-radius: 6px; overflow: hidden; }
.lp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 14px; background: var(--ui-chrome); border-bottom: 1px solid var(--ui-line); }
.lp-head b { font-weight: 600; }
.lp-head span { color: var(--ui-muted); }
.lp-head .seg-ctl { margin-left: auto; display: inline-flex; border: 1px solid var(--ui-line); border-radius: 4px; overflow: hidden; font-size: 12px; }
.lp-head .seg-ctl span { padding: 3px 10px; color: var(--ui-ink); }
.lp-head .seg-ctl span.on { background: var(--ui-select); font-weight: 600; }
.lp-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 14px 0; list-style: none; margin: 0; color: var(--ui-ink); font-size: 12px; }
.lp-legend li { display: inline-flex; gap: 6px; align-items: center; }
.lp-rows { list-style: none; margin: 0; padding: 6px 0 8px; }
.lp-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 6px; padding: 9px 14px; align-items: center; }
.lp-row:hover, .lp-row:focus-within { background: var(--ui-select); }
.lp-row .sev { width: 16px; height: 16px; }
.lp-row .name { font-weight: 600; min-width: 0; }
.lp-row .tagx { font-size: 11.5px; padding: 2px 8px; border-radius: 3px; border: 1px solid var(--ui-line); white-space: nowrap; }
.lp-row .tagx.fix { color: var(--ui-ink); }
.lp-row .tagx.you { color: var(--ui-muted); }
.lp-bar { grid-column: 2 / -1; display: flex; align-items: center; gap: 10px; }
.lp-bar i { display: block; height: 12px; border-radius: 0 3px 3px 0; flex: none; }
.lp-bar i.s1 { background: var(--s1); } .lp-bar i.s2 { background: var(--s2); } .lp-bar i.s0 { background: var(--ui-line); }
.lp-bar small { font-size: 12px; color: var(--ui-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lp-row.rest .name { font-weight: 400; color: var(--ui-muted); }

/* update toast + settings */
.upd { display: grid; gap: 16px; }
.toast { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; background: var(--ui-paper); border: 1px solid var(--ui-line); border-radius: 6px; padding: 14px 14px 14px 16px; box-shadow: 0 8px 24px rgba(16, 32, 40, 0.16); max-width: 460px; }
.toast svg { width: 20px; height: 20px; color: var(--ins); }
.toast b { font-weight: 600; display: block; }
.toast .x { color: var(--ui-muted); font-size: 16px; line-height: 1; padding: 2px 4px; }
.settings { background: var(--ui-paper); border: 1px solid var(--ui-line); border-radius: 6px; overflow: hidden; max-width: 560px; justify-self: end; width: 100%; }
.settings .tabs-ui { display: flex; gap: 0; background: var(--ui-chrome); border-bottom: 1px solid var(--ui-line); padding: 0 8px; overflow: hidden; }
.settings .tabs-ui span { padding: 8px 12px; font-size: 12px; color: var(--ui-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.settings .tabs-ui span.on { color: var(--ui-ink); border-bottom-color: var(--ins); font-weight: 600; }
.settings .body-ui { padding: 16px; display: grid; gap: 10px; }
.settings label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.settings input[type="checkbox"] { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.settings .hint { color: var(--ui-muted); font-size: 12px; padding-left: 26px; }
@media (max-width: 900px) { .settings { justify-self: start; } }

/* setup dialog in the closing field */
.dialog { background: var(--ui-paper); color: var(--ui-ink); border: 1px solid var(--ui-line); border-radius: 8px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28); overflow: hidden; max-width: 480px; width: 100%; justify-self: end; }
.dialog-title { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 12px; background: var(--ui-chrome); border-bottom: 1px solid var(--ui-line); font-size: 12px; }
.dialog-title .x { color: var(--ui-muted); }
.dialog-body { padding: 22px 22px 8px; display: grid; gap: 14px; }
.dialog-body .q { font-size: 18px; font-weight: 600; }
.dialog-body .progress { font-size: 12px; color: var(--ui-muted); }
.choice { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.choice label { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--ui-line); border-radius: 6px; cursor: pointer; transition: border-color 120ms ease, background-color 120ms ease; }
.choice label:hover { border-color: var(--ins); }
.choice input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--accent); }
.choice label:has(input:checked) { border-color: var(--ins); background: var(--ui-select); }
.choice b { display: block; font-weight: 600; }
.choice span { color: var(--ui-muted); font-size: 12.5px; }
.dialog-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; padding: 14px 22px 20px; }
.dialog-foot .skip-ui { margin-right: auto; color: var(--ui-muted); font-size: 12.5px; }
.dialog-foot .btn { min-height: 40px; font-family: var(--ui-font); font-size: 14px; font-weight: 600; border-radius: 4px; }
@media (max-width: 900px) { .dialog { justify-self: start; } }
@media (max-width: 520px) { .dialog-foot .btn { width: 100%; min-height: 52px; } .dialog-foot .skip-ui { width: 100%; } }
