/* GFY Bid — public site. One file, system fonts, no external resources.
   Tokens first; dark mode redefines them. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f5f8;
  --bg-card: #ffffff;
  --ink: #0d1016;
  --ink-2: #2b313b;
  --muted: #5a6371;
  --line: #e3e6eb;
  --line-strong: #cfd4dc;
  --accent: #e3141f;
  --accent-hover: #c40f19;
  --accent-2: #ff5a3c;
  --accent-soft: #fff0f0;
  --accent-ink: #ffffff;
  --link: #c40f19;
  --ok: #0f8a4b;
  --night: #0a0c11;
  --night-2: #12151d;
  --night-ink: #f3f5f8;
  --night-muted: #a3abb8;
  --night-line: rgba(255, 255, 255, .1);
  --code-bg: #0f1218;
  --code-ink: #e6e9ef;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(13, 16, 22, .05), 0 8px 24px rgba(13, 16, 22, .06);
  --shadow-lg: 0 2px 6px rgba(13, 16, 22, .06), 0 24px 60px rgba(13, 16, 22, .12);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --bg-soft: #10131a;
    --bg-card: #141821;
    --ink: #f1f3f7;
    --ink-2: #d4d9e1;
    --muted: #9aa3b1;
    --line: #232834;
    --line-strong: #323946;
    --accent: #f0303a;
    --accent-hover: #ff4d55;
    --accent-soft: #2a1416;
    --link: #ff6b72;
    --ok: #3ccf87;
    --code-bg: #07090d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
code { font: .9em var(--mono); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.aud-card.dark code, .hero code { background: rgba(255, 255, 255, .08); border-color: var(--night-line); color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px rgba(227, 20, 31, .35); }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--night-ink); border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { color: var(--ink); border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }

/* --- header --- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); border-bottom: 1px solid var(--night-line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--night-ink); }
.logo:hover { color: #fff; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-word { font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.logo-word b { color: var(--accent-2); font-weight: 800; margin-left: 3px; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a:not(.btn) { color: var(--night-muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.menu a:not(.btn):hover, .menu a[aria-current] { color: #fff; background: rgba(255, 255, 255, .06); }
.menu .btn { margin-left: 8px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--night-line); border-radius: 10px; background: transparent; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 12px; width: 18px; height: 2px; background: var(--night-ink); border-radius: 2px; content: ""; transition: transform .2s, opacity .2s; }
.burger span { top: 21px; }
.burger span::before { left: 0; top: -6px; }
.burger span::after { left: 0; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 960px) {
  .js .burger { display: block; }
  .js .menu { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; background: var(--night); border-bottom: 1px solid var(--night-line); }
  .js .menu.open { display: flex; }
  .js .menu a:not(.btn) { padding: 12px; font-size: 17px; }
  .js .menu .btn { margin: 10px 0 0; }
  .no-js .header-row { flex-wrap: wrap; padding: 10px 0; }
  .no-js .menu { flex-wrap: wrap; }
}

/* --- hero --- */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--night-ink); padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -260px; top: -380px; background: radial-gradient(circle, rgba(227, 20, 31, .38), rgba(255, 90, 60, .12) 40%, transparent 68%); filter: blur(10px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #ffb4ad; background: rgba(227, 20, 31, .14); border: 1px solid rgba(255, 90, 60, .35); padding: 8px 12px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(255, 90, 60, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 90, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 60, 0); } }
.hero h1 { color: #fff; font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.03; margin-bottom: 22px; }
.grad { background: linear-gradient(92deg, #ff6a4d, #e3141f 60%, #ff3b6b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--night-muted); max-width: 36em; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--night-muted); font-size: 15px; }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks svg, .ticks svg, .next svg, .doc-card svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.checks svg { width: 18px; height: 18px; color: var(--accent-2); flex: none; }

/* hero illustration */
.hero-art { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); }
.hero-art text { font-family: var(--font); fill: var(--night-ink); }
.hero-art .t-sm { font-size: 13px; fill: var(--night-muted); }
.hero-art .t-md { font-size: 17px; font-weight: 700; }
.hero-art .t-chip { font-size: 12.5px; font-weight: 600; fill: #ffd2cc; }
.hero-art .node { fill: rgba(255, 255, 255, .045); stroke: rgba(255, 255, 255, .14); }
.hero-art .chip { fill: #2a1013; stroke: rgba(255, 90, 60, .5); }
.hero-art .ico { fill: none; stroke: var(--night-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .lane { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 2; }
.hero-art .flow { fill: none; stroke: var(--accent-2); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 14; animation: flow 1.1s linear infinite; }
.hero-art .flow.back { stroke: #ffd2cc; animation-duration: 1.4s; }
.hero-art .flow.loop { stroke: #ff8a75; stroke-dasharray: 2 12; animation-duration: 1.8s; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.hero-art .ring { fill: none; stroke: var(--accent-2); transform-box: fill-box; transform-origin: center; animation: ring 3s ease-out infinite; }
.hero-art .ring.r2 { animation-delay: 1.5s; }
@keyframes ring { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
.hero-art .sbox { fill: rgba(10, 12, 17, .85); stroke: rgba(255, 255, 255, .14); }
.hero-art .t-big { font-size: 26px; font-weight: 800; fill: #fff; letter-spacing: -.02em; }

/* --- facts strip --- */
.strip { background: var(--night-2); color: var(--night-muted); border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); }
.strip ul { list-style: none; margin: 0 auto; padding: 18px var(--gutter); max-width: var(--wrap); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; font-weight: 600; font-size: 15px; }
.strip li { display: inline-flex; align-items: center; gap: 10px; }
.strip li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent-2); transform: rotate(45deg); }

/* --- sections --- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.soft { background: var(--bg-soft); }
.kicker { font: 700 13px/1 var(--font); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 14px; display: block; }
.section h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 18px; }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split .section-head { position: sticky; top: 100px; margin-bottom: 0; }
.split .section-cta { grid-column: 2; margin-top: 0; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card h3 { font-size: 18px; margin: 14px 0 6px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.card.wide { grid-column: 1 / -1; }
.ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.section-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.section-cta .note { color: var(--muted); font-size: 15px; }

/* audience switch (publishers / advertisers) */
.aud { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.aud-card { position: relative; border-radius: 20px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); background: var(--bg-card); box-shadow: var(--shadow); overflow: hidden; }
.aud-card.dark { background: var(--night); color: var(--night-ink); border-color: var(--night-line); }
.aud-card.dark h3, .aud-card.dark .tag { color: #fff; }
.aud-card.dark p, .aud-card.dark li { color: var(--night-muted); }
.aud-card.dark::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(227, 20, 31, .35), transparent 65%); pointer-events: none; }
.aud-card h3 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.aud-card .tag { display: inline-block; font: 700 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; border: 1px solid currentColor; opacity: .8; margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; color: var(--ink-2); }
.ticks li b { color: inherit; display: block; }
.aud-card.dark .ticks li b { color: #fff; }
.ticks svg { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.aud-card.dark .ticks svg { color: var(--accent-2); }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 26px 22px 24px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); box-shadow: var(--shadow); counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font: 800 40px/1 var(--font); letter-spacing: -.04em; background: linear-gradient(135deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -12px; width: 8px; height: 8px; border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: rotate(45deg); }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* integration */
.spec { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec th, .spec td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 38%; font-weight: 600; color: var(--muted); }
.int-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.int-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* code */
.code { position: relative; border-radius: var(--radius); background: var(--code-bg); color: var(--code-ink); border: 1px solid #1d222c; overflow: hidden; box-shadow: var(--shadow-lg); margin: 0 0 1.4em; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 16px; border-bottom: 1px solid #1d222c; font: 600 12px/1 var(--mono); letter-spacing: .05em; color: #8d96a5; text-transform: uppercase; min-height: 42px; }
.code-head::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 16px 0 0 #3a404c, 32px 0 0 #3a404c; margin-right: 38px; flex: none; }
.code-head span { margin-right: auto; }
.code pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; font: 13.5px/1.65 var(--mono); tab-size: 2; }
.code pre:focus-visible { outline-offset: -3px; }
.copy { font: 600 12px/1 var(--font); color: #c9cfd9; background: #1b2029; border: 1px solid #2a303b; border-radius: 7px; padding: 7px 10px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.copy:hover { color: #fff; border-color: #48505e; }
.copy.done { color: #7ee2a8; border-color: #2d6a48; }
.t-k { color: #ff9f8f; } .t-s { color: #a8e3a0; } .t-n { color: #f5c26b; } .t-l { color: #8ec5ff; } .t-c { color: #6c7686; font-style: italic; }

/* technology */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 26px 24px; border-radius: var(--radius); background: var(--night); color: var(--night-muted); border: 1px solid var(--night-line); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent); }
.stat strong { display: block; font-size: clamp(34px, 4.4vw, 48px); line-height: 1; font-weight: 800; letter-spacing: -.04em; color: #fff; margin-bottom: 10px; }
.stat strong small { font-size: .5em; letter-spacing: 0; color: #ffb4ad; margin-left: 4px; }
.stat p { margin: 0; font-size: 15px; }
.fineprint { color: var(--muted); font-size: 14px; margin-top: 16px; }
.tech-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }

/* CTA band */
.band { background: linear-gradient(120deg, #b30d16, var(--accent) 45%, #ff5a3c); color: #fff; border-radius: 24px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; box-shadow: 0 30px 60px rgba(227, 20, 31, .25); }
.band::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(26px, 3.4vw, 38px); }
.band p { margin: 0; opacity: .9; font-size: 18px; }
.band .btn { position: relative; z-index: 1; }
.btn-white { background: #fff; color: #b30d16; }
.btn-white:hover { color: #8f0a11; background: #fff; }
.btn-outline-white { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-outline-white:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .1); }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-aside .mail-big { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; text-decoration: none; color: var(--ink); margin: 6px 0 24px; word-break: break-all; }
.contact-aside .mail-big:hover { color: var(--accent); }
.contact-aside .mail-big .ic { flex: none; }
.next { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.next li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; color: var(--muted); }
.next li span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 14px; }
.next li b { color: var(--ink); display: block; }
.form { background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form .full { grid-column: 1 / -1; }
.field label, .field legend { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; color: var(--ink-2); padding: 0; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; font: 16px/1.4 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(227, 20, 31, .14); }
.field [aria-invalid="true"] { border-color: var(--accent); }
.field .err { display: none; color: var(--accent); font-size: 14px; margin-top: 6px; }
.field.has-err .err { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { margin: 0; position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; transition: border-color .15s, background .15s; }
.seg label small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; position: relative; }
.seg input:checked + .dot { border-color: var(--accent); }
.seg input:checked + .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.seg label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.seg input:focus-visible + .dot { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-foot p { margin: 0; color: var(--muted); font-size: 14px; max-width: 30em; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.bad { color: var(--accent); }
.form-done { grid-column: 1 / -1; text-align: center; padding: 32px 8px; }
.form-done .ic { margin: 0 auto 16px; width: 64px; height: 64px; border-radius: 50%; background: rgba(15, 138, 75, .12); color: var(--ok); }
.form-done .ic svg { width: 32px; height: 32px; }
.form-done h3 { font-size: 24px; }
.form-done p { color: var(--muted); }
button[disabled] { opacity: .6; cursor: progress; transform: none; }

/* --- footer --- */
.site-footer { background: var(--night); color: var(--night-muted); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin: 14px 0 0; max-width: 26em; font-size: 15px; }
.site-footer h2 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 14px; }
.site-footer nav a { display: block; color: var(--night-muted); text-decoration: none; padding: 5px 0; font-size: 15px; }
.site-footer nav a:hover, .site-footer .mail:hover { color: #fff; }
.site-footer .mail { color: #ffb4ad; text-decoration: none; font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--night-line); font-size: 14px; }

/* --- simple pages (legal, thanks, 404) --- */
.page-hero { background: var(--night); color: var(--night-ink); padding: clamp(44px, 7vw, 80px) 0 clamp(36px, 5vw, 56px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -320px; background: radial-gradient(circle, rgba(227, 20, 31, .35), transparent 65%); }
.page-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.03em; margin: 0; position: relative; z-index: 1; }
.page-hero p { color: var(--night-muted); margin: 12px 0 0; position: relative; z-index: 1; font-size: 18px; }
.page-body { padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.page-body .prose { max-width: 760px; }
.center-msg { text-align: center; padding: clamp(64px, 12vw, 140px) 0; }
.center-msg .code-num { font-size: clamp(72px, 14vw, 140px); font-weight: 800; letter-spacing: -.06em; line-height: 1; margin-bottom: 8px; }
.center-msg p { color: var(--muted); font-size: 18px; }
.center-msg .cta-row { justify-content: center; margin-top: 28px; }

/* --- prose (docs and legal) --- */
.prose { font-size: 16.5px; }
.prose h1 { font-size: clamp(32px, 4.4vw, 44px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.prose h2 { font-size: 26px; font-weight: 800; margin: 2.2em 0 .6em; padding-top: 8px; }
.prose h3 { font-size: 19px; margin: 1.8em 0 .5em; }
.prose .intro { font-size: 19px; color: var(--muted); margin-bottom: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose code { font: .9em var(--mono); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; word-break: break-word; }
.prose .code code { background: none; border: 0; padding: 0; font: inherit; word-break: normal; }
.tbl { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.tbl th, .tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { background: var(--bg-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { white-space: nowrap; }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 1.4em; }
.callout p:last-child { margin: 0; }
.callout.info { border-left-color: #3b82f6; }
.badge { display: inline-block; font: 700 11px/1 var(--font); letter-spacing: .05em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); vertical-align: 2px; }
.badge.opt { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
dl.gloss { margin: 0; }
dl.gloss dt { font-weight: 800; font-size: 19px; margin-top: 1.6em; scroll-margin-top: 90px; }
dl.gloss dd { margin: .3em 0 0; color: var(--ink-2); }

/* --- docs layout --- */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-top: 40px; padding-bottom: 72px; }
.docs-side { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 6px; }
.docs-group { font: 700 12px/1 var(--font); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 22px 0 8px 12px; }
.docs-nav .docs-group:first-child { margin-top: 4px; }
.docs-nav a, .toc a { display: block; text-decoration: none; color: var(--ink-2); padding: 7px 12px; border-radius: 8px; font-size: 15px; }
.docs-nav a:hover, .toc a:hover { background: var(--bg-soft); color: var(--ink); }
.docs-nav a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.toc { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); margin-left: 12px; }
.toc a { font-size: 14px; color: var(--muted); padding: 5px 12px; border-radius: 0 8px 8px 0; }
.docs-toc { margin-top: 18px; }
.docs-toc:has(.toc:empty), .docs-toc:not(:has(.toc)) { display: none; }
.docs-main { min-width: 0; max-width: 820px; }
.docs-help { margin-top: 56px; padding: 20px 22px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.docs-help p { margin: 0; }
.doc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.6em 0 2em; }
.doc-card { display: block; text-decoration: none; color: inherit; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.doc-card:hover { transform: translateY(-2px); border-color: var(--accent); color: inherit; }
.doc-card h3 { margin: 12px 0 4px; font-size: 18px; }
.doc-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* --- responsive --- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li::after { display: none; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .int-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .split .section-head { position: static; margin-bottom: 8px; }
  .split .section-cta { grid-column: auto; }
  .hero-art { max-width: 620px; margin: 8px auto 0; }
  .aud { grid-template-columns: 1fr; }
  .stats, .tech-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .docs { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .docs-side { min-width: 0; }
  .docs-side { position: static; max-height: none; overflow: visible; padding: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .docs-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .docs-nav .docs-group { display: none; }
  .docs-nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
  .docs-toc { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .cards, .steps, .stats, .tech-more, .doc-cards { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .strip ul { justify-content: flex-start; font-size: 14px; }
  .spec th, .spec td { padding: 11px 14px; display: block; width: auto; border: 0; }
  .spec th { padding-bottom: 0; }
  .spec tr { display: block; border-bottom: 1px solid var(--line); }
  .spec tr:last-child { border-bottom: 0; }
  .band-actions, .band-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
