/* ==========================================================================
   Adchestra — Precision Blue
   Tokens follow branding.html §12. Layout follows §05 (whitespace, 1px
   borders, explicit status language, one dominant action per decision point).
   ========================================================================== */

:root {
  /* Brand palette */
  --ink: #0b1220;
  --action: #2e5bff;
  --action-press: #2449d6;
  --accent: #47bde8;
  --background: #f6f8fc;
  --surface: #ffffff;
  --success: #16845b;
  --warning: #b45309;
  --border: #dde3ed;
  --muted: #667085;

  /* Derived, all validated for AA on white */
  --ink-70: #3d4657;
  --ink-55: #5b6475;
  --border-soft: #e9edf4;
  --tint-action: #eef2ff;
  --tint-success: #e8f6f0;
  --tint-warning: #fdf5e8;

  /* Radii — branding.html §12 */
  --r-control: 10px;
  --r-card: 12px;
  --r-panel: 18px;

  /* Rhythm — 8px base unit */
  --page: 1120px;
  --gutter: 24px;

  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Claude interface replica — measured from claude.ai */
  --c-surface-1: #fcfcfb;
  --c-surface-2: #ffffff;
  --c-ink: #0b0b0b;
  --c-muted: rgba(11, 11, 11, 0.56);
  --c-border: rgba(11, 11, 11, 0.1);
  --c-bubble: rgba(11, 11, 11, 0.05);
  --c-clay: #d97757;
  --c-code: #8e2626;
  --c-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --c-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --c-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;   /* no-JS fallback; script.js seats headings precisely */
}

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

img, svg { display: block; max-width: 100%; }

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

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }

ul, ol { padding: 0; list-style: none; }

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

/* Inline SVG sprite — kept out of the CSP's way (no style attribute) */
.sprite { position: absolute; }

/* --------------------------------------------------------------------------
   Type scale
   -------------------------------------------------------------------------- */

h1 {
  font-size: clamp(2.375rem, 1.7rem + 2.8vw, 3.375rem);
  font-weight: 620;
  line-height: 1.06;
  letter-spacing: -0.033em;
}

h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.375rem);
  font-weight: 620;
  line-height: 1.14;
  letter-spacing: -0.028em;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.014em;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  max-width: 34em;
  font-size: 1.125rem;
  line-height: 1.62;
  color: var(--ink-70);
  letter-spacing: -0.006em;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 9vw, 128px); }

.section--tint { background: var(--background); }

.section-head { max-width: 40rem; margin-bottom: 56px; }

h2 + .lead, h1 + .lead { margin-top: 18px; }

.section-head--center { margin-inline: auto; text-align: center; }

.section-head--center .lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding-inline: 20px;
  border-radius: var(--r-control);
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: -0.008em;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--action);
  color: #fff;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.16);
}

.btn--primary:hover { background: var(--action-press); }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn--ghost:hover { border-color: #c7d1e0; background: #fbfcfe; }

.btn--sm { height: 36px; padding-inline: 14px; font-size: 0.875rem; }

.btn--wide { width: 100%; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-header[data-stuck="true"] { border-bottom-color: var(--border-soft); }

.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.125rem;
  font-weight: 640;
  letter-spacing: -0.035em;
}

.logo svg { width: 20px; height: 24px; margin-top: -1px; }

.site-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.site-nav a {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 480;
  color: var(--ink-55);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover { color: var(--ink); background: rgba(11, 18, 32, 0.045); }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

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

.hero {
  position: relative;
  padding-top: clamp(56px, 7vw, 92px);
  padding-bottom: clamp(56px, 6vw, 88px);
  text-align: center;
  overflow: hidden;
}

/* §06 "restrained atmosphere" — one faint focus glow, no full-bleed gradients */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto;
  height: 620px;
  background:
    radial-gradient(46% 52% at 50% 46%, rgba(46, 91, 255, 0.07), transparent 70%),
    radial-gradient(30% 40% at 68% 30%, rgba(71, 189, 232, 0.07), transparent 70%);
  pointer-events: none;
}

.hero > * { position: relative; }

.hero > .wrap { max-width: 1240px; }

.hero h1 { max-width: 15ch; margin-inline: auto; text-wrap: balance; }

.hero .lead { margin: 22px auto 0; font-size: 1.1875rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Compatibility strip */
.compat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 52px;
  padding-top: 34px;
  border-top: 1px solid var(--border-soft);
}

.compat p {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.compat span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-55);
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Claude interface replica
   Measurements taken from claude.ai: surface #fcfcfb, 768px column,
   user bubble rgba(11,11,11,.05) r12 p12/16 sans 15/20, response serif 16/24,
   composer r20 shadow 0 4px 20px rgba(0,0,0,.035) + 0 0 0 .5px rgba(32,32,31,.15)
   -------------------------------------------------------------------------- */

.stage {
  --stage-max: 940px;
  max-width: var(--stage-max);
  margin: 56px auto 0;
}

.claude {
  position: relative;
  border-radius: 14px;
  background: var(--c-surface-1);
  border: 1px solid rgba(11, 11, 11, 0.09);
  box-shadow:
    0 1px 1px rgba(11, 18, 32, 0.04),
    0 18px 44px -12px rgba(11, 18, 32, 0.14),
    0 48px 90px -40px rgba(11, 18, 32, 0.18);
  overflow: hidden;
  text-align: left;
}

.claude-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface-1);
}

.claude-dots { display: flex; gap: 7px; }

.claude-dots i {
  width: 11px; height: 11px;
  border-radius: 50%;
}

.claude-dots i:nth-child(1) { background: #e9b3ad; }

.claude-dots i:nth-child(2) { background: #eed7a3; }

.claude-dots i:nth-child(3) { background: #b3d4ad; }

.claude-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 11px 4px 8px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-surface-2);
  font-family: var(--c-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-70);
  white-space: nowrap;
}

.claude-share svg { width: 12px; height: 14px; flex: none; }

.claude-body {
  position: relative;
  height: 452px;
  overflow: hidden;
}

/* Only the transcript is masked — the composer below stays fully opaque. */
.claude-viewport {
  position: absolute;
  inset: 0 0 var(--composer-space, 104px);
  padding-top: 26px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 24px, #000 calc(100% - 16px), transparent 100%);
}

.claude-thread {
  width: min(100% - 48px, 768px);
  margin-inline: auto;
  transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.turn + .turn { margin-top: 24px; }

/* User message — cds-um-enter */
.c-user {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 22px;
}

.c-user span {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--c-bubble);
  color: var(--c-ink);
  font-family: var(--c-sans);
  font-size: 0.9375rem;
  line-height: 20px;
  letter-spacing: -0.003em;
  transform-origin: 100% center;
}

.turn.is-live .c-user span {
  animation: cds-um-enter 0.45s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}

@keyframes cds-um-enter {
  0%   { opacity: 0; transform: scale(0.92) translateY(6px); }
  100% { opacity: 1; transform: none; }
}

/* Assistant column */
.c-assistant { padding-left: 8px; }

/* Status / tool lines */
.c-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 26px;
  padding-block: 6px;
  font-family: var(--c-sans);
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--c-muted);
  letter-spacing: -0.005em;
}

.c-step .spark { width: 17px; height: 17px; flex: none; }

.c-step .toolicon {
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  flex: none;
}

.c-step .toolicon img { width: auto; height: auto; max-width: 100%; max-height: 100%; }

/* Shimmer while a step is running — cds-shimmer-text-shine */
.c-step[data-state="running"] .label {
  background: linear-gradient(90deg,
    rgba(11, 11, 11, 0.32) 20%,
    rgba(11, 11, 11, 0.86) 40%,
    rgba(11, 11, 11, 0.32) 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: cds-shimmer-text-shine 3s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes cds-shimmer-text-shine {
  0%   { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}

.c-step.is-collapsed { padding-left: 0; }

.c-step.is-collapsed .label { font-family: var(--c-serif); font-size: 0.875rem; }

/* Response body — serif, exactly as claude.ai renders markdown */
.c-say {
  padding-right: 32px;
  font-family: var(--c-serif);
  font-size: 1rem;
  line-height: 24px;
  color: var(--c-ink);
}

.c-say + .c-say { margin-top: 14px; }

.c-say strong { font-weight: 600; }

.c-say code {
  padding: 1px 4px;
  border: 0.5px solid var(--c-border);
  border-radius: 6px;
  background: rgba(11, 11, 11, 0.05);
  font-family: var(--c-mono);
  font-size: 0.9em;
  color: var(--c-code);
}

/* Pulsing spark shown while the turn is generating — claude-pulse */
.c-cursor {
  width: 20px; height: 20px;
  margin-top: 14px;
  animation: claude-pulse 2s ease-in-out infinite;
}

@keyframes claude-pulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* Blocks rendered inside a Claude response */
.c-enter {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.c-enter.is-in { opacity: 1; transform: none; }

.c-block {
  margin-top: 14px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-surface-2);
  font-family: var(--c-sans);
  overflow: hidden;
}

.c-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--c-border);
}

.c-block-head strong {
  font-size: 0.875rem;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.c-block-head .tag { margin-left: auto; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tag--live { background: var(--tint-success); color: var(--success); }

.tag--review { background: var(--tint-warning); color: var(--warning); }

.c-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.c-metrics div {
  padding: 12px 14px;
  border-right: 1px solid var(--c-border);
}

.c-metrics div:last-child { border-right: 0; }

.c-metrics b {
  display: block;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.c-metrics span {
  display: block;
  margin-top: 2px;
  font-size: 0.6875rem;
  color: var(--c-muted);
  letter-spacing: 0.01em;
}

.c-metrics b.word { font-family: var(--c-sans); font-weight: 560; letter-spacing: -0.01em; }

.c-metrics .up { color: var(--success); }

.c-metrics .down { color: var(--warning); }

.c-rows { padding: 4px 0; }

.c-rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 0.8125rem;
}

.c-rows li + li { border-top: 1px solid rgba(11, 11, 11, 0.055); }

.c-rows .k { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.c-rows .v { font-family: var(--mono); font-size: 0.75rem; color: var(--c-muted); }

.c-rows .v.warn { color: var(--warning); }

.c-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; }

.c-chips span {
  padding: 3px 9px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: rgba(11, 11, 11, 0.02);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-70);
}

.c-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-top: 1px solid var(--c-border);
  background: rgba(11, 11, 11, 0.018);
}

.c-confirm p { font-size: 0.75rem; color: var(--c-muted); margin-right: auto; }

.c-confirm .b {
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 520;
  white-space: nowrap;
}

.c-confirm .b.primary { background: var(--c-ink); color: #fff; }

.c-confirm .b.plain { border: 1px solid var(--c-border); }

.c-verified {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.c-verified .check {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  flex: none;
  border-radius: 50%;
  background: var(--tint-success);
  color: var(--success);
  font-size: 11px;
}

.c-verified b { display: block; font-size: 0.875rem; font-weight: 560; }

.c-verified span { display: block; font-size: 0.75rem; color: var(--c-muted); }

/* Composer */
.claude-foot {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 0 24px 14px;
}

.claude-composer {
  width: min(100%, 768px);
  margin-inline: auto;
  padding: 12px 14px 10px;
  border-radius: 20px;
  background: var(--c-surface-2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.035), 0 0 0 0.5px rgba(32, 32, 31, 0.15);
  font-family: var(--c-sans);
}

.claude-composer .ph {
  font-size: 0.9375rem;
  color: rgba(11, 11, 11, 0.38);
}

.claude-composer .row {
  display: flex;
  align-items: center;
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--c-muted);
}

.claude-composer .row .plus {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  font-size: 17px; line-height: 1;
  color: rgba(11, 11, 11, 0.5);
}

.claude-composer .row .model { margin-left: auto; color: var(--c-ink); font-weight: 520; }

.claude-composer .row .effort { margin-left: 6px; margin-right: 10px; }

/* Claude's send control — clay circle, iconic enough to be worth keeping */
.claude-composer .row .send {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--c-clay);
  color: #fff;
}

.claude-composer .row .send svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  background: var(--surface);
}

.card h3 { margin-bottom: 8px; }

.card p { font-size: 0.9375rem; color: var(--ink-70); }

/* Capability cards with UI vignettes */
.cap-card { overflow: hidden; padding: 0; }

.cap-card .cap-text { padding: 26px 26px 22px; }

.cap-card .cap-text p { margin-top: 8px; }

.cap-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--tint-action);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--action);
}

.cap-vignette {
  margin: auto 26px 26px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--background);
  font-size: 0.8125rem;
}

.v-line { display: flex; align-items: center; gap: 9px; padding-block: 5px; color: var(--ink-70); }

.v-line .spark { width: 14px; height: 14px; flex: none; }

.v-line.done { color: var(--ink); }

.v-line .ok {
  display: grid; place-items: center;
  width: 16px; height: 16px; flex: none;
  border-radius: 50%;
  background: var(--tint-success);
  color: var(--success);
  font-size: 9px;
}

.v-ask {
  padding: 9px 12px;
  border-radius: 9px 9px 9px 3px;
  background: var(--ink);
  color: #fff;
  font-size: 0.8125rem;
  margin-bottom: 10px;
}

.v-find {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--warning);
  border-radius: 9px;
  background: var(--surface);
}

.v-find-h { font-size: 0.9375rem; font-weight: 560; color: var(--ink); }

.v-find-v { font-family: var(--mono); font-size: 0.8125rem; color: var(--warning); }

.v-diff { display: grid; gap: 6px; }

.v-diff div {
  display: flex;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.v-diff .blocked { background: var(--tint-action); color: #2449cc; }

.v-diff .launched { background: var(--tint-success); color: #0f6b4a; }

.v-diff .del { background: #fdecea; color: #a3271d; }

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps li {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--border);
}

.steps li::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 34%;
  height: 2px;
  background: var(--action);
}

.steps .num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--action);
}

.steps h3 { margin-bottom: 6px; }

.steps p { font-size: 0.9375rem; color: var(--ink-70); }

.callout {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--background);
  font-size: 0.9375rem;
  color: var(--ink-70);
}

.callout svg { width: 17px; height: 17px; flex: none; color: var(--success); }

.callout b { color: var(--ink); font-weight: 550; }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.price-wrap {
  max-width: 420px;
  margin-inline: auto;
}

.price-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: 0 18px 48px -24px rgba(11, 18, 32, 0.22);
}

.price-card .plan {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 560;
}

.price-card .plan .badge {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tint-success);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #0f6b4a;              /* darker than --success: 10px text needs AA */
}

.price-card .amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 20px 0 4px;
}

.price-card .amount b {
  font-size: 3rem;
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1;
}

.price-card .amount .cur { align-self: flex-start; margin-top: 6px; font-size: 1.375rem; font-weight: 550; }

.price-card .amount .per { font-size: 0.9375rem; color: var(--muted); }

.price-card .sub { font-size: 0.875rem; color: var(--muted); }

.price-free-start {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(46, 91, 255, 0.24);
  border-radius: var(--r-control);
  background: var(--tint-action);
}

.price-free-start > svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 9px;
  background: var(--action);
  color: #fff;
}

.price-free-start div { display: grid; gap: 3px; }

.price-free-start strong { color: var(--ink); font-size: 0.9375rem; }

.price-free-start span { color: var(--ink-70); font-size: 0.8125rem; line-height: 1.45; }

.price-card ul { display: grid; gap: 11px; margin: 26px 0; }

.price-card li {
  display: flex;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--ink-70);
}

.price-card li svg { width: 16px; height: 16px; margin-top: 4px; flex: none; color: var(--success); }

.price-card .fine { margin-top: 14px; font-size: 0.8125rem; color: var(--muted); text-align: center; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { max-width: 46rem; margin-inline: auto; }

.faq details {
  border-bottom: 1px solid var(--border-soft);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: 1.0625rem;
  font-weight: 540;
  letter-spacing: -0.014em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  width: 10px; height: 10px;
  margin-left: auto;
  flex: none;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.faq p {
  max-width: 42em;
  padding-bottom: 24px;
  font-size: 0.9375rem;
  color: var(--ink-70);
}

.faq p a {
  color: var(--action);
  font-weight: 550;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.faq p a:hover { color: var(--action-press); }

/* --------------------------------------------------------------------------
   Final CTA & footer
   -------------------------------------------------------------------------- */

.final {
  padding-block: clamp(72px, 9vw, 120px);
  text-align: center;
  background: var(--ink);
  color: #fff;
}

.final h2 { color: #fff; }

.final-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.final-proof li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
  font-weight: 500;
}

.final-proof svg {
  width: 14px;
  height: 14px;
  color: #71d0aa;
}


.final .hero-actions { margin-top: 32px; }

.final .btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.final .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }

.final .hero-note { color: rgba(255, 255, 255, 0.55); }

.site-footer {
  padding-block: 48px 40px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.875rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

.footer-links a { color: var(--ink-55); }

.footer-links a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Connection guide
   -------------------------------------------------------------------------- */

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

.copy-fallback {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.guide-page {
  min-height: calc(100vh - 170px);
  padding-block: clamp(56px, 7vw, 88px) clamp(72px, 9vw, 112px);
  background: var(--background);
}

.guide-wrap { max-width: 860px; }

.guide-hero { max-width: 680px; }

.guide-hero .eyebrow { margin-bottom: 12px; }

.guide-hero > p:last-child {
  max-width: 620px;
  margin-top: 20px;
  color: var(--ink-70);
  font-size: 1.0625rem;
}

.guide-offer {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid rgba(46, 91, 255, 0.24);
  border-radius: var(--r-card);
  background: linear-gradient(135deg, #eef3ff 0%, #f6fbff 100%);
  box-shadow: 0 10px 30px rgba(46, 91, 255, 0.08);
}

.guide-offer .eyebrow { margin-bottom: 8px; color: var(--action); }

.guide-offer h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }

.guide-offer-points {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.guide-offer-points li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.guide-offer-points svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  padding: 3px;
  border-radius: 50%;
  background: var(--action);
  color: #fff;
}

.guide-offer-points span { display: grid; gap: 2px; }

.guide-offer-points b { color: var(--ink); font-size: 1rem; }

.guide-offer-points small { color: var(--ink-70); font-size: 0.875rem; }

.guide-intro {
  margin-top: 0;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
}

.guide-intro h2 { font-size: 1rem; }

.guide-intro ul {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.guide-intro li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink-70);
  font-size: 0.9375rem;
}

.guide-intro li svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--action);
}

.guide-intro > p {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 0.8125rem;
}

.guide-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
}

.guide-select-wrap {
  display: grid;
  gap: 8px;
  flex: 1;
  max-width: 520px;
}

.guide-select-wrap > p {
  font-size: 0.875rem;
  font-weight: 600;
}

.guide-picker { position: relative; }

.guide-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04);
}

.guide-picker-trigger:hover { border-color: #b8c5d8; background: #fbfcfe; }

.guide-picker-trigger:focus-visible {
  outline: 3px solid rgba(46, 91, 255, 0.22);
  outline-offset: 2px;
  border-color: var(--action);
}

.guide-picker-trigger svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 160ms ease;
}

.guide-picker[data-open] .guide-picker-trigger svg { transform: rotate(180deg); }

.guide-picker-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  width: min(100%, 520px);
  max-height: min(68vh, 560px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 20px 48px rgba(11, 18, 32, 0.16);
}

.guide-picker-menu[hidden] { display: none; }

.guide-picker-group {
  padding: 10px 10px 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-picker-menu button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 570;
  text-align: left;
}

.guide-picker-menu button small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 450;
}

.guide-picker-menu button:hover,
.guide-picker-menu button:focus-visible { outline: 0; background: var(--background); }

.guide-picker-menu button[aria-selected="true"] { background: var(--tint-action); color: var(--action); }

.guide-picker-menu button[aria-selected="true"] small { color: #4967c4; }

.guide-print { flex: none; }

.guide-print svg {
  width: 18px;
  height: 18px;
}

.endpoint-card {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
}

.endpoint-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.endpoint-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 12px 12px 12px 16px;
  border: 1px solid #1f2937;
  border-radius: 10px;
  background: #111827;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.endpoint-code pre { min-width: 0; overflow-x: auto; }

.endpoint-code code,
.command code {
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.875rem;
}

.endpoint-code code { color: #f8fafc; white-space: nowrap; }

.copy-button,
.command button {
  flex: none;
  min-height: 34px;
  padding-inline: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-70);
  font-size: 0.8125rem;
  font-weight: 600;
}

.endpoint-code .copy-button {
  border-color: #344156;
  background: #1f2937;
  color: #f8fafc;
}

.endpoint-code .copy-button:hover { border-color: #52627a; background: #293548; }

.copy-button:hover,
.command button:hover { border-color: #c7d1e0; background: #fbfcfe; }

.guide-content { margin-top: 24px; }

.integration-guide {
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  background: var(--surface);
}

.integration-guide[hidden] { display: none; }

.guide-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-soft);
}

.guide-heading > img,
.guide-heading--mark > svg {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.guide-heading--mark > svg { padding: 5px; }

.guide-heading .eyebrow { margin-bottom: 4px; }

.setup-steps {
  display: grid;
  gap: 0;
  margin-top: 8px;
  list-style: none;
}

.setup-steps > li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding-block: 22px;
  border-bottom: 1px solid var(--border-soft);
}

.setup-steps > li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tint-action);
  color: var(--action);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 650;
}

.setup-steps h3 { margin-top: 3px; }

.setup-steps p {
  margin-top: 7px;
  color: var(--ink-70);
  font-size: 0.9375rem;
}

.guide-visual {
  width: fit-content;
  max-width: 100%;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--background);
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.06);
}

.guide-visual--narrow { max-width: 420px; }

.guide-visual--medium { max-width: 560px; }

.guide-visual--wide { max-width: 680px; }

.guide-visual img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.setup-steps code,
.guide-help code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--background);
  font-family: var(--mono);
  font-size: 0.86em;
}

.command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-control);
  background: var(--background);
}

.command code { padding: 0; background: transparent; }

.guide-note {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--action);
  border-radius: 0 var(--r-control) var(--r-control) 0;
  background: var(--tint-action);
  color: var(--ink-70);
  font-size: 0.875rem;
}

.guide-source { margin-top: 22px; font-size: 0.875rem; }

.guide-source a,
.guide-help a {
  color: var(--action);
  font-weight: 550;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.guide-help {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.guide-help ul {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-left: 22px;
  color: var(--ink-70);
  list-style: disc;
}

.guide-help li::marker { color: var(--action); }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

/* Scoped to .js (set by script.js) so a blocked or failed script can never
   leave whole sections invisible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.62s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.62s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js [data-reveal].is-in { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   Reduced motion — §10 "motion must never be required to understand state"
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Header extras: skip link, mobile nav, active state
   -------------------------------------------------------------------------- */

.skip {
  position: absolute;
  left: 50%;
  top: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-control);
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  transform: translate(-50%, -200%);
  transition: transform 0.18s ease;
}

.skip:focus-visible { transform: translate(-50%, 0); }

.site-nav a[data-active] { color: var(--ink); background: rgba(11, 18, 32, 0.05); }

.nav-toggle {
  display: none;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  color: var(--ink);
  background: var(--surface);
}

.nav-toggle svg { width: 19px; height: 19px; }

.nav-toggle .ico-close { display: none; }

.nav-toggle[aria-expanded="true"] .ico-open { display: none; }

.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

.mobile-nav {
  padding: 8px var(--gutter) 20px;
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
}

.mobile-nav nav { display: grid; margin-bottom: 12px; }

.mobile-nav nav a {
  padding: 13px 4px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

/* One dominant action: the header CTA steps aside while the menu is open */
.header-actions:has(.nav-toggle[aria-expanded="true"]) .btn--primary { display: none; }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal { padding-block: clamp(56px, 7vw, 88px) clamp(72px, 9vw, 112px); }

.legal .wrap { max-width: 46rem; }

.legal .eyebrow { margin-bottom: 12px; }

.legal h1 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
}

.legal h2 {
  margin-top: 44px;
  margin-bottom: 12px;
  font-size: 1.25rem;
  letter-spacing: -0.018em;
}

.legal p,
.legal li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-70);
}

.legal p + p { margin-top: 14px; }

.legal ul {
  margin: 12px 0 0;
  padding-left: 22px;
  list-style: disc;
}

.legal li { margin-bottom: 8px; }

.legal li::marker { color: var(--border); }

.legal a {
  color: var(--action);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(46, 91, 255, 0.35);
}

.legal a:hover { text-decoration-color: var(--action); }

/* ==========================================================================
   Connect flow — replica of the Claude "Add custom connector" journey
   ========================================================================== */

.connect {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

/* --- Step rail --- */
.connect-steps { display: grid; gap: 2px; }

.connect-steps li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  padding: 18px 18px 18px 16px;
  border: 1px solid transparent;
  border-radius: var(--r-card);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.connect-steps li[data-on] {
  background: var(--surface);
  border-color: var(--border);
}

.connect-steps .ci {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(11, 18, 32, 0.06);
  color: var(--ink-55);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.connect-steps li[data-on] .ci { background: var(--action); color: #fff; }

.connect-steps li[data-done] .ci { background: var(--tint-success); color: var(--success); }

.connect-steps h3 { margin-bottom: 5px; }

.connect-steps p { font-size: 0.9375rem; color: var(--ink-70); }

.connect-steps li:not([data-on]) p { color: var(--muted); }

.kbd {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font-size: 0.8125rem;
  line-height: 1;
  vertical-align: -3px;
}

.mcp-url {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--action);
  overflow-wrap: anywhere;
}

/* --- Stage --- */
.claude--flow { background: var(--c-surface-1); }

.cx {
  position: relative;
  height: 470px;
  overflow: hidden;
  font-family: var(--c-sans);
  color: var(--c-ink);
}

/* Resting composer */
.cx-composer {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 22px;
  width: min(88%, 470px);
  transform: translateX(-50%);
  padding: 13px 15px 11px;
  border-radius: 18px;
  background: var(--c-surface-2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.035), 0 0 0 0.5px rgba(32, 32, 31, 0.15);
}

.cx-composer .ph { font-size: 0.875rem; color: var(--muted); }

.cx-composer-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--c-muted);
}

.cx-plus {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 7px;
  font-size: 16px; line-height: 1;
  color: rgba(11, 11, 11, 0.55);
  transition: background-color 0.2s ease;
}

.cx-plus[data-hit] { background: rgba(11, 11, 11, 0.07); }

.cx-pill {
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(11, 11, 11, 0.05);
  font-size: 0.75rem;
  color: var(--c-ink);
}

.cx-model { margin-left: auto; font-weight: 560; color: var(--c-ink); }

.cx-send {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--c-clay);
  color: #fff;
}

.cx-send svg { width: 14px; height: 14px; }

/* Menus */
.cx-menu {
  position: absolute;
  z-index: 10;
  display: none;
  flex-direction: column;
  min-width: 218px;
  padding: 6px;
  border-radius: 12px;
  background: var(--c-surface-2);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(32, 32, 31, 0.16);
  font-size: 0.8125rem;
}

.cx-menu[data-on] {
  display: flex;
  animation: cx-pop 0.16s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes cx-pop {
  0%   { opacity: 0; transform: scale(0.97) translateY(-3px); }
  100% { opacity: 1; transform: none; }
}

.cx-menu span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--c-ink);
  white-space: nowrap;
  transition: background-color 0.18s ease;
}

.cx-menu span i { margin-left: auto; font-style: normal; color: rgba(11, 11, 11, 0.35); }

.cx-menu span[data-hit] { background: rgba(11, 11, 11, 0.06); }

.cx-menu hr { margin: 5px 8px; border: 0; border-top: 1px solid var(--c-border); }

/* All three levels must stay inside the window — the third used to run off. */
.cx-menu[data-layer="menu"] { left: 3.5%; bottom: 116px; min-width: 200px; }

.cx-menu--l2 { left: calc(3.5% + 208px); bottom: 168px; min-width: 186px; }

.cx-menu--l3 { left: calc(3.5% + 402px); bottom: 204px; min-width: 190px; }

/* Modals */
.cx-modal {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(11, 11, 11, 0.32);
  backdrop-filter: blur(1px);
}

.cx-modal[data-on] {
  display: flex;
  animation: cx-fade 0.2s ease both;
}

@keyframes cx-fade { 0% { opacity: 0; } 100% { opacity: 1; } }

.cx-modal-card {
  width: min(100%, 380px);
  max-height: 100%;
  padding: 20px;
  border-radius: 14px;
  background: var(--c-surface-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  animation: cx-rise 0.24s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes cx-rise {
  0%   { opacity: 0; transform: translateY(10px) scale(0.985); }
  100% { opacity: 1; transform: none; }
}

.cx-modal-card h4 { font-size: 1.0625rem; font-weight: 620; letter-spacing: -0.02em; }

.cx-sub { margin: 6px 0 14px; font-size: 0.75rem; color: var(--c-muted); }

.cx-field {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--c-border);
  border-radius: 9px;
  font-size: 0.8125rem;
  overflow: hidden;
}

.cx-field[data-focus] { border-color: rgba(46, 91, 255, 0.6); box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.1); }

.cx-field span { white-space: nowrap; overflow: hidden; text-overflow: clip; }

.cx-field .caret {
  width: 1px; height: 15px;
  margin-left: 1px;
  background: var(--c-ink);
  opacity: 0;
}

.cx-field[data-focus] .caret { opacity: 1; animation: cx-blink 1s steps(1) infinite; }

@keyframes cx-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.cx-hint { margin: 5px 0 12px; font-size: 0.6875rem; color: var(--c-muted); }

.cx-adv {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 6px 0 2px;
  font-size: 0.8125rem;
  color: var(--c-muted);
  pointer-events: none;
}

.cx-adv svg { width: 11px; height: 11px; transform: rotate(-90deg); opacity: 0.6; }

.cx-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.cx-btn {
  padding: 7px 15px;
  border: 1px solid var(--c-border);
  border-radius: 9px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.cx-btn--go { border-color: transparent; background: var(--c-ink); color: #fff; }

.cx-btn--g { border-color: transparent; background: #1a73e8; color: #fff; }

.cx-btn[data-hit] { filter: brightness(1.35); }

/* Google consent */
.cx-google { width: min(100%, 348px); }

.cx-g-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.8125rem;
  color: #5f6368;
}

.cx-g { width: 17px; height: 17px; }

.cx-g-title { margin: 14px 0 12px; font-size: 0.9375rem; line-height: 1.4; }

.cx-g-acct {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  margin-bottom: 14px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  width: fit-content;
  font-size: 0.8125rem;
}

.cx-g-acct .av {
  display: grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #7b4bd6;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 600;
}

.cx-g-lead { font-size: 0.8125rem; color: #5f6368; margin-bottom: 8px; }

.cx-g-scopes { display: grid; gap: 7px; }

.cx-g-scopes li {
  position: relative;
  padding-left: 20px;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.cx-g-scopes li::before {
  content: "";
  position: absolute;
  left: 4px; top: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #9aa0a6;
}

/* Connected panel */
.cx-done {
  position: absolute;
  z-index: 5;
  inset: 0 0 104px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 26px clamp(18px, 5%, 44px);
  background: var(--c-surface-1);
}

.cx-done[data-on] { display: flex; animation: cx-fade 0.3s ease both; }

/* Cursor */
.cx-cursor {
  position: absolute;
  top: 0; left: 0;
  width: 19px; height: 21px;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(11, 18, 32, 0.28));
  transition: transform 0.62s cubic-bezier(0.4, 0.02, 0.2, 1), opacity 0.3s ease;
}

.cx-cursor[data-show] { opacity: 1; }

.cx-cursor[data-click]::after {
  content: "";
  position: absolute;
  left: 1px; top: 1px;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: rgba(46, 91, 255, 0.32);
  animation: cx-ring 0.5s ease-out both;
}

@keyframes cx-ring {
  0%   { transform: scale(0.3); opacity: 0.9; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* Tool-approval card and first result */

/* ==========================================================================
   Hero headline: the Google Ads lockup and a rotating AI brand

   Every wordmark is pre-rendered on a shared 210px canvas with a 100px cap
   height and its baseline at y=150, so one height and one offset align them
   all — no per-brand corrections.
   ========================================================================== */

/* One row wide enough for every brand; stacks below 1080px, where even the
   widest wordmark cannot fit. Either way the layout is identical for all five,
   so the headline never reflows as the brand rotates. */
.hero .hero-title {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.26em;
  max-width: none;
}

.hero-line {
  display: flex;
  align-items: baseline;
  gap: 0.26em;
  white-space: nowrap;
}

/* Every lockup is pre-rendered on a shared 210px canvas: x-height normalised
   to 70px and the baseline at y=150. Flex `baseline` alignment synthesises an
   image's baseline from its BORDER bottom edge (a negative margin does not
   move it), so the canvas baseline is brought onto the text baseline with a
   translate, and the margin only reclaims the layout space. */
.hero-logo,
.rotator {
  height: 1.52em;
  margin-bottom: -0.434em;
  transform: translateY(0.434em);
}

.hero-logo {
  width: auto;
  max-width: none;
  flex: none;
}

.rotator {
  position: relative;
  display: block;
  flex: none;
  /* The slot is sized once to the WIDEST wordmark and never changes, so
     "Run Google Ads from" keeps the same position for every brand. Scripts
     replace this with a measured pixel value; the em fallback is the widest
     mark's aspect ratio at the current height. Marks are left-aligned inside
     the box, so every brand starts the same distance after "from". */
  width: 5.26em;
}

.rotator img {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: auto;
  max-width: none;
  opacity: 0;
  transform: translateY(0.1em);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.rotator img[data-on] { opacity: 1; transform: none; }

.rotator img[data-out] { opacity: 0; transform: translateY(-0.1em); }

/* ==========================================================================
   Fork note + the two capability rows
   ========================================================================== */

.fork { margin-top: 26px; }

.fork a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--ink-70);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.fork a:hover { border-color: #c7d1e0; color: var(--ink); }

.fork b { font-weight: 560; color: var(--ink); }

.fork svg { width: 16px; height: 16px; flex: none; }

.fork span { color: var(--muted); }

.stacks {
  display: grid;
  gap: 30px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border-soft);
}

.stack-label {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 34px;
}

.stack-row--tools li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.stack-row--tools img { height: 21px; width: auto; max-width: none; }

/* Shared canvas geometry means one height aligns every mark. */
.stack-row--ai img {
  height: 34px;
  width: auto;
  max-width: none;
  opacity: 0.72;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

/* Gemini's palette is far lighter than the rest; match its density in mono. */
.stack-row--ai img[alt="Gemini"] { filter: grayscale(1) brightness(0.55); }

.stack-row--ai li:hover img { opacity: 1; filter: none; }

/* ==========================================================================
   Interface switcher — the hero window can render as Claude or ChatGPT
   ========================================================================== */

.ui-switch { position: relative; }

.ui-current {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px 4px 6px;
  border-radius: 8px;
  font-family: var(--c-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  transition: background-color 0.15s ease;
}

.ui-current:hover { background: rgba(11, 11, 11, 0.05); }

.ui-mark { width: 16px; height: 16px; }

.ui-chev { width: 11px; height: 11px; opacity: 0.45; transition: transform 0.18s ease; }

.ui-current[aria-expanded="true"] .ui-chev { transform: rotate(180deg); }

.ui-menu[hidden] { display: none; }

.ui-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  min-width: 160px;
  padding: 5px;
  border-radius: 12px;
  background: var(--c-surface-2);
  box-shadow: 0 10px 30px rgba(11, 18, 32, 0.16), 0 0 0 0.5px rgba(32, 32, 31, 0.16);
  animation: cx-pop 0.14s ease both;
}

.ui-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: var(--c-sans);
  font-size: 0.875rem;
  color: var(--c-ink);
  text-align: left;
}

.ui-menu button:hover { background: rgba(11, 11, 11, 0.06); }

.ui-menu button[data-current] { background: rgba(11, 11, 11, 0.05); font-weight: 550; }

.ui-menu img { width: 17px; height: 17px; }

/* --- ChatGPT skin: measured from chatgpt.com (light) ---
   Page #fcfcfc, ink #0d0d0d, composer white with a 28px radius, and the
   distinctive black user bubble with white text. --- */
.claude[data-ui="chatgpt"] {
  --c-surface-1: #fcfcfc;
  --c-surface-2: #ffffff;
  --c-ink: #0d0d0d;
  --c-muted: #8f8f8f;
  --c-border: rgba(0, 0, 0, 0.09);
  --c-bubble: #000000;
  --c-clay: #0d0d0d;
  --c-serif: var(--c-sans);          /* ChatGPT sets responses in sans */
}

.claude[data-ui="chatgpt"] .claude-dots i:nth-child(1) { background: #e9b3ad; }

.claude[data-ui="chatgpt"] .claude-dots i:nth-child(2) { background: #eed7a3; }

.claude[data-ui="chatgpt"] .claude-dots i:nth-child(3) { background: #b3d4ad; }

/* Black pill, white text — the clearest tell of ChatGPT's light theme */
.claude[data-ui="chatgpt"] .c-user span {
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 1rem;
  line-height: 24px;
  color: #fff;
}

.claude[data-ui="chatgpt"] .c-say { font-size: 1rem; line-height: 26px; }

.claude[data-ui="chatgpt"] .claude-composer {
  border-radius: 28px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04),
              0 2px 8px rgba(0, 0, 0, 0.04),
              0 4px 80px 8px rgba(0, 0, 0, 0.024);
}

.claude[data-ui="chatgpt"] .claude-composer .ph { color: #8f8f8f; }

.claude[data-ui="chatgpt"] .claude-composer .row .send { background: #0d0d0d; color: #fff; }

/* ChatGPT's own indicators: its mark on the reasoning row, and the small
   pulsing dot it shows while a reply is streaming — not Claude's spark. */
.claude[data-ui="chatgpt"] .c-step .spark { display: none; }

.claude[data-ui="chatgpt"] .c-step[data-kind="think"]::before {
  content: "";
  width: 17px; height: 17px;
  flex: none;
  background: url("logos/mark-chatgpt.png?v=7") center / contain no-repeat;
}

.claude[data-ui="chatgpt"] .c-cursor {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--c-ink);
  animation: gpt-pulse 1.1s ease-in-out infinite;
}

.claude[data-ui="chatgpt"] .c-cursor use { display: none; }

@keyframes gpt-pulse {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.72); }
}

/* ==========================================================================
   Connect flow: brand chip, clickable steps, celebration, in-chat approval
   ========================================================================== */

.cx-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--c-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

.cx-brand img { width: 16px; height: 16px; }

/* Steps are jump targets — click, not hover: hover fires by accident while
   scrolling and gives touch users no way in. */
.connect-steps li { position: relative; }

.step-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  border-radius: var(--r-card);
  cursor: pointer;
}

.connect-steps li:hover { background: var(--surface); border-color: var(--border-soft); }

.step-hit:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }

.connect-steps li > div, .connect-steps li > .ci { position: relative; z-index: 1; pointer-events: none; }

/* --- "Connected!" celebration --- */
.cx-done { align-items: center; text-align: center; }

.cx-cheer {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 120px;
}

.cx-cheer-bubble {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--success);
  color: #fff;
  font-family: var(--c-sans);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  box-shadow: 0 10px 30px -8px rgba(22, 132, 91, 0.5);
  animation: cheer-pop 0.6s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}

.cx-cheer-bubble svg { width: 20px; height: 20px; }

@keyframes cheer-pop {
  0%   { opacity: 0; transform: scale(0.7); }
  60%  { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}

.cx-cheer-ring {
  position: absolute;
  width: 190px; height: 62px;
  border: 1.5px solid var(--success);
  border-radius: 999px;
  opacity: 0;
  animation: cheer-ring 2.4s ease-out infinite;
}

@keyframes cheer-ring {
  0%   { opacity: 0.35; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(1.45); }
}

/* --- In-chat change approval (no overlay) --- */
.cx-chat {
  position: absolute;
  inset: 0 0 104px;
  z-index: 5;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px clamp(18px, 5%, 44px) 8px;
  background: var(--c-surface-1);
  font-family: var(--c-sans);
}

.cx-chat[data-on] { display: flex; animation: cx-fade 0.3s ease both; }

.cx-chat-user { display: flex; justify-content: flex-end; }

.cx-chat-user span {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 12px;
  background: var(--c-bubble);
  font-size: 0.875rem;
  line-height: 19px;
  animation: cds-um-enter 0.45s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}

.cx-chat-tool {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8125rem;
  color: var(--c-muted);
}

.cx-chat-tool img { width: 16px; height: 16px; }

/* ==========================================================================   Responsive and motion preferences — every breakpoint in one place   ========================================================================== */

@media (max-width: 1080px) {
  .hero .hero-title { flex-direction: column; align-items: center; gap: 0.02em; }
}

@media (max-width: 1000px) {.grid-3, .steps { grid-template-columns: 1fr 1fr; }

.cap-card:last-child { grid-column: 1 / -1; }

.steps li:last-child { grid-column: 1 / -1; }

.connect { grid-template-columns: 1fr; }

.connect-steps { grid-template-columns: 1fr 1fr; display: grid; }
}

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

.site-header .wrap { grid-template-columns: auto 1fr; }

.header-actions .btn--ghost { display: none; }

.claude-body { height: 420px; }

.site-header .wrap { gap: 16px; }

.hero .lead { font-size: 1.0625rem; }

.nav-toggle { display: grid; }

.stacks { gap: 24px; }

.stack-row { gap: 12px 22px; }

.stack-row--ai img { height: 26px; }

.stack-row--tools li { font-size: 0.875rem; }
}

@media (max-width: 760px) {.connect-steps { grid-template-columns: 1fr; }

.cx { height: 430px; }

.cx-menu--l2, .cx-menu--l3 { display: none !important; }
}

@media (max-width: 720px) {:root { --gutter: 20px; }

.grid-3, .steps { grid-template-columns: 1fr; }

.cap-card:last-child, .steps li:last-child { grid-column: auto; }

.c-metrics { grid-template-columns: 1fr 1fr; }

.c-metrics div:nth-child(2) { border-right: 0; }

.c-metrics div:nth-child(-n+2) { border-bottom: 1px solid var(--c-border); }

.claude-body { height: 396px; }

.claude-viewport { padding-top: 18px; }

.claude-thread { width: calc(100% - 32px); }

.c-say { font-size: 0.9375rem; line-height: 22px; }

.c-confirm { flex-wrap: wrap; }

.c-confirm p { width: 100%; margin: 0 0 8px; }

.c-confirm .b { flex: 1; text-align: center; }

.footer-top { align-items: flex-start; flex-direction: column; }

.guide-controls { align-items: stretch; flex-direction: column; }

.guide-select-wrap { max-width: none; }

.guide-print { width: 100%; }

.endpoint-card { align-items: flex-start; }
}

@media (max-width: 560px) {.hero .hero-title, .hero-line { gap: 0.2em; }

.final-proof { flex-direction: column; align-items: center; }

.integration-guide { padding: 22px 18px; }

.guide-heading { align-items: flex-start; }

.setup-steps > li { grid-template-columns: 30px 1fr; gap: 12px; }

.command { align-items: stretch; flex-direction: column; }

.command button { align-self: flex-start; }

.endpoint-code { align-items: stretch; flex-direction: column; }

.endpoint-code code { white-space: normal; overflow-wrap: anywhere; }

.endpoint-code .copy-button { align-self: flex-start; }
}

@media (min-width: 861px) {.mobile-nav { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {html { scroll-behavior: auto; }

*, *::before, *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
    }

.js [data-reveal] { opacity: 1; transform: none; }

.claude-thread { transition: none; }

.cx-cursor { display: none; }

.rotator img { transition: none; }

.cx-cheer-ring { animation: none; opacity: 0; }
}

@media print {
  @page { margin: 16mm; }

  body { background: #fff; color: #000; font-size: 11pt; }

  .site-header,
  .site-footer,
  .guide-controls,
  .copy-button,
  .command button,
  .guide-help { display: none !important; }

  .guide-page { min-height: 0; padding: 0; background: #fff; }

  .guide-wrap { max-width: none; }

  .guide-hero > p:last-child { color: #333; }

  .endpoint-card {
    break-inside: avoid;
    border-color: #bbb;
    box-shadow: none;
  }

  .integration-guide {
    margin-top: 16px;
    padding: 24px;
    border-color: #bbb;
    box-shadow: none;
  }

  .guide-heading,
  .setup-steps > li,
  .command,
  .guide-note { break-inside: avoid; }

  .command code {
    min-width: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .endpoint-code {
    border-color: #bbb;
    background: #fff;
    box-shadow: none;
  }

  .endpoint-code code { color: #000; }

  .guide-source { overflow-wrap: anywhere; }

  .guide-source a::after { content: " (" attr(href) ")"; font-weight: 400; }
}

/* --------------------------------------------------------------------------
   MCP permission prompt — reproduced from the real claude.ai dialog: the
   connector icon, "<app> wants to use <tool> from <server>", and three
   stacked choices with Allow once as the primary.
   -------------------------------------------------------------------------- */

.cx-perm {
  width: min(100%, 320px);
  margin: 6px auto 0;
  padding: 20px 18px 16px;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: var(--c-surface-2);
  box-shadow: 0 6px 24px rgba(11, 18, 32, 0.08);
  text-align: center;
}

.cx-perm-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  margin: 0 auto 13px;
  padding: 7px;
  border: 1px solid rgba(46, 91, 255, 0.3);
  border-radius: 9px;
  background: var(--c-surface-2);
}

.cx-perm-icon img { width: 100%; height: 100%; }

.cx-perm-title {
  margin-bottom: 14px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--c-ink);
}

.cx-perm-title b { font-weight: 620; }

.cx-perm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 7px;
  padding: 9px;
  border: 1px solid var(--c-border);
  border-radius: 9px;
  font-size: 0.8125rem;
  color: var(--c-ink);
}

.cx-perm-btn i {
  font-style: normal;
  font-size: 0.6875rem;
  color: var(--c-muted);
}

.cx-perm-btn--go {
  border-color: transparent;
  background: var(--c-ink);
  color: #fff;
}

.cx-perm-btn--go i { color: rgba(255, 255, 255, 0.55); }

.cx-perm-btn[data-hit] { filter: brightness(1.35); }
