/* Self-hosted fonts — no third-party requests */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-500.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.ttf") format("truetype");
  font-weight: 500 600; font-style: normal; font-display: swap;
}

/* ==========================================================================
   SlateGrid — design system
   Tokens, layout, components. Light + dark themes via [data-theme].
   ========================================================================== */

:root {
  --ink: #1D2733;
  --ink-2: #38465A;
  --muted: #5A6979;
  --accent: #E0693C;
  --accent-ink: #B44A22;
  --accent-btn: #C4542B;
  --on-accent: #FFFFFF;
  --paper: #F6F5F3;
  --surface: #FFFFFF;
  --surface-2: #EFEEEA;
  --line: rgba(29, 39, 51, .13);
  --line-strong: rgba(29, 39, 51, .28);
  --shadow: 0 1px 2px rgba(29, 39, 51, .04), 0 18px 40px -28px rgba(29, 39, 51, .35);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --ink: #F3F5F7;
  --ink-2: #D6DEE6;
  --muted: #93A3B3;
  --accent: #FF7A4F;
  --accent-ink: #FF9772;
  --accent-btn: #FF7A4F;
  --on-accent: #14100D;
  --paper: #0C1116;
  --surface: #121A21;
  --surface-2: #182129;
  --line: rgba(243, 245, 247, .14);
  --line-strong: rgba(243, 245, 247, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 24px 50px -30px rgba(0, 0, 0, .9);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.022em; line-height: 1.04; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(60px, 8vw, 112px) 0; }
.section--tight { padding: clamp(44px, 5vw, 72px) 0; }
.section--flush { padding: 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band--ink { background: #10161C; color: #F3F5F7; border-color: rgba(255,255,255,.1); }
.band--ink .muted, .band--ink .lead { color: #A9B6C4; }
.band--ink .eyebrow { color: #A9B6C4; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 18px; z-index: 100; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }

/* ---------- type ---------- */
.display { font-size: clamp(2.6rem, 6.2vw, 4.9rem); letter-spacing: -.03em; }
.h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -.01em; line-height: 1.2; }
.h4 { font-size: 1.06rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 1.6; max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.em { color: var(--accent); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; letter-spacing: .04em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--accent); border-radius: 2px; flex: none; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand svg { height: 30px; width: auto; }
.brand--stack svg { height: 44px; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { font-size: .92rem; color: var(--ink-2); position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); transition: right .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: 12px; flex: none; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface); }
.icon-btn svg { width: 18px; height: 18px; }
[data-theme="light"] .ico-moon { display: block; }
[data-theme="light"] .ico-sun { display: none; }
[data-theme="dark"] .ico-moon { display: none; }
[data-theme="dark"] .ico-sun { display: block; }

.burger { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--ink); color: var(--paper);
  font-size: .94rem; font-weight: 500; letter-spacing: -.01em;
  cursor: pointer; transition: transform .18s var(--ease), background .2s var(--ease), border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); background: var(--ink-2); }
.btn--accent { background: var(--accent-btn); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-btn); filter: brightness(1.06); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn--light { background: #F3F5F7; color: #1D2733; }
.btn--light:hover { background: #fff; }
.btn--sm { padding: 10px 18px; font-size: .86rem; }
.btn--block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: gap .2s var(--ease), border-color .2s; }
.link-arrow:hover { gap: 14px; border-color: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 20px 0 22px; }
.hero .lead { max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero__meta div { display: flex; flex-direction: column; gap: 2px; }
.hero__meta b { font-family: var(--font-display); font-weight: 500; font-size: 1rem; }
.hero__meta span { font-size: .8rem; color: var(--muted); }

/* mark stage — composed logo geometry */
.stage {
  position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--line);
  border-radius: 26px; background:
    linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / 25% 100%,
    linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 0 / 100% 25%,
    var(--surface);
  overflow: hidden;
}
.stage__mark { position: absolute; inset: 22%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 7%; }
.stage__mark i { display: block; border-radius: 22%; background: var(--ink); }
.stage__mark i:nth-child(2) { background: var(--accent); border-radius: 999px; }
.stage__cap { position: absolute; left: 18px; bottom: 16px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stage__tag { position: absolute; padding: 7px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .76rem; color: var(--ink-2); white-space: nowrap; box-shadow: var(--shadow); }
.stage__tag--a { top: 14%; right: 8%; }
.stage__tag--b { bottom: 20%; left: 6%; }
.stage__tag--c { top: 54%; right: 4%; }

/* ---------- marquee ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.strip__track { display: flex; gap: 0; width: max-content; animation: slide 34s linear infinite; }
.strip__track span {
  display: inline-flex; align-items: center; gap: 22px; padding: 14px 0;
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.strip__track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip__track { animation: none; } }

/* ---------- section headers ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head__r { max-width: 34ch; }
.sec-head .h2 { margin-top: 14px; max-width: 22ch; }
@media (max-width: 800px) { .sec-head { flex-direction: column; align-items: flex-start; } }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__ico { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; background: var(--paper); }
.card__ico svg { width: 22px; height: 22px; }
.card p { color: var(--muted); font-size: .97rem; }
.card__list { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.card__list li { font-size: .92rem; color: var(--muted); display: flex; gap: 9px; }
.card__list li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); margin-top: 9px; flex: none; }
.card .link-arrow { margin-top: auto; align-self: flex-start; font-size: .9rem; }

/* feature (big split card) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: var(--surface); }
.feature__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.feature__aside { border-left: 1px solid var(--line); padding: clamp(28px, 4vw, 44px); background: var(--surface-2); }
.band--ink .feature { background: #131A21; border-color: rgba(255,255,255,.12); }
.band--ink .feature__aside { background: #0E1419; border-color: rgba(255,255,255,.1); }
.band--ink .feature__body p, .band--ink .feature__aside p { color: #A9B6C4; }

/* ---------- numbered steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 28px 26px 30px 0; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step__n { font-family: var(--font-display); font-size: .82rem; letter-spacing: .16em; color: var(--accent); }
.step h3 { margin: 14px 0 8px; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .93rem; }

/* ---------- list rows ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 40px 1fr 1.2fr auto; gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row__n { font-family: var(--font-display); color: var(--muted); font-size: .85rem; padding-top: 2px; }
.row h4 { font-size: 1rem; }
.row p { color: var(--muted); font-size: .93rem; }
.row__tag { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

/* ---------- work tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--surface); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; isolation: isolate; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .95; }
.tile--1::before { background: radial-gradient(120% 110% at 15% 10%, #E0693C 0%, #B44A22 38%, #1D2733 100%); }
.tile--2::before { background: linear-gradient(135deg, #1D2733 0%, #38465A 55%, #5A6979 100%); }
.tile--3::before { background: radial-gradient(90% 90% at 85% 20%, #F0D9C9 0%, #E0693C 45%, #8E3B1F 100%); }
.tile--4::before { background: linear-gradient(160deg, #F6F5F3 0%, #DCD8D0 100%); }
.tile--5::before { background: radial-gradient(100% 100% at 20% 80%, #2C3A47 0%, #10161C 70%); }
.tile--6::before { background: linear-gradient(120deg, #5A6979 0%, #1D2733 70%); }
.tile__label { font-family: var(--font-display); font-size: 1.05rem; color: #fff; letter-spacing: -.01em; }
.tile--4 .tile__label { color: #1D2733; }
.tile__sub { font-size: .8rem; color: rgba(255,255,255,.72); }
.tile--4 .tile__sub { color: #5A6979; }
.tile__grid { position: absolute; inset: 0; z-index: -1; opacity: .16; background-image: linear-gradient(to right, #fff 1px, transparent 1px), linear-gradient(to bottom, #fff 1px, transparent 1px); background-size: 12.5% 12.5%; }
.tile--4 .tile__grid { opacity: .5; background-image: linear-gradient(to right, #1D2733 1px, transparent 1px), linear-gradient(to bottom, #1D2733 1px, transparent 1px); }

/* ---------- pricing / packages ---------- */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.pack { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 32px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.pack--focus { border-color: var(--ink); box-shadow: var(--shadow); position: relative; }
.band--ink .pack { background: #131A21; border-color: rgba(255,255,255,.12); }
.band--ink .pack--focus { border-color: var(--accent); }
.pack__badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.pack__name { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pack h3 { font-size: 1.6rem; }
.pack__meta { font-size: .88rem; color: var(--muted); }
.pack ul { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.pack li { font-size: .93rem; display: flex; gap: 10px; color: var(--ink-2); }
.band--ink .pack li { color: #C7D2DC; }
.pack li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); margin-top: 9px; flex: none; }
.pack .btn { margin-top: auto; }

/* ---------- quote / callout ---------- */
.quote { border-left: 2px solid var(--accent); padding: 6px 0 6px 26px; max-width: 40ch; }
.quote p { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.3; letter-spacing: -.01em; }
.quote cite { display: block; margin-top: 14px; font-style: normal; font-size: .85rem; color: var(--muted); }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; font-family: var(--font-display); font-size: clamp(1rem, 1.4vw, 1.15rem); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s var(--ease); flex: none; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq__a { padding: 0 0 22px; color: var(--muted); max-width: 68ch; font-size: .97rem; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: clamp(56px, 8vw, 100px) 0; }
.cta h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -.03em; }
.cta p { margin: 18px auto 0; max-width: 52ch; }
.cta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 34px; background: var(--paper); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: .93rem; color: var(--ink-2); }
.footer a:hover { color: var(--accent); }
.footer__note { margin-top: 18px; color: var(--muted); font-size: .9rem; max-width: 34ch; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); flex-wrap: wrap; }
.footer__bottom .mono { color: var(--muted); }

/* ---------- page head (inner pages) ---------- */
.page-head { padding: clamp(48px, 6vw, 84px) 0 clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 18px 0 18px; letter-spacing: -.03em; }
.breadcrumb { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- prose (legal + about) ---------- */
.doc { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.doc__toc { position: sticky; top: 100px; }
.doc__toc h4 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.doc__toc ol { display: flex; flex-direction: column; gap: 8px; counter-reset: t; }
.doc__toc a { font-size: .89rem; color: var(--muted); }
.doc__toc a:hover { color: var(--accent); }
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin: 44px 0 12px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 1rem; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 12px 0 0; padding-left: 0; display: flex; flex-direction: column; gap: 8px; }
.prose ul li { display: flex; gap: 10px; }
.prose ul li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); margin-top: 10px; flex: none; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.callout { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 18px 20px; font-size: .93rem; color: var(--muted); margin: 20px 0; }
.updated { font-size: .82rem; color: var(--muted); letter-spacing: .04em; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.info-list div { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.info-list dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.info-list dd { margin: 0; font-size: .98rem; text-align: right; }
.info-list dd a:hover { color: var(--accent); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; width: 100%;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__note { font-size: .8rem; color: var(--muted); }
.form__status { font-size: .88rem; color: var(--accent); min-height: 1.2em; }

/* ---------- 404 ---------- */
.err { text-align: center; padding: clamp(80px, 14vw, 160px) 0; }
.err h1 { font-size: clamp(4rem, 14vw, 9rem); letter-spacing: -.05em; }
.err p { margin: 12px auto 30px; color: var(--muted); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid, .feature, .contact-grid, .doc { grid-template-columns: 1fr; }
  .doc__toc { position: static; display: none; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-bottom: 1px solid var(--line); }
  .step:nth-child(2n) { border-right: 0; }
  .feature__aside { border-left: 0; border-top: 1px solid var(--line); }
  .packs { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stage { max-width: 480px; }
  .hero__grid > .stage, .hero__grid > div:last-child { order: -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav {
    display: none; position: fixed; inset: 74px 0 auto; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 20px; flex-direction: column;
    align-items: flex-start; gap: 4px; box-shadow: var(--shadow); margin: 0;
  }
  .nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a::after { display: none; }
  .nav[data-open="true"] { display: flex; }
  .burger { display: grid; }
  .header__actions .btn { display: none; }
  .row { grid-template-columns: 28px 1fr; }
  .row p { grid-column: 2; }
  .row__tag { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; }
  .hero__meta { gap: 18px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .field--row { grid-template-columns: 1fr; }
}

[data-theme="dark"] .band--ink { background: #151D26; }
[id] { scroll-margin-top: 92px; }

@media print {
  .header, .footer, .strip, .cta { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- server-rendered form states (PHP) ---------- */
.form__err { font-size: .8rem; color: #C4451F; }
[data-theme="dark"] .form__err { color: #FF9B76; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C4451F; }
.form__alert {
  border: 1px solid #E6B4A2; background: #FDF1EC; color: #8C3417;
  border-radius: 12px; padding: 12px 14px; font-size: .9rem;
}
.form__success {
  border: 1px solid #B9D3BC; background: #EFF6EF; color: #24512B;
  border-radius: 12px; padding: 14px 16px; font-size: .93rem; line-height: 1.55;
}
[data-theme="dark"] .form__alert { background: #2A1712; border-color: #5A2B1C; color: #F0B49C; }
[data-theme="dark"] .form__success { background: #14251A; border-color: #2C4632; color: #B7D9BE; }
.form__success strong { display: block; margin-bottom: 2px; }
