/* TrueAgent — minimalist graphite-white design system */
:root {
  --bg: #fbfaf8;          /* subtle paper white, matching original theme-color */
  --bg-tonal: #f4f4f5;    /* neutral light graphite */
  --surface: #ffffff;
  --ink: #111111;
  --ink-muted: #52525b;
  --ink-soft: #71717a;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;

  --dark-bg: #111111;
  --dark-surface: #18181b;
  --dark-ink: #fafafa;
  --dark-muted: #a1a1aa;
  --dark-line: #27272a;

  --ok: #15803d;
  --ok-bg: #f0fdf4;
  --ok-line: #bbf7d0;
  --err: #b91c1c;
  --err-bg: #fef2f2;
  --err-line: #fecaca;

  --radius: 14px;
  --radius-sm: 9px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.manifesto :focus-visible,
.format-dark :focus-visible {
  outline-color: var(--dark-ink);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus { left: 12px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(17, 17, 17, 0.06);
}
.manifesto .mono,
.format-dark .mono {
  background: rgba(255, 255, 255, 0.12);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 248, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.025em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
}
.brand-name span {
  color: var(--ink-muted);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-muted);
}
.nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  place-content: center;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--ink);
}
.site-header.nav-open .menu-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-header.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(17, 17, 17, 0.42);
}
.site-header.nav-open + .menu-backdrop { display: block; }

.lang-switch {
  position: relative;
  display: inline-block;
}
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-tonal);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.lang-current::-webkit-details-marker { display: none; }
.lang-current:hover { border-color: var(--line-strong); }
.lang-caret {
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.lang-switch[open] .lang-caret {
  margin-top: 3px;
  transform: rotate(-135deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 172px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 16px 34px -22px rgba(17, 17, 17, 0.35);
}
.lang-menu .lang-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.25;
  text-decoration: none;
}
.lang-menu .lang-link:hover { background: var(--bg-tonal); }
.lang-menu .lang-link span {
  color: var(--ink-soft);
  font-family: var(--font);
  font-size: 11.5px;
  letter-spacing: 0;
}
.lang-menu .lang-link[aria-current="page"] {
  background: var(--bg-tonal);
  font-weight: 600;
}
.lang-menu .lang-link[aria-current="page"] span { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  white-space: nowrap;
}
.btn:hover {
  background: #27272a;
  border-color: #27272a;
}
.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.btn-small {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 9px;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--bg-tonal);
  border-color: var(--ink);
  color: var(--ink);
}
.btn-inverse {
  background: #ffffff;
  color: var(--dark-bg);
  border-color: #ffffff;
}
.btn-inverse:hover {
  background: #e4e4e7;
  border-color: #e4e4e7;
}
.btn-wide { width: 100%; }

/* Typography & Headings (matching original editorial style) */
.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow-light { color: var(--dark-muted); }

h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 4.8vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.038em;
  font-weight: 700;
  color: var(--ink);
}
h1 span { color: var(--ink-soft); }

h2 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 700;
}

.lead {
  margin: 0 0 30px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 50ch;
}

/* Hero */
.hero {
  padding: 76px 24px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 56px;
  align-items: center;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.actions-center { justify-content: center; }

.micro {
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--ink-soft);
}
.trust {
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
}
.trust li {
  position: relative;
  padding-left: 18px;
}
.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

/* Hero Before / After Visual — strict monochrome graphite */
.compare-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.compare-col {
  border-radius: 13px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compare-before {
  background: var(--bg-tonal);
  border: 1px solid var(--line);
}
.compare-after {
  background: var(--dark-bg);
  color: var(--dark-ink);
  border: 1px solid var(--dark-line);
}
.compare-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 999px;
  width: fit-content;
}
.compare-before .compare-badge {
  background: var(--surface);
  color: var(--ink-muted);
  border: 1px solid var(--line-strong);
}
.compare-after .compare-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.compare-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.compare-before .compare-title { color: var(--ink); }
.compare-after .compare-title { color: #ffffff; }

.chaos-diagram svg {
  width: 100%;
  height: auto;
  aspect-ratio: 220 / 84;
  display: block;
}
.chaos-diagram {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 10px;
}
.chaos-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 0;
}
.chaos-chip {
  font-size: 11px;
  font-family: var(--mono);
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-tonal);
  color: var(--ink-muted);
  border: 1px solid var(--line);
}
.chaos-list {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-muted);
}
.chaos-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.chaos-list li::before {
  content: "×";
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.3;
}

.agent-stack {
  display: grid;
  gap: 8px;
}
.agent-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.agent-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
}
.agent-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 500;
  color: #d4d4d8;
  font-family: var(--mono);
}
.agent-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4d4d8;
}
.agent-sub {
  font-size: 11.5px;
  color: var(--dark-muted);
  line-height: 1.35;
}
.cmd-bar {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.cmd-pill {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.09);
  color: #fafafa;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.compare-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-muted);
}
.compare-footer strong { color: var(--ink); }

/* Sections */
.section { padding-block: 96px; }
.section-tonal {
  background: var(--bg-tonal);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 96px 0;
}
.section-head { margin-bottom: 44px; }
.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}
.section-lead {
  margin: 0;
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 48ch;
}

/* Scenarios */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.scenario {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.scenario:hover {
  border-color: var(--line-strong);
}
.num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.scenario h3,
.step h3,
.format h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.prompt {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg-tonal);
  padding: 10px 14px;
  border-radius: 9px;
  border-left: 2px solid var(--ink);
}
.scenario p:last-child {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
}

/* Expandable niche blocks */
.niche-details {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.niche-details + .niche-details {
  margin-top: 12px;
}
.niche-details summary {
  list-style: none;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}
.niche-details summary::-webkit-details-marker { display: none; }
.niche-details summary:hover { background: #fafafa; }
.niche-summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.niche-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-tonal);
  color: var(--ink-muted);
  border: 1px solid var(--line);
}
.niche-chevron {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.niche-chevron svg {
  display: block;
  width: 16px;
  height: 16px;
}
.niche-details[open] .niche-chevron { transform: rotate(180deg); }
.niche-body {
  padding: 4px 26px 26px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.niche-body .scenario-grid { margin-top: 18px; }
.niche-body .scenario { background: var(--surface); padding: 22px; }

/* Manifesto (02 — Principle) */
.manifesto {
  background: var(--dark-bg);
  color: var(--dark-ink);
  padding: 96px 0;
}
.manifesto-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 52px;
  align-items: center;
}
.manifesto h2 span { color: var(--dark-muted); }
.manifesto-text {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--dark-muted);
  max-width: 50ch;
}
.manifesto-text strong {
  color: #ffffff;
  font-weight: 600;
}

.principle-flow {
  background: var(--dark-surface);
  border: 1px solid var(--dark-line);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  gap: 12px;
}
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
}
.flow-num {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.flow-step strong {
  display: block;
  font-size: 14.5px;
  color: #ffffff;
  margin-bottom: 2px;
}
.flow-step span {
  font-size: 13.5px;
  color: var(--dark-muted);
}

.facts {
  margin-top: 60px;
  padding-top: 42px;
  border-top: 1px solid var(--dark-line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.fact strong {
  display: block;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: #ffffff;
}
.fact span {
  font-size: 15px;
  color: var(--dark-muted);
}

/* Steps (03 — How it works) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step p {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-muted);
}

/* Formats (04 — Formats) */
.format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.format {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.format-dark {
  background: var(--dark-bg);
  color: var(--dark-ink);
  border-color: var(--dark-line);
}
.format-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.format-lead {
  margin: 0;
  font-size: 16px;
  color: var(--ink-muted);
}
.format-dark .format-lead { color: var(--dark-muted); }

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
}
.price-line > strong {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.price-line span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}
.price-line span strong {
  color: var(--ink);
  font-weight: 600;
}
.format-dark .price-line span { color: var(--dark-muted); }
.format-dark .price-line span strong { color: var(--dark-ink); }
.price-note {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.5;
}
.format-dark .price-note { color: var(--dark-muted); }
.checks {
  list-style: none;
  margin: 0 0 auto;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 15px;
}
.checks li {
  position: relative;
  padding-left: 24px;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--ink);
}
.format-dark .checks li::before { color: #ffffff; }

/* Single offer card (04 — Pricing) */
.offer-card {
  max-width: 900px;
  margin: 0 auto;
  gap: 22px;
}
.offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.offer-top > div { min-width: 0; flex: 1 1 320px; }
.offer-top .btn { flex-shrink: 0; }
/* Proximity: the title belongs to the price, the price belongs to its caption.
   The gap after h3 must stay clearly larger than the gap before the caption. */
.offer-card h3 { margin: 0 0 18px; }
.offer-card .price-line { margin: 0; }
.offer-card .price-note { margin: 8px 0 0; }
.offer-checks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 30px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--dark-line);
}
.offer-checks li {
  font-size: 14.5px;
  color: var(--dark-muted);
  line-height: 1.5;
}
.offer-checks li strong { color: #ffffff; font-weight: 600; }

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  width: 100%;
}
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 24px;
}
.faq-list summary {
  list-style: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16.5px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-mark {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.faq-mark svg { display: block; }
.faq-list details[open] .faq-mark { transform: rotate(180deg); }
.faq-list .answer {
  padding: 16px 0 20px;
  color: var(--ink-muted);
  font-size: 15.5px;
  border-top: 1px solid var(--line);
}
.faq-list .answer p { margin: 0; }

/* Final CTA */
.final {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-tonal);
}
.final-inner {
  text-align: center;
  max-width: 640px;
}
.final-lead {
  margin: 18px auto 30px;
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 44ch;
}
.final .micro { margin-bottom: 0; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 42px 0;
  font-size: 14px;
  color: var(--ink-muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand p {
  margin: 8px 0 0;
  max-width: 34ch;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav a:hover { color: var(--ink); }
.footer-meta { text-align: right; }
.footer-meta p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.54);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop[aria-hidden="false"] { display: flex; }
.modal {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.modal-head h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.modal-close {
  border: 0;
  background: var(--bg-tonal);
  width: 36px;
  height: 36px;
  padding: 0 0 2px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  display: grid;
  place-items: center;
  color: var(--ink-muted);
}
.modal-close:hover {
  background: var(--line);
  color: var(--ink);
}

.segmented {
  display: grid;
  gap: 5px;
  background: var(--bg-tonal);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.segmented-2 {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 12px;
}

.modal-note {
  margin: 0 0 18px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.5;
}
.seg-btn {
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}
.seg-btn:hover { color: var(--ink); }
.seg-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.seg-btn[aria-pressed="true"],
.seg-btn[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.field {
  margin: 0 0 15px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field > label,
.field legend {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  padding: 0;
  color: var(--ink);
}
.field textarea,
.field > input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
}
.field textarea {
  min-height: 98px;
  resize: vertical;
}
.field textarea:focus,
.field > input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--surface);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.choice:hover { border-color: var(--ink); }
.choice input {
  width: 15px;
  height: 15px;
  margin: 0;
  padding: 0;
  accent-color: var(--ink);
  flex-shrink: 0;
}
/* Checked state must not change size: bold text reflows the row and
   pushes the last pill onto a new line. */
.choice:has(input:checked) {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.form-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
/* Honeypot: bots fill it, people never see it. Hidden off-canvas instead of
   display:none so naive form scrapers still find the field. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cf-turnstile {
  margin: 0 0 14px;
  min-height: 65px;
}
.turnstile-fallback {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--err);
}
.form-status {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
}
.form-status.is-ok {
  display: block;
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid var(--ok-line);
}
.form-status.is-err {
  display: block;
  background: var(--err-bg);
  color: var(--err);
  border: 1px solid var(--err-line);
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; gap: 38px; }
  .section-intro, .manifesto-inner { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .site-header.nav-open .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 39;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .nav a {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 720px) {
  /* The header CTA is wider than "Start": drop the wordmark so the row fits
     and the page never scrolls horizontally (it shifts the fixed modal). */
  .header-inner { gap: 10px; }
  .site-header .brand-name { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .btn-small { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 680px) {
  .compare-grid, .scenario-grid, .format-grid, .facts { grid-template-columns: 1fr; }
  .offer-checks { grid-template-columns: 1fr; }
  .offer-top .btn { width: 100%; }
  .section, .section-tonal, .manifesto, .final { padding-top: 64px; padding-bottom: 64px; }
  .footer-meta { width: 100%; text-align: center; }
}
@media (max-width: 560px) {
  .hero .actions,
  .final .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero .actions .btn,
  .final .actions .btn { width: 100%; }
}
@media (max-width: 380px) {
  .site-header .brand-name { display: none; }
  .modal-head h3 { font-size: 20px; }
  .seg-btn { font-size: 12px; padding: 8px 4px; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 8px; }
  .lang-link { padding: 4px 7px; font-size: 11.5px; }
  .btn-small { padding: 8px 12px; font-size: 13px; }
}
