/* TurboFilterX marketing site — shared stylesheet.
   Sections: tokens · base · layout · buttons · header · hero · proof ·
   features · dark · pricing · faq · contact · cta · footer · docs · responsive.
   Colours are declared once as tokens; components reference them. */

/* ---------- tokens ---------- */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-100: #e8edff;
  --blue-200: #c3d0ff;
  --sky: #38bdf8;
  --sky-soft: #7aa2f7;
  --ink: #0e1726;
  --ink-2: #26303f;
  --muted: #4b5563;
  --muted-2: #55606f;
  --muted-3: #6b7280;
  --muted-4: #8a94a3;
  --line: #eceff3;
  --line-2: #e2e7ef;
  --line-3: #d7dce4;
  --line-4: #e4e8ee;
  --line-5: #dde2ea;
  --bg: #fff;
  --bg-soft: #f2f5f9;
  --bg-tint: #edf1f7;
  --bg-docs: #f7f8fa;
  --dark: #0a1120;
  --dark-2: #101828;
  --green: #0f9d63;
  --green-line: #b7e5cd;
  --green-bg: #e6f6ee;
  --amber: #b25e00;
  --amber-line: #f0dcb8;
  --amber-bg: #fbf0df;
  --sans: Manrope, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-card: 0 24px 56px rgba(14, 23, 38, 0.18), 0 0 0 1px rgba(14, 23, 38, 0.07);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Contain the hero's oversized art/glows WITHOUT making body a scroll
   container (overflow:hidden on body would break position:sticky). The hero
   itself already clips with overflow:hidden. */
img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout ---------- */
.container { max-width: 1180px; margin: 0 auto; padding-left: clamp(20px, 4vw, 32px); padding-right: clamp(20px, 4vw, 32px); }
.container--wide { max-width: 1320px; }
.section { padding-top: clamp(56px, 9vw, 96px); }
.section--pad { padding-bottom: clamp(56px, 9vw, 96px); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; color: var(--blue); }
.eyebrow--sky { color: var(--sky-soft); }
.lede { font-size: 18px; font-weight: 500; color: var(--muted); line-height: 1.6; text-wrap: pretty; }
h2.h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; text-wrap: pretty; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(36px, 5vw, 64px); align-items: center; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.media { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); }
.media img { width: 100%; height: auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; border-radius: 12px; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 17px; font-weight: 700; line-height: 1; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--sm { padding: 10px 20px; border-radius: 10px; font-size: 15px; }
.btn--block { width: 100%; padding: 12px 0; border-radius: 10px; font-size: 16px; }
.btn--soft { background: var(--bg-soft); border: 1px solid var(--line-3); color: var(--ink); }
.btn--soft:hover { background: #e9eef5; color: var(--ink); }

/* ---------- pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 9px 16px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line-2); font-size: 15px; font-weight: 600; }
.pill--on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }

/* ---------- bullet list ---------- */
.checks { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-top: 9px; }
.check span { font-size: 17px; font-weight: 500; color: var(--ink-2); line-height: 1.5; }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 17, 32, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.site-header__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 24px; padding-top: 14px; padding-bottom: 14px; }
.site-header__logo { height: 28px; width: auto; filter: brightness(0) invert(1); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px clamp(16px, 2.4vw, 28px); }
/* :not(.btn) so the CTA button keeps its own white text (a bare `.nav a`
   rule would out-specify .btn--primary and tint the button). */
.nav a:not(.btn) { font-size: 15px; font-weight: 600; color: #b6c2d4; }
.nav a:not(.btn):hover { color: #fff; }
.nav a.is-active:not(.btn) { color: #fff; }
.nav .btn--primary, .nav .btn--primary:hover { color: #fff; }

/* burger toggle — hidden on desktop, shown on mobile via the query below */
.nav-toggle { display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px; background: rgba(255, 255, 255, 0.06); color: #fff; cursor: pointer; }
.nav-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.hero__grid-bg { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 20%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 30% 20%, #000, transparent 75%); }
.hero__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__glow--a { left: -240px; top: -280px; width: 900px; height: 900px; background: radial-gradient(circle, rgba(37, 99, 235, 0.42), rgba(37, 99, 235, 0) 65%); }
.hero__glow--b { right: -180px; bottom: -360px; width: 820px; height: 820px; background: radial-gradient(circle, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0) 65%); }
.hero__inner { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 5vw, 56px); align-items: center; padding-top: clamp(56px, 8vw, 92px); }
.hero__copy { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 24px); padding-bottom: clamp(24px, 6vw, 92px); }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 8px 8px 8px 14px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px; font-weight: 600; color: #cbd5e1; }
.badge__new { padding: 4px 10px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; }
.hero__title { font-size: clamp(38px, 6.4vw, 68px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; text-wrap: pretty; }
.hero__title .grad { background: linear-gradient(92deg, #60a5fa, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: clamp(17px, 2vw, 20px); font-weight: 500; color: #a7b4c8; line-height: 1.55; max-width: 520px; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.btn--ghost { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn--primary.btn--glow { box-shadow: 0 14px 34px rgba(37, 99, 235, 0.45); }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 22px; padding-top: 12px; }
.tick { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; color: #94a3b8; }
.tick::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.hero__art { position: relative; padding-bottom: clamp(56px, 8vw, 92px); }
.browser { position: relative; width: min(118%, 100vw); border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 50px 110px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.09); }
.browser__bar { height: 40px; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.browser__dot { width: 11px; height: 11px; border-radius: 50%; background: #d1d5db; }
.browser__url { margin-left: 14px; height: 22px; flex: 1; max-width: 300px; border-radius: 11px; background: #e5e7eb; }
.browser__shot { width: 100%; height: auto; aspect-ratio: 1600 / 724; margin-top: -3.5%; }
.float { position: absolute; padding: 14px 18px; border-radius: 14px; background: #fff; box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.float--swatch { left: clamp(8px, 30%, 30%); bottom: clamp(-14px, 2vw, 56px); }
.float--swatch b { font-size: 15px; font-weight: 700; color: var(--ink); }
.float__dots { display: flex; gap: 6px; }
.float__dots span { width: 18px; height: 18px; border-radius: 50%; }
.float--results { left: clamp(-70px, -3%, 0px); bottom: clamp(70px, 12%, 118px); flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 14px 20px; background: var(--ink); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5); }
.float--results .k { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--sky-soft); }
.float--results .v { font-size: 20px; font-weight: 800; color: #fff; }

/* ---------- proof strip ---------- */
.proof { border-bottom: 1px solid var(--line); }
.proof__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: clamp(20px, 3vw, 28px);
  padding-top: clamp(28px, 5vw, 40px); padding-bottom: clamp(28px, 5vw, 40px); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__n { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.stat__l { font-size: 15px; font-weight: 500; color: var(--muted-3); }

/* ---------- dark feature section ---------- */
.slab { background: var(--dark-2); color: #fff; margin-top: 96px; }
.slab__inner { display: flex; flex-direction: column; gap: 44px; padding-top: clamp(52px, 8vw, 88px); padding-bottom: clamp(52px, 8vw, 88px); }
.slab .lede { color: #a7b0c0; }
.slab h2.h2 { font-size: clamp(29px, 4.2vw, 42px); }
.slab .media { box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: clamp(20px, 3vw, 24px); }
.mini { display: flex; flex-direction: column; gap: 6px; }
.mini__t { font-size: 18px; font-weight: 700; }
.mini__d { font-size: 15px; font-weight: 500; color: #a7b0c0; line-height: 1.5; }

/* ---------- tinted section ---------- */
.tint { background: var(--bg-tint); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.tint--top { border-bottom: none; }
.tint__inner { display: flex; flex-direction: column; gap: 40px; padding-top: clamp(52px, 8vw, 88px); padding-bottom: clamp(52px, 8vw, 88px); }
.measure { max-width: 760px; }

/* feature cards row (setup) */
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; padding-top: 36px; }
.feature-card { border: 1px solid var(--line-2); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.feature-card__t { font-size: 19px; font-weight: 700; }
.feature-card__d { font-size: 16px; font-weight: 500; color: var(--muted); line-height: 1.55; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line-3); border-radius: 16px; padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.plan--pop { border: 2px solid var(--blue); padding: 31px 27px 27px; box-shadow: 0 18px 44px rgba(37, 99, 235, 0.16); }
.plan__tag { position: absolute; top: -13px; left: 27px; padding: 5px 13px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
.plan__name { font-size: 15px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted-3); }
.plan--pop .plan__name { color: var(--blue); }
.plan__price { display: flex; align-items: baseline; gap: 4px; }
.plan__price b { font-size: 40px; font-weight: 800; letter-spacing: -0.035em; }
.plan__price span { font-size: 16px; font-weight: 600; color: var(--muted-3); }
.plan__note { font-size: 15px; font-weight: 600; color: var(--blue); }
.plan__note--muted { color: #9aa3b2; }
.plan__rule { height: 1px; background: var(--line); }
.plan__limit { font-size: 19px; font-weight: 700; }
.plan__for { font-size: 15px; font-weight: 500; color: var(--muted-3); line-height: 1.45; }
.plan .btn { margin-top: auto; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px clamp(28px, 4vw, 48px); }
.faq-item { display: flex; flex-direction: column; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.faq-item p { font-size: 16px; font-weight: 500; color: var(--muted); line-height: 1.6; }

/* ---------- contact ---------- */
.contact { background: var(--bg-tint); border-top: 1px solid var(--line-2); }
.contact__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(36px, 5vw, 64px); align-items: start; padding-top: clamp(52px, 8vw, 88px); padding-bottom: clamp(52px, 8vw, 88px); }
.contact__info { display: flex; flex-direction: column; gap: 16px; }
.contact__list { display: flex; flex-direction: column; gap: 18px; padding-top: 12px; }
.contact__item { display: flex; flex-direction: column; gap: 3px; }
.contact__k { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; color: #8a94a6; }
.contact__v { font-size: 18px; font-weight: 700; }
.card-form { background: #fff; border: 1px solid var(--line-3); border-radius: 16px; padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 18px 44px rgba(14, 23, 38, 0.08); display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea { padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-3);
  background: #fff; font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--ink); outline: none; }
.field input, .field select { height: 46px; }
.field select { padding: 0 12px; }
.field textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.card-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding-top: 2px; }
.card-form__note { font-size: 14px; font-weight: 500; color: var(--muted-3); }
.form-alert { padding: 12px 16px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.form-alert--ok { background: var(--green-bg); border: 1px solid var(--green-line); color: var(--green); }
.form-alert--err { background: #fdecec; border: 1px solid #f5c2c2; color: #b91c1c; }

/* ---------- cta + footer ---------- */
.cta { background: var(--dark-2); color: #fff; }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px;
  padding-top: clamp(48px, 7vw, 76px); padding-bottom: clamp(48px, 7vw, 76px); }
.cta__copy { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.cta h2 { font-size: clamp(27px, 3.8vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.cta p { font-size: 18px; font-weight: 500; color: #a7b0c0; line-height: 1.55; }
.cta .btn { flex: none; padding: 17px 30px; font-size: 18px; }
.site-footer { border-top: 1px solid #1c2534; background: var(--dark-2); }
.site-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-top: 22px; padding-bottom: 22px; }
.site-footer__row, .site-footer__row a { font-size: 14px; }
.site-footer__brand { color: #6b7788; font-weight: 500; }
.site-footer__links { display: flex; align-items: center; gap: 20px; }
.site-footer__links a { color: #9fb0c6; font-weight: 600; }
.site-footer__meta { color: #6b7788; font-weight: 500; }

/* ================= DOCS PAGE ================= */
.doc-body { background: var(--bg-docs); }
.doc-hero { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.doc-hero__glow { position: absolute; left: -180px; top: -260px; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.4), rgba(37, 99, 235, 0) 66%); }
.doc-hero__inner { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(44px, 6vw, 68px) clamp(18px, 4vw, 32px) clamp(40px, 5vw, 60px);
  display: flex; flex-direction: column; gap: 20px; }
.kicker { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky-soft); }
.doc-hero h1 { max-width: 20ch; font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.doc-hero p { max-width: 62ch; font-size: clamp(17px, 2vw, 19px); font-weight: 500; color: #a7b4c8; line-height: 1.55; text-wrap: pretty; }
.doc-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.chip-link { display: flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 11px; font-size: 15px; font-weight: 700; }
.chip-link--primary { background: var(--blue); color: #fff; }
.chip-link--primary:hover { background: var(--blue-dark); color: #fff; }
.chip-link--ghost { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; }
.chip-link--ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.doc-shell { max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 56px; align-items: start; }
.doc-toc { position: sticky; top: 82px; align-self: start; padding: 44px 0; max-height: calc(100vh - 82px); overflow-y: auto; }
.doc-toc__label { margin: 0 0 12px 12px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-4); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.doc-toc a { display: block; padding: 7px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted-2); line-height: 1.4; }
.doc-toc a:hover { background: #eceff4; color: var(--ink); }
.doc-toc a.is-active { background: var(--blue-100); color: var(--blue); font-weight: 700; }
.doc-main { padding: 44px 0 96px; min-width: 0; max-width: 46rem; }
.doc-main > .doc-empty { display: none; margin: 0 0 28px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-5); background: #fff; font-size: 15px; font-weight: 600; color: var(--muted-2); }
.doc-section { margin-bottom: 56px; scroll-margin-top: 96px; }
.doc-section > h2 { font-size: clamp(22px, 3vw, 26px); font-weight: 800; letter-spacing: -0.022em; text-wrap: balance; margin-bottom: 6px; }
.doc-section > .doc-sub { font-size: 15.5px; font-weight: 500; color: var(--muted-2); margin-bottom: 24px; }
.doc-prose { display: flex; flex-direction: column; gap: 14px; }
.doc-prose p { line-height: 1.65; }
.doc-note { display: flex; gap: 13px; padding: 15px 17px; border-radius: 12px; }
.doc-note svg { flex: none; width: 19px; height: 19px; margin-top: 4px; }
.doc-note__body { display: flex; flex-direction: column; gap: 3px; }
.doc-note__k { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.doc-note p { font-size: 14.5px; font-weight: 500; }
.doc-note--green { border: 1px solid var(--green-line); background: var(--green-bg); }
.doc-note--green .doc-note__k { color: var(--green); }
.doc-note--amber { border: 1px solid var(--amber-line); background: var(--amber-bg); }
.doc-note--amber .doc-note__k { color: var(--amber); }
code { font-family: var(--mono); font-size: 0.86em; background: var(--bg-soft); border: 1px solid var(--line-4); padding: 1.5px 6px; border-radius: 5px; }
.doc-note--green code { background: #fff; border-color: var(--green-line); }

.steps { display: flex; flex-direction: column; gap: 14px; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 18px; padding: 22px; border-radius: 14px; border: 1px solid var(--line-4); background: #fff;
  box-shadow: 0 1px 2px rgba(16, 22, 32, 0.04), 0 8px 26px -14px rgba(16, 22, 32, 0.16); }
.step__n { width: 34px; height: 34px; border-radius: 10px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 15px; font-weight: 600; }
.step__body { display: flex; flex-direction: column; gap: 8px; }
.step__body h3 { margin: 3px 0 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.step__body p { font-size: 14.5px; font-weight: 500; color: var(--muted-2); }
.step__body strong { color: var(--ink); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 236px), 1fr)); gap: 14px; }
.tile { padding: 18px; border-radius: 13px; border: 1px solid var(--line-4); background: #fff; display: flex; flex-direction: column; gap: 5px; }
.tile__ico { width: 34px; height: 34px; margin-bottom: 8px; border-radius: 9px; background: var(--blue-100); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.tile__ico svg { width: 18px; height: 18px; }
.tile h3 { font-size: 15px; font-weight: 700; }
.tile p { font-size: 13.5px; font-weight: 500; color: var(--muted-2); line-height: 1.55; }

.kind-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.kind-bar__label { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-4); margin-right: 4px; }
.kind-btn { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-5); background: #fff; color: var(--muted-2); font-family: var(--sans); font-size: 13px; font-weight: 700; cursor: pointer; }
.kind-btn:hover { border-color: #cdd4dd; }
.kind-btn.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.admin-group { margin-bottom: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-4); background: #fff;
  box-shadow: 0 1px 2px rgba(16, 22, 32, 0.04), 0 8px 26px -14px rgba(16, 22, 32, 0.16); }
.admin-group__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 17px 20px 15px; border-bottom: 1px solid var(--line-4); }
.admin-group__head h3 { font-size: 16px; font-weight: 700; }
.admin-group__head p { flex-basis: 100%; margin: 0; font-size: 13.5px; font-weight: 500; color: var(--muted-2); }
.loc { padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line-4); background: var(--bg-soft); font-family: var(--mono); font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.loc b { color: var(--blue); }
.ctrl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 6px 20px; padding: 13px 20px; border-bottom: 1px solid var(--line-4); }
.ctrl:last-child { border-bottom: none; }
.ctrl__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ctrl__name strong { font-size: 14px; font-weight: 700; }
.ctrl__d { font-size: 13.5px; font-weight: 500; color: var(--muted-2); line-height: 1.5; }
.ctrl__d strong { color: var(--ink); }
.tag { padding: 2px 6px; border-radius: 5px; font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.tag--toggle { border: 1px solid var(--green-line); background: var(--green-bg); color: var(--green); }
.tag--choice { border: 1px solid var(--blue-200); background: var(--blue-100); color: var(--blue); }
.tag--color { border: 1px solid var(--amber-line); background: var(--amber-bg); color: var(--amber); }
.tag--action { border: 1px solid var(--line-4); background: var(--bg-soft); color: var(--muted-2); }

.doc-table-wrap { border: 1px solid var(--line-4); border-radius: 13px; overflow-x: auto; background: #fff; -webkit-overflow-scrolling: touch; }
.doc-table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: 14.5px; }
.doc-table th { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line-4); background: var(--bg-soft);
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-4); }
.doc-table td { padding: 13px 18px; border-bottom: 1px solid var(--line-4); }
.doc-table tbody tr:last-child td { border-bottom: none; }
.doc-table td:first-child { font-weight: 700; }
.doc-table td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--blue); }
.doc-table td.for { font-weight: 500; color: var(--muted-2); }

.doc-details { border-radius: 12px; border: 1px solid var(--line-4); background: #fff; padding: 2px 18px; }
.doc-details summary { cursor: pointer; list-style: none; padding: 15px 0; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; }
.doc-details summary::-webkit-details-marker { display: none; }
.doc-details summary svg { margin-left: auto; flex: none; width: 16px; height: 16px; transition: transform 0.18s ease; }
.doc-details[open] summary svg { transform: rotate(180deg); }
.doc-details p { margin: 0; padding: 0 0 16px; font-size: 14.5px; font-weight: 500; color: var(--muted-2); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.doc-support { padding: clamp(22px, 3vw, 30px); border-radius: 16px; border: 1px solid var(--line-4); background: #fff;
  box-shadow: 0 1px 2px rgba(16, 22, 32, 0.04), 0 10px 30px -14px rgba(16, 22, 32, 0.2); display: flex; flex-direction: column; gap: 12px; }
.doc-support .kicker { color: var(--blue); }
.doc-support h2 { font-size: clamp(22px, 3vw, 26px); font-weight: 800; letter-spacing: -0.022em; }
.doc-foot { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line-4); font-size: 13px; font-weight: 500; color: var(--muted-4); }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  /* Proof stats: 2 across (2 rows) instead of stacking into 4 tall rows. */
  .proof__row { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
  .stat__n { font-size: 26px; }
}
@media (max-width: 900px) {
  .doc-shell { display: block; }
  .doc-toc { position: static; padding: 26px 0 0; max-height: none; overflow: visible; }
  .doc-toc ol { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .doc-main { padding: 26px 0 88px; max-width: none; }
}
/* ---- mobile nav: collapse links into a burger-triggered dropdown ---- */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 2px;
    padding: 12px clamp(20px, 4vw, 32px) 18px;
    background: rgba(10, 17, 32, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.45);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 11px 6px; border-radius: 8px; }
  .nav a:not(.btn):hover { background: rgba(255, 255, 255, 0.06); }
  .nav .btn { margin-top: 10px; align-self: flex-start; }
}
