/* ExplainStats website - design system */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #ffffff; --bg-soft: #f5f7fb; --bg-softer: #eef2f9; --card: #ffffff;
  --ink: #0b1220; --ink-2: #2f3b52; --muted: #5d6a82; --line: #e3e8f1; --line-2: #d4dbe8;
  --primary: #2152f3; --primary-2: #1a41c8; --primary-soft: #e8eeff; --teal: #0d9488; --teal-soft: #dff5f1;
  --good: #137333; --good-bg: #e6f4ea; --warn: #9a5b00; --warn-bg: #fdf3dc; --bad: #c5221f; --bad-bg: #fce8e6;
  --grad: linear-gradient(135deg, #2152f3 0%, #0d9488 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .22), 0 2px 6px rgba(15, 23, 42, .06);
  --shadow-lg: 0 30px 70px -25px rgba(15, 23, 42, .35), 0 8px 20px -8px rgba(15, 23, 42, .12);
  --radius: 16px; --radius-sm: 10px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1d; --bg-soft: #0f1629; --bg-softer: #141d35; --card: #111a31;
    --ink: #e8edf7; --ink-2: #c4cde0; --muted: #919cb5; --line: #1f2a47; --line-2: #2a3758;
    --primary: #7092ff; --primary-2: #9bb2ff; --primary-soft: #18244a; --teal: #2dd4bf; --teal-soft: #0f2f2e;
    --good: #5bd08a; --good-bg: #10301f; --warn: #f5b64a; --warn-bg: #33260b; --bad: #ff8a80; --bad-bg: #3a1614;
    --grad: linear-gradient(135deg, #7092ff 0%, #2dd4bf 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 12px 30px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink-2); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01"; }
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.022em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 650; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
section { padding: 96px 0; position: relative; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 650; font-size: 1rem; line-height: 1;
  padding: 15px 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(33, 82, 243, .7); }
.btn-primary:hover { background: var(--primary-2); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #06102a; } }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-sm { padding: 10px 14px; font-size: .92rem; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-note { font-size: .88rem; color: var(--muted); margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cta-note span { display: inline-flex; align-items: center; gap: 6px; }
.cta-note svg { width: 16px; height: 16px; color: var(--teal); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: var(--ink); letter-spacing: -0.02em; text-decoration: none !important; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--ink-2); font-size: .95rem; font-weight: 550; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink-2); padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; }
.lang[open] summary { border-color: var(--line-2); }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; min-width: 150px; }
.lang li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: .93rem; }
.lang li a:hover, .lang li a[aria-current] { background: var(--bg-soft); text-decoration: none; color: var(--ink); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; margin: 0; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .menu-btn { display: inline-flex; }
  .nav-cta { display: none; }
}

/* Hero */
.hero { padding: 64px 0 120px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 12% -10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 65%),
    radial-gradient(700px 420px at 95% 10%, color-mix(in srgb, var(--teal) 14%, transparent), transparent 60%);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .86rem; color: var(--ink-2); font-weight: 550; margin-bottom: 22px; }
.pill b { background: var(--grad); color: #fff; font-weight: 700; padding: 3px 9px; border-radius: 999px; font-size: .76rem; letter-spacing: .02em; }
@media (prefers-color-scheme: dark) { .pill b { color: #06102a; } }
@media (max-width: 1020px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding-top: 48px; } }

/* Product window (mock) */
.window { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px; line-height: 1.45; color: #202124; }
@media (prefers-color-scheme: dark) { .window { color: var(--ink-2); } }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; display: block; }
.win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-title { margin-left: 10px; font-size: 12.5px; color: var(--muted); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { display: grid; grid-template-columns: 1fr 218px; min-height: 380px; }
.sheet { overflow: hidden; border-right: 1px solid var(--line); background: var(--card); }
.sheet table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.sheet th { background: var(--bg-soft); color: var(--muted); font-weight: 500; font-size: 11px; height: 22px; border: 1px solid var(--line); }
.sheet th:first-child { width: 30px; }
.sheet td { border: 1px solid var(--line); height: 24px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.sheet td.rn { background: var(--bg-soft); color: var(--muted); text-align: center; font-size: 11px; padding: 0; }
.sheet .t1 { color: #174ea6; font-weight: 700; font-size: 14.5px; }
@media (prefers-color-scheme: dark) { .sheet .t1 { color: var(--primary-2); } }
.sheet .badge-row td.bc { background: var(--good-bg); color: var(--good); font-weight: 700; }
.sheet .hd td { background: var(--bg-soft); font-weight: 650; color: var(--ink); }
.sheet .num { text-align: right; font-variant-numeric: tabular-nums; }
.sheet .ok { background: var(--good-bg); color: var(--good); font-weight: 700; }
.sheet .pgreen { background: var(--good-bg); color: var(--good); font-weight: 700; text-align: right; }
.sheet .bold { font-weight: 650; color: var(--ink); }
.sheet .blue { color: #174ea6; font-weight: 650; }
@media (prefers-color-scheme: dark) { .sheet .blue { color: var(--primary-2); } }
.side { padding: 14px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 10px; }
.side-brand { display: flex; align-items: center; gap: 8px; font-weight: 750; color: var(--ink); font-size: 13.5px; }
.side-brand svg { width: 26px; height: 26px; }
.side-brand small { display: block; font-weight: 500; color: var(--muted); font-size: 10.5px; }
.side label { font-weight: 650; font-size: 11.5px; color: var(--ink); display: block; margin-bottom: 4px; }
.side .field { background: var(--card); border: 1px solid var(--line-2); border-radius: 7px; padding: 6px 8px; font-size: 11.5px; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.side .help { background: var(--teal-soft); color: var(--teal); border-radius: 8px; padding: 8px; font-size: 11px; line-height: 1.4; }
@media (prefers-color-scheme: dark) { .side .help { color: #8ee9dc; } }
.side .run { background: var(--primary); color: #fff; border-radius: 7px; text-align: center; padding: 7px; font-weight: 650; font-size: 12px; margin-top: 2px; }
@media (prefers-color-scheme: dark) { .side .run { color: #06102a; } }
.side .ok-msg { color: var(--good); font-size: 11px; }
.side .chk { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); }
.side .chk b { width: 13px; height: 13px; border-radius: 3px; background: var(--primary); display: inline-block; flex: none; }
@media (max-width: 640px) { .win-body { grid-template-columns: 1fr; } .side { display: none; } .sheet { border-right: 0; } .window { font-size: 12px; } }
.hero-visual { position: relative; }
.float-card { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; font-size: 13px; color: var(--ink-2); max-width: 290px; }
.float-card b { color: var(--ink); }
.float-1 { left: -34px; bottom: -78px; }
.float-1 .fc-title { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
@media (max-width: 1180px) { .float-1 { left: 12px; } }
@media (max-width: 640px) { .float-card { position: static; margin-top: 14px; max-width: none; } }
.typing::after { content: "▍"; color: var(--primary); animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

/* Trust strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden; }
.stat { padding: 22px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .n { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.stat .l { font-size: .9rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.trust-wrap { margin-top: -40px; position: relative; z-index: 2; }

/* Problem cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 14px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.icon-chip { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); }
.icon-chip svg { width: 22px; height: 22px; }
.icon-chip.teal { background: var(--teal-soft); color: var(--teal); }
.q { font-style: italic; color: var(--ink) !important; font-size: 1.05rem !important; margin-bottom: 10px !important; }
.answer { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); color: var(--ink-2); font-size: .95rem; }
.answer svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 3px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1.08fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 110px; }
.feature.rev .f-text { order: 2; }
.feature > *, .hero-grid > *, .chart-grid > * { min-width: 0; }
.f-text h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
.f-text .lead { font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.ticks svg { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 3px; }
@media (max-width: 960px) { .feature { grid-template-columns: 1fr; gap: 34px; } .feature.rev .f-text { order: 0; } .feature + .feature { margin-top: 80px; } }
.panel { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; font-size: 14px; }
.panel-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.check-list { display: grid; gap: 8px; }
.check { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.check .c-l { font-weight: 600; color: var(--ink); font-size: 13.5px; }
.check .c-r { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.status { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.st-ok { background: var(--good-bg); color: var(--good); }
.st-warn { background: var(--warn-bg); color: var(--warn); }
.decision { margin-top: 16px; display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; background: var(--primary-soft); color: var(--ink); font-weight: 650; }
.decision svg { width: 22px; height: 22px; color: var(--primary); flex: none; }
.decision small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; font-size: 12.5px; }
.flow span { background: var(--bg-soft); border: 1px solid var(--line); padding: 5px 9px; border-radius: 8px; color: var(--ink-2); }
.flow svg { width: 14px; height: 14px; color: var(--muted); }
.badge-sig { display: inline-flex; align-items: center; gap: 7px; background: var(--good-bg); color: var(--good); font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 999px; margin-bottom: 14px; }
.badge-sig::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.prose-block { border-left: 3px solid var(--primary); padding: 2px 0 2px 14px; margin: 12px 0 16px; color: var(--ink-2); font-size: 14px; }
.paste { position: relative; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 14px; font-size: 14px; color: var(--ink); }
.paste .copy { position: absolute; top: 10px; right: 10px; font-size: 11.5px; font-weight: 650; color: var(--primary); background: var(--card); border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 8px; display: inline-flex; gap: 5px; align-items: center; }
.paste .copy svg { width: 13px; height: 13px; }
.paste .lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.apa { margin-top: 12px; font-family: var(--mono); font-size: 13px; background: var(--card); border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; color: var(--ink); overflow-x: auto; white-space: nowrap; }
.steps-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.steps-table th { text-align: left; background: var(--bg-soft); color: var(--muted); font-weight: 650; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.steps-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.steps-table tr:last-child td { border-bottom: 0; }
.steps-table td.v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 650; white-space: nowrap; }
.steps-table code { font-family: var(--mono); font-size: 12px; color: var(--primary); background: var(--primary-soft); padding: 2px 5px; border-radius: 5px; white-space: nowrap; }
@media (max-width: 560px) { .steps-table .hide-sm { display: none; } .steps-table code { white-space: normal; overflow-wrap: anywhere; } .panel { padding: 16px; } }
.chart-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.chart-grid .panel { padding: 16px; }
.chart-grid .panel:first-child { grid-row: span 2; }
@media (max-width: 560px) { .chart-grid { grid-template-columns: 1fr; } .chart-grid .panel:first-child { grid-row: auto; } }
.paste .lbl { padding-right: 84px; }
.chart-cap { font-size: 12.5px; font-weight: 650; color: var(--ink); margin-bottom: 8px; }
.chart svg { width: 100%; height: auto; }
.teach-grid { display: grid; gap: 14px; }
.teach-grid > * { min-width: 0; }
.teach-grid .panel { overflow-x: auto; }
.lock { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-weight: 650; font-size: 14px; }
.lock svg { width: 20px; height: 20px; }
.toggle { width: 38px; height: 22px; border-radius: 999px; background: var(--warn); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; right: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.key { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.key th, .key td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.key th { color: var(--muted); font-weight: 650; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.key td.n { text-align: right; font-variant-numeric: tabular-nums; }
.yes { color: var(--good); font-weight: 700; }
.no { color: var(--muted); }

/* Tools grid */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
@media (max-width: 1020px) { .tools { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tools { grid-template-columns: 1fr; } }
.tool-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.tool-card h3 { font-size: 1rem; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tool-card h3 .icon-chip { width: 34px; height: 34px; border-radius: 10px; }
.tool-card h3 .icon-chip svg { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; padding: 4px 9px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); }
.chip.pro { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.chip.pro::after { content: "Pro"; font-size: 10px; font-weight: 700; color: var(--primary); margin-left: 5px; }
.legend-pro { font-size: .9rem; color: var(--muted); margin-top: 18px; }

/* Comparison */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; font-size: .98rem; }
.compare thead th { background: var(--bg-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.compare thead th.us { color: var(--primary); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 24%; }
.compare tr:last-child td { border-bottom: 0; }
.compare td.us { background: color-mix(in srgb, var(--primary) 6%, transparent); }
.yes-ico, .no-ico { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; }
.yes-ico { background: var(--good-bg); color: var(--good); }
.no-ico { background: var(--bg-softer); color: var(--muted); }
.yes-ico svg, .no-ico svg { width: 14px; height: 14px; }
@media (max-width: 600px) { .compare { table-layout: fixed; } .compare th, .compare td { padding: 11px 8px; font-size: .88rem; } .compare thead th { text-transform: none; letter-spacing: 0; font-size: .8rem; } .compare th:first-child { width: 44%; } .compare td:not(:first-child), .compare th:not(:first-child) { width: 28%; } }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; line-height: 1.25; } .key th, .key td { padding: 6px 5px; } .container { padding: 0 18px; } }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; justify-content: center; margin-top: 44px; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.ribbon { position: absolute; top: -13px; left: 30px; background: var(--grad); color: #fff; font-size: .78rem; font-weight: 750; padding: 5px 12px; border-radius: 999px; letter-spacing: .02em; }
@media (prefers-color-scheme: dark) { .ribbon { color: #06102a; } }
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan .price { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; margin: 14px 0 2px; line-height: 1; }
.plan .price small { font-size: 1rem; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.plan .price-note { font-size: .92rem; color: var(--muted); min-height: 2.8em; }
.plan .ticks { margin: 18px 0 26px; flex: 1; align-content: start; gap: 10px; }
.plan .ticks li { font-size: .97rem; }
.plan .btn { width: 100%; }
.launch-box { max-width: 868px; margin: 26px auto 0; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: var(--primary-soft); color: var(--ink); font-size: .97rem; }
.launch-box svg { width: 24px; height: 24px; color: var(--primary); flex: none; margin-top: 2px; }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 650; color: var(--ink); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--primary); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Final CTA */
.final { padding: 0 0 100px; }
.final-box { border-radius: 28px; padding: 64px 40px; text-align: center; color: #fff; background: radial-gradient(600px 300px at 10% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #1b3fd0 0%, #0d7c73 100%); box-shadow: var(--shadow-lg); overflow: hidden; position: relative; }
.final-box h2 { color: #fff; }
.final-box p { color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto 28px; font-size: 1.1rem; }
.final-box .btn-primary { background: #fff; color: #1b3fd0; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.final-box .btn-primary:hover { background: #eef2ff; }
.final-box .cta-note { justify-content: center; color: rgba(255,255,255,.85); }
.final-box .cta-note svg { color: #b6f5ea; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-soft); font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4, .site-footer .fh { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); }
.foot-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Articles (guides, legal) */
.page-hero { padding: 64px 0 36px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 900px; }
.page-hero .lead { max-width: 760px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin-top: 12px; }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; padding: 48px 0 80px; }
@media (max-width: 1000px) { .article-wrap { grid-template-columns: 1fr; } .toc { display: none; } }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.65rem; margin-top: 2.2em; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--bg-soft); color: var(--ink); font-weight: 650; }
.prose td.n, .prose th.n { text-align: right; font-variant-numeric: tabular-nums; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--primary-soft); color: var(--primary-2); padding: 2px 6px; border-radius: 6px; }
@media (prefers-color-scheme: dark) { .prose code { color: var(--primary-2); } }
.prose pre { background: #0f172a; color: #e2e8f0; padding: 16px 18px; border-radius: 12px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.55; }
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.callout { border-radius: 14px; padding: 16px 18px; margin: 1.4em 0; background: var(--bg-soft); border: 1px solid var(--line); }
.callout.tip { background: var(--teal-soft); border-color: transparent; }
.callout.warn { background: var(--warn-bg); border-color: transparent; }
.callout p:last-child { margin-bottom: 0; }
.callout strong:first-child { display: block; margin-bottom: 4px; }
.cta-card { margin: 2em 0; border-radius: 18px; padding: 24px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.cta-card .t { font-weight: 750; color: var(--ink); font-size: 1.1rem; margin-bottom: 4px; }
.cta-card p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 470px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: .9rem; }
.toc h4, .toc .fh { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 6px; border-left: 2px solid var(--line); }
.toc ol a { color: var(--ink-2); display: block; padding: 2px 0 2px 14px; margin-left: -2px; border-left: 2px solid transparent; }
.toc ol a:hover { color: var(--primary); border-left-color: var(--primary); text-decoration: none; }
.toc .mini-cta { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--card); }
.toc .mini-cta p { font-size: .88rem; color: var(--muted); margin: 6px 0 12px; }
.guide-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 48px 0 90px; }
@media (max-width: 960px) { .guide-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .guide-list { grid-template-columns: 1fr; } }
.guide-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); color: var(--ink-2); transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); text-decoration: none; }
.guide-card .tag { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.guide-card h2, .guide-card h3 { font-size: 1.15rem; margin: 8px 0 8px; }
.guide-card p { color: var(--muted); font-size: .95rem; margin: 0 0 14px; flex: 1; }
.guide-card .more { font-weight: 650; color: var(--primary); font-size: .93rem; }
.related { margin-top: 48px; }
.related .guide-list { padding: 16px 0 0; grid-template-columns: 1fr 1fr; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .typing::after { animation: none; } .btn:hover { transform: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* Inline charts (theme-aware) */
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-tick { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.c-lab { fill: var(--ink-2); font-size: 12px; font-weight: 600; font-family: var(--font); }
.c-box { fill: var(--primary); }
.c-whisk { stroke: var(--primary); stroke-width: 2; stroke-linecap: round; }
.c-bar { fill: var(--primary); opacity: .85; }
.c-curve { fill: none; stroke: #d93025; stroke-width: 2; stroke-linejoin: round; }
.c-trend { stroke: #d93025; stroke-width: 2; stroke-linecap: round; }
.c-dot { fill: var(--primary); stroke: var(--card); stroke-width: 2; }
@media (prefers-color-scheme: dark) { .c-curve, .c-trend { stroke: #ff8a80; } }
.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; }

/* Very small screens */
@media (max-width: 400px) { .foot-grid { grid-template-columns: 1fr; } .steps-table { font-size: 12px; } .steps-table td, .steps-table th { padding: 8px 7px; } .steps-table code { font-size: 11px; } }
@media (max-width: 480px) { .key th:nth-child(3), .key td:nth-child(3) { display: none; } .key td { white-space: nowrap; } }
@media (max-width: 560px) { .final-box { padding: 48px 22px; } .final-box .cta-note { flex-direction: column; align-items: center; gap: 8px; } .final-box .cta-note li { text-align: left; } }
.chart-grid .panel:first-child { display: flex; flex-direction: column; }
.chart-grid .panel:first-child svg { margin: auto 0; }
@media (max-width: 1100px) { .steps-table code { white-space: normal; overflow-wrap: anywhere; } }
.toc .mini-cta .btn { width: 100%; }
/* Install page */
.launch-card { border-radius: 20px; padding: 28px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); margin: 0 0 8px; }
.launch-card p { color: var(--ink-2); margin: 12px 0 20px; }
.pill-soon { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; color: var(--primary); background: var(--primary-soft); padding: 6px 12px; border-radius: 999px; }
.pill-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 25%, transparent); }
.prose ol.steps-list { list-style: none; padding: 0; counter-reset: st; display: grid; gap: 10px; }
.prose ol.steps-list li { counter-increment: st; position: relative; padding: 12px 16px 12px 56px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; margin: 0; }
.prose ol.steps-list li::before { content: counter(st); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
@media (prefers-color-scheme: dark) { .prose ol.steps-list li::before { color: #06102a; } }
.container.doc { max-width: 808px; }
.prose td code { overflow-wrap: anywhere; }
.prose > h2:first-child, .prose > .callout:first-child, .prose > .launch-card:first-child { margin-top: 0; }

.compare tbody th { font-weight: 450; color: var(--ink-2); background: none; text-transform: none; letter-spacing: 0; }
.guide-card .tag { color: #0f766e; }
@media (prefers-color-scheme: dark) { .guide-card .tag { color: var(--teal); } }
.compare tr:last-child th { border-bottom: 0; } .site-footer .fh, .toc .fh { margin-top: 0; line-height: 1.4; font-weight: 700; }
.prose p a:not(.btn), .prose li a:not(.btn), .prose td a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
