@font-face{font-family:"Unbounded";src:url(/assets/fonts/unbounded-latin.0ejqmbt.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0100-017F, U+0218-021B, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2248, U+00D7, U+2116;}
@font-face{font-family:"Unbounded";src:url(/assets/fonts/unbounded-cyrillic.054d4h2.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap;unicode-range:U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Manrope";src:url(/assets/fonts/manrope-latin.06y4vsf.woff2) format("woff2");font-weight:400 800;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0100-017F, U+0218-021B, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2248, U+00D7, U+2116;}
@font-face{font-family:"Manrope";src:url(/assets/fonts/manrope-cyrillic.1f69tck.woff2) format("woff2");font-weight:400 800;font-style:normal;font-display:swap;unicode-range:U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"JetBrains Mono";src:url(/assets/fonts/jetbrains-mono-latin.0v4rce0.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0100-017F, U+0218-021B, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2248, U+00D7, U+2116;}
@font-face{font-family:"JetBrains Mono";src:url(/assets/fonts/jetbrains-mono-cyrillic.1whruqq.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap;unicode-range:U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
/* kadr.uk — one stylesheet for every page. Light theme by default, dark by hand or by the system.
   Colours, radii and shadows are tokens; @font-face rules are prepended by build.mjs. */

:root {
  --bg: #fbfbfd;
  --bg-soft: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #f6f7fa;
  --surface-3: #eef0f4;
  --text: #0d0e12;
  --text-2: #464b57;
  --text-3: #646a78;
  --line: rgba(13, 14, 18, 0.08);
  --line-2: rgba(13, 14, 18, 0.14);
  --ink: #0d0e12;
  --on-ink: #ffffff;
  --accent: #6c55ff;
  --accent-text: #5440e6;
  --accent-soft: rgba(108, 85, 255, 0.1);
  --teal: #13c4ce;
  --teal-text: #08838b;
  --teal-soft: rgba(19, 196, 206, 0.12);
  --pink: #ff2f86;
  --pink-text: #d41466;
  --orange: #ff8a5b;
  --ok: #10a36b;
  --ok-text: #0b7d52;
  --warn-text: #b35c00;
  --g-teal: linear-gradient(90deg, #13c4ce, #7cf4f8);
  --g-violet: linear-gradient(90deg, #6c55ff, #a993ff);
  --g-pink: linear-gradient(90deg, #ff2f86, #ff8a5b);
  --g-brand: linear-gradient(100deg, #13c4ce 0%, #6c55ff 50%, #ff2f86 100%);
  --shadow-sm: 0 1px 2px rgba(13, 14, 18, 0.05), 0 2px 8px rgba(13, 14, 18, 0.04);
  --shadow: 0 1px 2px rgba(13, 14, 18, 0.04), 0 10px 30px rgba(13, 14, 18, 0.07);
  --shadow-lg: 0 2px 6px rgba(13, 14, 18, 0.05), 0 30px 80px rgba(13, 14, 18, 0.14);
  --header-bg: rgba(251, 251, 253, 0.78);
  --scrim: rgba(8, 9, 12, 0.72);
  --panel-dark: #0d0e12;
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --w: 1180px;
  --gutter: 16px;
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-text: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a0a0d;
  --bg-soft: #0f1015;
  --surface: #14151b;
  --surface-2: #191a21;
  --surface-3: #22232c;
  --text: #f3f4f7;
  --text-2: #b9bdc8;
  --text-3: #8f95a3;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --ink: #f3f4f7;
  --on-ink: #0a0a0d;
  --accent: #8b78ff;
  --accent-text: #ab9bff;
  --accent-soft: rgba(139, 120, 255, 0.14);
  --teal-text: #5fe3ea;
  --teal-soft: rgba(19, 196, 206, 0.14);
  --pink-text: #ff6aa6;
  --ok: #2fd08f;
  --ok-text: #4fdca2;
  --warn-text: #ffb35c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 80px rgba(0, 0, 0, 0.55);
  --header-bg: rgba(10, 10, 13, 0.72);
  --panel-dark: #14151b;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
/* Grid children may shrink below their content (scrolling tables and chip rows stay inside the page). */
.with-nav > *, .sources-body > *, .calc > *, .speed-grid > *, .split > *, .how > *, .grid > *, .bento > * { min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; overflow-wrap: break-word; hyphens: auto; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--on-ink); border-radius: 10px; font-weight: 600; transition: top 0.2s; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--w) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

/* ---------- Typography helpers ---------- */
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; }
.h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; font-size: clamp(2.25rem, 1.2rem + 4.6vw, 4.6rem); line-height: 1.04; text-wrap: balance; }
.h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; font-size: clamp(1.75rem, 1.15rem + 2.4vw, 3rem); line-height: 1.08; text-wrap: balance; }
.h3 { font-weight: 700; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.muted { color: var(--text-2); }
.small { font-size: 0.9375rem; }
.tiny { font-size: 0.8125rem; color: var(--text-3); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.eyebrow::before { content: ""; width: 22px; height: 12px; flex: none; background:
  linear-gradient(90deg, #13c4ce, #7cf4f8) 8px 0 / 14px 3px no-repeat,
  linear-gradient(90deg, #6c55ff, #a993ff) 0 4.5px / 16px 3px no-repeat,
  linear-gradient(90deg, #ff2f86, #ff8a5b) 8px 9px / 14px 3px no-repeat; border-radius: 2px; }
strong { font-weight: 700; color: var(--text); }
.prose a, a.link, .lead a:not(.btn), .term { color: var(--accent-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-text) 35%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color 0.2s; }
.prose a:hover, a.link:hover, .term:hover { text-decoration-color: currentColor; }
.term { position: relative; text-decoration-style: dotted; color: inherit; text-decoration-color: color-mix(in srgb, var(--accent-text) 70%, transparent); }
@media (hover: hover) {
  .term[data-def]:hover::after, .term[data-def]:focus-visible::after {
    content: attr(data-def); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
    width: max-content; max-width: min(300px, 80vw); padding: 10px 12px; border-radius: 12px; z-index: 30;
    background: var(--ink); color: var(--on-ink); font: 500 0.8125rem/1.45 var(--font-text); letter-spacing: 0; text-transform: none;
    box-shadow: var(--shadow); pointer-events: none; white-space: normal; text-align: left;
  }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 1rem; letter-spacing: -0.005em; white-space: nowrap; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s; }
.btn .i { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--ink); color: var(--on-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 6px 18px rgba(13, 14, 18, 0.16); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 12px 28px rgba(13, 14, 18, 0.22); }
:root[data-theme="dark"] .btn-primary { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 30px rgba(139, 120, 255, 0.18); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-3); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(108, 85, 255, 0.35); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--text-2); font-weight: 600; font-size: 0.9375rem; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--surface-3); color: var(--text); }
.icon-btn .i { width: 18px; height: 18px; }
.i { flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; height: 40px; flex: none; color: var(--text); }
.brand svg { height: 26px; width: auto; }
.nav { display: none; align-items: center; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: 0.9375rem; transition: color 0.2s, background 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-3); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lang-btn span { display: none; }
.tg-btn span { display: none; }
.tg-btn { padding: 0 12px; }
@media (min-width: 560px) { .tg-btn span { display: inline; } .tg-btn { padding: 0 16px; } }
@media (min-width: 1040px) { .nav { display: flex; } .burger { display: none !important; } .lang-btn span { display: inline; } }

.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; max-height: min(70vh, 520px); overflow: auto; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 60; }
.menu[hidden] { display: none; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; border: 0; background: none; text-align: left; font-weight: 600; font-size: 0.9375rem; color: var(--text-2); }
.menu a:hover, .menu button:hover { background: var(--surface-3); color: var(--text); }
.menu [aria-current="true"], .menu [aria-pressed="true"] { color: var(--text); }
.menu .check { margin-left: auto; opacity: 0; color: var(--accent-text); }
.menu [aria-current="true"] .check, .menu [aria-pressed="true"] .check { opacity: 1; }

.mobile-nav { border-top: 1px solid var(--line); background: var(--bg); max-height: calc(100vh - 68px); overflow: auto; }
.mobile-nav[hidden] { display: none; }
.mobile-nav .container { padding-block: 12px 24px; display: grid; gap: 4px; }
.mobile-nav a.m-link { display: block; padding: 14px 4px; font-size: 1.125rem; font-weight: 700; border-bottom: 1px solid var(--line); }
.mobile-nav .m-row { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.chip-link { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; background: var(--surface-3); font-weight: 600; font-size: 0.875rem; color: var(--text-2); border: 0; }
.chip-link[aria-current="true"], .chip-link[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.m-label { width: 100%; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 132px); position: relative; }
.section-tight { padding-block: clamp(48px, 6vw, 88px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lead { margin-top: 18px; }
.center .eyebrow { justify-content: center; }
.soft { background: var(--bg-soft); }
.island { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid { gap: 20px; } }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
.g4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .g2, .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }

.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 2.4vw, 30px); box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s; }
.card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card .h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 0.96875rem; }
.ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--surface-3); color: var(--text); margin-bottom: 18px; }
.ico .i { width: 22px; height: 22px; }
.ico.t { background: var(--teal-soft); color: var(--teal-text); }
.ico.v { background: var(--accent-soft); color: var(--accent-text); }
.ico.p { background: rgba(255, 47, 134, 0.1); color: var(--pink-text); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Timeline motif ---------- */
.tracks { position: relative; display: grid; gap: 10px; overflow: hidden; }
.track { position: relative; height: 14px; }
.track .clip { position: absolute; top: 0; height: 100%; border-radius: 999px; }
.clip.t { background: var(--g-teal); }
.clip.v { background: var(--g-violet); }
.clip.p { background: var(--g-pink); }
.clip.n { background: var(--surface-3); }
.tracks .playhead { position: absolute; top: -6px; bottom: -6px; width: 2px; border-radius: 2px; background: var(--text); left: 0; animation: playhead 12s linear infinite; }
.tracks .playhead::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 3px; background: var(--text); }
@keyframes playhead { from { left: 0; } to { left: 100%; } }
.drift { animation: drift 30s linear infinite alternate; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-6%); } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(44px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.hero .eyebrow { margin-bottom: 22px; justify-content: center; }
.hero .lead { max-width: 760px; margin: 24px auto 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 0.875rem; color: var(--text-3); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.hero-bg::before { content: ""; position: absolute; left: 50%; top: -280px; width: 1300px; height: 720px; transform: translateX(-50%); background:
  radial-gradient(closest-side, rgba(108, 85, 255, 0.13), transparent 70%) 18% 40% / 60% 70% no-repeat,
  radial-gradient(closest-side, rgba(19, 196, 206, 0.12), transparent 70%) 80% 30% / 55% 65% no-repeat,
  radial-gradient(closest-side, rgba(255, 47, 134, 0.08), transparent 70%) 55% 80% / 50% 60% no-repeat; }
.stage { position: relative; max-width: 1060px; margin: clamp(44px, 6vw, 72px) auto 0; }
.stage-frame { position: relative; border-radius: var(--r-lg); padding: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.stage-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px 12px; }
.stage-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.stage-bar span { margin-left: 10px; font-size: 0.8125rem; font-weight: 600; color: var(--text-3); }
.stage-timeline { padding: 16px 10px 8px; }
.stage-timeline .tracks { gap: 8px; }
.stage-timeline .track { height: 12px; }

/* ---------- Player ---------- */
.player { position: relative; overflow: hidden; border-radius: 18px; background: #050507; aspect-ratio: 16 / 9; isolation: isolate; color: #fff; }
.player.vertical { aspect-ratio: 9 / 16; }
.player > img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.play-cover { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 16px; width: 100%; border: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.45)); color: #fff; padding: 20px; }
.play-btn { display: grid; place-items: center; width: clamp(64px, 9vw, 92px); aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: #0d0e12; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); transition: transform 0.35s var(--ease); }
.play-btn .i { width: 38%; height: 38%; margin-left: 6%; fill: currentColor; }
.play-cover:hover .play-btn { transform: scale(1.06); }
.play-label { font-weight: 700; font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.0625rem); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.player .controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 28px 14px 12px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65)); opacity: 0; transition: opacity 0.25s; z-index: 3; }
.player.is-playing:hover .controls, .player.is-paused .controls, .player:focus-within .controls, .player.show-ui .controls { opacity: 1; }
.controls button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: #fff; }
.controls button:hover { background: rgba(255, 255, 255, 0.14); }
.controls .i { width: 20px; height: 20px; }
.controls .time { font: 500 0.8125rem/1 var(--font-mono); color: rgba(255, 255, 255, 0.9); min-width: 92px; text-align: center; }
.controls input[type="range"] { flex: 1; min-width: 40px; accent-color: #fff; height: 4px; cursor: pointer; }
.player .soon { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; background: rgba(5, 5, 7, 0.78); font-weight: 600; z-index: 4; }
.player .soon[hidden] { display: none; }
.player .spinner { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; animation: spin 0.9s linear infinite; z-index: 2; }
.player .spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-caption { margin-top: 14px; text-align: center; font-size: 0.875rem; color: var(--text-3); }

dialog.video-dialog { padding: 0; border: 0; background: transparent; width: min(1200px, 94vw); max-height: 92vh; overflow: visible; color: #fff; }
dialog.video-dialog.vertical { width: min(440px, 94vw); }
dialog.video-dialog::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.video-dialog .player { max-height: 86vh; margin: 0 auto; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); }
dialog.video-dialog.vertical .player { height: min(86vh, 780px); width: auto; }
.dialog-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dialog-top h2 { font: 700 1.0625rem/1.3 var(--font-text); flex: 1; }
.dialog-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; }
.dialog-close:hover { background: rgba(255, 255, 255, 0.24); }
.dialog-versions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; justify-content: center; }
.dialog-versions button { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: #fff; font-weight: 600; font-size: 0.875rem; }
.dialog-versions button[aria-pressed="true"] { background: #fff; color: #0d0e12; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 26px 8px 26px 0; }
.stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
.stat-v { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-v .u { font-size: 0.5em; letter-spacing: 0; margin-left: 4px; color: var(--text-3); }
.stat-l { margin-top: 10px; font-size: 0.875rem; color: var(--text-2); line-height: 1.4; max-width: 220px; }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(5, 1fr); }
  .stat { padding: 30px 16px 30px 0; border-top: 0 !important; }
  .stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
}

/* ---------- Steps / app mock ---------- */
.how { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 980px) { .how { grid-template-columns: 0.92fr 1.08fr; } .how .mock { position: sticky; top: 100px; } }
.steps { display: grid; gap: 4px; counter-reset: step; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step-n { font: 600 0.875rem/1 var(--font-mono); color: var(--text-3); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 0.96875rem; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.mock-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.8125rem; font-weight: 600; color: var(--text-3); }
.mock-top .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.mock-top .agent { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.mock-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.profile-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 0.875rem; }
.profile-pill .av { width: 24px; height: 24px; border-radius: 50%; background: var(--g-violet); display: grid; place-items: center; color: #fff; }
.profile-pill .av .i { width: 14px; height: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bchip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.8125rem; line-height: 1.2; }
.bchip b { font-weight: 600; color: var(--text-3); }
.bchip span { font-weight: 700; color: var(--text); }
.bchip .pd { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.bubble { justify-self: end; max-width: 88%; padding: 12px 16px; border-radius: 18px 18px 6px 18px; background: var(--ink); color: var(--on-ink); font-size: 0.9375rem; font-weight: 500; line-height: 1.45; }
.log { display: grid; gap: 8px; }
.log li { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--text-2); }
.log .ck { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-text); flex: none; }
.log .ck .i { width: 13px; height: 13px; }
.log li.done { font-weight: 700; color: var(--ok-text); }
.log li.done .ck { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok-text); }
.js .mock.is-in .log li { animation: logIn 0.5s var(--ease) both; animation-delay: calc(0.35s + var(--i) * 0.42s); }
@keyframes logIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.js .mock:not(.is-in) .log li { opacity: 0; }
.mock-foot { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 0.75rem; font-weight: 600; color: var(--text-2); }
.file-chip .i { width: 14px; height: 14px; }
.mock-foot .btn { margin-left: auto; min-height: 36px; padding: 0 14px; font-size: 0.875rem; }
.mock .tracks { padding: 4px 18px 18px; gap: 7px; }
.mock .track { height: 10px; }
.js .mock .track .clip { transform-origin: left; }
.js .mock.is-in .track .clip { animation: clipIn 0.7s var(--ease) both; animation-delay: calc(0.5s + var(--i, 0) * 0.12s); }
@keyframes clipIn { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Speed ---------- */
.metrics { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
.metric .v { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.metric .v .u { font-size: 0.42em; margin-left: 6px; letter-spacing: 0; color: var(--text-3); }
.metric p { margin-top: 12px; }
.bars { display: grid; gap: 14px; margin-top: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.bar-row .bl { display: flex; justify-content: space-between; gap: 12px; font-size: 0.875rem; color: var(--text-2); }
.bar-row .bl b { font-family: var(--font-mono); font-weight: 600; color: var(--text); }
.bar { height: 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; width: var(--w); transform-origin: left; }
.js .bars:not(.is-in) .bar i { transform: scaleX(0); }
.js .bars .bar i { transition: transform 1.2s var(--ease) 0.2s; }
.speed-grid { display: grid; gap: 20px; }
@media (min-width: 980px) { .speed-grid { grid-template-columns: 1.15fr 0.85fr; } }
.note { font-size: 0.875rem; color: var(--text-3); margin-top: 18px; line-height: 1.55; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(6, 1fr); gap: 20px; } .b-xl { grid-column: span 4; } .b-l { grid-column: span 2; } .b-m { grid-column: span 2; } .b-h { grid-column: span 3; } }
@media (min-width: 720px) and (max-width: 979px) { .b-xl, .b-l { grid-column: span 6; } .b-m { grid-column: span 3; } }
.bento .card { display: flex; flex-direction: column; overflow: hidden; }
.bento .viz { margin-top: auto; padding-top: 24px; }
.agents { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 0.875rem; }
.agent-chip i { width: 8px; height: 8px; border-radius: 50%; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 0.875rem; }
.tgl { width: 36px; height: 20px; border-radius: 999px; background: var(--accent); position: relative; flex: none; }
.tgl::after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; width: 100%; background: var(--g-brand); transform-origin: left; animation: prog 6s var(--ease) infinite; }
@keyframes prog { 0% { transform: scaleX(0.05); } 70%, 100% { transform: scaleX(1); } }
.queue { display: grid; gap: 8px; }
.queue li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; }
.queue li small { margin-left: auto; color: var(--text-3); font-weight: 600; font-size: 0.75rem; text-align: right; }
.queue .qd { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { aspect-ratio: 16 / 10; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.tile::before, .tile::after { content: ""; position: absolute; border-radius: 4px; }
.tile.lt::before { left: 10%; bottom: 18%; width: 55%; height: 14%; background: var(--g-violet); }
.tile.lt::after { left: 10%; bottom: 36%; width: 35%; height: 9%; background: var(--text); opacity: 0.7; }
.tile.ti::before { left: 15%; right: 15%; top: 38%; height: 16%; background: var(--text); opacity: 0.85; }
.tile.ti::after { left: 30%; right: 30%; top: 60%; height: 7%; background: var(--g-teal); }
.tile.mp::before { inset: 0; border-radius: 0; background: radial-gradient(circle at 60% 45%, var(--pink) 0 5%, transparent 6%), radial-gradient(circle at 60% 45%, rgba(255, 47, 134, 0.25) 0 14%, transparent 15%), linear-gradient(135deg, var(--teal-soft), transparent); }
.tile.mp::after { left: 22%; top: 30%; width: 40%; height: 40%; border: 2px dashed var(--teal); border-radius: 50% 40% 50% 45%; background: none; }
.tile.ct::before { left: 14%; top: 28%; content: "250"; font: 600 1.1rem/1 var(--font-display); color: var(--text); }
.tile.ct::after { left: 14%; right: 14%; bottom: 22%; height: 8%; background: var(--g-pink); }
.tile.tr { background: var(--g-brand); opacity: 0.85; }
.tile.qt::before { left: 14%; top: 22%; width: 18%; height: 22%; border-radius: 50%; background: var(--accent); opacity: 0.7; }
.tile.qt::after { left: 14%; right: 14%; top: 56%; height: 8%; background: var(--text); opacity: 0.55; box-shadow: 0 12px 0 var(--line-2); }
.tile.em::before { inset: 26% 34%; border-radius: 50%; background: radial-gradient(circle at 35% 40%, #0d0e12 0 8%, transparent 9%), radial-gradient(circle at 65% 40%, #0d0e12 0 8%, transparent 9%), #ffd23f; }
.import-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.limit-bars { display: grid; gap: 12px; }
.mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.mini-bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--g-violet); opacity: 0.85; }
.wave { display: flex; align-items: center; gap: 3px; height: 44px; }
.wave i { flex: 1; border-radius: 3px; background: var(--g-teal); animation: wave 1.6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.13s); }
@keyframes wave { from { height: 20%; } to { height: 100%; } }
.qa-list { display: grid; gap: 8px; }
.qa-list li { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 600; color: var(--text-2); }
.qa-list .st { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.qa-list .st .i { width: 13px; height: 13px; }
.qa-list .st.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok-text); }
.qa-list .st.fx { background: var(--accent-soft); color: var(--accent-text); }
.style-chips .bchip.on { border-color: var(--accent); background: var(--accent-soft); }
.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; font-weight: 700; color: var(--text); }
.more-link .i { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.more-link:hover .i { transform: translateX(4px); }

/* ---------- Localise ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 980px) { .split { grid-template-columns: 1fr 1fr; } }
.checks { display: grid; gap: 12px; margin-top: 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checks .ck { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--teal-soft); color: var(--teal-text); flex: none; margin-top: 1px; }
.checks .ck .i { width: 15px; height: 15px; }
.loc-viz { position: relative; display: grid; gap: 14px; }
.loc-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.loc-card.orig { box-shadow: var(--shadow); border-color: var(--line-2); }
.loc-thumb { aspect-ratio: 16 / 9; border-radius: 10px; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.loc-thumb span { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.6); color: #fff; font: 700 0.6875rem/1.4 var(--font-mono); text-transform: uppercase; }
.loc-text b { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.loc-text p { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
.loc-req { justify-self: center; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 0.875rem; font-weight: 600; box-shadow: var(--shadow); }
.loc-req .i { width: 16px; height: 16px; }
.loc-versions { display: grid; gap: 12px; padding-left: 28px; position: relative; }
.loc-versions::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 30px; width: 2px; border-radius: 2px; background: linear-gradient(var(--teal), var(--accent), var(--pink)); }
.loc-versions .loc-card { position: relative; }
.loc-versions .loc-card::before { content: ""; position: absolute; left: -18px; top: 50%; width: 18px; height: 2px; background: var(--line-2); }

/* ---------- Safety ---------- */
.safe-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .safe-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .safe-grid { grid-template-columns: repeat(3, 1fr); } }
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-size: 0.9375rem; }
.callout .i { width: 20px; height: 20px; color: var(--text-3); margin-top: 2px; }
.safe-grid .callout { grid-column: 1 / -1; }
@media (min-width: 980px) { .safe-grid .callout { grid-column: span 1; } }

/* ---------- Example cards ---------- */
.ex-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ex-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .ex-grid { grid-template-columns: repeat(3, 1fr); } }
.ex-card { display: flex; flex-direction: column; gap: 14px; }
.ex-card[hidden] { display: none; }
.ex-media { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: #0d0e12; box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.ex-media:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ex-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.ex-media:hover img { transform: scale(1.03); }
.ex-media.vertical img.fg { object-fit: contain; }
.ex-media.vertical img.bg { filter: blur(18px) saturate(1.2); transform: scale(1.3); opacity: 0.7; }
.ex-media .pl { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: #0d0e12; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); transition: transform 0.35s var(--ease); }
.ex-media .pl .i { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.ex-media:hover .pl { transform: scale(1.08); }
.ex-media .badge { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 7px; background: rgba(0, 0, 0, 0.7); color: #fff; font: 600 0.75rem/1.4 var(--font-mono); }
.ex-media .badge.l { right: auto; left: 10px; }
.ex-meta h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.ex-meta p { margin-top: 4px; font-size: 0.875rem; color: var(--text-3); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 0.75rem; font-weight: 700; }
.tag.v { background: var(--accent-soft); color: var(--accent-text); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 0.875rem; color: var(--text-2); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: 20px; }
@media (min-width: 1040px) { .calc { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .calc-result { position: sticky; top: 92px; } }
.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 16px; background: var(--surface-3); width: fit-content; max-width: 100%; }
.seg button { padding: 9px 16px; border-radius: 12px; border: 0; background: transparent; font-weight: 700; font-size: 0.9375rem; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.sc-desc { margin-top: 12px; min-height: 1.6em; font-size: 0.9375rem; color: var(--text-2); }
.calc-panel { padding: clamp(18px, 2.4vw, 28px); }
.fields { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 22px; }
@media (min-width: 720px) { .fields { grid-template-columns: repeat(3, 1fr); } }
.field { display: grid; gap: 6px; align-content: start; }
.field.wide, .field.w2 { grid-column: 1 / -1; }
@media (min-width: 720px) { .field.w2 { grid-column: span 2; } }
.calc-mini { position: sticky; bottom: 12px; z-index: 4; display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 12px 16px; border-radius: 16px; background: var(--panel-dark); color: #f3f4f7; box-shadow: var(--shadow-lg); }
.calc-mini > div { display: grid; gap: 2px; }
.calc-mini .rl { font-size: 0.6875rem; font-weight: 700; color: rgba(243, 244, 247, 0.6); }
.calc-mini b { font: 600 1rem/1.2 var(--font-mono); font-variant-numeric: tabular-nums; }
.calc-mini b.pos { color: #4fdca2; }
.calc-mini b.neg { color: #ff8a8a; }
.calc-mini .mv { margin-left: auto; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; background: var(--g-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (min-width: 1040px) { .calc-mini { display: none; } }
@media (max-width: 639px) { .plan .is-empty { display: none; } }
.field label, .field .lbl { font-size: 0.8125rem; font-weight: 700; color: var(--text-2); }
.inp, select.inp { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 0.9375rem; font-variant-numeric: tabular-nums; transition: border-color 0.2s, box-shadow 0.2s; }
.inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.inp { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.stepper { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--surface); }
.stepper button { width: 42px; border: 0; background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; }
.stepper button:hover { color: var(--text); background: var(--surface-3); }
.stepper .i { width: 16px; height: 16px; }
.stepper input { flex: 1; min-width: 0; border: 0; text-align: center; font-weight: 700; background: transparent; min-height: 42px; font-variant-numeric: tabular-nums; }
.stepper input:focus { outline: none; }
.ptable { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 8px; }
.ptable th { text-align: left; font-size: 0.75rem; font-weight: 700; color: var(--text-3); padding: 0 8px 8px; vertical-align: bottom; line-height: 1.3; }
.ptable td { padding: 6px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.ptable td:first-child, .ptable th:first-child { padding-left: 0; }
.ptable td:last-child, .ptable th:last-child { padding-right: 0; text-align: right; }
.ptable .inp { min-height: 38px; padding: 0 8px; font-size: 0.875rem; text-align: right; min-width: 64px; }
.pname { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.9375rem; line-height: 1.25; }
.pname input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.pname small { display: block; font-weight: 500; font-size: 0.75rem; color: var(--text-3); margin-top: 2px; }
.prev { font-family: var(--font-mono); font-weight: 600; font-size: 0.875rem; white-space: nowrap; }
tr.off .inp, tr.off .prev { opacity: 0.4; }
.pm-only { display: none; }
@media (max-width: 719px) {
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr, .ptable td { display: block; width: 100%; }
  .ptable tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
  .ptable td { border: 0; padding: 0 !important; text-align: left !important; }
  .ptable td.pn { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .ptable td[data-l]::before { content: attr(data-l); display: block; font-size: 0.6875rem; font-weight: 700; color: var(--text-3); margin-bottom: 4px; line-height: 1.25; }
  .ptable td.pr { display: none; }
  .ptable td.pn .pm-only { display: inline; }
  .ptable .inp { text-align: left; }
}
.calc-result { padding: clamp(22px, 2.4vw, 30px); background: var(--panel-dark); color: #f3f4f7; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.06); }
.calc-result .rl { font-size: 0.8125rem; font-weight: 700; color: rgba(243, 244, 247, 0.62); letter-spacing: 0.02em; }
.calc-result .big { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.25rem, 1.8rem + 2vw, 3.1rem); letter-spacing: -0.035em; line-height: 1.05; margin-top: 6px; font-variant-numeric: tabular-nums; }
.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.rgrid .rv { font-family: var(--font-mono); font-weight: 600; font-size: 1.125rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.rv.pos { color: #4fdca2; }
.rv.neg { color: #ff8a8a; }
.multiple { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.multiple .mv { font-family: var(--font-display); font-weight: 600; font-size: 2rem; background: var(--g-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vs { margin-top: 14px; display: grid; gap: 6px; }
.vs .bar { background: rgba(255, 255, 255, 0.08); height: 10px; }
.vs .bar i { transition: width 0.6s var(--ease); }
.costs-split { margin-top: 10px; font-size: 0.75rem; color: rgba(243, 244, 247, 0.6); }
.calc-result .disc { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.78125rem; line-height: 1.5; color: rgba(243, 244, 247, 0.62); }
details.sources { margin-top: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
details.sources > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 20px; font-weight: 700; cursor: pointer; }
details.sources > summary::-webkit-details-marker { display: none; }
details.sources > summary .i { width: 18px; height: 18px; color: var(--text-3); }
details.sources > summary .chev { margin-left: auto; transition: transform 0.25s; }
details.sources[open] > summary .chev { transform: rotate(180deg); }
.sources-body { padding: 0 20px 20px; display: grid; gap: 14px; font-size: 0.875rem; color: var(--text-2); }
.rtable { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.rtable th, .rtable td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rtable th { color: var(--text-3); font-weight: 700; }
.rtable td.mono { white-space: nowrap; }
.src-list { display: grid; gap: 6px; font-size: 0.8125rem; }
.src-list a { color: var(--accent-text); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Costs ---------- */
.cost-row { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .cost-row { grid-template-columns: 1fr auto 1fr auto 1fr; } }
.cost-plus { display: none; place-items: center; color: var(--text-3); }
@media (min-width: 900px) { .cost-plus { display: grid; } }
.cost-plus .i { width: 22px; height: 22px; }
.cost-tag { display: inline-flex; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px; font: 700 0.75rem/1.4 var(--font-mono); }
.stable { width: 100%; border-collapse: collapse; }
.stable th, .stable td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.9375rem; vertical-align: middle; }
.stable th { font-size: 0.75rem; font-weight: 700; color: var(--text-3); letter-spacing: 0.02em; }
.stable td:first-child, .stable th:first-child { padding-left: 0; }
.stable td.num { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.stable tr.hl td { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.stable tr.hl td:first-child { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
.stable .pill { display: inline-flex; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-text); font-size: 0.6875rem; font-weight: 700; vertical-align: middle; }
.stable .na { color: var(--text-3); font-family: var(--font-text); font-weight: 600; }
.rec { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; padding: 22px 24px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), color-mix(in srgb, var(--teal) 8%, var(--surface))); border: 1px solid var(--line); }
.rec .ico { margin: 0; background: var(--surface); }

/* ---------- Minuses ---------- */
.minus-list { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .minus-list { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.minus { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.minus .mk { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--warn-text) 13%, transparent); color: var(--warn-text); }
.minus .mk .i { width: 16px; height: 16px; }
.minus h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 4px; }
.minus p { color: var(--text-2); font-size: 0.9375rem; }

/* ---------- Pricing ---------- */
.trial { display: grid; gap: 20px; align-items: center; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--surface); border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); margin-bottom: 20px; }
@media (min-width: 900px) { .trial { grid-template-columns: 1fr auto auto; gap: 36px; } }
.trial h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.trial p { margin-top: 8px; color: var(--text-2); }
.trial .price { font-family: var(--font-display); font-weight: 600; font-size: 2.25rem; letter-spacing: -0.03em; line-height: 1; }
.trial .price small { display: block; font: 600 0.875rem/1.4 var(--font-text); letter-spacing: 0; color: var(--text-3); margin-top: 6px; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.01em; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; }
.badge.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok-text); }
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.plan { display: flex; flex-direction: column; padding: 26px 22px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan.best { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--g-brand) border-box; border: 1.5px solid transparent; box-shadow: var(--shadow); }
.plan .pn { font-weight: 700; font-size: 1.0625rem; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.plan .pp { margin-top: 18px; font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .pp small { font: 600 0.875rem var(--font-text); letter-spacing: 0; color: var(--text-3); }
.plan .pt { margin-top: 10px; font-size: 0.875rem; color: var(--text-2); min-height: 1.5em; }
.plan .ps { margin-top: 4px; font-size: 0.8125rem; font-weight: 700; color: var(--ok-text); min-height: 1.4em; }
.plan ul { display: grid; gap: 9px; margin: 22px 0 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.plan li { display: flex; gap: 10px; align-items: center; font-size: 0.875rem; color: var(--text-2); font-weight: 500; }
.plan li .i { width: 16px; height: 16px; color: var(--ok-text); }
.plan .btn { margin-top: auto; }
.buy-steps { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 40px; counter-reset: bs; }
@media (min-width: 720px) { .buy-steps { grid-template-columns: repeat(4, 1fr); } }
.buy-steps li { position: relative; padding: 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.9375rem; font-weight: 600; color: var(--text-2); counter-increment: bs; }
.buy-steps li::before { content: counter(bs, decimal-leading-zero); display: block; font: 600 0.8125rem var(--font-mono); color: var(--accent-text); margin-bottom: 8px; }
.pricing-note { margin-top: 24px; text-align: center; font-size: 0.9375rem; color: var(--text-2); }

/* ---------- Referral ---------- */
.ref-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .ref-grid { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
.ref { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.ref .rv { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.05; }
.ref:nth-child(1) .rv { color: var(--teal-text); }
.ref:nth-child(2) .rv { color: var(--accent-text); }
.ref:nth-child(3) .rv { color: var(--pink-text); }
.ref .rv2 { margin-top: 6px; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem); }
.ref p { margin-top: 8px; font-size: 0.9375rem; color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; font-weight: 700; font-size: 1.0625rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { margin-left: auto; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); transition: transform 0.3s var(--ease), background 0.2s; }
.faq summary .pm .i { width: 16px; height: 16px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--ink); color: var(--on-ink); }
.faq .ans { padding: 0 48px 24px 0; color: var(--text-2); line-height: 1.65; }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; padding: clamp(44px, 7vw, 96px) clamp(20px, 5vw, 72px); border-radius: clamp(24px, 3vw, 36px); background: #0d0e12; color: #f3f4f7; text-align: center; isolation: isolate; }
:root[data-theme="dark"] .final { background: #14151b; border: 1px solid var(--line); }
.final h2 { max-width: 820px; margin: 0 auto; }
.final p { max-width: 640px; margin: 20px auto 0; color: rgba(243, 244, 247, 0.72); font-size: 1.125rem; }
.final .btn-primary { background: #fff; color: #0d0e12; }
.final .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.final .tracks { position: absolute; left: -5%; right: -5%; bottom: 28px; opacity: 0.28; z-index: -1; }
.final .tracks.top { top: 28px; bottom: auto; }
.final .tracks .playhead, .final .tracks .playhead::before { background: #fff; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 56px 40px; border-top: 1px solid var(--line); margin-top: clamp(24px, 4vw, 56px); }
.foot { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .foot { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.foot h2 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.foot ul { display: grid; gap: 10px; }
.foot a { color: var(--text-2); font-weight: 600; font-size: 0.9375rem; }
.foot a:hover { color: var(--text); }
.foot .brand svg { height: 24px; }
.foot-tag { margin-top: 14px; color: var(--text-2); font-size: 0.9375rem; max-width: 300px; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 0.8125rem; color: var(--text-3); }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.foot-langs a { font-size: 0.8125rem; font-weight: 600; color: var(--text-3); }
.foot-langs a[aria-current="true"] { color: var(--text); }

/* ---------- Inner pages ---------- */
.page-head { padding-top: clamp(44px, 6vw, 88px); padding-bottom: clamp(24px, 3vw, 40px); }
.page-head .lead { margin-top: 18px; max-width: 720px; }
.crumbs { display: flex; gap: 8px; font-size: 0.8125rem; color: var(--text-3); margin-bottom: 20px; font-weight: 600; }
.crumbs a:hover { color: var(--text); }
.with-nav { display: grid; gap: 32px; }
@media (min-width: 1040px) { .with-nav { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; } }
.side-nav { position: sticky; top: 68px; z-index: 5; margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter); background: var(--header-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.side-nav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.side-nav ul::-webkit-scrollbar { display: none; }
.side-nav a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; font-weight: 600; font-size: 0.875rem; color: var(--text-2); }
.side-nav a .i { width: 16px; height: 16px; }
.side-nav a:hover, .side-nav a.is-active { background: var(--surface-3); color: var(--text); }
.side-nav .t { display: none; }
@media (min-width: 1040px) {
  .side-nav { top: 100px; margin: 0; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; align-self: start; }
  .side-nav ul { flex-direction: column; overflow: visible; }
  .side-nav a { white-space: normal; }
  .side-nav .t { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 10px 12px; }
}
.cat { padding-block: 28px 44px; scroll-margin-top: 140px; }
.cat + .cat { border-top: 1px solid var(--line); }
.cat-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.cat-head .ico { margin: 0; }
.cat-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); letter-spacing: -0.02em; }
.cat-head p { margin-top: 6px; color: var(--text-2); }
.feat-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.25s, transform 0.25s var(--ease); }
.feat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feat h3 { font-size: 1rem; font-weight: 700; line-height: 1.35; }
.feat p { margin-top: 6px; font-size: 0.9rem; color: var(--text-2); line-height: 1.55; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.az a { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; background: var(--surface-3); font-weight: 700; font-size: 0.875rem; color: var(--text-2); }
.az a:hover { background: var(--ink); color: var(--on-ink); }
.terms-list { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .terms-list { grid-template-columns: repeat(2, 1fr); } }
.gterm { padding: 22px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 100px; transition: box-shadow 0.4s, border-color 0.4s; }
.gterm:target { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.gterm h2 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; }
.gterm p { margin-top: 8px; color: var(--text-2); }
.gterm .ex { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 0.9rem; color: var(--text-2); }
.gterm .ex b { display: block; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.prose { max-width: 760px; }
.prose section { padding: 22px 0; border-top: 1px solid var(--line); }
.prose h2 { font-size: 1.1875rem; font-weight: 700; margin-bottom: 8px; }
.prose p { color: var(--text-2); }
.nf { min-height: 50vh; display: grid; place-items: center; text-align: center; }

/* ---------- Small phones ---------- */
.cat-head > div, .step > div, .minus > div { min-width: 0; }
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; max-width: 100%; }
  .cta-row .btn { width: 100%; }
  .header-actions .btn { width: auto; }
}
@media (max-width: 359px) { .header-actions [data-menu] { display: none; } }
@media (max-width: 400px) {
  .ref-grid { grid-template-columns: 1fr; }
  .cat-head h2 { font-size: 1.25rem; }
  .h1 { font-size: 2.05rem; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .mock:not(.is-in) .log li { opacity: 1; }
  .js .bars:not(.is-in) .bar i { transform: none; }
  .tracks .playhead { animation: none; left: 38%; }
}
