/* HA Pulse · hapulse.dev
   Fonts are self-hosted (no requests to third parties). Inter and JetBrains Mono, SIL Open Font License, see assets/fonts. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-semibold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/inter-bold.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/jetbrainsmono-regular.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/jetbrainsmono-medium.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-1: #0f0f11;
  --bg-2: #141417;
  --bg-3: #1a1a1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --fg: rgba(255, 255, 255, 0.96);
  --fg-2: rgba(255, 255, 255, 0.74);
  --fg-3: rgba(255, 255, 255, 0.58);
  --fg-4: rgba(255, 255, 255, 0.36);
  --accent: #10b981;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --accent-line: rgba(16, 185, 129, 0.32);
  --accent-fg: #34d399;
  --warn: #f59e0b;
  --crit: #f87171;
  --radius: 10px;
  --radius-lg: 14px;
  --maxw: 1200px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--fg); color: #0a0a0b; padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

body::before {
  content: ""; position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none; z-index: 0;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(10,10,11,0.78); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.logo img { width: 26px; height: 26px; border-radius: 7px; box-shadow: 0 0 24px -6px var(--accent); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 6px 12px; border-radius: 6px; font-size: 13.5px; color: var(--fg-2); transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); background: var(--bg-2); }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px; font-size: 13.5px; font-weight: 500; border: 1px solid transparent; transition: all .15s ease; white-space: nowrap; }
.btn svg { flex: none; }
.btn-secondary { background: var(--bg-2); color: var(--fg); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--bg-3); border-color: rgba(255,255,255,0.22); }
.btn-ghost { background: transparent; color: var(--fg-2); }
.btn-ghost:hover { color: var(--fg); }
.btn-accent { background: var(--accent); color: #00120a; font-weight: 600; }
.btn-accent:hover { background: #22c993; }
.btn-lg { height: 42px; padding: 0 18px; font-size: 14px; }

/* Type */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 18px; line-height: 1.3; }
.mono { font-family: var(--font-mono); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-2); font-size: 12px; font-family: var(--font-mono); color: var(--fg-2); letter-spacing: 0.02em; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.85); } }

.section { padding: 96px 0; position: relative; z-index: 1; }
.section-tight { padding: 64px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 40px; }
.section-head p { color: var(--fg-2); font-size: 16px; max-width: 500px; margin: 0; line-height: 1.6; }

/* Hero */
.hero { padding: 88px 0 56px; position: relative; z-index: 1; overflow-x: hidden; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 72px; align-items: center; }
.hero p.lead { margin: 24px 0 32px; font-size: 18px; line-height: 1.55; color: var(--fg-2); max-width: 540px; text-wrap: pretty; }
.hero p.lead strong { color: var(--fg); font-weight: 500; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 32px; display: flex; gap: 24px; font-size: 13px; color: var(--fg-3); font-family: var(--font-mono); flex-wrap: wrap; list-style: none; padding: 0; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 13px; height: 13px; color: var(--accent-fg); }

.hero-visual { position: relative; width: 100%; max-width: 520px; margin-left: auto; }
.hero-visual::before { content: ""; position: absolute; inset: -10% -15%; background: radial-gradient(ellipse 60% 50% at 70% 40%, var(--accent-soft), transparent 70%), radial-gradient(ellipse 40% 40% at 20% 80%, rgba(65,189,245,0.06), transparent 70%); filter: blur(20px); pointer-events: none; }
.ha-card { position: relative; z-index: 1; background: var(--bg-1); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); overflow: hidden; }
.ha-card-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.ha-card-head img { width: 22px; height: 22px; border-radius: 6px; }
.ha-card-head .title { font-weight: 600; }
.ha-card-head .caption { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.ha-card-gauge { padding: 24px 24px 8px; display: grid; place-items: center; }
.gauge-wrap { position: relative; width: 240px; height: 132px; }
.gauge-svg { width: 100%; height: 100%; overflow: visible; }
.gauge-track { fill: none; stroke: var(--bg-3); stroke-width: 14; stroke-linecap: round; }
.gauge-fill { fill: none; stroke: var(--accent); stroke-width: 14; stroke-linecap: round; filter: drop-shadow(0 0 8px var(--accent)); stroke-dasharray: 299; stroke-dashoffset: 9; animation: gauge-grow 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes gauge-grow { from { stroke-dashoffset: 299; } }
@media (prefers-reduced-motion: reduce) { .gauge-fill, .eyebrow .dot { animation: none; } html { scroll-behavior: auto; } }
.gauge-tick { fill: var(--fg-4); font-family: var(--font-mono); font-size: 10px; }
.gauge-readout { position: absolute; inset: 0; display: grid; place-items: end center; padding-bottom: 4px; text-align: center; }
.gauge-readout .num { font-family: var(--font-mono); font-size: 56px; font-weight: 500; letter-spacing: -0.05em; line-height: .9; }
.gauge-readout .of { color: var(--fg-3); font-size: 18px; margin-left: 2px; }
.gauge-readout .label { margin-top: 6px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-fg); }
.ha-card-split { margin: 12px 24px 18px; padding: 12px 16px; border-radius: 10px; background: var(--bg-2); display: flex; justify-content: space-around; align-items: center; gap: 8px; }
.split-cell { text-align: center; }
.split-cell .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); font-family: var(--font-mono); }
.split-cell .v { margin-top: 4px; font-family: var(--font-mono); font-size: 18px; font-weight: 500; }
.split-cell .v .of { color: var(--fg-3); font-size: 12px; }
.split-bar { flex: 0 0 1px; align-self: stretch; background: var(--line); margin: 4px 0; }
.ha-card-advisor { padding: 6px 8px 16px; display: grid; gap: 4px; list-style: none; margin: 0; }
.advisor-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 16px; border-radius: 8px; }
.advisor-icon { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; border: 1px solid; }
.advisor-icon svg { width: 14px; height: 14px; }
.advisor-icon.warn { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.25); color: var(--warn); }
.advisor-icon.tip { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-fg); }
.advisor-text { font-size: 13px; line-height: 1.4; }
.advisor-text small { display: block; color: var(--fg-3); font-size: 11.5px; margin-top: 1px; }
.advisor-impact { font-family: var(--font-mono); font-size: 11px; color: var(--fg-2); background: var(--bg-2); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.advisor-impact.bonus { color: var(--accent-fg); background: var(--accent-soft); border-color: var(--accent-line); }
.ha-card-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.src-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); margin-right: 6px; vertical-align: middle; }
.float-badge { position: absolute; z-index: 2; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; font-family: var(--font-mono); font-size: 11.5px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); }
.float-badge svg { width: 12px; height: 12px; color: var(--accent-fg); }
.float-badge.tl { top: -34px; right: 14px; }
.float-badge.br { bottom: -16px; left: 14px; }

/* Press */
.press-strip { padding: 32px 0 0; position: relative; z-index: 1; }
.press-inner { padding: 24px 32px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 36px; }
.press-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); border-right: 1px solid var(--line); padding-right: 36px; white-space: nowrap; }
.press-logos { display: flex; gap: 14px 32px; align-items: center; flex-wrap: wrap; }
.press-logo { font-weight: 600; font-size: 15px; color: var(--fg-3); transition: color .15s; white-space: nowrap; }
.press-logo:hover { color: var(--fg); }
.press-logo .pl-dim { color: var(--fg-4); font-weight: 400; }
.pl-howto { font-family: Georgia, serif; font-weight: 700; }
.pl-xda { letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.pl-podcast { font-family: var(--font-mono); font-size: 13.5px; }

/* Cards / grids */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.pillar-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); border: 1px solid var(--accent-line); display: grid; place-items: center; color: var(--accent-fg); margin-bottom: 18px; }
.pillar h3 { margin-bottom: 8px; font-size: 17px; }
.pillar p { margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.6; }

.formula { margin-top: 16px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.formula-eq { font-family: var(--font-mono); font-size: clamp(14px, 1.6vw, 17px); color: var(--fg); line-height: 1.7; }
.formula-eq .w { color: var(--accent-fg); }
.formula p { margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.6; }
.formula-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.formula-split h4 { font-size: 13px; font-family: var(--font-mono); font-weight: 500; color: var(--accent-fg); margin-bottom: 6px; letter-spacing: 0; }
.formula-split ul { margin: 0; padding-left: 18px; color: var(--fg-2); font-size: 13.5px; line-height: 1.7; }

.catches-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.catch { background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; min-height: 190px; }
.catch-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.catch-tag { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); }
.catch-impact { font-family: var(--font-mono); font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--fg-2); white-space: nowrap; }
.catch-impact.warn { color: var(--warn); background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.25); }
.catch-impact.crit { color: var(--crit); background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.25); }
.catch-impact.bonus { color: var(--accent-fg); background: var(--accent-soft); border-color: var(--accent-line); }
.catch-msg { font-size: 14px; line-height: 1.5; text-wrap: pretty; margin: 0; }
.catch-msg code { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-2); }
.catch-fix { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-3); padding-top: 10px; border-top: 1px dashed var(--line); }
.catch-fix .arrow { color: var(--accent-fg); }
.note { margin-top: 16px; font-size: 13px; color: var(--fg-3); }
.note a { color: var(--accent-fg); }

/* Install */
.install-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.install-wrap > *, .hero-grid > *, .formula > * { min-width: 0; }
.step-list { display: grid; gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 28px 0 0; }
.step { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 11px; color: var(--accent-fg); background: var(--accent-soft); border: 1px solid var(--accent-line); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.step strong { display: block; font-size: 14px; font-weight: 500; }
.step span { font-size: 13.5px; color: var(--fg-2); line-height: 1.55; }
.panel { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.panel-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.panel-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-3); }
.panel-bar span { margin-left: 8px; }
pre.code, code.inline { font-family: var(--font-mono); }
pre.code { margin: 0; padding: 18px 20px; overflow-x: auto; line-height: 1.65; font-size: 12.5px; color: var(--fg); background: var(--bg-1); }
.panel pre.code { border: 0; border-radius: 0; }
pre.code.boxed { border: 1px solid var(--line); border-radius: var(--radius); margin: 18px 0; }
code.inline { background: var(--bg-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
.tok-key { color: #93c5fd; }
.tok-str { color: var(--accent-fg); }
.tok-com { color: var(--fg-3); font-style: italic; }
.tok-num { color: #fbbf24; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1); overflow: hidden; list-style: none; margin: 0; padding: 0; }
.trust li { padding: 24px 22px; border-right: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; }
.trust li:last-child { border-right: none; }
.trust-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent-fg); }
.trust-icon svg { width: 18px; height: 18px; }
.trust-val { font-family: var(--font-mono); font-size: 15px; font-weight: 500; line-height: 1.15; }
.trust-label { margin-top: 3px; font-size: 12px; color: var(--fg-3); }

/* CTA */
.cta-strip { background: var(--bg-1); border: 1px solid var(--line); border-radius: 16px; padding: 44px 48px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-strip::before { content: ""; position: absolute; top: -40%; right: -10%; width: 60%; height: 180%; background: radial-gradient(circle, var(--accent-soft), transparent 60%); filter: blur(40px); pointer-events: none; }
.cta-strip h2 { font-size: 30px; margin: 0 0 8px; line-height: 1.15; }
.cta-strip p { margin: 0; color: var(--fg-2); }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 64px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; }
.footer-col h2 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--fg-2); font-size: 13.5px; }
.footer-col a:hover { color: var(--fg); }
.footer-col p { color: var(--fg-3); font-size: 13.5px; margin: 14px 0 0; max-width: 340px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--fg-3); font-family: var(--font-mono); }

/* Docs page */
.docs-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 56px; padding: 56px 0 64px; align-items: start; }
.docs-side, .docs-toc { position: sticky; top: 84px; font-size: 13.5px; }
.docs-side h2, .docs-toc h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-3); margin: 0 0 10px; font-weight: 500; }
.docs-side ul, .docs-toc ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 2px; }
.docs-side a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--fg-2); border-left: 2px solid transparent; }
.docs-side a:hover { color: var(--fg); background: var(--bg-2); }
.docs-toc ul { gap: 8px; }
.docs-toc a { color: var(--fg-3); font-size: 12.5px; }
.docs-toc a:hover { color: var(--fg); }
.docs-main { min-width: 0; max-width: 720px; }
.docs-main h1 { font-size: 40px; margin: 14px 0 12px; }
.docs-main .lead { color: var(--fg-2); font-size: 16px; margin: 0 0 32px; max-width: 620px; }
.docs-main h2 { font-size: 24px; margin: 52px 0 14px; }
.docs-main h3 { font-size: 17px; margin: 28px 0 10px; }
.docs-main p, .docs-main li { color: var(--fg-2); font-size: 14.5px; line-height: 1.7; }
.docs-main p { margin: 0 0 14px; }
.docs-main ul, .docs-main ol { padding-left: 20px; margin: 0 0 14px; }
.docs-main li { margin-bottom: 6px; }
.docs-main strong { color: var(--fg); font-weight: 500; }
.docs-main a:not(.btn) { color: var(--accent-fg); }
.docs-main a:not(.btn):hover { text-decoration: underline; }
.callout { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 10px; padding: 14px 16px; margin: 20px 0; font-size: 13.5px; display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.callout svg { width: 18px; height: 18px; color: var(--accent-fg); margin-top: 2px; }
.attr-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); margin: 18px 0; font-size: 13px; }
.attr-table th, .attr-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.attr-table th { font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); background: var(--bg-1); }
.attr-table td { color: var(--fg-2); }
.attr-table td:first-child { font-family: var(--font-mono); color: var(--fg); font-size: 12px; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.cards-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; align-items: start; }
.cards-figs figure { margin: 0; background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.cards-figs figcaption { font-size: 12.5px; color: var(--fg-3); margin-top: 10px; }
.cards-figs .pro img { max-height: 520px; width: auto; margin: 0 auto; object-fit: contain; }
.link-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; padding: 0 !important; }
.link-list a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-1); color: var(--fg) !important; }
.link-list a:hover { border-color: var(--line-strong); text-decoration: none !important; }
.link-list small { display: block; color: var(--fg-3); font-size: 12.5px; margin-top: 2px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.notfound p { color: var(--fg-2); }

@media (max-width: 1100px) {
  .docs-shell { grid-template-columns: 200px minmax(0, 1fr); gap: 36px; }
  .docs-toc { display: none; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { margin: 0 auto; }
  .pillars-grid { grid-template-columns: 1fr; }
  .install-wrap, .section-head, .formula { grid-template-columns: 1fr; gap: 24px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust li:nth-child(2) { border-right: none; }
  .trust li:nth-child(1), .trust li:nth-child(2) { border-bottom: 1px solid var(--line); }
  .cta-strip { grid-template-columns: 1fr; padding: 36px 28px; }
  .catches-grid { grid-template-columns: 1fr 1fr; }
  .press-inner { grid-template-columns: 1fr; gap: 16px; padding: 22px 24px; }
  .press-label { border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 12px; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 72px 0; }
  .docs-shell { grid-template-columns: 1fr; padding-top: 32px; }
  .docs-side { position: static; display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .catches-grid, .cards-figs, .link-list, .formula-split { grid-template-columns: 1fr; }
  .float-badge { display: none; }
  .trust { grid-template-columns: 1fr; }
  .trust li { border-right: none !important; border-bottom: 1px solid var(--line); }
  .trust li:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .gauge-wrap { width: 210px; height: 118px; }
  .advisor-row { padding: 8px 10px; }
  .hero { padding-top: 56px; }
}
