/* SonicGP AUTOLAB — shared styles (direction A: app-faithful dark) */

/* Onest (OFL), self-hosted: Google Fonts can be slow from Russia and would block the first paint.
   Subsets as Google cuts them; math carries → and ≈, latin-ext carries ₽. */
@font-face { font-family: "Onest"; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/onest-math.woff2") format("woff2");
  unicode-range: U+2190, U+2192, U+2194-21AE, U+2216-22FF; }

:root {
  --bg: #070a12;
  --panel: rgba(255, 255, 255, .035);
  --panel-2: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f3f6fc;
  --text-2: #c6cedd;
  --muted: #9aa6bd;
  --dim: #8490a8;
  --accent: #2f7dff;
  --accent-soft: #8ab4ff;
  --accent-tint: rgba(47, 125, 255, .12);
  --accent-line: rgba(47, 125, 255, .32);
  --btn: #1f6af5;       /* white text on it: 4.7:1 */
  --btn-hover: #185ee0;
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius: 18px;
  --gutter: 16px;
  --container: 1200px;
  --header-h: 64px;
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
/* padding keeps keyboard focus out from under the sticky header; the margins below subtract it so anchor jumps land as before */
html { scroll-padding-top: calc(var(--header-h) + 12px); }
section[id] { scroll-margin-top: -12px; }
#feedback { scroll-margin-top: 12px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font: 400 1rem/1.6 "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { margin: 0; color: var(--text); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; height: auto; }
strong { color: var(--text); font-weight: 600; }

a { color: var(--accent-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: #b9d1ff; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
main:focus { outline: none; }

.nw { white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--btn); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 14px;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none;
  transition: background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn--primary {
  background: var(--btn); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 30px -12px rgba(47, 125, 255, .75);
}
.btn--primary:hover {
  background: var(--btn-hover); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 14px 38px -10px rgba(47, 125, 255, .9);
}
.btn--ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); color: #fff; }
.btn--sm { min-height: 40px; padding: 8px 14px; gap: 8px; border-radius: 12px; font-size: .875rem; }
.btn--lg { min-height: 54px; padding: 14px 24px; }
.btn .icon { width: 1.15em; height: 1.15em; }
@media (max-width: 374px) { .btn:not(.btn--sm) { padding-inline: 16px; } }
@media (max-width: 559px) { .btn--sm, .brand { min-height: 44px; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 10, 18, .8);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand__tile {
  width: 38px; height: 38px; flex: none; overflow: hidden;
  border-radius: 24%; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 20px -6px rgba(47, 125, 255, .55);
}
.brand__tile img { display: block; width: 100%; height: 100%; transform: scale(1.03); }
.brand__name { display: flex; flex-direction: column; font-size: 1rem; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.brand__name span { margin-top: 5px; font-size: .6875rem; font-weight: 600; letter-spacing: .3em; color: var(--accent-soft); }

.nav { display: none; margin-left: auto; }
.nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 10px;
  color: var(--muted); font-size: .9375rem; font-weight: 500; text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.header__cta { margin-left: auto; }
@media (min-width: 1000px) {
  .nav { display: block; }
  .header__cta { margin-left: 12px; }
}
@media (max-width: 374px) { .cta-long { display: none; } }

/* ---------- shared section bits ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section--line { border-top: 1px solid var(--line); }
.section--tight { padding-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  color: var(--accent-soft); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; opacity: .7; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(1.875rem, 1.3rem + 2.1vw, 2.75rem); line-height: 1.12; }
.section-sub { margin-top: 16px; font-size: clamp(1rem, .96rem + .2vw, 1.125rem); }

.badge-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-tint); border: 1px solid var(--accent-line); color: var(--accent-soft);
}
.badge-icon--lg { width: 52px; height: 52px; border-radius: 16px; }
.badge-icon--lg .icon { width: 26px; height: 26px; }

.ticks { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 32px; color: var(--text-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238ab4ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
  border: 1px solid var(--accent-line);
}

/* device-like frame: light app panels read as the car's screen */
.screen {
  position: relative;
  padding: clamp(6px, 1vw, 10px);
  border-radius: clamp(16px, 2vw, 24px);
  background: linear-gradient(180deg, #171d2a, #0c1019);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 36px 70px -34px rgba(0, 0, 0, .95),
    0 24px 80px -44px rgba(47, 125, 255, .55);
}
.screen img { display: block; width: 100%; height: auto; border-radius: clamp(10px, 1.3vw, 15px); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding-block: clamp(36px, 6vw, 88px) clamp(16px, 3vw, 40px); }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero::before {
  background:
    radial-gradient(55% 60% at 78% 34%, rgba(47, 125, 255, .2), transparent 70%),
    radial-gradient(40% 45% at 6% 0%, rgba(47, 125, 255, .1), transparent 70%);
}
.hero::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 62% 30%, #000, transparent 72%);
  mask-image: radial-gradient(70% 70% at 62% 30%, #000, transparent 72%);
}
.hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } }

.hero h1 { font-size: clamp(1.75rem, 10.2vw - 3.5px, 3.6rem); line-height: 1.06; letter-spacing: -.03em; }
@media (min-width: 1024px) { .hero h1 { font-size: min(3.6rem, 5.2vw - 6.5px); } }
.hero h1 .accent { color: var(--accent-soft); }
.lead { max-width: 34em; margin-top: 22px; color: var(--text-2); font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.actions .btn { flex: 1 1 auto; }

.trust { display: grid; gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: .9375rem; line-height: 1.35; }
.trust__icon {
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent-tint); border: 1px solid var(--accent-line); color: var(--accent-soft);
}
.trust__icon .icon { width: 17px; height: 17px; }

.hero__visual { position: relative; width: 100%; max-width: 620px; margin-inline: auto; padding: 0 clamp(14px, 3vw, 26px) 40px 0; }
@media (max-width: 479px) { .hero__visual { padding-bottom: 80px; } }
.screen--hero {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 50px 90px -40px rgba(0, 0, 0, .95),
    0 40px 120px -40px rgba(47, 125, 255, .6);
}
.hud-float {
  position: absolute; right: 0; bottom: 0;
  width: clamp(124px, 31%, 184px);
  padding: 8px; border-radius: 18px;
  background: rgba(13, 17, 27, .82);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 28px 50px -18px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .4);
}
.hud-float__label {
  display: flex; align-items: center; gap: 8px; padding: 2px 4px 8px;
  color: var(--text-2); font-size: .75rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 3px rgba(61, 220, 151, .18); }
/* the source has a 2px light strip at the bottom: crop it and clip the light corners */
.hud-float img { display: block; width: 100%; height: auto; aspect-ratio: 257 / 239; object-fit: cover; object-position: top; border-radius: 11px; }

/* ---------- features ---------- */
.feature-list { display: grid; gap: clamp(72px, 9vw, 128px); }
.feature { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 72px); }
  .feature:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .feature:nth-child(even) .feature__media { order: -1; }
}
.feature__num {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  color: var(--accent-soft); font-size: .8125rem; font-weight: 600; letter-spacing: .14em;
}
.feature__num::after { content: ""; flex: 0 0 48px; height: 1px; background: linear-gradient(90deg, rgba(138, 180, 255, .7), transparent); }
.feature h3 { margin-bottom: 14px; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem); line-height: 1.15; }
.feature__copy > p + p { margin-top: 12px; }
.note { margin-top: 18px; font-size: .9375rem; }
.where {
  display: flex; align-items: flex-start; gap: 10px; width: fit-content; max-width: 100%;
  margin-top: 24px; padding: 10px 14px; border-radius: 12px;
  background: rgba(47, 125, 255, .08); border: 1px solid rgba(47, 125, 255, .24);
  color: var(--text); font-size: .875rem; line-height: 1.45;
}
.where .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent-soft); }
.where__label { display: block; margin-bottom: 2px; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.feature__media { position: relative; }
.feature__media > .screen { max-width: 640px; }
@media (min-width: 960px) { .feature__media > .screen { margin-inline: auto; } }

/* two screens layered in one grid cell (no absolute positioning, so height stays honest) */
.stack { display: grid; }
.stack > .screen { grid-area: 1 / 1; max-width: none; margin: 0; }
.stack--overview > .screen:first-child { margin-bottom: 9%; }
.stack--overview > .screen:last-child { align-self: end; justify-self: end; width: 70%; margin-right: 4%; }
.screen--thin { padding: 5px; border-radius: 14px; }
.screen--thin img { border-radius: 10px; }
.stack--help { gap: 14px; }
.stack--help > .screen { grid-area: auto; width: 90%; }
.stack--help > .screen:last-child { justify-self: end; }
/* phones: no overlap, so the status strip renders at full width instead of ~0.35× */
@media (max-width: 559px) {
  .stack--overview > .screen { grid-area: auto; }
  .stack--overview > .screen:first-child { margin-bottom: 12px; }
  .stack--overview > .screen:last-child { width: 100%; margin: 0; }
}

/* ---------- steps ---------- */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.step {
  padding: clamp(24px, 3vw, 32px); border-radius: var(--radius-lg);
  background: var(--panel); border: 1px solid var(--line);
}
.step__num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px;
  border-radius: 14px; background: var(--btn); color: #fff; font-size: 1.125rem; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 26px -10px rgba(47, 125, 255, .8);
}
.step h3 { margin-bottom: 10px; font-size: 1.25rem; line-height: 1.25; }
.start__cta { margin-top: 32px; }
@media (max-width: 559px) { .start__cta .btn { width: 100%; } }

/* ---------- safety ---------- */
.safety { display: grid; gap: 16px; }
/* intro gets its own row and the 5 cards go 2 + 2 + 1 (the longest one last, full width), so no card stretches to a taller neighbour */
@media (min-width: 720px) {
  .safety { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* + its 12px bottom padding + the grid gap ≈ .section-head's clamp(40px, 5vw, 64px) */
  .safety__intro { grid-column: 1 / -1; max-width: 720px; margin-bottom: clamp(12px, 5vw - 28px, 32px); }
  .safe-item:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1080px) { .safety { gap: 20px; } }
.safety__intro { padding: 4px 8px 12px 0; align-self: center; }
.safety__intro h2 { margin-top: 20px; font-size: clamp(1.875rem, 1.3rem + 2.1vw, 2.75rem); line-height: 1.12; }
.safety__intro p { margin-top: 12px; font-size: clamp(1rem, .96rem + .2vw, 1.125rem); }
.safety__intro .safety__more { margin-top: 16px; }
.safe-item { padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.safe-item h3 { margin: 18px 0 8px; font-size: 1.125rem; line-height: 1.3; }
@media (max-width: 719px) {
  .safe-item { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .safe-item .badge-icon { grid-row: span 2; }
  .safe-item h3 { margin: 0 0 6px; }
}

/* ---------- pricing ---------- */
.plans { display: grid; gap: 16px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 32px); border-radius: var(--radius-lg);
  background: var(--panel); border: 1px solid var(--line);
}
.plan__name { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; }
.plan__price { margin-top: 16px; color: #fff; font-size: clamp(2.25rem, 1.9rem + 1.4vw, 2.875rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.plan__term { margin-top: 10px; font-size: .9375rem; }
.plan__head { padding-bottom: 24px; }
.plan .ticks { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.plan--best {
  background: linear-gradient(180deg, rgba(47, 125, 255, .17), rgba(47, 125, 255, .04) 70%);
  border-color: rgba(90, 150, 255, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 90px -44px rgba(47, 125, 255, .9);
}
.plan__badge {
  position: absolute; top: clamp(22px, 3vw, 30px); right: clamp(22px, 3vw, 30px);
  padding: 5px 10px; border-radius: 999px;
  background: var(--btn); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .02em;
}
.plan__per {
  width: fit-content; margin-top: 12px; padding: 4px 10px; border-radius: 8px;
  background: rgba(138, 180, 255, .14); color: #d6e5ff; font-size: .875rem; font-weight: 600;
}

.pay-note {
  display: flex; align-items: flex-start; gap: 16px; margin-top: 20px;
  padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
}
.pay-note p { align-self: center; }
.pricing__more {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  margin-top: 12px; padding: 16px 16px 16px 24px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
}
@media (max-width: 559px) { .pricing__more { padding: 20px; } .pricing__more .btn { width: 100%; } }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }
@media (max-width: 559px) { .link-arrow { min-height: 44px; } }

/* ---------- FAQ ---------- */
.faq__body { max-width: 720px; }
.qa { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: background-color .2s, border-color .2s; }
.qa + .qa { margin-top: 10px; }
.qa[open] { background: var(--panel-2); border-color: var(--line-2); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border-radius: 16px; cursor: pointer; list-style: none;
  color: var(--text); font-size: 1.0625rem; font-weight: 600; line-height: 1.4;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover .qa__toggle { border-color: var(--accent-line); background: var(--accent-tint); }
.qa__toggle { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color .2s, border-color .2s; }
.qa__toggle::before, .qa__toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px; border-radius: 1px; background: var(--accent-soft);
  transform: translate(-50%, -50%); transition: transform .2s;
}
.qa__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa__a { padding: 0 20px 20px; }
.faq__more { margin-top: 24px; }
@media (max-width: 559px) { .faq__more { width: 100%; justify-content: space-between; text-align: left; } }
@media (min-width: 1080px) {
  .faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .faq .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
  .faq__body { max-width: none; }
}

/* ---------- feedback ---------- */
.feedback {
  display: grid; gap: 28px;
  padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(47, 125, 255, .22), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-2);
}
.feedback h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1.12; }
.feedback__copy p { max-width: 36em; margin-top: 14px; color: var(--text-2); font-size: clamp(1rem, .96rem + .2vw, 1.125rem); }
.feedback__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 559px) { .feedback__actions .btn { flex: 1 1 100%; } }
@media (max-width: 374px) { .feedback { padding: 20px; } }
.feedback__direct { font-size: .9375rem; }

/* ---------- footer ---------- */
.site-footer { padding-block: 48px 40px; border-top: 1px solid var(--line); color: var(--dim); font-size: .875rem; }
.footer__grid { display: grid; gap: 28px; }
.footer__brand p { margin-top: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 559px) {
  .footer__links { flex-direction: column; gap: 0; }
  .footer__links a { display: block; padding-block: 12px; }
}
.footer__links a { color: var(--text-2); font-size: .9375rem; text-decoration: none; }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.footer__legal { display: grid; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 860px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .footer__legal { grid-column: 1 / -1; }
}

/* ---------- knowledge base (kb.html only: every selector below is kb-specific) ---------- */
.nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .06); }

.kb-hero h1 { font-size: clamp(2rem, 1.35rem + 2.8vw, 3.25rem); line-height: 1.08; }
.kb-hero .lead { max-width: 38em; }

.kb { display: grid; gap: 32px; padding-top: clamp(8px, 2vw, 24px); padding-bottom: clamp(72px, 9vw, 120px); }
@media (min-width: 1024px) {
  .kb { grid-template-columns: 248px minmax(0, 1fr); gap: clamp(48px, 5vw, 72px); align-items: start; }
  /* full row height, so the sticky .toc inside has room to stick; never the scroll anchor, or a late font swap
     moves the article under a deep link (kb.html#faq) while this column stays put */
  .kb__aside { align-self: stretch; overflow-anchor: none; }
}
/* offsets on top of html's scroll-padding-top (header + 12px) */
.kb [id] { scroll-margin-top: 8px; }
/* deep links (the bot opens kb.html#payment etc.): land on the heading, not on the separator above it */
.kb-block[id] { scroll-margin-top: -36px; }
.kb-block[id]:first-child { scroll-margin-top: 8px; }

/* table of contents: collapsible on phones, sticky sidebar on desktop (same links twice, only one is displayed) */
.toc-m .qa__a { padding: 0 10px 12px; }
.toc { display: none; }
@media (min-width: 1024px) {
  .toc-m { display: none; }
  .toc {
    display: block; position: sticky; top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; overscroll-behavior: contain;
  }
}
.toc__title { margin: 0 0 10px 12px; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.toc-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.toc-list a {
  display: block; padding: 7px 12px; border-radius: 10px;
  color: var(--text-2); font-size: .9375rem; line-height: 1.35; text-decoration: none;
  transition: color .2s, background-color .2s;
}
.toc-list a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.toc-list .toc-list__faq { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
/* desktop list ≈ 520px with the bot link, so it fits short laptop viewports without inner scrolling */
.toc .toc-list { gap: 0; }
.toc .toc-list a { padding: 4px 12px; font-size: .875rem; }
@media (max-width: 559px) { .toc-m .toc-list a { padding-block: 12px; } }
.toc__ask { margin: 20px 0 0 12px; font-size: .9375rem; }

/* articles */
.kb__content { min-width: 0; max-width: 47rem; color: var(--text-2); font-size: 1.0625rem; }
.kb-block { padding-block: clamp(44px, 5vw, 64px); border-top: 1px solid var(--line); }
.kb-block:first-child { padding-top: 0; border-top: 0; }
.kb-block > h2 { font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.125rem); line-height: 1.15; }
.kb-block > h3 { font-size: 1.25rem; line-height: 1.3; }
.kb-label { color: var(--text); font-weight: 600; }
.kb-muted { color: var(--muted); font-size: .9375rem; }

.kb-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.kb-list li { position: relative; min-width: 0; padding-left: 24px; overflow-wrap: anywhere; }
.kb-list li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); }
.kb-block .ticks { gap: 8px; }

.kb-box { padding: clamp(18px, 3vw, 24px); border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.kb-box__title { margin-bottom: 16px; color: var(--text); font-weight: 600; }
.kb-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: kb-step; }
.kb-steps li { position: relative; min-height: 28px; padding-left: 44px; counter-increment: kb-step; }
.kb-steps li::before {
  content: counter(kb-step); position: absolute; left: 0; top: -1px;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
  background: var(--btn); color: #fff; font-size: .875rem; font-weight: 700; line-height: 1;
}

.kb-note { padding: 16px 20px; border-radius: var(--radius); border: 1px solid; }
.kb-note > * + * { margin-top: 8px; }
.kb-note__title { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.kb-note__title .icon { width: 20px; height: 20px; }
.kb-note--warn { background: rgba(242, 180, 90, .07); border-color: rgba(242, 180, 90, .32); }
.kb-note--warn .icon { color: #f2b45a; }
.kb-note--warn .kb-list li::before { background: #f2b45a; }
.kb-note--tip { background: rgba(61, 220, 151, .06); border-color: rgba(61, 220, 151, .28); }
.kb-note--tip .icon { color: #3ddc97; }
.kb-block .where { max-width: 100%; }

.kb-table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.kb-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.kb-table th, .kb-table td { padding: 14px 20px; text-align: left; vertical-align: top; }
.kb-table thead th { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.kb-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.kb-table tbody th { color: var(--text); font-weight: 600; }
.kb-table .kb-price { color: #fff; font-weight: 700; white-space: nowrap; }
@media (max-width: 479px) { .kb-table th, .kb-table td { padding: 12px 14px; } }
@media (max-width: 359px) { .kb-table th, .kb-table td { padding: 12px 10px; } }

.kb-dl { margin: 0; }
.kb-dl > div { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: 4px 14px; padding-block: 11px; }
.kb-dl > div:first-child { padding-top: 0; }
.kb-dl > div:last-child { padding-bottom: 0; }
.kb-dl > div + div { border-top: 1px solid var(--line); }
.kb-dl dt { color: var(--text); font-weight: 600; }
.kb-dl dd { margin: 0; }
@media (min-width: 560px) { .kb-dl > div { grid-template-columns: 9rem minmax(0, 1fr); } }
@media (max-width: 559px) { .kb-dl--wide > div { grid-template-columns: minmax(0, 1fr); } }
.kb-code {
  display: inline-block; margin: 1px 4px 1px 0; padding: 1px 8px; border-radius: 7px;
  background: var(--accent-tint); border: 1px solid var(--accent-line);
  color: var(--accent-soft); font-size: .8125rem; font-weight: 700; letter-spacing: .04em;
}

.kb-quote { margin: 0; padding: 16px 20px; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); color: var(--text); }

.kb-split { display: grid; gap: 12px; }
@media (min-width: 640px) { .kb-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kb-split > div { padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.kb-split__title { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; color: var(--text); font-weight: 600; }
.kb-split__title .icon { width: 20px; height: 20px; margin-top: .2em; }
.kb-split__yes .icon { color: #3ddc97; }
.kb-split__no .icon { color: #ff8a8a; }

.kb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.kb-actions .btn { padding-inline: 16px; }
@media (max-width: 559px) { .kb-actions .btn { flex: 1 1 100%; } }

.kb-faq__group > h3 { margin-bottom: 14px; font-size: 1.25rem; line-height: 1.3; }
.kb-faq .qa summary { font-size: 1rem; }
.kb-faq .qa__a { font-size: 1rem; }
.qa:target { border-color: rgba(90, 150, 255, .6); background: var(--panel-2); }
.qa__more { margin-top: 12px; font-size: .9375rem; }
.kb-block.kb-ask { padding-bottom: 0; }
.kb-ask .feedback { padding: clamp(24px, 4vw, 40px); }
.kb-ask .feedback h2 { font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.125rem); }

/* vertical rhythm inside an article: kept last so the component margin resets above don't override it */
.kb-block > * + * { margin-top: 16px; }
.kb-block > h2 + * { margin-top: 22px; }
.kb-block > h3 { margin-top: 40px; }
.kb-block > h2 + h3 { margin-top: 24px; }
.kb-block > h3 + * { margin-top: 12px; }
.kb-block > .kb-label + ul { margin-top: 10px; }
.kb-block > .kb-actions { margin-top: 24px; }
.kb-block > .kb-faq__group { margin-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
