/* Website layout; shared tokens and controls come from codexpass-ui.css.
   See ../../DESIGN.md. These aliases also theme the product illustrations. */
:root {
  --bg: hsl(var(--cp-background));
  --band: hsl(var(--cp-shell));
  --surface: hsl(var(--cp-card));
  --surface-2: hsl(var(--cp-muted));
  --ink: hsl(var(--cp-foreground));
  --ink-2: hsl(var(--cp-foreground));
  --muted: hsl(var(--cp-muted-foreground));
  --faint: hsl(var(--cp-muted-foreground));
  --line: hsl(var(--cp-border));
  --line-strong: hsl(var(--cp-input));
  --accent: hsl(var(--cp-primary));
  --accent-soft: hsl(var(--cp-primary-muted));
  --accent-text: hsl(var(--cp-primary-text));
  --live: hsl(var(--cp-success));
  --live-soft: hsl(var(--cp-success-muted));
  --warn: hsl(var(--cp-warning));
  --warn-soft: hsl(var(--cp-warning-muted));
  --action: hsl(var(--cp-primary));
  --on-action: hsl(var(--cp-primary-foreground));
  --header: hsl(var(--cp-card) / 92%);
  --shadow: var(--cp-shadow);
  --shadow-sm: 0 1px 2px hsl(var(--cp-foreground) / 6%);
  --error: hsl(var(--cp-destructive));
  --sans: var(--cp-font-sans);
  --mono: var(--cp-font-mono);
  --radius: var(--cp-radius-panel);
  --radius-sm: var(--cp-radius);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
:where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
}
code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: var(--cp-radius-small);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
/* Shared controls provide their own focus treatment (menu items use a fill). */
:where(:focus-visible) {
  outline: 2px solid hsl(var(--cp-ring));
  outline-offset: 3px;
  border-radius: var(--cp-radius-small);
}
::selection {
  background: var(--accent-soft);
  color: var(--ink);
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--cp-radius-small);
  background: var(--action);
  color: var(--on-action);
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.mono {
  font-family: var(--mono);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Header ---------- */

.top {
  --site-header-height: 92px;
  position: relative;
  top: 0;
  z-index: 50;
  background: transparent;
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--site-header-height);
  width: 100%;
  max-width: 1328px;
  margin-inline: auto;
  padding-inline: 48px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark img,
.wordmark svg {
  width: 32px;
  height: 32px;
}
.logo-dark {
  display: none;
}
:root[data-theme="dark"] .logo-light {
  display: none;
}
:root[data-theme="dark"] .logo-dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-light {
    display: none;
  }
  :root:not([data-theme]) .logo-dark {
    display: block;
  }
}
.top-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}
.top-nav a {
  padding: 6px 10px;
  border-radius: var(--cp-radius-small);
  transition:
    color 0.15s,
    background 0.15s;
}
.top-nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.top-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-text);
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
}
.lang:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.theme-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.theme-switch button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: var(--cp-radius-small);
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}
.theme-switch button:hover {
  color: var(--ink);
}
.theme-switch button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent-text);
  box-shadow: var(--shadow-sm);
}
.theme-switch svg {
  width: 14px;
  height: 14px;
}
.theme-menu {
  display: none;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
}
.theme-controls-ready .theme-menu { display: block; }
.theme-menu > summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.theme-menu > summary::-webkit-details-marker { display: none; }
.theme-menu > summary::after { content: none; }
.theme-menu > summary:hover { background: var(--surface-2); }
.theme-menu svg { width: 18px; height: 18px; flex: none; }
.theme-menu .theme-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: 172px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: min(8px, var(--cp-radius-small));
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transform-origin: top right;
}
.theme-menu .theme-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: auto;
  min-height: 44px;
  padding: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  border-radius: min(6px, var(--cp-radius-small));
}
.theme-menu .theme-options button:hover { background: var(--surface-2); }
.theme-menu .theme-options button[aria-pressed="true"] {
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: none;
}
.theme-menu .theme-options button[aria-pressed="true"]::after {
  content: "✓";
  margin-left: auto;
}
.theme-menu > summary:focus-visible,
.theme-menu .theme-options button:focus-visible,
.lang:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: var(--cp-radius);
  background: var(--surface);
  cursor: pointer;
}
.menu-toggle svg {
  width: 18px;
  height: 18px;
}

/* One navigation layout for home, content, downloads and legal pages. */
@media (min-width: 901px) and (max-width: 1100px) {
  .top-nav { gap: 15px; }
  .top-nav a { font-size: 12px; }
  .top-inner { gap: 14px; }
}
@media (max-width: 1000px) {
  .top-inner { padding-inline: 32px; }
}
@media (max-width: 700px) {
  .top { --site-header-height: 76px; }
  .top-inner { padding-inline: 24px; }
  .top-cta { display: none; }
}
@media (max-width: 370px) {
  .top-inner { padding-inline: 20px; }
}
html:not(.js) .top.has-menu .menu-toggle,
html:not(.js) .theme-switch { display: none; }
@media (max-width: 900px) {
  html:not(.js) .top-inner {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    padding-block: 16px;
    gap: 14px;
  }
  html:not(.js) .top.has-menu .top-nav {
    display: flex;
    position: static;
    flex-basis: 100%;
    order: 3;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 18px;
    padding: 0;
    border: 0;
    box-shadow: none;
    max-height: none;
  }
}

/* ---------- Pills and small bits ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-2);
}
.pill a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--accent-text);
  font-weight: 550;
}
.pill a svg {
  flex-shrink: 0;
}
.pulse {
  flex-shrink: 0;
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px var(--live-soft);
  flex: none;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--cp-radius-small);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.tag-accent {
  background: var(--surface-2);
  border-color: transparent;
  color: var(--ink);
}
.tag-live {
  background: var(--live-soft);
  border-color: transparent;
  color: var(--live);
}

:lang(zh) .kicker,
:lang(zh) .tag,
:lang(zh) .node-head {
  font-family: var(--sans);
  letter-spacing: 0.02em;
  text-transform: none;
}
:lang(zh) .kicker {
  font-size: 13px;
  font-weight: 550;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--band);
  padding: 88px 0 64px;
}
.hero h1 {
  margin-top: 24px;
  font-size: clamp(36px, 5.8vw, 72px);
  max-width: 960px;
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 600;
}
:lang(zh) .hero h1 {
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.lede {
  margin-top: 24px;
  max-width: 700px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--muted);
}
.lede strong {
  color: var(--ink);
  font-weight: 550;
}
.hero-cta {
  margin-top: 36px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-meta svg {
  width: 14px;
  height: 14px;
  color: var(--faint);
}

/* A: audience paths are navigation, not competing primary actions. */
.hero-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
  max-width: 700px;
}
.hero-paths a {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  transition: border-color var(--cp-motion-duration, 140ms);
}
.hero-paths a:hover { border-color: var(--ink); }
.hero-paths a > span { font-size: 13px; color: var(--muted); }
.hero-paths strong { font-size: 15px; font-weight: 550; }
.hero-paths strong span { display: inline-block; margin-left: 6px; }
.section h2, .step h3, .card h3 { text-wrap: balance; }
.lede, .section-head > p { text-wrap: pretty; }

/* ---------- Waitlist forms ---------- */

.wl-inline {
  display: flex;
  gap: 8px;
  max-width: 520px;
}
.wl-inline .cp-input {
  flex: 1;
}
.wl-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.wl-status {
  min-height: 0;
  margin-top: 12px;
  font-size: 14px;
}
.wl-status:empty {
  display: none;
}
.wl-status.error {
  color: var(--error);
}
.wl-done {
  display: none;
  align-items: flex-start;
  gap: 12px;
  max-width: 500px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--cp-radius-panel);
  background: var(--surface);
}
.wl-done svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--live);
}
.wl-done b {
  display: block;
  font-weight: 600;
}
.wl-done p {
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}
[data-waitlist].is-done .wl-fields,
[data-waitlist].is-done .wl-note,
[data-waitlist].is-done .wl-status {
  display: none;
}
[data-waitlist].is-done .wl-done {
  display: flex;
}
.linkish {
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wl-note a,
.cta-copy a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

/* ---------- Hero flow diagram ---------- */

.flow {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(0, 1.4fr) 84px minmax(0, 1fr) 84px
    minmax(0, 0.95fr);
  align-items: center;
  margin-top: 16px;
}
.node {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
}
.node-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.node-head .mono-sub {
  margin-left: auto;
  text-transform: none;
  letter-spacing: 0;
  color: var(--faint);
}
.ws {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.ws-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--cp-radius);
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
}
.ws b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.ws small {
  color: var(--muted);
  font-size: 12px;
}
.meter {
  margin-top: 14px;
}
.meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.bar {
  height: 6px;
  margin-top: 6px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}
.bar i {
  display: block;
  width: var(--v, 50%);
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}
.policy {
  margin-top: 14px;
  display: grid;
  gap: 9px;
}
.policy li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-2);
}
.policy b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
}
.tog {
  position: relative;
  width: 26px;
  height: 15px;
  border-radius: 99px;
  background: var(--line-strong);
  flex: none;
}
.tog::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--surface);
}
.tog.on {
  background: var(--action);
}
.tog.on::after {
  left: 13px;
}

/* device window */
.node-device {
  padding: 0;
  overflow: visible;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.win-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.win-bar span {
  margin-left: 8px;
  font-weight: 550;
}
.win-body {
  position: relative;
  padding: 16px;
  display: grid;
  gap: 10px;
}
.msg {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: var(--cp-radius);
  line-height: 1.5;
}
.msg.user {
  justify-self: end;
  background: var(--surface-2);
}
.msg.bot {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--ink-2);
  padding-left: 0;
}
.msg.bot code {
  font-size: 11px;
}
.spark {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ink);
  transform: rotate(45deg) translateY(-1px);
}
.composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--cp-radius);
  color: var(--faint);
}
.model-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--cp-radius-small);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
}
.picker {
  justify-self: end;
  width: min(250px, 86%);
  margin-top: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--cp-radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 12px;
}
.picker-h {
  padding: 4px 8px 6px;
  font-size: 11px;
  color: var(--faint);
}
.opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--cp-radius-small);
  font-family: var(--mono);
  font-size: 11.5px;
}
.opt small {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--faint);
}
.opt.sel {
  color: var(--accent-text);
  background: var(--accent-soft);
}
.opt.sel small {
  color: var(--accent-text);
}
.cp-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface-2);
  font-size: 12px;
}
.cp-bar svg {
  flex: none;
  width: 16px;
  height: auto;
  color: var(--ink);
}
.cp-bar b {
  font-weight: 600;
}
.cp-bar .state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--live);
}
.cp-bar .mono {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

/* provider node */
.prov {
  display: grid;
  gap: 8px;
}
.prov li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--cp-radius);
  background: var(--bg);
}
.prov li span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.prov b {
  display: block;
  font-weight: 550;
}
.prov small {
  color: var(--faint);
  font-size: 11px;
}
.node-foot {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* wires between nodes */
.wire {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}
.wire-line {
  position: relative;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--line-strong) 0 4px,
    transparent 4px 9px
  );
}
.wire-line::before,
.wire-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
}
.wire-line::before {
  left: -4px;
  background: var(--line-strong);
}
.wire-line::after {
  left: 0;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: travel-x 2.6s cubic-bezier(0.55, 0, 0.45, 1) infinite;
}
.wire:nth-of-type(4) .wire-line::after {
  animation-delay: 1.3s;
}
@keyframes travel-x {
  0% {
    left: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 7px);
    opacity: 0;
  }
}
@keyframes travel-y {
  0% {
    top: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 7px);
    opacity: 0;
  }
}
.wire b {
  color: var(--ink-2);
  font-weight: 550;
}
.wire-text {
  white-space: nowrap;
}
.flow-caption {
  margin-top: 32px;
  font-size: 12px;
  color: var(--faint);
  text-align: left;
}

/* ---------- Sections ---------- */

.section {
  background: var(--surface);
  padding: 96px 0;
}
.band {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.wide {
  max-width: 880px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.section h2 {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 600;
}
:lang(zh) .section h2 {
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.section-head > p:not(.kicker) {
  margin-top: 18px;
  font-size: 17px;
  color: var(--muted);
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.step-art {
  padding: 20px 20px 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.step-art svg {
  width: 100%;
  height: auto;
}
.step-body {
  padding: 22px 22px 26px;
}
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
}
.step h3 {
  margin-top: 6px;
  font-size: 19px;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}
.step .who {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
}

/* split: text + art */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}
.split .section-head {
  margin-bottom: 0;
}
.checks {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}
.checks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
}
.checks li::before,
.checks li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: var(--cp-radius-small);
}
.checks li::before {
  background: var(--surface-2);
}
.checks li::after {
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}
.checks b {
  color: var(--ink);
  font-weight: 600;
}
.art-frame {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.art-frame > svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto;
}

/* bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.card:hover {
  border-color: var(--line-strong);
}
.card.wide {
  grid-column: span 3;
}
.card-art {
  display: grid;
  place-items: center;
  padding: 24px 24px 0;
  min-height: 210px;
  background: var(--band);
  border-bottom: 1px solid var(--line);
}
.card.wide .card-art {
  min-height: 250px;
}
.card-art > svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}
.card-body {
  padding: 22px 24px 26px;
}
.card-body .tag {
  margin-bottom: 12px;
}
.card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}
.card p + p {
  margin-top: 6px;
}

/* console mock */
.console-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: start;
}
.cm {
  position: sticky;
  top: 96px;
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 13px;
}
.cm-side {
  padding: 16px 10px;
  border-right: 1px solid var(--line);
  background: hsl(var(--cp-shell));
}
.cm-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 14px;
  font-weight: 600;
}
.cm-brand svg {
  width: 18px;
}
.cm-side li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--cp-radius-small);
  color: var(--muted);
}
.cm-side li.on {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 550;
  box-shadow: var(--shadow-sm);
}
.cm-side li i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--line-strong);
}
.cm-side li.on i {
  background: var(--accent-text);
}
.cm-main {
  padding: 20px;
  min-width: 0;
}
.cm-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cm-title h4 {
  font-size: 16px;
  font-weight: 600;
}
.cm-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.cm-stat {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--cp-radius);
}
.cm-stat small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.cm-stat b {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.cm-stat .bar {
  margin-top: 8px;
  height: 4px;
}
.cm-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 12.5px;
}
.cm-table th {
  padding: 8px 6px;
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
}
.cm-table td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.cm-table tr:last-child td {
  border-bottom: 0;
}
.who-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.av {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  flex: none;
}
.cm-table .bar {
  width: 72px;
  margin-top: 0;
}
.cm-event {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--cp-radius);
  background: var(--warn-soft);
  color: var(--ink-2);
  font-size: 12.5px;
}
.cm-event code {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--warn);
}
.cm-event svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--warn);
}
.feature-list {
  display: grid;
  gap: 0;
}
.feature-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.feature-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.feature-list svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--ink);
}
.feature-list b {
  display: block;
  font-weight: 600;
}
.feature-list span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}

/* security */
.sec {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.sec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}
.sec-list li b {
  display: block;
  font-weight: 600;
  font-size: 15px;
}
.sec-list li span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}
.sec-list li::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin-bottom: 14px;
  background: var(--ink);
}

/* faq */
.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: translateY(3px) rotate(225deg);
}
.faq details p {
  padding: 0 40px 24px 0;
  color: var(--muted);
}

#waitlist {
  background: var(--band);
}

#faq {
  padding-bottom: 32px;
}

/* final cta */
.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cta h2 {
  margin-top: 14px;
}
.cta-mark {
  position: absolute;
  left: -36px;
  bottom: -64px;
  width: 240px;
  color: var(--surface-2);
  pointer-events: none;
}
.cta-copy,
.cta-actions {
  position: relative;
}
.cta-copy p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}
.cta-copy ul {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
.cta-copy li {
  display: flex;
  gap: 10px;
}
.cta-copy li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 2px;
  background: var(--ink);
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.field .cp-label {
  margin-bottom: 0;
}
.field label small {
  font-weight: 400;
  color: var(--faint);
}
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
/* A pair of destinations needs its own spacing, separate from form fields. */
.cta-actions {
  display: grid;
  align-self: center;
  gap: 24px;
}
.cta-actions .cp-button {
  width: 100%;
}
.cta-arrow {
  display: inline-block;
}
@media (max-width: 700px) {
  .cta-actions { gap: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .cta-arrow {
    transition: transform var(--cp-motion-duration, 140ms) var(--cp-motion-ease, ease);
  }
  .cta-actions .cp-button:focus-visible .cta-arrow {
    transform: translate(2px, -2px);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cta-actions .cp-button:hover .cta-arrow {
    transform: translate(2px, -2px);
  }
}

/* footer */
footer.site {
  margin-top: 40px;
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.foot-links a:hover {
  color: var(--ink);
}
.foot-note {
  width: 100%;
  font-size: 12px;
  color: var(--faint);
}

/* ---------- SVG illustration palette ----------
   fs/fs2/fb: surface, surface-2, page; fi/fm/ff: ink, muted, faint;
   fl: line; fa/fas: accent, accent soft; fg/fgs: live, live soft.
   st/stl/sti/sta/stg/stw: strokes in line-strong, line, ink, accent, live,
   warn; n: no fill (combine with a stroke class for outlines). */

.art {
  font-family: var(--sans);
}
.art text {
  fill: var(--ink);
  font-size: 13px;
}
.art .fs {
  fill: var(--surface);
}
.art .fs2 {
  fill: var(--surface-2);
}
.art .fb {
  fill: var(--bg);
}
.art .fi {
  fill: var(--ink);
  color: var(--ink);
}
.art .fm {
  fill: var(--muted);
}
.art .ff {
  fill: var(--faint);
}
.art .fl {
  fill: var(--line);
}
.art .fls {
  fill: var(--line-strong);
}
.art .fa {
  fill: var(--accent);
}
.art .fas {
  fill: var(--accent-soft);
}
.art .fg {
  fill: var(--live);
}
.art .fgs {
  fill: var(--live-soft);
}
.art .fw {
  fill: var(--warn);
}
.art .fws {
  fill: var(--warn-soft);
}
.art .st,
.art .stl,
.art .sti,
.art .sta,
.art .stg,
.art .stw {
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art .n {
  fill: none;
}
.art .st {
  stroke: var(--line-strong);
}
.art .stl {
  stroke: var(--line);
}
.art .sti {
  stroke: var(--ink);
}
.art .sta {
  stroke: var(--ink);
}
.art .stg {
  stroke: var(--live);
}
.art .stw {
  stroke: var(--warn);
}
.art .w2 {
  stroke-width: 2;
}
.art .dash {
  stroke-dasharray: 3 5;
}
.art .flowing {
  stroke-dasharray: 4 6;
  animation: dash-flow 1.1s linear infinite;
}
@keyframes dash-flow {
  to {
    stroke-dashoffset: -20;
  }
}
.art .tm {
  fill: var(--muted);
}
.art .tf {
  fill: var(--faint);
}
.art .ta {
  fill: var(--accent-text);
}
.art .tg {
  fill: var(--live);
}
.art .tw {
  fill: var(--warn);
}
.art .ton {
  /* Pair with .fi's ink fill, not the accent button's always-white text. */
  fill: var(--bg);
  color: var(--bg);
}
.art .mono {
  font-family: var(--mono);
}
.art .b {
  font-weight: 600;
}
.art .s11 {
  font-size: 11px;
}
.art .s12 {
  font-size: 12px;
}
.art .s14 {
  font-size: 14px;
}
.art .s16 {
  font-size: 16px;
}
.art .blink {
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.art .bob {
  animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(-4px);
  }
}
.art .wave rect {
  transform-box: fill-box;
  transform-origin: center;
  animation: wave 1.2s ease-in-out infinite;
}
.art .wave rect:nth-child(2n) {
  animation-delay: -0.3s;
}
.art .wave rect:nth-child(3n) {
  animation-delay: -0.6s;
}
@keyframes wave {
  50% {
    transform: scaleY(0.45);
  }
}
.art .sync-orbit {
  transform-box: view-box;
  transform-origin: 180px 82px;
  animation: spin 6s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .flow {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .wire {
    align-items: flex-start;
    gap: 2px;
    height: 76px;
    padding-left: calc(50% + 18px);
    text-align: left;
  }
  .wire-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: repeating-linear-gradient(
      180deg,
      var(--line-strong) 0 4px,
      transparent 4px 9px
    );
  }
  .wire-line::before {
    left: 50%;
    top: -4px;
    transform: translateX(-50%);
  }
  .wire-line::after {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    animation-name: travel-y;
  }
  .split,
  .console-wrap,
  .sec {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .cm {
    position: static;
  }
  .sec .art-frame {
    order: 2;
  }
  .cta {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px;
  }
}

@media (max-width: 900px) {
  .top.has-menu .top-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--site-header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .top.has-menu .top-nav a {
    padding: 12px 8px;
    font-size: 16px;
    color: var(--ink);
  }
  .top.has-menu.open .top-nav {
    display: flex;
  }
  .top.has-menu .menu-toggle {
    display: grid;
  }
  .top-actions { gap: 8px; }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .card,
  .card.wide {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  .top-inner {
    gap: 12px;
  }
  .top-cta {
    display: none;
  }
  .hero {
    padding: 48px 0 40px;
  }
  .flow {
    margin-top: 52px;
  }
  .section {
    padding: 72px 0;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .cm {
    grid-template-columns: minmax(0, 1fr);
  }
  .cm-side {
    display: none;
  }
  .cm-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cm-stats .cm-stat:nth-child(3) {
    display: none;
  }
  .cm-table .hide-sm {
    display: none;
  }
  .sec-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .cta {
    padding: 28px 20px;
    border-radius: var(--radius);
  }
  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .art-frame {
    padding: 16px;
  }
  .card-art {
    padding: 16px 16px 0;
    min-height: 0;
  }
  .card.wide .card-art {
    min-height: 0;
  }
  .faq details p {
    padding-right: 0;
  }
}

@media (max-width: 400px) {
  .cp-bar .mono {
    display: none;
  }
}

@media (max-width: 359px) {
  .wl-inline {
    flex-direction: column;
  }
  .wl-inline .cp-input {
    flex: none;
  }
  .wl-inline .cp-button {
    width: 100%;
  }
  .top-actions { gap: 6px; }
  .top-inner { gap: 8px; }
  .lang { padding-inline: 4px; }
  .theme-switch button { width: 24px; }
  .wordmark { gap: 6px; font-size: 14px; }
  .wordmark svg { width: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .wire-line::after {
    left: calc(50% - 3px);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) and (max-width: 1080px) {
  .wire-line::after {
    left: 50%;
    top: calc(50% - 3px);
  }
}

/* Internal-document gate shares the site's palette and existing controls. */
.admin-gate-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-gate { width: 100%; max-width: 400px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.admin-gate .wordmark { margin-bottom: 32px; }
.admin-gate h1 { font-size: 28px; line-height: 1.2; font-weight: 600; text-wrap: balance; }
.admin-gate .gate-intro { margin: 12px 0 24px; color: var(--muted); font-size: 14px; }
.admin-gate .cp-input, .admin-gate .gate-submit { width: 100%; }
.admin-gate .gate-submit { margin-top: 16px; }
.admin-gate .err { min-height: 20px; margin-top: 12px; font-size: 13px; color: var(--error); }
.admin-gate .gate-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; color: var(--muted); font-size: 13px; }
.admin-gate .theme-switch button { width: auto; padding-inline: 8px; }
@media (max-width: 600px) {
  .hero-paths { gap: 16px; }
  .hero-paths strong { font-size: 14px; }
  .admin-gate { padding: 24px; }
}

/* Selection moves beneath stable labels; the native active styles remain the fallback. */
.motion-tabs { position: relative; isolation: isolate; }
.tab-indicator { position: absolute; top: 0; left: 0; z-index: -1; pointer-events: none; visibility: hidden; border-radius: var(--cp-radius-button); background: hsl(var(--cp-card)); border: 1px solid hsl(var(--cp-primary-edge) / .35); }
.motion-tabs-ready > .tab-indicator { visibility: visible; }
.motion-tabs-ready.cp-mode-group > .cp-mode-option:is([aria-pressed=true],[aria-selected=true]) { background: transparent; border-color: transparent; }
.demo-nav.motion-tabs-ready > .demo-tab[aria-selected=true] { background: transparent; }
.demo-nav.motion-tabs-ready > .tab-indicator { background: hsl(var(--cp-primary)); border-color: transparent; }
.edition-tabs.motion-tabs { --tab-inset: 20px; }
.edition-tabs.motion-tabs-ready > a[aria-selected=true]::after { background: transparent; }
.motion-tabs[data-indicator=line] > .tab-indicator { border: 0; border-radius: 2px; background: var(--accent-text); }
.billing-options { display: flex; width: 100%; gap: inherit; }
.billing-options.motion-tabs-ready input:checked + span { background: transparent; border-color: transparent; }
.billing-options > .tab-indicator { background: var(--bg); border-color: var(--accent-text); }
.edition-panels { display: flow-root; }
@media (max-width: 760px) { .edition-tabs.motion-tabs { --tab-inset: 8px; } }
@media (prefers-reduced-motion: no-preference) {
  .lang, .theme-menu > summary { transition: background-color 140ms ease, color 140ms ease; }
}
@media (forced-colors: active) {
  .tab-indicator { border: 1px solid Highlight; }
  .motion-tabs[data-indicator=line] > .tab-indicator { background: Highlight; }
}

.cp-mode-option[aria-selected=true] { background: hsl(var(--cp-card)); color: hsl(var(--cp-primary-text)); border-color: hsl(var(--cp-primary-edge) / .35); font-weight: 600; }
