/* Jaylert site. Tokens first; components only read tokens.
   Dark bands (hero, CTA) use the fixed --night-* set in both themes. */
:root {
  --jay: #2A63D8;
  --jay-2: #1E4FB8;
  --glow: #6E9BFF;
  --alert: #F4A62A;
  --night: #0A1120;
  --night-2: #101A2F;
  --night-line: #1E2B45;
  --night-text: #E9EFFA;
  --night-muted: #93A1BC;

  --bg: #F3F6FB;
  --surface: #FFFFFF;
  --surface-2: #EAF0F9;
  --text: #0B1426;
  --muted: #55627B;
  --line: #D8E0EC;
  --chip: #E3EBFB;
  --chip-text: #1E4FB8;
  --ok: #178A58;
  --ok-bg: #DCF3E7;
  --warn: #A86300;
  --warn-bg: #FFF0D6;
  --bad: #C2372B;
  --bad-bg: #FBE3E0;
  --shadow: 0 1px 2px rgba(11, 20, 38, .05), 0 18px 40px -20px rgba(11, 20, 38, .25);

  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Onest", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --max: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --jay: #5E8FF5; --jay-2: #3F72E0;
    --bg: #0B1222; --surface: #111B2F; --surface-2: #16223A;
    --text: #E9EFFA; --muted: #97A4BD; --line: #22304B;
    --chip: #1A2A4B; --chip-text: #A3C0FF;
    --ok: #4CC38A; --ok-bg: #12301F; --warn: #F2B457; --warn-bg: #33250C; --bad: #FF8578; --bad-bg: #3A1714;
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 20px 44px -22px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --jay: #5E8FF5; --jay-2: #3F72E0;
  --bg: #0B1222; --surface: #111B2F; --surface-2: #16223A;
  --text: #E9EFFA; --muted: #97A4BD; --line: #22304B;
  --chip: #1A2A4B; --chip-text: #A3C0FF;
  --ok: #4CC38A; --ok-bg: #12301F; --warn: #F2B457; --warn-bg: #33250C; --bad: #FF8578; --bad-bg: #3A1714;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 20px 44px -22px rgba(0,0,0,.7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); }
img, svg { max-width: 100%; }
a { color: var(--jay); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--alert); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 24px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -.025em; }
h1 { font-weight: 800; font-size: clamp(42px, 6vw, 78px); line-height: .98; }
h2 { font-weight: 800; font-size: clamp(32px, 4vw, 52px); line-height: 1.02; }
h3 { font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .86em; }
.eyebrow { font: 600 12.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--jay); }
.lede { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 36em; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--night) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--night-line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--night-text); }
.brand img { width: 30px; height: 30px; }
.brand span { font: 800 21px/1 var(--display); letter-spacing: -.03em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--night-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--night-text); }
.nav-links .btn { color: #fff; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px;
  font: 600 16px/1 var(--body); text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: var(--jay); color: #fff; box-shadow: 0 8px 24px -10px rgba(42, 99, 216, .9), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { transform: translateY(-1px); background: #3571EA; }
.btn-line { color: var(--night-text); border-color: var(--night-line); background: rgba(255,255,255,.03); }
.btn-line:hover { border-color: #3A4D72; }
.btn-plain { color: var(--text); border-color: var(--line); background: var(--surface); }
.btn-plain:hover { border-color: var(--jay); }

/* ---------- Hero (always dark) ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--night); color: var(--night-text);
  padding-block: 84px 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(42, 99, 216, .35), transparent 70%),
    radial-gradient(40% 40% at 12% 90%, rgba(244, 166, 42, .10), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(147, 161, 188, .22) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 56px; }
.hero-copy { display: grid; gap: 26px; max-width: 820px; }
.pill {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--night-line);
  background: rgba(255,255,255,.04); color: var(--night-muted); font-size: 14px;
}
.pill b { background: var(--alert); color: var(--night); font: 700 11px/1 var(--mono); letter-spacing: .06em; padding: 5px 8px; border-radius: 999px; text-transform: uppercase; }
.hero h1 span { background: linear-gradient(100deg, #8DB2FF, #5E8FF5 55%, #F4A62A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: var(--night-muted); }
.hero .fine { color: var(--night-muted); font-size: 14px; }

/* Pipeline demo */
.pipeline {
  display: grid; grid-template-columns: 1fr 300px 1.15fr; gap: 0; align-items: stretch;
  border: 1px solid var(--night-line); border-radius: 22px; background: rgba(16, 26, 47, .72);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04);
}
.lane { padding: 20px; display: grid; grid-template-rows: auto 1fr; gap: 14px; min-width: 0; }
.lane + .lane { border-left: 1px solid var(--night-line); }
.lane-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--night-muted); }
.lane-head .count { color: var(--night-text); font-variant-numeric: tabular-nums; }
.stream { position: relative; height: 330px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; mask-image: linear-gradient(to bottom, #000 75%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent); }
.ev {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px;
  background: rgba(255,255,255,.035); border: 1px solid var(--night-line);
  font: 12.5px/1.3 var(--mono); color: var(--night-muted); white-space: nowrap; overflow: hidden;
  transition: opacity .5s ease, border-color .3s ease, background-color .3s ease;
}
.ev .k { color: #A9C3FF; }
.ev .t { opacity: .6; font-variant-numeric: tabular-nums; }
.ev.pass { border-color: rgba(244, 166, 42, .7); background: rgba(244, 166, 42, .08); color: var(--night-text); }
.ev.drop { opacity: .38; }
.ev.new { animation: slidein .45s cubic-bezier(.2,.8,.2,1); }
@keyframes slidein { from { transform: translateY(-14px); opacity: .2; } }

.rule {
  align-self: center; margin: 20px; padding: 18px; border-radius: 16px; position: relative;
  background: linear-gradient(180deg, #14213C, #0F192E); border: 1px solid #2A3C62;
  display: grid; gap: 12px; box-shadow: 0 0 0 6px rgba(42, 99, 216, .08);
}
.rule.flash { animation: flash .7s ease; }
@keyframes flash { 30% { box-shadow: 0 0 0 10px rgba(244, 166, 42, .18); border-color: rgba(244,166,42,.8); } }
.rule-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.rule-title img { width: 26px; height: 26px; }
.rule dl { margin: 0; display: grid; gap: 8px; font: 12px/1.4 var(--mono); }
.rule dt { color: var(--night-muted); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.rule dd { margin: 0; color: var(--night-text); }
.rule .tr { display: inline-flex; gap: 6px; align-items: center; }
.tag { font: 600 11px/1 var(--mono); padding: 5px 7px; border-radius: 6px; background: #1D2F55; color: #B9CEFF; }
.tag.done { background: #123524; color: #6FD9A4; }

.gchat { display: grid; gap: 12px; align-content: start; }
.space-bar { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--night-line); }
.space-bar .av { width: 28px; height: 28px; border-radius: 8px; background: #1D2F55; display: grid; place-items: center; font: 700 13px/1 var(--display); color: #B9CEFF; }
.space-bar b { font-size: 14px; }
.space-bar small { color: var(--night-muted); font-size: 12px; display: block; }
.feed { display: grid; gap: 10px; height: 282px; overflow: hidden; align-content: start; }
.gcard { background: #F7F9FD; color: #0B1426; border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.8); }
.gcard.new { animation: land .6s cubic-bezier(.2,.8,.2,1); }
@keyframes land { from { transform: translateX(18px) scale(.98); opacity: .1; } }
.gcard .from { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #55627B; }
.gcard .from img { width: 18px; height: 18px; }
.gcard .from b { color: #0B1426; }
.gcard .ttl { font-weight: 600; font-size: 14px; line-height: 1.35; }
.gcard .ttl .key { font: 600 12px/1 var(--mono); color: #2A63D8; margin-right: 6px; }
.gcard .chg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.gcard .chg .s { font: 600 11px/1 var(--mono); padding: 4px 6px; border-radius: 5px; background: #E3EBFB; color: #1E4FB8; }
.gcard .chg .s.done { background: #DCF3E7; color: #178A58; }
.gcard .q { font-size: 13px; color: #55627B; font-style: italic; border-left: 2px solid #D8E0EC; padding-left: 8px; }
.gcard .meta { display: flex; gap: 14px; font-size: 12px; color: #55627B; }
.gcard .meta b { color: #0B1426; font-weight: 600; }
.gcard .open { font-size: 12px; font-weight: 600; color: #2A63D8; }
.thread-note { font: 11.5px/1 var(--mono); color: var(--night-muted); }

/* ---------- Proof strip ---------- */
.proof { background: var(--night); color: var(--night-text); border-top: 1px solid var(--night-line); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 30px 24px 28px 0; display: grid; gap: 6px; align-content: start; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--night-line); }
.stat b { font: 800 40px/1 var(--display); letter-spacing: -.03em; }
.stat b .unit { color: var(--alert); }
.stat span { color: var(--night-muted); font-size: 14px; line-height: 1.45; }
.source { background: var(--night); color: var(--night-muted); font-size: 12px; padding-block: 0 26px; }

/* ---------- Sections ---------- */
.section { padding-block: 104px; }
.section + .section { border-top: 1px solid var(--line); }
.head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 52px; }

/* Complaints -> answers */
.answers { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.answer { display: grid; grid-template-columns: 1fr 1.25fr; }
.answer + .answer { border-top: 1px solid var(--line); }
.answer > div { padding: 20px 24px; display: grid; gap: 4px; align-content: start; }
.answer .complaint { background: var(--surface-2); color: var(--muted); }
.answer .complaint q { color: var(--text); font-weight: 600; quotes: "“" "”"; }
.answer .fix { position: relative; padding-left: 58px; }
.answer .fix::before {
  content: ""; position: absolute; left: 24px; top: 23px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23178A58' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.answer .fix b { font-weight: 600; }
.answer .fix span { color: var(--muted); font-size: 15px; }
.answers-head { display: grid; grid-template-columns: 1fr 1.25fr; font: 600 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.answers-head div { padding: 14px 24px; }
.answers-head div:first-child { background: var(--surface-2); }
.answers-head div:last-child { padding-left: 58px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: grid; gap: 14px; align-content: start; overflow: hidden; }
.tile p { color: var(--muted); }
.t-rule { grid-column: span 4; grid-row: span 2; }
.t-thread { grid-column: span 2; }
.t-fields { grid-column: span 2; }
.t-log { grid-column: span 3; }
.t-retry { grid-column: span 3; }
.mock { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 18px; display: grid; gap: 14px; }
.mock-row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; font-size: 14px; }
.mock-row > span:first-child { color: var(--muted); font-size: 13px; }
.field { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font-size: 14px; min-width: 0; overflow-x: auto; white-space: nowrap; }
.field.code { font: 13px/1.4 var(--mono); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--chip); color: var(--chip-text); font-weight: 500; }
.chip.off { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.arrow-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toggle-list { display: grid; gap: 8px; font-size: 14px; }
.toggle-list label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sw { width: 34px; height: 20px; border-radius: 999px; background: var(--line); position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sw.on { background: var(--jay); }
.sw.on::after { transform: translateX(14px); }
.mini-thread { display: grid; gap: 8px; font-size: 13px; }
.mini-thread div { padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.mini-thread div:not(:first-child) { margin-left: 18px; position: relative; }
.mini-thread div:not(:first-child)::before { content: ""; position: absolute; left: -12px; top: -8px; bottom: 50%; width: 10px; border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); border-bottom-left-radius: 8px; }
.log { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.log td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.log tr:last-child td { border-bottom: 0; }
.log td:first-child { font: 12.5px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; width: 64px; }
.st { font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.st.ok { background: var(--ok-bg); color: var(--ok); }
.st.warn { background: var(--warn-bg); color: var(--warn); }
.st.bad { background: var(--bad-bg); color: var(--bad); }
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; padding-top: 8px; }
.timeline::before { content: ""; position: absolute; left: 10%; right: 10%; top: 17px; height: 2px; background: linear-gradient(90deg, var(--bad), var(--warn), var(--ok)); opacity: .55; }
.tl { display: grid; justify-items: center; gap: 8px; text-align: center; position: relative; font-size: 12.5px; color: var(--muted); }
.tl i { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 3px solid var(--warn); }
.tl:first-child i { border-color: var(--bad); }
.tl:last-child i { border-color: var(--ok); background: var(--ok); }
.tl b { font: 600 13px/1 var(--mono); color: var(--text); }

/* Trust */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.trust-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.trust-item { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.trust-item dt { font: 600 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.trust-item dd { margin: 0; }
.trust-item code { background: var(--chip); color: var(--chip-text); padding: 2px 6px; border-radius: 5px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 600 13px/1 var(--mono); color: var(--jay); letter-spacing: .08em; }
.steps p { color: var(--muted); font-size: 15px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: grid; gap: 16px; align-content: start; }
.plan .amount { font: 800 58px/1 var(--display); letter-spacing: -.04em; }
.plan .amount small { font: 500 16px/1 var(--body); color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.plan.main { border-color: var(--jay); box-shadow: 0 0 0 1px var(--jay), var(--shadow); }
.calc { display: grid; gap: 12px; padding: 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.calc label { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.calc output { font: 700 15px/1 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.calc input[type="range"] { width: 100%; accent-color: var(--jay); }
.calc .total { display: flex; justify-content: space-between; align-items: baseline; }
.calc .total b { font: 800 30px/1 var(--display); letter-spacing: -.03em; }
.calc .fine { font-size: 12.5px; color: var(--muted); }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 18px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--jay); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; font-size: 15.5px; }

/* CTA band + footer */
.cta { background: var(--night); color: var(--night-text); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 120%, rgba(42,99,216,.45), transparent 70%); pointer-events: none; }
.cta .wrap { position: relative; padding-block: 96px; display: grid; justify-items: center; text-align: center; gap: 22px; }
.cta img { width: 72px; height: 72px; }
.cta p { color: var(--night-muted); max-width: 34em; }
.foot { background: var(--night); color: var(--night-muted); border-top: 1px solid var(--night-line); font-size: 14px; }
.foot .wrap { padding-block: 34px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--night-muted); text-decoration: none; }
.foot a:hover { color: var(--night-text); }

/* ---------- Document pages ---------- */
.doc-hero { background: var(--night); color: var(--night-text); padding-block: 64px 56px; position: relative; overflow: hidden; }
.doc-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 85% 0%, rgba(42,99,216,.35), transparent 70%); pointer-events: none; }
.doc-hero .wrap { position: relative; display: grid; gap: 14px; }
.doc-hero p { color: var(--night-muted); max-width: 40em; font-size: 18px; }
.doc-hero h1 { font-size: clamp(36px, 5vw, 60px); }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-block: 56px 96px; }
.doc-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); align-self: start; display: grid; gap: 10px; font-size: 15px; }
.doc-nav a { color: var(--muted); text-decoration: none; }
.doc-nav a:hover { color: var(--text); }
.prose { max-width: 46em; display: grid; gap: 18px; }
.prose h2 { font-size: 30px; margin-top: 26px; scroll-margin-top: 90px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 7px; }
.prose .muted { color: var(--muted); }
.callout { background: var(--chip); border-radius: 12px; padding: 14px 18px; font-size: 15px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 15px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { background: var(--surface-2); font-weight: 600; }
.table-wrap tr:last-child td { border-bottom: 0; }


/* ---------- Contact ---------- */
.contact { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px;
  display: grid; gap: 22px; box-shadow: var(--shadow); margin-top: -96px; position: relative; z-index: 2;
}
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.topic { position: relative; cursor: pointer; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic span {
  display: grid; gap: 2px; padding: 14px 16px 14px 44px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--bg); transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; height: 100%;
}
.topic span::before {
  content: ""; position: absolute; left: 16px; top: 17px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease;
}
.topic b { font-weight: 600; font-size: 15px; }
.topic small { color: var(--muted); font-size: 13px; }
.topic:hover span { border-color: color-mix(in srgb, var(--jay) 45%, var(--line)); }
.topic input:checked + span { border-color: var(--jay); background: var(--chip); }
.topic input:checked + span::before { border-color: var(--jay); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 8px var(--jay); }
.topic input:focus-visible + span { outline: 3px solid var(--alert); outline-offset: 2px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: grid; gap: 7px; min-width: 0; }
.fld label { font-weight: 600; font-size: 14px; }
.fld .opt { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }
.fld input, .fld textarea, .affix {
  width: 100%; font: 16px/1.4 var(--body); color: var(--text); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.fld textarea { resize: vertical; min-height: 150px; }
.fld input::placeholder, .fld textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.fld input:focus, .fld textarea:focus, .affix:focus-within { outline: none; border-color: var(--jay); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--jay) 18%, transparent); }
.affix { display: flex; align-items: center; gap: 2px; padding: 0 0 0 14px; }
.affix span { color: var(--muted); font: 14px/1 var(--mono); }
.affix input { border: 0; background: transparent; padding-left: 4px; box-shadow: none !important; }
.hint { font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 4px; }
.submit-row .fine { font-size: 13px; color: var(--muted); }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.form-status:empty { display: none; }
.form-status { font-size: 15px; padding: 12px 16px; border-radius: 12px; }
.form-status.ok { background: var(--ok-bg); color: var(--ok); font-weight: 500; }
.form-status.error { background: var(--bad-bg); color: var(--bad); font-weight: 500; }
.contact-side { display: grid; gap: 0; border-top: 1px solid var(--line); }
.side-block { display: grid; gap: 8px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.side-block .big { font: 800 34px/1 var(--display); letter-spacing: -.03em; }
.side-block .muted { color: var(--muted); font-size: 15px; }
.side-block .mail { font: 600 17px/1.3 var(--mono); word-break: break-all; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23178A58' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .pipeline { grid-template-columns: 1fr; }
  .lane + .lane { border-left: 0; border-top: 1px solid var(--night-line); }
  .stream { height: 200px; }
  .rule { margin: 16px 20px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-rule, .t-thread, .t-fields, .t-log, .t-retry { grid-column: span 2; grid-row: auto; }
  .trust, .pricing { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .proof .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--night-line); }
  .doc { grid-template-columns: 1fr; gap: 28px; }
  .doc-nav { position: static; display: flex; flex-wrap: wrap; gap: 16px; }
  .faq { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact-form { margin-top: -72px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .nav-links a:not(.btn) { display: none; }
  .section { padding-block: 72px; }
  .answer, .answers-head { grid-template-columns: 1fr; }
  .answers-head div:first-child { display: none; }
  .answers-head div:last-child { padding-left: 24px; }
  .steps { grid-template-columns: 1fr; }
  .mock-row { grid-template-columns: 1fr; gap: 6px; }
  .trust-item { grid-template-columns: 1fr; gap: 6px; }
  .proof .wrap { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--night-line); }
  .timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); font-size: 11px; }
  .topics, .row-2 { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; margin-top: -56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
