/* Isoline site. Tokens follow design/freeze/v1-2026-11-22 (palette «Купюра»). No external requests. */

@font-face { font-family: "Old Standard TT"; src: url("../fonts/old-standard-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Old Standard TT"; src: url("../fonts/old-standard-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Old Standard TT"; src: url("../fonts/old-standard-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --font-sans: "Onest", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-display: "Old Standard TT", "PT Serif", Georgia, "Times New Roman", serif;

  --bg-canvas: #F4E6CB;
  --bg-surface: #FCF5E6;
  --bg-raised: #FDF8EC;
  --bg-sunken: #EBD6B0;
  --fg-primary: #5E1614;
  --fg-secondary: #74281F;
  --fg-tertiary: #87533F;
  --line-hairline: rgba(94, 22, 20, 0.13);
  --line-strong: rgba(94, 22, 20, 0.28);
  --accent-fill: #C23B22;
  --accent-text: #9C2B17;
  --accent-subtle: rgba(194, 59, 34, 0.12);
  --fg-on-accent: #FFF6E6;
  --btn-bg: #7F1D1D;
  --btn-fg: #FBF0DA;
  --gold: #C9952F;
  --state-ok: #2E6B3A;
  --ch-0: #87533F; --ch-a: #1F5E8C; --ch-b: #4F6B1F; --ch-c: #9A6A08; --ch-d: #5E3FA8;
  --ch-key-fg: #FFF6E6;
  --motif: rgba(201, 149, 47, 0.30);
  --glass: rgba(244, 230, 203, 0.88);
  --shadow: 0 1px 0 rgba(94, 22, 20, 0.04), 0 18px 40px -18px rgba(94, 22, 20, 0.35);

  --m-fast: 120ms; --m-base: 200ms; --m-slow: 320ms;
  --e-std: cubic-bezier(0.2, 0, 0, 1); --e-dec: cubic-bezier(0, 0, 0, 1);

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-canvas: #1E0F0C;
    --bg-surface: #2A1612;
    --bg-raised: #361D17;
    --bg-sunken: #160A08;
    --fg-primary: #F6E7CC;
    --fg-secondary: #D9BFA0;
    --fg-tertiary: #B39477;
    --line-hairline: rgba(246, 231, 204, 0.11);
    --line-strong: rgba(246, 231, 204, 0.24);
    --accent-fill: #E8674A;
    --accent-text: #F28B6E;
    --accent-subtle: rgba(232, 103, 74, 0.18);
    --fg-on-accent: #2A0E0A;
    --btn-bg: #F3E1BD;
    --btn-fg: #4A1410;
    --gold: #E3B456;
    --state-ok: #7BC47F;
    --ch-0: #B39477; --ch-a: #7DB4E8; --ch-b: #A6C76A; --ch-c: #E9B949; --ch-d: #A991F0;
    --ch-key-fg: #1E0F0C;
    --motif: rgba(227, 180, 86, 0.14);
    --glass: rgba(30, 15, 12, 0.86);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg-canvas); color: var(--fg-primary);
  font: 400 17px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent-subtle); color: var(--fg-primary); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.1px; text-wrap: balance; }
p, ul, ol, dl, table, pre, blockquote { margin: 0 0 1em; }
code, kbd, samp, .mono { font-family: var(--font-mono); font-size: 0.88em; font-variant-numeric: tabular-nums slashed-zero; }
code { background: var(--bg-sunken); padding: 0.08em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }
pre { background: var(--bg-sunken); padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: 14px; line-height: 1.55; position: relative; }
pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
hr { border: 0; height: 1px; background: var(--line-hairline); margin: 2em 0; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.label {
  font-family: var(--font-display); font-weight: 700; font-size: 13px; line-height: 1.2;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--fg-tertiary); margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.label::before { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: 0.6; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--fg-secondary); max-width: 40em; }
.muted { color: var(--fg-tertiary); }
.ico { width: 24px; height: 24px; flex: none; }

/* registration marks */
.reg { position: relative; }
.reg::before, .reg::after { content: ""; position: absolute; width: 14px; height: 14px; border: solid var(--fg-primary); opacity: 0.5; pointer-events: none; }
.reg::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.reg::after { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-hairline);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg-primary); font: 700 24px/1 var(--font-display); letter-spacing: 0.2px; padding: 6px 0; }
.brand svg { width: 34px; height: 34px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-hairline); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--fg-secondary); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 10px; border-radius: 6px; white-space: nowrap; }
.nav a:hover { background: var(--bg-sunken); color: var(--fg-primary); }
.nav a[aria-current="page"] { color: var(--fg-primary); box-shadow: inset 0 -2px 0 var(--accent-fill); border-radius: 0; }
.lang { display: flex; background: var(--bg-sunken); border-radius: 8px; padding: 2px; gap: 2px; }
.lang a { font: 500 13px/1 var(--font-mono); letter-spacing: 0.5px; text-transform: uppercase; color: var(--fg-secondary); text-decoration: none; padding: 8px 9px; border-radius: 6px; min-width: 36px; text-align: center; }
.lang a[aria-current="true"] { background: var(--bg-raised); color: var(--fg-primary); box-shadow: 0 0 0 0.5px var(--line-strong); }
.lang a:hover:not([aria-current="true"]) { color: var(--fg-primary); }

@media (max-width: 860px) {
  .site-header .wrap { gap: 8px 12px; padding-top: 6px; }
  .lang { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; overflow-x: auto; scrollbar-width: none; width: calc(100% + 2 * var(--gutter)); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 10px; font-size: 14px; }
}

/* ---------- buttons, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 6px; font: 700 18px/1 var(--font-display); letter-spacing: 0.3px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform var(--m-fast) var(--e-std), background-color var(--m-base) var(--e-std);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--fg-secondary); }
@media (prefers-color-scheme: dark) { .btn-primary:hover { background: #FFF0D2; } }
.btn-secondary { background: var(--bg-raised); color: var(--fg-primary); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-secondary:hover { background: var(--bg-surface); }
.btn .ico { width: 20px; height: 20px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.store {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; min-height: 58px; border-radius: 10px;
  border: 1.5px dashed var(--line-strong); color: var(--fg-secondary); background: transparent;
}
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store b { display: block; font: 600 15px/1.2 var(--font-sans); color: var(--fg-primary); }
.store small { display: block; font: 500 11px/1.2 var(--font-mono); letter-spacing: 0.8px; text-transform: uppercase; color: var(--fg-tertiary); }

.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 5px; background: var(--bg-sunken); font: 500 13px/26px var(--font-mono); color: var(--fg-secondary); white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }

.ch-a { --ch: var(--ch-a); } .ch-b { --ch: var(--ch-b); } .ch-c { --ch: var(--ch-c); } .ch-d { --ch: var(--ch-d); } .ch-0 { --ch: var(--ch-0); }
.key { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; background: var(--ch); color: var(--ch-key-fg); font: 700 13px/1 var(--font-mono); flex: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); isolation: isolate; }
.hero .isolines { position: absolute; inset: -10% -20% auto auto; width: min(1100px, 120vw); height: auto; color: var(--motif); z-index: -1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.5px; margin-bottom: 22px; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent-text); }
.hero .lead { margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .phone { width: min(300px, 74vw); transform: rotate(2.2deg); }
.hero-visual .phone.back { position: absolute; width: min(250px, 60vw); transform: rotate(-8deg) translate(-104%, 10%); left: 50%; top: 2%; opacity: 0.95; z-index: -1; }
.callsigns { position: absolute; left: -36px; bottom: 6%; display: grid; gap: 8px; z-index: 2; }
.callsign {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 8px; background: var(--bg-raised);
  box-shadow: inset 0 0 0 1.5px var(--ch), var(--shadow); font: 500 15px/1 var(--font-mono); color: var(--fg-primary); letter-spacing: 0.3px;
}
.callsign:nth-child(2) { margin-left: 28px; } .callsign:nth-child(3) { margin-left: 10px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 12px; padding-left: 40px; }
  .hero-visual .phone.back { display: none; }
  .callsigns { left: 0; bottom: 10%; }
}

/* ---------- device frames ---------- */
.phone {
  position: relative; border-radius: 46px; padding: 10px; background: #2B1511;
  box-shadow: inset 0 0 0 1.5px #5a3a30, inset 0 0 0 5px #1a0c09, var(--shadow);
}
.phone img, .phone picture { border-radius: 37px; width: 100%; aspect-ratio: 1170 / 2532; object-fit: cover; background: var(--bg-surface); }
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; width: 28%; height: 22px; transform: translateX(-50%); background: #0e0605; border-radius: 12px; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line-hairline); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section h2 { font-size: clamp(30px, 4.2vw, 50px); }
.section.alt { background: var(--bg-surface); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--bg-raised); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-hairline); padding: 22px; }
.card h3 { font-size: 22px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .ico { color: var(--accent-text); }

/* channel lanes (hero of "how it works") */
.lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lane { background: var(--bg-raised); border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--ch); overflow: hidden; display: flex; flex-direction: column; }
.lane-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-hairline); font: 500 14px/1 var(--font-mono); }
.lane-head .st { margin-left: auto; font-size: 12px; color: var(--fg-tertiary); }
.sweep { position: relative; height: 2px; overflow: hidden; }
.sweep i { position: absolute; inset: 0 auto 0 0; width: 35%; background: linear-gradient(90deg, transparent, var(--ch) 45%, var(--ch) 55%, transparent); animation: iso-sweep 1.2s var(--e-std) infinite; }
.lane-body { padding: 14px 12px 16px; display: grid; gap: 8px; }
.lane .price { font: 700 28px/1.1 var(--font-display); font-variant-numeric: lining-nums; }
.lane .row { display: flex; justify-content: space-between; gap: 8px; font: 400 13px/1.4 var(--font-mono); color: var(--fg-secondary); border-top: 1px dashed var(--line-hairline); padding-top: 6px; }
.lane .row span:first-child { color: var(--fg-tertiary); font-family: var(--font-sans); }
.diff { color: var(--accent-text); font-weight: 600; }
@media (max-width: 900px) { .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .lanes { grid-template-columns: 1fr; } }

/* findings ledger */
.ledger { list-style: none; padding: 0; margin: 0; counter-reset: f; border-top: 1px solid var(--line-strong); }
.ledger li { counter-increment: f; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line-hairline); }
.ledger li::before { content: counter(f, decimal-leading-zero); font: 500 13px/1.6 var(--font-mono); color: var(--fg-tertiary); grid-row: span 2; padding-top: 3px; }
.ledger b { font-family: var(--font-display); font-size: 19px; }
.ledger span { color: var(--fg-secondary); font-size: 15px; }

/* stamp */
.stamp {
  display: flex; flex-wrap: wrap; align-items: stretch; background: var(--bg-surface); border-radius: 10px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-strong); font: 400 13px/1.4 var(--font-mono); margin: 0 0 18px;
}
.stamp > .bar { width: 5px; background: var(--ch); flex: none; }
.stamp dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; margin: 0; flex: 1; }
.stamp dl div { padding: 10px 14px; border-right: 1px dashed var(--line-hairline); border-bottom: 1px dashed var(--line-hairline); }
.stamp dt { font: 700 10px/1.2 var(--font-display); letter-spacing: 1.4px; text-transform: uppercase; color: var(--fg-tertiary); margin-bottom: 3px; }
.stamp dd { margin: 0; color: var(--fg-primary); overflow-wrap: anywhere; }
.stamp .sha { grid-column: 1 / -1; }
.scanline { height: 2px; background: linear-gradient(90deg, transparent, var(--accent-fill), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: iso-scan 2.4s var(--e-std) infinite; }
@keyframes iso-scan { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* route diagram */
.route { width: 100%; height: auto; color: var(--fg-primary); }
.route .flow { stroke-dasharray: 3 15; animation: iso-flow 900ms linear infinite; }
.route .draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: iso-draw 1.4s var(--e-std) 0.2s forwards; }
.route text { font: 500 15px var(--font-mono); fill: currentColor; }
.route .cap { font: 700 11px var(--font-display); letter-spacing: 1.4px; fill: var(--fg-tertiary); }
.tunnel-card { background: var(--bg-raised); border-radius: 14px; padding: 22px; box-shadow: inset 0 0 0 1px var(--line-hairline); }
.honest { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-subtle); color: var(--fg-primary); border-radius: 10px; padding: 14px 16px; margin: 0 0 1em; }
.honest .ico { color: var(--accent-text); }

/* protocols & import */
.proto { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0 0 28px; }
.proto li { background: var(--bg-raised); border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-hairline); padding: 12px 14px; font: 500 15px/1.3 var(--font-mono); }
.proto li small { display: block; font: 400 12px/1.3 var(--font-sans); color: var(--fg-tertiary); margin-top: 3px; }
.imports { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.imports li { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 14px; border-radius: 10px; border: 1px solid var(--line-strong); }
.imports .ico { color: var(--accent-text); }
.imports b { font-family: var(--font-display); font-size: 17px; line-height: 1.2; }
.imports span { font-size: 13px; color: var(--fg-tertiary); line-height: 1.4; }
@media (max-width: 900px) { .imports { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* "not" ledger */
.nots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.nots li { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line-hairline); }
.nots b { display: block; font: 700 24px/1.15 var(--font-display); margin-bottom: 6px; text-decoration: line-through; text-decoration-color: var(--accent-fill); text-decoration-thickness: 2px; }
.nots span { color: var(--fg-secondary); font-size: 15px; }

/* preview strip */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 250px); gap: 26px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery figcaption { margin-top: 14px; font-size: 14px; color: var(--fg-secondary); line-height: 1.45; }
.gallery figcaption b { display: block; font-family: var(--font-display); font-size: 18px; color: var(--fg-primary); }
.gallery .phone { border-radius: 38px; padding: 8px; }
.gallery .phone img { border-radius: 31px; }
.gallery .phone::after { top: 16px; height: 17px; }
.gallery:focus-visible { outline-offset: 6px; }

/* platforms */
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0 0 18px; }
.platforms li { padding: 18px; border-radius: 12px; background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line-hairline); }
.platforms b { display: block; font: 700 22px/1.2 var(--font-display); }
.platforms span { font-size: 14px; color: var(--fg-tertiary); }
@media (max-width: 640px) { .platforms { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line-hairline); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 700 20px/1.3 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 26px/1 var(--font-mono); color: var(--accent-text); transition: transform var(--m-base) var(--e-std); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--fg-secondary); max-width: 46em; }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------- documents (legal pages) ---------- */
.doc-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); position: relative; overflow: hidden; }
.doc-hero h1 { font-size: clamp(36px, 5.6vw, 64px); margin-bottom: 14px; }
.doc-hero .lead { margin-bottom: 18px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-bottom: clamp(56px, 8vw, 100px); align-items: start; }
.toc { position: sticky; top: 88px; font-size: 14px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.toc p { font: 700 12px/1.2 var(--font-display); letter-spacing: 1.4px; text-transform: uppercase; color: var(--fg-tertiary); margin: 0 0 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line-strong); }
.toc a { display: block; padding: 5px 0 5px 12px; color: var(--fg-secondary); text-decoration: none; line-height: 1.35; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--fg-primary); border-left-color: var(--accent-fill); }
.doc { background: var(--bg-raised); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-hairline); padding: clamp(20px, 4vw, 48px); min-width: 0; }
.doc h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 1.8em; padding-top: 0.2em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 20px; margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 0.4em; }
.doc li::marker { color: var(--fg-tertiary); }
.doc .note { background: var(--bg-sunken); border-radius: 10px; padding: 14px 16px; }
.doc .callout { border-left: 3px solid var(--accent-fill); background: var(--accent-subtle); padding: 14px 16px; border-radius: 0 10px 10px 0; }
.doc .caps { text-transform: uppercase; font-size: 0.92em; letter-spacing: 0.2px; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; background: var(--bg-surface); border-radius: 12px; padding: 16px; }
}

.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-hairline); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line-hairline); }
th { font: 600 12px/1.3 var(--font-sans); letter-spacing: 0.6px; text-transform: uppercase; color: var(--fg-tertiary); background: var(--bg-surface); }
tr:last-child td { border-bottom: 0; }
td code { font-size: 0.85em; }
td.mono, .lic td:nth-child(2), .lic td:nth-child(3) { font-family: var(--font-mono); font-size: 13px; }

dl.facts { display: grid; grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
dl.facts dt, dl.facts dd { padding: 12px 0; border-bottom: 1px solid var(--line-hairline); margin: 0; }
dl.facts dt { color: var(--fg-tertiary); font-size: 15px; padding-right: 16px; }
dl.facts dd { overflow-wrap: anywhere; }
@media (max-width: 560px) { dl.facts { grid-template-columns: 1fr; } dl.facts dt { border-bottom: 0; padding-bottom: 0; } }

.copy { position: absolute; top: 8px; right: 8px; font: 500 12px/1 var(--font-sans); padding: 7px 10px; border-radius: 6px; border: 0; background: var(--bg-raised); color: var(--fg-secondary); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-sunken); padding: clamp(40px, 6vw, 72px) 0 28px; font-size: 15px; color: var(--fg-secondary); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font: 700 13px/1.2 var(--font-display); letter-spacing: 1.4px; text-transform: uppercase; color: var(--fg-tertiary); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--fg-primary); }
.site-footer address { font-style: normal; line-height: 1.6; }
.foot-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line-strong); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: var(--fg-tertiary); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.nf .code { font: 500 15px/1 var(--font-mono); color: var(--fg-tertiary); letter-spacing: 2px; }
.nf h1 { font-size: clamp(36px, 6vw, 60px); margin: 14px 0; }
.nf .langs { display: grid; gap: 22px; margin-top: 26px; }

/* ---------- motion (from isoline-motion.css) ---------- */
@keyframes iso-sweep { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }
@keyframes iso-flow { to { stroke-dashoffset: -36; } }
@keyframes iso-draw { to { stroke-dashoffset: 0; } }
@keyframes iso-drift { 0% { transform: translate(0, 0); } 100% { transform: translate(-24px, 10px); } }
@keyframes iso-in { from { transform: translateY(16px); opacity: 0; } }
@keyframes iso-roll { 0%, 22% { transform: translateY(0); } 33%, 55% { transform: translateY(-1.25em); } 66%, 88% { transform: translateY(-2.5em); } 100% { transform: translateY(0); } }
.drift { animation: iso-drift 14s ease-in-out infinite alternate; }
.rise { animation: iso-in 620ms var(--e-std) both; }
.rise.d1 { animation-delay: 120ms; } .rise.d2 { animation-delay: 240ms; } .rise.d3 { animation-delay: 360ms; }
.flap { display: inline-block; height: 1.25em; overflow: hidden; vertical-align: bottom; }
.flap > span { display: flex; flex-direction: column; animation: iso-roll 7.5s var(--e-std) infinite; }
.flap > span > b { height: 1.25em; line-height: 1.25em; font-weight: inherit; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .route .draw { stroke-dashoffset: 0; }
  .flap > span { animation: none !important; }
  .sweep i, .scanline { display: none; }
}

@media print {
  .site-header, .site-footer, .toc, .skip, .copy { display: none !important; }
  body { background: #fff; color: #000; }
  .doc { box-shadow: none; padding: 0; }
  .doc-layout { display: block; }
}

.mt { margin-top: 18px; }
.tag .ico { width: 16px; height: 16px; }
