:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --fg: #15171c;
  --muted: #565c68;
  --line: #e2e2dc;
  --accent: #2448c9;
  --accent-hover: #1b389f;
  --accent-fg: #ffffff;
  --accent-soft: #e8edfb;
  --ok: #17784a;
  --no: #b3261e;
  --focus: #2448c9;
  --radius: 10px;
  --wrap: 1080px;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --fg: #e9eaee;
    --muted: #a0a6b2;
    --line: #2a2f3a;
    --accent: #8aa4ff;
    --accent-hover: #a9bcff;
    --accent-fg: #0f1115;
    --accent-soft: #1d2640;
    --ok: #5fd08f;
    --no: #ff8a80;
    --focus: #8aa4ff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 var(--sans);
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; margin-bottom: 24px; }
h3 { font-size: 18px; font-weight: 650; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
section { padding: 56px 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { section { padding: 80px 0; } }

/* Header */
.top { padding: 18px 0; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.brand { font-weight: 750; color: var(--fg); text-decoration: none; font-size: 18px; }
.brand-line { color: var(--muted); font-size: 15px; }

/* Hero */
.hero { border-top: 0; padding-top: 32px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; } }
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
}
.v { display: none; }
html:not([data-variant]) .v[data-v="a"],
html[data-variant="a"] .v[data-v="a"],
html[data-variant="b"] .v[data-v="b"],
html[data-variant="c"] .v[data-v="c"] { display: block; }
.sub { font-size: 19px; color: var(--muted); margin-top: 18px; max-width: 38em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 650;
  font-size: 17px;
  color: var(--accent-fg);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  padding: 13px 22px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: var(--accent-fg); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.link-call { font-size: 16px; }

/* Role card illustration */
.rolecard {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px -16px rgb(0 0 0 / 0.18);
  min-width: 0;
}
.rolecard .proto {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 14px;
}
.rolecard h3 { margin-bottom: 12px; }
.chains { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chains li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  font: 13.5px/1.4 var(--mono);
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  min-width: 0;
}
.chains .path { overflow-wrap: anywhere; }
.chains .access { color: var(--ok); font-weight: 600; white-space: nowrap; }
.chains li.deny .path { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.chains li.deny .access { color: var(--no); }

/* Content blocks */
.grid3 { display: grid; gap: 16px; }
@media (min-width: 820px) { .grid3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card .num { font: 600 13px var(--mono); color: var(--accent); margin-bottom: 8px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.source { display: inline-block; margin-top: 12px; font-size: 14px; }

.roles { display: grid; gap: 12px; }
.roles li {
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}
.roles { margin: 0; padding: 0; }
.roles strong { display: block; margin-bottom: 2px; }
.roles span { color: var(--muted); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 18px; max-width: 46em; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.pilot-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .pilot-grid { grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; } }
.lead { font-size: 19px; margin-bottom: 16px; }
.bullets { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--muted); }
.bullets li::marker { color: var(--accent); }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.price p + p { margin-top: 8px; color: var(--muted); }
.price p:first-child { font-weight: 650; font-size: 19px; }
.price .btn { margin-top: 20px; }

.prose { max-width: 44em; }
.faq { margin: 0; display: grid; gap: 24px; max-width: 46em; }
.faq dt { font-weight: 650; margin-bottom: 6px; }
.faq dd { margin: 0; color: var(--muted); }

/* Forms */
.form-wrap { max-width: 720px; }
form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 600; padding: 0; }
.req { color: var(--no); }
.opt { color: var(--muted); font-weight: 400; }
input[type=email], select {
  font: inherit;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  width: 100%;
  max-width: 420px;
}
select { appearance: auto; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  cursor: pointer;
  user-select: none;
}
.choice input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--fg); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.invalid input[type=email], .invalid select, .invalid .choice span { border-color: var(--no); }
.err { color: var(--no); font-size: 14px; min-height: 0; }
.err:empty { display: none; }
.note { font-size: 14px; color: var(--muted); }
.form-status { color: var(--no); font-size: 15px; }
.form-status:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; outline: none; }
.thanks h3 { margin-bottom: 8px; }

.waitlist { padding: 40px 0; }
.waitlist form { grid-template-columns: 1fr; gap: 12px; }
.waitlist .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.waitlist .row .field { flex: 1 1 240px; }
.waitlist .btn { padding: 11px 18px; font-size: 16px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer p + p { margin-top: 6px; }

/* Legal pages */
.legal { padding-top: 24px; border-top: 0; }
.legal h1 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 24px; }
.legal p { max-width: 44em; margin-bottom: 14px; }
.back { display: inline-block; margin-bottom: 20px; }
