@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* No Latin Extended: the pages use no letter from it, and one would fall back to the system font. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin.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-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/mono-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/mono-cyrillic.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-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/mono-latin.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; }

/* The Cordes site. One family, Inter, as in the app; JetBrains Mono only for
   placeholders, hashes and commands. Colours are the app's roles, a shade
   deeper where small text sits on the grey band, so each pair passes AA.
   Fonts are served from this site: nothing about a visitor goes to a font CDN. */
:root {
  --page: #ffffff;
  --band: #f5f6f7;
  --card: #ffffff;
  --ink: #0e1014;
  --ink-2: #464c56;
  --ink-3: #626975;
  --line: #e6e7ea;
  --line-strong: #cfd3d8;
  --accent: #2b65f5;
  --accent-hover: #1f56e0;
  --accent-text: #2459e6;
  --on-accent: #ffffff;
  --mask: #e8efff;
  --mask-edge: #cbd9fb;
  --warn-bg: #fff1e0;
  --warn-ink: #7a3e00;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --frame: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --hdr-h: 64px; /* the site header; what sticks under it starts here */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 120ms;
  --t-mid: 200ms;
  --t-move: 320ms;
  --t-slow: 560ms;
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  /* corners: value chips, controls, stages inside cards, panels, cards, window frames */
  --r-chip: 6px;
  --r-ctl: 10px;
  --r-panel: 14px;
  --r-card: 16px;
  --r-frame: 20px;
  --r-stage: 12px;
  --shadow-frame: 0 40px 80px -40px rgb(14 16 20 / 0.32), 0 2px 8px -4px rgb(14 16 20 / 0.08);
  --shadow-pop: 0 6px 18px -6px rgb(17 19 24 / 0.35);
  --shadow-card: 0 1px 2px rgb(14 16 20 / 0.04), 0 24px 48px -32px rgb(14 16 20 / 0.28);
  /* type: one scale for the whole site */
  --fs-micro: 12px;
  --fs-meta: 13.5px;
  --fs-small: 15px;
  --fs-body: 16.5px;
  --fs-lead: 18px;
  --fs-h3: 18px;
  --fs-h3-l: 24px;
  --fs-h3-sub: clamp(22px, 2vw, 26px);
  --fs-h2: clamp(30px, 3.6vw, 46px);
  --fs-h1: clamp(38px, 5vw, 68px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0f1011; --band: #151617; --card: #1b1c1e;
    --ink: #ececed; --ink-2: #b7b9bd; --ink-3: #a1a4a9;
    --line: #2a2c2f; --line-strong: #44474b;
    --accent: #5b8ff5; --accent-hover: #74a1f7; --accent-text: #8db2f8; --on-accent: #0b0c0d;
    --mask: #23314e; --mask-edge: #364c79; --warn-bg: #392513; --warn-ink: #f7bf7d;
    --shadow-frame: 0 40px 80px -40px rgb(0 0 0 / 0.7), 0 2px 8px -4px rgb(0 0 0 / 0.5);
    --shadow-pop: 0 8px 24px -8px rgb(0 0 0 / 0.7);
    --shadow-card: 0 0 0 1px rgb(255 255 255 / 0.03), 0 24px 48px -28px rgb(0 0 0 / 0.75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0f1011; --band: #151617; --card: #1b1c1e;
  --ink: #ececed; --ink-2: #b7b9bd; --ink-3: #a1a4a9;
  --line: #2a2c2f; --line-strong: #44474b;
  --accent: #5b8ff5; --accent-hover: #74a1f7; --accent-text: #8db2f8; --on-accent: #0b0c0d;
  --mask: #23314e; --mask-edge: #364c79; --warn-bg: #392513; --warn-ink: #f7bf7d;
  --shadow-frame: 0 40px 80px -40px rgb(0 0 0 / 0.7), 0 2px 8px -4px rgb(0 0 0 / 0.5);
  --shadow-pop: 0 8px 24px -8px rgb(0 0 0 / 0.7);
  --shadow-card: 0 0 0 1px rgb(255 255 255 / 0.03), 0 24px 48px -28px rgb(0 0 0 / 0.75);
  color-scheme: dark;
}

/* ---- base ----------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; interpolate-size: allow-keywords; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* Russian waits for its words instead of flashing English first (assets/early.js). */
.lang-pending body { visibility: hidden; }
img, svg { max-width: 100%; }
/* icons keep their own size inside shrink-to-fit boxes (Safari and Firefox count a % max-width as 0) */
.ic { max-width: none; }
/* a value chip and the punctuation after it never part at a line end: <span class="nb">chip,</span> */
.nb { white-space: nowrap; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; font-weight: 600; }
h1, h2 { font-weight: 560; }
h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.036em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.4; letter-spacing: -0.012em; }
p { margin: 0; text-wrap: pretty; }
/* Firefox has no "pretty" yet: balanced lines keep it from ending a paragraph on one word. */
@supports not (text-wrap: pretty) { p:not(.lead) { text-wrap: balance; } }
.lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 62ch; letter-spacing: -0.008em; }
.fine { font-size: 14px; color: var(--ink-3); }
.mono, code { font-family: var(--mono); font-size: 0.86em; font-variant-ligatures: none; }
/* the gutter, or more where a phone's notch or rounded corner needs it (landscape) */
.wrap { width: 100%; max-width: var(--frame); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the skip link waits clipped in its corner (not 9999 px off to the side) and shows on focus */
.skip { position: absolute; left: 12px; top: 8px; z-index: 100; background: var(--ink); color: var(--page); padding: 8px 12px; border-radius: 8px; }
.skip:not(:focus) { clip-path: inset(50%); pointer-events: none; }
.link { color: var(--accent-text); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color var(--t-fast) ease; }
@media (hover: hover) { .link:hover { text-decoration-color: currentColor; } }
/* under a finger a text link answers 44 px tall, without moving a line */
@media (pointer: coarse) { .link, .proof-note a { position: relative; } .link::before, .proof-note a::before { content: ""; position: absolute; inset: calc(50% - 22px) -4px; } }
.tok { display: inline-block; padding: 0 6px; border-radius: var(--r-chip); font-family: var(--mono); font-size: 0.82em; font-weight: 500; line-height: 1.7; color: var(--ink-2); background: var(--card); outline: 1px dashed var(--line-strong); outline-offset: -1px; white-space: nowrap; vertical-align: 1px; }
.val { display: inline-block; padding: 0 6px; border-radius: var(--r-chip); background: var(--mask); box-shadow: inset 0 0 0 1px var(--mask-edge); color: var(--ink); font-weight: 500; line-height: 1.6; white-space: nowrap; }
.kbd { font-size: 0.92em; font-weight: 600; color: var(--ink); background: var(--band); border: 1px solid var(--line); border-radius: var(--r-chip); padding: 0 6px; white-space: nowrap; }
.kbd-wrap { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---- header ---------------------------------------------------------------------- */
/* One row from 981 px up; below that the links fold into a menu under the bar. Over the dark
   band the header takes the band's colours (site.js sets .over-ink), so it never turns grey. */
.site-header {
  position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; view-transition-name: site-header;
  transition: border-color var(--t-mid) var(--ease-out), background-color var(--t-mid) var(--ease-out);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header.over-ink {
  --page: #0e1014; --band: #16181c; --card: #1a1d22; --ink: #eceef1; --ink-2: #b4b9c1; --ink-3: #9aa0a9;
  --line: #2a2e35; --line-strong: #3d424b; --accent: #5b8ff5; --accent-hover: #74a1f7; --accent-text: #8db2f8; --on-accent: #0b0c0d;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-header.over-ink { --page: #050506; --band: #0c0d0f; --card: #111316; --line: #24272c; --line-strong: #363b42; } }
:root[data-theme="dark"] .site-header.over-ink { --page: #050506; --band: #0c0d0f; --card: #111316; --line: #24272c; --line-strong: #363b42; }
.site-header :is(.brand, .nav a, .lang, .menu, .btn) { transition: color var(--t-mid) var(--ease-out), background-color var(--t-mid) var(--ease-out), border-color var(--t-mid) var(--ease-out); }
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 5px; pointer-events: none; }
.topbar { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); flex: none; }
.brand .wordmark { height: 23px; width: auto; display: block; }
.nav { --nav-x: 12px; display: flex; gap: 2px; }
.nav a { position: relative; padding: 8px var(--nav-x); border-radius: 8px; color: var(--ink-2); font-size: var(--fs-small); font-weight: 500; white-space: nowrap; text-decoration: none; }
@media (hover: hover) { .nav a:hover { color: var(--ink); background: var(--band); } }
/* the page you are on: an ink bar under the word, not only a darker word (a hover is a pill) */
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: var(--nav-x); right: var(--nav-x); bottom: 3px; height: 2px; border-radius: 1px; background: currentColor; }
.nav .nav-signin { display: none; }
/* just above the fold point the row tightens a little, so the Russian (and a fifth link) still fit */
@media (max-width: 1100px) { .topbar { gap: 20px; } .nav { --nav-x: 10px; } }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang, .menu { height: 36px; min-width: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: 600 var(--fs-meta)/1 var(--font); cursor: pointer; display: inline-grid; place-items: center; }
@media (hover: hover) { .lang:hover, .menu:hover { color: var(--ink); background: var(--band); } }
.menu { display: none; }
.menu .ic { width: 20px; height: 20px; }
.menu .i-close, .site-header.open .menu .i-open { display: none; }
.site-header.open .menu .i-close { display: inline; }
/* a phone can't run the Mac app: its bar offers Sign in where a computer's offers Download */
[data-os="ios"] .bar-end .bar-download, [data-os="android"] .bar-end .bar-download { display: none; }
@media (max-width: 980px) {
  .nav { display: none; }
  .menu { display: inline-grid; }
  .site-header.open .nav {
    display: grid; position: absolute; left: 0; right: 0; top: 100%;
    padding: 8px max(var(--gutter), env(safe-area-inset-right)) 18px max(var(--gutter), env(safe-area-inset-left));
    background: var(--page); border-bottom: 1px solid var(--line); box-shadow: 0 24px 32px -28px rgb(14 16 20 / 0.28);
  }
  .site-header.open .nav { --nav-x: 8px; }
  .site-header.open .nav a { padding-block: 12px; margin-inline: -8px; font-size: 17px; }
  .site-header.open .nav a[aria-current="page"]::after { right: auto; width: 24px; bottom: 6px; }
}
@media (max-width: 980px) and (prefers-reduced-motion: no-preference) {
  .site-header.open .nav { animation: menu-in var(--t-mid) var(--ease-out); }
  @keyframes menu-in { from { opacity: 0; translate: 0 -6px; } }
}
@media (max-width: 560px) {
  .bar-end .hide-s { display: none; }
  [data-os="ios"] .bar-end .bar-signin, [data-os="android"] .bar-end .bar-signin { display: inline-flex; }
  /* where the bar has no room for Sign in, it ends the menu */
  .site-header.open .nav .nav-signin { display: block; margin-top: 17px; color: var(--ink); font-weight: 600; }
  .site-header.open .nav .nav-signin::before { content: ""; position: absolute; top: -9px; left: 8px; right: 8px; height: 1px; background: var(--line); }
  [data-os="ios"] .site-header.open .nav .nav-signin, [data-os="android"] .site-header.open .nav .nav-signin { display: none; }
}
/* a phone's hero offers Sign in itself: the header's waits until that row has scrolled away (site.js) */
[data-os="ios"].hero-cta-on .bar-end .bar-signin, [data-os="android"].hero-cta-on .bar-end .bar-signin { visibility: hidden; }
/* Under 320 px (a folded phone's 280) the bar has room for the mark, the language and the menu only:
   its own button goes, and Sign in ends the menu on a phone too. */
@media (max-width: 319px) {
  .bar-end .bar-signin, .bar-end .bar-download, [data-os] .bar-end .bar-signin, [data-os] .bar-end .bar-download { display: none; }
  [data-os] .site-header.open .nav .nav-signin { display: block; }
}
/* fingers: every control in the bar is at least 44 px */
@media (pointer: coarse) {
  .lang, .menu { height: 44px; min-width: 44px; }
  .bar-end .btn-s { min-height: 44px; }
  .brand { min-height: 44px; }
  .nav a { padding-block: 10px; }
}
/* a phone on its side keeps more of its 390 px for the page */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --hdr-h: 52px; }
  .topbar { height: 52px; }
  html { scroll-padding-top: 72px; }
}

/* ---- buttons --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px;
  border-radius: var(--r-ctl); border: 1px solid transparent; font: 600 var(--fs-small)/1.2 var(--font); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease, translate var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px rgb(14 16 20 / 0.12), inset 0 1px 0 rgb(255 255 255 / 0.14); }
@media (hover: hover) { .btn-primary:hover { background: var(--accent-hover); } }
.btn-ink { background: var(--ink); color: var(--page); }
@media (hover: hover) { .btn-ink:hover { background: color-mix(in srgb, var(--ink) 84%, var(--accent)); } }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
@media (hover: hover) { .btn-quiet:hover { border-color: var(--ink-3); background: var(--band); } }
.btn-s { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-s .ic { width: 16px; height: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
/* below 360 px (a phone at 400% zoom) a long label wraps inside its button instead of spilling out */
@media (max-width: 359px) { .btn { white-space: normal; text-align: center; text-wrap: balance; padding-block: 10px; } }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---- sections -------------------------------------------------------------------- */
section { padding-block: clamp(80px, 10vw, 136px); }
/* A jump to a section lands its heading 48 px under the header, not a padding's height lower
   (html keeps scroll-padding-top for focus); sections with their own padding set their own. */
section[id] { scroll-margin-top: calc(24px - clamp(80px, 10vw, 136px)); }
section + section { border-top: 1px solid var(--line); }
section.band { background: var(--band); border-top-color: transparent; }
section.band + section { border-top-color: transparent; }
section.tight { padding-top: 24px; }
.head { max-width: 760px; display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }
.head p { font-size: var(--fs-lead); color: var(--ink-2); max-width: 60ch; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-text { display: grid; gap: 18px; align-content: start; }
.split-text p { color: var(--ink-2); font-size: var(--fs-lead); }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---- hero ------------------------------------------------------------------------ */
/* Tight above the window, so its chat is in the first screen; the window stands on a grey
   stage (the hero's last 240 px) that the map below continues. */
.hero { padding-block: clamp(36px, 4.4vw, 56px) 0; background: linear-gradient(to bottom, var(--page) calc(100% - 240px), var(--band) calc(100% - 240px)); }
.hero-copy { display: grid; gap: 20px; justify-items: start; }
.hero-copy h1 { max-width: 21ch; }
.hero-copy .lead { max-width: 54ch; }
.hero-copy .fine { margin-top: -4px; }
.hero-shot { margin-top: clamp(32px, 3.4vw, 44px); padding-bottom: clamp(56px, 6vw, 88px); }
/* short laptop screens (1366x768, 1440x780 in Safari, 1280x800): less air above the window, so
   the message and the start of the answer are in the first screen */
@media (min-width: 641px) and (max-height: 860px) {
  .hero { padding-top: 28px; }
  .hero-copy { gap: 14px; }
  .hero-shot { margin-top: 24px; }
}
/* phones: a little less air above the window, so its chat starts in the first screen */
@media (max-width: 640px) {
  .hero { padding-top: 24px; }
  .hero-copy { gap: 16px; }
  .hero-shot { margin-top: 28px; }
  .hero .fine { font-size: 15px; }
}

/* ---- proof: the numbers close the masking chapter, on the same grey as the tiles above -------- */
.proof { padding-block: 0 clamp(72px, 9vw, 120px); border-top: 0; }
.stats { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line-strong); }
.stats > li { padding: 28px 24px 30px; display: flex; flex-direction: column; gap: 8px; }
.stats > li:first-child { padding-left: 0; }
.stats > li + li { border-left: 1px solid var(--line); }
.stats .num { margin: 0; font-size: clamp(36px, 4vw, 52px); font-weight: 560; letter-spacing: -0.04em; line-height: 1.08; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.stats .num .of { font-size: 0.42em; letter-spacing: -0.01em; font-weight: 560; color: var(--ink-2); }
.stats .lbl { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.45; max-width: 28ch; }
.proof-note { padding: 16px 0 0; font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 16px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > li { padding: 22px 16px 24px; }
  .stats > li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats > li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
/* under 360 px two columns can't hold "18,5 мс" and its label: one column, a rule between */
@media (max-width: 359px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats > li, .stats > li:nth-child(odd) { padding: 18px 0 20px; border-left: 0; }
  .stats > li + li { border-top: 1px solid var(--line); }
}

/* ---- how it works ---------------------------------------------------------------- */
.how-note { margin-top: 28px; font-size: 15px; color: var(--ink-3); max-width: 60ch; }

/* ---- screenshots ------------------------------------------------------------------ */
.shot { margin: 0; display: grid; gap: 12px; min-width: 0; }
.shot-win { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-frame); }
.shot-bar { height: 32px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--band); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.shot-bar span { margin: 0 auto; translate: -22px 0; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: 14px; color: var(--ink-3); }

/* ---- roles ----------------------------------------------------------------------- */
.tab-list { position: relative; display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--band); border: 1px solid var(--line); margin-bottom: 32px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
@media (max-width: 480px) { .tab-list button { padding: 0 10px; font-size: 13.5px; } }
.tab-list button { position: relative; z-index: 1; height: 38px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font: 600 14.5px/1 var(--font); cursor: pointer; white-space: nowrap; transition: color var(--t-mid) ease; }
.tab-list button[aria-selected="true"] { color: var(--ink); }
.tab-ink { position: absolute; z-index: 0; top: 4px; left: 0; height: 38px; width: var(--w, 0); translate: var(--x, 0) 0; border-radius: 9px; background: var(--card); box-shadow: 0 1px 2px rgb(14 16 20 / 0.08), 0 0 0 1px var(--line); transition: translate var(--t-mid) var(--ease-out), width var(--t-mid) var(--ease-out); }
/* The facts above, the screen below at its own size: you can read it. */
.tab-panel { display: grid; gap: 32px; }
.tab-panel:not([hidden]) { animation: panel-in var(--t-slow) var(--ease-out); }
@keyframes panel-in { from { opacity: 0; translate: 0 10px; } }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 48px; max-width: 920px; }
.facts li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; font-size: 16.5px; color: var(--ink); line-height: 1.5; }
.facts .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); stroke-width: 2.2; }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* ---- browser or Mac --------------------------------------------------------------- */
.compare-wrap { margin-bottom: 36px; }
.compare { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.compare thead th, .compare thead td { padding-top: 0; padding-bottom: 16px; border-bottom-color: var(--line-strong); }
.ways-col { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.3; color: var(--ink); }
.ways-tile { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--band); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.ways-tile .ic { width: 18px; height: 18px; }
/* the column names stay in view over the seven rows, just under the site header */
@media (min-width: 761px) {
  .compare thead th, .compare thead td { position: sticky; top: var(--hdr-h); z-index: 2; padding-top: 14px; background: var(--page); border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line-strong); }
  .compare-wrap { margin-top: -14px; }
}
/* a phone on its side has no room for a stuck row of column names */
@media (max-height: 500px) and (orientation: landscape) {
  .compare thead th, .compare thead td { position: static; }
}
.compare tbody th { width: 24%; font-weight: 500; color: var(--ink-2); font-size: 15px; }
.compare tbody td { width: 38%; color: var(--ink); }
.compare tbody tr { transition: background-color var(--t-fast) ease; }
@media (max-width: 760px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto !important; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .compare tbody th { padding: 0 0 8px; border: 0; color: var(--ink); font-weight: 600; }
  .compare td { padding: 4px 0; border: 0; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 12px; }
  .compare td::before { content: attr(data-label); color: var(--ink-3); font-size: 14px; }
}

/* ---- keys: the stored chats ------------------------------------------------------ */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 10px; }
.pair > div { display: grid; gap: 6px; align-content: start; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.pair p { font-size: 15px; color: var(--ink-2); }
.pair.stacked { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) { .pair { grid-template-columns: minmax(0, 1fr); } }
.vault { border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--card); overflow: hidden; box-shadow: var(--shadow-card); }
.vault-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.vault-title { font-size: 14px; font-weight: 600; }
.seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: var(--r-ctl); background: var(--band); border: 1px solid var(--line); }
.seg button { position: relative; height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font: 600 var(--fs-meta)/1 var(--font); cursor: pointer; transition: background-color var(--t-mid) var(--ease-out), color var(--t-mid) var(--ease-out); }
/* the side that is on is filled with ink (3:1 and more, light, dark and on the band); Windows high contrast gets its highlight */
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--page); }
@media (hover: hover) { .seg button[aria-pressed="false"]:hover { color: var(--ink); } }
@media (pointer: coarse) { .seg button::before { content: ""; position: absolute; inset: -6px 0; } }
@media (forced-colors: active) { .seg button[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; } }
.vault-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.vault-table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 10px 16px; border-bottom: 1px solid var(--line); }
.vault-table th:nth-child(1) { width: 30%; } .vault-table th:nth-child(3) { width: 84px; }
.vault-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; color: var(--ink); }
.vault-table td:last-child { color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* the ciphertext is as long as it is; two lines of it say enough */
.vault[data-state="sealed"] .vault-table td:not(:last-child) { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.vault-table td > span[aria-hidden] { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
@media (max-width: 560px) {
  .vault-table th:nth-child(1), .vault-table td:nth-child(1) { display: none; }
  .vault-table th, .vault-table td { padding-inline: 12px; }
  .vault-table th:nth-child(3) { width: 76px; }
}
/* the company's switch on its key service */
.ksw { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin: -6px 0; padding: 0 2px 0 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 500 13.5px/1.35 var(--font); text-align: left; cursor: pointer; }
.ksw-track { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--band); box-shadow: inset 0 0 0 1.5px var(--ink-3); transition: background-color var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out); }
.ksw-thumb { position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-3); transition: transform var(--t-mid) var(--ease-out), background-color var(--t-mid) var(--ease-out); }
.ksw[aria-checked="true"] .ksw-track { background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ksw[aria-checked="true"] .ksw-thumb { transform: translateX(16px); background: #fff; }
@media (hover: hover) { .ksw:hover .ksw-track { box-shadow: inset 0 0 0 1.5px var(--ink-2); } }
@media (hover: hover) { .ksw[aria-checked="true"]:hover .ksw-track { background: var(--accent-hover); box-shadow: inset 0 0 0 1.5px var(--accent-hover); } }
.ksw-label { text-wrap: balance; }
.ksw-note { padding: 14px 16px; font-size: 13.5px; color: var(--ink-2); }
.ksw-note .ksw-copy { color: var(--ink-3); }
@media (max-width: 560px) {
  .ksw { flex: 1 1 100%; justify-content: space-between; margin: -4px -2px -6px -8px; }
}
@media (forced-colors: active) {
  .ksw-track { forced-color-adjust: none; background: Canvas; box-shadow: inset 0 0 0 1.5px ButtonText; }
  .ksw-thumb { forced-color-adjust: none; background: ButtonText; }
  .ksw[aria-checked="true"] .ksw-track { background: Highlight; box-shadow: inset 0 0 0 1.5px Highlight; }
  .ksw[aria-checked="true"] .ksw-thumb { background: HighlightText; }
}
@media (prefers-reduced-motion: reduce) {
  .ksw-track, .ksw-thumb { transition: none; }
}

/* ---- FAQ ------------------------------------------------------------------------- */
/* The heading and three places to read further travel down beside the questions. */
.cv-faq-side { gap: 28px; }
@media (min-width: 961px) { .cv-faq-side { position: sticky; top: 104px; } }
.cv-more { list-style: none; margin: 0; padding: 0; display: grid; max-width: 340px; border-top: 1px solid var(--line); }
.cv-more li { border-bottom: 1px solid var(--line); }
.cv-more a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 2px; color: var(--ink-2); font-size: 15.5px; font-weight: 500; text-decoration: none; transition: color var(--t-fast) ease; }
@media (hover: hover) { .cv-more a:hover { color: var(--ink); } }
.cv-more .ic { width: 18px; height: 18px; color: var(--ink-3); transition: color var(--t-fast) ease; }
@media (hover: hover) { .cv-more a:hover .ic { color: var(--accent-text); } }
/* one column: the three links wrap in a row under the heading, before the questions */
@media (max-width: 960px) {
  .cv-faq-side { gap: 12px; }
  .cv-more { display: flex; flex-wrap: wrap; column-gap: 24px; max-width: none; border-top: 0; }
  .cv-more li { border-bottom: 0; }
  .cv-more a { min-height: 44px; gap: 8px; padding: 0; font-size: 15px; color: var(--accent-text); }
  @media (hover: hover) { .cv-more a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; } }
  .cv-more .ic { width: 16px; height: 16px; color: currentColor; }
}
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 17.5px; font-weight: 600; letter-spacing: -0.012em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); rotate: 45deg; translate: 0 -3px; transition: rotate var(--t-mid) var(--ease-out), translate var(--t-mid) var(--ease-out); }
.faq details[open] summary::after { rotate: 225deg; translate: 0 2px; }
.faq .answer { padding: 0 0 24px; color: var(--ink-2); max-width: 64ch; font-size: 16px; }
.faq details::details-content { height: 0; overflow: clip; transition: height var(--t-mid) var(--ease-out), content-visibility var(--t-mid) allow-discrete; }
.faq details[open]::details-content { height: auto; }
/* Safari and Firefox can't animate to height: auto, so the answer opens by its grid row instead;
   to close, builder/js/cv-faq.js folds it (.cv-folding) before the details close. */
@supports not (interpolate-size: allow-keywords) {
  .faq details::details-content { height: auto; display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-mid) var(--ease-out), content-visibility var(--t-mid) allow-discrete; }
  .faq details[open]::details-content { grid-template-rows: 1fr; }
  .faq details.cv-folding::details-content { grid-template-rows: 0fr; }
  .faq details.cv-folding summary::after { rotate: 45deg; translate: 0 -3px; }
  .faq .answer { min-height: 0; overflow: hidden; padding-bottom: 0; }
  .faq .answer > :last-child { padding-bottom: 24px; }
}
/* the site-wide "less motion" rule names ::before and ::after only, not ::details-content */
@media (prefers-reduced-motion: reduce) { .faq details::details-content { transition: none; } }

/* ---- closing --------------------------------------------------------------------- */
.closing-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.closing-in > div:first-child { display: grid; gap: 14px; max-width: 640px; }
.closing-in p { color: var(--ink-2); font-size: 17px; }

/* ---- inner pages ------------------------------------------------------------------ */
.page-top { padding-block: clamp(56px, 8vw, 96px) clamp(48px, 6vw, 72px); }
.page-top .wrap { display: grid; gap: 22px; justify-items: start; }
.page-top h1 { max-width: 18ch; }
.page-top.not-found { padding-block: 120px; }
.stack { display: grid; gap: 16px; min-width: 0; justify-items: start; }
.stack > * { min-width: 0; max-width: 100%; }
.note { font-size: 15px; color: var(--ink-2); max-width: 62ch; }
.fine.after { margin-top: 4px; }

/* the download card */
.dl { width: 100%; margin-top: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-card); }
.dl-mark { width: 72px; height: 72px; filter: drop-shadow(0 10px 16px var(--pg-shade)); }
.dl-main { display: grid; gap: 16px; min-width: 0; }
.dl-main h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.025em; }
.dl-main p { color: var(--ink-2); }
@media (max-width: 640px) { .dl { grid-template-columns: minmax(0, 1fr); } .dl-mark { width: 60px; height: 60px; } }

/* rows: the platforms */
.rows { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.rows th, .rows td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.rows tr:first-child th, .rows tr:first-child td { border-top: 1px solid var(--line); }
.rows th { font-weight: 600; width: 30%; }
.rows td { color: var(--ink-2); }
.rows td.end { text-align: right; padding-right: 0; white-space: nowrap; }
.rows tr[data-current="true"] th, .rows tr[data-current="true"] td { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.rows tr[data-current="true"] th { box-shadow: inset 3px 0 0 var(--accent); padding-left: 16px; }
/* the tint ends where the row does: what is last in it keeps the same room as the name at its start */
.rows tr[data-current="true"] td:last-child { padding-right: 16px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.status.ok { color: var(--ink); }
.status.ok::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
@media (max-width: 720px) {
  .rows, .rows tbody, .rows tr, .rows th, .rows td { display: block; width: auto; }
  .rows tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .rows tr:first-child { border-top: 1px solid var(--line); }
  .rows th, .rows td, .rows tr:first-child th, .rows tr:first-child td { border: 0; padding: 2px 0; text-align: left; }
  .rows td.end { text-align: left; }
  .rows tr[data-current="true"] { box-shadow: inset 3px 0 0 var(--accent); padding-inline: 14px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
  .rows tr[data-current="true"] th, .rows tr[data-current="true"] td { background: none; box-shadow: none; padding-left: 0; padding-right: 0; }
}

/* steps */
.install { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 26px; }
.install > li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; }
.install > li::before { content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--band); border: 1px solid var(--line); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.install h3 { align-self: center; }
.install p { color: var(--ink-2); font-size: 15.5px; }
.install .pg-nw { white-space: nowrap; }

/* check the file */
.hash { width: 100%; font-family: var(--mono); font-size: 13.5px; color: var(--ink); background: var(--band); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-wrap: anywhere; font-variant-ligatures: none; }
.cmd { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.cmd pre { flex: 1 1 300px; min-width: 0; margin: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--band); color: var(--ink); font-family: var(--mono); font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd .btn { min-height: 46px; }

/* notes and lists */
.notes { display: grid; gap: 12px; font-size: 15.5px; }
.notes ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.notes li > ul { margin-top: 10px; }
.notes li::marker { color: var(--ink-3); }
.notes strong { font-weight: 600; }
.notes .pg-chev { width: 12px; height: 12px; margin: 0 3px; vertical-align: -1px; color: var(--ink-3); }
.plain { margin: 0; padding-left: 20px; display: grid; gap: 12px; color: var(--ink); font-size: 16px; }
.plain li::marker { color: var(--ink-3); }
.sub { margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); margin: 0; font-size: 15.5px; border-top: 1px solid var(--line); }
.kv dt, .kv dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--ink-3); padding-right: 24px; }
.kv dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .kv { grid-template-columns: minmax(0, 1fr); } .kv dt { border-bottom: 0; padding-bottom: 0; } .kv dd { padding-top: 4px; } }

/* tests and key modes */
.table-wrap { width: 100%; }
.tests { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tests th, .tests td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line-strong); text-align: left; }
.tests thead th { font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.tests tbody th { font-weight: 500; }
.tests td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tests td:first-of-type { width: 46%; }
.tests .num { font-weight: 600; }
.meter { display: inline-block; vertical-align: middle; width: calc(100% - 56px); max-width: 220px; height: 6px; margin-right: 10px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; border-radius: 6px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(calc(var(--v, 0) / 100)); transition: transform 900ms var(--ease-out); }
.modes thead th { vertical-align: bottom; }
.modes tbody th { width: 22%; }
.modes tbody td, .modes thead th { width: 26%; }
@media (max-width: 760px) { .modes td::before { content: attr(data-label); } }
/* phones: the column name on its own line above the value, so it is not squeezed into a third of the width */
@media (max-width: 560px) { .modes td { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 8px 0; } .modes td::before { font-size: 13.5px; } }

/* changelog */
.timeline { position: relative; display: grid; }
.release { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; padding-block: 36px; border-top: 1px solid var(--line); }
.release:first-child { border-top: 0; padding-top: 0; }
.release-head { position: sticky; top: 88px; align-self: start; display: grid; gap: 4px; }
.release h2 { font-size: 28px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.release .when { color: var(--ink-3); font-size: 14px; }
.release .latest { justify-self: start; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent-text); background: var(--mask); box-shadow: inset 0 0 0 1px var(--mask-edge); border-radius: 6px; padding: 2px 8px; }
.release .files { font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 16px; }
/* under a finger each file link is a 44 px row of its own height, with no gap to miss into */
@media (pointer: coarse) { .release .files { row-gap: 0; align-items: center; } .release .files a { display: inline-flex; align-items: center; min-height: 44px; } }
@media (max-width: 720px) { .release { grid-template-columns: minmax(0, 1fr); gap: 12px; } .release-head { position: static; } }

/* ---- footer ---------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px calc(48px + env(safe-area-inset-bottom)); font-size: var(--fs-small); }
.foot { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-about { display: grid; gap: 14px; align-content: start; max-width: 32ch; color: var(--ink-2); }
.foot-about .wordmark { height: 22px; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col h2 { font-size: var(--fs-meta); font-weight: 600; letter-spacing: 0; color: var(--ink); margin-bottom: 4px; }
.foot-col a { color: var(--ink-2); text-decoration: none; transition: color var(--t-fast) ease; justify-self: start; }
@media (hover: hover) { .foot-col a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); } }
.foot-copy { grid-column: 1 / -1; padding-top: 28px; margin-top: 8px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: var(--fs-meta); }
@media (max-width: 820px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }
@media (pointer: coarse) {
  .foot-col { gap: 0; }
  .foot-col h2 { margin-bottom: 2px; }
  .foot-col a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---- motion ---------------------------------------------------------------------- */
/* Only with JavaScript and without a wish for less motion; otherwise everything is simply there. */
@media (prefers-reduced-motion: no-preference) {
  /* The words stand still; the product comes up under them, once: by movement alone, so its
     text is never half-transparent (axe stays clean from the first frame). */
  .js .hero-shot { animation: pw-rise var(--t-slow) var(--ease-out) 120ms both; }
  @keyframes pw-rise { from { translate: 0 16px; } }
  @keyframes rise { from { opacity: 0; translate: 0 16px; } }
  /* from page to page: a short cross-fade, the header stays put */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--t-mid); animation-timing-function: var(--ease-out); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* The product window: Cordes as it looks, drawn with the app's own tokens
   (frontend/src/styles/tokens.css), so the site shows the real thing. */
.pw {
  --a-page: #ffffff; --a-sidebar: #f8f8f9; --a-surface: #f4f5f7; --a-card: #ffffff; --a-hover: #f4f5f7;
  --a-mask: #e8efff; --a-mask-edge: #cbd9fb; --a-accent: #2f6bff; --a-accent-text: #2a67ff;
  --a-ink: #111318; --a-ink-2: #4b5563; --a-ink-3: #6b7280; --a-reading: #262a31;
  --a-line: #e5e7eb; --a-line-strong: #c9cdd4; --a-shadow-card: 0 1px 2px rgb(17 19 24 / 0.04), 0 1px 1px rgb(17 19 24 / 0.02);
  --a-token: #ffffff; --a-token-edge: #9aa1ad; --a-model-bg: #f1f2f5;
  --win-edge: var(--a-line); --win-glint: transparent;
  --win-shadow: 0 40px 80px -32px rgb(17 19 24 / 0.28), 0 12px 24px -12px rgb(17 19 24 / 0.10);
  position: relative; margin: 0; font-family: "Inter", ui-sans-serif, system-ui, sans-serif; color: var(--a-ink);
  font-size: 15px; line-height: 24px; -webkit-font-smoothing: antialiased;
}
/* Dark: a lit edge, a deep shadow and a faint accent light above, so the frame stands off a dark page. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pw {
    --a-page: #111213; --a-sidebar: #151617; --a-surface: #181a1b; --a-card: #202223; --a-hover: #323335;
    --a-mask: #23314e; --a-mask-edge: #364c79; --a-accent: #5088f2; --a-accent-text: #8bb1f7;
    --a-ink: #e5e6e7; --a-ink-2: #b4b6b8; --a-ink-3: #a0a2a4; --a-reading: #d3d5d7;
    --a-line: #3b3c3e; --a-line-strong: #4e5052; --a-shadow-card: none;
    --a-token: #111213; --a-token-edge: #6a6d72; --a-model-bg: #0b0c0c;
    --win-edge: rgb(255 255 255 / 0.1); --win-glint: rgb(255 255 255 / 0.06);
    --win-shadow: 0 0 0 1px rgb(0 0 0 / 0.6), 0 40px 100px -40px rgb(0 0 0 / 0.9), 0 -30px 140px -50px color-mix(in srgb, var(--a-accent) 30%, transparent);
  }
}
:root[data-theme="dark"] .pw {
  --a-page: #111213; --a-sidebar: #151617; --a-surface: #181a1b; --a-card: #202223; --a-hover: #323335;
  --a-mask: #23314e; --a-mask-edge: #364c79; --a-accent: #5088f2; --a-accent-text: #8bb1f7;
  --a-ink: #e5e6e7; --a-ink-2: #b4b6b8; --a-ink-3: #a0a2a4; --a-reading: #d3d5d7;
  --a-line: #3b3c3e; --a-line-strong: #4e5052; --a-shadow-card: none;
  --a-token: #111213; --a-token-edge: #6a6d72; --a-model-bg: #0b0c0c;
  --win-edge: rgb(255 255 255 / 0.1); --win-glint: rgb(255 255 255 / 0.06);
  --win-shadow: 0 0 0 1px rgb(0 0 0 / 0.6), 0 40px 100px -40px rgb(0 0 0 / 0.9), 0 -30px 140px -50px color-mix(in srgb, var(--a-accent) 30%, transparent);
}
.pw svg { flex: none; }
.pw .ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* the window */
.win { border: 1px solid var(--win-edge); border-radius: var(--r-frame); overflow: hidden; background: var(--a-page); box-shadow: var(--win-shadow); }
.win-bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--a-sidebar); border-bottom: 1px solid var(--a-line); box-shadow: inset 0 1px 0 var(--win-glint); }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--a-line-strong); }
.win-bar i:nth-child(1) { background: #ff5f57; } .win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin: 0 auto; transform: translateX(-26px); font-size: 12.5px; font-weight: 500; color: var(--a-ink-3); }
/* tall enough for the whole Russian answer and the line under it (and a little more where the column narrows) */
.win-body { display: grid; grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 624px; }
@media (max-width: 720px) { .win-body { height: 648px; } }

/* the sidebar */
.a-side { background: var(--a-sidebar); border-right: 1px solid var(--a-line); padding: 14px 10px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 0; overflow: hidden; }
.a-side > * { flex-shrink: 0; }
.a-logo { height: 22px; margin: 2px 8px 14px; color: var(--a-ink); }
.a-logo svg { height: 22px; width: auto; display: block; }
.a-new { height: 38px; border-radius: 8px; background: var(--a-ink); color: var(--a-page); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.a-nav span, .a-chat { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--a-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-nav span.on, .a-chat.on { background: var(--a-page); color: var(--a-ink); box-shadow: inset 0 0 0 1px var(--a-line); }
.a-chat { display: block; line-height: 34px; font-weight: 400; }
.a-group { margin: 14px 10px 4px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--a-ink-2); }
.a-budget { margin-top: auto; border: 1px solid var(--a-line); border-radius: 10px; background: var(--a-card); padding: 10px 12px; display: grid; gap: 6px; font-size: 12.5px; color: var(--a-ink-2); font-variant-numeric: tabular-nums; }
.a-budget b { font-size: 13.5px; color: var(--a-ink); font-weight: 600; }
.a-budget .track { height: 4px; border-radius: 4px; background: var(--a-surface); overflow: hidden; }
.a-budget .track i { display: block; height: 100%; width: 93%; background: var(--a-accent); border-radius: 4px; }
.a-me { display: flex; align-items: center; gap: 10px; padding: 10px 6px 2px; font-size: 13px; color: var(--a-ink-2); line-height: 1.3; }
.a-me b { display: block; color: var(--a-ink); font-weight: 600; }
.a-me .av { width: 30px; height: 30px; border-radius: 7px; background: var(--a-ink); color: var(--a-page); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }

/* the chat: one column that may shrink, so the title gives way and nothing is cut off */
.a-main { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; }
.a-head { height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 18px 0 24px; border-bottom: 1px solid var(--a-line); }
.a-head b { font-size: 15px; font-weight: 600; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-model { height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--a-line-strong); border-radius: 8px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.a-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 6px; background: var(--a-mask); box-shadow: inset 0 0 0 1px var(--a-mask-edge); font-size: 12.5px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.a-pill .ic, .a-count .ic, .a-meta .ic { width: 13px; height: 13px; color: var(--a-accent); }
.a-pill .short { display: none; }

/* the thread, twice: what you see, and under it what the model got */
.a-thread { position: relative; overflow: hidden; }
.pw.xr-on .a-thread { cursor: pointer; }
.layer { position: absolute; inset: 0; padding: 40px 24px 16px; display: grid; align-content: start; gap: 14px; }
/* the app's own column: 768 px at most, your message at most three quarters of it */
.layer > * { width: 100%; max-width: 768px; margin-inline: auto; }
/* Only the model's layer and the line read the split, and it is not inherited, so moving the
   line restyles those two elements and nothing under them. */
@property --pw-split { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
.layer.model { background: var(--a-model-bg); clip-path: inset(0 0 0 var(--pw-split, 100%)); }
.a-you { justify-self: end; max-width: min(576px, 88%); margin-right: max(0px, calc((100% - 768px) / 2)); background: var(--a-surface); border-radius: 16px; padding: 12px 16px; color: var(--a-ink); }
.a-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--a-ink-2); line-height: 18px; }
.a-reply { color: var(--a-reading); font-size: 15px; line-height: 26px; }
.a-reply p { margin: 0 0 12px; }
.a-reply p:last-child { margin: 0; }
/* under every cloud answer, what it read, wrote and cost (the app's UsageLine) */
.a-usage { font-size: 13px; line-height: 18px; color: var(--a-ink-2); font-variant-numeric: tabular-nums; }

/* a protected value, and the placeholder the model saw instead */
.v { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--a-mask); box-shadow: inset 0 0 0 1px var(--a-mask-edge); color: var(--a-ink); font-weight: 500; line-height: 22px; white-space: nowrap; vertical-align: 1px; }
.v .ic { width: 11px; height: 11px; margin-right: 4px; vertical-align: -1px; color: var(--a-accent); }
.layer.model .v { background: var(--a-token); box-shadow: none; outline: 1px dashed var(--a-token-edge); outline-offset: -1px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; font-weight: 500; color: var(--a-ink-2); text-align: center; }
/* the same height as the line it stands under, so both layers wrap alike */
.layer.model .a-meta, .layer.model .a-usage { visibility: hidden; }
.layer.model .a-you { background: color-mix(in srgb, var(--a-surface) 40%, var(--a-model-bg)); box-shadow: inset 0 0 0 1px var(--a-line); }
.layer.model .a-reply, .layer.model .a-you { color: var(--a-ink-2); }

/* the line you drag: as wide as the thread and moved by translate, so a move only composites */
/* It comes in drawn from the top, never faded, so its words are never half-legible (axe at any moment);
   clipped away it can still take focus, which finishes the play. */
.xr { position: absolute; inset: 0; z-index: 3; translate: var(--pw-split, 100%) 0; clip-path: inset(0 -100vw 100% -100vw); pointer-events: none; touch-action: pan-y; transition: clip-path var(--t-move) var(--ease-out); }
.pw.xr-on .xr { clip-path: inset(-24px -100vw -24px -100vw); }
.xr::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--a-accent); }
/* a 44 px strip to take hold of; vertical swipes still scroll the page */
.xr::after { content: ""; position: absolute; top: 0; bottom: 0; left: -22px; width: 44px; cursor: ew-resize; touch-action: pan-y; }
.pw.xr-on .xr::after, .pw.xr-on .xr-knob { pointer-events: auto; }
.xr-knob {
  position: absolute; top: 50%; left: 0; translate: -50% -50%; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px;
  border-radius: 999px; background: var(--a-ink); color: var(--a-page); font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: ew-resize; touch-action: pan-y;
  box-shadow: 0 6px 18px -6px rgb(17 19 24 / 0.45);
}
.xr-knob:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 3px; }
.xr-knob .ic { width: 14px; height: 14px; }
.xr-tag { position: absolute; top: 12px; line-height: 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--a-ink-3); white-space: nowrap; }
.xr-tag.l { right: calc(100% + 12px); } .xr-tag.r { left: 12px; }
/* on the narrowest phones the labels beside the line stay inside the window */
@media (max-width: 400px) { .xr-tag { font-size: 10px; letter-spacing: 0.05em; } }

/* the composer */
.a-composer { margin: 0 24px 18px; border: 1px solid var(--a-line-strong); border-radius: 14px; background: var(--a-card); box-shadow: var(--a-shadow-card); padding: 12px 14px 12px 16px; max-width: 768px; width: calc(100% - 48px); justify-self: center; }
.a-label { display: block; font-size: 13px; color: var(--a-ink-2); line-height: 18px; }
.a-input { min-height: 48px; margin-top: 4px; color: var(--a-ink); }
.a-input .ph { color: var(--a-ink-3); }
.a-caret { display: inline-block; width: 1.5px; height: 18px; margin-left: 1px; vertical-align: -3px; background: var(--a-accent); animation: a-blink 1s steps(2) infinite; }
@keyframes a-blink { 50% { opacity: 0; } }
.a-row { display: flex; align-items: center; gap: 14px; margin-top: 8px; min-height: 40px; }
.a-count { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 6px; background: var(--a-mask); box-shadow: inset 0 0 0 1px var(--a-mask-edge); font-size: 13px; font-weight: 500; white-space: nowrap; }
.a-att { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--a-ink-2); white-space: nowrap; }
.a-send { margin-left: auto; height: 40px; min-width: 96px; border-radius: 8px; background: var(--a-ink); color: var(--a-page); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 500; transition: background-color var(--t-fast) ease; }
/* waiting for words: a lighter fill, still readable (white on it is 5:1, and 6:1 in dark) */
.a-send.idle { background: color-mix(in srgb, var(--a-ink) 62%, var(--a-page)); }
.a-send.press { background: color-mix(in srgb, var(--a-ink) 80%, var(--a-accent)); }

/* states the script steps through: things come in by a wipe and a short rise, never by a fade, so
   no text is ever drawn half-transparent below 4.5:1 (axe stays clean at any moment of the play) */
.pw [data-step] { transition: clip-path var(--t-move) var(--ease-out), translate var(--t-move) var(--ease-out); }
.pw.playing [data-step] { clip-path: inset(-40px); }
.pw.playing [data-step]:not(.shown) { clip-path: inset(100% -40px -40px -40px); translate: 0 8px; }
.pw .a-count { clip-path: inset(-2px); transition: clip-path var(--t-mid) var(--ease-out); }
.pw .a-count.off { clip-path: inset(-2px 100% -2px -2px); }
/* a word streams in from its left edge */
.pw.playing .w { clip-path: inset(-4px -4px -6px -4px); transition: clip-path var(--t-mid) var(--ease-out); }
.pw .w.off { clip-path: inset(-4px 100% -6px -4px); }
/* the square that breathes where the next words will appear, only while they do */
.a-stream { position: absolute; width: 0.5em; height: 0.5em; border-radius: 1.5px; background: var(--a-accent); left: var(--cx, 0); top: var(--cy, 0); opacity: 0; visibility: hidden; transition: opacity var(--t-fast) ease, visibility 0s var(--t-fast); }
.a-stream.on { opacity: 1; visibility: visible; transition: opacity var(--t-fast) ease; animation: a-breathe 1.4s ease-in-out infinite; }
@keyframes a-breathe { 50% { opacity: 0.25; } }
/* off screen, the play waits at its next step and nothing blinks */
.pw.pw-off .a-caret, .pw.pw-off .a-stream { animation-play-state: paused; }

/* a number in the app that changes by one: the old digit rolls out, the new one in (up for more, down for less) */
.pw-dg { display: inline-block; position: relative; clip-path: inset(0); font-variant-numeric: tabular-nums; }
.pw-dg > span { display: block; transition: translate var(--t-slow) var(--ease-out); }
.pw-dg > .pw-n { position: absolute; left: 0; top: 100%; }
.pw-dg.down > .pw-n { top: -100%; }
/* without JavaScript the page shows the end of the play: the new digit */
html:not(.js) .pw-dg > span, .pw-dg.go > span { translate: 0 -100%; }
html:not(.js) .pw-dg.down > span, .pw-dg.down.go > span { translate: 0 100%; }
.pw.playing .pw-dg:not(.go) > span { transition: none; }

/* the controls under the window */
.pw-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.pw-foot .btn { flex: none; }
/* without JavaScript there is no line to drag and nothing to play again */
html:not(.js) .pw-foot { display: none; }
/* "click" for a mouse, "tap" for a finger */
.pw-hint-click { display: none; }
@media (hover: hover) and (pointer: fine) {
  .pw-hint-click { display: inline; }
  .pw-hint-tap { display: none; }
}
@media (pointer: coarse) { .pw-foot .btn { min-height: 44px; } }

@media (max-width: 1000px) {
  .win-body { grid-template-columns: minmax(0, 1fr); }
  .a-side { display: none; }
}
/* short laptop screens: the window's own spacing a little tighter (see the hero block) */
@media (min-width: 641px) and (max-height: 860px) {
  .win-bar { height: 34px; }
  .a-head { height: 50px; }
  .layer { padding-top: 32px; gap: 10px; }
}
/* the model menu and the long pill need a wide window */
@media (max-width: 800px) {
  .a-model { display: none; }
  .a-pill .long { display: none; } .a-pill .short { display: inline; }
}
@media (max-width: 640px) {
  .pw { font-size: 14px; line-height: 22px; }
  .win-bar { height: 32px; gap: 7px; }
  .win-bar i { width: 10px; height: 10px; }
  .win-body { height: 540px; }
  .a-head { padding: 0 12px 0 16px; height: 50px; }
  .layer { padding: 36px 14px 12px; gap: 12px; }
  .a-you { max-width: 92%; padding: 10px 12px; }
  /* a value is a little shorter than the line it sits in, so it never makes that line taller in one layer only */
  .v { line-height: 20px; }
  .a-reply { font-size: 14px; line-height: 23px; }
  .a-composer { margin: 0 12px 12px; width: calc(100% - 24px); padding: 10px 12px; }
  .a-att { display: none; }
  .a-send { min-width: 0; padding: 0 12px; }
  .a-send span { display: none; }
  /* the hint gets the full width and a size to read, the button goes under it */
  .pw-foot { flex-direction: column; align-items: flex-start; gap: 12px; font-size: 15px; }
}
/* Windows high contrast: the line in the system highlight, the knob a bordered pill */
@media (forced-colors: active) {
  .xr::before { forced-color-adjust: none; background: Highlight; }
  .xr-knob { border: 1px solid ButtonText; }
}
@media (prefers-reduced-motion: reduce) {
  .pw [data-step], .pw .w, .pw .a-count, .xr, .a-send, .pw-dg > span { transition: none; }
  .a-caret, .a-stream { animation: none; }
}

/* The way a message goes: your team, Cordes, the model you chose, and back. Three equal
   stations; a value travels the line, becomes a label at Cordes, and the value again on its
   way back. Under them, the model is chosen and the journey played again. */
/* the gaps are wide enough for the whole value to be seen between two boxes */
.flow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr) minmax(0, 1fr); gap: clamp(56px, 9vw, 132px); align-items: stretch; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow-lines path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 3 5; }
/* the lit stretch behind the value is uncovered by clip-path (flow.js leg()), not by dashes */
.flow-lines path.lit { stroke: var(--accent); stroke-dasharray: none; stroke-width: 2; stroke-linecap: round; opacity: 0; }
.flow-node { position: relative; z-index: 1; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.flow-node h3 { margin: 0; min-height: 38px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.flow-node h3 .tile { width: 30px; height: 30px; border-radius: 8px; background: var(--band); display: grid; place-items: center; color: var(--ink); flex: none; }
.flow-node p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.flow-node .says { font-size: 14px; line-height: 1.6; color: var(--ink); background: var(--band); border-radius: 10px; padding: 10px 12px; }
.flow-node.cordes { border-color: var(--ink); }
.flow-node.cordes .mark { width: 30px; height: 30px; border-radius: 0; flex: none; }
.flow-node .jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.flow-node .jobs li { display: flex; gap: 8px; align-items: baseline; transition: color var(--t-mid) ease; }
.flow-node .jobs li::before { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: var(--accent); flex: none; translate: 0 -1px; transition: background-color var(--t-mid) ease, box-shadow var(--t-mid) ease; }
.flow-node .jobs li.on { color: var(--ink); }
.flow-node .jobs li.on::before { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent); }
/* a box at work glows: the glow is a layer of its own that fades, so the box is not repainted */
.flow-node::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); opacity: 0; will-change: opacity; transition: opacity var(--t-move) var(--ease-out); pointer-events: none; }
.flow-node.busy::after { opacity: 1; }

/* the model's name, and who makes it or where it runs */
.flow-title { display: grid; min-width: 0; }
.flow-maker { font-size: 12px; font-weight: 500; line-height: 1.45; letter-spacing: 0; color: var(--ink-3); }
/* the answer, as it comes back */
.flow-node .flow-reply { padding-left: 12px; border-left: 2px solid var(--line-strong); color: var(--ink); line-height: 1.6; }
.flow-node .flow-note { margin-top: auto; font-size: 13.5px; color: var(--ink-3); }

.val, .tok { display: inline-block; padding: 0 6px; border-radius: 6px; line-height: 22px; white-space: nowrap; font-weight: 500; }
.val { background: var(--mask); color: var(--ink); }
.tok { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.86em; outline: 1px dashed var(--line-strong); outline-offset: -1px; color: var(--ink-2); background: var(--card); }

/* under the boxes, so a value slides into Cordes and out again */
.flow-packet { position: absolute; left: 0; top: 0; z-index: 0; translate: -50% -50%; font-size: 13px; opacity: 0; transition: opacity var(--t-mid) ease; pointer-events: none;
  box-shadow: 0 6px 16px -6px rgb(17 19 24 / 0.35); }
.flow-packet.on { opacity: 1; }

/* Before the message arrives, the model has nothing and nobody has an answer. What arrives
   fades in; going back to before is instant, so a reset is never seen half way. */
.flow-node.model .says, .flow-reply { transition: opacity var(--t-move) var(--ease-out), translate var(--t-move) var(--ease-out); }
.flow[data-stage="wait"] .model .says, .flow[data-stage="wait"] .flow-reply,
.flow[data-stage="got"] .flow-reply, .flow[data-stage="replied"] .you .flow-reply { opacity: 0; translate: 0 6px; transition: none; }

/* One model's card at a time, chosen under it; without :has() the first one stays. */
.flow-box [data-for]:not([data-for="claude"]):not([data-for="cloud"]) { display: none; }
.flow-box [data-for] { animation: flow-swap var(--t-mid) var(--ease-out); }
@keyframes flow-swap { from { opacity: 0; } }
@supports not selector(:has(*)) { .flow-pick { display: none; } }
@supports selector(:has(*)) {
  .flow-box:has([value="gpt"]:checked) [data-for="claude"],
  .flow-box:has([value="gemini"]:checked) [data-for="claude"],
  .flow-box:has([value="local"]:checked) [data-for="claude"],
  .flow-box:has([value="local"]:checked) [data-for="cloud"] { display: none; }
  .flow-box:has([value="gpt"]:checked) [data-for="gpt"],
  .flow-box:has([value="gemini"]:checked) [data-for="gemini"],
  .flow-box:has([value="local"]:checked) [data-for="local"] { display: block; }
  /* a local model reads the message as written: no labels, no stop, nothing to put back */
  .flow-box:has([value="local"]:checked) .jobs li:not([data-job="find"]) { color: var(--ink-3); }
  .flow-box:has([value="local"]:checked) .jobs li:not([data-job="find"])::before { background-color: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
}

/* the switch and the replay */
.flow-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 24px; }
.flow-pick { margin: 0; padding: 0; border: 0; min-width: 0; }
/* on a narrow phone the local model takes a row of its own under the three cloud ones */
.flow-opts { display: flex; flex-wrap: wrap; gap: 8px 3px; padding: 3px; border-radius: 12px; background: var(--band); border: 1px solid var(--line); }
.flow-opt { position: relative; flex: 1 1 auto; display: grid; }
/* the whole 44 px is the hit area; the pill drawn inside it is 36 px */
.flow-opt input { position: absolute; z-index: 1; left: 0; top: -4px; width: 100%; height: calc(100% + 8px); margin: 0; opacity: 0; cursor: pointer; appearance: none; }
.flow-opt span { display: grid; place-items: center; height: 36px; padding: 0 14px; border-radius: 9px; color: var(--ink-2); font: 600 13.5px/1 var(--font); letter-spacing: -0.005em; white-space: nowrap; transition: background-color var(--t-mid) var(--ease-out), color var(--t-fast) ease, box-shadow var(--t-mid) var(--ease-out); }
@media (hover: hover) { .flow-opt:hover span { color: var(--ink); } }
.flow-opt input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgb(14 16 20 / 0.08), 0 0 0 1px var(--line); }
.flow-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.flow-replay { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; margin-left: -4px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: 600 14px/1 var(--font); cursor: pointer; transition: color var(--t-fast) ease; }
@media (hover: hover) { .flow-replay:hover { color: var(--ink); } }
.flow-replay .ic { width: 16px; height: 16px; }
.js .flow-replay { display: inline-flex; }

@media (min-width: 861px) {
  /* side by side the three boxes share their rows, so the message, the answer and the note
     line up across them whatever the language or the model */
  .flow { grid-template-rows: auto auto auto 1fr; row-gap: 0; }
  .flow-node { display: grid; grid-row: 1 / span 4; grid-template-rows: subgrid; row-gap: 12px; }
  .flow-node > h3 { grid-row: 1; align-self: start; }
  .flow-node > .says { grid-row: 2; }
  .flow-node > .flow-reply { grid-row: 3; align-self: start; }
  .flow-node > .flow-note { grid-row: 4; align-self: end; }
  .flow-node > .jobs { grid-row: 2 / span 3; align-self: start; }
  /* the switch stays under the model's box, with or without Play again beside it */
  .flow-pick { margin-left: auto; }
}
@media (max-width: 860px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .flow-foot { margin-top: 16px; }
  .flow-pick { flex: 1 1 100%; }
}
/* with the system's own colours the chosen model keeps a mark of its own */
@media (forced-colors: active) {
  .flow-opt input:checked + span { outline: 2px solid Highlight; outline-offset: -2px; }
  .flow-opt input:focus-visible + span { outline: 2px solid Highlight; outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-packet { display: none; }
  .js .flow-replay { display: none; }
  .flow-node::after, .flow-node .jobs li, .flow-node .jobs li::before, .flow-node.model .says, .flow-reply, .flow-opt span { transition: none; }
  .flow-box [data-for] { animation: none; }
}

.release-body { display: grid; gap: 14px; min-width: 0; }
/* Until the script sets the first frame, the chat waits empty instead of flashing the finished one. */
@media (prefers-reduced-motion: no-preference) {
  .js .pw:not(.ready) [data-step], .js .pw:not(.ready) .xr { opacity: 0; animation: show-late 0s 3s forwards; }
  @keyframes show-late { to { opacity: 1; } }
}
/* The one dark band: what Cordes stores, and the key to it. */
.ink-band {
  --page: #0e1014; --band: #16181c; --card: #1a1d22; --ink: #eceef1; --ink-2: #b4b9c1; --ink-3: #9aa0a9;
  --line: #2a2e35; --line-strong: #3d424b; --accent: #5b8ff5; --accent-hover: #74a1f7; --accent-text: #8db2f8; --on-accent: #0b0c0d;
  --mask: #23314e; --mask-edge: #364c79; --warn-bg: #392513; --warn-ink: #f7bf7d;
  background: var(--page); color: var(--ink); color-scheme: dark;
}
section.ink-band, section.ink-band + section { border-top-color: transparent; }
/* its own light: a soft glow of the accent from the top, and a hairline of light on the edge */
.ink-band { position: relative; isolation: isolate; }
.ink-band::before { content: ""; position: absolute; inset: 0 0 auto 0; height: min(520px, 60%); z-index: -1; pointer-events: none; background: radial-gradient(56% 100% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 72%); }
.ink-band::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; z-index: -1; pointer-events: none; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 55%, transparent) 50%, transparent); }
.keys .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.keys .pair { grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (max-width: 960px) { .keys .split { grid-template-columns: minmax(0, 1fr); } }
/* in dark, the band goes deeper than the page, so it still reads as its own place */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ink-band { --page: #050506; --band: #0c0d0f; --card: #111316; --line: #24272c; --line-strong: #363b42; box-shadow: inset 0 -1px 0 #1c1e22; } }
:root[data-theme="dark"] .ink-band { --page: #050506; --band: #0c0d0f; --card: #111316; --line: #24272c; --line-strong: #363b42; box-shadow: inset 0 -1px 0 #1c1e22; }

/* ---- the product window comes up out of a slight tilt, once --------------------------------- */
@media (prefers-reduced-motion: no-preference) and (min-width: 1000px) {
  /* the perspective lives in the keyframes, so once it has landed the window is flat again;
     no scale, so nothing in it is ever drawn at another size than it is, and no fade, so its text
     is never half-transparent (axe stays clean from the first frame) */
  .js .hero-shot { animation: none; }
  .js .hero-shot .win { transform-origin: 50% 0; animation: tilt-in var(--t-slow) var(--ease-out) 120ms backwards; }
  .js .hero-shot .win.landed { animation: none; }
  @keyframes tilt-in {
    from { transform: perspective(1800px) rotateX(10deg) translateY(28px); }
    to { transform: perspective(1800px) rotateX(0deg) translateY(0); }
  }
}

/* ---- numbers that roll into place -------------------------------------------------------------- */
.odo { display: inline-flex; }
.digit { display: inline-block; height: 1.08em; line-height: 1.08; overflow: hidden; vertical-align: top; }
.strip { display: block; white-space: pre; line-height: 1.08; translate: 0 0; transition: translate 1500ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms); }
.strip.go { translate: 0 calc(var(--d, 0) * -1.08em); }
.stats .num .digit, .stats .num .strip { line-height: 1.08; }

/* ---- the statement, #how's heading: the real values as locked chips, then the labels the model gets */
.how-head { max-width: none; text-align: center; justify-items: center; margin-bottom: 56px; }
.how-head .say { font-size: clamp(30px, 4.2vw, 56px); margin: 0 auto 20px; }
.how-head p { margin-inline: auto; max-width: 60ch; }
.say { max-width: 17.5em; font-size: clamp(34px, 4.8vw, 64px); line-height: 1.22; letter-spacing: -0.035em; font-weight: 560; color: var(--ink); text-align: center; text-wrap: balance; }
/* what people do, then what the model gets: each starts a line */
.say-line { display: block; }
.say .val, .say .tok { position: relative; font-size: 0.8em; font-weight: 500; line-height: 1.3; padding: 0.02em 0.26em 0.04em; border-radius: 0.22em; vertical-align: 0.08em; letter-spacing: -0.02em; outline: 0; }
.say .val { background-color: var(--mask); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); }
.say .val .ic { width: 0.56em; height: 0.56em; margin-right: 0.16em; vertical-align: 0.04em; color: var(--accent); stroke-width: 2.4; }
/* never under 24 px, so a label not lit yet is still large text at 3:1 */
.say .tok { font-size: max(24px, 0.66em); letter-spacing: -0.01em; vertical-align: 0.14em; padding-inline: 0.3em; color: var(--ink-2); background-color: var(--card); }
.say .tok::after { content: ""; position: absolute; inset: 0; border: 1.5px dashed color-mix(in srgb, var(--ink-3) 55%, transparent); border-radius: inherit; pointer-events: none; }
/* Words not reached yet are grey, never too faint to read: 3:1 at this size. A chip lights
   as one unit: a value fills with its colour and lock, a label draws its dashed edge. */
.js .say .sw { color: color-mix(in srgb, var(--ink) 46%, var(--page)); transition: color var(--t-mid) var(--ease-out); }
.js .say .sw.on { color: var(--ink); }
.js .say .val, .js .say .tok { isolation: isolate; background-color: transparent; transition: color var(--t-mid) var(--ease-out); }
/* a chip's fill (and a value's blue edge) is a layer under its text that fades in, so lighting it repaints nothing */
.js .say .val::before, .js .say .tok::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-color: var(--card); opacity: 0; transition: opacity var(--t-move) var(--ease-out); pointer-events: none; }
.js .say .val::before { background-color: var(--mask); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.js .say .on .val::before, .js .say .val.on::before, .js .say .on .tok::before, .js .say .tok.on::before { opacity: 1; }
.js .say .val:not(.sw), .js .say .tok:not(.sw) { color: inherit; }
.js .say .val { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent); }
.js .say .val .ic { color: inherit; transition: color var(--t-move) var(--ease-out); }
.js .say .tok::after { clip-path: inset(0 100% 0 0); transition: clip-path var(--t-slow) var(--ease-out); }
.js .say .on .val .ic, .js .say .val.on .ic { color: var(--accent); }
.js .say .on .tok, .js .say .tok.on { color: var(--ink-2); }
.js .say .on .tok::after, .js .say .tok.on::after { clip-path: inset(0); }
@media (prefers-reduced-motion: reduce) {
  .js .say .sw, .js .say .val, .js .say .val .ic, .js .say .tok, .js .say .tok::after, .js .say .val::before, .js .say .tok::before { transition: none; }
}

/* ---- what Cordes finds: the tiles (their insides are in css/finds.css) ------------------------------ */
.finds { padding-bottom: clamp(40px, 5vw, 64px); }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fcard { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); }
.fcard.wide { grid-column: span 2; }
.fcard h3 { font-size: 18px; letter-spacing: -0.015em; }
.fcard p { font-size: 15px; color: var(--ink-2); max-width: 42ch; }
/* a soft light under the pointer */
.fcard::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity var(--t-mid) ease; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 7%, transparent), transparent 62%); }
@media (hover: hover) { .fcard:hover::before { opacity: 1; } }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fcard.wide { grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: minmax(0, 1fr); } .fcard.wide { grid-column: auto; } .fcard { padding: 20px; } }

/* ---- a key service's log --------------------------------------------------------------------------- */
.keys-side { display: grid; gap: 16px; min-width: 0; }
.feed { border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--card); overflow: hidden; }
.feed-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.feed-title { font-size: 14px; font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
/* an example, not a live feed: the dot stays still */
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.feed ul { list-style: none; margin: 0; padding: 6px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; }
.feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 10px 10px; border-radius: 9px; font-size: 14px; color: var(--ink); }
/* one column of states for the whole log, so every line starts at the same place */
@supports (grid-template-columns: subgrid) { .feed li { grid-column: 1 / -1; grid-template-columns: subgrid; } .feed .st { text-align: center; } }
/* a new line slides in with a tint that fades: the tint is a layer of its own, so only opacity moves */
.feed li { position: relative; isolation: isolate; }
.feed li.in { animation: feed-in 520ms var(--ease-out); }
.feed li.in::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: color-mix(in srgb, var(--accent) 10%, transparent); opacity: 0; animation: feed-tint 520ms var(--ease-out); pointer-events: none; }
@keyframes feed-in { from { opacity: 0; translate: 0 -10px; } 40% { opacity: 1; } }
@keyframes feed-tint { from { opacity: 1; } }
/* whole words: a long line wraps rather than ending in an ellipsis */
.feed .what { color: var(--ink-2); }
.feed .when { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.feed .st { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.feed .st.ok { background: var(--mask); color: var(--ink); box-shadow: inset 0 0 0 1px var(--mask-edge); }
.feed .st.no { background: var(--warn-bg); color: var(--warn-ink); }
.feed.light { margin-top: 12px; }
@media (max-width: 560px) {
  .feed ul { grid-template-columns: auto minmax(0, 1fr); }
  .feed li { grid-template-columns: auto minmax(0, 1fr); }
  @supports (grid-template-columns: subgrid) { .feed li { grid-template-columns: subgrid; } }
  .feed .when { display: none; }
}

/* ---- a pill that follows the pointer over the menu ------------------------------------------------------ */
.nav { position: relative; }
.nav a { z-index: 1; }
@media (hover: hover) { .nav.has-pill a:hover { background: transparent; } }
/* a strip the width of the menu, cut down to the link by clip-path, so the slide repaints nothing */
.nav-pill { position: absolute; z-index: 0; top: 50%; left: 0; width: 100%; height: 36px; translate: 0 -50%; background: var(--band); clip-path: inset(0 calc(100% - var(--x, 0px) - var(--w, 0px)) 0 var(--x, 0px) round 8px); opacity: 0; transition: clip-path var(--t-move) var(--ease-out), opacity var(--t-mid) ease; pointer-events: none; }
.nav.pill-on .nav-pill { opacity: 1; }
.nav-pill.nav-pill-jump { transition: opacity var(--t-mid) ease; }

/* ---- the primary button catches the light, the arrow points down ----------------------------------------- */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.26) 50%, transparent 65%); translate: -110% 0; transition: translate 0s; }
@media (hover: hover) { .btn-primary:hover::after { translate: 110% 0; transition: translate 760ms var(--ease-out); } }
.btn .ic { transition: translate var(--t-mid) var(--ease-out); }
@media (hover: hover) { .btn-primary:hover .ic, .btn-ink:hover .ic { translate: 0 2px; } }

/* ---- the terminal that checks the file ----------------------------------------------------------------- */
.term { width: 100%; border-radius: 12px; overflow: hidden; background: #0e1014; border: 1px solid #23262c; box-shadow: var(--shadow-frame); }
.term-bar { height: 32px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #16181c; border-bottom: 1px solid #23262c; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3e45; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin: 0 auto; translate: -22px 0; font-size: 12px; color: #9aa0a9; }
.term-body { min-height: max(132px, var(--term-h, 0px)); padding: 16px 18px 18px; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: #d8dbe0; overflow-wrap: anywhere; font-variant-ligatures: none; }
.t-cmd::before { content: "% "; color: #8db2f8; }
.t-out { color: #9aa0a9; }
.t-ok { color: #8db2f8; animation: rise var(--t-slow) var(--ease-out); }
.t-caret { display: inline-block; width: 8px; height: 15px; margin-left: 2px; vertical-align: -2px; background: #8db2f8; animation: a-blink 1s steps(2) infinite; }

/* ---- the disk image: Cordes goes into Applications ------------------------------------------------------- */
.dmg { margin-top: 18px; max-width: 420px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-card); }
.dmg-bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: var(--band); border-bottom: 1px solid var(--line); }
.dmg-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.dmg-bar span { margin: 0 auto; translate: -22px 0; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.dmg-body { position: relative; container-type: inline-size; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; gap: 8px; padding: 30px 26px 26px; }
.dmg-item { display: grid; justify-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.dmg-icon { width: 60px; height: 60px; }
img.dmg-icon { filter: drop-shadow(0 6px 10px var(--pg-shade)); }
.folder-icon { width: 64px; height: 52px; border-radius: 0; fill: color-mix(in srgb, var(--accent) 55%, var(--card)); stroke: color-mix(in srgb, var(--accent) 70%, var(--ink)); stroke-width: 1.5; }
.folder-icon .fold { fill: none; }
.dmg-arrow { width: 84px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 4 5; }
.dmg-ghost { position: absolute; left: 26px; top: 30px; width: calc((100cqw - 100px) / 2); display: grid; justify-items: center; opacity: 0; pointer-events: none; }
.dmg-ghost .dmg-icon { opacity: 0.85; filter: drop-shadow(0 12px 14px var(--pg-shade)); }
.dmg-ghost .cursor { position: absolute; left: calc(50% + 14px); top: 34px; width: 14px; height: 20px; fill: var(--ink); stroke: var(--card); stroke-width: 1.2; }
@media (prefers-reduced-motion: no-preference) {
  /* Once, then the window rests; only while it is on screen (more.js sets .pg-seen). */
  .dmg-ghost { animation: drag 4.2s var(--ease-in-out) 0.6s 1; }
  .dmg-item.folder .folder-icon { animation: take 4.2s ease 0.6s 1; }
  .dmg:not(.pg-seen) .dmg-ghost, .dmg:not(.pg-seen) .folder-icon { animation-play-state: paused; }
  @keyframes drag {
    0%, 8% { opacity: 0; translate: 0 0; }
    16% { opacity: 1; translate: 0 -6px; }
    62% { opacity: 1; translate: calc(50cqw + 50px) -6px; }
    72%, 100% { opacity: 0; translate: calc(50cqw + 50px) 4px; }
  }
  @keyframes take { 0%, 60% { transform: translateY(0); } 66% { transform: translateY(-3px); } 74%, 100% { transform: translateY(0); } }
}

/* ---- the line of versions --------------------------------------------------------------------------------- */
.timeline { padding-left: calc(var(--gutter) + 36px); }
.timeline::before { content: ""; position: absolute; left: calc(var(--gutter) + 8px); top: 8px; width: 2px; border-radius: 2px; }
.timeline::before { bottom: 0; background: var(--line); }
/* The fill is its own element, scaled from motion.js: a scroll frame restyles it alone, never the releases. */
.pg-fill { position: absolute; left: calc(var(--gutter) + 8px); top: 8px; bottom: 0; width: 2px; border-radius: 2px; transform-origin: 50% 0; transform: scaleY(0); background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 40%, transparent)); }
.pg-list { display: grid; }
.release::before { content: ""; position: absolute; left: -33px; top: 46px; width: 12px; height: 12px; border-radius: 50%; background: var(--page); border: 2px solid var(--line-strong); transition: border-color var(--t-mid) ease, background-color var(--t-mid) ease, box-shadow var(--t-mid) ease; z-index: 1; }
.release:first-child::before { top: 10px; }
.release.passed::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .strip { transition: none; }
  .btn-primary::after { display: none; }
}

/* ---- the map: Cordes in the middle, what it does around it --------------------------------------- */
/* It sits on the grey band, the same surface as the stage under the product window above it,
   so its white cards read as objects without heavy shadows. */
#ecosystem { padding-top: clamp(48px, 6vw, 80px); scroll-margin-top: calc(24px - clamp(48px, 6vw, 80px)); }
.head .eco-pick { font-size: 15px; color: var(--ink-3); }
.eco-dot { display: inline-block; width: 6px; height: 6px; margin-inline: 1px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
.eco-map { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 0.62fr) minmax(0, 1fr); gap: 28px clamp(48px, 7vw, 104px); }
/* Two stacks, read column by column: everyday work and the company's set-up on the left, control and
   data protection on the right. The lower card of the shorter stack takes up the difference. */
.eco-col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.eco-col > .eco-group:last-child { flex: 1 0 auto; }
.eco-col-l { grid-column: 1; grid-row: 1; } .eco-col-r { grid-column: 3; grid-row: 1; }
.eco-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.eco-lines path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 3 5; transition: stroke var(--t-mid) ease; }
/* the lit group's line keeps a quiet tint; a dot (.eco-run, eco.js pulse()) runs along it once, moved
   by transform alone, from under Cordes to under the group */
.eco-lines path.on { stroke: color-mix(in srgb, var(--accent) 60%, var(--line-strong)); }
.eco-run { position: absolute; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent); opacity: 0; pointer-events: none; }
.eco-core { grid-column: 2; grid-row: 1; align-self: center; position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 10px; padding: 30px 22px; border-radius: var(--r-frame); background: var(--ink); color: var(--page); box-shadow: 0 30px 60px -30px rgb(14 16 20 / 0.5); }
/* the app's own icon, as in the closing; the image has the macOS margin around its tile */
.eco-core .eco-icon { display: block; width: 66px; height: 66px; margin: -6px; }
.eco-core b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.eco-core span { font-size: 13.5px; line-height: 1.45; color: color-mix(in srgb, var(--page) 72%, transparent); max-width: 24ch; }
.eco-group { position: relative; z-index: 1; display: grid; gap: 12px; align-content: start; padding: 20px 20px 22px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); }
/* the lit group's edge and glow sit on a layer of their own that fades in, so lighting it repaints nothing */
.eco-group::after { content: ""; position: absolute; inset: -1px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: inherit; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent); opacity: 0; will-change: opacity; transition: opacity var(--t-mid) ease; pointer-events: none; }
.eco-group.on::after { opacity: 1; }
.eco-group h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.eco-group h3 .ic { width: 18px; height: 18px; color: var(--accent); }
.eco-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.eco-group button { position: relative; height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--band); color: var(--ink); font: 500 13.5px/1 var(--font); cursor: pointer; transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease; }
.eco-group button.on { background: var(--mask); border-color: var(--mask-edge); color: var(--ink); }
/* hover only where there is one: on touch a tapped chip would keep it */
@media (hover: hover) { .eco-group button:hover { background: var(--mask); border-color: var(--mask-edge); color: var(--ink); } }
.eco-group button.on { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); }
/* the focus ring follows the chip's own corners */
.eco-group button:focus-visible { border-radius: 8px; }
/* the part has a screen in the tour below: a round dot, at full strength */
.eco-group button[data-tour]::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
/* What the lit part does. Every sentence is in the box, stacked in one cell and only the lit one
   shown, so the box is always as tall as the longest and nothing under it moves. */
.eco-detail { grid-column: 1 / -1; grid-row: 2; display: grid; margin: 6px auto 0; max-width: 70ch; text-align: center; font-size: 16px; color: var(--ink-2); }
.eco-detail > p { grid-area: 1 / 1; align-self: start; visibility: hidden; }
.eco-detail > p.on { visibility: visible; }
.eco-detail b { color: var(--ink); font-weight: 600; }
/* the touch hint stands alone in the box until a part is tapped, so it sits in the middle */
.eco-detail .eco-empty { align-self: center; color: var(--ink-2); }
html:not(.js) .eco-detail { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .eco-detail > p.on { animation: eco-rise var(--t-move) var(--ease-out); }
  @keyframes eco-rise { from { opacity: 0; translate: 0 6px; } }
}
/* With a mouse the lead says how to use the map; anywhere else the box under it does (eco.js uses
   the same test). */
@media not all and (hover: hover) and (pointer: fine) { .eco-pick { display: none; } }
/* Fingers get 44 px to hit: each chip's area reaches 6 px above and below it (the inset counts
   from inside its 1 px border; ::after is the dot), and the rows are 12 px apart, so no two
   areas overlap. */
@media (pointer: coarse) {
  .eco-group ul { gap: 12px 8px; }
  .eco-group button::before { content: ""; position: absolute; inset: -7px -3px; }
}
/* Dark: the core is a card with a ring, not the brightest thing on the page. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eco-core { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 6px color-mix(in srgb, var(--accent) 9%, transparent), 0 30px 60px -30px rgb(0 0 0 / 0.8); }
  :root:not([data-theme="light"]) .eco-core span { color: var(--ink-2); }
}
:root[data-theme="dark"] .eco-core { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 6px color-mix(in srgb, var(--accent) 9%, transparent), 0 30px 60px -30px rgb(0 0 0 / 0.8); }
:root[data-theme="dark"] .eco-core span { color: var(--ink-2); }
/* Phones and tablets: the core is a row on top, the groups in two columns (one on phones). */
@media (max-width: 960px) {
  .eco-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .eco-col { gap: 16px; }
  .eco-col-l { grid-column: 1; grid-row: 2; } .eco-col-r { grid-column: 2; grid-row: 2; }
  .eco-lines, .eco-run { display: none; }
  .eco-core { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; justify-content: flex-start; text-align: left; gap: 14px; padding: 14px 18px; border-radius: var(--r-card); box-shadow: none; }
  .eco-core .eco-icon { width: 44px; height: 44px; margin: -4px; flex: none; }
  .eco-core b { font-size: 17px; }
  .eco-core span { max-width: none; }
  .eco-detail { grid-row: 3; }
}
/* There, and on any screen without a mouse, the box is a card that rides at the bottom of the screen
   while the map is in view, so a tap is answered where the finger is; at the map's end it settles. */
@media (max-width: 960px), not all and (hover: hover) and (pointer: fine) {
  .eco-detail { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 2; width: 100%; max-width: none; margin: 0; padding: 12px 16px; text-align: left; font-size: 15px; line-height: 1.5; background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 18px 40px -18px rgb(14 16 20 / 0.35); }
  /* focus and scrollIntoView keep a part clear of the card riding over it; the card is as tall
     as its longest text, so its height follows the width (94 px at 768, 139 at 390, 161 at 360) */
  .eco-map { --eco-detail-h: 100px; }
  .eco-group button { scroll-margin-bottom: calc(var(--eco-detail-h) + 24px); }
  @media (max-width: 600px) { .eco-map { --eco-detail-h: 145px; } }
  @media (max-width: 380px) { .eco-map { --eco-detail-h: 170px; } }
  @media (max-width: 340px) { .eco-map { --eco-detail-h: 215px; } }
  /* a screen this short (a phone at 400% zoom) has no room for a riding card: it stays in the flow */
  @media (max-height: 340px) { .eco-detail { position: static; } .eco-map { --eco-detail-h: 0px; } }
}
/* dark: the core keeps only its ring; the floating box gets a shadow that shows on black */
@media (max-width: 960px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eco-core { box-shadow: 0 0 0 1px var(--line-strong); } }
@media (max-width: 960px) { :root[data-theme="dark"] .eco-core { box-shadow: 0 0 0 1px var(--line-strong); } }
@media (max-width: 960px), not all and (hover: hover) and (pointer: fine) {
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eco-detail { box-shadow: 0 18px 44px -14px rgb(0 0 0 / 0.85); } }
  :root[data-theme="dark"] .eco-detail { box-shadow: 0 18px 44px -14px rgb(0 0 0 / 0.85); }
}
@media (max-width: 600px) {
  .eco-map { grid-template-columns: minmax(0, 1fr); }
  .eco-col { display: contents; }
  .eco-core, .eco-group, .eco-detail { grid-column: 1; grid-row: auto; }
}
/* Windows high contrast: the lit part and its group keep an outline, the dot stays a dot. */
@media (forced-colors: active) {
  .eco-group button.on { outline: 2px solid Highlight; outline-offset: 1px; }
  .eco-group.on { outline: 2px solid Highlight; }
  .eco-core { border: 1px solid CanvasText; }
  .eco-group button[data-tour]::after, .eco-dot { forced-color-adjust: none; background: CanvasText; }
  .eco-lines path.on { stroke: Highlight; }
  .eco-run { forced-color-adjust: none; background: Highlight; }
  .eco-group::after { display: none; }
}

/* ---- the tour ---------------------------------------------------------------------------------------- */
/* The tabs, what the part does, then its real screen, so all three fit on a laptop's screen. The texts
   share one grid cell: a longer one never moves the page below. */
.tour-box { display: flex; flex-direction: column; gap: 24px; }
.tour-bar { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--band); }
.tour-tabs { position: relative; flex: 1 1 auto; min-width: 0; display: flex; gap: 2px; padding: 4px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tabs button { position: relative; flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 11px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: 600 14px/1 var(--font); white-space: nowrap; cursor: pointer; overflow: hidden; transition: background-color var(--t-mid) ease, color var(--t-mid) ease, box-shadow var(--t-mid) ease; }
.tour-tabs button .ic { width: 17px; height: 17px; }
@media (hover: hover) { .tour-tabs button:hover { color: var(--ink); } }
.tour-tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink), 0 1px 2px rgb(14 16 20 / 0.08); }
.tour-tabs button:focus-visible { outline-offset: 1px; }
/* how long a screen stays: a faint track and the bar that fills it (eco.js) */
.tour-tabs .prog { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; }
.tour-tabs button.running::before { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--accent) 20%, transparent); }
.tour-tabs button.running .prog { opacity: 1; }
/* while the strip scrolls, its cut edges fade (eco.js) */
.tour-tabs.tour-more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.tour-tabs.tour-more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.tour-tabs.tour-more-l.tour-more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
/* stops and starts the tour; shown only where it moves by itself */
.tour-play { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 4px 4px 4px 5px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; transition: color var(--t-fast) ease, background-color var(--t-fast) ease; }
.tour-play::before { content: ""; position: absolute; left: -5px; top: 12px; bottom: 12px; width: 1px; background: var(--line-strong); }
@media (hover: hover) { .tour-play:hover { color: var(--ink); background: var(--card); } }
.tour-play:focus-visible { outline-offset: 0; }
.tour-play .ic { width: 16px; height: 16px; }
.tour-play[data-tour-play="playing"] .tour-ic-play, .tour-play[data-tour-play="stopped"] .tour-ic-pause { display: none; }
.tour-text { display: grid; }
.tour-text > .tour-panel { grid-area: 1 / 1; }
.tour-text > .tour-panel[hidden] { display: grid !important; visibility: hidden; opacity: 0; transition: opacity var(--t-fast) var(--ease-exit), visibility 0s var(--t-fast); }
.tour-panel { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 12px clamp(28px, 5vw, 72px); align-items: start; align-content: start; }
.tour-panel:not([hidden]) { animation: rise var(--t-move) var(--ease-out) var(--t-fast) both; }
.tour-panel h3 { font-size: clamp(20px, 1.9vw, 24px); font-weight: 560; letter-spacing: -0.022em; line-height: 1.22; }
.tour-panel > div > p { margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.tour-panel .tour-aud { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12.5px; font-weight: 500; line-height: 1; color: var(--ink-2); white-space: nowrap; vertical-align: 1px; }
.tour-panel .facts { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 3px; }
.tour-panel .facts li { font-size: 15px; text-wrap: pretty; }
.tour-win { border: 1px solid var(--line); border-radius: var(--r-frame); overflow: hidden; background: var(--card); box-shadow: var(--shadow-frame); }
.tour-shots { position: relative; aspect-ratio: 1440 / 800; background: var(--band); }
/* on a laptop the window shrinks until tabs, screen and text fit under the header together
   (54 tabs, about 150 of text, 72 of gaps); a short landscape phone keeps a readable window */
@media (min-width: 761px) { .tour-win { width: min(100%, max(560px, calc((100svh - var(--hdr-h) - 280px) * 1440 / 800))); margin-inline: auto; } }
.tour-shots picture { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity var(--t-slow) var(--ease-out), visibility 0s var(--t-slow); }
.tour-shots picture.on { opacity: 1; visibility: visible; transition: opacity var(--t-slow) var(--ease-out); }
.tour-shots img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
/* a screen not fetched yet is an empty frame, not a broken picture */
.tour-shots img:not([src]) { visibility: hidden; }
/* between a phone and a wide window all nine fit once their icons go */
@media (min-width: 881px) and (max-width: 1199px) {
  .tour-tabs button .ic { display: none; }
  .tour-tabs button { padding: 0 10px; }
}
@media (min-width: 881px) and (max-width: 959px) { .tour-tabs { gap: 0; } .tour-tabs button { padding: 0 8px; font-size: 13.5px; } }
/* phones: the strip runs edge to edge and scrolls, and the chosen tab comes to its middle */
@media (max-width: 880px) {
  .tour-bar { margin-inline: calc(var(--gutter) * -1); border-inline: 0; border-radius: 0; }
  .tour-tabs { padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .tour-play { margin-right: calc(var(--gutter) - 4px); }
}
/* one column: the screen comes first and the text after it, so a shorter text leaves its room at the end */
@media (max-width: 760px) { .tour-panel { grid-template-columns: minmax(0, 1fr); } .tour-tabs button { font-size: 13.5px; } .tour-box { gap: 20px; } .tour-win { order: 1; } .tour-text { order: 2; } }
/* phones get a 4:3 piece of each screen, cut where the part is */
@media (max-width: 600px) { .tour-shots { aspect-ratio: 4 / 3; } }
/* with less motion a part simply replaces the one before (no 0.01 ms transitions: they leave the new
   part hidden for a frame) */
@media (prefers-reduced-motion: reduce) { .tour-text > .tour-panel, .tour-text > .tour-panel[hidden], .tour-shots picture, .tour-shots picture.on { transition: none; } }
@media (forced-colors: active) {
  .tour-tabs button[aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
  .tour-tabs .prog { forced-color-adjust: none; background: Highlight; }
}

/* ---- without and with ---------------------------------------------------------------------------------- */
/* Wide screens: two columns, read across; phones: one side at a time under a switch (eco.js versus()). */
.why .head { max-width: 880px; }
.versus { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); overflow: hidden; }
.versus-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.versus-top b { font-size: 15px; }
.versus .seg button { min-height: 44px; padding: 0 14px; }
.vs-cols, .vs-rows li { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vs-cols span { padding: 18px 28px 16px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.vs-cols .without { background: var(--band); color: var(--ink-2); }
.vs-cols .with { color: var(--ink); }
.vs-rows { list-style: none; margin: 0; padding: 0; }
.vs-rows li { border-top: 1px solid var(--line); }
.vs-cell { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; padding: 20px 28px; }
.vs-cell p { font-size: 16.5px; line-height: 1.5; padding-top: 1px; }
.vs-cell.without { background: var(--band); color: var(--ink-2); }
.vs-cell.with { color: var(--ink); }
.vs-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.vs-mark .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.vs-cell.without .vs-mark { background: var(--warn-bg); color: var(--warn-ink); }
.vs-cell.with .vs-mark { background: var(--mask); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--mask-edge); }
@media (min-width: 900px) {
  .versus-top, .vs-lead-narrow { display: none; }
  /* on first view the outcomes arrive after what they replace (eco.js adds and removes .vs-wait) */
  .vs-cell.with { transition: opacity var(--t-move) var(--ease-out), transform var(--t-move) var(--ease-out); }
  .versus.vs-wait .vs-cell.with { opacity: 0; transform: translateY(8px); }
  .vs-rows li:nth-child(1) .vs-cell.with { transition-delay: 120ms; }
  .vs-rows li:nth-child(2) .vs-cell.with { transition-delay: 170ms; }
  .vs-rows li:nth-child(3) .vs-cell.with { transition-delay: 220ms; }
  .vs-rows li:nth-child(4) .vs-cell.with { transition-delay: 270ms; }
  .vs-rows li:nth-child(5) .vs-cell.with { transition-delay: 320ms; }
  .vs-rows li:nth-child(6) .vs-cell.with { transition-delay: 370ms; }
}
@media (max-width: 899px) {
  .vs-cols, .vs-lead-wide, .vs-say { display: none; }
  .vs-rows { padding: 0 20px; }
  .vs-rows li { grid-template-columns: minmax(0, 1fr); }
  .vs-rows li:first-child { border-top: 0; }
  .vs-cell { grid-area: 1 / 1; padding: 16px 0; transition: opacity var(--t-move) var(--ease-out), transform var(--t-move) var(--ease-out); }
  .vs-cell.without { background: transparent; }
  .vs-mark .ic { transition: transform var(--t-move) var(--ease-out); }
  .versus[data-state="without"] .vs-cell.with, .versus[data-state="with"] .vs-cell.without { opacity: 0; transform: translateY(8px); pointer-events: none; }
  .versus[data-state="without"] .vs-cell.with .ic, .versus[data-state="with"] .vs-cell.without .ic { transform: rotate(-45deg); }
  .vs-rows li:nth-child(2) .vs-cell, .vs-rows li:nth-child(2) .vs-mark .ic { transition-delay: 50ms; }
  .vs-rows li:nth-child(3) .vs-cell, .vs-rows li:nth-child(3) .vs-mark .ic { transition-delay: 100ms; }
  .vs-rows li:nth-child(4) .vs-cell, .vs-rows li:nth-child(4) .vs-mark .ic { transition-delay: 150ms; }
  .vs-rows li:nth-child(5) .vs-cell, .vs-rows li:nth-child(5) .vs-mark .ic { transition-delay: 200ms; }
  .vs-rows li:nth-child(6) .vs-cell, .vs-rows li:nth-child(6) .vs-mark .ic { transition-delay: 250ms; }
}
@media (prefers-reduced-motion: reduce) {
  .vs-cell, .vs-mark .ic { transition: none; }
}

/* ---- rules: an exception, step by step (#approvals) ---------------------------------- */
.rules .head { max-width: 820px; }
.apv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.apv-side { display: grid; gap: 20px; justify-items: start; padding-top: 6px; }
.apv-steps { display: grid; width: 100%; }
.apv-step {
  position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; align-items: start;
  width: 100%; min-height: 44px; padding: 14px 12px 22px 0; border: 0; border-radius: 12px; background: transparent;
  color: var(--ink-2); font: inherit; text-align: left; cursor: pointer;
}
.apv-step:focus-visible { outline-offset: 2px; }
/* the rail: a track from this dot to the next, and its fill */
.apv-step:not(:last-child)::before, .apv-step:not(:last-child)::after {
  content: ""; position: absolute; left: 15px; top: 54px; bottom: -10px; width: 2px; border-radius: 1px; background: var(--line);
}
.apv-step:not(:last-child)::after { background: var(--accent); transform: scaleY(0); transform-origin: 50% 0; transition: transform var(--t-slow) var(--ease-out); }
.apv-step.done::after { transform: scaleY(1); }
.apv-dot {
  position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--page); color: var(--ink-3);
  font: 600 13px/1 var(--mono);
  transition: background-color var(--t-mid) var(--ease-out), border-color var(--t-mid) var(--ease-out), color var(--t-mid) var(--ease-out);
}
/* the current step's halo fades in on a layer of its own */
.apv-dot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; box-shadow: 0 0 0 4.5px var(--mask); opacity: 0; transition: opacity var(--t-mid) var(--ease-out); pointer-events: none; }
.apv-step.done .apv-dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.apv-step[aria-selected="true"] .apv-dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.apv-step[aria-selected="true"] .apv-dot::after { opacity: 1; }
.apv-st { display: grid; gap: 4px; padding-top: 4px; }
.apv-st-t { font-size: 17px; font-weight: 560; line-height: 1.3; letter-spacing: -0.012em; color: var(--ink-2); transition: color var(--t-mid) var(--ease-out); }
.apv-st-w { font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.apv-step[aria-selected="true"] .apv-st-t { color: var(--ink); }
@media (hover: hover) { .apv-step:hover .apv-st-t { color: var(--ink); } }
@media (hover: hover) { .apv-step:hover:not([aria-selected="true"]) .apv-dot { border-color: var(--ink-3); } }

.apv-open {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; border: 0; background: transparent;
  color: var(--accent-text); font: 500 15px/1.3 var(--font); cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-text) 40%, transparent); text-underline-offset: 4px;
}
@media (hover: hover) { .apv-open:hover { text-decoration-color: currentColor; } }
.apv-open .ic { width: 18px; height: 18px; flex: none; }

/* the card: one grid cell holds every step's body, so its height never changes */
.apv-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--card); box-shadow: var(--win-shadow); }
.apv-bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--band); }
.apv-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.apv-bodies { display: grid; padding: clamp(20px, 3vw, 32px); }
.apv-body {
  grid-area: 1 / 1; min-width: 0; display: grid; gap: 16px; align-content: start;
  font-size: 15px; line-height: 1.5; color: var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t-fast) var(--ease-exit), visibility 0s linear var(--t-fast), transform 0s linear var(--t-fast);
}
.apv-body.on {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity var(--t-move) var(--ease-out) var(--t-fast), transform var(--t-move) var(--ease-out) var(--t-fast), visibility 0s linear 0s;
}
.apv-body:focus { outline: none; }
.apv-body:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.apv-body p { margin: 0; }
.apv-where { font-size: 13px; font-weight: 500; color: var(--ink-3); }

.apv-msg { justify-self: end; display: grid; gap: 10px; justify-items: end; width: min(100%, 380px); padding: 14px 16px; border-radius: var(--r-panel) var(--r-panel) 4px var(--r-panel); background: var(--band); }
.apv-lines { display: grid; gap: 8px; width: 100%; }
.apv-lines i { display: block; height: 8px; border-radius: 4px; background: var(--line-strong); opacity: 0.7; }
.apv-lines i:nth-child(2) { width: 86%; }
.apv-lines i:nth-child(3) { width: 58%; }
.apv-file { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.apv-file .ic { width: 15px; height: 15px; flex: none; }
.apv-stop { padding: 18px 20px; border-radius: var(--r-panel); background: var(--warn-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn-ink) 16%, transparent); }
.apv-stop-h { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; font-weight: 560; line-height: 1.45; color: var(--ink); }
.apv-stop-h .ic { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--warn-ink); }
.apv-stop-w { color: var(--warn-ink); }
.apv-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.apv-stop .apv-acts { margin-top: 14px; padding-left: 30px; }
.apv-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px;
  font: 500 15px/1.2 var(--font); white-space: nowrap; cursor: default;
}
.apv-btn .ic { width: 17px; height: 17px; flex: none; }
.apv-btn-accent { background: var(--accent); color: var(--on-accent); }
.apv-btn-line { background: var(--card); border-color: var(--line-strong); color: var(--ink); }
.apv-btn-ink { background: var(--ink); color: var(--page); }
button.apv-btn { cursor: pointer; transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), translate var(--t-fast) var(--ease-out); }
@media (hover: hover) { button.apv-btn-line:hover { border-color: var(--ink-3); background: var(--band); } }
@media (hover: hover) { button.apv-btn-ink:hover { background: color-mix(in srgb, var(--ink) 84%, var(--accent)); } }
button.apv-btn:active { translate: 0 1px; }
.apv-fine { font-size: 14px; line-height: 1.5; color: var(--ink-3); max-width: 60ch; }

.apv-title { font-size: 18px; font-weight: 560; line-height: 1.35; letter-spacing: -0.012em; }
.apv-who { display: grid; gap: 4px; }
.apv-sub { font-size: 14px; color: var(--ink-3); }
.apv-quote { padding: 12px 16px; border-radius: 10px; background: var(--band); color: var(--ink); }
.apv-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; margin: 0; }
.apv-facts div { display: contents; }
.apv-facts dt { color: var(--ink-3); }
.apv-facts dd { margin: 0; color: var(--ink); }
.apv-hidden { display: flex; gap: 10px; align-items: flex-start; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 14px; color: var(--ink-2); }
.apv-hidden .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--ink-3); }

.apv-done { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.apv-done > .ic { box-sizing: content-box; width: 18px; height: 18px; padding: 7px; flex: none; border-radius: 50%; background: var(--mask); color: var(--accent-text); }
.apv-done b { font-weight: 600; }
.apv-log { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.apv-log-h { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.apv-log-row { display: flex; flex-wrap: wrap; gap: 6px; }
.apv-log-row code { padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--band); color: var(--ink-2); font: 500 13px/1.4 var(--mono); }
.apv-log-row code:first-child { color: var(--ink); }

/* the real screen, one click away */
.apv-dlg {
  width: min(826px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; overflow: auto;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); box-shadow: var(--win-shadow);
}
.apv-dlg::backdrop { background: rgb(14 16 20 / 0.56); }
.apv-dlg[open] { animation: apv-dlg-in var(--t-move) var(--ease-out); }
@keyframes apv-dlg-in { from { opacity: 0; transform: translateY(8px); } }
.apv-dlg-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 22px; border-bottom: 1px solid var(--line); }
.apv-dlg-h { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.apv-x { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; }
@media (hover: hover) { .apv-x:hover { background: var(--band); color: var(--ink); } }
.apv-x .ic { width: 20px; height: 20px; }
.apv-dlg picture, .apv-dlg img { display: block; width: 100%; height: auto; }

@media (max-width: 760px) {
  .apv { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .apv-side { display: contents; }
  .apv-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); order: 0; }
  .apv-card { order: 1; }
  .apv-open { order: 2; justify-self: start; }
  .apv-step { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 8px; padding: 4px 4px 8px; text-align: center; }
  .apv-step:not(:last-child)::before, .apv-step:not(:last-child)::after { left: calc(50% + 24px); right: calc(-50% + 24px); top: 19px; bottom: auto; width: auto; height: 2px; }
  .apv-step:not(:last-child)::after { transform: scaleX(0); transform-origin: 0 50%; }
  .apv-step.done::after { transform: scaleX(1); }
  .apv-st { padding-top: 0; }
  .apv-st-t { font-size: 14px; line-height: 1.3; letter-spacing: -0.006em; }
  .apv-st-w { display: none; }
  .apv-stop .apv-acts { padding-left: 0; }
}
@media (max-width: 420px) {
  .apv-bodies { padding: 18px 16px 20px; }
  .apv-facts { gap: 8px 16px; }
  .apv-btn { padding: 0 14px; }
  /* at 320 px "Одобрено — отправить" alone was wider than the card: a button may take two lines */
  .apv-stop { padding: 16px; }
  .apv-btn { white-space: normal; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .apv-body, .apv-body.on, .apv-step::after, .apv-dot, .apv-dot::after, .apv-st-t { transition: none; }
  .apv-dlg[open] { animation: none; }
}

/* forced colours: the current step keeps a filled dot */
@media (forced-colors: active) {
  .apv-step[aria-selected="true"] .apv-dot { forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText; }
}

/* ---- the end of the home page (home.closing) ---------------------------------------
   The app's own icon, the invitation and the next step, centred over a faint light rising from the bottom edge. The download and
   security pages keep their own closings (.closing-in in site-body.css). */
.cv-end { --cv-icon-shadow: rgb(14 16 20 / 0.28); position: relative; isolation: isolate; overflow: clip; padding-block: clamp(96px, 11vw, 152px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cv-end { --cv-icon-shadow: rgb(0 0 0 / 0.6); } }
:root[data-theme="dark"] .cv-end { --cv-icon-shadow: rgb(0 0 0 / 0.6); }
.cv-end::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 80%; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 70% at 50% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 72%);
}
.cv-end-in { display: grid; justify-items: center; text-align: center; }
/* the shipped icon is a white tile with clear margins: a shadow that follows it, never inverted */
.cv-icon { display: block; width: 88px; height: 88px; margin-bottom: 22px; filter: drop-shadow(0 14px 18px var(--cv-icon-shadow)); }
.cv-end h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.036em; max-width: 15ch; }
.cv-end-lead { margin-top: 20px; max-width: 52ch; color: var(--ink-2); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; }

.cv-keyline { margin-top: 18px; max-width: 64ch; }
.cv-end .cta-row { margin-top: 32px; justify-content: center; }

/* Copy: a 44 px icon button; "Copied" rises above it for a moment, so nothing around it moves */
.cv-copy {
  position: relative; flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}
@media (hover: hover) { .cv-copy:hover { color: var(--ink); border-color: var(--ink-3); background: var(--band); } }
.cv-copy .ic { grid-area: 1 / 1; width: 18px; height: 18px; }
.cv-done-ic { visibility: hidden; }
.cv-copy[data-state="copied"] { color: var(--accent-text); }
.cv-copy[data-state="copied"] .cv-copy-ic { visibility: hidden; }
.cv-copy[data-state="copied"] .cv-done-ic { visibility: visible; }
.cv-done-word {
  position: absolute; right: 0; bottom: calc(100% + 6px); padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--page);
  font-size: 12.5px; font-weight: 600; line-height: 1.4; white-space: nowrap; pointer-events: none;
  opacity: 0; translate: 0 4px; transition: opacity var(--t-fast) ease, translate var(--t-mid) var(--ease-out);
}
.cv-copy[data-state="copied"] .cv-done-word { opacity: 1; translate: 0 0; }

/* ---- what Cordes finds: each value over the label the model gets, and files with their verdicts --- */
/* The stage is recessed into the tile and fills it, so no tile ends in an empty band. */
.fnd-stage { flex: 1 0 auto; margin-top: 16px; min-height: 148px; padding: 20px; border-radius: var(--r-stage); background: var(--band); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-wrap: wrap; align-content: center; align-items: flex-start; justify-content: center; gap: 14px 28px; font-size: 17px; line-height: 1.4; color: var(--ink); }
.fnd-col { flex-direction: column; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 18px; }

/* a pair: the real value, struck through, over its label */
.fnd-pair { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; max-width: 100%; text-align: center; }
.fnd-from { color: var(--ink-2); text-decoration-line: line-through; text-decoration-thickness: 1.5px; text-decoration-color: var(--ink-3); overflow-wrap: anywhere; transition: color var(--t-move) ease, text-decoration-color var(--t-move) ease; }
.fnd-num .fnd-from { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.fnd-iban .fnd-from { max-width: 20ch; text-wrap: balance; }
.fnd-to.tok { font-size: 15px; line-height: 1.75; padding: 0 8px; border-radius: 7px; vertical-align: baseline; transition: opacity var(--t-move) var(--ease-out), translate var(--t-move) var(--ease-out); }
.fcard .dg { border-radius: 3px; transition: color var(--t-fast) ease; }
.fcard .dg.lit { color: var(--accent-text); }
.fcard .ok { display: inline-flex; align-items: center; gap: 5px; height: 20px; margin-block: -2px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: opacity var(--t-move) var(--ease-out), translate var(--t-move) var(--ease-out); }
.fcard .ok .ic { width: 14px; height: 14px; color: var(--accent-text); stroke-width: 2.4; }

/* the pay sentence: as written, then as the model gets it */
.fnd-lines { display: grid; align-content: center; justify-content: stretch; gap: 10px; line-height: 1.75; }
.fcard .fnd-lines p { margin: 0; max-width: none; font-size: 17px; color: var(--ink); }
.fcard .fnd-lines .fnd-sent { transition: opacity var(--t-move) var(--ease-out); }
.fnd-lines .fnd-to.tok { font-size: 14px; }
.fcard .stays { border-bottom: 1px dotted var(--ink-3); transition: border-color var(--t-move) ease; }

/* Before a tile plays (only with motion, set by motion.js), values are whole and labels not there yet. */
.fnd-armed .fnd-pair:not(.on) .fnd-from, .fnd-armed:not(.on) .fnd-said .fnd-from { color: var(--ink); text-decoration-color: transparent; }
.fnd-armed .fnd-pair:not(.on) .fnd-to { opacity: 0; translate: 0 -4px; }
.fnd-armed:not(.on) .fnd-sent { opacity: 0; }
.fnd-armed:not(.on) .stays { border-bottom-color: transparent; }
.fnd-armed .ok:not(.on) { opacity: 0; translate: -4px 0; }

/* ---- files and pictures ---- */
.fcard.fnd-files { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: 20px 40px; align-items: start; }
.fnd-files-head { display: grid; gap: 6px; padding-top: 4px; }
.fnd-list { margin: 0; padding: 4px 20px; list-style: none; border-radius: 12px; background: var(--band); box-shadow: inset 0 0 0 1px var(--line); }
.fnd-row { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "ext name badge" "ext says badge"; gap: 2px 14px; padding: 16px 0; }
.fnd-row + .fnd-row { border-top: 1px solid var(--line); }
.fnd-ext { grid-area: ext; align-self: start; width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 600 11px/1 var(--mono); letter-spacing: 0.02em; color: var(--ink-2); }
.fnd-name { grid-area: name; font-family: var(--mono); font-size: 14px; font-variant-ligatures: none; color: var(--ink); overflow-wrap: anywhere; }
.fcard .fnd-says { grid-area: says; font-size: 15px; line-height: 1.5; color: var(--ink-2); transition: opacity var(--t-mid) ease; }
.fnd-badge { grid-area: badge; align-self: center; display: grid; justify-items: end; }
.fnd-badge > span { grid-area: 1 / 1; display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: opacity var(--t-mid) ease; }
.fnd-row[data-verdict="text"] .fnd-is { background: var(--mask); color: var(--ink); box-shadow: inset 0 0 0 1px var(--mask-edge); }
.fnd-row[data-verdict="stop"] .fnd-is { background: var(--warn-bg); color: var(--warn-ink); }
.fnd-row[data-verdict="send"] .fnd-is { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.fnd-badge .fnd-wait { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; visibility: hidden; }
.fnd-bar { position: absolute; left: 54px; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; pointer-events: none; }
/* the one checking pass, row by row */
.fnd-armed .fnd-row:not(.done) .fnd-says, .fnd-armed .fnd-row:not(.done) .fnd-is { opacity: 0; }
.fnd-armed .fnd-row:not(.done) .fnd-wait { opacity: 1; visibility: visible; }
.fnd-row.checking .fnd-bar { opacity: 1; transform: scaleX(1); transition: transform var(--t-slow) var(--ease-out); }
.fnd-row.done .fnd-bar { opacity: 0; transform: scaleX(1); transition: opacity var(--t-mid) ease; }

@media (max-width: 900px) { .fcard.fnd-files { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .fnd-stage { padding: 18px 14px; min-height: 128px; gap: 14px 20px; }
  .fnd-list { padding: 2px 14px; }
  .fnd-row { grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "ext name" "ext says" "ext badge"; gap: 4px 12px; }
  .fnd-badge { justify-items: start; margin-top: 6px; }
}

/* ---- rules: who can spend what this month (#budgets) ---------------------------------- */
.lim { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(64px, 8vw, 112px); }
.lim-text { display: grid; gap: 14px; }
.lim-text h3 { margin: 0; font-size: var(--fs-h3-sub); font-weight: 560; line-height: 1.2; letter-spacing: -0.02em; }
.lim-text p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.lim-text .lim-more { font-size: 15px; color: var(--ink-3); }
.lim-card { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); }
.lim-rows { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.lim-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 20px; padding: 16px 18px 18px; border: 1px solid transparent; border-radius: 14px; }
.lim-row p { margin: 0; }
.lim-row { position: relative; }
.lim-row + .lim-row:not(.lim-least)::before { content: ""; position: absolute; top: -3px; left: 18px; right: 18px; height: 1px; background: var(--line); }
.lim-least + .lim-row::before { display: none; }
.lim-least { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.lim-who { display: grid; gap: 2px; }
.lim-who b { font-size: 16px; font-weight: 560; letter-spacing: -0.01em; color: var(--ink); }
.lim-who span { font-size: 14px; color: var(--ink-3); }
.lim-fig { font-size: 14px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lim-fig b { font-size: 18px; font-weight: 560; letter-spacing: -0.01em; color: var(--ink); }
.lim-bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.lim-fill { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--v)); transform-origin: 0 50%; }
[data-lim-row="marina"] { --v: 0.9313; --i: 0; }
[data-lim-row="dept"] { --v: 0.9823; --i: 1; }
[data-lim-wait] .lim-fill { transform: scaleX(0); }
.lim:not([data-lim-wait]) .lim-fill { transition: transform var(--t-slow) var(--ease-out) calc(var(--i) * 50ms); }
.lim-note { grid-column: 1 / -1; font-size: 14px; font-weight: 500; color: var(--accent-text); }
.lim-live { align-items: center; }
.lim-live .lim-fig { white-space: normal; }

@media (max-width: 760px) {
  .lim { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 480px) {
  .lim-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 14px 16px; }
  .lim-fig { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .lim .lim-fill { transition: none; }
}

/* forced colours: the budget bars keep an outline and a fill */
@media (forced-colors: active) {
  .lim-bar { forced-color-adjust: none; outline: 1px solid CanvasText; background: Canvas; }
  .lim-fill { background: CanvasText; }
}

/* ---- pages: download, Mac download, what's new ---------------------------------------------------------- */
/* The app icon is the app's own artwork (a white tile): it never inverts, only its shadow deepens in dark. */
.dl-mark, img.dmg-icon { --pg-shade: rgb(14 16 20 / 0.22); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dl-mark, :root:not([data-theme="light"]) img.dmg-icon { --pg-shade: rgb(0 0 0 / 0.6); }
}
:root[data-theme="dark"] .dl-mark, :root[data-theme="dark"] img.dmg-icon { --pg-shade: rgb(0 0 0 / 0.6); }

/* Before site.js has looked at the device, the page shows what html[data-os] (early.js) says,
 * so the card and the steps are final at first paint; afterwards [hidden] decides (html.pg-pf). */
html:not(.pg-pf) .pg-dl [data-when]:not([data-when="download"]) { display: none; }
html:is([data-os="windows"], [data-os="linux"], [data-os="ios"], [data-os="android"]):not(.pg-pf) .pg-dl [data-when="download"] { display: none; }
html[data-os="windows"]:not(.pg-pf) .pg-dl [data-when="windows"],
html[data-os="linux"]:not(.pg-pf) .pg-dl [data-when="linux"],
html:is([data-os="ios"], [data-os="android"]):not(.pg-pf) .pg-dl [data-when="phone"],
html:is([data-os="windows"], [data-os="linux"], [data-os="ios"], [data-os="android"]):not(.pg-pf) .pg-dl [data-when="no-download"] { display: grid; }

/* Safari never says which chip a Mac has, so there the "which Mac" note is part of the first paint
 * (site.js keeps it); elsewhere it waits for the answer and stays away on Apple silicon. */
@supports (font: -apple-system-body) {
  html:not(.pg-pf):not([data-os="ios"]) .pg-dl .note[data-when="mac-unknown"] { display: block; }
}

/* The note under "What's new in" is Russian only: English has nothing to say there. */
.pg-nw-lang:empty { display: none; }

/* /download/mac/: a short first screen, the disk image beside the words, the steps right after. */
.pg-started .page-top { padding-block: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.pg-started .page-top h1 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.03em; max-width: 20ch; }
.pg-top { grid-template-columns: minmax(0, 1fr); }
.pg-top-art { width: 100%; }
.pg-top-art .dmg { margin-top: 0; }
@media (min-width: 1000px) {
  .pg-top { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(40px, 6vw, 96px); align-items: center; }
  .pg-top-art .dmg { margin-left: auto; }
}
.pg-install { padding-top: clamp(40px, 5vw, 64px); }

/* /download/: on wide screens the card shows what comes after the click, beside the button;
 * narrower, the same window stays with the steps. Only one of the two is ever displayed. */
.pg-dl-text { display: grid; gap: 16px; min-width: 0; }
.pg-dl-art { display: none; }
@media (min-width: 1100px) {
  .pg-dl-main { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); column-gap: clamp(32px, 4vw, 56px); align-items: center; }
  .pg-dl-art { display: block; }
  .pg-dl-art .dmg { margin-top: 0; }
  .pg-in-art { display: none; }
}

/* ---- #ways: how far the assistant may go on a Mac (home.reach, js/reach.js) ------- */
.reach { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; margin: 72px 0 56px; }
.reach-text h3 { font-size: var(--fs-h3-sub); font-weight: 560; line-height: 1.2; letter-spacing: -0.02em; max-width: 22ch; }
.reach-text > p { margin-top: 14px; font-size: 16px; color: var(--ink-2); max-width: 52ch; }
.reach-levels { display: grid; gap: 4px; min-width: 0; margin: 26px 0 0; padding: 0; border: 0; }
.reach-lv { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; min-height: 44px; padding: 12px 14px; border: 1px solid transparent; border-radius: var(--r-stage); cursor: pointer; transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease; }
.reach-lv input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
@media (hover: hover) { .reach-lv:hover { background: var(--band); } }
.reach-lv:has(input:checked) { background: var(--band); border-color: var(--line); }
.reach-lv:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.reach-lv-t { display: grid; gap: 2px; min-width: 0; }
.reach-lv-n { font-size: 15.5px; font-weight: 600; line-height: 1.35; letter-spacing: -0.008em; color: var(--ink); }
.reach-lv-d { font-size: 14px; line-height: 1.45; color: var(--ink-3); }
/* the levels add up: a rail joins the dots, filled from Read only down to the chosen level (Off adds nothing) */
.reach-dot { position: relative; z-index: 2; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--page); transition: background-color var(--t-mid) var(--ease-out), border-color var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out); }
.reach-lv:has(input:checked) .reach-dot { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--band); }
.reach-lv:not(:first-of-type):has(~ .reach-lv input:checked) .reach-dot { border-color: var(--accent); background: var(--accent); }
.reach-lv:not(:last-of-type)::before, .reach-lv:not(:last-of-type)::after { content: ""; position: absolute; z-index: 1; left: 23px; top: 33px; bottom: -19px; width: 2px; border-radius: 1px; background: var(--line-strong); }
.reach-lv:not(:last-of-type)::after { background: var(--accent); transform: scaleY(0); transform-origin: 50% 0; transition: transform var(--t-move) var(--ease-in-out); }
.reach-lv:not(:first-of-type):has(~ .reach-lv input:checked)::after { transform: none; }

/* the app at that level, in its own words */
.reach-app { min-width: 0; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--card); overflow: hidden; box-shadow: var(--shadow-card); }
.reach-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--band); }
.reach-bar-t { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.reach-bar .ic, .reach-step-h .ic { width: 16px; height: 16px; color: var(--ink-3); }
.reach-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 13.5px; font-weight: 500; color: var(--ink); }
.reach-chip .ic { width: 14px; height: 14px; }
.reach-note { flex-basis: 100%; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.reach-note:not(:has(span:not([hidden]))) { display: none; }
.reach-stage { display: grid; padding: 18px; }
.reach-st { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(8px); }
.reach-st.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out); }
.reach-step-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.reach-label { margin-top: 12px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.reach-st > .reach-label:first-child { margin-top: 0; }
.reach-count { margin-left: 6px; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.reach-diff { margin: 6px 0 0; padding: 8px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font: 13px/20px var(--mono); font-variant-ligatures: none; color: var(--ink); overflow: hidden; white-space: normal; }
.reach-dl { display: flex; padding: 0 12px; }
.reach-dl > span:last-child { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.reach-dl > span[aria-hidden] { flex: none; width: 20px; color: var(--ink-3); user-select: none; -webkit-user-select: none; }
.reach-rm { background: var(--warn-bg); }
.reach-add { background: var(--mask); }
.reach-quiet { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.reach-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.reach .reach-btn { min-height: 44px; padding: 8px 16px; border-radius: 10px; font-size: 14.5px; line-height: 1.25; white-space: normal; text-align: center; }
.reach .reach-btn .ic { width: 16px; height: 16px; }
.reach-lines { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--ink); }
.reach-lines li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.reach-lines .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--accent-text); stroke-width: 2.2; }
.reach-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--band); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.reach-ok { border-color: var(--mask-edge); background: var(--mask); color: var(--ink); }
.reach-step-h .reach-tag { margin-left: 4px; }
.reach-changed { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.reach-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; }
.reach-path { font-family: var(--mono); font-size: 13.5px; font-variant-ligatures: none; color: var(--ink); }
.reach-again { margin-top: 16px; }
@media (max-width: 900px) {
  .reach { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 56px; }
  .reach-text h3 { max-width: 26ch; }
}
@media (max-width: 480px) {
  .reach-stage { padding: 16px 14px; }
  .reach-bar { padding: 12px 14px; }
  .reach-lv { padding: 12px 10px; gap: 12px; }
  .reach-lv:not(:last-of-type)::before, .reach-lv:not(:last-of-type)::after { left: 19px; }
  .reach-btns .reach-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .reach-st.is-on, .reach-lv:not(:last-of-type)::after, .reach-dot, .reach-lv { transition: none; }
}

/* forced colours: the chosen level keeps a filled dot and a frame */
@media (forced-colors: active) {
  .reach-dot { forced-color-adjust: none; border-color: CanvasText; background: Canvas; }
  .reach-lv:has(input:checked) { outline: 2px solid Highlight; outline-offset: -2px; }
  .reach-lv:has(input:checked) .reach-dot { background: Highlight; border-color: Highlight; box-shadow: inset 0 0 0 3px Canvas; }
}

/* /security/: the "On this page" bar, the security-review block and the closing link. */

/* The bar sticks under the site header. It has no height of its own, so the page does not
   move when it appears; it shows once the h1 has left the screen (secnav.js), or when a
   keyboard user tabs into it. */
.secp-nav { position: sticky; top: var(--hdr-h); z-index: 20; height: 0; }
.secp-bar {
  background: color-mix(in srgb, var(--page) 90%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out);
}
.secp-nav.is-on .secp-bar, .secp-nav:focus-within .secp-bar { opacity: 1; transform: none; pointer-events: auto; }
.secp-rail {
  position: relative; display: flex; gap: 2px; margin-inline: -8px; padding: 6px 8px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 8px;
  scrollbar-width: none;
}
.secp-rail::-webkit-scrollbar { display: none; }
.secp-chip {
  position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 10px; font-size: 14.5px; font-weight: 500; letter-spacing: -0.005em; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  scroll-snap-align: start; transition: color var(--t-fast) ease;
}
.secp-chip[aria-current] { color: var(--ink); }
@media (hover: hover) { .secp-chip:hover { color: var(--ink); } }
.secp-chip:focus-visible { outline-offset: -2px; border-radius: 10px; }
/* A strip as long as the row, cut down to the current chip by clip-path (secnav.js sets --x, --w and
   --full), so the slide repaints nothing; its 1 px edge is the strip showing round a band-coloured inner cut. */
.secp-pill {
  --cut: inset(0 calc(var(--full, 100%) - var(--x, 0px) - var(--w, 0px)) 0 var(--x, 0px) round 10px);
  position: absolute; z-index: 0; top: 6px; left: 0; height: 44px; width: var(--full, 100%);
  background: var(--line); clip-path: var(--cut); opacity: 0; pointer-events: none;
  transition: clip-path var(--t-move) var(--ease-out), opacity var(--t-mid) ease;
}
.secp-pill::before {
  content: ""; position: absolute; inset: 0; background: var(--band);
  clip-path: inset(1px calc(var(--full, 100%) - var(--x, 0px) - var(--w, 0px) + 1px) 1px calc(var(--x, 0px) + 1px) round 9px);
  transition: clip-path var(--t-move) var(--ease-out);
}
.secp-rail.snap .secp-pill::before { transition: none; }
.secp-rail.has-pill .secp-pill { opacity: 1; }
.secp-rail.snap .secp-pill { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .secp-bar, .secp-pill, .secp-pill::before, .secp-chip { transition: none; }
}
/* phones: the row runs to the screen's edges and scrolls sideways */
@media (max-width: 760px) {
  .secp-rail { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
}

/* What is scrolled to, by a link or by Tab, stays clear of the header and the bar; a link to a
   section puts its heading 24px under the bar instead of the section's own top padding. */
html:has(.secp-nav) { scroll-padding-top: calc(var(--hdr-h) + 72px); }
/* the tables' stuck column names sit under the bar (6 + 44 + 6 of rail, 1 of border), not behind it */
@media (min-width: 761px) { html:has(.secp-nav) .compare thead :is(th, td) { top: calc(var(--hdr-h) + 57px); } }
.secp-sec { scroll-margin-top: calc(24px - clamp(80px, 10vw, 136px)); }

/* the security review: the whole width, a label column and a readable answer column */
.secp-kv { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
.secp-kv dt { padding-right: 32px; }
.secp-kv dd > span, .secp-note { display: block; max-width: 68ch; }
.secp-kv dd > span + span { margin-top: 4px; }
.secp-procs { gap: 10px; font-size: inherit; }
@media (min-width: 961px) { .secp-procs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 48px; } }
@media (max-width: 560px) { .secp-kv { grid-template-columns: minmax(0, 1fr); } }
.secp-procs b { font-weight: 600; }
.secp-note { margin-top: 12px; font-size: 14.5px; color: var(--ink-3); }

/* the closing's plain link, as tall as the buttons beside it */
.secp-textlink {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; font-weight: 500;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color var(--t-fast) ease;
}
@media (hover: hover) { .secp-textlink:hover { text-decoration-color: currentColor; } }

/* ---- how a company starts (builder/start.py) ----------------------------------------
   The steps in a row, numbered on one rail, each over the screen where it happens.
   The screens are pictures of the app: small, still and not interactive. */
.cv-steps { list-style: none; margin: 0; padding: 0; counter-reset: cv-step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; column-gap: 32px; row-gap: 18px; }
.cv-steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; }
.cv-step { counter-increment: cv-step; grid-row: span 3; display: grid; grid-template-rows: subgrid; grid-template-columns: 36px minmax(0, 1fr); min-width: 0; }
.cv-step::before {
  content: counter(cv-step); grid-column: 1; grid-row: 1; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-strong);
  color: var(--ink); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
}
/* the rail: from this number to the next one */
.cv-step::after { content: ""; grid-column: 2; grid-row: 1; align-self: center; height: 1px; margin-left: 12px; margin-right: -20px; background: var(--line-strong); }
.cv-steps-4 .cv-step::after { margin-right: -12px; }
.cv-step:last-child::after { background: linear-gradient(90deg, var(--line-strong), transparent); margin-right: 0; }
.cv-step-text { grid-column: 1 / -1; grid-row: 2; display: grid; gap: 8px; align-content: start; padding-right: 8px; }
.cv-step-text h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.015em; }
.cv-step-text p { color: var(--ink-2); font-size: 15.5px; }
.cv-steps .cv-ui { grid-column: 1 / -1; grid-row: 3; }

/* a screen of the app, drawn small */
.cv-ui {
  display: grid; align-content: start; gap: 10px; min-width: 0; padding: 16px 18px 18px;
  border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--card);
  box-shadow: var(--shadow-card);
  font-size: 13.5px; line-height: 1.45; color: var(--ink); text-align: left; cursor: default;
}
.cv-ui-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.cv-tag { flex: none; padding: 1px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--page); color: var(--ink-2); font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
.cv-tag-on { background: var(--mask); border-color: var(--mask-edge); color: var(--ink); }
.cv-kv { margin: 0; display: grid; border-top: 1px solid var(--line); }
.cv-kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px solid var(--line); }
.cv-kv dt { color: var(--ink-3); }
.cv-kv dd { margin: 0; margin-left: auto; font-weight: 500; text-align: right; }
.cv-kv-rows > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.cv-kv-rows dd { margin-left: 0; text-align: left; }
.cv-kv-rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.cv-ui-sub { color: var(--ink-2); font-size: 13px; }
.cv-ui-label { margin-bottom: -5px; color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
.cv-ui-field { display: block; height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--page); color: var(--ink-3); line-height: 32px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* a button in a picture: the app's colours, toned down so nobody takes it for one of the site's */
.cv-ui-btn { justify-self: start; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--accent-text); font-size: 13px; font-weight: 600; white-space: nowrap; }
.cv-ui-btn .ic { width: 14px; height: 14px; }
.cv-ui-go { justify-self: stretch; }

/* step one once builder/company.py has an address: the letter "Write to us" opens */
.cv-ui-write { cursor: auto; }
.cv-mailhead > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.cv-mailhead dd { margin-left: 0; text-align: left; }
.cv-mailhead .cv-addr { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: -2px; }
.cv-addr code { min-width: 0; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.cv-mailbody { display: grid; gap: 4px; color: var(--ink-3); font-size: 13px; }
.cv-mailbody span { display: block; padding: 4px 0; border-bottom: 1px dashed var(--line-strong); }
.cv-ui-write .btn { margin-top: 4px; width: 100%; }

.cv-start-go { margin-top: clamp(36px, 4.5vw, 52px); }

/* The rows of next steps (builder/cta.py): on a phone the two buttons share the width, or take a line each. */
@media (max-width: 480px) { .cv-row { justify-self: stretch; } .cv-row .btn { flex: 1 1 auto; } }

@media (max-width: 1100px) {
  .cv-steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); column-gap: 28px; row-gap: 18px; }
  .cv-steps-4 .cv-step:nth-child(2n)::after { background: linear-gradient(90deg, var(--line-strong), transparent); margin-right: 0; }
  .cv-steps-4 .cv-step:nth-child(n + 3) { margin-top: 28px; }
}
/* one column: the numbers on a rail down the left, each screen beside its words */
@media (max-width: 900px) {
  .cv-steps, .cv-steps-4 { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 0; }
  .cv-step, .cv-steps-4 .cv-step:nth-child(n + 3) { grid-row: auto; grid-template-rows: auto auto; grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; row-gap: 14px; margin-top: 0; padding-bottom: 32px; }
  .cv-step:last-child { padding-bottom: 0; }
  .cv-step::before { grid-row: 1; }
  .cv-step::after, .cv-steps-4 .cv-step:nth-child(2n)::after { grid-column: 1; grid-row: 1 / 3; justify-self: center; align-self: stretch; width: 1px; height: auto; margin: 44px 0 -24px; background: var(--line-strong); }
  .cv-step:last-child::after, .cv-steps-4 .cv-step:last-child::after { content: none; }
  .cv-step-text { grid-column: 2; grid-row: 1; padding-top: 5px; padding-right: 0; }
  .cv-steps .cv-ui { grid-column: 2; grid-row: 2; max-width: 440px; }
}
/* tablets: each screen beside its words */
@media (min-width: 641px) and (max-width: 900px) {
  .cv-step, .cv-steps-4 .cv-step:nth-child(n + 3) { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto; column-gap: 20px; }
  .cv-step::after, .cv-steps-4 .cv-step:nth-child(2n)::after { grid-row: 1; }
  .cv-steps .cv-ui { grid-column: 3; grid-row: 1; max-width: none; }
}

/* Who sees what you write (builder/who.py). Never a bare .who rule: the tour has its own .who. */
.who-stage { display: grid; gap: 28px; }
.who-pick { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.who-opt { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--page); color: var(--ink-2); font-size: 15px; font-weight: 500; line-height: 1.25; cursor: pointer; transition: background-color var(--t-mid) var(--ease-out), color var(--t-mid) var(--ease-out), border-color var(--t-mid) var(--ease-out); }
.who-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
@media (hover: hover) { .who-opt:hover { color: var(--ink); border-color: var(--ink-3); } }
.who-opt:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--page); }
.who-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.who-opt-sees { display: none; }

.who-views { display: grid; gap: 32px; min-width: 0; }
.who-view { display: grid; gap: 16px; align-content: start; min-width: 0; }
.who-card { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); overflow: hidden; box-shadow: var(--shadow-card); }
.who-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.who-av { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--ink); color: var(--page); font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; }
.who-av-ic { background: var(--band); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.who-av-ic .ic { width: 18px; height: 18px; }
.who-av-mark { background: none; overflow: hidden; }
.who-mk { width: 34px; height: 34px; display: block; color: var(--ink); }
.who-id { display: grid; min-width: 0; line-height: 1.3; }
.who-id b { font-size: 15px; font-weight: 600; color: var(--ink); }
.who-id span { font-size: 13.5px; color: var(--ink-3); }
.who-where { margin-left: auto; flex: none; max-width: 45%; text-align: right; font: 500 12.5px/1.3 var(--mono); color: var(--ink-3); }
@media (max-width: 559px) {
  .who-top { flex-wrap: wrap; row-gap: 6px; }
  .who-id { flex: 1 1 0; }
  .who-where { order: 3; flex-basis: 100%; max-width: none; margin-left: 46px; text-align: left; }
}
.who-body { display: grid; gap: 14px; padding: 22px 18px 24px; min-width: 0; }
.who-from { justify-self: end; margin-bottom: -6px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.who-msg { justify-self: end; max-width: 30em; padding: 12px 16px; border-radius: 16px; background: var(--band); color: var(--ink); font-size: 16px; line-height: 1.75; }
.who-msg .val, .who-msg .tok { line-height: 24px; }
.who-msg .tok { font-size: 0.82em; }
.who-row { font-size: 15px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.who-row b { color: var(--ink); font-weight: 600; }
.who-mail { font: 500 13.5px var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.who-facts { display: grid; gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: var(--r-stage); overflow: hidden; background: var(--line); }
.who-facts div { padding: 9px 14px; background: var(--card); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.who-facts dt { font-size: 13.5px; color: var(--ink-3); }
.who-facts dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 560px) {
  .who-facts { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
  .who-facts div { display: grid; gap: 2px; align-content: start; padding: 10px 14px; }
  .who-facts dt { font-size: 13px; }
  .who-facts dd { font-size: 16px; text-align: left; }
}
.who-db { display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); min-width: 0; }
.who-db code { display: block; font: 500 12.5px/1.5 var(--mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-shut { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 14px; color: var(--ink-2); }
.who-shut .ic { flex: none; width: 14px; height: 14px; color: var(--ink-3); }
.who-note { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.who-note a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* One view at a time once the browser can follow the radios by itself (no JS needed);
   without :has() every view stays in the page as a list. Narrow: only the chosen view takes
   space and fades in. Wide: all views share one cell, so the panel never changes height,
   and they cross-fade. */
@supports selector(:has(*)) {
  .who-views { gap: 0; }
  .who-view { display: none; }
  .who-stage:has(input[value="you"]:checked) [data-who-view="you"],
  .who-stage:has(input[value="team"]:checked) [data-who-view="team"],
  .who-stage:has(input[value="other"]:checked) [data-who-view="other"],
  .who-stage:has(input[value="boss"]:checked) [data-who-view="boss"],
  .who-stage:has(input[value="it"]:checked) [data-who-view="it"],
  .who-stage:has(input[value="model"]:checked) [data-who-view="model"],
  .who-stage:has(input[value="staff"]:checked) [data-who-view="staff"],
  .who-stage:has(input[value="local"]:checked) [data-who-view="local"] { display: grid; opacity: 1; visibility: visible; transform: none; animation: who-in var(--t-mid) var(--ease-out); transition: opacity var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out), visibility 0s; }
  @media (min-width: 900px) {
    .who-view { display: grid; grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out), visibility 0s linear var(--t-mid); }
    .who-views .who-view { animation: none !important; }
  }
}
@keyframes who-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .who-view, .who-opt { transition: none !important; transform: none !important; animation: none !important; }
}

/* wide: the choices become a list beside the view, each with what that party gets */
@media (min-width: 900px) {
  .who-stage { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
  /* the views share the tallest one's box: each sits in its middle, beside the middle of the list */
  .who-view { align-content: center; }
  .who-pick { display: grid; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--band); }
  .who-opt { display: flex; justify-content: space-between; gap: 16px; min-height: 48px; padding: 8px 14px; border: 0; border-radius: 10px; background: transparent; font-size: 16px; }
  @media (hover: hover) { .who-opt:hover { background: var(--card); } }
  .who-opt:has(input:checked) { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgb(14 16 20 / 0.08), 0 0 0 1px var(--line); }
  .who-opt:has(input:focus-visible) { outline-offset: 1px; }
  .who-opt-sees { display: block; flex: none; max-width: 48%; text-align: right; font: 500 12.5px/1.35 var(--mono); color: var(--ink-3); }
  .who-opt:has(input:checked) .who-opt-sees { color: var(--accent-text); }
  .who-body { padding: 26px 24px 28px; }
  .who-top { padding: 14px 20px; }
}

/* forced colours drop backgrounds and shadows: the chosen party keeps the system's highlight */
@media (forced-colors: active) {
  .who-opt:has(input:checked) { forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText; }
  .who-opt:has(input:checked) .who-opt-sees { color: HighlightText; }
}
