/* ============================================================
   AIO_Bot — Public Pages Design System
   Shared stylesheet for landing + legal pages.
   Mobile-first. Dark default, light via [data-theme="light"].
   No webfonts (performance). No framework.
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Dark (default) */
  --bg:           #0a0a0d;
  --surface:      #111116;
  --surface-2:    #16161c;
  --surface-3:    #1d1d25;
  --surface-elev: #15151b;
  --line:         rgba(255,255,255,.06);
  --line-2:       rgba(255,255,255,.10);
  --line-3:       rgba(255,255,255,.16);

  --ink:          #f4f4f7;
  --ink-2:        #b4b4c2;
  --ink-3:        #7d7d8e;
  --ink-4:        #4a4a58;

  --accent:       #9147ff;
  --accent-2:     #7c35e6;
  --accent-3:     #a366ff;
  --accent-ink:   #ffffff;
  --accent-soft:  rgba(145,71,255,.10);
  --accent-ring:  rgba(145,71,255,.30);

  --danger:       #ef4444;
  --success:      #22c55e;
  --warning:      #f59e0b;

  --radius-xs:    6px;
  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  --shadow-1:     0 1px 2px rgba(0,0,0,.30);
  --shadow-2:     0 4px 16px rgba(0,0,0,.30), 0 0 0 1px rgba(255,255,255,.04);
  --shadow-3:     0 24px 60px rgba(0,0,0,.40), 0 0 0 1px rgba(255,255,255,.05);

  --ease:         cubic-bezier(.2,.8,.2,1);
  --ease-out:     cubic-bezier(.16,1,.3,1);

  /* 8-pt spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 96px; --s-10: 128px;

  /* Type scale — restrained, modern */
  --fz-xs:  12px;
  --fz-sm:  14px;
  --fz-md:  16px;
  --fz-lg:  18px;
  --fz-xl:  20px;
  --fz-2xl: 24px;
  --fz-3xl: 32px;
  --fz-4xl: 44px;
  --fz-5xl: clamp(40px, 6vw, 64px);

  --font-sans: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system,
               BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: Consolas, ui-monospace, SFMono-Regular, Menlo, monospace;

  color-scheme: dark;
}

html[data-theme="light"] {
  --bg:           #fafbfc;
  --surface:      #ffffff;
  --surface-2:    #f5f6f8;
  --surface-3:    #eceef2;
  --surface-elev: #ffffff;
  --line:         rgba(15,23,42,.07);
  --line-2:       rgba(15,23,42,.12);
  --line-3:       rgba(15,23,42,.18);

  --ink:          #0e1320;
  --ink-2:        #475063;
  --ink-3:        #7a8294;
  --ink-4:        #a8b0bf;

  --accent:       #7c3aed;
  --accent-2:     #6d28d9;
  --accent-3:     #9b6ef0;
  --accent-soft:  rgba(124,58,237,.08);
  --accent-ring:  rgba(124,58,237,.25);

  --shadow-1:     0 1px 2px rgba(15,23,42,.04);
  --shadow-2:     0 4px 16px rgba(15,23,42,.06), 0 0 0 1px rgba(15,23,42,.04);
  --shadow-3:     0 24px 60px rgba(15,23,42,.10), 0 0 0 1px rgba(15,23,42,.05);

  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme]) {
    --bg:           #fafbfc;
    --surface:      #ffffff;
    --surface-2:    #f5f6f8;
    --surface-3:    #eceef2;
    --surface-elev: #ffffff;
    --line:         rgba(15,23,42,.07);
    --line-2:       rgba(15,23,42,.12);
    --line-3:       rgba(15,23,42,.18);
    --ink:          #0e1320;
    --ink-2:        #475063;
    --ink-3:        #7a8294;
    --ink-4:        #a8b0bf;
    --accent:       #7c3aed;
    --accent-2:     #6d28d9;
    --accent-3:     #9b6ef0;
    --accent-soft:  rgba(124,58,237,.08);
    --accent-ring:  rgba(124,58,237,.25);
    --shadow-1:     0 1px 2px rgba(15,23,42,.04);
    --shadow-2:     0 4px 16px rgba(15,23,42,.06), 0 0 0 1px rgba(15,23,42,.04);
    --shadow-3:     0 24px 60px rgba(15,23,42,.10), 0 0 0 1px rgba(15,23,42,.05);
    color-scheme: light;
  }
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fz-md);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--s-4);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--s-6); }
}
@media (min-width: 1400px) { .container { max-width: 1240px; } }

/* ── Nav ────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(0,0,0,.4);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: 64px;
}
.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 600;
  letter-spacing: -.015em;
  font-size: var(--fz-lg);
  color: var(--ink);
}
.site-nav__brand img {
  width: 28px; height: 28px; border-radius: 7px;
}
.site-nav__spacer { flex: 1; }
.site-nav__links { display: none; gap: var(--s-6); }
@media (min-width: 880px) { .site-nav__links { display: inline-flex; } }
.site-nav__link {
  color: var(--ink-2);
  font-size: var(--fz-sm);
  font-weight: 500;
  transition: color .15s var(--ease);
}
.site-nav__link:hover { color: var(--ink); }

.site-nav__actions {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

.lang-btn {
  width: 30px; height: 22px;
  border-radius: 4px;
  overflow: hidden;
  opacity: .45;
  outline-offset: 2px;
  transition: opacity .15s var(--ease);
  padding: 0;
}
.lang-btn img { width: 100%; height: 100%; object-fit: cover; }
.lang-btn:hover { opacity: .85; }
.lang-btn[aria-pressed="true"] { opacity: 1; outline: 2px solid var(--accent); }

/* ── Buttons (matched to dashboard .btn-purple / .btn-ghost) ──── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  height: 38px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s;
}
.btn svg { width: 14px; height: 14px; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(145,70,255,.25);
}
.btn--primary:hover {
  background: var(--accent-2);
  box-shadow: 0 4px 16px rgba(145,70,255,.35);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover {
  border-color: rgba(145,70,255,.3);
  color: var(--ink);
  background: rgba(145,70,255,.04);
}

.btn--sm { height: 32px; padding: 5px 12px; font-size: 12px; border-radius: 6px; }
.btn--lg { height: 44px; padding: 11px 22px; font-size: 14px; border-radius: 10px; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

/* ── Typography ─────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: var(--fz-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.display {
  font-size: var(--fz-5xl);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.display em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
.h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; letter-spacing: -.018em; line-height: 1.22; }
.h3 { font-size: var(--fz-xl); font-weight: 600; letter-spacing: -.012em; line-height: 1.3; }
.lead {
  font-size: var(--fz-lg);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 60ch;
  text-wrap: pretty;
}
.muted   { color: var(--ink-2); }
.muted-2 { color: var(--ink-3); }

/* ── Sections ───────────────────────────────────────────────── */
.section { padding-block: var(--s-8); }
@media (min-width: 768px) {
  .section { padding-block: var(--s-9); }
}
.section--hero { padding-block: var(--s-9) var(--s-8); }
@media (min-width: 768px) {
  .section--hero { padding-block: 120px 96px; }
}
.section--tight { padding-block: var(--s-7); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-7);
  max-width: 64ch;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
  align-items: center;
}
.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding-block: var(--s-1);
}
.section-head--center .eyebrow::before,
.section-head--center .eyebrow::after {
  content: "";
  width: 24px; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-ring));
}
.section-head--center .eyebrow::after {
  background: linear-gradient(to left, transparent, var(--accent-ring));
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-5);
  isolation: isolate;
}
.hero__eyebrow-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--fz-xs);
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: var(--shadow-1);
  isolation: isolate;
}
.hero__eyebrow-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 50%, transparent),
    var(--line-2) 45%,
    color-mix(in srgb, var(--accent) 30%, transparent));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.hero__eyebrow-pill .pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 22%, transparent);
  animation: pillPulse 2.6s var(--ease-out) infinite;
}
@keyframes pillPulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 22%, transparent); }
  50%      { box-shadow: 0 0 0 7px color-mix(in srgb, var(--success) 0%, transparent); }
}
.hero__logo {
  width: 84px; height: 84px;
  border-radius: 22px;
  box-shadow:
    0 0 0 1px var(--line-2),
    0 24px 60px -16px color-mix(in srgb, var(--accent) 35%, transparent),
    0 8px 24px -8px rgba(0,0,0,.40);
  margin-bottom: var(--s-2);
}
.hero__title { max-width: 22ch; }
.hero__sub { max-width: 56ch; margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }
.hero__actions .btn { min-width: 160px; }

/* Card tag — small category eyebrow above each feature card title */
.card-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.card-link:hover .card-tag {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface-2));
}

/* Soft mesh-gradient backdrop for hero */
.hero-aura {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 65%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 95%);
}
.hero-aura::before,
.hero-aura::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .85;
}
.hero-aura::before {
  top: -260px; left: 50%;
  width: 900px; height: 600px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at center,
      color-mix(in srgb, var(--accent) 30%, transparent) 0%,
      transparent 55%);
}
.hero-aura::after {
  top: -120px; left: 30%;
  width: 480px; height: 480px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at center,
      color-mix(in srgb, #4f46e5 22%, transparent) 0%,
      transparent 60%);
}
/* Faint horizontal hairline at the hero's lower edge */
.section--hero {
  position: relative;
}
.section--hero::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: min(960px, 90%);
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    var(--line-2) 30%,
    var(--line-2) 70%,
    transparent);
  pointer-events: none;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--s-6);
  box-shadow: var(--shadow-1);
}

.card-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--s-6);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease-out),
              box-shadow .3s var(--ease);
}
.card-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%),
              color-mix(in srgb, var(--accent) 8%, transparent), transparent 40%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.card-link:hover {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line-2));
  transform: translateY(-4px);
  box-shadow:
    0 1px 2px rgba(0,0,0,.10),
    0 18px 40px -16px color-mix(in srgb, var(--accent) 35%, rgba(0,0,0,.40));
}
.card-link:hover::before { opacity: 1; }
.card-link > * { position: relative; z-index: 1; }

.card-link .card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background:
    linear-gradient(160deg,
      color-mix(in srgb, var(--accent) 22%, transparent),
      color-mix(in srgb, var(--accent) 6%, transparent) 70%);
  color: var(--accent);
  margin-bottom: var(--s-2);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 2px 6px -3px color-mix(in srgb, var(--accent) 30%, transparent);
  transition: transform .3s var(--ease-out);
}
.card-link:hover .card-icon { transform: scale(1.04) rotate(-2deg); }
.card-link .card-icon svg { width: 20px; height: 20px; }
.card-link h3 {
  font-size: var(--fz-lg);
  font-weight: 600;
  letter-spacing: -.015em;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.card-link p {
  color: var(--ink-2);
  font-size: var(--fz-sm);
  line-height: 1.6;
}

.badge {
  display: inline-flex; align-items: center;
  height: 20px; padding: 0 9px;
  border-radius: 999px;
  font-size: 10px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 18%, transparent),
      color-mix(in srgb, var(--accent) 8%, transparent));
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
}

/* ── Grid ───────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.grid > * { min-width: 0; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: var(--bg);
  border-top: 1px solid var(--line);
  font-size: var(--fz-sm);
  color: var(--ink-3);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-3) var(--s-5);
  padding-block: var(--s-6);
  text-align: center;
}
.site-footer a {
  color: var(--ink-2);
  transition: color .15s var(--ease);
}
.site-footer a:hover { color: var(--ink); }

/* ── Lang visibility (preserve existing pattern) ───────────── */
[data-lang] { display: none; }
[data-lang].visible { display: block; }
.site-footer [data-lang].visible,
.hero__eyebrow-pill [data-lang].visible,
.h1 [data-lang].visible,
.display [data-lang].visible,
.eyebrow [data-lang].visible,
.lead [data-lang].visible,
.btn [data-lang].visible,
.muted [data-lang].visible,
.tag [data-lang].visible,
li [data-lang].visible,
p [data-lang].visible,
strong [data-lang].visible,
.feature-list [data-lang].visible,
h3 [data-lang].visible,
h4 [data-lang].visible { display: inline; }

/* ── Platform card (landing /platforms section) ─────────────── */
.platform-card {
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.platform-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, currentColor 30%, currentColor 70%, transparent);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.platform-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at 50% -10%,
              color-mix(in srgb, currentColor 10%, transparent), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.platform-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, currentColor 25%, var(--line-2));
  box-shadow: 0 18px 38px -16px color-mix(in srgb, currentColor 30%, rgba(0,0,0,.40));
}
.platform-card:hover::before,
.platform-card:hover::after { opacity: 1; }
.platform-card > * { position: relative; z-index: 1; }

.platform-head {
  display: flex; align-items: center; gap: var(--s-3);
  padding-bottom: var(--s-4); margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.platform-mark { width: 26px; height: 26px; flex-shrink: 0; }
.platform-head h3 {
  font-size: var(--fz-xl); font-weight: 600;
  letter-spacing: -.018em;
  color: var(--ink);
}

.feature-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--s-2);
}
.feature-list li {
  color: var(--ink-2); font-size: var(--fz-sm); line-height: 1.55;
  padding-left: var(--s-5); position: relative;
}
.feature-list li > span,
.feature-list li > span > span { color: inherit; }
.feature-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 14px; height: 2px;
  background: var(--bullet-color, var(--accent));
  border-radius: 1px;
  opacity: .85;
}
.feature-list li.muted-2::before { opacity: .35; }

/* ── Access (sign-up) ───────────────────────────────────────── */
.access {
  position: relative;
  display: grid; gap: var(--s-7);
  grid-template-columns: 1fr;
  padding: var(--s-7);
  background:
    linear-gradient(145deg,
      color-mix(in srgb, var(--accent) 4%, var(--surface)) 0%,
      var(--surface) 60%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  isolation: isolate;
}
.access::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.access > * { position: relative; z-index: 1; }
@media (min-width: 900px) {
  .access { grid-template-columns: 1.05fr 1fr; padding: var(--s-8); }
}
.access__col { display: flex; flex-direction: column; gap: var(--s-4); }

.steps {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 17px; top: 32px; bottom: 32px;
  width: 1px;
  background: linear-gradient(to bottom,
    var(--accent-ring) 0,
    var(--line-2) 30%,
    var(--line) 100%);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-4) 0;
}
.step__num {
  position: relative;
  z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}
.step:first-child .step__num {
  background: linear-gradient(180deg, var(--accent-3), var(--accent));
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    0 0 0 5px var(--accent-soft),
    0 6px 14px -4px color-mix(in srgb, var(--accent) 50%, transparent),
    inset 0 1px 0 rgba(255,255,255,.18);
}
.step__body h4 {
  transition: color .2s var(--ease);
}
.step__body h4 { margin-bottom: var(--s-1); font-size: var(--fz-md); font-weight: 600; }
.step__body p  { font-size: var(--fz-sm); color: var(--ink-2); line-height: 1.55; }

/* ── Final CTA ──────────────────────────────────────────────── */
.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--s-9) var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s-5);
  box-shadow: var(--shadow-2);
  isolation: isolate;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: -40%; left: 50%;
  width: 760px; height: 540px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at center,
      color-mix(in srgb, var(--accent) 30%, transparent) 0%,
      transparent 55%);
  filter: blur(70px);
  z-index: -1;
}
.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: .4;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, #000 0%, transparent 75%);
  z-index: -1;
}
.final-cta .h1 { max-width: 22ch; }
.final-cta .lead { margin-inline: auto; }
.final-cta .hero__actions { justify-content: center; margin-top: var(--s-2); }

/* ── Prose (legal pages) ────────────────────────────────────── */
.page-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  padding-bottom: var(--s-7);
  margin-bottom: var(--s-7);
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow { color: var(--ink-3); }
.page-header h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  text-wrap: balance;
}
.page-header .updated {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: var(--fz-xs);
  font-weight: 500;
}

.prose {
  max-width: 70ch;
  color: var(--ink);
  font-size: var(--fz-md);
  line-height: 1.75;
}
.prose h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: var(--s-3);
  text-wrap: balance;
}
.prose .updated {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: var(--fz-xs);
  font-weight: 500;
  margin-bottom: var(--s-7);
}
.prose h2 {
  font-size: var(--fz-2xl);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-top: var(--s-7);
  margin-bottom: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: var(--s-6); }
.prose h3 {
  font-size: var(--fz-lg);
  font-weight: 600;
  letter-spacing: -.012em;
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
  color: var(--ink);
}
.prose p { color: var(--ink-2); margin-bottom: var(--s-3); }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { color: var(--ink-2); padding-left: var(--s-5); margin-bottom: var(--s-4); }
.prose li { margin-bottom: var(--s-2); }
.prose ul li::marker { color: var(--accent); }
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-ring);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s var(--ease);
}
.prose a:hover { text-decoration-color: var(--accent); }
.prose code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}
.prose .card {
  margin-block: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--s-5);
  box-shadow: none;
}
.prose .card p { margin-bottom: var(--s-1); color: var(--ink); }
.prose .card p:last-child { margin-bottom: 0; }

/* Anchor offset for sticky nav on prose pages */
.prose h2 { scroll-margin-top: 80px; }

/* ── Utilities ──────────────────────────────────────────────── */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── Scroll-reveal (subtle fade-up on enter) ────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-reveal-delay="1"] { transition-delay: .06s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: .12s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: .18s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: .24s; }

/* ── Motion preferences ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
  .site-nav, .site-footer, .hero-aura { display: none !important; background: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
