/* Hallmark · waive 77 · section.close, the closing band · the guard holds: one line and the install action, once on the page */
/* Hallmark · waive 59 · section.close and footer.footer · the footer is a one-line colophon that sits right under the closing photograph, as a caption to it, not a new section */
/* Hallmark · waive 72 · details in the FAQ and the Data note · closed details report their hidden body as overflow; opened, the body carries its own padding */
@import url("./tokens.css");
@import url("./base.css");

@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url("./fonts/unbounded-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url("./fonts/unbounded-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("./fonts/jetbrains-mono-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("./fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("./fonts/golos-text-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("./fonts/golos-text-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url("./fonts/golos-text-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url("./fonts/golos-text-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- brand palette: graphite night (default, and the hero/close bands in both themes) ---------- */
:root {
  color-scheme: dark;
  --container: 1360px; --bar-h: 72px;
  --display-weight: 500; --tracking-display: -0.025em;
  --h1: clamp(2.5rem, 4.4vw + 0.25rem, 4.25rem);
  --logo-edge: oklch(18% 0.02 220 / 0.55); --logo-edge-soft: oklch(18% 0.02 220 / 0.25);
  --scrim: oklch(12% 0.012 220);
  --night-color-paper: oklch(17% 0.012 220);
  --night-color-paper-2: oklch(21% 0.014 220);
  --night-color-paper-3: oklch(26% 0.016 220);
  --night-color-ink: oklch(95% 0.008 200);
  --night-color-ink-2: oklch(84% 0.012 210);
  --night-color-muted: oklch(72% 0.015 215);
  --night-color-rule: oklch(95% 0.01 200 / 0.12);
  --night-color-teal: oklch(72% 0.11 210);
  --night-color-accent: oklch(78% 0.13 75);
  --night-color-accent-ink: oklch(18% 0.02 70);
  --night-color-focus: oklch(80% 0.12 200);
  --night-surface: oklch(21% 0.014 220 / 0.6);
  --night-surface-line: oklch(95% 0.01 200 / 0.14);
  --night-edge-light: oklch(98% 0.01 200 / 0.08);
  --night-bar-bg: oklch(14% 0.012 220 / 0.72);
  --night-shadow-card: 0 40px 80px -30px oklch(5% 0.01 220 / 0.6);
  --color-paper: oklch(17% 0.012 220); --color-paper-2: oklch(21% 0.014 220); --color-paper-3: oklch(26% 0.016 220);
  --color-ink: oklch(95% 0.008 200); --color-ink-2: oklch(84% 0.012 210); --color-muted: oklch(72% 0.015 215);
  --color-rule: oklch(95% 0.01 200 / 0.12);
  --color-teal: oklch(72% 0.11 210); --color-teal-deep: oklch(52% 0.09 212);
  --color-accent: oklch(78% 0.13 75); --color-accent-ink: oklch(18% 0.02 70); --color-focus: oklch(80% 0.12 200);
  --amber-glow: oklch(78% 0.13 75 / 0.35);
  --glow: oklch(72% 0.11 210 / 0.16); --glow-2: oklch(78% 0.13 75 / 0.10);
  --surface: oklch(21% 0.014 220 / 0.72); --surface-line: oklch(95% 0.01 200 / 0.10);
  --edge-light: oklch(98% 0.01 200 / 0.07);
  --bar-bg: oklch(14% 0.012 220 / 0.72);
  --shadow-card: 0 40px 80px -30px oklch(5% 0.01 220 / 0.6);
  --yes: oklch(78% 0.11 175); --no: oklch(70% 0.12 30);
}

/* the night bands keep the night palette in either theme; this rule comes after the light blocks so it wins inside them */
.night {
  color-scheme: dark;
  --color-paper: var(--night-color-paper);
  --color-paper-2: var(--night-color-paper-2);
  --color-paper-3: var(--night-color-paper-3);
  --color-ink: var(--night-color-ink);
  --color-ink-2: var(--night-color-ink-2);
  --color-muted: var(--night-color-muted);
  --color-rule: var(--night-color-rule);
  --color-teal: var(--night-color-teal);
  --color-accent: var(--night-color-accent);
  --color-accent-ink: var(--night-color-accent-ink);
  --color-focus: var(--night-color-focus);
  --surface: var(--night-surface);
  --surface-line: var(--night-surface-line);
  --edge-light: var(--night-edge-light);
  --bar-bg: var(--night-bar-bg);
  --shadow-card: var(--night-shadow-card);
  color: var(--color-ink);
}

h1, h2, h3, .wordmark, .hop-name, .tile-num, .spec-value, .contrast-title { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); }
h2 { font-size: var(--text-section); line-height: 1.1; }

/* ---------- smooth anchor scrolling ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + var(--space-lg)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- chrome ---------- */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-pill); }
.skip:focus-visible { top: var(--space-md); }
.topbar { position: sticky; top: 0; z-index: var(--z-sticky-nav); transition: background-color var(--dur-long) var(--ease-out), box-shadow var(--dur-long) var(--ease-out); }
.topbar.is-scrolled { background: var(--bar-bg); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--color-rule); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--color-teal); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--bar-h); }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-sm); font-size: var(--text-lg); line-height: 1; text-decoration: none; }
.wordmark img { width: 32px; height: auto; }
.nav-end { display: flex; align-items: center; gap: var(--space-lg); }
.nav ul { display: flex; gap: var(--space-2xs); margin: 0; padding: var(--space-2xs); list-style: none; border: var(--rule-hair) solid var(--surface-line); border-radius: var(--radius-pill); background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav ul a { display: block; padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; text-decoration: none; transition: color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--color-ink); background: var(--color-paper-3); }
.nav a:focus-visible, .wordmark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* ---------- product switch: BMS Pro | BMS Lite, the page you are on is lit ---------- */
.switch { display: inline-flex; align-items: center; gap: var(--space-2xs); padding: var(--space-2xs); border: var(--rule-hair) solid var(--surface-line); border-radius: var(--radius-pill); background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.switch a { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 40px; padding: 0 var(--space-md); border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); font-size: var(--text-md); line-height: 1; color: var(--color-ink-2); text-decoration: none; white-space: nowrap; transition: color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.switch img { width: 24px; height: auto; }
.switch a:not([aria-current]) { color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-rule); }
.switch a:hover { color: var(--color-ink); background: var(--color-paper-3); }
.switch a[aria-current] { color: var(--color-accent-ink); background: var(--color-accent); }
.switch a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* ---------- Lite: night picture over the dawn one, fades when the visitor comes from Pro ---------- */
.hero-night { display: none; position: absolute; inset: 0; background-size: cover; background-position: 78% 40%; }
/* the night picture is fetched only when the dawn plays (CSS background), never on a direct visit */
.dawn .hero-night { display: block; will-change: opacity; background-image: image-set(url("./img/hero.webp") type("image/webp"), url("./img/hero.jpg") type("image/jpeg")); animation: dawn 2100ms var(--ease-in-out) 250ms both; }
@keyframes dawn { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dawn .hero-night { display: none; animation: none; } }
/* Pro: the dawn picture over the night one, fades when the visitor comes back from Lite */
.hero-day { display: none; position: absolute; inset: 0; background-size: cover; background-position: 78% 40%; }
.dusk .hero-day { display: block; will-change: opacity; background-image: image-set(url("./img/lite-hero.webp") type("image/webp"), url("./img/lite-hero.jpg") type("image/jpeg")); animation: dawn 2100ms var(--ease-in-out) 250ms both; }
@media (prefers-reduced-motion: reduce) { .dusk .hero-day { display: none; animation: none; } }
.net .host-off { font-size: 18px; }
.section-head p.iso-sub { color: var(--color-accent); margin-bottom: var(--space-md); }
/* Lite closing band: the dawn should read as dawn, so the scrim only shades the text side */
.page-lite .close-scrim { background: linear-gradient(90deg, color-mix(in oklab, var(--scrim) 72%, transparent) 0%, color-mix(in oklab, var(--scrim) 34%, transparent) 40%, transparent 62%); }
.trust .trust-title { font-size: var(--text-3xl); line-height: 1.1; }
.trust p + p { margin-top: var(--space-md); }
.limit-link a { color: var(--color-accent); text-underline-offset: 4px; }
.lite-note { margin-top: var(--space-xl); padding-left: var(--space-lg); border-left: 2px solid var(--color-accent); color: var(--color-ink-2); font-size: var(--text-lg); line-height: 1.55; }
.lite-note a { color: var(--color-accent); font-weight: 500; text-underline-offset: 4px; }
/* Pro / Lite switch: top-right corner of the network-map panel (owner) */
.variant-bar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--space-sm); margin: calc(-1 * var(--space-md)) 0 var(--space-md); }
.variant-bar[hidden] { display: none; }
.variant-label { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.variant-switch { display: inline-flex; gap: var(--space-2xs); padding: var(--space-2xs); border: var(--rule-hair) solid var(--surface-line); border-radius: var(--radius-pill); background: var(--color-paper-2); }
.variant-switch button { min-height: 40px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-rule); font: 500 var(--text-sm)/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.variant-switch button:hover { background: var(--color-paper-3); }
/* pressed: amber outline, not a second filled amber button (the copy button stays the one filled primary) */
.variant-switch button[aria-pressed="true"] { background: var(--color-paper-3); color: var(--color-accent); box-shadow: inset 0 0 0 1.5px var(--color-accent); }
.variant-switch button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
@media (max-width: 60rem) { .variant-bar { justify-content: flex-start; margin-top: 0; } }
.map-variant[hidden] { display: none; }
.variant-more { margin-top: var(--space-xl); }
.variant-more a { color: var(--color-accent); font-weight: 500; text-underline-offset: 4px; }
.variant-more a, .limit-link a { display: inline-flex; align-items: center; min-height: 44px; }
.variant-more a:hover, .limit-link a:hover, .lite-note a:hover { text-decoration-thickness: 2px; filter: brightness(1.15); }
.section-head--next { margin-top: var(--section-gap-s); }
.compare--two tbody th { width: 28%; }

/* ---------- hero: the night photograph, the turning beam, the headline on the quiet sky ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * var(--bar-h)); min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; background: var(--color-paper); }
.hero-stage { position: absolute; inset: -6% 0; z-index: -2; will-change: transform; }
.hero-stage picture, .hero-stage img, .beam { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-stage img { object-fit: cover; object-position: 78% 40%; }
.beam { pointer-events: none; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, color-mix(in oklab, var(--scrim) 82%, transparent) 0%, color-mix(in oklab, var(--scrim) 55%, transparent) 38%, transparent 66%),
  linear-gradient(to bottom, color-mix(in oklab, var(--scrim) 50%, transparent), transparent 22%, transparent 70%, var(--color-paper) 100%); }
.hero-inner { padding-block: calc(var(--bar-h) + var(--space-3xl)) var(--space-3xl); }
.hero-logo { width: 80px; height: auto; margin-bottom: var(--space-xl); }
.hero h1 { font-size: var(--h1); line-height: 1.02; max-width: 11ch; text-wrap: balance; overflow-wrap: normal; word-break: normal; hyphens: manual; }
@media (max-width: 30rem) { .hero h1 { font-size: 8.4vw; max-width: none; } }
.hero .lead { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 38ch; font-size: var(--text-lead); }

/* ---------- the install command ---------- */
.install { margin-top: var(--space-2xl); }
.cmd { display: flex; align-items: center; gap: var(--space-sm); max-width: 36rem; padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg); background: var(--surface); border: var(--rule-hair) solid var(--surface-line); border-radius: var(--radius-pill); box-shadow: inset 0 1px 0 var(--edge-light); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cmd-prompt { font-family: var(--font-outlier); color: var(--color-accent); }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-ink); white-space: nowrap; user-select: all; scrollbar-width: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; cursor: pointer; box-shadow: 0 10px 30px -10px var(--color-accent); transition: filter var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[data-copied] { filter: brightness(1.15); }
.btn[hidden] { display: none; }
.install-note { margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); }
.close .install-note { color: var(--color-ink-2); }

/* ---------- the route: five hops on one line, a packet crossing them ---------- */
.route-band { position: relative; padding-block: var(--space-2xl) var(--section-gap-s); }
.route-band .container { position: relative; }
.flow { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.flow::before { content: ""; position: absolute; left: 8px; right: 8px; top: 7px; height: 1px; background: var(--color-rule); }
.hop { position: relative; }
.hop-dot { display: block; width: 16px; height: 16px; margin-bottom: var(--space-lg); border-radius: 50%; background: var(--dot, var(--color-teal)); box-shadow: 0 0 0 5px var(--color-paper); position: relative; z-index: 1; }
.hop--net { --dot: var(--color-accent); }
.hop--vpn, .hop--tor { --dot: var(--color-teal); }
.hop--work { --dot: var(--color-teal-deep); }
.hop--host .hop-dot { background: var(--color-paper); box-shadow: inset 0 0 0 2px var(--color-muted), 0 0 0 5px var(--color-paper); }
.hop-name { font-size: var(--text-lg); line-height: 1.2; color: var(--color-ink); }
.hop-note { margin-top: var(--space-xs); color: var(--color-ink-2); font-size: var(--text-md); line-height: 1.5; }
.flow-packet { position: absolute; left: calc(var(--gutter) + 3px); top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent); opacity: 0; animation: packet 7s var(--ease-in-out) 1s infinite; }
@keyframes packet { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 72% { opacity: 1; } 84% { transform: translateX(var(--run, 60vw)); opacity: 0; } 100% { transform: translateX(var(--run, 60vw)); opacity: 0; } }

/* ---------- statement ---------- */
.statement { position: relative; padding-block: var(--section-gap-l); overflow: hidden; }
.statement-text { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); font-size: var(--text-display-s); line-height: 1.08; max-width: 22ch; text-wrap: balance; }
.statement-text .w { opacity: 0.2; transition: opacity var(--dur-long) var(--ease-out), color var(--dur-long) var(--ease-out); }
.statement-text .w.on { opacity: 1; }
.statement-text .w.on:nth-last-child(-n+3) { color: var(--color-accent); }

/* ---------- sections ---------- */
.section { position: relative; padding-block: var(--section-gap); }
.section--alt { background: var(--color-paper-2); color: var(--color-ink); }
.section--cont { padding-top: 0; }
.section + .section, .statement + .section { border-top: var(--rule-hair) solid var(--color-rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: end; margin-bottom: var(--space-2xl); }
.section-head p { color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.45; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: start; }
.prose { display: grid; gap: var(--space-lg); margin-top: var(--space-xl); color: var(--color-ink-2); font-size: var(--text-lg); line-height: 1.55; }

.netmap { margin: 0 0 var(--gap-columns); padding: var(--space-2xl); border-radius: var(--radius-card); background: var(--color-paper-2); border: var(--rule-hair) solid var(--surface-line); box-shadow: inset 0 1px 0 var(--edge-light); }
.net { display: block; width: 100%; height: auto; font-family: var(--font-body); }
.net--tall { display: none; max-width: 22rem; margin-inline: auto; }
.netmap figcaption { margin-top: var(--space-lg); color: var(--color-ink-2); font-size: var(--text-md); max-width: 70ch; }
.net .host { fill: none; stroke: var(--color-rule); stroke-width: 1.5; stroke-dasharray: 6 6; }
.net .host-t { fill: var(--color-muted); font-size: 15px; }
.net .nd rect { fill: var(--color-paper-3); stroke: var(--surface-line); stroke-width: 1.5; }
.net .nd--tor rect, .net .nd--vpn rect { stroke: var(--color-teal); }
.net .nd--net rect { fill: none; stroke: var(--color-accent); }
.net .nd-t { fill: var(--color-ink); font-family: var(--font-display); font-size: 20px; }
.net .nd-s { fill: var(--color-muted); font-size: 15px; }
.net .nd--net .nd-t { fill: var(--color-accent); }
.net .ln { fill: none; stroke: var(--color-teal); stroke-width: 2; }
.net .ln--clear { stroke-dasharray: 5 6; stroke: var(--color-muted); }
.net .ln--out { stroke: var(--color-accent); }
.net .ln-t { fill: var(--color-muted); font-size: 14px; }
.net .pk { fill: var(--color-accent); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .net .pk { display: none; } }

.tile, .card, .spec { position: relative; isolation: isolate; background: var(--surface); border: var(--rule-hair) solid var(--surface-line); border-radius: var(--radius-card); box-shadow: inset 0 1px 0 var(--edge-light); transition: border-color var(--dur-long) var(--ease-out); }
.tile:hover, .card:hover, .spec:hover { border-color: var(--color-rule); }

/* ---------- machines ---------- */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.tile { display: flex; flex-direction: column; gap: var(--space-md); padding: var(--space-xl); }
.tile--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: start; }
.tile-main { display: flex; flex-direction: column; gap: var(--space-md); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.tile-num { font-size: var(--text-lg); color: var(--color-accent); }
.tile h3 { font-size: var(--text-3xl); line-height: 1.05; }
.tile p { color: var(--color-ink-2); font-size: var(--text-lg); line-height: 1.5; }
.tile .tile-sub { font-size: max(12px, calc(var(--text-lg) / 2)); line-height: 1.5; color: var(--color-muted); }
.tile > .more { margin-top: var(--space-xs); }
.route { padding: var(--space-2xs) var(--space-sm); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; line-height: 1.6; white-space: nowrap; }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-top: auto; padding-top: var(--space-md); border-top: var(--rule-hair) dashed var(--color-rule); }
.path span { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-ink); }
.path span + span::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: var(--space-xs); vertical-align: middle; background: var(--color-teal); }
.path span:last-child { color: var(--color-muted); }

details { border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-well); background: var(--color-paper-2); }
summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) var(--space-lg); cursor: pointer; list-style: none; font-size: var(--text-lg); font-weight: 500; border-radius: var(--radius-well); transition: background-color var(--dur-short) var(--ease-out); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--color-teal); border-bottom: 2px solid var(--color-teal); transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--dur-short) var(--ease-out); }
details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
summary:hover { background: var(--color-paper-3); }
summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.details-body { display: grid; gap: var(--space-md); padding: 0 var(--space-lg) var(--space-lg); color: var(--color-ink-2); }
.details-body p { max-width: 68ch; font-size: var(--text-lg); line-height: 1.55; }

.trust { position: relative; margin-top: var(--space-2xl); padding: var(--space-2xl); display: grid; grid-template-columns: auto minmax(0, 4fr) minmax(0, 6fr); gap: var(--space-xl) var(--space-2xl); align-items: start; border-radius: var(--radius-card); background: var(--color-paper-2); border: var(--rule-hair) solid var(--surface-line); box-shadow: inset 0 1px 0 var(--edge-light); }
.trust-icon { width: 96px; height: 96px; color: var(--color-accent); }
.trust h3 { font-size: var(--text-3xl); line-height: 1.1; }
.trust p { color: var(--color-ink-2); font-size: var(--text-lg); line-height: 1.55; }

/* ---------- one machine vs many ---------- */
.contrast { display: grid; gap: var(--space-lg); margin: 0; }
.contrast-card { padding: var(--space-xl); border-radius: var(--radius-card); border: var(--rule-hair) solid var(--surface-line); background: var(--surface); box-shadow: inset 0 1px 0 var(--edge-light); }
.contrast-title { font-size: var(--text-lg); margin-bottom: var(--space-lg); }
.lanes { display: grid; gap: var(--space-sm); margin: 0; padding: 0; list-style: none; }
.lanes li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-well); background: var(--color-paper-3); }
.lanes li > span:first-child { font-weight: 500; }
.print { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-muted); }
.lanes--merged { gap: 0; }
.lanes--merged li { border-radius: 0; border-bottom: var(--rule-hair) dashed var(--color-rule); }
.lanes--merged li:first-child { border-radius: var(--radius-well) var(--radius-well) 0 0; }
.lanes--merged li:last-child { border-radius: 0 0 var(--radius-well) var(--radius-well); border-bottom: 0; }
.print--one { margin-top: var(--space-md); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--no); color: var(--no); display: inline-block; }
.contrast-card--many .lanes li { border: var(--rule-hair) solid var(--surface-line); }
.contrast-card--many .print { color: var(--color-accent); }

/* ---------- steps and updates ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.timeline::before { content: ""; position: absolute; left: 28px; right: 28px; top: 28px; height: 2px; background: var(--color-rule); }
.timeline li { position: relative; counter-increment: step; }
.timeline li::before { content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--space-lg); border-radius: 50%; font-family: var(--font-display); font-size: var(--text-xl); background: var(--color-paper); border: 2px solid var(--color-teal); color: var(--color-accent); }
.timeline li:last-child::before { border-color: var(--color-accent); }
.timeline h3 { font-size: var(--text-2xl); line-height: 1.2; }
.timeline p { margin-top: var(--space-sm); max-width: 32ch; color: var(--color-ink-2); font-size: var(--text-lg); }
.updates { margin-top: var(--space-3xl); padding: var(--space-2xl); border-radius: var(--radius-card); background: var(--color-paper-2); border: var(--rule-hair) solid var(--surface-line); box-shadow: inset 0 1px 0 var(--edge-light); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-2xl); }
.updates-title { font-size: var(--text-2xl); line-height: 1.15; }
.updates-list { display: grid; gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.updates-list li { padding-left: var(--space-lg); border-left: 2px solid var(--color-teal); color: var(--color-ink-2); font-size: var(--text-lg); line-height: 1.5; }
.updates-list strong { color: var(--color-accent); font-weight: 500; }

/* ---------- comparison ---------- */
.table-wrap { border: var(--rule-hair) solid var(--surface-line); border-radius: var(--radius-card); overflow: hidden; background: var(--color-paper); box-shadow: var(--shadow-card); }
.compare { width: 100%; border-collapse: collapse; font-size: var(--text-md); line-height: 1.45; }
.compare th, .compare td { padding: var(--space-md) var(--space-lg); text-align: left; vertical-align: top; border-bottom: var(--rule-hair) solid var(--color-rule); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { padding-block: var(--space-lg); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-md); color: var(--color-ink); }
.compare tbody th { font-weight: 500; color: var(--color-ink); width: 16%; }
.compare td { color: var(--color-ink-2); }
.compare tbody tr { transition: background-color var(--dur-short) var(--ease-out); }
.compare tbody tr:hover { background: var(--color-paper-2); }
.compare .ours { background: color-mix(in oklab, var(--color-accent) 10%, var(--color-paper)); color: var(--color-ink); font-weight: 500; }
.compare thead .ours { box-shadow: inset 0 3px 0 var(--color-accent); color: var(--color-accent); }
.compare td.yes::before, .compare td.no::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: var(--space-xs); border-radius: 50%; vertical-align: 0.1em; }
.compare td.yes::before { background: var(--yes); }
.compare td.no::before { background: var(--no); }

/* ---------- installer safety ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-sm) var(--space-lg); padding: var(--space-xl); }
.card svg { grid-row: span 2; width: 48px; height: 48px; padding: var(--space-sm); border-radius: var(--radius-well); color: var(--color-teal); background: var(--color-paper-3); }
.card h3 { font-size: var(--text-xl); line-height: 1.2; }
.card p { color: var(--color-ink-2); font-size: var(--text-lg); line-height: 1.5; }
.card--wide { grid-column: 1 / -1; }

/* ---------- requirements ---------- */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; }
.spec { display: flex; flex-direction: column; gap: var(--space-md); padding: var(--space-xl); }
.spec dt { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.spec dd { display: flex; flex-direction: column; gap: var(--space-xs); margin: 0; }
.spec-value { font-size: var(--text-2xl); line-height: 1.1; color: var(--color-ink); }
.spec-note { color: var(--color-ink-2); font-size: var(--text-md); line-height: 1.5; }

.faq { display: grid; gap: var(--space-sm); }

/* ---------- close: the lit window ---------- */
.close { position: relative; isolation: isolate; overflow: hidden; min-height: 92svh; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; background: var(--color-paper); }
.close-bg, .close-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.close-bg img { object-fit: cover; object-position: 70% 50%; }
.close-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in oklab, var(--scrim) 85%, transparent) 0%, color-mix(in oklab, var(--scrim) 50%, transparent) 42%, transparent 70%); }
.close-inner { padding-block: var(--space-4xl); }
.close h2 { margin-bottom: var(--space-xl); font-size: var(--text-display-s); line-height: 1.04; max-width: 12ch; }
.close .lead { margin: var(--space-lg) 0 var(--space-2xl); color: var(--color-ink-2); font-size: var(--text-lead); }
.footer { padding-block: var(--space-2xl) var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.footer p { display: flex; align-items: center; gap: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); }
.footer img { width: 20px; height: auto; }
.footer-years { margin-left: auto; font-family: var(--font-outlier); }

/* ---------- reveal on scroll ---------- */
.js .will-reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .will-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .will-reveal { opacity: 1; transform: none; transition: none; }
  .flow-packet { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 72rem) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 68rem) {
  .hero { align-items: start; }
  .hero-stage { inset: 0 0 auto 0; height: 60svh; }
  .hero-stage img { object-position: 88% 40%; }
  .hero-night, .hero-day { background-position: 88% 40%; }
  .hero-logo { display: none; }
  .hero-inner { padding-top: 46svh; padding-bottom: var(--space-2xl); }
  .hero-scrim { background: linear-gradient(to bottom, color-mix(in oklab, var(--scrim) 45%, transparent), transparent 18%, transparent 30svh, var(--color-paper) 58svh); }
}
@media (max-width: 60rem) {
  .section-head, .split, .tile--wide, .updates { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  /* the house would sit under the text on narrow screens: the picture takes the top, the words go under it */
  .hero { align-items: start; }
  .hero-stage { inset: 0 0 auto 0; height: 60svh; }
  .hero-stage img { object-position: 93% 40%; }
  .hero-night, .hero-day { background-position: 93% 40%; }
  .hero-logo { display: none; }
  .hero-inner { padding-top: 46svh; padding-bottom: var(--space-2xl); }
  .hero-scrim { background: linear-gradient(to bottom, color-mix(in oklab, var(--scrim) 45%, transparent), transparent 18%, transparent 30svh, var(--color-paper) 58svh); }
  .flow { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .flow::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: var(--color-rule); }
  .hop { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: var(--space-lg); }
  .hop-dot { grid-row: span 2; margin: var(--space-2xs) 0 0; }
  .flow-packet { display: none; }
  .trust { grid-template-columns: minmax(0, 1fr); padding: var(--space-xl) var(--space-lg); }
  .bento, .cards { grid-template-columns: minmax(0, 1fr); }
  .net--wide { display: none; }
  .net--tall { display: block; }
  .netmap { padding: var(--space-lg); }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .timeline::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: var(--color-rule); }
  .timeline li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--space-lg); }
  .timeline li::before { grid-row: span 2; margin-bottom: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { padding: var(--space-md) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare th, .compare td { padding: var(--space-2xs) 0; border: 0; }
  .compare tbody th { width: auto; margin-bottom: var(--space-xs); font-family: var(--font-display); color: var(--color-ink); }
  .compare td { display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); gap: var(--space-md); }
  .compare td::before { content: attr(data-label); color: var(--color-muted); }
  .compare td.yes::before, .compare td.no::before { width: auto; height: auto; margin: 0; border-radius: 0; background: none; }
  .compare .ours { background: transparent; color: var(--color-accent); }
  .close-scrim { background: linear-gradient(to bottom, color-mix(in oklab, var(--scrim) 60%, transparent), color-mix(in oklab, var(--scrim) 78%, transparent)); }
}
@media (max-width: 40rem) {
  .nav ul { display: none; }
  .switch a, .variant-switch button { min-height: 44px; }
  .switch a { padding: 0 var(--space-sm); font-size: var(--text-sm); }
  .cmd { flex-wrap: wrap; padding: var(--space-sm); border-radius: var(--radius-well); }
  .cmd code { flex-basis: calc(100% - 2ch); }
  .cmd .btn { width: 100%; }
  .tile, .card, .spec, .contrast-card { padding: var(--space-lg); }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .card { grid-template-columns: minmax(0, 1fr); }
  .card svg { grid-row: auto; }
  .updates { padding: var(--space-xl) var(--space-lg); }
  .hero-logo { width: 64px; }
}

/* ---------- draft 2026-11-21 (ui-ux-pro-max pass): machines as rows, steps as one strip, flowing map lines ---------- */
.rows { display: grid; margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: start; padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); transition: background-color var(--dur-short) var(--ease-out); }
.row:hover { background: color-mix(in oklab, var(--color-paper-2) 70%, transparent); }
.row-head { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: var(--space-sm); }
.row-num { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-accent); line-height: 1; }
.row h3 { font-size: var(--text-3xl); line-height: 1.05; }
.row-body { display: grid; gap: var(--space-md); }
.row-body p { color: var(--color-ink-2); font-size: var(--text-lg); line-height: 1.5; max-width: 62ch; }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border: var(--rule-hair) solid var(--surface-line); border-radius: var(--radius-card); overflow: hidden; background: var(--color-paper-2); box-shadow: inset 0 1px 0 var(--edge-light); }
.strip li { padding: var(--space-2xl) var(--space-xl); }
.strip li + li { border-left: var(--rule-hair) solid var(--surface-line); }
.strip-n { display: block; margin-bottom: var(--space-lg); font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-teal); line-height: 1; }
.strip li:last-child .strip-n { color: var(--color-accent); }
.strip h3 { font-size: var(--text-2xl); line-height: 1.2; }
.strip p { margin-top: var(--space-sm); max-width: 32ch; color: var(--color-ink-2); font-size: var(--text-lg); }
.net .ln:not(.ln--clear) { stroke-dasharray: 6 8; animation: ln-flow 1.6s linear infinite; }
@keyframes ln-flow { to { stroke-dashoffset: -14; } }
@media (prefers-reduced-motion: reduce) { .net .ln:not(.ln--clear) { animation: none; stroke-dasharray: none; } }
@media (max-width: 60rem) {
  .row { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-lg); }
  .strip { grid-template-columns: minmax(0, 1fr); }
  .strip li { padding: var(--space-xl) var(--space-lg); }
  .strip li + li { border-left: 0; border-top: var(--rule-hair) solid var(--surface-line); }
}
