/* ==========================================================================
   bevel landing v3 — cursor-structured, doctrine-tokened.
   warm paper marketing chrome; demos are ONE-TO-ONE with the live /app
   cockpit (agent-ux-mock-v4): white stone panels, the 6-layer cool shadow,
   physical buttons, real chip recipes. demos float on bevel's own sky
   texture (the landing-v2 shader's CSS fallback), the way cursor floats
   product windows over a wallpaper.
   token sources: bevel-feel-research.md §4 + agent-ux-mock-v4 components.
   ========================================================================== */

:root {
  /* marketing surfaces — warm paper */
  --bg: #f7f6f2;
  --surface: #fcfbf8;
  --panel: #f1efe9;

  /* ink */
  --ink: #1b1a16;
  --ink-92: rgba(27, 26, 22, 0.92);
  --ink-72: rgba(27, 26, 22, 0.72);
  --ink-60: rgba(27, 26, 22, 0.6);
  --ink-45: rgba(27, 26, 22, 0.45);
  --ink-32: rgba(27, 26, 22, 0.32);
  --ink-18: rgba(27, 26, 22, 0.18);

  /* hairlines */
  --line: rgba(43, 38, 27, 0.08);
  --line-2: rgba(43, 38, 27, 0.14);
  --line-3: rgba(43, 38, 27, 0.22);

  /* one accent: the app's own ship green */
  --green: #1a9a5a;
  --green-bg: #eaf7f0;
  --green-border: rgba(26, 154, 90, 0.18);
  --green-06: rgba(26, 154, 90, 0.06);

  /* app palette (stone) — used ONLY inside the one-to-one demos */
  --app-canvas: #fafaf8;
  --st-50: #fafaf9;
  --st-100: #f5f5f4;
  --st-200: #e7e5e4;
  --st-300: #d6d3d1;
  --st-400: #a8a29e;
  --st-500: #78716c;
  --st-600: #57534e;
  --st-700: #44403c;
  --st-800: #292524;
  --st-900: #1c1917;
  --app-dark: #1a1a1f;
  --amber: #fbbf24;
  --posthog: #f59e0b;

  /* the app's windowed-panel shadow, kept verbatim */
  --sh-panel: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px,
    rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px,
    rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px,
    rgba(42, 51, 70, 0.04) 0px 6px 6px -3px,
    rgba(14, 63, 126, 0.04) 0px 12px 12px -6px,
    rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;

  /* the app's physical button shadows, kept verbatim */
  --sh-btn-dark: 0 0 0 1px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.16),
    inset 0 -0.5px 1.5px 0 rgba(0, 0, 0, 0.22), 0 1px 2px rgba(0, 0, 0, 0.08);
  --sh-btn-light: 0 0 0 0.7px rgba(28, 28, 32, 0.1),
    inset 0 0 0.357px 1.5px rgba(255, 255, 255, 0.6), inset 0 1px 0 0 #ffffff,
    inset 0 -0.5px 0 0 rgba(0, 0, 0, 0.04), 0 1px 1px rgba(28, 40, 80, 0.04);
  --sh-chip: 0 0 0 0.7px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.7),
    inset 0 -0.5px 1.5px 0 rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);

  /* type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --app-sans: var(--font-geist-sans, "Geist"), -apple-system,
    BlinkMacSystemFont, sans-serif;
  --serif: "EB Garamond", Georgia, serif;
  --mono: var(--font-geist-mono, "Geist Mono"), ui-monospace, SFMono-Regular,
    Menlo, monospace;

  /* motion: app's quintic press + 150ms hovers */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --press: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 150ms;

  --container: 1300px;
}

/* ── base ──────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(26, 154, 90, 0.14); }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

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

/* mono ornament — uppercase like the app's section labels; numbers tabular.
   tracking lives on uppercase only (never on lowercase text). */
.k-mono {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-45);
  font-variant-numeric: tabular-nums;
}

/* ── type scale — whisper headlines, nothing bold ──────────────────────── */

.h1, .h2, .h3 { margin: 0; text-wrap: balance; }

.h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.h3 {
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.t-soft { color: var(--ink-45); }
.t-strong { color: var(--ink); }

.lede {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-72);
  max-width: 620px;
}

/* ── buttons — the app's physical recipe, verbatim ─────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 540;
  letter-spacing: -0.01em;
  border-radius: 10px;
  padding: 9px 15px 10px;
  white-space: nowrap;
  transition: background-color 180ms var(--press), box-shadow 180ms var(--press),
    transform 180ms var(--press);
}
.btn:active { transform: translateY(0.5px) scale(0.985); }

.btn-dark {
  background: var(--app-dark);
  color: #f8f8fa;
  box-shadow: var(--sh-btn-dark);
}
.btn-dark:hover { background: #2a2a30; transition-duration: 0ms; }

.btn-ghost {
  background: transparent;
  color: var(--ink-72);
  box-shadow: 0 0 0 0.7px rgba(28, 28, 32, 0.12);
}
.btn-ghost:hover { background: var(--surface); color: var(--ink); transition-duration: 0ms; }

.btn-lg { padding: 12px 19px 13px; font-size: 14.5px; }

.btn .arr {
  font-family: var(--mono);
  font-size: 13px;
  opacity: 0.7;
}

/* ── header ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-word {
  font-size: 16px;
  font-weight: 540;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 12px;
}
.header-nav a {
  font-size: 13.5px;
  color: var(--ink-60);
  transition: color var(--t) var(--ease);
}
.header-nav a:hover { color: var(--ink); transition-duration: 0ms; }

.header-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 820px) {
  .header-nav { display: none; }
}

/* phone header: the full-size CTAs crowd the bar. shrink them, and drop the
   secondary "log in" so the primary action has room (login still lives in
   the app + the footer flows). */
@media (max-width: 560px) {
  .header-inner { gap: 12px; }
  .header-cta .btn { padding: 8px 13px; font-size: 13px; }
}
@media (max-width: 420px) {
  .header-cta .btn-ghost { display: none; }
}

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero { padding: 80px 0 40px; }

.hero-copy { max-width: 760px; }

.hero .h1 .t-soft { display: block; }
.hero .lede { margin-top: 18px; }

.hero-cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
}
/* "or" between the primary form and the secondary book-a-call button */
.cta-or {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-32);
}
/* on a phone the form stacks; drop the inline "or" so the ghost button
   reads as its own full-width secondary action */
@media (max-width: 560px) {
  .hero-cta { gap: 10px; }
  .cta-or { display: none; }
  .hero-cta .btn-ghost { width: 100%; }
}
.closing .hero-cta { justify-content: center; }

/* book-a-call button with the founder's avatar — a face converts the
   secondary CTA far better than a plain "book a call". reuses the cockpit
   sidebar's "V" monogram. */
/* height-matched to the primary btn-lg (48px) so the CTA pair lines up:
   32px avatar + 8px top/bottom padding = 48px. */
.btn-call {
  gap: 10px;
  padding: 8px 18px 8px 8px;
  align-items: center;
  text-align: left;
}
.call-ava {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 1px rgba(28, 28, 32, 0.12);
}

.hero-form { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-input {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 0 14px;
  min-width: 280px;
  box-shadow: var(--sh-btn-light);
  transition: box-shadow var(--t) var(--ease);
}
.hero-input:focus-within {
  box-shadow: 0 0 0 1.4px rgba(28, 28, 32, 0.35),
    inset 0 1px 0 0 #ffffff, 0 1px 1px rgba(28, 40, 80, 0.04);
}
.hero-input .prefix {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-32);
  margin-right: 2px;
}
.hero-input input {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14.5px;
  padding: 12px 0 13px;
  width: 100%;
  color: var(--ink);
}
.hero-input input::placeholder { color: var(--ink-32); }
.hero-input input:focus { outline: none; }

.hero-promise {
  margin: 16px 0 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-promise .sep { color: var(--ink-18); }

/* ── sky boxes — bevel's own cloud texture behind every demo ───────────── */
/* the landing-v2 shader's CSS fallback: layered white radials simulating
   cirrus highlights on the blue base. components float over it the way
   cursor floats product windows over a wallpaper. */

.sky-box {
  background-color: #79b8f3;
  background-image:
    radial-gradient(ellipse 50% 30% at 22% 18%, rgba(255, 255, 255, 0.55) 0%, transparent 65%),
    radial-gradient(ellipse 45% 28% at 70% 26%, rgba(255, 255, 255, 0.45) 0%, transparent 65%),
    radial-gradient(ellipse 60% 32% at 48% 60%, rgba(255, 255, 255, 0.3) 0%, transparent 65%),
    radial-gradient(ellipse 38% 24% at 88% 70%, rgba(255, 255, 255, 0.28) 0%, transparent 65%);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  overflow: hidden;
}

/* ── hero demo — the cockpit on the sky ────────────────────────────────── */

.hero-demo { padding: 28px 0 0; }

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

.demo-panel { padding: clamp(14px, 3vw, 40px); }


/* ── section scaffolding — left-aligned heads ──────────────────────────── */

.section { padding: 110px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { max-width: 720px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head .lede { margin-top: 14px; }

/* ── loop features — alternating copy / live surface ───────────────────── */

.feat-grid {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) 7fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: 72px 0;
}
.feat-grid + .feat-grid { border-top: 1px solid var(--line); }
.feat-grid--flip { grid-template-columns: 7fr minmax(300px, 5fr); }
.feat-grid--flip .feat-copy { order: 2; }
.feat-grid--flip .feat-mock { order: 1; }

.feat-copy .h3 .t-soft { display: block; }
.feat-copy .body {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-72);
  max-width: 460px;
}
.feat-copy .feat-foot { display: block; margin-top: 18px; }

/* every mock floats on its own crop of sky */
.feat-mock {
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 44px) clamp(16px, 3vw, 36px);
}

@media (max-width: 900px) {
  .feat-grid,
  .feat-grid--flip { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .feat-grid--flip .feat-copy { order: 1; }
  .feat-grid--flip .feat-mock { order: 2; }
}

/* ==========================================================================
   the app, one-to-one. everything below mirrors agent-ux-mock-v4 classes
   and values. stone palette, geist sans, windowed white panels.
   ========================================================================== */

.app-ui {
  font-family: var(--app-sans);
  font-weight: 400;
  color: var(--st-900);
  font-variant-numeric: tabular-nums;
}

/* the app's mono micro-label (Section title in sidebar.tsx / action-panel) */
.app-label {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--st-400);
}

/* windowed panel chrome (Sidebar / ActionPanel aside) */
.app-panel {
  background: #ffffff;
  border: 1px solid var(--st-200);
  border-radius: 16px;
  box-shadow: var(--sh-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* physical buttons (button.tsx, verbatim recipes) */
.app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--app-sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  transition: background-color 180ms var(--press), box-shadow 180ms var(--press),
    transform 180ms var(--press);
}
.app-btn:active { transform: translateY(0.5px) scale(0.985); }
.app-btn--dark { background: var(--app-dark); color: #f8f8fa; box-shadow: var(--sh-btn-dark); }
.app-btn--dark:hover { background: #2a2a30; }
.app-btn--light { background: #ffffff; color: var(--st-900); box-shadow: var(--sh-btn-light); }
.app-btn--light:hover { background: var(--st-50); }
.app-btn--ghost { background: transparent; color: var(--st-700); box-shadow: 0 0 0 0.7px rgba(28, 28, 32, 0.08); }
.app-btn--ghost:hover { background: var(--st-50); }
.app-btn--block { width: 100%; }

/* ticket chips (TicketChip in action-panel.tsx, verbatim) */
.tk-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid;
  box-shadow: var(--sh-chip);
  transition: background-color var(--t) var(--ease);
}
.tk-chip--start { background: var(--green-bg); color: var(--green); border-color: var(--green-border); }
.tk-chip--start:hover { background: #dcefe3; transition-duration: 0ms; }
.tk-chip--dismiss { background: #e6e6eb; color: #6b6b76; border-color: rgba(107, 97, 87, 0.22); }
.tk-chip--dismiss:hover { background: #d8d8de; transition-duration: 0ms; }

/* ── the cockpit window ────────────────────────────────────────────────── */

.cp {
  position: relative;
  margin: 0 auto;
  max-width: 1240px;
  /* tall enough that the tallest scene (the leads result) fits with the
     composer + usage bar still inside the frame. */
  height: 668px;
  zoom: 0.86;
  background: var(--app-canvas);
  border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(28, 28, 32, 0.08),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.7),
    0 18px 48px -28px rgba(20, 30, 60, 0.28),
    0 36px 80px -40px rgba(20, 30, 60, 0.24);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  padding: 12px;
}
@media (min-width: 980px) {
  .cp { grid-template-columns: 300px 1fr 300px; column-gap: 12px; }
}

.cp-sidebar { display: none; }
.cp-action { display: none; }
@media (min-width: 980px) {
  .cp-sidebar, .cp-action { display: flex; }
}

/* sidebar (sidebar.tsx) */
.cp-side-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 12px;
  flex-shrink: 0;
}
.cp-side-mark { color: var(--st-900); }
.cp-side-name { font-size: 13px; font-weight: 500; color: var(--st-900); }
.cp-icon-btn {
  margin-left: auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--st-500);
  transition: background-color 180ms var(--press), color 180ms var(--press);
}
.cp-icon-btn:hover { background: var(--st-100); color: var(--st-900); }

.cp-side-scroll { flex: 1; overflow: hidden; padding: 0 4px 12px; }
.cp-section { padding: 0 12px; margin-bottom: 12px; }
.cp-section-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 8px;
}
.cp-section-hint {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--st-300);
}

.cp-side-list { list-style: none; margin: 0; padding: 0 8px; }
.cp-cnx {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
}
.cp-cnx:hover { background: var(--st-50); }
.cp-cnx-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.cp-cnx-name { font-size: 12px; color: var(--st-900); }
.cp-cnx-meta {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--st-400);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-chat { padding: 6px 8px; border-radius: 6px; }
.cp-chat:hover { background: var(--st-50); }
.cp-chat-title {
  display: block;
  font-size: 12px;
  color: var(--st-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-chat-age {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--st-400);
}

.cp-side-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--st-100);
  flex-shrink: 0;
}
.cp-side-ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--st-200);
  color: var(--st-700);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 500;
}
.cp-side-acct { flex: 1; min-width: 0; line-height: 1.3; }
.cp-side-handle { display: block; font-size: 12px; color: var(--st-900); }
.cp-side-plan {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--st-400);
}

/* center column: path pill + thread + composer (roadmap-memo / chat-thread) */
.cp-center {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  padding: 0 4px;
}
.cp-path {
  align-self: center;
  width: 100%;
  max-width: 560px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--st-200);
  box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px,
    rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px,
    rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px;
  margin: 2px auto 10px;
}
.cp-path:hover { background: var(--st-50); }
.cp-path-text { font-size: 12px; font-weight: 500; color: var(--st-900); }
.cp-path-day {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--st-400);
}
.cp-path-caret { color: var(--st-400); }

.cp-thread {
  flex: 1;
  /* min-height:0 lets flex:1 actually cap the thread. without it the thread
     grows to its content height and shoves the composer + usage bar past the
     cockpit's bottom edge (clipped by .cp overflow:hidden) on the tallest
     scene. justify-content:flex-end keeps the newest content + composer
     pinned; older content clips up under the top fade, like the real app. */
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 20px 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 100%);
}
.cp-row { display: flex; }
.cp-row--user { justify-content: flex-end; }

/* user click → ActionPill (white, physical) — chat-thread.tsx ActionPill */
.cp-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--st-700);
  font-size: 12px;
  font-weight: 500;
  box-shadow: var(--sh-btn-light);
}
.cp-action-pill svg { color: var(--st-500); }

/* bevel reply — NO bubble. text straight on the canvas, like the app. */
.cp-bevel {
  max-width: 88%;
  font-size: 13.5px;
  line-height: 1.625;
  color: var(--st-800);
}
.cp-msg-who {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--st-400);
  margin-bottom: 6px;
}
.cp-trace { margin: 4px 0 10px; }
.cp-trace-tool {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--st-600);
  padding: 2px 0;
}
.cp-trace-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--st-300);
  flex: none;
  margin-top: 7px;
}
.cp-bevel p { margin: 8px 0; }
.cp-bevel p strong { font-weight: 600; color: var(--st-900); }
.cp-bullets { margin: 6px 0; padding-left: 18px; }
.cp-bullets li { margin: 3px 0; color: var(--st-700); }
.cp-bevel code {
  font-family: var(--mono);
  font-size: 11.5px;
  background: var(--st-100);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--st-900);
}

/* collapsible prompt card (markdown.tsx CollapsibleCodeBlock, verbatim) */
.cp-prompt {
  border: 1px solid var(--st-200);
  border-radius: 12px;
  background: var(--st-50);
  overflow: hidden;
  margin: 12px 0;
}
.cp-prompt summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--t) var(--ease);
}
.cp-prompt summary:hover { background: var(--st-100); transition-duration: 0ms; }
.cp-prompt summary::-webkit-details-marker { display: none; }
.cp-prompt-caret { color: var(--st-400); transition: transform var(--t) var(--ease); flex: none; }
.cp-prompt[open] .cp-prompt-caret { transform: rotate(90deg); }
.cp-prompt-lang {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--st-400);
}
.cp-prompt-meta {
  margin-left: auto;
  padding-right: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--st-400);
}
.cp-prompt-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 9px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--st-100);
  border: 1px solid var(--st-200);
  color: var(--st-500);
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.cp-prompt-copy:hover { background: var(--st-200); color: var(--st-700); }
.cp-prompt-copy.is-copied { color: var(--green); }
.cp-prompt-body {
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid rgba(231, 229, 228, 0.7);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--st-800);
  white-space: pre-wrap;
  overflow-x: auto;
  max-height: 170px;
}

.cp-chat-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

/* composer (chat-thread.tsx, verbatim values) */
.cp-composer-wrap { padding: 10px 0 2px; max-width: 640px; width: 100%; margin: 0 auto; }
.cp-composer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 12px;
  background: #ffffff;
  border: 1px solid var(--st-200);
  border-radius: 16px;
  box-shadow: var(--sh-panel);
}
.cp-composer-attach {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--st-500);
  transition: background-color 180ms var(--press), color 180ms var(--press);
}
.cp-composer-attach:hover { background: var(--st-100); color: var(--st-900); }
.cp-composer-input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--st-900);
  padding: 6px 0;
  min-width: 0;
}
.cp-composer-input::placeholder { color: var(--st-400); }
.cp-composer-input:focus { outline: none; }
.cp-composer-send {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--app-dark);
  color: #f8f8fa;
  box-shadow: var(--sh-btn-dark);
  transition: background-color 180ms var(--press), transform 180ms var(--press);
}
.cp-composer-send:hover { background: #2a2a30; }
.cp-composer-send:active { transform: translateY(0.5px) scale(0.985); }

.cp-usage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 0;
}
.cp-usage-bar {
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: rgba(231, 229, 228, 0.7);
  overflow: hidden;
}
.cp-usage-fill {
  width: 22%;
  height: 100%;
  border-radius: 999px;
  background: var(--st-500);
}

/* action panel (action-panel.tsx) */
.cp-action-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 12px;
  flex-shrink: 0;
}
.cp-action-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--st-300);
}
.cp-action-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.cp-action-body { flex: 1; overflow: hidden; padding: 0 4px 8px; }

/* ticket rows are borderless, like VerbRow in the real panel: padding,
   rounded hover target, fresh = sky tint. no card chrome. */
.cp-tk {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 500ms var(--ease), opacity 300ms var(--ease),
    transform 300ms var(--ease);
}
.cp-tk.is-fresh { background: #f0f7ff; }
.cp-tk.tk-enter { opacity: 0; transform: translateY(6px); }
.cp-tk.tk-exit { opacity: 0; transform: translateY(-6px); }

/* the scan progress bar (ScanProgress): time-bound amber fill */
.cp-scanbar {
  height: 3px;
  border-radius: 999px;
  background: var(--st-100);
  overflow: hidden;
  margin: 2px 8px 8px;
}
.cp-scanbar-fill {
  height: 100%;
  width: 0%;
  background: var(--amber);
  transition: width 500ms linear;
}
.cp-tk-icon { color: var(--st-400); flex: none; margin-top: 3px; }
.cp-tk-body { flex: 1; min-width: 0; }
.cp-tk-title {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--st-900);
}
.cp-tk-hint {
  margin: 2px 0 0;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--st-400);
}
.cp-tk-chips { display: flex; align-items: center; gap: 6px; margin-top: 8px; }

.cp-gen { padding: 12px 8px 4px; }
.cp-gen-copy {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--st-400);
}

.cp-qa { list-style: none; margin: 0; padding: 0 8px; }
.cp-qa-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--st-700);
}
.cp-qa-row:hover { background: var(--st-50); }
.cp-qa-ic { color: var(--st-400); flex: none; margin-top: 2px; }

/* ── mobile / tablet cockpit: a phone-native single column ─────────────── */
/* the desktop cockpit is a 3-pane 1240px stage with a scripted pointer that
   clicks the right rail. none of that survives a phone. instead of cropping
   it (cursor's approach, which would lose our whole pitch), we restack:
   the thread (the story + judgment) on top, the autopilot rail (the breadth)
   below it. the left sidebar + the pointer choreography are dropped; app.js
   skips the cockpit animation under 980px so every step renders statically. */
@media (max-width: 979px) {
  .cp {
    height: auto;
    zoom: 1;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
    box-shadow:
      0 0 0 1px rgba(28, 28, 32, 0.08),
      inset 0 1px 0 0 rgba(255, 255, 255, 0.6),
      0 14px 40px -28px rgba(20, 30, 60, 0.26);
  }
  /* left sidebar stays hidden; the catalog is non-essential on a phone */
  .cp-sidebar { display: none; }
  /* show the autopilot rail — it stacks below center (source order) and
     carries the breadth the hidden sidebar used to */
  .cp-action { display: flex; }
  .cp-action-body { overflow: visible; }

  .cp-center { padding: 0; }
  /* the path pill wraps badly and is secondary; drop it on mobile */
  .cp-path { display: none; }
  /* thread flows top-down at natural height, no fixed slot / bottom anchor /
     fade — there's no composer pinned beneath it to protect on mobile */
  .cp-thread {
    min-height: 0;
    overflow: visible;
    justify-content: flex-start;
    -webkit-mask-image: none;
    mask-image: none;
    padding: 4px 2px 0;
    gap: 14px;
  }
  /* the demo pointer never shows on mobile (animation is skipped) */
  .cp-cursor { display: none; }
  /* a hairline divider so the stacked rail reads as its own pane */
  .cp-action { border-top: 1px solid var(--st-200); padding-top: 4px; }
}

/* very small phones: tighten the demo chrome */
@media (max-width: 400px) {
  .cp { border-radius: 18px; padding: 10px; }
  .demo-panel { border-radius: 16px; }
}

/* ── standalone mock shells (feature sections) ─────────────────────────── */

/* the action panel, standing alone (write section). fixed frame so the
   ticket lifecycle never resizes the page. */
.solo-panel {
  position: static;
  width: 312px;
  max-width: 100%;
  height: 478px;
}
.solo-panel .cp-action-body { overflow: hidden; }

/* the chat reply on its canvas (ship section) */
.thread-card {
  background: var(--app-canvas);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(28, 28, 32, 0.08),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.7),
    0 18px 48px -28px rgba(20, 30, 60, 0.28);
  padding: 18px 20px;
  width: 100%;
  max-width: 520px;
}

/* the receipt arrives the way everything arrives: as a bevel message
   on the chat canvas. no invented surface. */
.receipt-card {
  background: var(--app-canvas);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(28, 28, 32, 0.08),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.7),
    0 18px 48px -28px rgba(20, 30, 60, 0.28);
  padding: 18px 20px;
  width: 100%;
  max-width: 480px;
}
.receipt-card .num {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--st-100);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--st-900);
  font-variant-numeric: tabular-nums;
}
.receipt-verdict {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
  box-shadow: var(--sh-chip);
}

/* NEXT chip (BevelBody): white pill, hairline ring, arrow + label */
.next-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--st-700);
  font-size: 11.5px;
  font-weight: 500;
  box-shadow: 0 0 0 0.7px rgba(28, 28, 32, 0.1),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.6), 0 1px 1px rgba(28, 40, 80, 0.04);
}
.next-chip .nc-arrow { color: var(--st-400); }

/* the path picker (direction-picker.tsx recipes, one-to-one) */
.dp-card {
  background: #ffffff;
  border: 1px solid var(--st-200);
  border-radius: 16px;
  box-shadow: var(--sh-panel), 0 18px 48px -28px rgba(20, 30, 60, 0.28);
  padding: 14px;
  width: 100%;
  max-width: 460px;
  /* fixed frame: switching the active direction must not resize the page */
  height: 532px;
  overflow: hidden;
}
.dp-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 2px 4px 10px;
}
.dp-day {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--st-400);
}
.dp-pick {
  position: relative;
  border: 1px solid var(--st-200);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px 16px;
}
.dp-pick + .dp-pick { margin-top: 8px; }
.dp-pick--active { border-color: #d6e0f9; background: #fafbff; }
.dp-pick--active .dp-rail {
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #2f56c8;
}
.dp-pick-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.dp-pick-name { font-size: 14.5px; font-weight: 600; color: var(--st-900); }
.dp-tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2f56c8;
  background: #eef2fd;
  padding: 2px 6px;
  border-radius: 4px;
}
.dp-pick-body {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--st-800);
}
.dp-skips {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--st-600);
}
.dp-skips .dp-skips-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d97706;
  flex: none;
}
.dp-pick--dim .dp-pick-body,
.dp-pick--dim .dp-skips { color: var(--st-500); }

/* active-card internals, one-to-one with DirectionCard: the signals /
   tradeoffs split and the "if you pick this" commitments box. */
.dp-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 10px 0;
}
.dp-col-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--st-400);
  margin-bottom: 4px;
}
.dp-col-label--trade { color: #d97706; }
.dp-li {
  position: relative;
  padding-left: 10px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--st-600);
  margin: 2px 0;
}
.dp-li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--st-300);
}
.dp-commit {
  border: 1px solid var(--st-100);
  background: rgba(250, 250, 249, 0.8);
  border-radius: 6px;
  padding: 8px 12px;
  margin: 10px 0 2px;
}
.dp-commit .dp-li::before {
  top: 8px;
  width: 6px;
  height: 1.5px;
  border-radius: 0;
  background: #2f56c8;
}
.dp-commit .dp-li { color: var(--st-700); font-size: 11.5px; }

/* candidates hide the detail blocks until picked */
.dp-pick--dim .dp-cols,
.dp-pick--dim .dp-commit { display: none; }

.dp-foot {
  margin: 10px 4px 0;
  font-size: 11px;
  color: var(--st-400);
}

/* ── the new stack: HOW vs WHAT + compare ──────────────────────────────── */

.stack-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 44px;
}
@media (max-width: 820px) { .stack-cards { grid-template-columns: 1fr; } }

/* marketing cards speak the product's window language: white panel,
   stone hairline, the app's layered cool shadow. */
.stack-card {
  background: #ffffff;
  border: 1px solid var(--st-200);
  border-radius: 16px;
  box-shadow: var(--sh-panel);
  padding: 24px;
}
.stack-card--bevel { border-color: var(--green-border); }
.stack-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.tool-row { display: flex; gap: 6px; }
.tool-card {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border-radius: 7px;
  box-shadow: var(--sh-btn-light);
}
.stack-tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-45);
}
.stack-tag--brand { color: var(--green); }
.stack-card .h4 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 540;
  letter-spacing: -0.015em;
  line-height: 1.45;
  text-wrap: balance;
}
.stack-card p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-60);
}

.compare-wrap { margin-top: 18px; overflow-x: auto; }
.compare {
  width: 100%;
  min-width: 760px;
  border: 1px solid var(--st-200);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--sh-panel);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.compare th,
.compare td {
  padding: 13px 18px;
  text-align: left;
  border-top: 1px solid var(--line);
  font-weight: 450;
}
.compare thead th { border-top: 0; padding-top: 16px; padding-bottom: 14px; }
.compare th .c-name { font-size: 13.5px; font-weight: 540; display: block; }
.compare th .c-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-45);
}
.compare td.c-label { font-size: 13.5px; color: var(--ink-72); max-width: 380px; }
.compare td.c-mark { font-family: var(--mono); font-size: 12px; color: var(--ink-18); }
.compare td.c-yes { color: var(--green); }
.compare .col-bevel { background: var(--green-06); }

/* mobile: a 5-column table can't fit a phone. drop the competitor columns
   and show the capability list with bevel's checkmark — "bevel does all of
   this." the head-to-head comparison is a desktop nicety; the point on a
   phone is the breadth of what bevel does. */
@media (max-width: 720px) {
  .compare-wrap { overflow-x: visible; }
  .compare { min-width: 0; }
  .compare th:nth-child(n + 3),
  .compare td:nth-child(n + 3) { display: none; }
  .compare th, .compare td { padding: 12px 14px; }
  .compare td.c-label { white-space: normal; }
  .compare td.c-mark.col-bevel { width: 28px; text-align: center; font-size: 14px; }
}

/* ── moat 3-up ─────────────────────────────────────────────────────────── */

.moat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
@media (max-width: 900px) { .moat-grid { grid-template-columns: 1fr; } }

.moat-card {
  background: #ffffff;
  border: 1px solid var(--st-200);
  border-radius: 16px;
  box-shadow: var(--sh-panel);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.moat-num {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-32);
  font-variant-numeric: tabular-nums;
}
.moat-card .h4 {
  margin: 12px 0 0;
  font-size: 16.5px;
  font-weight: 540;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.moat-card p {
  margin: 8px 0 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-60);
}
.moat-art {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.moat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-60);
  padding: 4px 0;
  font-variant-numeric: tabular-nums;
}
.moat-row .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-18);
  flex: none;
}
.moat-row .src { margin-left: auto; color: var(--ink-32); }
.moat-verbs { display: flex; flex-wrap: wrap; gap: 6px; }
.moat-verb {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--sh-chip);
  color: var(--ink-60);
}
.followup-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  box-shadow: var(--sh-chip);
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.followup-q {
  margin: 10px 0 0;
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-72);
}

/* ── mission ───────────────────────────────────────────────────────────── */

.mission { padding: 120px 0; }
.mission p {
  margin: 0;
  max-width: 820px;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.55;
  font-weight: 460;
  letter-spacing: -0.015em;
  color: var(--ink-92);
  text-wrap: pretty;
}
.mission p .dim { color: var(--ink-45); }

/* ── pricing ───────────────────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  background: #ffffff;
  border: 1px solid var(--st-200);
  border-radius: 16px;
  box-shadow: var(--sh-panel);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.price-card--live { border-color: var(--st-300); }
.price-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price-name { font-size: 15px; font-weight: 540; }
.price-num {
  margin: 14px 0 2px;
  font-family: var(--mono);
  font-size: 34px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.price-num .suffix {
  font-size: 12px;
  color: var(--ink-45);
  letter-spacing: 0.02em;
  margin-left: 6px;
}
.price-pitch { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-60); }
.price-list {
  list-style: none;
  margin: 16px 0 22px;
  padding: 0;
  font-size: 13px;
  color: var(--ink-72);
}
.price-list li {
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.price-card .btn { margin-top: auto; }
.price-note {
  margin-top: auto;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-32);
  padding: 10px 0 2px;
}

/* ── closing ───────────────────────────────────────────────────────────── */

.closing {
  padding: 130px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.closing .h2 .t-soft { display: block; }
.closing .lede { margin: 16px auto 0; }
/* center the form's own internal items in the closing; spacing + row
   centering come from .hero-cta — do NOT add margin-top here, it would
   offset the form as a flex item and break the CTA row alignment. */
.closing .hero-form { justify-content: center; }

/* ── footer ────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
}
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }

.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col .fc-head { margin-bottom: 4px; }
.footer-col a {
  font-size: 13.5px;
  color: var(--ink-60);
  transition: color var(--t) var(--ease);
}
.footer-col a:hover { color: var(--ink); transition-duration: 0ms; }

.footer-foot {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 32px;
}

/* ── demo choreography states (added by app.js; defaults stay visible) ── */

/* the demo pointer: shows WHO acts. it clicks the ticket, bevel answers. */
.cp-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 60;
  width: 20px;
  height: 20px;
  opacity: 0;
  pointer-events: none;
  transition: transform 750ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 300ms var(--ease);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.cp-cursor.is-shown { opacity: 1; }
.cp-cursor svg { transition: transform 120ms var(--ease); }
.cp-cursor.is-clicking svg { transform: scale(0.82); }
.is-pressed { transform: translateY(0.5px) scale(0.95) !important; }

/* scenes: wrappers participate in the thread's flex flow; the thread
   fades between scenes so the demo never shows two stories at once */
.cp-scene { display: contents; }
.cp-scene[hidden] { display: none; }
.cp-thread { transition: opacity 300ms var(--ease); }
.cp-thread.is-clearing { opacity: 0; }

/* typed user message — the dark bubble (chat-thread.tsx) */
.cp-user-bubble {
  background: var(--st-900);
  color: #ffffff;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 8px 14px;
  border-radius: 16px;
  border-bottom-right-radius: 6px;
  max-width: 88%;
}

/* person cards — one-to-one with markdown.tsx PersonCard: white card,
   name / reach / fit, icon contact buttons per channel */
.cp-person {
  border-radius: 12px;
  margin: 8px 0;
  background: #ffffff;
  border: 1px solid var(--st-200);
  padding: 12px 14px;
}
.cp-person-name { font-size: 13.5px; font-weight: 600; color: var(--st-900); }
.cp-person-reach { font-size: 11px; color: var(--st-400); margin-top: 2px; }
.cp-person-fit { font-size: 12.5px; color: var(--st-700); line-height: 1.55; margin-top: 6px; }
.cp-person-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.cp-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  width: 28px;
  border-radius: 8px;
  background: var(--st-100);
  border: 1px solid var(--st-200);
  color: var(--st-600);
}
.cp-ih { font-size: 9px; font-weight: 700; letter-spacing: -0.02em; }


/* cockpit scripted run: steps hide only once the run starts */
.cp.is-animating [data-step] {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 250ms var(--ease), transform 250ms var(--ease);
}
.cp.is-animating [data-step].is-on {
  opacity: 1;
  transform: none;
}
.cp.is-animating .cp-trace-tool.is-doing .cp-trace-dot {
  background: var(--amber);
  animation: pulse 1.1s var(--ease) infinite;
}
.cp .cp-tk[data-fresh] { transition: background-color 500ms var(--ease); }

/* receipt: number counts, then the chip lands the page's one spring */
.receipt-card.is-animating .receipt-verdict {
  opacity: 0;
  transform: scale(0.85);
}
.receipt-card.is-animating .receipt-verdict.is-on {
  opacity: 1;
  transform: scale(1);
  animation: verdict-pop 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes verdict-pop {
  0% { opacity: 0; transform: scale(0.85); }
  70% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* autopilot mock: the live slot fades while bevel rewrites it */
.cp-tk .cp-tk-title,
.cp-tk .cp-tk-hint { transition: opacity 220ms var(--ease); }
.cp-tk.is-swapping .cp-tk-title,
.cp-tk.is-swapping .cp-tk-hint { opacity: 0; }

/* path picker: clickable cards; rail + active tag follow the selection */
.dp-pick { cursor: pointer; transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), opacity var(--t) var(--ease); }
.dp-pick .dp-rail { display: none; }
.dp-pick--active .dp-rail { display: block; }
.dp-pick .dp-tag--when-active { display: none; }
.dp-pick--active .dp-tag--when-active { display: inline-block; }
.dp-pick--active .dp-tag--when-idle { display: none; }

/* ── reduced motion ────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cp-action-pulse { animation: none; }
  * { transition-duration: 0ms !important; }
}
