/* Backroom landing page.
   Built from design/homepage-v2-design.html. Plain CSS, no build step, no inline styles
   (the Content-Security-Policy forbids them). */

/* ---------- Fonts (self-hosted, variable, latin subset) ---------- */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #171721;
  --bg: #101018;
  --bg-deep: #15151f;
  --bg-raised: #181823;
  --card: #1c1c29;
  --card-2: #20202e;
  --card-3: #22222f;
  --line: #2a2a3b;
  --line-strong: #3a3a50;
  --line-section: #23233a;
  --text: #e8e9ee;
  --text-soft: #c9cbd6;
  --text-mute: #9a9cab;
  --white: #ffffff;
  --orange: #ff7130;
  --orange-soft: #ffb08a;
  --orange-pale: #ffd3bd;
  --pink: #ff3c68;
  --purple: #872b97;
  --lilac: #c77dd6;
  --sky: #8fd3ff;
  --green: #3ddc97;
  --cream: #fbf8f4;
  --peach: #ffe3d6;
  --line-light: #ece6df;
  --ink-soft: #3a3e46;
  --ink-mute: #4a4f5c;
  --ink-quiet: #6b6f7b;
  --focus: #ffb08a;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --page: 1200px;
  --gutter: 24px;
  --section-y: clamp(64px, 9vw, 104px);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: var(--orange-soft);
}
a:hover {
  color: var(--orange-pale);
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-light :focus-visible,
.light :focus-visible {
  --focus: var(--purple);
}
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}
.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.head {
  font-family: var(--font-head);
}

/* Colour utilities for avatars and chip dots (the design colours them per item) */
.bg-orange { background: var(--orange); }
.bg-pink { background: var(--pink); }
.bg-lilac { background: var(--lilac); }
.bg-soft { background: var(--orange-soft); }
.bg-sky { background: var(--sky); }
.bg-green { background: var(--green); }
.bg-purple { background: var(--purple); }

/* ---------- Motion ---------- */
@keyframes ticker { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(1.6); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spinback { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes sweep { 0% { width: 0%; } 85% { width: 100%; } 100% { width: 100%; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 113, 48, 0); } 50% { box-shadow: 0 0 0 8px rgba(255, 113, 48, 0.25); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes dash { from { background-position: 0 0; } to { background-position: 40px 0; } }
@keyframes belt { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* The ticker and belt slide a doubled list. The script doubles it and then adds .looping. */
.ticker.looping { animation: ticker 26s linear infinite; }
.dot { animation: pulse 1.6s ease-in-out infinite; }
.ring { animation: spin 48s linear infinite; }
.unring { animation: spinback 48s linear infinite; }
.sweep { animation: sweep 14s ease-in-out infinite; }
.glow { animation: glow 2.2s ease-in-out infinite; }
.float1 { animation: float 5s ease-in-out infinite; }
.float2 { animation: float 5s ease-in-out 1.2s infinite; }
.float3 { animation: float 5s ease-in-out 2.4s infinite; }
.flow { background-image: linear-gradient(90deg, var(--orange) 50%, transparent 50%); background-size: 20px 3px; background-repeat: repeat-x; animation: dash 1s linear infinite; }
.belt.looping { animation: belt 34s linear infinite; }

/* Paused: the visitor pressed "Pause motion". Reduced motion: the operating system asked for it. */
html[data-motion="paused"] *,
html[data-motion="paused"] *::before,
html[data-motion="paused"] *::after {
  animation-play-state: paused !important;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .ticker-window { overflow: auto; }
  .belt-wrap { overflow-x: auto; }
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}
.logo {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.logo:hover { color: var(--white); }
.logo img { display: block; height: 32px; width: auto; }
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  font-size: 15px;
}
.main-nav a { color: var(--text-soft); text-decoration: none; }
.main-nav a:hover { color: var(--white); }
.main-nav a.nav-cta {
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--purple);
  color: var(--white);
  font-weight: 600;
}
.main-nav a.nav-cta:hover { background: #9b36ad; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  text-align: center;
}
.btn[hidden] { display: none; }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #ff8450; color: var(--ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--white); font-weight: 600; }
.btn-ghost:hover { border-color: var(--orange-soft); color: var(--white); }

/* ---------- Small shared pieces ---------- */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow-purple { color: var(--purple); }
.eyebrow-orange { color: var(--orange); }
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 4px;
  background: var(--green);
}
.h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.h2-48 {
  font-family: var(--font-head);
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--white);
}
.stack { display: flex; flex-direction: column; }
.light { background: var(--cream); color: var(--ink); }
.light a { color: var(--purple); }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  padding-block: 48px var(--section-y);
}
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.badge {
  align-self: flex-start;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #1e1e2b;
  border: 1px solid #2e2e40;
  font-size: 14px;
  color: var(--text-soft);
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(42px, 7vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--white);
  text-wrap: balance;
}
.hero-lede { font-size: 19px; line-height: 1.55; color: var(--text-soft); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { font-size: 14px; color: var(--text-mute); }

.live-card {
  flex: 1 1 460px;
  min-width: 0;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.live-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.live-card-title { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--white); }
.live-card-sub { font-size: 13px; color: var(--text-mute); }
.ticker-window { height: 392px; overflow: hidden; border-radius: 16px; }
.ticker-list { display: flex; flex-direction: column; gap: 10px; }
.feed-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: var(--card-2);
}
.avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.feed-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.feed-agent { font-size: 13px; color: var(--text-mute); }
.feed-text { font-size: 15px; color: #f2f2f6; }
.feed-state { font-size: 12px; color: var(--text-mute); white-space: nowrap; }
.waiting-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #2a1e2e;
}
.waiting-bar span { font-size: 15px; color: #f2f2f6; }
.waiting-bar a {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Watch it work ---------- */
.watch-inner { padding-block: var(--section-y); display: flex; flex-direction: column; gap: 36px; }
.watch-intro { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.demo {
  background: var(--ink);
  border-radius: 32px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--white);
}
.demo-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
}
.tab[aria-selected="true"] { background: var(--white); color: var(--ink); }
.tab:not([aria-selected="true"]):hover { border-color: var(--orange-soft); }
.demo-status { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text-soft); }
.pause-btn {
  margin-left: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 13px;
  color: var(--text-soft);
}
.pause-btn:hover { border-color: var(--orange-soft); color: var(--white); }
.stages { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.stage {
  flex: 1 1 240px;
  min-width: 0;
  padding: 20px;
  border-radius: 22px;
  background: var(--card-2);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0.35;
  transition: opacity 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}
.stage-1 { flex-basis: 220px; }
.stage-4 { flex-basis: 200px; }
.stage-approval { background: var(--white); color: var(--ink); }
.stage.is-active { opacity: 1; border-color: var(--orange); transform: translateY(-4px); }
.stage.is-done { opacity: 1; }
.stage-label { font-size: 13px; font-weight: 600; color: var(--orange-soft); }
.stage-approval .stage-label { color: var(--purple); }
.say {
  padding: 14px 16px;
  border-radius: 18px 18px 4px 18px;
  background: var(--purple);
  font-size: 16px;
  line-height: 1.45;
  color: var(--white);
}
.connector { flex: 0 0 24px; align-self: center; height: 3px; }
.checks { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; opacity: 0.4; }
.check.is-seen { opacity: 1; }
.check-badge {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #4a4a60;
}
.check.is-done .check-badge { background: var(--green); border-color: var(--green); }
.check-badge svg { display: none; }
.check.is-done .check-badge svg { display: block; }
.card-title { font-family: var(--font-head); font-size: 19px; font-weight: 600; line-height: 1.3; }
.card-detail { font-size: 14px; color: var(--ink-mute); }
.approve {
  margin-top: auto;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  background: var(--purple);
  color: var(--white);
}
.approve.is-approved { background: var(--green); color: var(--ink); }
.done-title { font-family: var(--font-head); font-size: 22px; font-weight: 600; line-height: 1.25; }
.done-note { font-size: 14px; color: var(--text-soft); }

.compare { display: flex; flex-wrap: wrap; gap: 20px; }
.compare-card {
  flex: 1 1 420px;
  min-width: 0;
  padding: 28px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.compare-without { background: var(--white); border: 1px solid var(--line-light); }
.compare-with { background: var(--peach); }
.compare-label { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.compare-without .compare-label { color: var(--ink-quiet); }
.compare-with .compare-label { color: var(--purple); }
.compare ol { padding-left: 22px; list-style: decimal; display: flex; flex-direction: column; gap: 8px; font-size: 17px; color: var(--ink-soft); }
.compare-with p { font-size: 17px; line-height: 1.55; color: var(--ink-soft); }
.compare-big { font-family: var(--font-head); font-size: 28px; font-weight: 700; }
.compare-with .compare-big { margin-top: auto; }

/* ---------- A day in your backroom ---------- */
.day { padding-block: var(--section-y); display: flex; flex-direction: column; gap: 40px; }
.day-intro { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.sweep-track { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.sweep-track .sweep { height: 6px; border-radius: 3px; background: var(--orange); }
.day-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.day-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.day-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.day-time { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--white); }
.day-agent { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--line); color: var(--text-soft); }
.day-card p { font-size: 16px; line-height: 1.5; color: #d4d6de; }

/* ---------- Agents ---------- */
.agents { background: var(--bg-deep); border-block: 1px solid var(--line-section); }
.agents-inner { padding-block: var(--section-y); display: flex; flex-direction: column; gap: 64px; }
.agents-top { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.orbit {
  position: relative;
  flex: 0 1 360px;
  width: min(360px, 100%);
  aspect-ratio: 1;
  margin: 24px auto;
}
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line-strong); }
.orbit-node { position: absolute; width: 20%; height: 20%; }
.orbit-node .unring {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(12px, 3.6vw, 16px);
}
.orbit-node .unring.plus { border: 2px dashed var(--orange); background: var(--bg-deep); color: var(--orange-soft); font-size: clamp(18px, 6vw, 26px); }
.node-pm { left: 40%; top: -4.4%; }
.node-so { left: 82.2%; top: 26.4%; }
.node-mp { left: 66.1%; top: 75.8%; }
.node-li { left: 13.9%; top: 75.8%; }
.node-plus { left: -2.2%; top: 26.4%; }
.orbit-you {
  position: absolute;
  left: 33.3%;
  top: 33.3%;
  width: 33.3%;
  height: 33.3%;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.orbit-you strong { font-family: var(--font-head); font-size: clamp(16px, 5vw, 22px); font-weight: 700; }
.orbit-you span { font-size: 12px; color: #ebd2f0; }
.agents-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.agents-copy > p { font-size: 18px; line-height: 1.55; color: var(--text-soft); }
.agent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.agent-tile { padding: 16px; border-radius: 16px; background: var(--card); }
.agent-tile strong { color: var(--white); display: block; }
.agent-tile span { color: var(--text-soft); font-size: 15px; }
/* Only the wrapper around the "Build your own" link is a flex cell; the other tiles are the items themselves. */
.agent-grid > li:not(.agent-tile) { display: flex; }
.agent-grid > li > .agent-tile { flex: 1 1 auto; }
a.agent-tile-add { display: block; border: 1px dashed var(--orange); text-decoration: none; }
a.agent-tile-add span { color: var(--orange-soft); }
.build { display: flex; flex-direction: column; gap: 28px; }
.build h3 { font-family: var(--font-head); font-size: clamp(26px, 3.6vw, 36px); line-height: 1.1; color: var(--white); max-width: 820px; font-weight: 700; }
.build-steps { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.build-card {
  flex: 1 1 300px;
  min-width: 0;
  padding: 24px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.build-card .stage-label { color: var(--orange-soft); }
.bubble {
  padding: 16px;
  border-radius: 18px 18px 4px 18px;
  background: var(--purple);
  color: var(--white);
  font-size: 16px;
  line-height: 1.5;
}
.build-note { font-size: 14px; color: var(--text-mute); }
.app-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.app-chip { padding: 8px 14px; border-radius: 999px; background: var(--card-2); color: #d4d6de; font-size: 14px; }
.app-chip.on { background: var(--green); color: var(--ink); font-weight: 600; }
.app-chip.more { background: transparent; border: 1px dashed var(--line-strong); color: var(--text-soft); }
.setting { display: flex; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 14px; background: var(--card-2); font-size: 15px; }
.setting span { color: var(--text-soft); }
.setting strong { color: var(--white); text-align: right; }
.setting strong.ask { color: var(--orange); }

/* ---------- Savings ---------- */
.savings { overflow: hidden; }
.savings-intro { padding-block: var(--section-y) 32px; display: flex; flex-direction: column; gap: 12px; }
.savings-intro .h2 { max-width: 820px; }
.belt-wrap { padding-block: 8px 24px; overflow: hidden; }
.belt { display: flex; gap: 14px; width: max-content; }
.chip {
  padding: 16px 22px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line-light);
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  gap: 10px;
  align-items: center;
}
.chip i { width: 10px; height: 10px; border-radius: 5px; display: block; }
.savings-body { padding-block: 32px var(--section-y); display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.savings-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding-top: 16px; }
.savings-copy h3 { font-family: var(--font-head); font-size: clamp(30px, 4vw, 40px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
.savings-copy > p { font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.benefits { display: flex; flex-direction: column; gap: 10px; }
.benefits li { padding: 16px 18px; border-radius: 18px; background: var(--white); border: 1px solid var(--line-light); }
.benefits li span { color: var(--ink-mute); }
.calc {
  flex: 1 1 520px;
  min-width: 0;
  background: var(--ink);
  color: var(--white);
  border-radius: 32px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.calc-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.calc-title { font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card-2); }
.seg button {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
}
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.field-row label { color: var(--text-soft); }
.field-row output { font-weight: 700; }
input[type="range"] { accent-color: var(--orange); width: 100%; height: 28px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 18px; border-radius: 18px; background: var(--card-2); display: flex; flex-direction: column; gap: 4px; }
.stat > span:first-child { font-size: 13px; color: var(--text-soft); }
.stat-num { font-family: var(--font-head); font-size: clamp(30px, 4.4vw, 38px); font-weight: 700; }
.stat-num.orange { color: var(--orange-soft); }
.stat > span:last-child { font-size: 13px; color: var(--text-soft); }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bars-legend { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--text-soft); }
.bar-track { height: 14px; border-radius: 7px; background: var(--line); overflow: hidden; }
.bar { height: 14px; border-radius: 7px; transition: width 0.5s ease; }
/* Defaults match the starting sliders; the script then sets the width. */
.bar-value { background: var(--orange); width: 100%; }
.bar-cost { background: var(--purple); width: 4%; }
.multiple { padding: 18px; border-radius: 18px; background: var(--peach); color: var(--ink); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.multiple > span:first-child { font-size: 15px; font-weight: 600; }
.multiple-num { font-family: var(--font-head); font-size: 30px; font-weight: 700; }
.calc-note { font-size: 13px; line-height: 1.5; color: var(--text-soft); }
html:not(.js) .calc-controls,
html:not(.js) .pause-btn,
html:not(.js) .billing { display: none; }

/* ---------- Safety ---------- */
.safety { padding-block: var(--section-y); display: flex; flex-wrap: wrap-reverse; gap: 64px; align-items: center; }
.safety-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.safety-copy p { font-size: 18px; line-height: 1.55; color: var(--text-soft); }
.stack-art { flex: 1 1 420px; min-width: 0; position: relative; height: 340px; }
.stack-art > div { position: absolute; }
.ghost-1 { left: 40px; top: 0; right: 0; padding: 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--text-mute); }
.ghost-2 { left: 20px; top: 56px; right: 20px; padding: 20px; border-radius: 20px; background: var(--card-3); border: 1px solid #2e2e40; color: var(--text-soft); }
.approval {
  left: 0;
  top: 112px;
  right: 40px;
  padding: 24px;
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.approval .stage-label { color: var(--purple); }
.approval-title { font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.approval-detail { font-size: 15px; color: var(--ink-mute); }
.approval-actions { display: flex; gap: 10px; }
.approval-actions span { flex: 1 1 auto; padding: 12px; border-radius: 12px; text-align: center; font-weight: 700; font-size: 15px; }
.approval-actions .ok { background: var(--purple); color: var(--white); }
.approval-actions .edit { border: 1px solid #d4d6de; background: var(--white); color: var(--ink); font-weight: 600; }

/* ---------- Pricing ---------- */
.pricing-inner { padding-block: var(--section-y); display: flex; flex-direction: column; gap: 28px; align-items: center; }
.pricing-inner .h2 { text-align: center; font-size: clamp(30px, 4.6vw, 48px); }
.billing { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line-light); }
.billing button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.billing button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; }
.plan { padding: 28px; border-radius: 24px; background: var(--white); border: 1px solid var(--line-light); display: flex; flex-direction: column; gap: 8px; }
.plan-name { font-weight: 600; }
.plan-price { font-family: var(--font-head); font-size: 44px; font-weight: 700; }
.plan-note { font-size: 14px; font-weight: 600; min-height: 1.4em; }
.plan-desc { color: var(--ink-mute); }
.plan-plus { background: var(--ink); color: var(--white); border-color: var(--ink); }
.plan-plus .plan-note { color: var(--orange-soft); }
.plan-plus .plan-desc { color: var(--text-soft); }
.plan-pro .plan-note { color: var(--purple); }

/* ---------- Join ---------- */
.join { padding-block: clamp(72px, 10vw, 120px); text-align: center; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.join h2 { font-family: var(--font-head); font-size: clamp(36px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.03em; color: var(--white); max-width: 860px; font-weight: 700; text-wrap: balance; }
.join > p { font-size: 18px; color: var(--text-soft); }
.waitlist { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; max-width: 520px; }
.waitlist input[type="email"] {
  flex: 1 1 260px;
  padding: 16px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--white);
  font-size: 16px;
}
.waitlist input[type="email"]::placeholder { color: var(--text-mute); }
.waitlist input[aria-invalid="true"] { border-color: var(--pink); }
.waitlist button[type="submit"] {
  padding: 16px 26px;
  border-radius: 999px;
  border: none;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
}
.waitlist button[type="submit"]:hover { background: #ff8450; }
.waitlist button[type="submit"][disabled] { opacity: 0.6; cursor: progress; }
.optin {
  flex: 1 1 100%;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
  font-size: 14px;
  color: var(--text-soft);
  text-align: left;
}
.optin input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--orange); flex: 0 0 18px; }
.waitlist-note { flex: 1 1 100%; font-size: 13px; color: var(--text-mute); }
.turnstile-slot { flex: 1 1 100%; display: flex; justify-content: center; min-height: 0; }
.status { flex: 1 1 100%; font-size: 15px; min-height: 1.5em; }
.status.is-ok { color: var(--green); }
.status.is-error { color: #ff8aa3; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-section);
  padding: 32px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  font-size: 14px;
  color: var(--text-mute);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: var(--white); }
.motion-toggle { background: none; border: none; color: var(--text-soft); text-decoration: underline; font-size: 14px; padding: 4px 8px; }
.motion-toggle:hover { color: var(--white); }

/* ---------- Legal and utility pages ---------- */
.page { padding-block: 24px var(--section-y); max-width: 760px; margin: 0 auto; padding-inline: var(--gutter); }
.page h1 { font-family: var(--font-head); font-size: clamp(34px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.025em; color: var(--white); margin-bottom: 12px; font-weight: 700; }
.page .updated { color: var(--text-mute); font-size: 14px; margin-bottom: 32px; }
.prose { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.65; color: var(--text-soft); }
.prose h2 { font-family: var(--font-head); font-size: 24px; color: var(--white); margin-top: 16px; font-weight: 600; }
.prose h3 { font-family: var(--font-head); font-size: 18px; color: var(--white); margin-top: 8px; font-weight: 600; }
.prose strong { color: var(--white); font-weight: 600; }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--white); background: var(--bg-raised); font-weight: 600; }
.prose ul { list-style: disc; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.prose ol { list-style: decimal; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.placeholder {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px dashed var(--orange);
  background: #1e1a1f;
  color: var(--orange-soft);
}
.panel { margin-top: 24px; padding: 28px; border-radius: 24px; background: var(--bg-raised); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.panel .btn { border: none; cursor: pointer; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .main-nav { gap: 12px 20px; font-size: 14px; }
  .demo, .calc { padding: 20px; border-radius: 24px; }
  .connector { display: none; }
  .day-grid, .agent-grid, .stats { grid-template-columns: 1fr; }
  .hero { gap: 40px; }
  .agents-top { gap: 32px; }
  .safety { gap: 40px; }
  .stack-art { height: 360px; }
  .ghost-1 { left: 24px; }
  .approval { right: 24px; }
}
