/* Cozybit site. Self-hosted fonts (OFL, see fonts/*.txt), no external resources.
   Light and dark follow the system setting unless the header switch sets data-theme (kept only in the URL);
   code panels and the hero stage stay dark in both. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-opsz-normal.woff2) format("woff2-variations"), url(fonts/inter-latin-opsz-normal.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-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-ext-opsz-normal.woff2) format("woff2-variations"), url(fonts/inter-latin-ext-opsz-normal.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;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2-variations"), url(fonts/jetbrains-mono-latin-wght-normal.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: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2-variations"), url(fonts/jetbrains-mono-latin-ext-wght-normal.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 {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --bg: #fbf8f3;
  --bg-2: #f5efe6;
  --bg-3: #eee6da;
  --fg: #221e1b;
  --fg-2: #4a423b;
  --fg-3: #6b6158;
  --line: #e8e0d4;
  --line-2: #d9cdbd;
  --card: #ffffff;
  --brand: #c8502a;
  --brand-ink: #a63f1d;
  --brand-soft: #fbeae2;
  --brand-line: #f0c3b0;
  --ember: #c8502a;
  --link: #a63f1d;
  --link-hover: #7e2e12;
  --warn-bg: #fff6e3;
  --warn-line: #f3d49b;
  --warn-ink: #8a5300;
  --focus: #0b63c4;
  --shadow: 0 1px 2px rgba(34, 30, 27, .05), 0 10px 28px -14px rgba(34, 30, 27, .22);
  --shadow-lg: 0 2px 6px rgba(34, 30, 27, .06), 0 30px 60px -28px rgba(34, 30, 27, .35);
  --grad-text: linear-gradient(100deg, #a63f1d 0%, #c8502a 100%);
  --code-bg: #17130f;
  --code-head: #221e1b;
  --code-line: #3a322b;
  --code-fg: #ddd3c8;
  --code-dim: #aea298;
  --t-key: #fbe7cb;
  --t-str: #b2d5ae;
  --t-num: #f2b65a;
  --t-kw: #f4875c;
  --t-pun: #a89b8e;
  --t-com: #9a8d7f;
  --t-fn: #eba0b4;
  --t-var: #f2b65a;
  --t-flag: #eba0b4;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 64px;
  --container: 1200px;
  color-scheme: light dark;
}

/* Dark: the system setting unless the switch chose light, or the switch chose dark. Same values twice. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15120f;
    --bg-2: #1b1714;
    --bg-3: #231e1a;
    --fg: #f3ece2;
    --fg-2: #cfc4b7;
    --fg-3: #ada194;
    --line: #2c2621;
    --line-2: #3a322b;
    --card: #1b1714;
    --brand-ink: #f08a60;
    --brand-soft: rgba(238, 112, 68, .12);
    --brand-line: rgba(238, 112, 68, .38);
    --ember: #ee7044;
    --link: #f08a60;
    --link-hover: #f7b497;
    --warn-bg: rgba(251, 191, 36, .08);
    --warn-line: rgba(251, 191, 36, .32);
    --warn-ink: #fbcf63;
    --focus: #7cc4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -16px rgba(0, 0, 0, .7);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 30px 60px -24px rgba(0, 0, 0, .8);
    --grad-text: linear-gradient(100deg, #f08a60 0%, #f5b08a 100%);
    --code-bg: #100d0b;
    --code-head: #18140f;
    --code-line: #2e2722;
  }
}
:root[data-theme="dark"] {
  --bg: #15120f;
  --bg-2: #1b1714;
  --bg-3: #231e1a;
  --fg: #f3ece2;
  --fg-2: #cfc4b7;
  --fg-3: #ada194;
  --line: #2c2621;
  --line-2: #3a322b;
  --card: #1b1714;
  --brand-ink: #f08a60;
  --brand-soft: rgba(238, 112, 68, .12);
  --brand-line: rgba(238, 112, 68, .38);
  --ember: #ee7044;
  --link: #f08a60;
  --link-hover: #f7b497;
  --warn-bg: rgba(251, 191, 36, .08);
  --warn-line: rgba(251, 191, 36, .32);
  --warn-ink: #fbcf63;
  --focus: #7cc4ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -16px rgba(0, 0, 0, .7);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 30px 60px -24px rgba(0, 0, 0, .8);
  --grad-text: linear-gradient(100deg, #f08a60 0%, #f5b08a 100%);
  --code-bg: #100d0b;
  --code-head: #18140f;
  --code-line: #2e2722;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
.ic { display: inline-block; width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }
.ic-ext { width: .85em; height: .85em; opacity: .75; margin-left: .15em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--link-hover); }
p { margin: 0 0 1em; }
address { font-style: normal; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; color: var(--fg); text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 1.35rem + 2.8vw, 3.4rem); letter-spacing: -.035em; line-height: 1.06; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.35rem); letter-spacing: -.03em; }
h3 { font-size: 1.125rem; letter-spacing: -.01em; font-weight: 650; }
h4 { font-size: 1rem; font-weight: 650; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin: .25em 0; }
code { font-family: var(--mono); font-size: .875em; background: var(--bg-3); border: 1px solid var(--line); padding: .08em .35em; border-radius: 6px; overflow-wrap: anywhere; }
strong { font-weight: 650; }
q { quotes: "\201C" "\201D"; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
::selection { background: rgba(238, 112, 68, .35); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.stage, .section-dark, .code, .terminal, .cta-band, .record-card, .code-split { --focus: #7cc4ff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--bg); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.small { font-size: .875rem; }
.muted { color: var(--fg-3); }
.lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); line-height: 1.55; color: var(--fg-2); max-width: 46em; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: var(--brand-ink); margin-bottom: .75rem; }
.byline { display: flex; align-items: center; gap: 8px; color: var(--fg-3); font-size: .875rem; margin: 1rem 0 0; }

/* ------------------------------------------------------------------ buttons, pills, chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; border: 1px solid transparent;
  font: 600 .9375rem/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 13px 20px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 7px 12px; font-size: .875rem; border-radius: 9px; }
.btn-primary { background: var(--brand); color: #ffffff; box-shadow: 0 0 0 1px rgba(238, 112, 68, .35), 0 10px 26px -12px rgba(238, 112, 68, .75); }
.btn-primary:hover { background: #b5451f; color: #ffffff; box-shadow: 0 0 0 1px rgba(238, 112, 68, .5), 0 14px 32px -12px rgba(238, 112, 68, .9); }
.btn-secondary { background: var(--card); color: var(--fg); border-color: var(--line-2); }
.btn-secondary:hover { color: var(--fg); border-color: var(--fg-3); background: var(--bg-2); }
.btn-glass { color: #f8f6f4; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); }
.btn-glass:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.btn .ic { width: 1em; height: 1em; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .01em; background: var(--brand-soft); color: var(--brand-ink); border: 1px solid var(--brand-line); white-space: nowrap; }
.pill-quiet { background: var(--bg-3); color: var(--fg-2); border-color: var(--line); }
.pill-dark { background: rgba(255, 255, 255, .07); color: #ded6cf; border-color: rgba(255, 255, 255, .14); }
.badge { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 6px; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; vertical-align: 1px; }
.badge-held { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row-center { justify-content: center; margin-bottom: 28px; }
.chip {
  font: 500 .875rem/1.2 var(--font); color: var(--fg-2); background: var(--card);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--fg-3); color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -.02em; }
.brand:hover { color: var(--fg); }
.brand .logo { height: 30px; width: auto; display: block; }
.logo-ember { fill: var(--ember); }
.site-nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex: 1; }
.site-nav li { margin: 0; }
.site-nav ul a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--fg-2); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.site-nav ul a:hover { color: var(--fg); background: var(--bg-3); }
.site-nav ul a[aria-current="page"] { color: var(--fg); background: var(--bg-3); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 42px; color: var(--fg); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .ic { width: 22px; height: 22px; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }

@media (max-width: 900px) {
  .header-inner { gap: 12px; }
  .site-nav { gap: 12px; overflow-x: auto; scrollbar-width: none; }
  .site-nav ul a { padding: 6px 8px; font-size: .875rem; }
  .nav-cta { display: none; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px; padding: 12px clamp(18px, 4vw, 32px) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  .js .site-nav.open { display: flex; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav ul a { padding: 12px 10px; font-size: 1rem; }
  .js .site-nav .nav-cta { display: inline-flex; }
  .header-inner > .theme-toggle { margin-left: auto; }
  .js .nav-toggle { margin-left: 0; }
}

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.section-tight { padding: clamp(36px, 5vw, 56px) 0 clamp(64px, 8vw, 96px); }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head-sm { margin: 48px 0 20px; }
.section-head h2 { margin-bottom: .45em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--brand-ink); margin: 0 0 18px; }
.eyebrow-num { color: var(--fg-3); }
.center-link { text-align: center; margin: 40px 0 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow:hover .ic { transform: translateX(3px); }
.link-arrow .ic { transition: transform .2s ease; }

/* ------------------------------------------------------------------ home stage (hero) */
.stage-wrap { padding: 10px clamp(8px, 1.2vw, 16px) 0; }
.stage {
  position: relative; overflow: hidden; isolation: isolate; color: #f6f3f0;
  border-radius: clamp(18px, 2.2vw, 30px);
  background:
    radial-gradient(900px 520px at 8% -12%, rgba(200, 80, 42, .26), transparent 62%),
    radial-gradient(760px 480px at 102% 8%, rgba(238, 112, 68, .2), transparent 58%),
    radial-gradient(600px 400px at 60% 120%, rgba(147, 193, 160, .16), transparent 60%),
    linear-gradient(180deg, #1e1814 0%, #130f0c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
@media (min-width: 721px) {
.stage::after, .cta-inner::after, .section-dark::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
}
/* the hero motif: a field of bits from the mark, with a few embers glowing in it */
.bits {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Crect x='5' y='5' width='26' height='26' rx='5' fill='%23fff' fill-opacity='.055'/%3E%3C/svg%3E");
  background-size: 36px 36px; background-position: left bottom;
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .4) 30%, transparent 60%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .4) 30%, transparent 60%);
}
.bits i {
  position: absolute; left: calc(var(--x) * 36px + 9px); bottom: calc(var(--y) * 36px + 9px); width: 18px; height: 18px; border-radius: 50%;
  background: #ee7044; box-shadow: 0 0 14px 3px rgba(238, 112, 68, .5), 0 0 44px 10px rgba(238, 112, 68, .22);
  opacity: .2; animation: ember-glow var(--t) ease-in-out var(--d) infinite alternate;
}
@keyframes ember-glow { from { opacity: .12; } to { opacity: .9; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(72px, 10vw, 136px); }
.hero-copy h1 { color: #fff; font-size: clamp(2.4rem, 1.45rem + 4vw, 4.4rem); letter-spacing: -.036em; line-height: 1.02; margin-bottom: .32em; }
.hero-lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); color: #cfc5be; max-width: 34em; margin-bottom: 30px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 6px 12px 6px 10px; border-radius: 999px;
  font-size: .8125rem; font-weight: 500; color: #e9e2dc; text-decoration: none;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
}
.hero-pill:hover { color: #fff; border-color: rgba(238, 112, 68, .55); }
.hero-pill .ic { width: .95em; height: .95em; opacity: .8; }
.hero-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(238, 112, 68, .6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(238, 112, 68, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(238, 112, 68, 0); } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.hero-ctas-center { justify-content: center; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: #c3b9b1; font-size: .875rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.hero-facts .ic { color: #93c1a0; }

/* terminal: all demos stacked in one grid cell, so the box is as tall as the tallest demo */
.terminal { margin: 0; border-radius: 16px; background: #0f0c09; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 90px -30px rgba(238, 112, 68, .35); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .025); flex-wrap: wrap; }
.term-dots { display: inline-flex; gap: 6px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; background: #443a32; }
.term-title { font: 500 .75rem/1 var(--mono); color: #ada197; }
.term-tabs { display: none; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.js .term-tabs { display: flex; }
.term-tab { display: inline-flex; align-items: center; gap: 6px; font: 500 .75rem/1 var(--font); color: #c3b9b1; background: transparent; border: 1px solid transparent; border-radius: 7px; padding: 6px 8px; cursor: pointer; }
.term-tab img { width: 16px; height: 16px; border-radius: 4px; }
.term-tab:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.term-tab[aria-pressed="true"] { color: #fff; background: rgba(238, 112, 68, .12); border-color: rgba(238, 112, 68, .35); }
.term-copy { margin-left: auto; flex: none; }
.nw { white-space: nowrap; }
.term-body { padding: 16px 18px 14px; font: 400 .78rem/1.68 var(--mono); color: var(--code-fg); }
.term-stack { display: grid; position: relative; }
.term-stack > * { grid-area: 1 / 1; min-width: 0; }
/* The typing layer sits on top and is size-contained, so each typed character relayouts only this box. */
.term-live { position: absolute; inset: 0; contain: strict; overflow: hidden; }
.term-layer { visibility: hidden; }
.term-layer.on { visibility: visible; }
.term-cmd, .term-out, .term-live { white-space: pre-wrap; overflow-wrap: break-word; }
.term-cmd { margin-bottom: 12px; color: #f1edea; }
.term-cmd .cl:first-child::before, .term-live .cl:first-child::before { content: "$ "; color: #ee7044; font-weight: 700; }
.term-live { color: #f1edea; }
.term-layer.typing .term-cmd, .term-layer .pending { visibility: hidden; }
.term-done { margin: 10px 0 0; color: #ada197; }
.term-done::before { content: ""; display: inline-block; vertical-align: 1px; margin-right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px rgba(238, 112, 68, .8); }
.term-done a { color: #f4a07c; }
.caret { display: inline-block; width: .6em; height: 1.15em; vertical-align: -.2em; background: var(--brand); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-caption { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 16px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: .75rem; color: #b0a59c; }

/* ------------------------------------------------------------------ syntax tokens */
.t-key { color: var(--t-key); }
.t-str { color: var(--t-str); }
.t-num { color: var(--t-num); }
.t-kw { color: var(--t-kw); }
.t-pun { color: var(--t-pun); }
.t-com { color: var(--t-com); font-style: italic; }
.t-fn { color: var(--t-fn); }
.t-var { color: var(--t-var); }
.t-flag { color: var(--t-flag); }

/* ------------------------------------------------------------------ proof strip */
.proof { padding: clamp(40px, 5vw, 64px) 0 0; }
.proof-title { font-size: .9375rem; font-weight: 600; color: var(--fg-3); text-align: center; letter-spacing: 0; margin-bottom: 22px; }
.proof-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.proof-item { margin: 0; border-left: 1px solid var(--line); }
.proof-item:first-child { border-left: 0; }
.proof-item a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 22px 24px; text-decoration: none; color: var(--fg-2); transition: background-color .2s ease; }
.proof-item a:hover { background: var(--bg-2); }
.proof-v { font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.4rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.proof-of { font-size: .55em; margin-left: .25em; font-weight: 600; letter-spacing: -.01em; }
.proof-l { font-size: .875rem; line-height: 1.4; }
.proof-t { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: .8125rem; font-weight: 600; color: var(--link); }

/* ------------------------------------------------------------------ tool cards */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tool-card:hover { border-color: var(--brand-line); transform: translateY(-2px); box-shadow: var(--shadow); }
.tool-card[hidden] { display: none; }
.tool-card-head { display: flex; align-items: center; gap: 12px; }
.tool-icon { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 10px -4px rgba(34, 30, 27, .5); flex: none; }
.tool-icon-lg { width: 48px; height: 48px; border-radius: 12px; }
.tool-icon-xs { width: 24px; height: 24px; border-radius: 6px; box-shadow: none; }
.tool-card .tool-card-title { font-size: 1.0625rem; margin: 0; }
.tool-card-cat { margin: 2px 0 0; font-size: .8125rem; color: var(--fg-3); }
.card-link { color: var(--fg); text-decoration: none; }
.card-link:hover { color: var(--fg); }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius); }
.tool-card-tagline { margin: 0; color: var(--fg-2); font-size: .9375rem; line-height: 1.5; }
.tool-preview { background: var(--code-bg); border: 1px solid var(--code-line); border-radius: 9px; padding: 10px 12px; font: 400 .72rem/1.65 var(--mono); color: var(--code-fg); }
.pl { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-card-foot { margin: auto 0 0; display: flex; align-items: center; justify-content: space-between; font-size: .8125rem; color: var(--fg-3); }
.tool-card-arrow { color: var(--fg-3); transition: transform .2s ease, color .2s ease; }
.tool-card:hover .tool-card-arrow { transform: translateX(3px); color: var(--brand-ink); }

/* chooser */
.chooser-label { font-size: 1rem; font-weight: 650; margin: 0; letter-spacing: -.01em; }
.filter-field { position: relative; display: block; flex: 0 1 320px; }
.filter-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; }
.filter-input { width: 100%; font: 400 .9375rem/1.2 var(--font); color: var(--fg); background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px 10px 38px; }
.filter-input::placeholder { color: var(--fg-3); opacity: 1; }
.chooser-status { min-height: 1.5em; font-size: .875rem; color: var(--fg-3); margin: 0 0 14px; }
.catalog-group { margin-bottom: 40px; }
.catalog-group[hidden] { display: none; }
.catalog-group-title { font-size: 1.125rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.catalog-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.chooser-empty { padding: 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--fg-2); }

/* ------------------------------------------------------------------ flow diagram */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1.05fr) 84px minmax(0, 1fr); align-items: stretch; min-height: 360px; margin-bottom: 56px; }
.flow-col { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(4, 1fr); align-items: center; gap: 10px; }
.flow-node { margin: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .03); font-size: .8125rem; color: var(--fg-3); line-height: 1.35; }
.flow-node strong { display: block; color: var(--fg); font-size: .9375rem; }
.flow-ic { width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-ink); }
.flow-link { position: relative; }
.flow-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wire-base { fill: none; stroke: var(--line-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.wire-pulse { fill: none; stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 3 15; animation: wire 1.5s linear infinite; animation-delay: calc(var(--i) * -.37s); opacity: .9; }
@keyframes wire { to { stroke-dashoffset: -36; } }
.flow-down { display: none; }
.flow-core { align-self: center; padding: 20px; border-radius: 18px; background: linear-gradient(180deg, #221b15, #16110e); color: #eae4df; border: 1px solid rgba(238, 112, 68, .35); box-shadow: 0 0 0 6px rgba(238, 112, 68, .06), 0 24px 50px -24px rgba(20, 16, 13, .7), 0 0 60px -20px rgba(238, 112, 68, .45); }
.flow-core-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.flow-core-head strong { display: block; color: #fff; font-size: 1rem; }
.flow-core-head span span { font-size: .8125rem; color: #b0a59c; }
.flow-logo svg { width: 38px; height: 38px; }
.flow-core ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.flow-core li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); font-size: .875rem; }
.core-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font: 700 .7rem/1 var(--mono); color: #ffffff; background: var(--brand); flex: none; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.how-steps li { margin: 0; padding-top: 18px; border-top: 1px solid var(--line-2); }
.how-num { color: var(--brand-ink); margin-right: 4px; }
.how-steps p { color: var(--fg-2); margin: 0; }

/* ------------------------------------------------------------------ code */
.code { position: relative; margin: 0 0 1.25em; background: var(--code-bg); border: 1px solid var(--code-line); border-radius: 12px; overflow: hidden; color: var(--code-fg); }
.code-head { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 8px 6px 14px; background: var(--code-head); border-bottom: 1px solid var(--code-line); }
.code-lang { font: 600 .6875rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #f4a07c; }
.code-title { flex: 1; min-width: 0; font-size: .8125rem; color: var(--code-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy { display: inline-flex; align-items: center; gap: 6px; font: 500 .75rem/1 var(--font); color: #d8d0c9; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 7px; padding: 6px 9px; cursor: pointer; }
.copy:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.copy .ic { width: 14px; height: 14px; }
.copy.done { color: #f4a07c; border-color: rgba(238, 112, 68, .45); }
.code pre { margin: 0; padding: 16px 18px; overflow: auto; font: 400 .8125rem/1.7 var(--mono); tab-size: 2; scrollbar-width: thin; scrollbar-color: #4c3e34 transparent; }
.code pre code { display: block; background: none; border: 0; padding: 0; font-size: inherit; color: inherit; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; }
/* One span per line: long lines wrap at spaces and <wbr> hints and continue indented under their own line. */
.cl { display: inline-block; width: 100%; vertical-align: top; padding-left: calc(var(--i, 0) * 1ch + 2ch); text-indent: calc(var(--i, 0) * -1ch - 2ch); }
pre, code, .tool-preview, .term-body, .chat-tool { font-variant-ligatures: none; }
.code-flush { margin: 0; border: 0; border-radius: 0; background: transparent; }
.code-flush .code-head { display: none; }
.code-compact pre { font-size: .75rem; }
.tabs { margin: 0 0 1.25em; }
.tab-list { display: none; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.js .tab-list { display: flex; }
.tab-list button { flex: none; font: 500 .875rem/1.2 var(--font); color: var(--fg-3); background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px 9px; margin-bottom: -1px; cursor: pointer; border-radius: 6px 6px 0 0; }
.tab-list button:hover { color: var(--fg); }
.tab-list button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--brand); }
.tab-fallback-label { font-weight: 650; margin: 1.25em 0 .5em; }
.js .tab-fallback-label { display: none; }
.tab-panel[hidden] { display: none; }
.recipe-tabs .tab-list { flex-wrap: wrap; }
.tabs-dark .tab-list { border-bottom-color: var(--code-line); margin: 0; padding: 4px 8px 0; background: var(--code-head); }
.tabs-dark .tab-list button { color: #b0a59c; }
.tabs-dark .tab-list button:hover, .tabs-dark .tab-list button[aria-selected="true"] { color: #fff; }
.tabs-dark .tab-panel > .code { margin: 0; border: 0; border-radius: 0; }
.tabs-dark .tab-fallback-label { color: #eae4df; padding: 0 14px; }
.code-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.code-split-req, .code-split-res { background: var(--code-bg); border: 1px solid var(--code-line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); color: var(--code-fg); }
.code-split-req .tabs { margin: 0; }
.res-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--code-head); border-bottom: 1px solid var(--code-line); font-size: .8125rem; color: var(--code-dim); }
.res-head .pill { margin-left: auto; }
.res-status { font: 700 .72rem/1 var(--mono); color: #ffffff; background: var(--brand); padding: 4px 7px; border-radius: 6px; }
.dev-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dev-facts li { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--fg-2); line-height: 1.45; }
.dev-facts .ic { color: var(--brand-ink); margin-top: 2px; }
.dev-facts strong { color: var(--fg); }
.dev-facts code { font-size: .8em; }

/* ------------------------------------------------------------------ reasons, cards */
.reason-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reason { position: relative; margin: 0; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.reason h3 { margin: 16px 0 8px; }
.reason p { margin: 0; color: var(--fg-2); font-size: .9375rem; }
.reason-ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-ink); border: 1px solid var(--brand-line); }
.reason-ic .ic { width: 22px; height: 22px; }

/* dark band (agents) */
.section-dark { isolation: isolate; color: #eae4df; background: radial-gradient(800px 500px at 0% 0%, rgba(200, 80, 42, .16), transparent 60%), radial-gradient(700px 500px at 100% 100%, rgba(238, 112, 68, .14), transparent 60%), linear-gradient(180deg, #17120f, #0f0c0a); overflow: hidden; }
.section-dark h2 { color: #fff; }
.section-dark .lead { color: #cbc1ba; }
.section-dark .eyebrow { color: #f4a07c; }
.section-dark .eyebrow-num { color: #ada197; }
.section-dark a { color: #f4a07c; }
.section-dark code { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: #eee9e6; }
.agents-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.agent-points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.agent-points li { display: flex; gap: 12px; margin: 0; color: #d8d0c9; }
.agent-points .ic { color: var(--brand); margin-top: 3px; }
.agent-points strong { color: #fff; }
.chat { display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 3vw, 28px); border-radius: 20px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.chat-msg { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: .9375rem; line-height: 1.55; }
.chat-msg p { margin: 0; }
.chat-user { align-self: flex-end; background: #3b2f26; color: #f4f1ee; border-bottom-right-radius: 5px; }
.chat-agent { align-self: flex-start; background: rgba(238, 112, 68, .08); border: 1px solid rgba(238, 112, 68, .28); color: #efe3da; border-bottom-left-radius: 5px; }
.chat-agent strong { color: #fff; }
.chat-tool { align-self: flex-start; display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: #0f0c09; border: 1px solid #372c23; font: 400 .75rem/1.5 var(--mono); color: #cfc6c0; max-width: 92%; }
.chat-tool code { background: none; border: 0; padding: 0; color: #f4a07c; font-size: .8rem; }
.chat-tool-k { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font); font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: #ada197; }
.chat-tool-ok { color: #f4a07c; }
.chat-tool-ok::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-right: 7px; vertical-align: 1px; }
.chat-note { margin: 0; font-size: .75rem; color: #ada197; text-align: right; }

/* pricing teaser and cards */
.pricing-teaser { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.price-card { position: relative; padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.price-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(238, 112, 68, .8), rgba(200, 80, 42, .1) 40%, rgba(147, 193, 160, .5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.price-k { font: 600 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--brand-ink); margin-bottom: 12px; }
.price-v { font-size: 1.25rem; font-weight: 600; color: var(--fg-2); margin-bottom: 18px; }
.price-v > span:first-child { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 750; letter-spacing: -.05em; color: var(--fg); margin-right: 4px; }
.price-per { display: block; font-size: .9375rem; font-weight: 500; color: var(--fg-3); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.price-card li { display: flex; align-items: center; gap: 10px; margin: 0; }
.price-card li .ic { color: var(--brand-ink); }
.price-card .small { margin: 0; color: var(--fg-3); }
.price-hero { margin-top: 28px; max-width: 420px; }
.price-card-inline { padding: 20px 24px; box-shadow: var(--shadow); }
.price-card-inline .price-v { margin: 0; }

/* guides */
.guide-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-grid-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-card { position: relative; margin: 0; display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.guide-card:hover { border-color: var(--brand-line); transform: translateY(-2px); box-shadow: var(--shadow); }
.guide-card h3, .guide-card-title { font-size: 1.125rem; margin: 0 0 10px; line-height: 1.3; }
.guide-card p { color: var(--fg-2); font-size: .9375rem; margin: 0 0 12px; }
.guide-card-k { display: flex; align-items: center; gap: 8px; font-size: .8125rem !important; font-weight: 600; color: var(--brand-ink) !important; margin-bottom: 12px !important; }
.guide-card-more { margin: auto 0 0 !important; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--link) !important; font-size: .875rem !important; }
.int-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.int-card { position: relative; margin: 0; display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.int-card:hover { border-color: var(--brand-line); transform: translateY(-2px); }
.int-card h2 { font-size: 1.25rem; margin: 16px 0 8px; }
.int-card p { color: var(--fg-2); font-size: .9375rem; }
.int-card .guide-card-more { margin-top: auto; }

/* CTA band */
.cta-band { padding: 0 clamp(8px, 1.2vw, 16px); margin: clamp(48px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); }
.cta-band .cta-inner { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; max-width: var(--container); padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); border-radius: 24px; color: #eae4df; background: radial-gradient(600px 300px at 0% 0%, rgba(200, 80, 42, .24), transparent 60%), radial-gradient(500px 300px at 100% 100%, rgba(238, 112, 68, .22), transparent 60%), linear-gradient(180deg, #211a15, #14100c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #cbc1ba; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-secondary { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .22); }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, .12); }
.cta-band-big .cta-inner { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); }

/* ------------------------------------------------------------------ page hero (sub pages) */
.page-hero { position: relative; isolation: isolate; padding: clamp(28px, 4vw, 44px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 10%, transparent 70%); opacity: .7; }
.page-hero::after { content: ""; position: absolute; z-index: -1; width: 640px; height: 420px; right: -120px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(238, 112, 68, .22), rgba(200, 80, 42, .08) 55%, transparent); pointer-events: none; }
.page-hero h1 { max-width: 20em; }
.page-hero-plain::before, .page-hero-plain::after { display: none; }
.page-hero-404 { padding: clamp(64px, 10vw, 140px) 0; border-bottom: 0; }
.big-404 { font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; margin: 0 0 12px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) {
  .proof-v, .stat-value, .big-404 { background: none; color: CanvasText; forced-color-adjust: auto; }
}
.page-hero-404 .lead { margin: 0 auto 28px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 24px; font-size: .8125rem; color: var(--fg-3); }
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a { color: var(--fg-3); text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; }
.crumbs li[aria-current] { display: inline-block; color: var(--fg-2); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs li[aria-current]::before { margin-right: 6px; }

/* tool hero */
.tool-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.tool-hero-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.tool-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.3vw, 3rem); }
.tool-hero .lead { margin-bottom: 26px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9375rem; color: var(--fg-2); }
.facts li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.facts .ic { color: var(--brand-ink); margin-top: 3px; }
.record-card { border-radius: 16px; background: var(--code-bg); border: 1px solid var(--code-line); box-shadow: var(--shadow-lg), 0 0 80px -40px rgba(238, 112, 68, .5); overflow: hidden; color: var(--code-fg); }
.record-card-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--code-head); border-bottom: 1px solid var(--code-line); font-size: .8125rem; color: var(--code-dim); }
.record-card-head .pill { margin-left: auto; }
.record-card pre { font-size: .75rem; max-height: 380px; }

/* ------------------------------------------------------------------ doc layout */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; padding-top: 8px; padding-bottom: 32px; }
.doc-body { max-width: 800px; min-width: 0; }
.toc { position: sticky; top: calc(var(--header-h) + 28px); padding-top: 40px; }
.toc-title { font: 600 .6875rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0 0 22px; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc ol a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--fg-3); text-decoration: none; font-size: .875rem; line-height: 1.35; }
.toc ol a:hover { color: var(--fg); }
.toc ol a.active { color: var(--fg); border-left-color: var(--brand); font-weight: 550; }
.toc-cta { width: 100%; }
.toc .toc-cta .ic-ext { opacity: .7; }
.doc-section { padding-top: clamp(40px, 5vw, 56px); }
.doc-section h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); margin-bottom: .7em; }
.doc-section h3 { margin: 1.6em 0 .6em; }
.doc-section > p, .doc-section li { color: var(--fg-2); }
.doc-section strong { color: var(--fg); }
.summary-card { margin: 40px 0 0; padding: 22px 24px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.summary-title { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--brand-ink); margin-bottom: 10px; }
.summary-card ul { margin: 0; padding-left: 1.1em; }
.summary-card li { color: var(--fg-2); }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature-li { display: flex; gap: 12px; margin: 0 !important; padding: 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: .9375rem; }
.feature-tick { color: #ffffff; background: var(--brand); border-radius: 50%; padding: 3px; width: 20px; height: 20px; margin-top: 2px; }
.uses { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.use { margin: 0 !important; padding: 14px 0; border-top: 1px solid var(--line); }
.use h3 { margin: 0 0 4px; font-size: 1rem; }
.use p { margin: 0; color: var(--fg-2); font-size: .9375rem; }
.ex-title { margin: 1.5em 0 .6em; font-size: .9375rem; color: var(--fg-2); }
.verified { display: flex; gap: 8px; align-items: flex-start; margin-top: -4px; font-size: .875rem; color: var(--brand-ink); }
.verified .ic { margin-top: 3px; }
.verified code { font-size: .8em; }
.notes { list-style: none; padding: 0; margin: 0 0 1.25em; display: grid; gap: 6px; }
.notes li { position: relative; padding-left: 20px; margin: 0; font-size: .9375rem; }
.notes li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.more { margin: 8px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.more summary { cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 600; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary > span { flex: 1; }
.more-chev { color: var(--fg-3); transition: transform .2s ease; }
.more[open] .more-chev { transform: rotate(90deg); }
.more[open] summary { border-bottom: 1px solid var(--line); }
.more > :not(summary) { margin: 16px; }
.limits { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.limits li { position: relative; padding-left: 26px; margin: 0; }
.limits li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 2px; background: var(--fg-3); border-radius: 2px; }
.source-note { display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; color: var(--fg-3); margin-top: 16px; }
.source-note .ic { margin-top: 2px; }
.stat-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; padding: 24px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.stat-panel p { margin-bottom: .6em; color: var(--fg-2); }
.stat-big { display: flex; flex-direction: column; gap: 6px; min-width: 180px; max-width: 240px; }
.stat-value { font-size: clamp(2.2rem, 1.7rem + 1.8vw, 3rem); font-weight: 750; letter-spacing: -.045em; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-of { font-size: .5em; margin-left: .2em; letter-spacing: -.01em; }
.stat-label { font-size: .8125rem; color: var(--fg-3); line-height: 1.4; }
.guide-callout { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 16px; border-radius: 14px; border: 1px solid var(--brand-line); background: var(--brand-soft); color: var(--fg); text-decoration: none; }
.guide-callout:hover { color: var(--fg); }
.guide-callout > .ic { color: var(--brand-ink); width: 22px; height: 22px; }
.guide-callout > span { flex: 1; display: flex; flex-direction: column; }
.guide-callout-k { font-size: .75rem; font-weight: 600; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .08em; }
.guide-callout-t { font-weight: 650; }
.steps { list-style: none; padding: 0; margin: 0 0 1.25em; display: grid; gap: 12px; }
.steps > li { display: flex; gap: 14px; margin: 0; }
.steps p { margin: 0; color: var(--fg-2); }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; font: 700 .8125rem/1 var(--mono); background: var(--brand-soft); color: var(--brand-ink); border: 1px solid var(--brand-line); }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 1.25em; }
.route { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.route h3 { margin: 0 0 8px; font-size: 1rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.route p { margin: 0; color: var(--fg-2); font-size: .9375rem; }
.route-ours { border-color: var(--brand-line); background: var(--brand-soft); }
.inline-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--brand-line); background: linear-gradient(120deg, var(--brand-soft), transparent 70%), var(--card); }
.inline-cta p { margin: 0; }
.inline-cta-k { font: 600 .6875rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--brand-ink); margin-bottom: 6px !important; }
.inline-cta-t { font-weight: 700; font-size: 1.125rem; }
.inline-cta-d { color: var(--fg-2); font-size: .9375rem; }
.inline-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.guide-foot { max-width: var(--container); padding-top: 48px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 1.25em; }
.mini { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.mini > .ic { width: 22px; height: 22px; color: var(--brand-ink); }
.mini h3 { margin: 12px 0 4px; font-size: 1rem; }
.mini p { margin: 0; font-size: .9rem; color: var(--fg-2); }
.about-contact { margin-top: 48px; padding: 28px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.about-contact h2 { font-size: 1.4rem; }
.about-contact p { color: var(--fg-2); }

/* callouts */
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 1.25em; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); font-size: .9375rem; }
.callout p { margin: 0 0 .4em; color: var(--fg-2); }
.callout p:last-child { margin: 0; }
.callout-ic { width: 20px; height: 20px; margin-top: 2px; color: var(--fg-3); }
.callout-ok { background: var(--brand-soft); border-color: var(--brand-line); }
.callout-ok .callout-ic { color: var(--brand-ink); }
.callout-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.callout-warn .callout-ic { color: var(--warn-ink); }
.callout-warn strong { color: var(--warn-ink); }

/* tables */
.table-wrap { margin: 0 0 1.25em; border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
caption { caption-side: bottom; text-align: left; padding: 10px 14px; font-size: .8125rem; color: var(--fg-3); border-top: 1px solid var(--line); }
th { text-align: left; font-weight: 600; font-size: .8125rem; color: var(--fg-2); background: var(--bg-2); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; color: var(--fg-2); }
tbody tr:first-child td { border-top: 0; }
td code { font-size: .8em; overflow-wrap: break-word; }
.cell-sub { display: block; font-size: .78rem; color: var(--fg-3); }
.table-inputs td:first-child, .table-compare td:first-child, .table-prices td:first-child { color: var(--fg); font-weight: 600; }
.table-mapping td:first-child { color: var(--fg); font-weight: 600; white-space: nowrap; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 2px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0125rem; color: var(--fg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-ink); }
.faq-chev { color: var(--fg-3); transition: transform .2s ease; }
.faq-item[open] .faq-chev { transform: rotate(90deg); color: var(--brand-ink); }
.faq-a { padding: 0 2px 16px; }
.faq-a p { margin: 0; color: var(--fg-2); max-width: 46em; }
.faq-group { margin-bottom: 44px; }
.faq-body { max-width: 820px; }
.table-prices td:last-child a, .table-compare td:last-child a { white-space: nowrap; }
.faq-group h2 { font-size: 1.35rem; margin-bottom: 14px; }

/* legal prose */
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--fg-2); }
.ph { background: var(--warn-bg); color: var(--warn-ink); border: 1px dashed var(--warn-line); border-radius: 5px; padding: 0 .3em; }

/* contact form */
.form-intro { color: var(--fg-2); max-width: 40em; }
.contact-form { display: grid; gap: 16px; max-width: 36em; margin-top: 24px; }
.contact-form p { margin: 0; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-size: .875rem; font-weight: 600; color: var(--fg-2); }
.form-field input, .form-field textarea { width: 100%; font: 400 1rem/1.4 var(--font); color: var(--fg); background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; }
.form-field textarea { min-height: 10em; resize: vertical; }
.form-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .875rem; color: var(--fg-3); }

/* ------------------------------------------------------------------ footer */
.site-footer { margin-top: clamp(40px, 6vw, 72px); padding: clamp(40px, 6vw, 64px) 0 32px; border-top: 1px solid var(--line); background: var(--bg-2); font-size: .875rem; }
.home .site-footer, .has-cta .site-footer, main:has(> .section-alt:last-child) + .site-footer { margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(6, minmax(0, 1fr)); gap: 32px 24px; }
.foot-brand p { color: var(--fg-3); margin-top: 14px; max-width: 22em; }
.foot-title { font-weight: 650; color: var(--fg); margin-bottom: 10px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.foot-col li { margin: 0; }
.foot-col a { color: var(--fg-3); text-decoration: none; }
.foot-col a:hover { color: var(--fg); text-decoration: underline; }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: .8125rem; display: grid; gap: 6px; }
.foot-bottom p { margin: 0; }
.foot-bottom a { color: var(--fg-3); }

/* ------------------------------------------------------------------ theme switch */
.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--fg-2); cursor: pointer; }
.theme-toggle:hover { color: var(--fg); border-color: var(--fg-3); }
.theme-toggle .ic { width: 18px; height: 18px; }
.theme-toggle .ic-sun { display: none; }
.theme-toggle[aria-pressed="true"] .ic-sun { display: block; }
.theme-toggle[aria-pressed="true"] .ic-moon { display: none; }
.header-inner > .theme-toggle { margin-left: auto; }

/* ------------------------------------------------------------------ filters and capability tags */
.filters { display: grid; gap: 12px; margin-bottom: 8px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.filters-center .chip-row:first-child { justify-content: center; }
.filters-center .filter-row { justify-content: center; }
.cap-chip { display: inline-flex; align-items: center; gap: 6px; border-style: dashed; }
.chip-tick { width: 14px; height: 14px; display: none; }
.cap-chip[aria-pressed="true"] { border-style: solid; }
.cap-chip[aria-pressed="true"] .chip-tick { display: inline-block; }
.cap-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: -2px 0 0; }
.cap-tags li { margin: 0; font-size: .72rem; font-weight: 600; letter-spacing: .01em; color: var(--brand-ink); background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 6px; padding: 1px 7px; }
.chooser-h { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); margin-bottom: 18px; }
.section-flush-top { padding-top: 0; }

/* ------------------------------------------------------------------ job chooser (vertical tabs) */
.jobs-wrap { margin-top: 56px; }
.jobs-h { font-size: 1.25rem; margin-bottom: 16px; }
.jobs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.job-list { display: none; }
.js .jobs { grid-template-columns: minmax(220px, .8fr) minmax(0, 1.6fr); }
.js .job-list { display: flex; flex-direction: column; padding: 8px; gap: 2px; background: var(--bg-2); border-right: 1px solid var(--line); }
.job-list button { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 11px 14px; border-radius: 10px; border: 1px solid transparent; background: none; cursor: pointer; font: inherit; color: var(--fg-2); }
.job-list button:hover { background: var(--bg-3); color: var(--fg); }
.job-list button[aria-selected="true"] { background: var(--card); color: var(--fg); border-color: var(--line-2); box-shadow: var(--shadow); }
.job-t { font-weight: 650; font-size: .9375rem; line-height: 1.3; }
.job-who { font-size: .78rem; color: var(--fg-3); line-height: 1.35; }
.job-panel { padding: 22px 24px; }
.job-panel + .job-panel { border-top: 1px solid var(--line); }
.js .job-panel + .job-panel { border-top: 0; }
.job-fallback { font-size: 1.0625rem; margin: 0 0 6px; }
.js .job-fallback { display: none; }
.job-d { color: var(--fg-2); margin-bottom: 14px; }
.job-tools { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.job-tools li { margin: 0; }
.job-tools a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--fg-2); font-size: .875rem; line-height: 1.4; }
.job-tools a:hover { border-color: var(--brand-line); background: var(--brand-soft); color: var(--fg-2); }
.job-tools a > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.job-tools strong { color: var(--fg); font-size: .9375rem; }
.job-tools a > .ic { color: var(--fg-3); }
.tool-icon-sm { width: 32px; height: 32px; border-radius: 8px; }

/* ------------------------------------------------------------------ diagrams */
.dg { margin: 0 0 1.5em; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); }
.dg figcaption { margin-top: 12px; font-size: .8125rem; color: var(--fg-3); }
.dg-flow { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 0; }
.dg-node { flex: 1 1 0; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: .8125rem; line-height: 1.4; color: var(--fg-2); }
.dg-node strong { color: var(--fg); font-size: .9375rem; }
.dg-node code, .dg-branch code, .dg-root code { font-size: .78em; }
.dg-k { font: 600 .6875rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--brand-ink); }
.dg-arrow { flex: 0 0 34px; margin: 0; display: grid; place-items: center; color: var(--brand-ink); }
.dg-arrow-svg { width: 26px; height: 16px; }
.dg-root { max-width: 520px; margin: 0 auto; text-align: center; padding: 12px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--brand-line); box-shadow: 0 0 0 4px var(--brand-soft); display: flex; flex-direction: column; gap: 3px; font-size: .8125rem; color: var(--fg-2); }
.dg-root strong { color: var(--fg); font-size: 1rem; }
.dg-fan { width: 100%; height: 34px; color: var(--line-2); }
.dg-branches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; }
.dg-branch { margin: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--brand); font-size: .8125rem; line-height: 1.4; color: var(--fg-2); }
.dg-branch strong { color: var(--fg); font-size: .9375rem; }
.dg-if { font-size: .75rem; font-weight: 600; color: var(--fg-3); }
.dg-if::before { content: "If: "; color: var(--brand-ink); }
.dg-tone-b { border-top-color: #5e8b6b; }
.dg-tone-c { border-top-color: #e0a23a; }
.dg-tone-d { border-top-color: #8a7466; }
.dg-d { display: block; }

/* ------------------------------------------------------------------ estimator and MCP builder */
.estimator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin: 0 0 1.25em; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.est-in { padding: 20px; border-right: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.est-tool { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.est-label { font-size: .8125rem; font-weight: 600; color: var(--fg-2); }
.est-select, .est-q input { width: 100%; font: 400 .9375rem/1.3 var(--font); color: var(--fg); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; }
.est-qs { display: grid; gap: 10px; }
.est-q { display: grid; gap: 4px; font-size: .8125rem; color: var(--fg-2); }
.est-q input { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.est-out { padding: 20px; background: var(--bg-2); }
.est-n { font-size: .875rem; color: var(--fg-3); margin-bottom: 10px; }
.est-n span { font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.est-dl { margin: 0 0 14px; display: grid; gap: 10px; }
.est-dl > div { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.est-dl dt { font-size: .8125rem; color: var(--fg-2); }
.est-dl dd { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.est-dl dd code { font-size: .8rem; letter-spacing: 0; }
.est-flag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 6px; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.est-out .small { color: var(--fg-2); margin-bottom: .6em; }
.mcpb-controls { display: grid; gap: 12px; margin-bottom: 14px; }
.mcpb fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; margin: 0; background: var(--card); min-width: 0; }
.mcpb legend { padding: 0 6px; font-size: .8125rem; font-weight: 650; color: var(--fg); }
.mcpb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.mcpb label { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--fg-2); padding: 5px 0; cursor: pointer; }
.mcpb label img { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.mcpb input { width: 18px; height: 18px; accent-color: #a63f1d; flex: none; margin: 0; }
.mcpb-auth label { align-items: flex-start; }
.mcpb-auth label input { margin-top: 2px; }
.mcpb-note { min-height: 1.4em; color: var(--warn-ink); }
.charge { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.charge-yes { background: var(--bg-3); color: var(--fg); border: 1px solid var(--line-2); }
.charge-no { background: var(--brand-soft); color: var(--brand-ink); border: 1px solid var(--brand-line); }
.table-status td:first-child { white-space: normal; color: var(--fg); }

/* ------------------------------------------------------------------ reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-seq > * { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal-seq.in > * { opacity: 1; transform: none; }
.js .reveal-seq.in > :nth-child(2) { transition-delay: .5s; }
.js .reveal-seq.in > :nth-child(3) { transition-delay: 1.1s; }
.js .reveal-seq.in > :nth-child(4) { transition-delay: 1.4s; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-grid, .agents-grid, .pricing-teaser, .tool-hero-grid, .code-split { grid-template-columns: minmax(0, 1fr); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item:nth-child(3) { border-left: 0; }
  .proof-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .reason-grid, .guide-grid, .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; }
  .flow-col { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-link { height: 44px; }
  .flow-wires { display: none; }
  .flow-down { display: block; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; transform: translateX(-50%); background: repeating-linear-gradient(to bottom, var(--brand) 0 4px, transparent 4px 12px); background-size: 2px 24px; animation: down 1s linear infinite; }
  @keyframes down { to { background-position: 0 24px; } }
  .flow-core { align-self: stretch; }
}
@media (max-width: 960px) {
  .js .jobs { grid-template-columns: minmax(0, 1fr); }
  .js .job-list { flex-direction: row; overflow-x: auto; scrollbar-width: thin; border-right: 0; border-bottom: 1px solid var(--line); }
  .js .job-list button { flex: 0 0 auto; max-width: 15rem; }
  .estimator { grid-template-columns: minmax(0, 1fr); }
  .est-in { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .dg-flow { flex-direction: column; }
  .dg-arrow { flex-basis: 28px; }
  .dg-arrow-svg { transform: rotate(90deg); }
  .dg-fan { display: none; }
  .dg-branches { grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
  .mcpb-grid { grid-template-columns: minmax(0, 1fr); }
  .filter-row { flex-direction: column; align-items: stretch; }
  .tool-grid, .tool-grid-2, .reason-grid, .guide-grid, .guide-grid-index, .int-grid, .how-steps, .route-grid, .mini-grid, .feature-list, .uses { grid-template-columns: minmax(0, 1fr); }
  .flow-col { grid-template-columns: minmax(0, 1fr); }
  .stat-panel { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .stat-big { max-width: none; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .term-body { font-size: .72rem; padding: 14px 14px 12px; }
  .term-tabs { margin-left: 0; order: 3; width: 100%; }
  .term-title { display: none; }
  .filter-field { flex: 1 1 auto; }
  .cta-band .cta-inner { flex-direction: column; align-items: flex-start; }
  .table-stack table, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-stack tr { padding: 10px 14px; border-top: 1px solid var(--line); }
  .table-stack tbody tr:first-child { border-top: 0; }
  .table-stack td { border: 0; padding: 4px 0; }
  .table-stack td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); margin-bottom: 1px; }
  .table-stack td:empty { display: none; }
  .table-stack table { display: flex; flex-direction: column; }
  .table-stack caption { display: block; order: 2; border-top: 1px solid var(--line); }
  .table-stack .cont-name { position: static !important; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
  .dev-facts { grid-template-columns: minmax(0, 1fr); }
  .hero-ctas .btn { flex: 1 1 auto; }
  .tool-grid-home .tool-preview { display: none; }
}
@media (max-width: 420px) {
  .proof-grid { grid-template-columns: minmax(0, 1fr); }
  .proof-item { border-left: 0 !important; border-top: 1px solid var(--line); }
  .proof-item:first-child { border-top: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 16px; }
}

/* ------------------------------------------------------------------ motion and print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-seq > * { opacity: 1; transform: none; }
  .bits i { opacity: .6; }
}
@media print {
  .site-header, .site-footer, .toc, .copy, .bits, .tab-list { display: none !important; }
  .js .reveal, .js .reveal-seq > * { opacity: 1 !important; transform: none !important; }
  .tab-panel[hidden] { display: block !important; }
}
