/* Arivna v2 "Midnight precision" design system. Docs: DESIGN.md. Art direction: ART.md.
   Dark is the hero experience; light is equally finished. Colours live in tokens only. */

/* Fonts ------------------------------------------------------------------- */
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Tokens ------------------------------------------------------------------ */
:root {
  color-scheme: dark;
  --bg: #08090a;
  --surface: #0f1012;
  --raised: #16171a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ededef;
  --text-2: #8a8f98;
  --text-3: #5a5f69;
  --accent: #3ddc68;
  --accent-hover: #5be584;
  --on-accent: #04140a;
  --accent-text: #3ddc68;
  --accent-soft: rgba(61, 220, 104, 0.12);
  --indigo: rgba(110, 123, 255, 0.14);
  --bad: #ff6b6b;
  --warn: #f5b74f;
  --info: #7c8cff;
  --header-bg: rgba(8, 9, 10, 0.7);
  --head-grad: linear-gradient(180deg, #ededef 0%, rgba(237, 237, 239, 0.7) 100%);
  --accent-grad: linear-gradient(92deg, #3ddc68 0%, #a6f2bd 100%);
  --edge: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  --spot: rgba(255, 255, 255, 0.06);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --bezel: #1a1b1e;
  --phone-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
  --device-shadow: 0 1px 1px rgba(0, 0, 0, 0.5), 0 12px 24px -8px rgba(0, 0, 0, 0.5), 0 34px 64px -20px rgba(0, 0, 0, 0.6), 0 80px 140px -48px rgba(0, 0, 0, 0.75);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-h1: clamp(44px, 7vw, 92px);
  --fs-h2: clamp(32px, 4.4vw, 56px);
  --fs-h3: 20px;
  --fs-body: 17px;
  --fs-lead: clamp(17px, 1.4vw, 19px);
  --fs-sm: 15px;
  --fs-xs: 13px;

  --max: 1200px;
  --gutter: 24px;
  --section: clamp(80px, 9vw, 128px);
  --header-h: 64px;
  --r-sm: 8px;
  --r: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 600ms;
}
@media (max-width: 640px) { :root { --gutter: 16px; } }

/* Light theme: OS preference unless the visitor picked dark, or an explicit pick. Keep both blocks identical. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #fafaf9; --surface: #ffffff; --raised: #f2f2f0;
    --line: rgba(10, 10, 10, 0.08); --line-2: rgba(10, 10, 10, 0.15);
    --text: #0a0a0a; --text-2: #5c6068; --text-3: #8b8f97;
    --accent-text: #0e7a33; --accent-soft: rgba(14, 122, 51, 0.09); --indigo: rgba(110, 123, 255, 0.12);
    --bad: #c62828; --warn: #a15c00; --info: #3f4fd6;
    --header-bg: rgba(250, 250, 249, 0.72);
    --head-grad: linear-gradient(180deg, #0a0a0a 0%, rgba(10, 10, 10, 0.74) 100%);
    --accent-grad: linear-gradient(92deg, #0e7a33 0%, #17a34a 100%);
    --edge: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    --spot: rgba(10, 10, 10, 0.035);
    --shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 30px 70px -30px rgba(10, 10, 10, 0.25);
    --phone-shadow: 0 24px 48px -24px rgba(10, 10, 10, 0.35);
    --device-shadow: 0 1px 1px rgba(10, 10, 10, 0.14), 0 12px 24px -10px rgba(10, 10, 10, 0.2), 0 34px 64px -26px rgba(10, 10, 10, 0.26), 0 70px 120px -48px rgba(10, 10, 10, 0.3);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafaf9; --surface: #ffffff; --raised: #f2f2f0;
  --line: rgba(10, 10, 10, 0.08); --line-2: rgba(10, 10, 10, 0.15);
  --text: #0a0a0a; --text-2: #5c6068; --text-3: #8b8f97;
  --accent-text: #0e7a33; --accent-soft: rgba(14, 122, 51, 0.09); --indigo: rgba(110, 123, 255, 0.12);
  --bad: #c62828; --warn: #a15c00; --info: #3f4fd6;
  --header-bg: rgba(250, 250, 249, 0.72);
  --head-grad: linear-gradient(180deg, #0a0a0a 0%, rgba(10, 10, 10, 0.74) 100%);
  --accent-grad: linear-gradient(92deg, #0e7a33 0%, #17a34a 100%);
  --edge: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  --spot: rgba(10, 10, 10, 0.035);
  --shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 30px 70px -30px rgba(10, 10, 10, 0.25);
  --phone-shadow: 0 24px 48px -24px rgba(10, 10, 10, 0.35);
  --device-shadow: 0 1px 1px rgba(10, 10, 10, 0.14), 0 12px 24px -10px rgba(10, 10, 10, 0.2), 0 34px 64px -26px rgba(10, 10, 10, 0.26), 0 70px 120px -48px rgba(10, 10, 10, 0.3);
}

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--fs-body)/1.6 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
p a, li a, td a, .prose a { color: var(--text); text-decoration-line: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
code, kbd, pre, samp { font-family: var(--mono); font-size: 0.9em; }
:not(pre) > code { padding: 0.1em 0.35em; border-radius: 6px; background: var(--raised); border: 1px solid var(--line); font-size: 0.85em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 600; color: var(--text); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.035em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.015em; }
h4 { font-size: 16px; line-height: 1.4; }
/* Gradient headings: padding keeps descenders inside the painted area (never clip text). */
h1, h2 { background: var(--head-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; margin-bottom: 0.32em; }
.accent { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--text-2); max-width: 60ch; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: var(--fs-sm); }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  font: 500 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 40px; } .mb-0 { margin-bottom: 0; }

/* Icons: <svg class="i" viewBox="0 0 24 24"> stroked; add .i--fill for filled brand marks */
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }

/* Layout ------------------------------------------------------------------ */
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.container--prose { max-width: calc(70ch + 2 * var(--gutter)); }
.section { position: relative; padding-block: var(--section); }
.section--line { border-top: 1px solid var(--line); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head .lead { margin-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .split > :first-child { grid-column: 1 / span 5; }
  .split > :last-child { grid-column: 7 / span 6; }
  .split--even > :first-child { grid-column: 1 / span 6; }
  .split--even > :last-child { grid-column: 7 / span 6; }
}
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid--3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stack > * + * { margin-top: 16px; }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Header ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); border-bottom: 1px solid transparent; transition: border-color 200ms; }
/* Blur sits on a pseudo-element so the fixed mobile sheet inside the header is not trapped by it. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--header-bg); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; color: var(--text); }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14.5px; color: var(--text-2); text-decoration: none; transition: color 150ms, background-color 150ms; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav__link:hover { background: var(--raised); }
.nav__more { display: none; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; text-decoration: none; transition: color 150ms, background-color 150ms; }
.icon-btn:hover { color: var(--text); background: var(--raised); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu-btn { display: none; }
.menu-btn span { position: absolute; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 250ms var(--ease); }
.menu-btn span:first-child { transform: translateY(-3px); }
.menu-btn span:last-child { transform: translateY(3px); }
.menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.menu-btn { position: relative; }

@media (max-width: 899px) {
  .site-header__inner { gap: 12px; }
  .header-actions { margin-left: auto; }
  .header-actions .gh-link { display: none; }
  .js .menu-btn { display: inline-grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; display: block; overflow-y: auto;
    padding: 24px var(--gutter) 40px; background: var(--bg);
    visibility: hidden; opacity: 0; transition: opacity 250ms var(--ease), visibility 0s 250ms;
  }
  .nav.is-open { visibility: visible; opacity: 1; transition: opacity 250ms var(--ease); }
  .nav__list { display: block; }
  .nav__list .nav__link { padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; color: var(--text); background: none; }
  .nav__more { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; list-style: none; margin: 28px 0 0; padding: 0; }
  .nav__more a { display: block; padding: 8px 0; color: var(--text-2); text-decoration: none; }
  body.no-scroll { overflow: hidden; }
}
@media (max-width: 380px) { .header-actions .btn { display: none; } }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--r); border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font: 500 15px/1 var(--font); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 150ms var(--ease), filter 150ms, background-color 150ms, border-color 150ms;
}
.btn:hover { transform: translateY(-1px); border-color: var(--text-3); background: var(--raised); }
.btn:active { transform: scale(0.98); }
.btn--primary { border-color: transparent; background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08); }
.btn--primary:hover { background: var(--accent-hover); border-color: transparent; filter: brightness(1.03); }
.btn--lg { height: 44px; padding: 0 20px; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; text-decoration: none; }
.link-arrow .i { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
.link-arrow:hover .i { transform: translateX(3px); }

/* Badges & chips ---------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); font: 500 12.5px/1 var(--mono); color: var(--text-2); text-decoration: none; }
.badge--accent { color: var(--accent-text); background: var(--accent-soft); border-color: transparent; }
.badge--ok { color: var(--accent-text); }
.badge--bad { color: var(--bad); }
.badge--warn { color: var(--warn); }
.badge--info { color: var(--info); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow);
  font: 500 13px/1.2 var(--mono); color: var(--text); white-space: nowrap;
}
.chip .i { color: var(--accent-text); }

/* Cards ------------------------------------------------------------------- */
.card { position: relative; display: block; padding: 30px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--edge); pointer-events: none; }
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: var(--fs-sm); }
.card--link { text-decoration: none; transition: border-color 200ms; }
.card--link:hover { border-color: var(--line-2); }
.card__icon { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 20px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--raised); color: var(--text); }
.card__icon .i { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .card--spot::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 60%); }
  .card--spot:hover::after { opacity: 1; }
}

/* Bloom: soft light behind hero product / CTA. <div class="bloom" aria-hidden="true"></div> */
.bloom { position: absolute; z-index: -1; pointer-events: none; inset: 0; overflow: hidden; }
.bloom::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(1100px, 160%); aspect-ratio: 1.6; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side at 42% 52%, rgba(61, 220, 104, 0.2), transparent 70%), radial-gradient(closest-side at 62% 44%, var(--indigo), transparent 75%); filter: blur(10px); }

/* Hero (home) ------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow-x: clip; padding-top: clamp(64px, 9vw, 120px); text-align: center; }
.hero h1 { margin-inline: auto; }
.hero .lead { margin: 0 auto 32px; }
.hero .cluster { justify-content: center; }
@media (max-width: 480px) { .hero .cluster { flex-direction: column; align-items: stretch; } }
.hero__meta { margin: 24px 0 0; font: 13px/1.5 var(--mono); color: var(--text-2); }
.hero__meta span + span::before { content: "·"; margin: 0 10px; color: var(--text-3); }
.hero__stage { position: relative; isolation: isolate; display: grid; justify-items: center; margin-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(64px, 8vw, 112px); perspective: 1400px; }
.hero__stage .bloom { inset: -10% -20% 0; }
/* Quiet depth field: it gives the product a physical stage without reducing legibility. */
.hero__stage::before,
.hero__stage::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; transform: translate3d(var(--field-x, 0), var(--field-y, 0), 0); transition: transform 800ms var(--ease); }
.hero__stage::before { width: min(720px, 86vw); aspect-ratio: 1; top: 7%; border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: inset 0 0 90px color-mix(in srgb, var(--accent) 8%, transparent), 0 0 120px color-mix(in srgb, var(--indigo) 45%, transparent); opacity: .72; }
.hero__stage::after { width: min(520px, 68vw); aspect-ratio: 1; top: 17%; border: 1px solid color-mix(in srgb, var(--text) 8%, transparent); opacity: .62; }
/* Device wrapper: scroll + pointer depth, kept on compositor-only transforms. */
.hero__device { transform: rotateX(calc(var(--tilt, 0deg) + var(--rx, 0deg))) rotateY(var(--ry, 0deg)) translate3d(var(--tx, 0), var(--ty, 0), 0); transform-origin: 50% 74%; transform-style: preserve-3d; transition: transform 720ms var(--ease); will-change: transform; }
.hero__device::after { content: ""; position: absolute; z-index: -1; left: 12%; right: 12%; bottom: -34px; height: 52px; border-radius: 50%; background: rgba(0, 0, 0, .56); filter: blur(22px); transform: translateZ(-60px) scaleX(.94); opacity: .64; }
.hero .phone { --phone-glow: 0 70px 140px -50px rgba(61, 220, 104, 0.32), 0 40px 110px -40px rgba(110, 123, 255, 0.3); }
.hero__dots { display: flex; gap: 2px; margin-top: 28px; }
.hero__dot { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; }
.hero__dot::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--text-3); transition: width 400ms var(--ease), background-color 300ms; }
.hero__dot:hover::before { background: var(--text-2); }
.hero__dot[aria-current="true"]::before { width: 18px; background: var(--accent); }
/* Glass chips beside the phone (never over the screen) */
.hero__chip {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), color-mix(in srgb, var(--surface) 55%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.2), 0 18px 40px -16px rgba(0, 0, 0, 0.55);
}
:root[data-theme="light"] .hero__chip { border-color: var(--line-2); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(10, 10, 10, 0.06), 0 18px 40px -18px rgba(10, 10, 10, 0.25); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .hero__chip { border-color: var(--line-2); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(10, 10, 10, 0.06), 0 18px 40px -18px rgba(10, 10, 10, 0.25); } }
@media (min-width: 1100px) {
  .hero__chip { position: absolute; left: calc(50% + 196px); top: 24%; }
  .hero__chip--b { left: auto; right: calc(50% + 196px); top: 58%; }
}
@media (max-width: 1099px) { .hero__chip { margin-top: 20px; } .hero__chip + .hero__chip { margin-top: 10px; } }
@media (max-width: 760px) { .hero__chip--b { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__device { animation: phone-in 900ms cubic-bezier(0.22, 1.18, 0.36, 1) 120ms both; }
  .js .hero__chip, .js .hero__dots { animation: chip-in 700ms var(--ease) 650ms both; }
  .js .hero__chip--b { animation-delay: 780ms; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__device, .hero__stage::before, .hero__stage::after { transform: none !important; transition: none !important; }
}
@keyframes phone-in { from { opacity: 0; translate: 0 28px; scale: 0.96; } }
@keyframes chip-in { from { opacity: 0; translate: 0 10px; } }
.js .hero .phone { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* Page hero (inner pages) */
.page-hero { position: relative; isolation: isolate; padding: clamp(72px, 10vw, 136px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero .bloom::before { top: 0; opacity: 0.6; }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 72px); max-width: 16ch; }
.page-hero .lead { margin-bottom: 0; }

/* Facts bar --------------------------------------------------------------- */
.facts { border-block: 1px solid var(--line); }
.facts ul { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; align-items: center; gap: 10px; padding: 22px 28px; font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }
.facts li + li { border-left: 1px solid var(--line); }
.facts .i { width: 15px; height: 15px; color: var(--accent-text); }
@media (max-width: 900px) {
  .facts ul { display: grid; grid-template-columns: 1fr 1fr; }
  .facts li { padding: 18px 12px; justify-content: center; border-left: 0; font-size: 12px; }
  .facts li + li { border-left: 0; }
  .facts li:nth-child(even) { border-left: 1px solid var(--line); }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .facts li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Phone mockup. Screens are 1080x2270 and app-only: the status bar (time, punch-hole camera, icons), home pill,
   glass sheen and side buttons are drawn here, so every <figure class="phone"> gets them with no extra markup.
   --b = bezel, --r = outer radius. Inside the screen, sizes use cqw (percent of screen width) so all sizes scale. */
.phone {
  --b: 9px; --r: 44px;
  position: relative; width: 300px; max-width: 100%; margin: 0; padding: var(--b); border-radius: var(--r);
  border: 1.5px solid transparent;
  background: linear-gradient(#060607, #060607) padding-box,
    linear-gradient(155deg, #a9acb2, #4a4c52 16%, #1c1d21 40%, #2d2f34 62%, #5e6167 84%, #b6b9bf) border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.14), var(--device-shadow), var(--phone-glow, 0 0 transparent);
}
/* Side buttons: power, then volume, as faint 2px bumps on the right edge */
.phone::before { content: ""; position: absolute; right: -3.5px; top: 19%; width: 2px; height: 22%; border-radius: 0 2px 2px 0; background: linear-gradient(rgba(128, 131, 138, 0.55) 0 30%, transparent 30% 42%, rgba(128, 131, 138, 0.55) 42%); }
/* Glass: a very soft diagonal sheen over the screen */
.phone::after { content: ""; position: absolute; inset: var(--b); z-index: 3; border-radius: calc(var(--r) - var(--b) - 1.5px); pointer-events: none;
  background: linear-gradient(116deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.025) 30%, transparent 46%); }
.phone__screen { position: relative; container-type: inline-size; border-radius: calc(var(--r) - var(--b) - 1.5px); overflow: hidden; background: #1c1b22; }
/* Status bar strip above the screenshot: time left, camera centred, signal/wifi/battery right. Never over app UI. */
.phone__screen::before {
  content: "9:41"; position: relative; z-index: 2; display: block; height: 9.6cqw; padding-left: 7.5cqw;
  font: 600 3.7cqw/9.6cqw var(--font); letter-spacing: 0.01em; color: #fff; text-align: left;
  background: radial-gradient(circle, #000 0 1.4cqw, #2b2d34 1.5cqw 1.8cqw, transparent 1.9cqw) 50% 50% / 5cqw 5cqw no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 14' fill='white'%3E%3Cpath d='M0 13L13 1v12z'/%3E%3Cpath d='M28.5 13L19.6 4.2a12.6 12.6 0 0 1 17.8 0z'/%3E%3Crect x='42.75' y='1.75' width='19' height='10.5' rx='3' fill='none' stroke='white' stroke-opacity='.55' stroke-width='1.5'/%3E%3Crect x='45' y='4' width='12' height='6' rx='1.3'/%3E%3Crect x='63.4' y='5' width='1.8' height='4' rx='.8' fill-opacity='.55'/%3E%3C/svg%3E") right 6.5cqw center / 16cqw auto no-repeat,
    #1c1b22;
  transition: background-color 600ms var(--ease);
}
/* Bar colour follows the visible screenshot's top colour */
.phone__screen:has(> img:not([aria-hidden])[src$="private.png"])::before,
.phone__screen:has(> img:not([aria-hidden])[src$="tabs.png"])::before { background-color: #25003e; }
.phone__screen:has(> img:not([aria-hidden])[src$="menu.png"])::before,
.phone__screen:has(> img:not([aria-hidden])[src$="siteinfo.png"])::before { background-color: #131217; }
/* Home indicator */
.phone__screen::after { content: ""; position: absolute; z-index: 2; left: 50%; bottom: 1.9cqw; width: 35cqw; height: 1.25cqw; margin-left: -17.5cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.6); }
/* The top 26px of every capture hold a system overlay: crop them (cover + bottom anchor). */
.phone__screen img { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 2244; object-fit: cover; object-position: 50% 100%; }
.phone__screen img.is-missing { visibility: hidden; }
.phone--sm { --b: 7px; --r: 36px; width: 236px; }
.phone--lg { --b: 10px; --r: 47px; width: 320px; }

/* Hero phone cycling through screens (.phone--cycle): extra images sit over the first. Without JS only the first shows. */
.phone--cycle .phone__screen img + img { position: absolute; left: 0; bottom: 0; opacity: 0; }
.phone--cycle.is-cycling .phone__screen img { opacity: 0; transform: translateY(2.5%); transition: opacity 700ms var(--ease), transform 900ms var(--ease); }
.phone--cycle.is-cycling .phone__screen img.is-leaving { transform: translateY(-2.5%); }
.phone--cycle.is-cycling .phone__screen img.is-active { opacity: 1; transform: none; }

/* Gallery: horizontal snap strip of .shot cards, edges fade into the page */
.gallery {
  --fade: max(var(--gutter), calc((100% - var(--max)) / 2));
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 12px var(--fade) 48px; scroll-padding-inline: var(--fade);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline-offset: -2px; }
.shot {
  --tint: rgba(61, 220, 104, 0.16);
  position: relative; flex: none; display: flex; flex-direction: column; width: 290px; margin: 0; scroll-snap-align: start;
  border-radius: 24px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(100% 62% at 50% 22%, var(--tint), transparent 72%), linear-gradient(180deg, color-mix(in srgb, var(--tint) 45%, transparent), transparent 80%), var(--surface);
  transition: transform 450ms var(--ease), border-color 200ms, box-shadow 450ms var(--ease);
}
.shot:nth-child(4n + 2) { --tint: rgba(110, 123, 255, 0.18); }
.shot:nth-child(4n + 3) { --tint: rgba(170, 120, 255, 0.16); }
.shot:nth-child(4n + 4) { --tint: rgba(56, 189, 248, 0.14); }
.shot::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--edge); }
.shot .phone { --device-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 24px 40px -18px rgba(0, 0, 0, 0.55); margin: 28px auto; transition: transform 500ms var(--ease); }
.shot figcaption { margin: auto 0 0; padding: 18px 24px 22px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.shot figcaption strong { display: block; margin-bottom: 2px; color: var(--text); font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.shot:focus-visible { outline-offset: 3px; border-radius: 24px; }
.shot:focus-visible, .shot:hover { border-color: var(--line-2); }
@media (hover: hover) and (pointer: fine) {
  .shot:hover, .shot:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }
  .shot:hover .phone, .shot:focus-visible .phone { transform: scale(1.025); }
}

/* Request log panel (dark in both themes on purpose) ----------------------- */
.reqlog { --rl-line: rgba(255, 255, 255, 0.07); position: relative; border-radius: var(--r-lg); border: 1px solid rgba(255, 255, 255, 0.1); background: #0c0d0f; color: #d9dbe0; box-shadow: var(--shadow); overflow: hidden; font: 12.5px/1.5 var(--mono); }
.reqlog::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent); }
.reqlog__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rl-line); }
.reqlog__dots { display: flex; gap: 6px; }
.reqlog__dots i { width: 10px; height: 10px; border-radius: 50%; background: #26282c; }
.reqlog__bar strong { font-weight: 500; color: #ededef; }
.reqlog__host { color: #80858e; }
.reqlog__counts { margin-left: auto; display: flex; gap: 14px; color: #8a8f98; }
.reqlog__counts b { font-weight: 600; color: #ededef; }
.reqlog__list { list-style: none; margin: 0; padding: 6px 0; height: 352px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; -webkit-mask-image: linear-gradient(transparent, #000 28%); mask-image: linear-gradient(transparent, #000 28%); }
.reqlog__row { flex: none; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 2px 14px; padding: 8px 18px; border-top: 1px solid var(--rl-line); }
.reqlog__row .url, .reqlog__row .rule { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reqlog__row .url { color: #e4e6ea; }
.reqlog__row .rule { grid-column: 2; color: #80858e; font-size: 11.5px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--blocked { color: #ff7a7a; }
.tag--allowed { color: #3ddc68; }
.tag--redirected { color: #8f9bff; }
.reqlog__foot { margin: 0; padding: 12px 18px; border-top: 1px solid var(--rl-line); color: #8a8f98; font: 12.5px/1.5 var(--font); }
.js .reqlog__row.is-new { animation: rise 500ms var(--ease); }
@media (max-width: 520px) {
  .reqlog__row { grid-template-columns: minmax(0, 1fr); padding: 9px 14px; }
  .reqlog__row .rule { grid-column: 1; }
  .reqlog__bar { padding: 12px 14px; flex-wrap: wrap; }
  .reqlog__host { display: none; }
  .reqlog__list { height: 400px; }
}

/* Stats ------------------------------------------------------------------- */
.stats { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--edge); }
.stat__value { font: 500 40px/1 var(--mono); letter-spacing: -0.04em; color: var(--text); }
.stat__value small { margin-left: 4px; font-size: 0.5em; letter-spacing: 0; color: var(--text-2); }
.stat__label { margin-top: 14px; font-weight: 500; color: var(--text); }
.stat__note { margin-top: 8px; font-size: var(--fs-xs); line-height: 1.55; color: var(--text-2); }
.stat--accent .stat__value { color: var(--accent-text); }

/* Big numbers row */
.numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
@media (min-width: 960px) { .numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.number { padding: 36px 24px 8px 0; }
.number + .number { padding-left: 24px; border-left: 1px solid var(--line); }
@media (max-width: 959px) {
  .number { padding: 28px 16px 24px 0; }
  .number:nth-child(odd) { padding-left: 0; border-left: 0; }
  .number:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .numbers { grid-template-columns: minmax(0, 1fr); }
  .number, .number + .number { padding: 24px 0; border-left: 0; }
  .number + .number { border-top: 1px solid var(--line); }
}
@media (max-width: 360px) { .facts li { padding: 16px 6px; font-size: 11px; letter-spacing: 0.04em; } }
.number__value { display: block; font: 500 clamp(40px, 5.2vw, 68px)/1 var(--mono); letter-spacing: -0.05em; color: var(--text); white-space: nowrap; }
.number__value small { margin-left: 6px; font-size: 0.36em; letter-spacing: 0; color: var(--text-2); }
.number__label { display: block; margin-top: 16px; font-weight: 500; }
.number__note { display: block; margin-top: 6px; font-size: var(--fs-xs); line-height: 1.55; color: var(--text-2); max-width: 32ch; }

/* Bento ------------------------------------------------------------------- */
.bento { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.bento .card { display: flex; flex-direction: column; }
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--lg, .bento > :last-child { grid-column: span 2; }
}
/* 4 columns only from 1100px: below that 1x1 tiles get too narrow for their copy and UI crop. */
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bento > :last-child { grid-column: auto; }
  .tile--lg { grid-column: span 2; grid-row: span 2; }
  .tile--wide, .bento > .tile--wide:last-child { grid-column: span 2; }
}
.tile--lg { padding-bottom: 0; }
.tile__shot { position: relative; flex: 1; min-height: clamp(300px, 72vw, 400px); margin: 32px -1px 0; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
/* Out of flow so the phone fills whatever height the grid row gives the tile (no empty band under it). */
.tile__shot .phone { --b: 11px; --r: 52px; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(400px, 86%); }
.bento .tags { margin-top: auto; padding-top: 20px; }
/* Small tiles: a UI crop bleeding off the bottom edge, so short copy never leaves an empty tile */
.card > .tile__crop { position: relative; margin: auto -1px -31px; padding-top: 24px; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.tile__crop > * { border-radius: 14px 14px 0 0; border: 1px solid var(--line-2); border-bottom: 0; background: #0c0d0f; overflow: hidden; }
.tile__crop img { width: 100%; aspect-ratio: 1080 / 640; object-fit: cover; object-position: 50% 1.6%; /* skips the 26px system overlay at the top of each capture */ }
.rules-ui { aspect-ratio: 1080 / 640; padding: 6px 0 18px; color: #d9dbe0; font: 12px/1.5 var(--mono); }
.rules-ui p { display: flex; justify-content: space-between; margin: 0; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: #ededef; font-size: 12px; }
.rules-ui p span { color: #8a8f98; }
.rules-ui code { display: block; padding: 9px 14px; border: 0; border-radius: 0; background: none; color: #e4e6ea; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rules-ui code b { font-weight: 400; color: #3ddc68; }

/* Lists ------------------------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 28px; color: var(--text-2); }
.checklist li + li { margin-top: 10px; }
.checklist li strong { color: var(--text); font-weight: 500; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-text); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: calc(0.42em + 4px); width: 4px; height: 6px; border: solid var(--accent-text); border-width: 0 1.5px 1.5px 0; transform: rotate(40deg); }
.checklist--no li::before { background: transparent; box-shadow: inset 0 0 0 1px var(--text-3); }
.checklist--no li::after { left: 6px; top: calc(0.42em + 6.5px); width: 6px; height: 0; border-width: 1.5px 0 0; border-color: var(--text-2); transform: none; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 12px; }
.steps > li { counter-increment: step; position: relative; padding: 24px 24px 24px 72px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 24px; top: 25px; font: 500 14px/1.5 var(--mono); color: var(--accent-text); }
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { color: var(--text-2); font-size: var(--fs-sm); }
.steps > li > :last-child { margin-bottom: 0; }

/* Callout */
.callout { padding: 20px 24px; border-radius: var(--r-md); border: 1px solid var(--line); border-left: 2px solid var(--info); background: var(--surface); color: var(--text-2); font-size: var(--fs-sm); }
.callout > :last-child { margin-bottom: 0; }
.callout strong { color: var(--text); font-weight: 600; }
.callout--ok { border-left-color: var(--accent-text); }
.callout--warn { border-left-color: var(--warn); }
.callout--bad { border-left-color: var(--bad); }

/* Accordion (details/summary, works without JS) */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 22px 40px 22px 0; cursor: pointer; list-style: none; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border: solid var(--text-2); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform 250ms var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:hover { color: var(--text); }
.faq__body { padding: 0 40px 22px 0; color: var(--text-2); }
.faq__body > :last-child { margin-bottom: 0; }

/* Tables: wrap in .table-wrap; .table--stack turns rows into blocks under 640px */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); background: var(--raised); }
tbody tr:last-child > * { border-bottom: 0; }
th[scope="row"] { font-weight: 500; }
td { color: var(--text-2); }
td.num { text-align: right; font-family: var(--mono); color: var(--text); white-space: nowrap; }
td.yes { color: var(--accent-text); font-weight: 500; }
td.no { color: var(--text-2); font-weight: 500; }
@media (max-width: 640px) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack th, .table--stack td { display: block; border: 0; padding: 3px 16px; text-align: left; }
  .table--stack td.num { text-align: left; }
  .table--stack td[data-label]::before { content: attr(data-label) ": "; color: var(--text-2); }
}

/* Prose (legal pages, long text) */
.prose { max-width: 70ch; font-size: 16.5px; color: var(--text-2); }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin: 56px 0 16px; letter-spacing: -0.025em; }
.prose h3 { font-size: 19px; margin: 32px 0 10px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--text-3); }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent-text); }
.prose table { margin-block: 16px; }
.prose :is(h2, h3)[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.toc { margin-bottom: 48px; padding: 20px 24px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-sm); }
.toc strong { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.toc ol { margin: 14px 0 0; padding-left: 1.2em; columns: 2 220px; column-gap: 32px; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--text); }
.updated { font: 13px/1.5 var(--mono); color: var(--text-2); }

/* Code & checksums (dark in both themes) */
.code { margin: 0 0 16px; border-radius: var(--r-md); border: 1px solid rgba(255, 255, 255, 0.1); background: #0c0d0f; color: #e4e6ea; overflow: hidden; }
.code__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font: 12px/1 var(--mono); color: #8a8f98; }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
.code .btn { color: #ededef; border-color: rgba(255, 255, 255, 0.14); }
.code .btn:hover { background: #16171a; }
.copy-btn { display: none; }
.js .copy-btn { display: inline-flex; }
.checksum { display: block; padding: 12px 14px; border-radius: var(--r-sm); background: var(--raised); border: 1px solid var(--line); font: 13px/1.5 var(--mono); overflow-wrap: anywhere; color: var(--text); }

/* Tabs: [data-tabs] > .tabs__panel > h3 (JS turns headings into tab buttons) */
.tabs__list { display: none; gap: 4px; margin-bottom: 16px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); width: max-content; max-width: 100%; overflow-x: auto; }
.js .tabs__list { display: flex; }
.tabs__btn { height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.tabs__btn:hover { color: var(--text); }
.tabs__btn[aria-selected="true"] { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.tabs__panel > h3 { font-size: 17px; }
.js .tabs__panel > h3 { display: none; }

/* Timeline (changelog) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 0; width: 1px; background: linear-gradient(var(--accent-text), var(--line) 30%); }
.timeline__item { position: relative; padding: 0 0 56px 36px; }
.timeline__item::before { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--accent-text), 0 0 0 4px var(--accent-soft); }
.timeline__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; font: 13px/1.4 var(--mono); color: var(--text-2); }

/* Marquee (filter list names): pauses on hover, masked edges */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: max-content; max-width: 100%; margin: 0 auto; padding: 0; list-style: none; }
.js .marquee__track.is-looping { flex-wrap: nowrap; max-width: none; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font: 13px/1 var(--mono); color: var(--text-2); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Home sections ------------------------------------------------------------ */
.shield-list { margin-top: 28px; }
.promise { text-align: left; }
.promise .card__icon { color: var(--accent-text); }
.links-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 40px; }
.makers { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
@media (min-width: 900px) { .makers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.maker { display: flex; flex-direction: column; gap: 8px; padding: 28px; text-decoration: none; transition: background-color 200ms; }
.maker + .maker { border-top: 1px solid var(--line); }
@media (min-width: 900px) { .maker + .maker { border-top: 0; border-left: 1px solid var(--line); } }
.maker:hover { background: var(--raised); }
.maker__name { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 17px; }
.maker__name .i { width: 16px; height: 16px; color: var(--text-2); }
.maker__text { font-size: var(--fs-sm); color: var(--text-2); }
.maker__stat { margin-top: auto; padding-top: 8px; font: 12.5px/1.5 var(--mono); color: var(--text-2); }
.makers-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.makers-head h2 { margin-bottom: 0; }
.makers-head .cluster { gap: 24px; }
.cta { position: relative; isolation: isolate; text-align: center; padding-block: clamp(96px, 12vw, 176px); overflow: hidden; }
.cta h2 { font-size: clamp(40px, 6vw, 80px); }
.cta .lead { margin: 0 auto 36px; }
.cta .cluster { justify-content: center; }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 32px; font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: 40px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; max-width: 320px; }
.footer-brand p { margin: 16px 0 0; color: var(--text-2); }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
}
.footer-grid h2 { margin: 0 0 16px; padding: 0; background: none; color: var(--text); font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid li a { color: var(--text-2); text-decoration: none; transition: color 150ms; }
.footer-grid li a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-xs); }
.footer-bottom p { margin: 0; }
.footer-social { display: flex; gap: 4px; margin-right: -9px; }

/* Motion: fade + 12px rise, once. Visible by default; hidden only with JS and motion allowed. */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal], .js [data-reveal-stagger] > * { transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
  .js [data-reveal]:not(.is-in), .js [data-reveal-stagger]:not(.is-in) > * { opacity: 0; transform: translateY(12px); }
  .js .is-instant, .js .is-instant > * { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Print */
@media print {
  .site-header, .site-footer, .skip-link, .bloom, .menu-btn { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2 { background: none; color: #000; }
}

/* === v2 pages: product (features/shield/download/changelog) === */
/* Jump links under a page hero */
.jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 32px 0 0; padding: 0; }
.jump .badge { height: 30px; padding: 0 12px; transition: color 150ms, border-color 150ms; }
.jump .badge:hover { color: var(--text); border-color: var(--line-2); }
.align-top { align-items: start; }
.split.align-top > .section-head { margin-bottom: 0; }
@media (min-width: 960px) { .sticky-col { position: sticky; top: calc(var(--header-h) + 40px); } }

/* Feature group (features): heading + hairline list, phone beside them (--flip puts the phone left).
   Phones: cropped preview between heading and list on small screens. */
.fgroup { display: grid; grid-template-columns: minmax(0, 1fr); }
.fgroup__head { margin-bottom: 32px; }
.fgroup__head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.fgroup__head .lead { font-size: var(--fs-body); margin-bottom: 0; }
.fshot { height: 320px; margin: 0 0 32px; overflow: hidden; display: flex; justify-content: center; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.fshot .phone { flex: none; }
@media (min-width: 960px) {
  .fgroup { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .fgroup__head { grid-column: 1 / span 7; grid-row: 1; margin-bottom: 40px; }
  .fgroup__body { grid-column: 1 / span 7; grid-row: 2; }
  .fshot { grid-column: 9 / span 4; grid-row: 1 / span 2; align-self: start; position: sticky; top: calc(var(--header-h) + 40px); height: auto; margin: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .fgroup--flip .fgroup__head, .fgroup--flip .fgroup__body { grid-column: 6 / span 7; }
  .fgroup--flip .fshot { grid-column: 1 / span 4; }
}
.flist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 40px; }
.flist > li { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.flist h3 { font-size: 17px; margin-bottom: 6px; }
.flist p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
@media (min-width: 640px) { .flist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pipeline (shield): numbered steps in a row */
.pipeline { list-style: none; margin: 0; padding: 0; counter-reset: pipe; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.pipeline > li { counter-increment: pipe; position: relative; padding: 24px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.pipeline > li::before { content: counter(pipe, decimal-leading-zero); display: block; margin-bottom: 20px; font: 500 13px/1 var(--mono); color: var(--accent-text); }
.pipeline h3 { font-size: 17px; margin-bottom: 6px; }
.pipeline p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
@media (min-width: 1000px) {
  .pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pipeline > li::before { margin-bottom: 36px; }
  .pipeline > li:not(:last-child)::after { content: ""; position: absolute; top: 30px; right: -13px; width: 14px; height: 1px; background: var(--line-2); }
}
.explain h3 { font-size: 18px; margin: 0 0 8px; }
.explain p { color: var(--text-2); }
.explain p + h3 { margin-top: 32px; }

/* Card grids with fixed counts: 4 (1/2/4 columns), 2 (1/2 columns) */
.grid-4, .grid-2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 820px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-4 > .card, .grid-2 > .card { display: flex; flex-direction: column; }
.grid-4 > .card { padding: 26px; }
.syn__ex { margin-top: auto; padding-top: 12px; }
.syn__ex code { display: block; padding: 8px 10px; line-height: 1.5; overflow-wrap: anywhere; }
@media (min-width: 760px) { .stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.table-title { font-size: 18px; margin-bottom: 8px; }
.table-wrap + .small { margin-top: 16px; }

/* Download cards */
.dl-card h3 { margin: 20px 0 8px; font-size: 24px; letter-spacing: -0.02em; }
.dl-card .checklist { margin: 8px 0 24px; }
.dl-card .cluster { margin-top: auto; padding-top: 8px; }
.dl-card--main { border-color: var(--line-2); background: linear-gradient(180deg, var(--accent-soft), transparent 45%), var(--surface); }
.code-label { margin: 0 0 8px; font-size: var(--fs-xs); }
.code pre code { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Changelog: latest release panel, grouped changes, semver */
.release { display: grid; gap: 32px; padding: clamp(28px, 4vw, 48px); grid-template-columns: minmax(0, 1fr); background: linear-gradient(180deg, var(--accent-soft), transparent 55%), var(--surface); }
@media (min-width: 900px) { .release { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; } }
.release .release__ver { margin: 0; font: 500 clamp(48px, 5.4vw, 64px)/1 var(--mono); letter-spacing: -0.05em; color: var(--text); }
.release .release__ver small { display: block; margin-bottom: 16px; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.release .tags { margin-top: 24px; }
.release h2 { margin-top: 20px; font-size: clamp(28px, 3.2vw, 40px); }
.release .code { margin-top: 20px; }
.timeline__item > h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.025em; }
.timeline__item > p { color: var(--text-2); max-width: 70ch; }
.clgroups { margin-top: 32px; border-top: 1px solid var(--line); }
.clgroup { display: grid; gap: 16px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .clgroup { grid-template-columns: 180px minmax(0, 1fr); } }
.clgroup h4 { align-self: start; display: flex; align-items: center; gap: 10px; margin: 0; padding-top: 2px; font: 500 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); }
.clgroup h4 small { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--text-2); }
.clgroup h4 .dot { background: var(--accent); }
.clgroup--changed h4 .dot { background: var(--info); }
.clgroup--removed h4 .dot { background: var(--text-2); }
.clgroup--security h4 .dot { background: var(--warn); }
.clgroup--perf h4 .dot { background: var(--info); }
.clgroup .checklist { margin: 0; }
.clgroup .checklist li { font-size: var(--fs-sm); }
.semver { display: block; margin-bottom: 20px; font: 500 44px/1 var(--mono); letter-spacing: -0.04em; color: var(--text); }
.semver span { color: var(--text-3); }
th.num { text-align: right; }
@media (min-width: 641px) { .spec th[scope="row"] { width: 34%; } }
.page-hero .hero__meta span { display: inline-block; white-space: nowrap; }
@media (max-width: 520px) {
  .page-hero .hero__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .page-hero .hero__meta span::before { display: none; }
}
@media (max-width: 520px) { .dl-card .cluster .btn, .release .cluster .btn { flex: 1 1 100%; } }

/* === v2 pages: trust (transparency/privacy/terms/faq/contact) === */
/* Prefix tr- keeps these page rules apart from the shared components. */

/* Page hero extras: jump links and the legal effective-date line */
.tr-jump { margin-top: 32px; }
.tr-jump .badge { height: 30px; padding: 0 12px; transition: color 150ms, border-color 150ms; }
.tr-jump .badge:hover { color: var(--text); border-color: var(--line-2); }
.page-hero .updated { margin: 28px 0 0; }

/* Legal reading layout: sticky contents on desktop, 720px measure */
.tr-legal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1080px) {
  .tr-legal { grid-template-columns: 236px minmax(0, 720px); gap: 88px; }
  .tr-legal__aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; scrollbar-width: thin; }
}
.tr-toc { font-size: 14px; }
.tr-toc > strong { display: block; margin-bottom: 14px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.tr-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); counter-reset: toc; }
.tr-toc li { counter-increment: toc; break-inside: avoid; }
.tr-toc li + li { margin-top: 0; }
.tr-toc a { display: flex; gap: 10px; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 1px solid transparent; color: var(--text-2); line-height: 1.4; text-decoration: none; transition: color 150ms, border-color 150ms; }
.tr-toc a::before { content: counter(toc) "."; flex: none; min-width: 22px; font: 12px/1.65 var(--mono); color: var(--text-2); opacity: 0.7; }
.tr-toc a:hover { color: var(--text); border-left-color: var(--accent); }
@media (max-width: 1079px) {
  .tr-toc { padding: 22px 22px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
  .tr-toc ol { border-left: 0; columns: 2 240px; column-gap: 28px; }
  .tr-toc a { margin-left: 0; padding: 6px 0; border-left: 0; }
}
.tr-legal .prose { max-width: 720px; font-size: 17.5px; line-height: 1.75; color: color-mix(in srgb, var(--text) 74%, var(--bg)); }
.tr-legal .prose h2 { display: flex; align-items: baseline; gap: 14px; margin: 56px 0 20px; padding: 40px 0 0; border-top: 1px solid var(--line); background: none; color: var(--text); font-size: clamp(25px, 2.6vw, 31px); line-height: 1.2; letter-spacing: -0.025em; }
.tr-legal .prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.tr-legal .prose h3 { display: flex; align-items: baseline; gap: 12px; margin: 40px 0 12px; font-size: 19.5px; }
.tr-num { flex: none; font: 500 0.6em/1 var(--mono); letter-spacing: 0; color: var(--accent-text); }
.tr-legal .prose h3 .tr-num { font-size: 0.72em; }
.tr-legal .prose li + li { margin-top: 10px; }
.tr-legal .prose .table-wrap { margin-block: 24px; }
.tr-legal .prose table { margin: 0; font-size: 15px; line-height: 1.55; }
.tr-legal .prose th[scope="row"] { color: var(--text); }
.tr-legal .prose th[scope="row"], .tr-perm th[scope="row"] { width: 28%; }
@media (min-width: 960px) { .tr-perm td:last-child { width: 210px; } }
@media (max-width: 640px) { .tr-legal .prose { font-size: 17px; } .tr-legal .prose h2 { margin-top: 56px; padding-top: 36px; } }

/* Tables that stack into labelled blocks below 960px (wide content) */
.tr-stack code { overflow-wrap: anywhere; }
@media (max-width: 959px) {
  .tr-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tr-stack tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .tr-stack tbody tr:last-child { border-bottom: 0; }
  .tr-stack th, .tr-stack td { display: block; width: auto; padding: 0 20px; border: 0; }
  .tr-legal .prose .tr-stack th[scope="row"], .tr-stack th[scope="row"] { width: auto; margin-bottom: 10px; color: var(--text); font-size: 16px; }
  .tr-stack td + td { margin-top: 12px; }
  .tr-stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 3px; font: 500 11.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }
}
@media (max-width: 640px) { .tr-stack th, .tr-stack td { padding: 0 16px; } }

/* Two-up card grid */
.tr-grid2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .tr-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tr-flex { display: flex; flex-direction: column; }
.tr-foot { margin-top: auto; padding-top: 24px; }
.card .checklist { font-size: var(--fs-sm); }
.tr-cardhead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tr-cardhead .card__icon { margin: 0; }
.card .tr-cardhead h3 { margin: 0; }
.tr-icon-accent { color: var(--accent-text); }

/* Transparency: repository cards */
.tr-repo { display: flex; flex-direction: column; min-height: 232px; }
.tr-repo__top { display: flex; align-items: flex-start; justify-content: space-between; }
.tr-repo__top .card__icon { margin: 0; }
.tr-repo__top > .i { color: var(--text-2); transition: transform 200ms var(--ease), color 150ms; }
.tr-repo:hover .tr-repo__top > .i { transform: translate(2px, -2px); color: var(--text); }
.card.tr-repo h3 { margin: 24px 0 8px; font: 500 17px/1.35 var(--mono); letter-spacing: -0.01em; }
.tr-repo .tr-repo__url { margin: auto 0 0; padding-top: 20px; font: 12.5px/1.5 var(--mono); color: var(--text-2); overflow-wrap: anywhere; }

/* Transparency: verification */
.tr-verify { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .tr-verify { grid-template-columns: 5fr 7fr; gap: 24px; } }
.tr-verify__keys { display: grid; gap: 16px; }
.tr-dl { margin: 0; }
.tr-dl dt { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }
.tr-dl dd { margin: 8px 0 0; }
.tr-dl dd + dt { margin-top: 20px; }
.tr-steps > li > h3 { font-size: 17px; }
.tr-steps .code { margin-top: 16px; }
.tr-steps [data-tabs] { margin-top: 16px; }
.tr-steps [data-tabs] .code { margin-top: 0; }
.tr-wrap-code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .tr-steps > li { padding: 54px 20px 20px; }
  .tr-steps > li::before { left: 20px; top: 20px; }
}
.tr-split-top { align-items: start; }
.tr-head-sticky { align-self: start; }
@media (min-width: 960px) { .tr-head-sticky { position: sticky; top: calc(var(--header-h) + 40px); } }
.tr-note { max-width: 860px; margin: 20px 0 0; font-size: var(--fs-sm); color: var(--text-2); }

/* FAQ: grouped accordions, smooth open where the browser supports it */
.tr-faq-sec { padding-block: clamp(56px, 7vw, 96px); }
.tr-faq-group { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .tr-faq-group { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .tr-faq-group__head { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
  .tr-faq-group > .faq { grid-column: 6 / span 7; }
}
.tr-faq-group__head h2 { margin-bottom: 10px; font-size: clamp(28px, 3vw, 38px); line-height: 1.12; }
.tr-faq-group__head p { margin: 0; font: 13px/1.5 var(--mono); color: var(--text-2); }
.tr-faq { interpolate-size: allow-keywords; }
.tr-faq summary { padding: 22px 52px 22px 0; font-size: 17px; line-height: 1.45; color: var(--text); transition: color 150ms; }
.tr-faq summary::after { right: 0; width: 24px; height: 24px; margin-top: -12px; border: 1px solid var(--line-2); border-radius: 50%; transform: none;
  background: linear-gradient(var(--text-2), var(--text-2)) center / 9px 1.5px no-repeat, linear-gradient(var(--text-2), var(--text-2)) center / 1.5px 9px no-repeat; }
.tr-faq details[open] summary::after { margin-top: -12px; transform: rotate(45deg); }
.tr-faq summary:hover::after { border-color: var(--text-2); }
.tr-faq .faq__body { margin-top: -6px; max-width: 64ch; padding-right: 52px; padding-bottom: 26px; font-size: 16.5px; line-height: 1.7; }
.tr-faq .faq__body ul, .tr-faq .faq__body ol { padding-left: 1.25em; }
.tr-faq .faq__body li + li { margin-top: 8px; }
.tr-faq .faq__body strong { color: var(--text); font-weight: 500; }
.tr-faq details::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size 400ms var(--ease), opacity 300ms var(--ease), content-visibility 400ms allow-discrete; }
.tr-faq details[open]::details-content { block-size: auto; opacity: 1; }
@media (max-width: 640px) { .tr-faq summary { padding-right: 44px; } .tr-faq .faq__body { padding-right: 0; } }
.tr-faq-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.tr-faq-cta h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); }

/* Contact */
.tr-channel { display: flex; flex-direction: column; }
.tr-channel--main { border-color: color-mix(in srgb, var(--accent-text) 35%, var(--line)); background: linear-gradient(180deg, var(--accent-soft), transparent 60%), var(--surface); }
.tr-channel--main .card__icon { color: var(--accent-text); }
.tr-channel .tr-foot .btn { max-width: 100%; }
.tr-subject { margin: 0 0 14px; }
.tr-who { max-width: 720px; }
.tr-who p { color: var(--text-2); }
.tr-who strong { color: var(--text); }

/* === v2 pages: company (about/founder/404) === */
/* Founder hero: name + portrait */
.profile__grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 960px) { .profile__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.page-hero.profile h1 { font-size: clamp(56px, 8.4vw, 112px); line-height: 1.02; letter-spacing: -0.045em; max-width: none; margin-bottom: 20px; }
.profile__role { margin: 0 0 20px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.profile .lead { margin-bottom: 32px; }
.portrait { position: relative; isolation: isolate; margin: 0; width: 100%; max-width: 440px; justify-self: center; }
.portrait::before { content: ""; position: absolute; inset: 6% -14% -8%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-soft), transparent 72%), radial-gradient(closest-side at 70% 30%, var(--indigo), transparent 80%); filter: blur(28px); }
.portrait__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--raised); box-shadow: 0 0 0 1px var(--line-2), var(--phone-shadow); }
.portrait__frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.06); pointer-events: none; }
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.portrait__chip { position: absolute; left: 20px; bottom: 20px; }
.portrait__chip .dot { color: var(--accent); box-shadow: 0 0 8px var(--accent); }
.profile__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: clamp(48px, 6vw, 80px) 0 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .profile__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.profile__facts > div { padding: 22px 16px 0 0; }
.profile__facts dt { margin-bottom: 6px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.profile__facts dd { margin: 0; font-size: var(--fs-sm); color: var(--text); overflow-wrap: anywhere; }
.profile__facts a { color: var(--text); }
.profile__bio p:not(.lead) { color: var(--text-2); }
.profile__bio .lead { color: var(--text); }
.about-split { align-items: start; }
.print-only { display: none; }

/* Founder projects (2x2) and About side products (pair) */
.projects, .products-pair { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .projects, .products-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.project, .product { display: flex; flex-direction: column; }
.project h3 { font-size: 24px; letter-spacing: -0.025em; }
.project__kind { margin: 0 0 14px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.project .tags { margin-top: 4px; }
.project__stat { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--raised); }
.project__stat strong { font: 500 28px/1 var(--mono); letter-spacing: -0.04em; color: var(--accent-text); white-space: nowrap; }
.project__stat span { font-size: var(--fs-xs); line-height: 1.5; }
.project__links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: auto; padding-top: 24px; }

/* Founder skills: grouped skill tags with the project that shows each */
.skills { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.skill-group { display: grid; gap: 12px 32px; grid-template-columns: minmax(0, 1fr); padding: 26px 30px; }
.skill-group + .skill-group { border-top: 1px solid var(--line); }
@media (min-width: 820px) { .skill-group { grid-template-columns: 220px minmax(0, 1fr); } }
.skill-group h3 { margin: 6px 0 0; font-size: 17px; }
.skill-group ul { list-style: none; margin: 0; padding: 0; }
.skill-group li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 20px; align-items: center; padding: 6px 0; font-size: var(--fs-sm); color: var(--text-2); }
@media (min-width: 640px) { .skill-group li { grid-template-columns: 200px minmax(0, 1fr); } }
.skill-group li .badge { justify-self: start; color: var(--text); }

/* Founder links */
.profile-links { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .profile-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.profile-links .card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 22px 24px; }
.profile-links .card__icon { grid-row: span 2; margin: 0; width: 44px; height: 44px; }
.profile-links strong { font-weight: 600; font-size: 17px; line-height: 1.3; }
.profile-links__url { font: 13px/1.5 var(--mono); color: var(--text-2); overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .project { padding: 24px 22px; }
  .project__kind { font-size: 11.5px; }
  .project__stat { flex-direction: column; gap: 6px; }
  .skill-group { padding: 22px; }
  .skill-group li { padding: 4px 0 8px; }
}

/* About: built by us / built on others */
.own { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 820px) { .own { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card .own__label { margin: 0 0 20px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); }
.own__card--us { background: linear-gradient(180deg, var(--accent-soft), transparent 60%), var(--surface); }
.about-mission p { color: var(--text-2); }
.about-mission p:first-child { font-size: var(--fs-lead); color: var(--text); }

/* About: engine feature card with three measured numbers */
.engine { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); padding: clamp(28px, 4vw, 44px); }
@media (min-width: 960px) { .engine { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; } }
.engine h3 { font-size: 26px; letter-spacing: -0.025em; }
.engine__stats { margin: 0; display: grid; }
.engine__stats > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); }
.engine__stats > div:first-child { padding-top: 0; border-top: 0; }
.engine__stats > div:last-child { padding-bottom: 0; }
.engine__stats dt { font: 500 36px/1 var(--mono); letter-spacing: -0.04em; color: var(--text); white-space: nowrap; }
.engine__stats dt small { margin-left: 3px; font-size: 0.5em; letter-spacing: 0; color: var(--text-2); }
.engine__stats dd { margin: 0; font-size: var(--fs-xs); line-height: 1.55; color: var(--text-2); }
@media (max-width: 480px) { .engine__stats > div { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.grid-four { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid-four .card { padding: 26px; }

/* About: team (initials avatars) */
.team { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .team { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.person { display: flex; flex-direction: column; padding: 26px; }
.person h3 { font-size: 17px; margin: 0 0 4px; }
.person p { margin: 0; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--raised); font: 500 15px/1 var(--mono); letter-spacing: 0.02em; color: var(--text); }
.person--lead { border-color: var(--line-2); }
.person--lead .avatar { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.person__more { margin-top: auto; padding-top: 18px; font-size: var(--fs-sm); }
@media (max-width: 420px) { .person { padding: 20px; } .person h3 { font-size: 15.5px; } }

/* About: products */
.product-main { padding: clamp(28px, 4vw, 40px); }
.product-main__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: 32px; }
.product-main__head p { margin: 0; max-width: 52ch; }
.product-main h3, .product h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 24px; letter-spacing: -0.025em; }
.product-main .stat { background: var(--bg); }
@media (max-width: 520px) { .product-main { padding: 22px; } .product-main .stat { padding: 22px; } .product-main .stat__value { font-size: 34px; } }
.product .link-arrow { margin-top: auto; padding-top: 8px; }

/* 404 */
.page-hero.notfound { text-align: center; padding-block: clamp(72px, 10vw, 128px) clamp(80px, 10vw, 136px); border-bottom: 0; }
.notfound h1 { margin-inline: auto; }
.notfound .lead { margin: 0 auto 36px; }
.notfound .cluster { justify-content: center; }
.notfound__code { margin: 0 0 8px; font: 600 clamp(96px, 18vw, 200px)/1 var(--font); letter-spacing: -0.06em; background: linear-gradient(180deg, var(--text-3), transparent 92%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 48px 0 0; padding: 28px 0 0; list-style: none; border-top: 1px solid var(--line); }
.notfound__links .link-arrow { color: var(--text-2); font-size: var(--fs-sm); }
.notfound__links .link-arrow:hover { color: var(--text); }

/* Founder print resume: one or two clean pages */
@media print {
  @page { margin: 14mm; }
  .no-print, .bloom, .portrait::before, .portrait__chip, .card--spot::after { display: none !important; }
  .print-only { display: block; margin: 0; font: 11px/1.5 var(--mono); color: #000; }
  .js [data-reveal], .js [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
  .page-hero, .section { padding: 0 0 16px; border: 0; }
  .section--line { border-top: 1px solid #ccc; padding-top: 14px; }
  .container { max-width: none; padding: 0; }
  .profile__grid { grid-template-columns: minmax(0, 1fr) 120px; gap: 24px; align-items: start; }
  .page-hero.profile h1 { font-size: 34px; margin-bottom: 6px; }
  .page-hero.profile h1 br { display: none; }
  .profile__role { font-size: 15px; margin-bottom: 6px; }
  .accent { background: none; color: #000; }
  .lead, .profile .lead { font-size: 12px; margin-bottom: 8px; color: #222; }
  .portrait { max-width: 120px; }
  .portrait__frame { border-radius: 8px; box-shadow: none; }
  .profile__facts { margin-top: 12px; border-color: #ccc; }
  .profile__facts > div { padding-top: 8px; }
  .profile__facts dt, .profile__facts dd, .profile__facts a { color: #000; font-size: 10px; }
  h2 { font-size: 18px; margin-bottom: 8px; }
  .section-head { margin-bottom: 10px; }
  .section-head .lead, .eyebrow { display: none; }
  .split { display: block; }
  .profile__bio p { font-size: 11.5px; color: #222; }
  .projects, .skills, .profile-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card, .skill-group { padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; background: #fff; box-shadow: none; break-inside: avoid; }
  .card::before { display: none; }
  .card p, .card h3, .skill-group h3, .skill-group li, .project__kind, .profile-links__url { color: #000; }
  .card p { font-size: 10.5px; margin-bottom: 6px; }
  .project h3, .skill-group h3 { font-size: 13px; margin-bottom: 4px; }
  .project__kind { margin-bottom: 6px; font-size: 9px; }
  .project__stat { padding: 4px 0; border: 0; background: none; }
  .project__stat strong { font-size: 13px; color: #000; }
  .tags { gap: 4px; }
  .badge { height: auto; padding: 1px 6px; font-size: 9px; color: #000; background: #fff; border-color: #ccc; }
  .project__links { padding-top: 6px; font-size: 10px; }
  .project__links .i, .card__icon { display: none; }
  .project__links a::after { content: " " attr(href); font: 9px var(--mono); }
  .skill-group li { padding: 4px 0; font-size: 10px; gap: 4px 8px; border-color: #ddd; }
  .profile-links .card { padding: 8px 10px; }
  .profile-links strong { font-size: 12px; }
  .profile-links__url, .project__stat span { font-size: 10px; }
  .skills { border-color: #ccc; border-radius: 6px; }
  .skills .skill-group { border: 0; border-radius: 0; padding: 8px 12px; }
  .skills .skill-group + .skill-group { border-top: 1px solid #ddd; }
}
