@import url("/transitions.css");

/* ============================================================
   aft.page — design tokens (docs/BRAND.md)
   Black / white agent-infra craft. Geist. Green = live only.
   ============================================================ */

:root {
  color-scheme: dark;
  --void: #000000;
  --panel: #0a0a0a;
  --line: #27272a;
  --line-bright: #3f3f46;
  --ink: #fafafa;
  --quiet: #a1a1aa;
  --faint: #767680; /* was #52525b (~2.7:1 on --void); bumped to ~4.7:1 for WCAG AA on small text */

  --cta: #ffffff;
  --cta-ink: #000000;
  --cta-hover: #e4e4e7;

  --good: #22c55e;
  --danger: #ff6b6b;
  --harbor: #111111;
  --live: var(--good);

  /* Legacy aliases → white CTA / green live (no orange) */
  --beacon: var(--cta);
  --beacon-deep: var(--cta-hover);
  --beacon-bright: var(--good);
  --beacon-dim: color-mix(in srgb, var(--ink) 8%, transparent);
  --beacon-ink: var(--cta-ink);

  /* Aliases for shared docs/SEO pages */
  --bg: var(--void);
  --bg-raised: var(--panel);
  --bg-inset: #050505;
  --muted: var(--quiet);
  --accent: var(--cta);
  --accent-bright: var(--ink); /* links and code; green is for live only */
  --accent-dim: var(--beacon-dim);
  --accent-ink: var(--cta-ink);
  --ok: var(--good);

  --font-sans: "Geist Variable", "Geist", "Segoe UI", system-ui, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: "Geist Mono Variable", "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Shared page rail — nav, hero, bands must share one edge */
  --page: 1180px;
  --page-gutter: 2.5rem;
}

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

html {
  /* scroll-behavior: smooth was global — it hijacked every in-page anchor
     jump (nav links, "Deploy an app"/"Join waitlist" CTAs) into a CSS-driven
     scroll animation. On long jumps this page can't rasterize fast enough
     (grain filter + backdrop-filter blur + radial-gradient glows per
     section), so the viewport went solid black for ~1-2s mid-scroll.
     Anchor jumps are instant now — no flash, no lost time. */
  scroll-behavior: auto;
}

/* Cross-document fade via View Transitions API (Transition Kit recipe).
   Same-origin clicks get a short crossfade; Safari/Firefox ignore this. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: aft-page-fade-out 220ms ease-in-out both;
}

::view-transition-new(root) {
  animation: aft-page-fade-in 220ms ease-in-out both;
}

@keyframes aft-page-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes aft-page-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--void);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
}

code {
  font-family: var(--font-mono);
}

strong {
  font-weight: 600;
}

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

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--quiet);
}

.lede {
  margin: 0 0 0.85rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.support {
  margin: 0;
  max-width: 42ch;
  color: var(--quiet);
  font-size: 1.05rem;
  line-height: 1.55;
}

.support em {
  font-style: normal;
  color: var(--ink);
}

/* —— Top nav —— */
.topnav,
.docs-top,
.seo-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--page), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: 1.35rem clamp(1.25rem, 3vw, 2.25rem);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.topnav-rail {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-bottom: 1px solid var(--line);
}

/* Keep legacy page fallbacks aligned while the shared nav upgrades them. */
.site > .topnav:not(.topnav-rail) {
  width: 100%;
  margin: 0;
  padding-inline: calc(
    max(var(--page-gutter), 100% - var(--page)) / 2 + clamp(1.25rem, 3vw, 2.25rem)
  );
  border-left: 0;
  border-right: 0;
}

.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--page), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: 1.35rem clamp(1.25rem, 3vw, 2.25rem);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.mobile-nav-toggle,
.mobile-nav-drawer {
  display: none;
}

.topnav-brand,
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1;
}

/* Wordmark period = live green (brand board 2026-08-08: lockup-green-period) */
.topnav-brand span,
.brand span {
  color: var(--good);
  font-family: var(--font-sans);
  font-weight: 600;
}

.topnav-links{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--quiet);
}

.topnav-links a{
  text-decoration: none;
}

.topnav-links a:hover,
.topnav-links a[aria-current="page"],
.nav-mega-trigger[aria-current="page"]{
  color: var(--ink);
}

.topnav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 0.5rem;
  background: var(--cta);
  border: 1px solid var(--cta);
  color: var(--cta-ink) !important;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.topnav-cta:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
}

.topnav-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-beta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--quiet);
  border: 1px solid var(--line);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
}

.lang-switch select {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--quiet);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.3rem 1.6rem 0.3rem 0.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%23a1a1aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  background-size: 0.6rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lang-switch select:hover,
.lang-switch select:focus-visible {
  border-color: var(--line-bright);
  color: var(--ink);
}

.lang-switch select option {
  background: var(--panel);
  color: var(--ink);
}

.lang-switch-mobile {
  width: 100%;
  margin-top: 0.5rem;
}

.lang-switch-mobile select {
  width: 100%;
}

.topnav-account {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  color: var(--ink) !important;
  font-weight: 600;
}

.topnav-account:hover {
  border-color: var(--line-bright);
  color: var(--ink);
}

/* —— Compact Agents mega (Get started + Agents) —— */
.nav-mega {
  position: relative;
}

.nav-mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
  text-decoration: none;
}

.nav-mega-trigger:hover,
.nav-mega.is-open .nav-mega-trigger {
  color: var(--ink);
}

.nav-mega-chevron {
  width: 0.7rem;
  height: 0.7rem;
  opacity: 0.65;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-mega.is-open .nav-mega-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-mega-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: auto;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(11.5rem, 13.5rem) minmax(10rem, 12.5rem);
  gap: 0;
  min-width: 24rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.nav-mega-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.7rem;
  height: 0.7rem;
}

.nav-mega-panel[hidden] {
  display: none !important;
}

.nav-mega-col {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  padding: 0.15rem 0.35rem;
}

.nav-mega-col + .nav-mega-col {
  border-left: 1px solid var(--line);
  padding-left: 0.75rem;
  margin-left: 0.35rem;
}

.nav-mega-label {
  margin: 0 0 0.45rem;
  padding: 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--faint);
}

.nav-mega-col a {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.45rem;
  border-radius: 3px;
  color: var(--ink);
  text-decoration: none;
}

.nav-mega-col a:hover,
.nav-mega-col a[aria-current="page"] {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink);
}

.nav-mega-title {
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1.25;
}

.nav-mega-desc {
  font-size: 0.75rem;
  font-weight: 450;
  line-height: 1.35;
  color: var(--quiet);
}

.nav-mega-list {
  max-height: min(26rem, 70vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-bright) transparent;
}

.nav-mega-list a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--quiet);
}

.nav-mega-list a:hover,
.nav-mega-list a[aria-current="page"] {
  color: var(--ink);
}

/* —— Hero: Ardent-like split, brand-first, product CLI —— */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 4.5rem);
  padding: 0.5rem 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-atmosphere {
  --dot: 22px;
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 15%, transparent 78%);
}

/* The dot grid is the hero's material: static, one tile, nothing to watch. */
.hero-atmosphere::before {
  content: "";
  position: absolute;
  inset: calc(var(--dot) * -1);
  background-image: radial-gradient(
    circle,
    color-mix(in srgb, var(--line-bright) 85%, transparent) 1px,
    transparent 1.2px
  );
  background-size: var(--dot) var(--dot);
}

.hero-frame {
  position: relative;
  z-index: 1;
  width: min(38rem, calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: 3.5rem 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  animation: hero-rise 0.65s ease both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}


.hero-pill-dot {
  width: 0.4rem;
  height: 0.4rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--good);
  animation: pulse 2.2s ease-in-out infinite;
}


.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* A real aft site, live: wide screens only. Phones keep the drop zone first. */
.hero-live {
  display: none;
  margin: 0;
  border: 1px solid var(--line-bright);
  border-radius: 0.9rem;
  overflow: hidden;
  background: var(--panel);
  text-align: left;
}

.hero-live-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.hero-live-addr {
  flex: 1;
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  background: var(--bg-inset);
  color: var(--ink);
  text-decoration: none;
}

.hero-live-host {
  color: var(--faint);
}

.hero-live-state {
  color: var(--good);
}

.hero-live.is-typing .hero-pill-dot {
  background: var(--faint);
  box-shadow: none;
  animation: none;
}

.hero-live.is-typing .hero-live-state {
  color: var(--faint);
}

.hero-live iframe {
  display: block;
  width: 100%;
  height: 22rem;
  border: 0;
  background: #f7f6f3;
}

.hero-live-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  padding: 0.65rem 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--quiet);
}


.hero-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink);
}

.hero-title span {
  display: block;
}

.hero .support {
  margin: 0 auto;
  max-width: 40ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--quiet);
}

.hero .support code {
  font-size: 0.875em;
  color: var(--ink);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}

.flow-arrow {
  color: var(--line-bright);
}

.flow-live {
  color: var(--good);
}

/* —— Hero launch: two copyable CLI rows, Drop as a quiet fallback below —— */
.hero-launch {
  --term-prompt: #78c2ad;
  width: 100%;
  margin-top: 2rem;
  padding: 0.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  border: 1px solid var(--line-bright);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--panel) 85%, transparent);
  text-align: left;
  scroll-margin-top: 5rem;
}

/* A command scrolls sideways before it ever wraps. */
.hero-launch .hero-install code {
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-cli-label {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
}

.hero-cli-ok {
  color: var(--good);
}

.hero-cli-url {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: var(--good);
}

.hero-cli-url span {
  color: var(--faint);
}

/* Small phones: the install line still fits on one line. */
@media (max-width: 380px) {
  .hero .hero-launch .hero-install,
  .hero .hero-cli-url {
    font-size: 0.75rem;
  }
}

.hero-cli-meta {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--faint);
}

.hero-cli-meta a {
  color: var(--quiet);
  white-space: nowrap;
}

.hero-alt {
  width: 100%;
  margin-top: 0.75rem;
  scroll-margin-top: 5rem;
}

.hero-alt .hero-drop {
  min-height: 0;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--line-bright);
  background: transparent;
}

.hero-drop-hint {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--quiet);
}

.hero-drop-hint .drop-pick {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--line-bright);
  cursor: pointer;
}

/* Keep a comma on the line of the button it follows. */
.hero-drop-hint > span {
  white-space: nowrap;
}

.hero-drop-hint .drop-key {
  color: var(--faint);
}

.hero-install {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.35rem 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #0a0a0a;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-align: left;
}

.hero-install .hero-demo-ps {
  user-select: none;
}

.hero-install code {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* "| sh" never sits alone on its own line. */
.hero-install code span {
  white-space: nowrap;
}

.hero-install-copy {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--quiet);
  cursor: pointer;
}

.hero-install-copy:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.hero-install-copy .i-ok,
.hero-install-copy[data-state="ok"] .i-copy {
  display: none;
}

.hero-install-copy[data-state="ok"] .i-ok {
  display: block;
  color: var(--good);
}

.hero-example {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.45rem 0.9rem 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink);
  text-decoration: none;
}

.hero-example span {
  color: var(--faint);
  font-family: var(--font-sans);
}

.hero-example:hover {
  border-color: var(--line-bright);
}



.hero-legal {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--faint);
}

.hero-legal a {
  color: inherit;
  text-decoration: underline;
}

@media (min-width: 1024px) {
  .hero-frame {
    width: min(var(--page), calc(100% - var(--page-gutter) * 2));
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 3.5rem;
    align-items: center;
    text-align: left;
  }

  .hero-copy {
    align-items: flex-start;
  }

  .hero .support {
    margin: 0;
  }

  .hero-example {
    display: none;
  }

  .hero-live {
    display: block;
  }
}

/* —— Terminal (hero and the CLI section) —— */
.hero-demo {
  --term-bg: #1c1c1c;
  --term-chrome: #2d2d2d;
  --term-chrome-edge: #3a3a3a;
  --term-fg: #f0f0f0;
  --term-dim: #8e8e8e;
  --term-prompt: #78c2ad;
  display: flex;
  flex-direction: column;
  border: 1px solid #000;
  border-radius: 0.55rem;
  background: var(--term-bg);
  box-shadow:
    0 0 0 0.5px color-mix(in srgb, #fff 12%, transparent),
    0 18px 50px color-mix(in srgb, #000 65%, transparent),
    0 2px 6px color-mix(in srgb, #000 40%, transparent);
  overflow: hidden;
  min-height: 13rem;
  font-family:
    "SF Mono",
    ui-monospace,
    Menlo,
    Monaco,
    "Cascadia Mono",
    Consolas,
    monospace;
}

.hero-demo-chrome {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.35rem;
  padding: 0 0.65rem 0 0.75rem;
  border-bottom: 1px solid #1a1a1a;
  background:
    linear-gradient(180deg, #3b3b3b 0%, var(--term-chrome) 55%, #262626 100%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent);
}






.hero-demo-code {
  margin: 0;
  padding: 1rem 1.1rem 1.25rem;
  overflow-x: auto;
  flex: 1;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--term-fg);
  white-space: pre;
  background: #000;
  tab-size: 2;
  caret-color: var(--term-fg);
}

.hero-demo-code code {
  font: inherit;
  color: inherit;
}

.hero-demo-ps {
  color: var(--term-prompt);
  font-weight: 600;
}

.hero-demo-code a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, #7dd3fc 40%, transparent);
}

.hero-demo-code a:hover {
  color: #bae6fd;
}

.hero-demo-liveurl {
  color: var(--term-prompt) !important;
  text-decoration-color: color-mix(in srgb, var(--term-prompt) 45%, transparent) !important;
}

.hero-demo-code a.hero-demo-liveurl:hover {
  color: #9fdfc8 !important;
}

.hero-demo-code ::selection {
  background: #3955a0;
  color: #fff;
}

.hero-drop {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 10rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  border: 1.5px dashed #333;
  border-radius: 0.6rem;
  margin: 0.6rem;
  background: #0a0a0a;
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hero-drop:hover,
.hero-drop.is-dragging {
  border-color: #f0f0f0;
  background: #111;
}

.hero-drop.is-error {
  border-color: var(--danger);
}

.hero-drop-surface {
  display: flex;
  min-height: 0;
  width: 100%;
  flex: 1;
}

.hero-drop .drop-zone-idle h2,
.hero-drop #paste-drop-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #f0f0f0;
}

.hero-drop .drop-zone-lede {
  margin: 0.4rem auto 0;
  max-width: 26rem;
  font-size: 0.875rem;
  color: #a1a1aa;
}

.hero-drop .drop-zone-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.hero-drop .drop-zone-actions .btn {
  min-width: 8.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.hero-drop .drop-zone-status,
.hero-drop .drop-zone-result {
  max-width: 24rem;
}

.hero-drop .drop-zone-idle[hidden],
.hero-drop .drop-zone-status[hidden],
.hero-drop .drop-zone-result[hidden],
.hero-drop #paste-submit[hidden] {
  display: none !important;
}

/* —— Proof: live example + works-with strip —— */
.proof-band {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 55%, transparent);
  animation: hero-rise 0.7s ease 0.2s both;
}

.proof-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.proof-strip li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.25rem;
  padding: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 1.05vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  border-right: 1px solid var(--line);
  transition: color 0.2s ease, background 0.2s ease;
}

.proof-strip li:last-child {
  border-right: none;
}

.proof-strip li:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.3rem;
  border-radius: 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  appearance: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.btn-primary {
  background: var(--cta);
  border-color: var(--cta);
  color: var(--cta-ink);
}

.btn-primary:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
}

.btn-ghost {
  border-color: var(--line-bright);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink);
}

@keyframes stage-rise {
  from {
    transform: translateY(20px);
  }
  to {
    transform: none;
  }
}

.terminal {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 0.75rem 0.75rem 0 0;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow:
    0 -40px 80px color-mix(in srgb, var(--beacon) 8%, transparent),
    0 0 0 1px color-mix(in srgb, var(--ink) 3%, transparent);
}

@keyframes type-reveal {
  to {
    width: calc(var(--chars) * 1ch);
  }
}

@keyframes gate-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
  .hero-frame,
  .hero-pill-dot,
  .proof-band,
  .status-dot {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
  }

  .proof-strip {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* —— Homepage rail (shared left/right edge) —— */
.rail {
  width: min(var(--page), calc(100% - var(--page-gutter)));
  margin: 0 auto 3rem;
  border: 1px solid var(--line);
}

.rail > .paths,
.rail > .compare,
.rail > .pricing,
.rail > .faq,
.rail > .ready,
.rail > .waitlist {
  width: 100%;
}

.rail > .waitlist {
  border: none;
  border-radius: 0;
}

/* —— Builders and agents: ways in —— */
/* —— Before and after: the chat, then the link —— */
.before-after {
  padding: 4.5rem clamp(1.25rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}

.ba-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin-top: 2.5rem;
}

.ba-card {
  margin: 0;
  height: 17rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--panel);
  overflow: hidden;
}

.ba-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
}

.ba-label-url {
  color: var(--ink);
}

.ba-code {
  margin: 0;
  font: 0.75rem/1.6 var(--font-mono);
  color: var(--quiet);
  white-space: pre-wrap;
}

.ba-arrow {
  font: 1.4rem var(--font-mono);
  color: var(--faint);
}

.ba-shot {
  height: calc(100% - 2rem);
  overflow: hidden;
  border-radius: 0.5rem;
  background: #f7f6f3;
}

.ba-shot iframe {
  width: 200%;
  height: 200%;
  border: 0;
  transform: scale(0.5);
  transform-origin: 0 0;
  pointer-events: none;
}

@media (max-width: 760px) {
  .ba-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .ba-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

.paths {
  border-bottom: 1px solid var(--line);
}

.paths-head {
  padding: 4.5rem clamp(1.25rem, 3vw, 2.25rem) 0;
}

.paths-head .section-lede {
  margin-bottom: 2.5rem;
}

.path-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.path-row li {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.path-row li:last-child {
  border-right: none;
}

.path-row a {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 2.25rem 1.15rem 2.5rem;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}

.path-row a:hover,
.path-row a:focus-visible {
  background: var(--panel);
}

.path-row a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}




.path-row h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.path-row h3 span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--faint);
  white-space: nowrap;
}

.path-cmd {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.path-row p:not(.path-cmd) {
  margin: 0;
  color: var(--quiet);
  font-size: 0.875rem;
  line-height: 1.5;
}

.path-row-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .path-row-5 {
    grid-template-columns: minmax(0, 1fr);
  }

  .path-row-5 li {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .path-row-5 li:last-child {
    border-bottom: none;
  }
}

.cli-ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 0 clamp(1.25rem, 3vw, 2.25rem);
}

.cli-way {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cli-way h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.cli-way > p {
  margin: 0 0 1rem;
  color: var(--quiet);
  font-size: 0.875rem;
  line-height: 1.5;
}

.cli-way .hero-demo {
  min-height: 0;
}

.cli-prompt {
  margin-top: 1rem;
}

.cli-prompt .hero-install code {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.cli-more {
  margin: 0;
  padding: 2rem clamp(1.25rem, 3vw, 2.25rem) 2.5rem;
  color: var(--faint);
  font-size: 0.875rem;
}

.cli-more a {
  color: var(--ink);
}

@media (max-width: 900px) {
  .cli-ways {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

/* —— Reprise: one-line recap between the capability/path sections and
   the comparison table. —— */
.reprise {
  position: relative;
  margin: 1rem 0 0;
  padding: 2.5rem 0 2rem;
  text-align: center;
  overflow: hidden;
}

.reprise-line {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.reprise-line .flow-arrow {
  margin: 0 0.4rem;
}

.reprise-sep {
  margin: 0 0.55rem;
  color: var(--line-bright);
}

/* —— Comparison —— */
.compare {
  width: min(var(--page), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: 4.5rem clamp(1.25rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}

.compare-table {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: minmax(7rem, 0.7fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row > * {
  padding: 0.95rem 1.15rem;
  font-size: 0.875rem;
  color: var(--quiet);
  border-right: 1px solid var(--line);
}

.compare-row > *:last-child {
  border-right: none;
}

.compare-row > [role="rowheader"] {
  font-weight: 600;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 60%, transparent);
}

.compare-head > * {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--faint);
  background: var(--panel);
}

.compare-aft {
  color: var(--ink) !important;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.compare-head .compare-aft {
  color: var(--ink) !important;
}

/* —— Pricing —— */
.pricing {
  width: min(var(--page), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: 4.5rem clamp(1.25rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  overflow: hidden;
}

.price-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 6;
  min-width: 0;
  padding: 1.6rem 1.45rem 1.75rem;
  border-right: 1px solid var(--line);
}

.price-card:last-child {
  border-right: none;
}

.price-card-hot {
  background: var(--panel);
}

.price-card:not(.price-card-hot) .price-amt {
  color: var(--quiet);
  font-weight: 500;
}

.price-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.price-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.price-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--quiet);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.18rem 0.45rem;
}

.price-desc {
  margin: 0 0 1.15rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--quiet);
}

.price-figure {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}

.price-amt {
  font-size: clamp(2rem, 3.4vw, 2.35rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
}

/* "Talk to us" is a label, not a price: smaller than the dollar figures. */
.price-card:not(.price-card-hot) .price-amt-text {
  font-size: 1.5rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.price-per {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  line-height: 1.15;
  color: var(--faint);
}

.price-card .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.price-includes {
  margin: 0 0 0.7rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.price-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--quiet);
}

.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  color: var(--ink);
}

.price-list code {
  font-size: 0.875em;
  color: var(--ink);
}
.lifecycle,
.ways,
.trust {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4rem 0;
}

/* —— Early access —— */
.waitlist {
  width: min(var(--page), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 100% 0%, var(--beacon-dim), transparent 45%),
    var(--panel);
}

.waitlist h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.waitlist-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--quiet);
  max-width: 52ch;
}

.waitlist-fields {
  display: flex;
  gap: 0.65rem;
}

.waitlist-form input[type="email"] {
  min-width: 0;
  flex: 1;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line-bright);
  border-radius: 4px;
  background: var(--bg-inset);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--beacon);
  box-shadow: 0 0 0 3px var(--beacon-dim);
}

.waitlist-form input[type="email"].is-error {
  border-color: var(--danger);
}

.waitlist-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-note,
.waitlist-status {
  margin: 0.65rem 0 0;
  min-height: 1.35em;
  font-size: 0.875rem;
  color: var(--faint);
}

.waitlist-status {
  margin-top: 0.2rem;
}

.waitlist-status[data-kind="ok"] {
  color: var(--good);
}

.waitlist-status[data-kind="error"] {
  color: var(--danger);
}

.section-tag {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--quiet);
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-lede {
  margin: 0 0 2.5rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1rem;
}

.section-lede strong {
  color: var(--ink);
}

/* —— Lifecycle —— */
.lifecycle {
  border-top: none;
  background-image: repeating-linear-gradient(
    to right,
    var(--line) 0 6px,
    transparent 6px 13px
  );
  background-size: 100% 1px;
  background-position: top;
  background-repeat: no-repeat;
}

/* —— Ways in (deploy + paste) —— */
.ways {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  border-top: none;
  background-image: repeating-linear-gradient(
    to right,
    var(--line) 0 6px,
    transparent 6px 13px
  );
  background-size: 100% 1px;
  background-position: top;
  background-repeat: no-repeat;
}

.ways .section-lede {
  margin-bottom: 1.5rem;
}

/* —— Trust / identity —— */
.trust {
  border-top: none;
  background-image: repeating-linear-gradient(
    to right,
    var(--line) 0 6px,
    transparent 6px 13px
  );
  background-size: 100% 1px;
  background-position: top;
  background-repeat: no-repeat;
}

/* —— Try / paste (legacy class kept for SEO pages) —— */
.try {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  border-top: none;
  background-image: repeating-linear-gradient(
    to right,
    var(--line) 0 6px,
    transparent 6px 13px
  );
  background-size: 100% 1px;
  background-position: top;
  background-repeat: no-repeat;
  padding-top: 4rem;
}

.try h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.paste-form {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg-raised);
}

.paste-form textarea {
  display: block;
  width: 100%;
  min-height: 5rem;
  max-height: 10rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: var(--bg-inset);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.4;
  resize: vertical;
  outline: none;
}

.paste-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.paste-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--faint);
  font-size: 0.875rem;
}

.paste-or::before,
.paste-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.paste-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.35rem 1rem;
  text-align: center;
  cursor: pointer;
  border: 1px dashed var(--line-bright);
  border-radius: 0.5rem;
  background: var(--bg-inset);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.paste-drop:hover,
.paste-drop:focus-visible,
.paste-drop.is-dragging {
  border-color: var(--accent);
  outline: none;
  background: var(--accent-dim);
}

.paste-drop > input[type="file"] {
  display: none;
}

.paste-drop-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.25rem;
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  color: var(--ink);
}

.paste-drop-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.paste-drop-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.875rem;
}

.paste-hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.paste-hint span {
  color: var(--accent-bright);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.paste-drop-meta {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--faint);
}

.paste-files {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.paste-files li {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.25rem 0.55rem;
  border-radius: 0.25rem;
  border: 1px solid var(--line);
  font-size: 0.75rem;
}

.paste-files li span {
  color: var(--faint);
}

/* A zip or folder: one line, its files in a collapsed explorer tree. */
.paste-files .drop-bundle { display: block; width: min(30rem, 100%); margin-inline: auto; text-align: left; padding: 0.55rem 0.75rem; font-size: 0.875rem; }
.drop-bundle-head { display: flex; align-items: baseline; gap: 0.35rem; color: var(--quiet); }
.drop-bundle-head b { color: var(--ink); font-weight: 600; }
.drop-bundle details > summary { margin-top: 0.4rem; color: var(--quiet); cursor: pointer; font-size: 0.875rem; }
.drop-tree { list-style: none; margin: 0.25rem 0 0; padding: 0 0 0 0.9rem; max-height: 16rem; overflow: auto; font-family: var(--font-mono); font-size: 0.75rem; }
.drop-tree .drop-tree { max-height: none; overflow: visible; }
.drop-tree li { display: flex; gap: 0.5rem; padding: 0.1rem 0; border: 0; }
.drop-tree li > details { width: 100%; }
.drop-tree summary { display: flex; gap: 0.5rem; margin: 0; color: var(--ink); cursor: pointer; list-style: none; }
.drop-tree summary::before { content: "▸"; color: var(--faint); }
.drop-tree details[open] > summary::before { content: "▾"; }
.drop-tree span { margin-left: auto; color: var(--faint); }

.paste-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.paste-status {
  margin: 0;
  margin-right: auto;
  font-size: 0.875rem;
  color: var(--muted);
  min-height: 1.35em;
}

.paste-status[data-kind="ok"] {
  color: var(--ok);
  font-weight: 600;
}

.paste-status[data-kind="error"] {
  color: var(--danger);
}

.paste-result {
  margin-top: 1rem;
}

.paste-result a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--good);
  text-underline-offset: 0.18em;
}

/* —— Footer (aft stern: status · mark · giant aft.) —— */
.site-footer {
  position: relative;
  margin-top: 4rem;
  background: var(--void);
  color: var(--ink);
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.site > .site-footer {
  margin-top: auto;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: min(var(--page), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: 2.25rem 0 0;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2.25rem;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.35rem 0.7rem 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 80%, transparent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--good);
  text-decoration: none;
}

.footer-status:hover {
  border-color: var(--line-bright);
  color: var(--ink);
}

.footer-status:hover .status-dot {
  background: var(--ink);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
  animation: pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--faint);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(14rem, 1.2fr) minmax(0, 2fr);
  gap: 2rem 3rem;
  padding-bottom: 2.5rem;
}

.footer-brand-block {
  max-width: 28rem;
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  margin-bottom: 0.85rem;
}

.footer-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.04em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

/* Footer board 2026-08-09: wm-square-chrome */
.footer-wordmark .sq {
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  border-radius: 0.03em;
  background: var(--good);
  transform: translateY(0.02em);
  flex-shrink: 0;
}

.footer-tagline {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--quiet);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}

.footer-col h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--faint);
}

.footer-col a {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--quiet);
  text-decoration: none;
}

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

.footer-col a:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.footer-giant-wrap {
  position: relative;
  margin: 0.5rem -1.25rem 0;
  padding: 1.5rem 0 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

/* Footer board 2026-08-09 R6: fade into void. Not solid / hold / sheen / offset. */
.footer-giant {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 28vw, 16rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.78;
  color: transparent;
  background: linear-gradient(
    185deg,
    color-mix(in srgb, var(--ink) 30%, transparent) 0%,
    color-mix(in srgb, var(--ink) 12%, transparent) 42%,
    transparent 80%
  );
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 40px color-mix(in srgb, var(--ink) 12%, transparent));
}

/* Stern square period (brand board 2026-08-08: lockup-stern) */
.footer-giant .sq {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.02em;
  border-radius: 0.02em;
  vertical-align: 0.02em;
  color: unset;
  background: linear-gradient(
    185deg,
    color-mix(in srgb, var(--ink) 28%, transparent) 0%,
    color-mix(in srgb, var(--ink) 10%, transparent) 55%,
    transparent 85%
  );
  -webkit-background-clip: unset;
  background-clip: unset;
  filter: none;
}

@media (max-width: 820px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .footer-giant {
    font-size: clamp(4.5rem, 32vw, 8rem);
  }
}

/* ============================================================
   Docs (/mcp) + SEO intent pages (/drop, /host-html, ...)
   Same tokens + components as the homepage so every page reads
   as one system.
   ============================================================ */

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.docs-hero,
.seo-hero {
  width: min(var(--page), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.docs-hero h1,
.seo-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 22ch;
}

.docs-hero code,
.seo-hero code {
  color: var(--accent-bright);
}

.docs-machine {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.docs-callout {
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  max-width: 62ch;
  border-radius: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  background: var(--accent-dim);
  font-size: 0.875rem;
  color: var(--muted);
}

.docs-callout strong {
  color: var(--ink);
}

.docs-callout a,
.docs-callout code {
  color: var(--accent-bright);
}

.docs-callout--warn {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
  background: color-mix(in srgb, var(--danger) 10%, var(--bg-inset));
}

.docs-callout--warn strong {
  color: var(--danger);
}

.docs-callout--warn a,
.docs-callout--warn code {
  color: var(--ink);
}

.docs-layout {
  width: min(var(--page), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 3rem;
  padding-bottom: 4rem;
}

.docs-toc {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  font-size: 0.875rem;
}

.docs-toc p {
  margin: 0 0 0.75rem;
  color: var(--faint);
  font-size: 0.75rem;
}

.docs-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 1px solid var(--line);
}

.docs-toc a {
  display: block;
  padding: 0 0 0 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.docs-toc a:hover {
  color: var(--ink);
}

.docs-body {
  min-width: 0;
  max-width: 72ch;
}

.docs-body section {
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.docs-body section:first-child {
  padding-top: 0;
  border-top: none;
}

.docs-crumb {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--quiet);
}

.docs-crumb a {
  color: var(--muted);
  text-decoration: none;
}

.docs-crumb a:hover {
  color: var(--ink);
}

.docs-body h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.docs-body h2::before {
  content: "## ";
  color: var(--faint);
  font-weight: 400;
}

.docs-body h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.docs-body p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.docs-body strong,
.docs-body em {
  color: var(--ink);
  font-style: normal;
  font-weight: 600;
}

.docs-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 1.25rem 0 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.docs-guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  background: var(--void);
  color: var(--quiet);
  text-decoration: none;
}

.docs-body .docs-guide-card { color: var(--quiet); text-decoration: none; }
.docs-guide-card:hover { background: var(--panel); }
.docs-guide-card-title { color: var(--ink); font-weight: 600; font-size: 1rem; }
.docs-guide-card-desc { font-size: 0.875rem; line-height: 1.5; }

@media (max-width: 640px) {
  .docs-guide-grid { grid-template-columns: minmax(0, 1fr); }
}

.docs-body a {
  color: var(--accent-bright);
  text-underline-offset: 0.15em;
}

.docs-body code {
  color: var(--accent-bright);
  font-size: 0.875em;
}

.docs-body ul,
.docs-body ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.docs-body li {
  margin-bottom: 0.35rem;
}

.docs-body pre,
.with-body pre {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg-inset);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.55;
}

.docs-body pre code,
.with-body pre code {
  color: var(--ink);
}

.docs-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.docs-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.docs-body th,
.docs-body td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.docs-body th {
  color: var(--faint);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg-raised);
}

.docs-alias {
  display: block;
  margin-top: 0.15rem;
  color: var(--faint);
  font-size: 0.875rem;
}

.docs-body tr:last-child td {
  border-bottom: none;
}

/* —— Enhanced Docs Components (FastAPI Cloud quality) —— */
@media (min-width: 1100px) {
  .docs-layout--3col {
    grid-template-columns: 210px minmax(0, 1fr) 210px;
    gap: 2.5rem;
  }

  .docs-aside-toc {
    display: block;
    position: sticky;
    top: 2rem;
    align-self: start;
    font-size: 0.8125rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
  }
}

@media (max-width: 1099px) {
  .docs-aside-toc {
    display: none;
  }
}

.docs-aside-toc-title {
  font-size: 0.725rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.docs-aside-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.docs-aside-toc a {
  display: block;
  padding: 0.2rem 0 0.2rem 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  line-height: 1.4;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.docs-aside-toc a:hover {
  color: var(--ink);
}

.docs-aside-toc a.is-active,
.docs-aside-toc a[aria-current="true"] {
  color: var(--good);
  border-left-color: var(--good);
  font-weight: 500;
}

/* Tabbed Code Snippets */
.docs-tabs {
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg-inset);
  overflow: hidden;
}

.docs-tabs-nav {
  display: flex;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.docs-tab-btn {
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.docs-tab-btn:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.docs-tab-btn.is-active,
.docs-tab-btn[aria-selected="true"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  font-weight: 600;
}

.docs-tab-panel {
  display: none;
  padding: 1.15rem 1.15rem 1rem;
}

.docs-tab-panel.is-active,
.docs-tab-panel:not([hidden]) {
  display: block;
}

.docs-tab-panel pre {
  margin-bottom: 0.25rem;
}

/* Code block wrapper & Copy button */
.docs-code-wrap {
  position: relative;
  margin: 0 0 1rem;
}

.docs-code-wrap pre {
  margin: 0;
  padding: 0.95rem 4.5rem 0.95rem 1rem;
}

.docs-copy-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.275rem 0.55rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
  user-select: none;
  z-index: 2;
}

.docs-copy-btn:hover {
  color: var(--ink);
  border-color: var(--line-bright);
  background: var(--void);
}

.docs-copy-btn.is-copied {
  color: var(--good);
  border-color: var(--good);
  background: color-mix(in srgb, var(--good) 12%, transparent);
}

.docs-copy-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Enhanced Callout / Admonitions */
.docs-callout-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.docs-callout-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.docs-callout--tip {
  border-color: color-mix(in srgb, var(--good) 30%, var(--line));
  background: color-mix(in srgb, var(--good) 4%, var(--panel));
}
.docs-callout--tip .docs-callout-header {
  color: var(--good);
}

.docs-callout--note {
  border-color: color-mix(in srgb, var(--line-bright) 60%, var(--line));
  background: var(--bg-inset);
}
.docs-callout--note .docs-callout-header {
  color: var(--ink);
}

/* Stepped Walkthrough */
.docs-step {
  position: relative;
  margin-bottom: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.docs-step:first-of-type {
  padding-top: 0;
  border-top: none;
}

.docs-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.docs-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  background: var(--panel);
  color: var(--good);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.docs-step-header h2 {
  margin: 0;
  padding: 0;
  border-top: none;
  font-size: 1.35rem;
}

.docs-step-header h2::before {
  display: none;
}

/* Terminal Preview Mockup */
.docs-terminal {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg-inset);
  margin: 0.75rem 0 1.25rem;
  overflow: hidden;
}

.docs-terminal-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.docs-terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.docs-terminal-dot:nth-child(1) { background: #ef4444; opacity: 0.75; }
.docs-terminal-dot:nth-child(2) { background: #eab308; opacity: 0.75; }
.docs-terminal-dot:nth-child(3) { background: #22c55e; opacity: 0.75; }

.docs-terminal-title {
  font-size: 0.75rem;
  color: var(--faint);
  font-family: var(--font-mono);
  margin-left: 0.4rem;
}

.docs-terminal pre {
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0.85rem 1rem;
}

/* Pagination Footer Cards */
.docs-pagination {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.docs-pagination-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg-inset);
  text-decoration: none;
  transition: all 0.15s ease;
}

.docs-pagination-card:hover {
  border-color: var(--line-bright);
  background: var(--panel);
}

.docs-pagination-sub {
  font-size: 0.725rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.docs-pagination-title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.docs-pagination-card--next {
  text-align: right;
  align-items: flex-end;
}


/* —— SEO intent pages —— */
.sections {
  width: min(var(--page), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding-bottom: 3rem;
}

.block {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  max-width: 68ch;
}

.block h2 {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  padding-left: 2.25rem;
  position: relative;
  color: var(--muted);
  font-size: 0.875rem;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
}

.steps strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.seo-faq {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.seo-faq details {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg-raised);
}

.seo-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  list-style: none;
}

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

.seo-faq summary::before {
  content: "+ ";
  color: var(--accent);
}

.seo-faq details[open] summary::before {
  content: "− ";
}

.seo-faq p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.seo-faq code {
  color: var(--accent-bright);
}

.agent-bridge {
  width: min(var(--page), calc(100% - var(--page-gutter)));
  margin: 0 auto 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  background: var(--accent-dim);
  font-size: 0.875rem;
  color: var(--muted);
}

.agent-bridge a {
  color: var(--accent-bright);
}

.related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.related a {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--muted);
}

.related a:hover {
  color: var(--ink);
  border-color: var(--accent);
}

/* —— Simple content / legal pages —— */
.content {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.content .section-title {
  margin: 0 0 1rem;
}

.content .section-lede {
  margin: 0;
  color: var(--quiet);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: none;
}

.content .section-lede a {
  color: var(--beacon-bright);
  text-decoration: none;
}

.content .section-lede a:hover {
  text-decoration: underline;
}

/* —— Long-form legal documents (privacy / terms / cookies) —— */
.content.legal {
  width: min(46rem, calc(100% - 2.5rem));
  color: var(--quiet);
  font-size: 1rem;
  line-height: 1.7;
}

.content.legal .section-title {
  margin: 0 0 0.5rem;
}

.legal-meta {
  margin: 0 0 2rem;
  color: var(--faint);
  font-size: 0.875rem;
  font-family: "Geist Mono Variable", ui-monospace, monospace;
}

.content.legal h2 {
  margin: 2.25rem 0 0.75rem;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.3;
}

.content.legal h3 {
  margin: 1.5rem 0 0.5rem;
  color: var(--ink);
  font-size: 1rem;
}

.content.legal p {
  margin: 0 0 1rem;
}

.content.legal ul,
.content.legal ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.content.legal li {
  margin: 0 0 0.4rem;
}

.content.legal a {
  color: var(--beacon-bright);
  text-decoration: none;
}

.content.legal a:hover {
  text-decoration: underline;
}

.content.legal code {
  font-family: "Geist Mono Variable", ui-monospace, monospace;
  font-size: 0.875em;
  color: var(--ink);
  background: var(--beacon-dim);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal-table th,
.legal-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
}

.legal-table th {
  color: var(--ink);
  font-weight: 600;
  background: var(--panel);
}

/* —— Simple footer (docs / seo pages) —— */
.footer {
  margin-top: auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer p {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  color: var(--faint);
  font-size: 0.875rem;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

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

.footer code {
  color: var(--accent-bright);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-brand {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .hero-title {
    font-size: clamp(1.55rem, 6vw, 2.1rem);
  }

  .integrator-list,
  .compare-row,
  .price-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-row > * {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .compare-row > *:last-child {
    border-bottom: none;
  }

  /* One column on a phone: drop the header row and label each cell, so it still
     reads as a comparison rather than a list of loose phrases. */
  .compare-head {
    display: none;
  }

  .compare-row > :nth-child(2)::before,
  .compare-row > .compare-aft::before {
    display: block;
    margin-bottom: 0.2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--faint);
  }

  .compare-row > :nth-child(2)::before {
    content: "Traditional cloud";
  }

  .compare-row > .compare-aft::before {
    content: "aft";
  }

  .reprise {
    padding-inline: 1.25rem;
  }

  .reprise-sep {
    display: none;
  }

  .reprise-tail {
    display: block;
    margin-top: 0.35rem;
  }

  .price-card {
    display: flex;
    flex-direction: column;
    grid-row: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .price-card:last-child {
    border-bottom: none;
  }

  .terminal {
    width: 100%;
    border-radius: 0.75rem 0.75rem 0 0;
    border-left: none;
    border-right: none;
  }

  .pillar-list,
  .lifecycle-list {
    grid-template-columns: 1fr 1fr;
  }

  .path-row {
    grid-template-columns: 1fr;
  }

  .path-row li {
    border-right: none;
  }

  .path-row li {
    border-bottom: 1px solid var(--line);
  }

  .path-row li:last-child {
    border-bottom: none;
  }

  .trust-list {
    grid-template-columns: 1fr;
  }

  .hero-split,
  .ways,
  .try,
  .waitlist,
  .seo-hero {
    grid-template-columns: 1fr;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .docs-toc {
    position: static;
  }

  .docs-toc ol {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-top: 0.75rem;
  }

  .docs-toc a {
    padding: 0;
  }
}

@media (max-width: 760px) {
  body.mobile-nav-open {
    overflow: hidden;
  }

  .topnav-links {
    display: none;
  }

  .mobile-nav-toggle,
  .mobile-nav-close {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .mobile-nav-toggle:hover,
  .mobile-nav-close:hover {
    background: color-mix(in srgb, var(--ink) 7%, transparent);
  }

  .mobile-nav-toggle:focus-visible,
  .mobile-nav-close:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
  }

  .mobile-nav-toggle svg,
  .mobile-nav-close svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
  }

  .mobile-nav-drawer {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: color-mix(in srgb, var(--void) 97%, var(--panel));
    animation: mobile-nav-in 0.18s ease both;
  }

  .mobile-nav-drawer[hidden] {
    display: none;
  }

  .mobile-nav-shell {
    display: flex;
    flex-direction: column;
    width: min(calc(100% - 2rem), 34rem);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: max(1rem, env(safe-area-inset-top)) 0 max(1.5rem, env(safe-area-inset-bottom));
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.5rem;
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    margin-top: 2.25rem;
    border-top: 1px solid var(--line);
  }

  .mobile-nav-links > a,
  .mobile-nav-agents > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.25rem;
    padding: 0;
    border-bottom: 1px solid var(--line);
    color: var(--quiet);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
  }

  .mobile-nav-links > a:hover,
  .mobile-nav-agents > summary:hover,
  .mobile-nav-links > a:focus-visible,
  .mobile-nav-agents > summary:focus-visible,
  .mobile-nav-links > a[aria-current="page"],
  .mobile-nav-agents > summary[aria-current="page"] {
    color: var(--ink);
  }

  .mobile-nav-agents > summary {
    list-style: none;
    cursor: pointer;
  }

  .mobile-nav-agents > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav-agents > summary svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.15s ease;
  }

  .mobile-nav-agents[open] > summary svg {
    transform: rotate(180deg);
  }

  .mobile-nav-agents-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 1rem;
    padding: 0.8rem 0 1rem;
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav-agents-list a {
    padding: 0.55rem 0;
    color: var(--quiet);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
  }

  .mobile-nav-agents-list a:hover,
  .mobile-nav-agents-list a:focus-visible,
  .mobile-nav-agents-list a[aria-current="page"] {
    color: var(--ink);
  }

  .mobile-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: auto;
    padding-top: 2rem;
  }

  .mobile-nav-actions > a:not(.btn) {
    min-height: 2.75rem;
    padding: 0.55rem 0.25rem;
    color: var(--quiet);
    font-size: 1rem;
    font-weight: 550;
    text-decoration: none;
  }

  .mobile-nav-actions .btn {
    margin-left: auto;
  }

  .mobile-nav-actions .aft-auth-btn {
    width: 2.75rem;
    height: 2.75rem;
  }

  .mobile-nav-actions .aft-auth-menu {
    top: auto;
    right: auto;
    bottom: calc(100% + 0.4rem);
    left: 0;
  }

  body.mobile-nav-open .aft-sum-btn,
  body.mobile-nav-open .aft-sum-pop,
  body.mobile-nav-open .aft-fb-btn,
  body.mobile-nav-open .aft-fb-dock {
    display: none !important;
  }

  @keyframes mobile-nav-in {
    from {
      opacity: 0;
      transform: translateY(-0.4rem);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .mobile-nav-drawer {
    animation: none;
  }

  .mobile-nav-agents > summary svg {
    transition: none;
  }
}

@media (max-width: 560px) {
  :root {
    --page-gutter: 3rem;
  }

  .docs-top,
  .seo-top,
  .lifecycle,
  .ways,
  .trust,
  .try,
  .docs-hero,
  .seo-hero,
  .docs-layout,
  .sections,
  .agent-bridge {
    width: min(calc(100% - var(--page-gutter)), var(--page));
  }

  .hero-frame {
    padding: 2rem 0 2.5rem;
  }

  .hero-title {
    max-width: 14ch;
    margin: 0 auto 1rem;
    font-size: clamp(2.1rem, 10.25vw, 2.5rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    overflow-wrap: break-word;
  }

  .hero .support {
    max-width: 32ch;
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-launch {
    margin-top: 1.5rem;
  }

  .hero-install {
    font-size: 0.875rem;
  }

  .hero-launch {
    padding: 0.4rem;
  }

  .hero-launch .hero-install {
    gap: 0.4rem;
    padding: 0.25rem 0.25rem 0.25rem 0.75rem;
    font-size: 0.75rem;
  }

  .hero-launch .hero-demo-ps {
    display: none;
  }

  .hero-launch .hero-install-copy {
    width: 2rem;
  }

  .hero-cli-url {
    font-size: 0.75rem;
  }

  .ready .cta {
    flex-direction: column;
    align-items: stretch;
    max-width: 18rem;
    margin-inline: auto;
  }

  .hero-demo {
    min-height: 0;
  }

  .hero-demo-code {
    padding: 1.1rem 1rem 1.25rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .proof-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .proof-strip li {
    grid-column: auto;
    border-right: 1px solid var(--line);
    border-top: none;
  }

  .proof-strip li:nth-child(3n) {
    border-right: none;
  }

  .proof-strip li:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .topnav-links a:not(.topnav-cta):not(.topnav-account):not([data-aft-auth="login"]),
  .topnav-links .nav-mega{
    display: none;
  }

  .topnav.aft-signed-in .aft-auth-wrap {
    display: inline-flex;
  }

  .waitlist {
    padding: 1.25rem;
  }

  .waitlist-fields {
    flex-direction: column;
  }

  .footer-top {
    flex-direction: column;
  }
}


/* —— Proof strip links —— */
.proof-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0.85rem 0.35rem;
  color: inherit;
  text-decoration: none;
}

.proof-strip a:hover {
  color: var(--ink);
}

.proof-strip a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

/* —— With-agent pages —— */
.with-hero {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.5rem 0 2rem;
}

.with-hero .eyebrow {
  margin-bottom: 0.75rem;
}

.with-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.with-hero .lede {
  margin: 0;
  max-width: 42ch;
  color: var(--quiet);
  font-size: 1.05rem;
  line-height: 1.55;
}

.with-body {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto 4rem;
}

.with-body > section { margin-top: 3.5rem; }

.with-steps {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: with-step;
}

.with-steps li {
  position: relative;
  padding: 1.25rem 0 1.25rem 3rem;
  border-top: 1px solid var(--line);
  counter-increment: with-step;
}

.with-steps li::before {
  content: counter(with-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.with-steps h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.with-steps p {
  margin: 0 0 0.85rem;
  color: var(--quiet);
  font-size: 1rem;
  line-height: 1.5;
}

.with-steps p:last-child {
  margin-bottom: 0;
}

.copy-block {
  position: relative;
  margin: 0.75rem 0 0;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
  overflow: hidden;
}

.copy-block pre {
  margin: 0;
  padding: 1rem 1.1rem;
  padding-right: 5.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre;
}

.copy-block .copy-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-block .copy-btn:hover {
  border-color: var(--line-bright);
}

.copy-block .copy-btn[data-state="ok"] {
  border-color: color-mix(in srgb, var(--good) 50%, var(--line));
  color: var(--good);
}

.with-note {
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--quiet);
  font-size: 0.875rem;
  line-height: 1.5;
}

.with-note a {
  color: var(--ink);
}

.with-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.compare-more {
  margin: 1.5rem 0 0;
  text-align: center;
  color: var(--quiet);
  font-size: 0.875rem;
}

.compare-more a {
  color: var(--ink);
}

.vs-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .vs-cols {
    grid-template-columns: 1fr;
  }
}

.vs-col {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.vs-col h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.vs-col ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
  color: var(--quiet);
  font-size: 0.875rem;
  line-height: 1.5;
}

.vs-col code {
  font-family: "Geist Mono Variable", monospace;
  font-size: 0.875em;
}

.with-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.with-switch a {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--quiet);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.with-switch a:hover,
.with-switch a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--line-bright);
}

/* ── /drop — CF Drop–shaped: zone is the product ─────── */

.drop-page {
  min-height: 100dvh;
  background: var(--void);
}

.drop-page .site,
.drop-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.drop-bar-shell {
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  background: var(--void);
}

.drop-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: min(var(--page), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 3vw, 2.25rem);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 0;
  flex-shrink: 0;
}

.drop-bar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-self: start;
  min-width: 0;
}

.drop-bar-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.drop-back {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.875rem;
  color: var(--quiet);
  text-decoration: none;
}

.drop-back:hover {
  color: var(--ink);
}

.drop-bar-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.drop-bar-brand span {
  color: var(--good);
}

.drop-bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}

.drop-bar-link,
.drop-bar a[data-aft-auth="login"] {
  font-size: 0.875rem;
  color: var(--quiet);
  text-decoration: none;
}

.drop-bar-link:hover,
.drop-bar a[data-aft-auth="login"]:hover {
  color: var(--ink);
}

.drop-stage {
  flex: 1;
  display: flex;
  align-items: stretch;
  padding: 0 0.85rem 0.85rem;
  min-height: 0;
}

.drop-surface {
  flex: 1;
  display: flex;
}

.drop-page .drop-surface {
  min-height: 0;
  flex-direction: column;
}

.drop-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.drop-zone-cover {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.drop-page .drop-zone {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: clamp(2rem, 6vw, 4rem) 1.5rem;
  text-align: center;
  cursor: pointer;
  border: 1px dashed var(--line-bright);
  border-radius: 0.5rem;
  background: var(--bg-inset);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.drop-page .drop-zone:hover,
.drop-page .drop-zone:focus-visible,
.drop-page .drop-zone.is-dragging {
  border-color: var(--ink);
  background: var(--panel);
}

.drop-page .drop-zone.is-error {
  border-color: var(--danger);
}

.drop-page .drop-zone:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.drop-zone-mark {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1.35rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--panel);
}

.drop-zone-idle,
.drop-zone-status,
.drop-zone-result {
  position: relative;
  z-index: 1;
}

.drop-zone-idle {
  pointer-events: none;
}

.drop-zone-idle h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.drop-zone-lede {
  margin: 0.75rem auto 0;
  max-width: 28rem;
  color: var(--quiet);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
}

.drop-zone-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.35rem 0 0;
  pointer-events: auto;
}

.drop-zone-lede code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--ink);
}

.drop-pick {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.drop-pick:hover {
  color: #fff;
}

/* A keyboard shortcut means nothing on a phone; the paste link still works there. */
@media (pointer: coarse) {
  .drop-key { display: none; }
}

.drop-zone-note {
  margin: 0.85rem auto 0;
  max-width: 28rem;
  font-size: 0.875rem;
  color: var(--faint);
  line-height: 1.45;
  pointer-events: auto;
}

.drop-foot {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--faint);
  line-height: 1.45;
}

.drop-zone-status,
.drop-zone-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 28rem;
}

.drop-zone-idle[hidden],
.drop-zone-status[hidden],
.drop-zone-result[hidden],
.drop-page #paste-submit[hidden] {
  display: none !important;
}

.drop-live-label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--good);
}

.drop-live-label .t-success-check {
  color: var(--good);
  width: 1.1rem;
  height: 1.1rem;
}

.drop-live-label .t-success-check svg {
  width: 1.1rem;
  height: 1.1rem;
}

.drop-zone-result #paste-url {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--ink);
  word-break: break-all;
}

.drop-claim-hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--faint);
  line-height: 1.45;
}

.drop-progress-title,
.drop-ready-title {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.drop-file-state {
  margin-left: auto;
  color: var(--quiet);
  font-size: 0.875rem;
}

.drop-preview {
  width: min(100%, 40rem);
  height: min(50vh, 22rem);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #fff;
}

.claim-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.claim-row .btn {
  border-radius: 999px;
  min-width: 0;
}

@media (max-width: 640px) {
  .drop-bar {
    padding: 0.85rem 1.25rem;
  }

  .drop-bar-link[href="/run/"] {
    display: none;
  }
}

.faq {
  width: min(var(--page), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: 4.5rem clamp(1.25rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}

.ready {
  padding: clamp(3.25rem, 6vw, 5rem) clamp(1.25rem, 3vw, 2.25rem);
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.ready h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.ready > p {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--quiet);
}

.ready .cta {
  justify-content: center;
  margin-top: 1.5rem;
}

.faq-list {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-size: 1rem;
  font-weight: 550;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-item > summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--faint);
  transition: transform 0.15s ease, color 0.15s ease;
}

.faq-item[open] > summary::after {
  content: "–";
  color: var(--quiet);
}

.faq-item > summary:hover {
  background: var(--bg-inset);
}

.faq-item > p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
  max-width: 68ch;
  color: var(--quiet);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* —— Changelog (/changelog) — date rail + feed, Vercel-shaped —— */
.changelog {
  width: min(var(--page), calc(100% - var(--page-gutter) * 2));
  margin: 0 auto;
  padding: 1.5rem 0 5rem;
  flex: 1;
}

.changelog-hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.changelog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.5rem;
}

.changelog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.changelog-filters button {
  font: inherit;
  font-size: 0.875rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--quiet);
  cursor: pointer;
}

.changelog-filters button:hover {
  color: var(--ink);
  border-color: var(--line-bright);
}

.changelog-filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--cta-ink);
  border-color: var(--ink);
}

.changelog-md {
  font-size: 0.875rem;
  color: var(--quiet);
  text-decoration: none;
}

.changelog-md:hover {
  color: var(--ink);
  text-decoration: underline;
}

.changelog-controls,
.changelog-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.changelog-controls input,
.changelog-controls select {
  font: inherit;
  font-size: 0.875rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.changelog-controls input { width: 13rem; max-width: 100%; }
.changelog-controls input:focus,
.changelog-controls select:focus { outline: 1px solid var(--ink); outline-offset: -1px; }

.changelog-feed-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--quiet);
  text-decoration: none;
}

.changelog-feed-link svg { width: 0.85rem; height: 0.85rem; }
.changelog-feed-link:hover { color: var(--ink); }

.changelog-summary {
  margin: 1.5rem 0 0;
  color: var(--quiet);
  font-size: 0.875rem;
}

.changelog-status {
  margin: 2rem 0 0;
  color: var(--quiet);
  font-size: 1rem;
}

.changelog-day {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 2rem 2.5rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}

.changelog-date {
  position: sticky;
  top: 5.5rem;
  align-self: start;
}

.changelog-date-full {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.changelog-date-short {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.875rem;
  color: var(--faint);
}

.changelog-items article + article {
  margin-top: 1.85rem;
}

.changelog-items h2 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.changelog-items h2 a {
  color: var(--ink);
  text-decoration: none;
}

.changelog-items h2 a:hover {
  text-decoration: underline;
}

.changelog-items p {
  margin: 0;
  max-width: 62ch;
  color: var(--quiet);
  font-size: 1rem;
  line-height: 1.6;
}

.changelog-items p a {
  color: var(--ink);
  text-decoration: none;
}

.changelog-items p a:hover {
  text-decoration: underline;
}

.changelog-items code {
  font-size: 0.875em;
  color: var(--ink);
}

@media (max-width: 720px) {
  .changelog-day {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1.75rem 0;
  }

  .changelog-date {
    position: static;
  }
}

h1,
h2,
h3 { text-wrap: balance; }
a,
button { touch-action: manipulation; }

/* Your recent drops (recent-drops.js): unclaimed links from this browser. */
.recent-drops {
  max-width: 44rem;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

.recent-drops-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.recent-drops-note {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.875rem;
  color: var(--quiet);
}

.recent-drops-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.recent-drops-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.recent-drops-list li > a:first-child {
  font-family: var(--font-mono, monospace);
  font-size: 0.875rem;
}

.recent-drops-when {
  margin-right: auto;
  font-size: 0.875rem;
  color: var(--faint);
}

.drop-stage:has(.recent-drops:not([hidden])) {
  flex-direction: column;
}

.drop-stage .recent-drops {
  flex: none;
  width: 100%;
  margin-bottom: 1rem;
}

/* —— Compare plans: one table under the three cards (as FastAPI Cloud does). —— */
.compare-plans {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.compare-plans caption {
  text-align: left;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
}

.compare-plans th,
.compare-plans td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.compare-plans th[scope="row"],
.compare-plans thead th:first-child {
  text-align: left;
  font-weight: 400;
  color: var(--quiet);
}

.compare-plans thead th {
  font-weight: 600;
}

.compare-plans .cmp-no {
  color: var(--faint);
}

.pricing-more {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--quiet);
}

@media (max-width: 640px) {
  .compare-plans th,
  .compare-plans td {
    padding: 0.55rem 0.4rem;
    font-size: 0.875rem;
  }
}
