/* Layout: left-aligned editorial column on deep ink; evidence shown as mono "ledger" panels; one amber seal accent. */
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JBMono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #0a1520;
  --ink-2: #0f1d2b;
  --panel: #132434;
  --line: #24384b;
  --line-soft: #1a2c3d;
  --text: #e9eff3;
  --muted: #9bacba;
  --seal: #f5b544;
  --seal-ink: #1c1403;
  --allow: #54d3a7;
  --deny: #ff7566;
  --review: #f5b544;
  --info: #7cb8ff;
  --display: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JBMono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 10px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1160px; margin-inline: auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--seal); color: var(--seal-ink); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 650; }
h1 em { font-style: normal; color: var(--seal); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 20ch; }
h3 { font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow { font: 500 0.76rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--seal); margin-bottom: 18px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 56ch; margin-top: 24px; }
.section-lede { color: var(--muted); max-width: 62ch; margin-top: 18px; font-size: 1.08rem; }
.fine { color: var(--muted); font-size: 0.88rem; margin-top: 20px; }
.fine a { color: var(--seal); }
code, pre { font-family: var(--mono); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 8px; font: 600 0.98rem/1.2 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 15px; font-size: 0.88rem; }
.btn-solid { background: var(--seal); color: var(--seal-ink); }
.btn-solid:hover { background: #ffc965; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-danger { background: transparent; color: var(--deny); border-color: color-mix(in srgb, var(--deny) 50%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--deny) 12%, transparent); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ink) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 650 1.16rem/1 var(--display); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.93rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 900px) { .nav-links { display: none; } .nav-in .btn { margin-left: auto; } }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px); background:
  radial-gradient(900px 480px at 85% 0%, color-mix(in srgb, var(--seal) 9%, transparent), transparent 70%),
  linear-gradient(var(--ink), var(--ink)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: 0.98rem; }
.hero-facts li { padding-left: 26px; position: relative; }
.hero-facts li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 2px solid var(--allow); border-bottom: 2px solid var(--allow); transform: rotate(-45deg) translateY(-3px); }
.hero-facts strong { color: var(--text); font-weight: 600; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Stream panel */
.stream { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); min-width: 0; }
.stream-head, .stream-foot { display: flex; align-items: center; gap: 10px; padding: 13px 18px; font: 500 0.74rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stream-head { border-bottom: 1px solid var(--line-soft); }
.stream-foot { border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.stream-foot code { color: var(--text); text-transform: none; letter-spacing: 0; }
.stream-foot .ok { margin-left: auto; color: var(--allow); }
.tag { margin-left: auto; border: 1px solid var(--line); border-radius: 99px; padding: 4px 9px; font-size: 0.66rem; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--allow); box-shadow: 0 0 0 0 color-mix(in srgb, var(--allow) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.stream-rows { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.stream-rows li { display: grid; grid-template-columns: 70px 124px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 11px 18px; border-bottom: 1px solid var(--line-soft); font: 400 0.8rem/1.4 var(--mono); }
.stream-rows li.in { animation: rowin .5s ease both; }
@keyframes rowin { from { opacity: 0; transform: translateY(-10px); background: color-mix(in srgb, var(--seal) 10%, transparent); } }
.stream-rows time { color: var(--muted); font-variant-numeric: tabular-nums; }
.stream-rows .res { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stream-rows .res small { display: block; color: var(--muted); font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; }
.out { font-weight: 600; font-size: 0.72rem; letter-spacing: 0.04em; }
.out-allow { color: var(--allow); } .out-deny { color: var(--deny); } .out-review { color: var(--review); } .out-info { color: var(--info); }
@media (max-width: 480px) { .stream-rows li { grid-template-columns: 64px minmax(0, 1fr); } .stream-rows .res { grid-column: 1 / -1; } }

/* Bands */
.band { padding-block: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line-soft); }
.band-alt { background: var(--ink-2); }

/* Problem */
.merge { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 48px; }
.merge-sources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.merge-sources li { border: 1px dashed var(--line); border-radius: var(--r); padding: 16px 18px; }
.merge-sources span { display: block; font-weight: 600; }
.merge-sources small, .merge-out small { color: var(--muted); font-size: 0.86rem; }
.merge-arrow { color: var(--seal); }
.merge-out { display: flex; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--seal); border-radius: var(--r); padding: 22px; }
.merge-out strong { display: block; font: 600 1.2rem/1.2 var(--display); }
.seal { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--seal); position: relative; }
.seal::after { content: ""; position: absolute; left: 13px; top: 15px; width: 18px; height: 9px; border-left: 3px solid var(--seal-ink); border-bottom: 3px solid var(--seal-ink); transform: rotate(-45deg); }
@media (max-width: 860px) { .merge { grid-template-columns: minmax(0, 1fr); } .merge-arrow { transform: rotate(90deg); justify-self: center; } }
@media (max-width: 460px) { .merge-sources { grid-template-columns: minmax(0, 1fr); } }
.clock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.clock div { padding: 26px 24px 4px 0; }
.clock div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.clock b { display: block; font: 600 clamp(2.2rem, 4vw, 3.2rem)/1 var(--display); color: var(--seal); font-variant-numeric: tabular-nums; }
.clock span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 10px; max-width: 30ch; }
@media (max-width: 720px) { .clock { grid-template-columns: minmax(0, 1fr); } .clock div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-soft); } }

/* Demo */
.demo { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; margin-top: 44px; align-items: start; }
@media (max-width: 960px) { .demo { grid-template-columns: minmax(0, 1fr); } }
.demo-left, .demo-right { display: grid; gap: 18px; min-width: 0; }
.scenarios { border: 0; padding: 0; margin: 0; min-width: 0; }
.scenarios legend { font: 500 0.76rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 12px; }
.scenario-list { display: grid; gap: 8px; }
.scenario { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; text-align: left; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; color: var(--text); cursor: pointer; font: inherit; }
.scenario::before { content: ""; grid-row: 1 / 3; align-self: center; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); }
.scenario b { font-weight: 600; font-size: 0.98rem; }
.scenario span { color: var(--muted); font-size: 0.86rem; grid-column: 2; }
.scenario:hover { border-color: var(--muted); }
.scenario[aria-pressed="true"] { border-color: var(--seal); background: color-mix(in srgb, var(--seal) 7%, var(--ink)); }
.scenario[aria-pressed="true"]::before { border-color: var(--seal); background: radial-gradient(var(--seal) 45%, transparent 50%); }
.term { background: #060d14; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.term-bar span { margin-left: auto; font: 400 0.72rem/1 var(--mono); color: var(--muted); }
.term-out { margin: 0; padding: 16px; font-size: 0.8rem; line-height: 1.65; min-height: 168px; white-space: pre-wrap; overflow-wrap: anywhere; color: #c9d6df; }
.term-out .minus { color: var(--deny); } .term-out .plus { color: var(--allow); } .term-out .dim { color: var(--muted); } .term-out .warn { color: var(--review); } .term-out .bad { color: var(--deny); } .term-out .good { color: var(--allow); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 18px 40px; opacity: .45; transition: opacity .3s; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: 600 0.74rem/1 var(--mono); color: var(--muted); background: var(--ink-2); z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 1px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; } .steps li:last-child::after { display: none; }
.steps b { display: block; font-weight: 600; font-size: 0.98rem; line-height: 26px; }
.steps span { display: block; color: var(--muted); font-size: 0.86rem; overflow-wrap: anywhere; }
.steps span code { font-size: 0.78rem; color: var(--text); }
.steps li.done { opacity: 1; }
.steps li.done::before { background: var(--allow); border-color: var(--allow); color: #04261b; content: "✓"; }
.steps li.done.s-deny::before { background: var(--deny); border-color: var(--deny); color: #2a0703; content: "✕"; }
.steps li.done.s-review::before { background: var(--review); border-color: var(--review); color: var(--seal-ink); content: "!"; }

.pack { background: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 14px; min-width: 0; }
.pack-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pack-head small, .chain small { display: block; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pack-head strong { font: 600 1rem/1 var(--mono); }
.pill { font: 600 0.7rem/1 var(--mono); letter-spacing: 0.06em; padding: 7px 11px; border-radius: 99px; border: 1px solid currentColor; white-space: nowrap; }
.pill.allow { color: var(--allow); } .pill.deny { color: var(--deny); } .pill.review { color: var(--review); }
.pack-json { margin: 0; background: #060d14; border: 1px solid var(--line-soft); border-radius: 8px; padding: 14px; font-size: 0.74rem; line-height: 1.6; max-height: 300px; overflow: auto; color: #c9d6df; }
.pack-json .k { color: var(--info); } .pack-json .tampered { background: color-mix(in srgb, var(--deny) 25%, transparent); color: #fff; }
.verify { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--allow) 50%, transparent); background: color-mix(in srgb, var(--allow) 8%, transparent); }
.verify small { display: block; font: 400 0.74rem/1.5 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.verify-mark { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--allow); display: grid; place-items: center; color: #04261b; font-weight: 700; }
.verify-mark::before { content: "✓"; }
.verify.bad { border-color: color-mix(in srgb, var(--deny) 60%, transparent); background: color-mix(in srgb, var(--deny) 10%, transparent); animation: shake .35s; }
.verify.bad .verify-mark { background: var(--deny); color: #2a0703; }
.verify.bad .verify-mark::before { content: "✕"; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.chain ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.chain li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; font: 400 0.74rem/1.5 var(--mono); padding: 9px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--ink); }
.chain li span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chain li.broken { border-color: var(--deny); } .chain li.broken span { color: var(--deny); }

/* Coverage */
.sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
.sources article { background: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 24px; display: grid; gap: 8px; align-content: start; }
.sources code { justify-self: start; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--seal); border: 1px solid color-mix(in srgb, var(--seal) 45%, transparent); border-radius: 4px; padding: 4px 8px; margin-bottom: 6px; }
.sources p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sources { grid-template-columns: minmax(0, 1fr); } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 52px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { padding: 30px 28px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.feature-wide { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 40px; background: var(--ink-2); }
.feature-wide h3 { font-size: 1.6rem; grid-row: span 2; }
.feature p { color: var(--muted); font-size: 0.98rem; }
.chip { margin-top: auto; padding-top: 8px; font-size: 0.74rem; color: var(--seal); letter-spacing: 0.02em; }
@media (max-width: 900px) { .features { grid-template-columns: minmax(0, 1fr); } .feature-wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); row-gap: 12px; } .feature-wide h3 { font-size: 1.3rem; } }
.sub-h { margin-top: 72px; font-size: 1.5rem; }
.table-scroll { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r); }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.94rem; }
.compare th, .compare td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font: 500 0.72rem/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.compare tbody th { font-weight: 500; }
.compare td { color: var(--muted); }
.compare .us { background: color-mix(in srgb, var(--seal) 7%, transparent); }
.compare thead .us { color: var(--seal); }
.compare .yes { color: var(--allow); font-weight: 600; }
.compare .no { color: var(--deny); }

/* Modes */
.modes { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.modes li { padding: 26px 28px 0 0; border-top: 2px solid var(--line); position: relative; display: grid; gap: 10px; align-content: start; }
.modes li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--seal); }
.mode-n { font: 500 0.74rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--seal); }
.modes h3 { font-size: 1.6rem; }
.modes p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 800px) { .modes { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.install { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 32px; margin-top: 64px; align-items: center; }
.install p { color: var(--muted); margin-top: 10px; }
.codeblock { position: relative; background: #060d14; border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.codeblock pre { margin: 0; padding: 22px 20px; overflow-x: auto; font-size: 0.82rem; line-height: 1.7; color: #c9d6df; padding-right: 84px; }
.codeblock .btn { position: absolute; top: 12px; right: 12px; background: var(--ink-2); }
@media (max-width: 800px) { .install { grid-template-columns: minmax(0, 1fr); } }

/* Frameworks */
.fw { margin-top: 40px; display: grid; grid-template-columns: 240px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fw-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--ink-2); }
.fw-tabs button { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-soft); color: var(--muted); padding: 17px 20px; font: 600 0.98rem/1.2 var(--body); cursor: pointer; }
.fw-tabs button small { display: block; font: 400 0.72rem/1.4 var(--mono); margin-top: 4px; opacity: .8; }
.fw-tabs button:hover { color: var(--text); }
.fw-tabs button[aria-selected="true"] { color: var(--text); background: var(--ink); box-shadow: inset 3px 0 0 var(--seal); }
.fw-panel { padding: 30px 32px; min-width: 0; }
.fw-panel h3 { font-size: 1.5rem; }
.fw-panel > p { color: var(--muted); margin-top: 10px; max-width: 60ch; }
.fw-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.fw-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-top: 1px solid var(--line-soft); font-size: 0.96rem; }
.fw-list code { color: var(--seal); font-size: 0.82rem; padding-top: 2px; }
.fw-list span { color: var(--muted); }
@media (max-width: 800px) { .fw { grid-template-columns: minmax(0, 1fr); } .fw-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); } .fw-tabs button { border-bottom: 0; white-space: nowrap; } .fw-tabs button small { display: none; } .fw-tabs button[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--seal); } .fw-panel { padding: 24px 20px; } .fw-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ROI */
.roi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .roi { grid-template-columns: minmax(0, 1fr); } }
.sliders { display: grid; gap: 8px; margin-top: 34px; }
.sliders label { display: flex; justify-content: space-between; gap: 16px; font-size: 0.96rem; margin-top: 14px; }
.sliders output { font: 600 0.96rem/1.5 var(--mono); color: var(--seal); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--seal); height: 28px; }
.roi-out { background: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 4vw, 40px); min-width: 0; }
.roi-out > small { font: 500 0.74rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.roi-big { font: 650 clamp(2.6rem, 6vw, 4.4rem)/1 var(--display); letter-spacing: -0.03em; margin-top: 14px; color: var(--seal); font-variant-numeric: tabular-nums; }
.roi-bars { display: grid; gap: 12px; margin-top: 30px; }
.roi-bar { display: grid; grid-template-columns: 118px minmax(0, 1fr) 64px; gap: 12px; align-items: center; font-size: 0.86rem; color: var(--muted); }
.roi-bar i { height: 14px; border-radius: 3px; background: var(--line); justify-self: start; min-width: 3px; transition: width .25s ease; width: 100%; }
.roi-bar i.new { background: var(--allow); }
.roi-bar b { font: 500 0.82rem/1 var(--mono); color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.roi-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.roi-dl dt { color: var(--muted); font-size: 0.86rem; }
.roi-dl dd { margin: 6px 0 0; font: 600 1.6rem/1 var(--display); font-variant-numeric: tabular-nums; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan-main { border-color: var(--seal); background: color-mix(in srgb, var(--seal) 5%, var(--ink)); }
.plan-flag { position: absolute; top: -12px; left: 24px; background: var(--seal); color: var(--seal-ink); font: 600 0.7rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; border-radius: 4px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.price b { font: 650 2.7rem/1 var(--display); letter-spacing: -0.03em; }
.price span { color: var(--muted); font-size: 0.86rem; }
.plan-for { color: var(--muted); }
.plan ul { list-style: none; padding: 16px 0 0; margin: 4px 0 20px; border-top: 1px solid var(--line-soft); display: grid; gap: 9px; font-size: 0.95rem; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 11px; height: 6px; border-left: 2px solid var(--allow); border-bottom: 2px solid var(--allow); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.guarantee { margin-top: 32px; padding: 22px 26px; border: 1px dashed var(--seal); border-radius: var(--r); color: var(--muted); max-width: 78ch; }
.guarantee strong { color: var(--seal); }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; margin-top: 48px; }
.trust p { color: var(--muted); margin-top: 10px; font-size: 0.98rem; max-width: 52ch; }
@media (max-width: 720px) { .trust { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 48px; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 36px 20px 0; font: 600 1.06rem/1.35 var(--body); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 1.5rem/1 var(--mono); color: var(--seal); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 64ch; }
.faq details a { color: var(--seal); }

/* Contact */
.band-cta { background: radial-gradient(800px 400px at 10% 100%, color-mix(in srgb, var(--seal) 10%, transparent), transparent 70%), var(--ink-2); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 32px); }
.field { display: grid; gap: 7px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 13px; color: var(--text); font: 400 1rem/1.4 var(--body); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--seal); outline-offset: 1px; border-color: transparent; }
.field .invalid { border-color: var(--deny); }
.form-status { font-size: 0.9rem; color: var(--muted); min-height: 1.4em; }
.form-status.err { color: var(--deny); } .form-status.ok { color: var(--allow); }
@media (max-width: 520px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.footer { border-top: 1px solid var(--line-soft); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); }
.footer-in { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer nav a:hover { color: var(--text); }
.footer small { color: var(--muted); margin-left: auto; font-size: 0.82rem; }
@media (max-width: 720px) { .footer small { margin-left: 0; } }

/* Sample pack page */
.doc { max-width: 880px; margin-inline: auto; padding-block: 40px 80px; }
.doc-back { color: var(--muted); font-size: 0.9rem; text-decoration: none; }
.doc-back:hover { color: var(--text); }
.sheet { margin-top: 20px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sheet-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; padding: 28px 32px; border-bottom: 1px solid var(--line); }
.sheet-head h1 { font-size: 1.9rem; }
.sheet-head p { font: 400 0.8rem/1.6 var(--mono); color: var(--muted); margin-top: 8px; }
.sheet section { padding: 24px 32px; border-bottom: 1px solid var(--line-soft); display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px 28px; }
.sheet section:last-child { border-bottom: 0; }
.sheet h2 { font: 500 0.74rem/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--seal); max-width: none; }
.sheet h2 small { display: block; color: var(--muted); letter-spacing: 0; text-transform: none; font-size: 0.74rem; margin-top: 4px; }
.sheet .body { display: grid; gap: 8px; min-width: 0; font-size: 0.96rem; }
.sheet .body p { color: var(--muted); }
.sheet .body strong { color: var(--text); }
.kv { font: 400 0.8rem/1.7 var(--mono); color: #c9d6df; overflow-wrap: anywhere; }
.diff { margin: 0; background: #060d14; border: 1px solid var(--line-soft); border-radius: 8px; padding: 12px 14px; font-size: 0.8rem; line-height: 1.7; overflow-x: auto; }
.diff .minus { color: var(--deny); } .diff .plus { color: var(--allow); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font: 500 0.74rem/1 var(--mono); border: 1px solid var(--line); border-radius: 99px; padding: 7px 11px; }
.quote { border-left: 2px solid var(--seal); padding-left: 14px; color: var(--text) !important; }
@media (max-width: 680px) { .sheet section { grid-template-columns: minmax(0, 1fr); padding: 20px; } .sheet-head { padding: 22px 20px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
