/* verapli — one hand-written stylesheet. System fonts, no frameworks, light and dark via
   prefers-color-scheme. Decisions: C:\connect\UXUI_COUNCIL_001.md (design tokens D3–D6). */

/* Tokens ----------------------------------------------------------------------------------- */
:root {
  /* palette: light */
  --ink: #0b1b33;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0b1b33;
  --muted: #4f5f76; /* 6.0:1 on bg-alt */
  --border: #e2e8f0;
  --border-strong: #7d8ba0; /* 3.2:1+ — form controls (WCAG 1.4.11) */
  --accent: #12a150; /* non-text only: ticks, rings, rules */
  --accent-strong: #0b7a3d; /* text: links, eyebrows (5.4:1) */
  --accent-soft: #e8f7ee;
  --wait: #a15c07;
  --primary: #0b1b33;
  --primary-hover: #1a3156;
  --primary-text: #ffffff;
  --code-bg: #0b1b33;
  --code-text: #dbe7f5;
  --code-muted: #8aa0bd;
  --code-done: #5ee3ad;
  --code-wait: #fbbf24;
  --warn-bg: #fff7e6;
  --warn-border: #e0a43a;
  --error-bg: #fdecec;
  --error-border: #e57373;
  --shadow-sm: 0 1px 2px rgba(11, 27, 51, 0.06);
  --shadow: 0 1px 2px rgba(11, 27, 51, 0.05), 0 10px 30px -10px rgba(11, 27, 51, 0.16);
  --shadow-lg: 0 2px 4px rgba(11, 27, 51, 0.05), 0 30px 60px -20px rgba(11, 27, 51, 0.32);

  /* type: system stack, 1.25 scale from 17px */
  --font: 'Segoe UI Variable Text', 'Segoe UI', ui-sans-serif, system-ui, -apple-system, 'SF Pro Text', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Segoe UI Variable Display', 'Segoe UI', ui-sans-serif, system-ui, -apple-system, 'SF Pro Display',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.5rem, 1.7rem + 3.6vw, 4.25rem);

  /* space: 4px base */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --section: clamp(56px, 5rem + 3vw, 112px);

  /* shape */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070f1c;
    --bg-alt: #0b1626;
    --surface: #0e1a2c;
    --surface-2: #122136;
    --text: #e8eef7;
    --muted: #a3b4ca;
    --border: #1d2f4a;
    --border-strong: #5a7194;
    --accent: #34d399;
    --accent-strong: #5ee3ad;
    --accent-soft: #0e2a22;
    --wait: #fbbf24;
    --primary: #34d399;
    --primary-hover: #5ee3ad;
    --primary-text: #04170f;
    --code-bg: #040a14;
    --warn-bg: #2b2210;
    --warn-border: #8a6a24;
    --error-bg: #2d1414;
    --error-border: #8a3434;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  }
}

/* Base ------------------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent-strong);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
h1 {
  font-size: var(--step-4);
  font-weight: 750;
  letter-spacing: -0.035em;
}
h2 {
  font-size: var(--step-3);
  font-weight: 700;
}
h3 {
  font-size: var(--step-1);
  font-weight: 650;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.08em 0.38em;
  overflow-wrap: anywhere;
}
.section.alt :not(pre) > code {
  background: var(--surface);
}

/* Utilities --------------------------------------------------------------------------------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow-wrap {
  max-width: 780px;
}
.narrow {
  max-width: 720px;
}
.center {
  text-align: center;
}
.center-row {
  justify-content: center;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: var(--step--1);
}
.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: var(--s3);
}
.arrow-link {
  font-weight: 650;
  text-decoration: none;
}
.arrow-link:hover {
  text-decoration: underline;
}
.sr-only,
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Header ------------------------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s5);
  height: 64px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}
.wordmark span {
  padding-bottom: 2px; /* optical: lowercase x-height sits on the mark's centre line */
}
.mark-bg {
  fill: var(--ink);
}
.mark-arch {
  stroke: #ffffff;
}
.mark-tick {
  stroke: #34d399;
}
@media (prefers-color-scheme: dark) {
  .mark-bg {
    fill: #15294a;
  }
}
.main-nav {
  display: flex;
  gap: var(--s5);
  margin-left: var(--s2);
}
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover {
  color: var(--text);
}
.main-nav a[aria-current='page'] {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.header-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s2);
}

/* Compact menu (no JavaScript: <details>) */
.menu {
  position: relative;
  display: none;
}
.menu-btn {
  list-style: none;
  gap: 6px;
}
.menu-btn::-webkit-details-marker {
  display: none;
}
.menu[open] .menu-btn {
  border-color: var(--text);
}
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  display: grid;
  padding: var(--s2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.menu-panel a {
  color: var(--text);
  text-decoration: none;
  font-weight: 550;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.menu-panel a:hover,
.menu-panel a[aria-current='page'] {
  background: var(--bg-alt);
}
@media (max-width: 860px) {
  .main-nav,
  .header-cta .hide-md {
    display: none;
  }
  .menu {
    display: block;
  }
}
@media (max-width: 380px) {
  .menu-btn span {
    /* visually hidden, still the button's accessible name */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .header-inner {
    gap: var(--s3);
  }
}

/* Buttons ----------------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: color-mix(in srgb, var(--bg-alt) 70%, transparent);
}
.btn-disabled {
  background: var(--bg-alt);
  color: var(--muted);
  border-color: var(--border);
  cursor: not-allowed;
}
.btn-sm {
  white-space: nowrap;
  min-height: 38px;
  padding: 6px 14px;
  font-size: 0.9rem;
}
.btn-lg {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 1.03rem;
}
.btn-block {
  width: 100%;
}
.cta-stack {
  display: grid;
  gap: 8px;
}

/* Badges & tags ----------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 650;
  font-size: 0.84rem;
  margin-bottom: var(--s5);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 650;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  vertical-align: middle;
  letter-spacing: 0;
  font-family: var(--font);
}
.tag-accent {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: transparent;
}

/* Sections ---------------------------------------------------------------------------------- */
.section {
  padding: var(--section) 0;
}
.section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section > .wrap > h2 + .lede {
  margin-bottom: var(--s6);
}
.page-head {
  padding: clamp(48px, 7vw, 88px) 0 var(--s2);
}
.page-head h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
}
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Hero ---------------------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* faint dot grid, fading out: the "registry" texture */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 13%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 80% at 75% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 80% at 75% 30%, #000 0%, transparent 75%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(800px 420px at 88% -5%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    radial-gradient(600px 380px at -5% 105%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}
.hero h1 {
  margin-bottom: 0.32em;
}
.hero .lede {
  max-width: 34em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: var(--s6) 0 var(--s4);
}
.hero-note {
  max-width: 34em;
}

/* Hero illustration ------------------------------------------------------------------------ */
.mock {
  margin: 0;
  position: relative;
}
.mock-window {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid color-mix(in srgb, var(--code-text) 14%, transparent);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--code-muted);
}
.mock-dots {
  display: inline-flex;
  gap: 6px;
}
.mock-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.mock-body {
  padding: 14px 16px 52px;
}
.mock-env {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
}
.env-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}
.env-row:last-child {
  border-bottom: 0;
}
.env-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.env-name::after {
  content: '=';
  color: var(--code-muted);
}
.env-status {
  display: grid;
  flex: none;
  text-align: right;
  white-space: nowrap;
}
.env-before,
.env-after {
  grid-area: 1 / 1;
}
.env-before {
  color: var(--code-muted);
  opacity: 0;
}
.env-done .env-after {
  color: var(--code-done);
}
.env-wait .env-after {
  color: var(--code-wait);
}
.env-icon {
  display: inline-block;
  margin-right: 0.45em;
}
.mock-panel {
  position: relative;
  width: min(310px, 86%);
  margin: -40px 0 0 auto;
  margin-right: clamp(-12px, -1vw, 0px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 16px 12px;
  font-size: 0.88rem;
}
.mock-panel-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1rem;
  margin: 0 0 10px;
}
.mock-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.mock-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.3;
}
.mock-steps strong {
  display: block;
  font-weight: 600;
}
.mock-sub {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.mock-tick {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.mock-tick::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 4px;
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
@media (prefers-color-scheme: dark) {
  .mock-tick::after {
    border-color: #04170f;
  }
}
.mock-steps li[data-i='3'] .mock-tick {
  background: transparent;
  border: 2px solid var(--wait);
}
.mock-steps li[data-i='3'] .mock-tick::after {
  display: none;
}
.mock-foot {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
}
.mock figcaption {
  margin-top: var(--s4);
  max-width: 40em;
}

/* Motion: plays once, only when the visitor hasn't asked for reduced motion. The static
   (final) state above is what reduced-motion users and non-animating browsers see. */
@media (prefers-reduced-motion: no-preference) {
  .env-before {
    opacity: 1;
    animation: vp-out 0.35s ease forwards;
    animation-delay: var(--d, 1s);
  }
  .env-after {
    opacity: 0;
    animation: vp-in 0.45s ease forwards;
    animation-delay: var(--d, 1s);
  }
  .env-row[data-i='0'] { --d: 0.7s; }
  .env-row[data-i='1'] { --d: 1.1s; }
  .env-row[data-i='2'] { --d: 1.5s; }
  .env-row[data-i='3'] { --d: 2.1s; }
  .env-row[data-i='4'] { --d: 2.5s; }
  .env-row[data-i='5'] { --d: 2.9s; }
  .mock-tick {
    transform: scale(0.4);
    opacity: 0;
    animation: vp-pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) forwards;
    animation-delay: var(--d, 1s);
  }
  .mock-steps li[data-i='0'] { --d: 0.5s; }
  .mock-steps li[data-i='1'] { --d: 2.2s; }
  .mock-steps li[data-i='2'] { --d: 1.6s; }
  .mock-steps li[data-i='3'] { --d: 3.2s; }
}
@keyframes vp-out {
  to {
    opacity: 0;
  }
}
@keyframes vp-in {
  from {
    opacity: 0;
    transform: translateX(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes vp-pop {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Code ---------------------------------------------------------------------------------------- */
.code {
  position: relative;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 0 0 var(--s4);
  border: 1px solid color-mix(in srgb, var(--code-text) 12%, transparent);
}
.code-label {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  padding: 9px 14px;
  min-height: 38px;
  color: var(--code-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 84px;
}
.code pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.6;
}
.code code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  white-space: pre;
  overflow-wrap: normal;
}
.code.has-copy:not(:has(.code-label)) pre {
  padding-right: 84px;
}
.copy-btn {
  position: absolute;
  top: 5px;
  right: 6px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--code-text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px 12px;
  min-height: 28px;
  cursor: pointer;
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Facts, steps, cards ------------------------------------------------------------------------ */
.facts {
  display: grid;
  gap: var(--s3);
}
.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px 16px 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.fact::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.fact p {
  margin: 0;
  font-size: 0.97rem;
}
.fact-k {
  font-weight: 700;
  margin-bottom: 4px !important;
}

.steps {
  list-style: none;
  padding: 0;
  margin: var(--s6) 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s5);
  counter-reset: step;
}
.step {
  position: relative;
}
.step h3 {
  font-size: 1.1rem;
  margin: 0 0 6px;
}
.step p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}
.step-n {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  font-size: 0.95rem;
  margin-bottom: var(--s4);
  box-shadow: 0 0 0 6px var(--bg-alt);
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px;
  left: 44px;
  right: calc(-1 * var(--s5) + 8px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 20%, var(--border)));
  border-radius: 2px;
}
@media (prefers-color-scheme: dark) {
  .step-n {
    background: var(--accent);
    color: var(--primary-text);
  }
}
@media (max-width: 1000px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 640px;
  }
  .step {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: var(--s4);
    padding-bottom: var(--s5);
  }
  .step-n {
    margin: 0;
  }
  .step:not(:last-child)::after {
    top: 44px;
    bottom: 6px;
    left: 17px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 20%, var(--border)));
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  margin: var(--s6) 0;
}
.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .cards,
  .cards-2 {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s5);
  min-width: 0;
  box-shadow: var(--shadow-sm);
}
.card p:last-child {
  margin-bottom: 0;
}
.card p {
  color: var(--muted);
  font-size: 0.97rem;
}
.card h3 {
  font-size: 1.1rem;
}
.icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: var(--s4);
}

/* Chips ---------------------------------------------------------------------------------------- */
.chips {
  list-style: none;
  padding: 0;
  margin: var(--s4) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.92rem;
  background: var(--surface);
}
.chip-strong {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  font-weight: 600;
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
}
.chip-muted {
  color: var(--muted);
  border-style: dashed;
}

/* Lists ---------------------------------------------------------------------------------------- */
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
}
.ticks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 0.6em;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.rules {
  padding-left: 1.3em;
}
.rules li {
  margin-bottom: 0.9em;
}
.rules li::marker {
  color: var(--accent-strong);
  font-weight: 700;
}

/* Pricing ------------------------------------------------------------------------------------ */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  margin: var(--s6) 0 var(--s4);
}
@media (max-width: 1060px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .plans {
    grid-template-columns: 1fr;
  }
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s5);
  box-shadow: var(--shadow-sm);
}
.plan header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.plan h3 {
  margin: 0;
}
.plan-featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}
.price {
  margin: 4px 0 0;
}
.amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 750;
  letter-spacing: -0.04em;
}
.cadence {
  color: var(--muted);
  font-size: 0.92rem;
}
.alt-price {
  margin: 0 0 12px;
}
.plan-blurb {
  color: var(--muted);
  font-size: 0.95rem;
}
.plan .ticks {
  font-size: 0.93rem;
  flex: 1;
}
.plan .btn,
.plan .cta-stack {
  margin-top: auto;
}

/* Notices ---------------------------------------------------------------------------------- */
.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 0 0 18px;
}
.notice-error {
  background: var(--error-bg);
  border-color: var(--error-border);
}
.draft-banner {
  display: inline-block;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* FAQ ---------------------------------------------------------------------------------------- */
.faq {
  max-width: 820px;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 18px 40px 18px 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}
.faq summary:hover {
  color: var(--accent-strong);
}
.faq-a {
  color: var(--muted);
  padding-bottom: 12px;
}

/* Forms ------------------------------------------------------------------------------------------ */
input[type='email'],
input[type='text'],
textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  min-height: 48px;
  width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
input:focus,
textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-color: var(--accent);
}
.waitlist {
  margin: var(--s5) 0;
}
.field-row {
  display: flex;
  gap: 10px;
}
.field-row input {
  flex: 1;
  min-width: 0;
}
.field-row .btn {
  min-height: 48px;
}
@media (max-width: 520px) {
  .field-row {
    flex-direction: column;
  }
}
.more {
  margin: 12px 0;
}
.more summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.92rem;
}
.stack {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
.stack span {
  font-weight: 600;
  font-size: 0.92rem;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
}
.check input {
  margin-top: 0.35em;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: none;
}
.stack-form {
  margin: 20px 0;
}
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #0b1b33;
  color: #e9f0f9;
  --muted: #b4c3d8;
  --text: #ffffff;
  --border: #2a3d5a;
  --border-strong: #6f86a8;
  --surface: #12243f;
  --bg-alt: #12243f;
  --primary: #34d399;
  --primary-hover: #5ee3ad;
  --primary-text: #04170f;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(700px 300px at 50% 0%, rgba(52, 211, 153, 0.18), transparent 70%);
}
@media (prefers-color-scheme: dark) {
  .cta-band {
    background: #0a1a30;
    border-top: 1px solid #1d2f4a;
  }
}
.cta-band a:not(.btn) {
  color: #8ff0c4;
}
.cta-band h2 {
  color: #fff;
}

/* Tables --------------------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
thead th {
  background: var(--surface-2);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}
td code {
  white-space: nowrap;
}

/* Agents page ------------------------------------------------------------------------------- */
.machine {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
  margin: var(--s5) 0 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 900px) {
  .machine {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .machine {
    grid-template-columns: 1fr;
  }
}
.machine a {
  display: block;
  height: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.machine a:hover {
  border-color: var(--accent);
}
.machine strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--accent-strong);
  overflow-wrap: anywhere;
}
.machine span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* Prose (legal) ------------------------------------------------------------------------------ */
.prose {
  max-width: 70ch;
}
.prose h2 {
  font-size: 1.35rem;
  margin-top: 2em;
}
.prose li {
  margin-bottom: 0.5em;
}
.legal-by {
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 4px;
}

/* Portal --------------------------------------------------------------------------------------- */
.portal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s5);
  margin: 18px 0;
}
.panel h2 {
  font-size: 1.15rem;
}
.plan-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}
.status {
  font-size: 0.85rem;
  color: var(--muted);
}
.status-active {
  color: var(--accent-strong);
}
.status-past_due,
.status-incomplete {
  color: #c2410c;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.key-reveal .code pre {
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-all;
}
.key-reveal .code code {
  white-space: pre-wrap;
}
.notfound h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
}
.notfound .mark {
  margin-bottom: var(--s5);
}

/* Footer ------------------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--s8) 0 var(--s6);
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--s6);
}
.footer-brand p {
  max-width: 30em;
  margin-top: var(--s3);
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 340px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-h {
  font-family: var(--font);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: var(--s3);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 6px;
}
.site-footer li a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.site-footer li a:hover {
  text-decoration: underline;
}
.footer-legal {
  margin-top: var(--s7);
  border-top: 1px solid var(--border);
  padding-top: var(--s5);
}
.footer-legal p {
  margin-bottom: 0.6em;
}
.footer-company {
  color: var(--text);
  font-weight: 550;
}

/* Grid children must be allowed to shrink so code blocks scroll instead of widening the page. */
.split > *,
.hero-grid > *,
.cards > *,
.plans > *,
.steps > *,
.footer-grid > * {
  min-width: 0;
}

.section-tight {
  padding: var(--s6) 0 var(--s7);
}
