/* Filings — design D, responsive system */
:root {
  --ink: #0B1B2E; --ink-muted: #33414F; --ink-subtle: #4A5869; --ink-faint: #5B6878;
  --green: #0B6E4F; --green-hover: #08513A; --green-surface: #E8F5EE; --green-border: #B7DFCA;
  --red: #B42318;
  --bg: #FFFFFF; --bg-subtle: #F8FAFC; --line: #E2E8F0; --line-strong: #CBD5E1;
  --amber-bg: #FFF8EB; --amber-line: #FCE1B6; --amber-text: #78350F;
  --code-bg: #0B131E; --code-bar: #070D15; --code-line: #1E293B; --code-text: #E2E8F0; --code-muted: #94A3B8;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 24px);
  --section: clamp(56px, 9vw, 96px);
  --radius: 14px;
  --fs-h1: clamp(2.05rem, 1.35rem + 3.4vw, 3.6rem);
  --fs-h2: clamp(1.6rem, 1.15rem + 2vw, 2.6rem);
  --fs-lead: clamp(1rem, 0.94rem + 0.35vw, 1.15rem);
  --fs-body: clamp(0.95rem, 0.92rem + 0.15vw, 1rem);
  --fs-code: clamp(0.75rem, 0.72rem + 0.2vw, 0.86rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid rgba(11,110,79,.35); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); letter-spacing: -0.02em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
.eyebrow { margin: 0 0 12px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); font-weight: 600; }
h1, .h1 { font-family: var(--serif); letter-spacing: -0.02em; font-size: var(--fs-h1); line-height: 1.06; font-weight: 600; margin: 0; color: var(--ink); text-wrap: balance; }
h2, .h2 { font-family: var(--serif); letter-spacing: -0.015em; font-size: var(--fs-h2); line-height: 1.14; font-weight: 600; margin: 0; color: var(--ink); text-wrap: balance; }
h3 { font-size: 1.15rem; line-height: 1.3; margin: 0; font-weight: 600; }
.lead { margin: 18px 0 0; font-size: var(--fs-lead); color: var(--ink-muted); line-height: 1.62; max-width: 46rem; text-wrap: pretty; }
.note { font-size: .9rem; color: var(--ink-subtle); }
code.inline { font-family: var(--mono); font-size: .88em; background: #EEF2F6; color: var(--ink); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }
code.inline.g { background: var(--green-surface); color: var(--green); }
code.inline.a { background: var(--amber-line); color: var(--amber-text); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 22px; border-radius: 8px; font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; text-align: center; }
.btn-primary { background: var(--green); color: #fff !important; box-shadow: 0 1px 2px rgba(11,27,46,.08), 0 2px 4px rgba(11,110,79,.12); }
.btn-primary:hover { background: var(--green-hover); }
.btn-secondary { background: #fff; color: var(--ink) !important; border-color: var(--line-strong); font-weight: 500; }
.btn-secondary:hover { background: var(--bg-subtle); border-color: #94A3B8; }
.btn-light { background: #fff; color: var(--ink) !important; }
.btn-ghost-dark { background: transparent; color: #fff !important; border-color: #334155; font-weight: 500; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand .mark { width: 32px; height: 32px; border-radius: 8px; background: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.brand .word { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 28px; }
.nav a, .nav-link { color: var(--ink-muted); font-size: .92rem; font-weight: 500; padding: 8px 12px; border-radius: 6px; }
.nav a:hover, .nav-link:hover { color: var(--ink); background: #F1F5F9; }
.nav a[aria-current="page"] { color: var(--ink); background: #F1F5F9; }
.header-right { display: flex; align-items: center; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .75rem; color: var(--ink-subtle); background: #F1F5F9; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 8px; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 4px var(--gutter) 12px; background: #fff; }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; color: var(--ink); font-weight: 500; border-bottom: 1px solid #F1F5F9; }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav.open { display: block; }
@media (max-width: 1080px) { .badge.hdr { display: none; } }
@media (max-width: 900px) {
  .nav, .hide-sm { display: none !important; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 380px) {
  .brand .word { font-size: 1.25rem; }
  .site-header .cta { padding: 8px 12px; font-size: .85rem; }
}

/* ---------- layout ---------- */
.section { padding-block: var(--section); border-bottom: 1px solid var(--line); }
.section.alt { background: var(--bg-subtle); }
.section.dark { background: var(--ink); border-bottom: 0; }
.page-hero { padding-block: clamp(40px, 7vw, 72px); border-bottom: 1px solid var(--line); background: radial-gradient(circle at 85% 0%, rgba(11,110,79,.05) 0%, transparent 55%), #fff; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.split.top { align-items: start; }
.grid { display: grid; gap: clamp(14px, 2vw, 20px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-3 { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: clamp(16px, 2.5vw, 32px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.mt-s { margin-top: 16px; } .mt-m { margin-top: clamp(24px, 4vw, 40px); } .mt-l { margin-top: clamp(40px, 6vw, 72px); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } .stats .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; } .stat { padding-left: 12px; } .stat b { font-size: 1.35rem; } .stat span { font-size: .8rem; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 84px); border-bottom: 1px solid var(--line); background: radial-gradient(circle at 85% 20%, rgba(11,110,79,.05) 0%, transparent 60%), #fff; }
.pill { display: inline-flex; align-items: flex-start; gap: 8px; background: #F1F5F9; border: 1px solid var(--line); padding: 6px 12px; border-radius: 6px; margin-bottom: 20px; font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-subtle); font-weight: 500; line-height: 1.5; }
.pill .dot { margin-top: 6px; width: 6px; height: 6px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vw, 36px); }
.hero .fine { margin: 18px 0 0; font-size: .85rem; color: var(--ink-subtle); display: flex; gap: 8px; align-items: flex-start; }
.hero .fine svg { flex: none; margin-top: 3px; }
@media (max-width: 520px) { .hero .actions .btn { width: 100%; } }

/* ---------- agent card ---------- */
.agent { width: 100%; max-width: 560px; justify-self: center; background: #fff; border: 1px solid #D8E0EA; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(11,27,46,.04), 0 20px 40px -10px rgba(11,27,46,.12); overflow: hidden; }
.agent-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--bg-subtle); border-bottom: 1px solid var(--line); }
.agent-top .who { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500; color: var(--ink-muted); white-space: nowrap; }
.lights { display: flex; gap: 6px; } .lights i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .75rem; color: var(--green); background: var(--green-surface); border: 1px solid var(--green-border); padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.agent-body { padding: clamp(16px, 3vw, 22px); }
.ask { display: flex; gap: 10px; background: #F1F5F9; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-size: clamp(.95rem, .9rem + .2vw, 1rem); font-weight: 500; line-height: 1.5; }
.ask b { color: var(--green); }
.calls { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.call { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: baseline; background: #FAFBFD; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-family: var(--mono); font-size: var(--fs-code); }
.call .ok { color: var(--green); font-weight: 700; }
.call .fn { color: var(--ink); overflow-wrap: anywhere; }
.call .res { color: var(--ink-subtle); background: #EEF2F6; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.result { margin-top: 16px; border: 1px solid var(--line-strong); border-radius: 12px; padding: clamp(16px, 3vw, 20px); }
.result-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 20px; }
.result .label { font-size: .75rem; font-weight: 600; color: var(--ink-subtle); text-transform: uppercase; letter-spacing: .05em; }
.result .big { font-family: var(--serif); font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.1rem); font-weight: 600; line-height: 1.05; margin-top: 4px; letter-spacing: -0.02em; }
.facts { margin: 0; display: grid; grid-template-columns: auto auto; gap: 2px 10px; font-size: .86rem; color: var(--ink-muted); border-left: 2px solid var(--line); padding-left: 14px; }
.facts dt { color: var(--ink-subtle); } .facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.range { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.track { position: relative; height: 10px; border-radius: 999px; background: #E2E8F0; }
.track .iqr { position: absolute; left: 33%; width: 32%; top: 0; bottom: 0; background: var(--green); opacity: .35; border-radius: 999px; }
.track .med { position: absolute; left: 52%; top: -6px; width: 4px; height: 22px; border-radius: 2px; background: var(--ink); }
.ticks { display: flex; justify-content: space-between; gap: 6px; margin-top: 10px; font-family: var(--mono); font-size: .72rem; color: var(--ink-subtle); }
.ticks span { white-space: nowrap; }
.ticks .p50 { background: var(--ink); color: #fff; padding: 1px 7px; border-radius: 4px; font-weight: 600; }
.warn { margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 10px; padding: 11px 13px; font-size: .84rem; color: var(--amber-text); line-height: 1.5; }
.warn svg { flex: none; margin-top: 2px; }
.agent-foot { padding: 11px 16px; border-top: 1px solid var(--line); background: var(--bg-subtle); font-family: var(--mono); font-size: .72rem; color: var(--ink-subtle); line-height: 1.6; }
@media (max-width: 560px) {
  .call { grid-template-columns: auto minmax(0, 1fr); }
  .call .res { grid-column: 2; justify-self: start; white-space: normal; }
  .agent-top .who span.t { display: none; }
}
@media (max-width: 380px) {
  .facts { border-left: 0; padding-left: 0; grid-template-columns: auto 1fr; }
  .ticks { font-size: .66rem; }
}

/* ---------- stats ---------- */
.stats { background: var(--bg-subtle); border-bottom: 1px solid var(--line); padding-block: clamp(28px, 5vw, 44px); }
.stat { border-left: 3px solid var(--green); padding-left: 16px; }
.stat b { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); line-height: 1.12; letter-spacing: -0.01em; }
.stat span { display: block; margin-top: 6px; font-size: .88rem; color: var(--ink-subtle); }

/* ---------- code ---------- */
.code { background: var(--code-bg); border: 1px solid var(--code-line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 30px rgba(11,27,46,.16); min-width: 0; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--code-bar); border-bottom: 1px solid var(--code-line); font-family: var(--mono); font-size: .76rem; color: var(--code-muted); min-height: 46px; }
.code-bar { flex-wrap: wrap; }
.code-bar .title { min-width: 0; overflow-wrap: anywhere; }
.code pre { margin: 0; padding: clamp(16px, 3vw, 24px); font-family: var(--mono); font-size: var(--fs-code); line-height: 1.75; color: var(--code-text); white-space: pre; overflow-x: auto; -webkit-overflow-scrolling: touch; tab-size: 2; }
.code-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border-top: 1px solid var(--code-line); background: #080E17; font-size: .82rem; color: var(--code-muted); }
.copy { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; background: #1E293B; color: #F8FAFC; border: 1px solid #334155; border-radius: 6px; padding: 6px 14px; font-family: var(--sans); font-size: .82rem; font-weight: 500; cursor: pointer; flex: none; }
.copy:hover { background: #283548; }
.tag-warn { font-family: var(--mono); font-size: .72rem; color: #FBBF24; background: rgba(245,158,11,.15); padding: 2px 8px; border-radius: 4px; white-space: nowrap; flex: none; }
.k { color: #5EEAD4; } .s { color: #FDE047; } .b { color: #93C5FD; } .c { color: #7D8CA3; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 10px 12px 0; background: var(--code-bar); border-bottom: 1px solid var(--code-line); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; white-space: nowrap; min-height: 40px; font-family: var(--sans); font-size: .86rem; padding: 8px 14px; border: 0; border-radius: 6px 6px 0 0; cursor: pointer; background: transparent; color: var(--code-muted); }
.tab[aria-selected="true"] { background: #1B2638; color: #fff; font-weight: 600; }
.scroll-hint { display: none; }
@media (max-width: 380px) { .code pre { font-size: .72rem; padding: 14px; } }
@media (max-width: 480px) { .tabs { padding: 8px 8px 0; gap: 2px; } .tab { padding: 8px 10px; font-size: .8rem; } }
@media (max-width: 560px) { .scroll-hint { display: inline; } }

/* ---------- comparison / data tables ---------- */
.table-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 4px 16px rgba(11,27,46,.04); }
table.compare, table.data { width: 100%; border-collapse: collapse; }
table.compare th, table.compare td, table.data th, table.data td { padding: 16px 18px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); line-height: 1.55; }
table.compare tr:last-child > *, table.data tbody tr:last-child > * { border-bottom: 0; }
table.compare thead th, table.data thead th { background: var(--bg-subtle); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-subtle); font-weight: 600; }
table.compare thead th.raw { color: var(--red); }
table.compare thead th.fil { color: var(--green); background: #F2F9F5; }
table.compare tbody th { font-weight: 600; color: var(--ink); width: 20%; }
table.compare td.raw { color: var(--ink-subtle); width: 38%; }
table.compare td.fil { color: var(--ink); font-weight: 500; background: #FCFDFD; }
table.data td { color: var(--ink-muted); font-size: .95rem; }
table.data td.key { font-family: var(--mono); color: var(--ink); font-weight: 500; font-size: .88rem; }
.chip { display: inline-block; font-family: var(--mono); font-size: .74rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.chip.g { color: var(--green); background: var(--green-surface); } .chip.b { color: #1D4ED8; background: #EFF6FF; } .chip.n { color: #475569; background: #F1F5F9; }
@media (max-width: 720px) {
  table.compare thead, table.data.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.compare, table.compare tbody, table.compare tr, table.compare th, table.compare td,
  table.data.stack, table.data.stack tbody, table.data.stack tr, table.data.stack td { display: block; width: 100% !important; }
  table.compare tr, table.data.stack tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  table.compare tr:last-child, table.data.stack tr:last-child { border-bottom: 0; }
  table.compare th, table.compare td, table.data.stack td { padding: 0; border: 0; background: none !important; }
  table.compare tbody th { font-size: 1.05rem; margin-bottom: 10px; }
  table.compare td::before, table.data.stack td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 2px; color: var(--ink-subtle); }
  table.compare td.raw::before { color: var(--red); }
  table.compare td.fil::before { color: var(--green); }
  table.compare td + td, table.data.stack td + td { margin-top: 10px; }
  table.data.stack td.key::before { display: none; }
  table.data.stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
  table.data.stack td { grid-column: 1 / -1; }
  table.data.stack td.key { grid-column: 1; grid-row: 1; }
  table.data.stack td.side { grid-column: 2; grid-row: 1; margin-top: 0 !important; width: auto !important; }
  table.data.stack td.side::before { display: none; }
  table.data.stack td.key + td:not(.side), table.data.stack td.side + td { margin-top: 8px; }
  table.data.stack td.key { font-size: .95rem; }
}

/* ---------- rules, tools, prompts ---------- */
.rule { display: flex; flex-direction: column; gap: 12px; }
.rule .num { align-self: flex-start; font-family: var(--mono); font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; color: var(--green); background: var(--green-surface); }
.rule .num.a { color: #B45309; background: var(--amber-bg); }
.rule p { margin: 0; color: var(--ink-muted); }
.rule .out { margin-top: auto; font-family: var(--mono); font-size: .8rem; background: #F1F5F9; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-wrap: anywhere; }
.rule .out.a { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber-text); }
.tool { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s; }
.tool:hover { border-color: var(--green); }
.tool .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tool .name { font-family: var(--mono); font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.tool p { margin: 0; font-size: .92rem; color: var(--ink-muted); }
.persona { background: var(--bg-subtle); border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 3vw, 24px); display: flex; flex-direction: column; gap: 12px; }
.persona .who { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--green); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.persona p { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: .93rem; }

/* ---------- coverage ---------- */
.years { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.yr { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.yr i { display: block; height: 12px; border-radius: 999px; background: var(--green); }
.yr i.cur { opacity: .8; } .yr i.next { background: transparent; border: 2px dashed #94A3B8; }
.yr b { font-family: var(--mono); font-size: .8rem; font-weight: 600; }
.yr span { font-size: .74rem; color: var(--ink-subtle); line-height: 1.35; }
.meta { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: .9rem; color: var(--ink-muted); }
.meta .mono { color: var(--ink); font-weight: 600; margin-right: 6px; }
@media (max-width: 760px) { .years { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; } }

/* ---------- pricing ---------- */
.plan { border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column; gap: 14px; background: #fff; }
.plan.featured { border: 2px solid var(--green); box-shadow: 0 10px 30px rgba(11,110,79,.12); }
.plan .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan .rec { font-size: .78rem; font-weight: 600; color: var(--green); background: var(--green-surface); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--green-border); }
.plan .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.plan .price b { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 2rem + 1.5vw, 3rem); line-height: 1; }
.plan .price span { color: var(--ink-subtle); }
.plan p { margin: 0; color: var(--ink-muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--ink-muted); font-size: .94rem; }
.plan li { display: flex; gap: 10px; align-items: flex-start; } .plan li svg { flex: none; margin-top: 5px; }
.plan .btn { margin-top: auto; }
.creditline { margin-top: 28px; padding: 18px 20px; background: var(--bg-subtle); border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px 24px; align-items: center; font-size: .9rem; color: var(--ink-muted); }
.creditline > b, .creditline > a { grid-column: 1 / -1; }
.creditline > span { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.creditline b { color: var(--ink); }
.creditline .mono { color: var(--ink); font-weight: 500; }
.factbox { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.factbox b { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 600; line-height: 1.1; }
.factbox span { font-size: .9rem; color: var(--ink-subtle); }

/* ---------- misc components ---------- */
.scope { background: #fff; padding: clamp(20px, 3vw, 24px); border-radius: 12px; border: 1px solid var(--line); }
.scope p { margin: 8px 0 0; color: var(--ink-muted); font-size: .95rem; }
.cta { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; justify-content: space-between; }
.cta h2 { color: #fff; max-width: 36rem; }
.cta p { margin: 14px 0 0; color: #A9B6C6; font-size: var(--fs-lead); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .cta .actions { width: 100%; } .cta .actions .btn { flex: 1 1 100%; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.3rem; font-weight: 500; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-muted); max-width: 46rem; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .92rem; font-weight: 600; }
.input { font: inherit; font-size: 16px; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: #fff; width: 100%; }
.input:focus { outline: 3px solid rgba(11,110,79,.25); border-color: var(--green); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--green); }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 640px; }
.inline-form .input { flex: 1 1 280px; width: auto; }
@media (max-width: 520px) { .inline-form .btn { width: 100%; } }
.demo { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .72rem; color: var(--amber-text); background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.checks { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--ink-muted); }
.checks li { display: flex; gap: 10px; } .checks li svg { flex: none; margin-top: 5px; }

/* ---------- docs / legal ---------- */
.doc { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); }
.toc { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.toc a { color: var(--ink-muted); padding: 7px 10px; border-radius: 6px; }
.toc a:hover { background: #F1F5F9; color: var(--ink); }
.prose { min-width: 0; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.75rem); margin: 44px 0 10px; scroll-margin-top: 84px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 10px; }
.prose p, .prose li { color: var(--ink-muted); line-height: 1.7; }
@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
  .toc::-webkit-scrollbar { display: none; }
  .toc a { flex: none; white-space: nowrap; background: #F1F5F9; border-radius: 999px; padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; }
}

/* ---------- footer ---------- */
.site-footer { background: #070F1A; padding-block: clamp(40px, 6vw, 56px); color: #94A3B8; font-size: .9rem; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; }
.site-footer .about { display: flex; flex-direction: column; gap: 10px; max-width: 34rem; }
.site-footer .word { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: #fff; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(110px, auto)); gap: 4px 40px; align-content: start; }
.site-footer nav a { color: #E2E8F0; min-height: 40px; display: inline-flex; align-items: center; }
.site-footer .legal { font-family: var(--mono); font-size: .8rem; }

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

/* ---------- additions: proof, kept apart, steps ---------- */
.h-card { font-family: var(--sans); font-size: 1.2rem; letter-spacing: 0; margin: 0 0 8px; }
.proof .factbox b { color: var(--green); }
.apart { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 24px); }
.apart .label { margin: 0 0 12px; font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-subtle); font-weight: 600; }
.apart ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.apart li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--bg-subtle); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.apart li span { font-family: var(--mono); font-size: .84rem; color: var(--ink); font-weight: 500; }
.apart li i { font-style: normal; color: var(--red); font-weight: 700; }
.steps { list-style: none; margin: clamp(24px, 4vw, 32px) 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.steps .n { font-family: var(--mono); font-weight: 700; color: var(--green); background: var(--green-surface); border-radius: 8px; padding: 4px 8px; font-size: .82rem; flex: none; }
.steps li > div { min-width: 0; flex: 1; }
.steps .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; }
.steps p { margin: 6px 0 0; color: var(--ink-muted); font-size: .94rem; }

@media (max-width: 420px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .proof .factbox { padding: 14px; } .proof .factbox b { font-size: 1.4rem; } .proof .factbox span { font-size: .82rem; display: block; margin-top: 4px; } }

/* First-party pages under the strict CSP (/signin, /authorize): no inline style attributes. */
.bar-left { display: flex; align-items: center; min-width: 0; }
.signin-card { max-width: 560px; }
.signin-card form { display: flex; flex-direction: column; gap: 12px; }
.signin-card .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-error { color: var(--red); font-size: .9rem; margin: 12px 0 0; }
.card .note.first { margin: 0 0 14px; }

/* The account page (src/accounts/site.py) */
.acct-head { padding-block: clamp(28px, 5vw, 44px) clamp(20px, 3vw, 28px); border-bottom: 1px solid var(--line); background: radial-gradient(circle at 85% 0%, rgba(11,110,79,.05) 0%, transparent 55%), #fff; }
.acct-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.acct-head h1 { margin: 0 0 10px; }
.acct-who { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--ink-muted); }
.acct-mail { overflow-wrap: anywhere; }
.section.acct { padding-block: clamp(24px, 4vw, 40px); }
.acct-stack { display: grid; gap: clamp(14px, 2vw, 20px); }
.acct-two { display: grid; gap: clamp(14px, 2vw, 20px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.acct-connect { border-color: var(--green-border); }
.acct-url { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--bg-subtle); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 18px; }
.acct-url code { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; font-size: .95rem; color: var(--ink); }
.acct-steps { display: grid; gap: 16px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-bottom: 18px; }
.acct-steps h3 { margin: 0 0 6px; font-size: 1rem; }
.acct-steps ol { margin: 0; padding-left: 20px; font-size: .92rem; color: var(--ink-muted); line-height: 1.55; }
.acct-codes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.acct-codes .code { box-shadow: none; }
.acct-codes .code pre { font-size: .8rem; line-height: 1.6; padding: 14px 16px; }
.acct-left { margin: 0 0 10px; font-size: 1.05rem; }
.acct-left strong { font-size: 1.6rem; }
.acct-meter { display: block; width: 100%; height: 10px; margin: 0 0 12px; border: 0; border-radius: 999px; overflow: hidden; background: var(--line); appearance: none; -webkit-appearance: none; }
.acct-meter::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
.acct-meter::-webkit-progress-value { background: var(--green); border-radius: 999px; }
.acct-meter::-moz-progress-bar { background: var(--green); border-radius: 999px; }
.acct-table { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: .9rem; }
.acct-table th, .acct-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); }
.acct-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-subtle); font-weight: 600; }
.acct-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.acct-table td.mono { overflow-wrap: anywhere; }
.acct-keys { list-style: none; margin: 0 0 16px; padding: 0; }
.acct-keys li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acct-key { font-size: .88rem; white-space: nowrap; color: var(--ink); }
.acct-keyname { min-width: 0; overflow-wrap: anywhere; color: var(--ink-muted); font-size: .92rem; }
.acct-keydate { white-space: nowrap; font-size: .85rem; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.acct-keys form { margin: 0; }
.acct-keys .btn { white-space: nowrap; }
.acct-newform { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-newform .input { flex: 1 1 200px; min-width: 0; }
.acct-newkey { background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 10px; padding: 14px; margin: 0 0 16px; color: var(--amber-text); font-size: .9rem; line-height: 1.5; }
.acct-newkey p { margin: 0 0 10px; }
.acct-newkey p:last-child { margin: 0; }
.acct-newkey .acct-url { background: #fff; border-color: var(--amber-line); margin: 0 0 10px; }
.acct-close { background: var(--bg-subtle); padding-block: clamp(24px, 4vw, 36px); }
.acct-close form { display: grid; gap: 12px; justify-items: start; margin-top: 12px; }
@media (max-width: 520px) {
  .acct-keys li { grid-template-columns: 1fr auto; }
  .acct-keyname { grid-column: 1; grid-row: 2; }
  .acct-keydate { grid-column: 1; grid-row: 3; }
  .acct-keys form { grid-column: 2; grid-row: 1 / span 3; }
}
