/* WebRTC Client — site styles (no framework) */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-elev: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #16a34a;
  --brand-2: #0d9488;
  --brand-3: #2563eb;
  --brand-ink: #15803d;
  --accent-bg: #ecfdf5;
  --navy: #0b1220;
  --navy-2: #111a2e;
  --grad: linear-gradient(120deg, #22c55e 0%, #14b8a6 50%, #3b82f6 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 30px 60px -20px rgba(2, 6, 23, .35);
  --code-bg: #0f172a;
  --code-ink: #e2e8f0;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-soft: #0f172a;
    --bg-elev: #131c31;
    --ink: #e5e9f0;
    --ink-2: #c3cad6;
    --muted: #8b97ab;
    --line: #1f2a40;
    --brand: #22c55e;
    --brand-ink: #4ade80;
    --accent-bg: rgba(34, 197, 94, .1);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --code-bg: #060b16;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 var(--font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-2); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--bg); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }

.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 16px; height: 16px; flex: none; vertical-align: -3px; }

/* Announcement bar */
.announce { background: var(--navy); color: #cbd5e1; font-size: 14px; }
.announce .wrap { display: flex; gap: 10px; align-items: center; justify-content: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; text-align: center; }
.announce strong { color: #fff; }
.announce a { color: #5eead4; text-decoration: none; font-weight: 600; white-space: nowrap; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } html { scroll-behavior: auto; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 19px; letter-spacing: -.01em; font-weight: 500; }
.brand b { font-weight: 800; }
.brand-mark { width: 34px; height: 34px; }
.main-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; display: block; }
.main-nav a:hover, .main-nav .is-active > a { color: var(--ink); background: var(--bg-soft); }
.main-nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { display: block; }
.nav-toggle, .burger { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--bg-elev); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--ink); }
.btn-primary, .main-nav .btn-primary { background: var(--brand); border-color: transparent; color: #fff; }
.btn-primary:hover, .main-nav .btn-primary:hover { background: #15803d; color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* Hero */
.hero { position: relative; background: radial-gradient(1200px 600px at 85% -10%, rgba(20, 184, 166, .35), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(59, 130, 246, .28), transparent 60%), var(--navy); color: #e2e8f0; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 20px; color: #fff; font-weight: 800; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 19px; color: #b6c2d4; max-width: 560px; }
.hero .eyebrow-pill, .hero p:first-child:has(> strong:only-child) { display: inline-block; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn:not(.btn-primary) { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.hero-visual { position: relative; }
.hero-visual img { display: block; width: 100%; border-radius: 14px; filter: drop-shadow(0 40px 60px rgba(0,0,0,.45)); }
.hero-visual::before { content: ""; position: absolute; inset: 10% 5%; background: var(--grad); filter: blur(70px); opacity: .35; z-index: -1; }
.hero ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 8px 20px; flex-wrap: wrap; color: #94a3b8; font-size: 15px; }
.hero ul li::before { content: "✓"; color: #4ade80; margin-right: 6px; font-weight: 700; }

/* Bands / sections */
.band { padding: 88px 0; }
.band.tone-soft { background: var(--bg-soft); }
.band.tone-dark { background: var(--navy); color: #cbd5e1; }
.band.tone-dark h2, .band.tone-dark h3 { color: #fff; }
.band.tone-dark .card { background: var(--navy-2); border-color: #1e293b; }
.band.tone-dark .card p { color: #94a3b8; }
.band.tone-grad { background: linear-gradient(135deg, #052e1c, #0b1220 45%, #0b1f3d); color: #cbd5e1; }
.band.tone-grad h2, .band.tone-grad h3 { color: #fff; }
.band.tone-grad a:not(.btn) { color: #5eead4; }
.band > .wrap > h2:first-child, .block > h2:first-child { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.025em; line-height: 1.12; margin: 0 0 14px; max-width: 760px; }
.band > .wrap > h2 + p, .block > h2 + p { font-size: 19px; color: var(--muted); max-width: 720px; margin-top: 0; }
.tone-dark .block > h2 + p, .tone-grad .block > h2 + p, .tone-dark > .wrap > h2 + p, .tone-grad > .wrap > h2 + p { color: #94a3b8; }
.band h2 .anchor, .hero .anchor { display: none; }
.block { margin: 8px 0 0; }
.home .band .eyebrow, .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--brand-2); margin: 0 0 10px; }

/* Cards */
.cards { display: grid; gap: 20px; margin-top: 36px; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease; }
.card.is-link:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; line-height: 1.3; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 16px; }
.card ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.card-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-bg); color: var(--brand-ink); margin-bottom: 16px; }
.card-more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--brand-ink); display: inline-flex; gap: 6px; align-items: center; }
.badge { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #fef3c7; color: #92400e; margin-left: 8px; vertical-align: 3px; white-space: nowrap; }
.badge-planned, .badge-coming-soon, .badge-in-development { background: #ede9fe; color: #5b21b6; }
.badge-in_progress, .badge-in-progress { background: #dbeafe; color: #1e40af; }
.badge-done, .badge-available { background: #dcfce7; color: #166534; }
.eyebrow .badge { margin-left: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; margin: 24px 0; }
.split.reverse .split-copy { order: 2; }
.split-visual figure { margin: 0; }
.split-visual img { border-radius: 14px; box-shadow: var(--shadow-lg); background: #fff; }
.split-copy h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.02em; line-height: 1.15; margin-top: 0; }
.split-copy ul { padding-left: 0; list-style: none; }
.split-copy li { padding-left: 30px; position: relative; margin: 8px 0; }
.split-copy li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Logos */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-top: 32px; }
.logo-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px 18px 16px; border-radius: var(--radius); background: #fff; border: 1px solid #e2e8f0; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; min-height: 150px; }
.logo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.logo-tile img { max-height: 70px; width: auto; max-width: 100%; object-fit: contain; }
.logo-tile img[src*="mirtapbx"] { filter: brightness(.55) contrast(1.4); }
.logo-tile span { font-size: 13px; font-weight: 600; color: #475569; }
.logo-text { font-weight: 800; font-size: 22px; color: #0f172a; letter-spacing: -.02em; }

/* CTA */
.cta { text-align: center; padding: 56px 24px; border-radius: 24px; background: var(--grad); color: #fff; box-shadow: var(--shadow-lg); }
.cta h2 { color: #fff; margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.02em; }
.cta h2 .anchor { display: none; }
.cta p { color: rgba(255,255,255,.9); font-size: 18px; max-width: 640px; margin: 0 auto 10px; }
.cta .btn-primary { background: #fff; color: #0f172a; margin: 14px 6px 0; }
.cta a:not(.btn) { color: #fff; }

/* Page header */
.page-head { background: radial-gradient(800px 300px at 90% 0, rgba(20,184,166,.18), transparent 70%), var(--bg-soft); border-bottom: 1px solid var(--line); padding: 36px 0 38px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.03em; line-height: 1.08; margin: 6px 0 12px; max-width: 900px; }
.lede { font-size: 20px; color: var(--muted); max-width: 760px; margin: 0; }
.eyebrow { margin: 14px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--brand-2); display: flex; gap: 10px; align-items: center; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.post-meta { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.page-tools { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.tool { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--font); color: var(--ink-2); background: var(--bg-elev); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; text-decoration: none; cursor: pointer; }
.tool:hover { color: var(--ink); border-color: var(--muted); }

/* Prose */
.prose { padding: 48px 0 80px; min-width: 0; }
.wide { padding: 0 0 40px; }
.wide > .band:first-child { padding-top: 56px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 28px; letter-spacing: -.02em; line-height: 1.2; margin: 48px 0 14px; scroll-margin-top: 90px; }
.prose h3 { font-size: 21px; letter-spacing: -.01em; margin: 32px 0 10px; scroll-margin-top: 90px; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin: 6px 0; }
.prose li > ul, .prose li > ol { margin: 6px 0; }
.prose strong { color: var(--ink); }
.anchor { margin-left: 8px; color: var(--line); text-decoration: none; font-weight: 400; opacity: 0; transition: opacity .15s; }
h2:hover .anchor, h3:hover .anchor { opacity: 1; color: var(--muted); }
.prose figure { margin: 28px 0; }
.prose figure img { border-radius: 12px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
.prose figure.cover { margin: 0 0 36px; }
.prose figure.cover img { width: 100%; max-height: 420px; object-fit: cover; }
.prose blockquote { margin: 24px 0; padding: 4px 22px; border-left: 4px solid var(--brand); background: var(--bg-soft); border-radius: 0 12px 12px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose :not(pre) > code { font: 0.88em var(--mono); background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--ink); word-break: break-word; }
.code { position: relative; margin: 20px 0; }
.code pre { margin: 0; background: var(--code-bg); color: var(--code-ink); padding: 20px 20px; border-radius: 12px; overflow-x: auto; font: 14px/1.6 var(--mono); }
.code-lang { position: absolute; top: 8px; left: 14px; font: 600 11px var(--mono); color: #64748b; text-transform: uppercase; letter-spacing: .08em; }
.code-lang + .copy-code + pre { padding-top: 32px; }
.copy-code { position: absolute; top: 8px; right: 8px; font: 600 12px var(--font); color: #cbd5e1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 4px 9px; cursor: pointer; }
.copy-code:hover { background: rgba(255,255,255,.16); }
.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: 0; }
.prose .cards { margin: 24px 0; }

.prose .card h3 { margin: 0 0 8px; font-size: 18px; }

/* Callouts */
.callout { display: flex; gap: 14px; margin: 26px 0; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-soft); }
.callout .icon { color: var(--brand-ink); margin-top: 2px; }
.callout > div > :last-child { margin-bottom: 0; }
.callout p { margin: 0 0 8px; }
.callout-title { font-weight: 700; color: var(--ink) !important; }
.callout-warning { background: #fffbeb; border-color: #fde68a; }
.callout-warning .icon { color: #b45309; }
.callout-soon { background: linear-gradient(135deg, rgba(34,197,94,.08), rgba(59,130,246,.08)); border-color: color-mix(in srgb, var(--brand-2) 35%, var(--line)); }
@media (prefers-color-scheme: dark) {
  .callout-warning { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .3); }
  .callout-warning .callout-title { color: #fde68a !important; }
}

/* Steps */
.steps ol { counter-reset: step; list-style: none; padding: 0; }
.steps ol > li { counter-increment: step; position: relative; padding: 2px 0 18px 56px; margin: 0; }
.steps ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps ol > li::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 2px; width: 2px; background: var(--line); }
.steps ol > li:last-child::after { display: none; }

/* Timeline (roadmap / changelog) */
.timeline { list-style: none; padding: 0; margin: 32px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 30px 44px; display: block; }
.tl-dot { position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 3px solid var(--muted); }
.tl-planned .tl-dot { border-color: #7c3aed; }
.tl-in_progress .tl-dot, .tl-in-progress .tl-dot { border-color: #2563eb; background: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,.18); }
.tl-done .tl-dot { border-color: var(--brand); background: var(--brand); }
.tl-item h3 { margin: 0 0 6px; font-size: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.tl-item p, .tl-item li { color: var(--ink-2); }
.tl-item ul { margin: 6px 0 0; padding-left: 20px; }

/* Children list */
.children { display: grid; gap: 12px; margin: 24px 0; }
.child { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: var(--bg-elev); transition: border-color .15s, transform .15s; }
.child:hover { border-color: var(--brand); transform: translateX(2px); }
.child strong { color: var(--ink); font-size: 17px; }
.child span { color: var(--muted); font-size: 15px; grid-column: 1; }
.child svg { grid-column: 2; grid-row: 1 / span 2; color: var(--brand-ink); }

/* Docs layout */
.doc-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; max-width: 1180px; }
.doc-grid .prose { max-width: 800px; }
.sidebar { position: sticky; top: 90px; align-self: start; padding: 48px 0; font-size: 15px; max-height: calc(100vh - 90px); overflow: auto; }
.sidebar ul { list-style: none; padding: 0; margin: 0 0 18px; }
.sidebar a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.sidebar a:hover { background: var(--bg-soft); color: var(--ink); }
.sidebar a[aria-current] { background: var(--accent-bg); color: var(--brand-ink); font-weight: 600; }
.side-title a { font-weight: 700; color: var(--ink); padding-left: 12px; }
.side-h { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; color: var(--muted); margin: 18px 12px 6px; }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.prose .post-grid { grid-template-columns: repeat(2, 1fr); }
.post-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-elev); box-shadow: var(--shadow); transition: transform .2s ease; }
.post-card a:hover { transform: translateY(-3px); }
.post-thumb { aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; display: grid; place-items: center; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; margin: 0; }
.post-ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--grad); color: #fff; }
.post-ph .icon { width: 56px; height: 56px; opacity: .9; }
.post-body { padding: 18px 20px 22px; }
.post-body time { font-size: 13px; color: var(--muted); }
.post-body h3 { font-size: 18px; line-height: 1.3; margin: 6px 0 8px; color: var(--ink); }
.post-body p { font-size: 15px; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: var(--navy); color: #94a3b8; padding: 64px 0 28px; font-size: 15px; }
.site-footer .brand { color: #fff; }
.f-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.f-brand p { margin: 14px 0 0; }
.f-addr { font-size: 14px; line-height: 1.6; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.f-h { color: #fff; font-weight: 700; margin: 6px 0 12px; font-size: 14px; letter-spacing: .04em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #1e293b; margin-top: 48px; padding-top: 22px; font-size: 13px; }
.f-bottom code { color: #5eead4; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.stats .card { text-align: left; }

/* Responsive */
@media (max-width: 1020px) {
  .cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .f-top { grid-template-columns: repeat(3, 1fr); }
  .f-brand { grid-column: 1 / -1; }
  .doc-grid { grid-template-columns: 1fr; gap: 0; }
  .sidebar { position: static; max-height: none; padding: 24px 0 0; border-bottom: 1px solid var(--line); }
  .sidebar ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .sidebar a { background: var(--bg-soft); }
}
@media (max-width: 900px) {
  .nav-row { gap: 12px; }
  .burger { display: flex; flex-direction: column; gap: 5px; margin-left: auto; cursor: pointer; padding: 10px; }
  .burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; box-shadow: var(--shadow); }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .main-nav > ul { flex-direction: column; }
  .main-nav .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; background: transparent; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; gap: 36px; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-copy { order: 0; }
  .cards.cols-3, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .band { padding: 64px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .wide { padding: 0 0 24px; }
  .cards.cols-2, .cards.cols-3, .cards.cols-4, .post-grid, .prose .post-grid, .prose .cards.cols-3 { grid-template-columns: 1fr; }
  .f-top { grid-template-columns: repeat(2, 1fr); }
  .announce { font-size: 13px; }
  .lede { font-size: 18px; }
  .cta { padding: 40px 18px; }
}

/* Kickers and section headings */
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--brand-2); margin: 0 0 10px; }
.tone-grad .kicker, .tone-dark .kicker { color: #5eead4; }
.hero .kicker { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: #a7f3d0; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.band h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.025em; line-height: 1.12; margin: 0 0 14px; max-width: 760px; }
.band h2 + p { font-size: 19px; color: var(--muted); max-width: 720px; margin-top: 0; }
.band .split-copy h2 { font-size: clamp(26px, 3vw, 38px); }
.band .split-copy h2 + p { font-size: 18px; }
.tone-grad h2 + p, .tone-dark h2 + p { color: #94a3b8; }
.tone-grad .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none; }
.tone-grad .card p { color: #a3b1c6; }
.tone-grad .card h3 { color: #fff; }
.tone-grad .card-icon { background: rgba(94,234,212,.12); color: #5eead4; }
.tone-grad .card-more { color: #5eead4; }
.band .split + .split { margin-top: 96px; }
.band > .wrap > p:last-child { margin-top: 28px; font-weight: 600; }
.band > .wrap > p:last-child a { text-decoration: none; }
.wide .band { padding: 40px 0; }
.badge-new { background: #dcfce7; color: #166534; }
