/* Toolbridge design system
   One accent (emerald). 1px borders. Flat color only. */

:root {
  --paper: #fcfcfb;
  --panel: #f4f5f6;
  --surface: #ffffff;
  --ink: #15171c;
  --ink-2: #3a3e47;
  --muted: #60646f;
  --line: #e3e4e7;
  --line-strong: #d0d2d7;
  --accent: #0a7552;
  --accent-ink: #075e42;
  --accent-soft: #e7f3ee;
  --warn: #a34a00;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(64px, 8vw, 112px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--ink); text-wrap: balance; }
p, ul, ol, dl, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.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;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 20;
  padding: 8px 12px; background: var(--ink); color: #fff; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink); border-radius: var(--r-sm);
  font-family: inherit; font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 16px; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-invert { background: #fff; color: var(--ink); border-color: #fff; }
.btn-invert:hover { background: var(--paper); border-color: var(--paper); color: var(--accent-ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 16px; letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--accent); flex: none; }
.site-nav { margin-right: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 6px 10px; border-radius: var(--r-sm);
  color: var(--muted); font-size: 14px; text-decoration: none;
}
.site-nav a:hover { color: var(--ink); background: var(--panel); }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .header-inner { justify-content: space-between; }
}

/* Hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 var(--section); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
/* Offset by the tab row so the copy centres on the chat window, not the figure */
.hero-copy { container-type: inline-size; padding-top: 42px; }
.hero h1 {
  /* Sized to the column: the longer line is about 12em wide */
  font-size: min(60px, 8cqi);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.h1-line { display: block; }
.lede {
  margin-top: 24px; max-width: 34ch;
  font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5;
  color: var(--ink-2); letter-spacing: -0.01em;
}
.hero .btn { margin-top: 32px; }
.note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Desktop: narrower mock so the headline can reach ~60px on two lines */
@media (min-width: 1280px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; }
  .hero h1 { font-size: min(64px, 8.2cqi); letter-spacing: -0.035em; }
  .h1-line { white-space: nowrap; }
  .lede { max-width: 44ch; text-wrap: balance; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .hero-copy { padding-top: 0; }
  .hero h1 { max-width: 16ch; font-size: clamp(38px, 9.5vw, 56px); text-wrap: balance; }
  .h1-line { display: inline; }
}

/* Chat mock */
.demo { min-width: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { flex: none; width: 1em; height: 1em; fill: currentColor; }

.tabs { display: flex; gap: 20px; padding: 0 4px 6px; }
.tab {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 2px; margin: 0;
  background: none; border: 0; border-bottom: 1px solid transparent;
  font: inherit; font-size: 13px; color: var(--muted); cursor: pointer;
  transition: color .15s, border-color .15s;
}
.tab .ic { font-size: 15px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 500; border-color: var(--ink); }
.demo-panel:focus-visible { border-radius: var(--r-lg); }

/* Platform skins. Only colors and radii change, so the mock never changes size.
   Claude is the default (no-JS) look. */
.chat {
  --surface: #f5f4ee; --paper: #efede5; --panel: #e8e5d9;
  --ink: #1f1e1d; --ink-2: #3d3a35; --muted: #6b675e;
  --line: #e8e6dc; --line-strong: #d8d4c6;
  --brand: #c96442; --send-ink: #fff; --send-r: 8px; --bubble-r: 14px 14px 4px 14px; --input-r: var(--r);
  --input-bg: #fff;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-size: 14px; color: var(--ink);
}
.demo[data-platform="chatgpt"] .chat {
  --surface: #fff; --paper: #f9f9f9; --panel: #f4f4f4;
  --ink: #0d0d0d; --ink-2: #3c3c3c; --muted: #5d5d5d;
  --line: #e5e5e5; --line-strong: #d4d4d4;
  --brand: #0d0d0d; --send-r: 50%; --bubble-r: 18px; --input-r: 24px; --input-bg: #fff;
}
.demo[data-platform="grok"] .chat {
  --surface: #0f0f0f; --paper: #161616; --panel: #212121;
  --ink: #f2f2f2; --ink-2: #cfcfcf; --muted: #9a9a9a;
  --line: #262626; --line-strong: #363636;
  --accent: #3fbf8a; --accent-ink: #5fd3a3; --warn: #f0a35e;
  --brand: #fff; --send-ink: #0f0f0f; --send-r: 50%; --bubble-r: 18px; --input-r: 24px; --input-bg: #0f0f0f;
}
@media (prefers-reduced-motion: no-preference) {
  .chat, .chat * { transition: background-color .18s, color .18s, border-color .18s; }
}

.chat-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.chat-app { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--ink); }
.chat-app .ic { font-size: 16px; }
.chat-conn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 12px;
}
.chat-conn .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.chat-body { padding: 22px 18px 6px; display: grid; gap: 16px; }
.msg-user {
  justify-self: end; max-width: 80%;
  padding: 10px 14px; background: var(--panel);
  border-radius: var(--bubble-r); color: var(--ink);
}

.tool { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; max-width: 100%; }
.tool-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; color: var(--muted); font-size: 13px;
}
.tool-head svg { flex: none; color: var(--brand); }
.tool-head b { color: var(--ink); font-weight: 500; }
.tool-head .chev { margin-left: auto; color: var(--muted); transform: rotate(180deg); }
.tool-io {
  padding: 10px 12px; border-top: 1px solid var(--line); background: var(--paper);
  font-family: var(--mono); font-size: 12px; line-height: 1.65; color: var(--ink-2);
  white-space: pre; overflow: hidden;
}
.tool-io .k { color: var(--muted); }
.tool-io .r { color: var(--accent-ink); }

.msg-ai { display: grid; gap: 12px; color: var(--ink); line-height: 1.55; }
.msg-ai .a3 { display: flex; align-items: flex-start; gap: 8px; }
.ai-mark { font-size: 16px; margin-top: 2px; color: var(--brand); }
.deals { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.deals th {
  text-align: left; font-weight: 500; color: var(--muted);
  padding: 0 10px 7px 0; border-bottom: 1px solid var(--line-strong);
}
.deals td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.deals tr:last-child td { border-bottom: 0; }
.deals .num { text-align: right; }
.deals th:last-child, .deals td:last-child { padding-right: 0; }
.deals .warn { color: var(--warn); font-weight: 500; }

.chat-input {
  display: flex; align-items: center; justify-content: space-between;
  margin: 14px 18px 18px; padding: 10px 10px 10px 14px;
  border: 1px solid var(--line); border-radius: var(--input-r);
  background: var(--input-bg, var(--surface));
  color: var(--muted); font-size: 14px;
}
.send {
  display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: var(--send-r); background: var(--brand); color: var(--send-ink);
}

@media (max-width: 480px) {
  .chat-body { padding: 18px 14px 4px; }
  .chat-bar { padding: 10px 14px; }
  .chat-input { margin: 12px 14px 14px; }
  .msg-user { max-width: 92%; }
  .hide-sm { display: none; }
  .tool-io { font-size: 11px; }
}

/* One orchestrated entrance, about 3s, plays once */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .a1 { animation: rise .45s .2s cubic-bezier(.2,.7,.2,1) both; }
  .a2 { animation: rise .4s .8s cubic-bezier(.2,.7,.2,1) both; }
  .a2 .tool-io { animation: fade .4s 1.2s both; }
  .a3 { animation: fade .35s 1.8s both; }
  .deals thead { animation: fade .3s 2s both; }
  .a4 { animation: fade .3s 2.15s both; }
  .a5 { animation: fade .3s 2.35s both; }
  .a6 { animation: fade .3s 2.55s both; }
  .a7 { animation: fade .35s 2.85s both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Platform strip */
.platforms { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.platforms-inner { display: flex; align-items: center; gap: 48px; padding-top: 40px; padding-bottom: 40px; }
.platforms-label { flex: none; padding-right: 48px; border-right: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--muted); }
/* Monochrome platform marks, one grey: these are platforms, not customers */
.wordmarks {
  flex: 1; display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 14px 32px;
}
.wordmarks li {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 18px; font-weight: 500; letter-spacing: -0.02em;
  color: var(--muted); white-space: nowrap; transition: color .15s;
}
.wordmarks li:hover { color: var(--ink); }
.wordmarks .ic { font-size: 20px; }
@media (max-width: 720px) {
  .platforms-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
  .platforms-label { padding-right: 0; border-right: 0; }
  .wordmarks { display: grid; grid-template-columns: repeat(3, max-content); gap: 14px 28px; }
  .wordmarks li { font-size: 16px; gap: 8px; }
  .wordmarks .ic { font-size: 18px; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.035em; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; max-width: 52ch; }

/* Why now: chart left and larger on desktop; headline, chart, points when stacked */
.platforms + .section-alt { border-top: 0; }
.why-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-areas: "chart head" "chart points";
  grid-template-rows: auto 1fr; column-gap: clamp(40px, 6vw, 88px);
}
.why-head { grid-area: head; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--accent-ink); }
.why-head h2 { margin-top: 10px; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.035em; }
.why-points { grid-area: points; margin-top: 32px; border-top: 1px solid var(--line-strong); }
.why-points li { padding: 16px 0; border-bottom: 1px solid var(--line-strong); font-size: 17px; line-height: 1.45; color: var(--ink-2); max-width: 44ch; }

.why-chart {
  grid-area: chart; min-width: 0; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.stats { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; }
.stat { display: grid; gap: 4px; }
.stat-n { font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat-l { font-size: 14px; color: var(--muted); }
.stat-top { display: flex; align-items: center; gap: 12px; }
.stat-2 { margin-left: auto; padding-left: 24px; border-left: 1px solid var(--line); }
.stat-2 .stat-n { font-size: 28px; padding-top: 10px; }

.plot { margin-top: 36px; padding-left: 40px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.plot-area { position: relative; height: clamp(200px, 22vw, 280px); }
.gl { position: absolute; left: 0; right: 0; bottom: var(--y); border-top: 1px solid var(--line); }
.gl-0 { border-color: var(--line-strong); }
.gl > span { position: absolute; right: 100%; top: 0; margin-right: 10px; transform: translateY(-50%); line-height: 1; }
.bars { position: absolute; inset: 0; width: 100%; height: 100%; display: block; fill: #8cc3ab; }
.bars .last { fill: var(--accent); }
.plot-val {
  position: absolute; right: 0; bottom: var(--y); margin-bottom: 6px;
  font-size: 13px; font-weight: 600; line-height: 1; color: var(--accent-ink);
}
.plot-x { position: relative; height: 1em; margin-top: 10px; line-height: 1; white-space: nowrap; }
.plot-x span { position: absolute; left: var(--x); transform: translateX(-50%); }
.plot-x .x-first { left: 0; transform: none; }
.plot-x .x-last { left: auto; right: 0; transform: none; }
.source { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--muted); }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "chart" "points"; grid-template-rows: none; }
  .why-chart { margin-top: 32px; }
  .why-points li { max-width: none; }
}
@media (max-width: 480px) {
  .why-chart { padding: 20px; }
  .stat-n { font-size: 38px; }
  .stat-2 { margin-left: 0; padding-left: 0; border-left: 0; flex-basis: 100%; padding-top: 12px; border-top: 1px solid var(--line); }
  .plot { margin-top: 28px; padding-left: 34px; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.step {
  display: flex; flex-direction: column;
  padding: 12px 12px 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.step > :not(.step-visual) { margin-left: 16px; margin-right: 16px; }
.step-n { display: block; margin-top: 24px; font-size: 13px; color: var(--muted); }
.step h3 { margin-top: 4px; font-size: 19px; letter-spacing: -0.02em; line-height: 1.3; }
.step p { margin-top: 8px; color: var(--ink-2); max-width: 32ch; }

/* Mini visuals: one fixed height so the text below lines up across cards */
.step-visual {
  display: grid; place-items: center;
  height: 200px; padding: 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
}
.step-visual > * { width: 100%; max-width: 252px; }

/* Step 1: recording thumbnail */
.rec { display: grid; gap: 8px; }
.rec-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: #2b2e35; border-radius: var(--r-sm);
}
.rec-ui { position: absolute; inset: 14px 16px auto auto; display: grid; justify-items: end; gap: 6px; width: 46%; }
.rec-ui i { display: block; height: 7px; width: 100%; border-radius: 4px; background: #3d414a; }
.rec-ui i:nth-child(2) { width: 70%; justify-self: start; }
.rec-ui i:nth-child(3) { width: 85%; justify-self: start; }
.rec-play {
  position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; background: #fff;
}
.rec-play::after {
  content: ""; position: absolute; left: 16px; top: 13px;
  border-style: solid; border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent var(--ink);
}
.rec-time {
  position: absolute; right: 8px; bottom: 8px; padding: 1px 6px;
  background: rgba(0, 0, 0, .55); color: #fff; border-radius: 4px;
  font-family: var(--mono); font-size: 11px; line-height: 1.5;
}
.rec-cap { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Step 2: build progress and checklist */
.build { display: grid; gap: 18px; }
.days-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.days-bar i { height: 8px; border-radius: 2px; background: var(--accent); }
.days-bar i:nth-child(n+8) { background: var(--accent-soft); outline: 1px solid #c4e1d5; outline-offset: -1px; }
.days-legend { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--muted); }

.ticks { display: grid; gap: 6px; }
.ticks li {
  position: relative; padding: 6px 10px 6px 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 13px; line-height: 1.4; color: var(--ink-2);
}
.ticks li::before {
  content: ""; position: absolute; left: 12px; top: 50%; margin-top: -4px;
  width: 8px; height: 4px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.ticks-mono li { font-family: var(--mono); font-size: 12px; }

/* Step 3: directory listing tile */
.listing { display: grid; gap: 6px; }
.listing-app {
  display: flex; align-items: center; gap: 10px; margin-bottom: 4px;
  padding: 10px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r);
}
.listing-mark {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--ink); color: #fff; border-radius: 8px;
  font-weight: 600; font-size: 16px;
}
.listing-name { display: grid; min-width: 0; line-height: 1.3; }
.listing-name b { font-size: 14px; font-weight: 600; color: var(--ink); }
.listing-name span { font-size: 12px; color: var(--muted); }
.listing-pill {
  margin-left: auto; flex: none; padding: 1px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 11px; font-weight: 500; line-height: 1.7;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  padding: 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.plan-featured { position: relative; border-color: var(--accent); overflow: hidden; }
.plan-featured::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); }
/* Pill sits beside the price so the title stays on one line and prices align across cards */
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.price-row .price { margin-top: 0; }
.plan h3 { font-size: 16px; letter-spacing: -0.01em; }
.badge {
  flex: none; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 12px; font-weight: 500; line-height: 1.6;
}
.price {
  margin-top: 14px; font-size: 40px; font-weight: 600; line-height: 1;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.price .from { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.price .per { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.checks { margin: 24px 0 28px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; flex: 1; align-content: start; }
.checks li { position: relative; padding-left: 24px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 5px;
  width: 10px; height: 5px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.plan .btn { width: 100%; }

@media (max-width: 900px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
}

/* Details: what's included */
.more { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.more > summary { padding: 18px 28px; }
.more-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
  padding: 8px 28px 28px; font-size: 14px; color: var(--ink-2);
}
.more h3 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.more h3:not(:first-child) { margin-top: 22px; }
.more ul { display: grid; gap: 6px; }
.more ul li { padding-left: 14px; position: relative; line-height: 1.45; }
.more ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 1px; background: var(--muted); }
.addons div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.addons div:first-child { padding-top: 0; }
.addons dt { line-height: 1.45; }
.addons dd { margin: 0; flex: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.more-note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }

@media (max-width: 900px) {
  .more { max-width: 480px; }
  .more-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .more > summary, .more-grid { padding-left: 20px; padding-right: 20px; }
}

/* Shared disclosure styling */
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none; font-weight: 500; color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: -4px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s;
}
details[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
summary:hover { color: var(--accent-ink); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.faq-grid .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 20px 0; font-size: 17px; letter-spacing: -0.01em; }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 800px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq details p { padding-right: 0; }
}

/* Sample builds: Deputy (with video) on the left; the two small cards stack top-aligned on the right.
   The 1fr third row absorbs the video's extra height so the small cards never stretch. */
.samples {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr; gap: 16px;
}
.sample {
  align-self: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.sample-featured { grid-row: 1 / span 3; padding: 12px 12px 0; }
.sample-media figcaption { margin-top: 8px; padding: 0 4px; font-size: 12px; color: var(--muted); }
.video-box { aspect-ratio: 960 / 636; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.video-box video { display: block; width: 100%; height: 100%; object-fit: cover; }
.sample-body { display: grid; justify-items: start; padding: 20px 24px 22px; }
.sample-featured .sample-body { padding: 18px 16px 22px; }
.sample-top { justify-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sample h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.3; }
.sample-what { margin-top: 2px; color: var(--muted); font-size: 15px; }
.sample-ask {
  margin-top: 16px; padding: 8px 12px;
  background: var(--panel); border-radius: 14px 14px 14px 4px;
  font-size: 14px; line-height: 1.45; color: var(--ink-2);
}
.sample-tools { margin-top: 14px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.badge-quiet { background: var(--panel); color: var(--muted); }
@media (max-width: 900px) {
  .samples { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; max-width: 640px; }
  .sample-featured { grid-row: auto; }
}

/* Demo request: the closing emerald band. The form is one node that moves into the dialog. */
.cta { background: var(--accent); color: #fff; }
.demo-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(32px, 6vw, 88px); align-items: start;
  padding-top: var(--section); padding-bottom: var(--section);
}
.cta h2 { color: #fff; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.045em; }
/* Rotating platform word: all words share one grid cell, so the widest reserves the width. */
.rotor { display: inline-grid; justify-items: start; white-space: nowrap; }
.rotor-w { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(5px); }
.rotor-w.is-on { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .rotor-w { transition: opacity .2s, transform .2s, visibility .2s; }
}
.demo-head p { margin-top: 16px; max-width: 36ch; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; color: #dff0e8; }
.cta :focus-visible { outline-color: #fff; }
@media (max-width: 800px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }

.lead {
  display: grid; gap: 16px; padding: 28px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.lead :focus-visible { outline-color: var(--accent); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.opt { margin-left: 4px; font-weight: 400; color: var(--muted); }
.field input {
  width: 100%; height: 44px; padding: 0 12px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font: inherit; font-size: 16px;
}
.field input::placeholder { color: #8b8f99; }
.field input:hover { border-color: var(--muted); }
.field input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--warn); }
.err { font-size: 13px; line-height: 1.4; color: var(--warn); }
.err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead .btn { margin-top: 4px; width: 100%; }
.lead .btn:disabled { opacity: .6; cursor: progress; }
.lead-status { font-size: 14px; color: var(--ink-2); }
.lead-status:empty { display: none; }
.lead-done { font-size: 17px; line-height: 1.5; color: var(--ink); }

.lead-dialog {
  width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); color: var(--ink);
}
.lead-dialog::backdrop { background: rgba(21, 23, 28, .5); }
html:has(.lead-dialog[open]) { overflow: hidden; }
.dlg { padding: 24px 24px 8px; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dlg-head h2 { font-size: 24px; letter-spacing: -0.03em; line-height: 1.2; }
.dlg-close {
  display: grid; place-items: center; width: 36px; height: 36px; margin-right: -8px;
  background: none; border: 0; border-radius: var(--r-sm); color: var(--muted); cursor: pointer;
}
.dlg-close:hover { background: var(--panel); color: var(--ink); }
.dlg-sub { margin-top: 6px; color: var(--muted); font-size: 15px; }
.dlg .lead { padding: 20px 0 16px; border: 0; border-radius: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.footer-inner ul { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
main:has(> .cta:last-child) + .site-footer { border-top: 0; }

/* Legal pages and 404 */
.legal { padding: clamp(56px, 8vw, 96px) 0 var(--section); }
.legal .wrap { max-width: calc(68ch + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(34px, 4.4vw, 48px); line-height: 1.05; letter-spacing: -0.04em; }
.legal .updated { margin-top: 12px; padding-bottom: 32px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.legal h2 { margin-top: 44px; font-size: 20px; letter-spacing: -0.02em; line-height: 1.3; }
.legal p { margin-top: 14px; color: var(--ink-2); }
.legal .updated + p { margin-top: 32px; }
.legal ul { margin-top: 18px; display: grid; gap: 12px; }
.legal li { position: relative; padding-left: 18px; color: var(--ink-2); }
.legal li::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 1px; background: var(--accent); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal-404 .wrap { max-width: var(--wrap); }
.legal-404 h1 { font-size: clamp(40px, 6vw, 64px); }
.legal-404 p { color: var(--muted); }
.legal-404 .btn { margin-top: 28px; }
