/* Self-hosted Inter + JetBrains Mono (latin) — avoid Google Fonts gstatic 404s */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
}

/* Obsidian Flux tokens — mirrored from packages/app/src/styles.css */

:root {
  color-scheme: light;
  --background: #f4f8fc;
  --foreground: #00012f;
  --card: #ffffff;
  --card-foreground: #00012f;
  --popover: #eef4fa;
  --popover-foreground: #00012f;
  --primary: #007ab8;
  --primary-foreground: #ffffff;
  --secondary: #0d9488;
  --secondary-foreground: #ffffff;
  --muted: #eef4fa;
  --muted-foreground: #4a5d78;
  --accent: #e2ebf5;
  --accent-foreground: #00012f;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --border: #d5e0ec;
  --input: #d5e0ec;
  --ring: #00a9f9;
  --role-stt: #0891b2;
  --role-llm: #4f46e5;
  --role-tts: #0d9488;
  --role-tool: #d97706;
  --role-pipeline: #64748b;
  --role-router: #7c3aed;
  --glow: rgb(0 169 249 / 0.14);
  --glow-deep: rgb(0 1 47 / 0.06);
  --shadow: 0 12px 40px rgb(0 1 47 / 0.08);
  --shadow-lg: 0 24px 64px rgb(0 1 47 / 0.12);
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 72rem;
  --nav-h: 4rem;
  --debugger-bg: #0a1220;
  --debugger-fg: #e8eef8;
  --debugger-muted: #8fa3bc;
  --debugger-border: #1e2d44;
}

.dark {
  color-scheme: dark;
  --background: #060b16;
  --foreground: #e8eef8;
  --card: #0c1424;
  --card-foreground: #e8eef8;
  --popover: #121c30;
  --popover-foreground: #e8eef8;
  --primary: #3db8f5;
  --primary-foreground: #001528;
  --secondary: #2dd4bf;
  --secondary-foreground: #003824;
  --muted: #1a2438;
  --muted-foreground: #a8b8d0;
  --accent: #1a2438;
  --accent-foreground: #e8eef8;
  --destructive: #ffb4ab;
  --destructive-foreground: #690005;
  --border: #243044;
  --input: #334560;
  --ring: #00a9f9;
  --role-stt: #22d3ee;
  --role-llm: #a5b4fc;
  --role-tts: #2dd4bf;
  --role-tool: #fbbf24;
  --role-pipeline: #94a3b8;
  --role-router: #c4b5fd;
  --glow: rgb(0 169 249 / 0.2);
  --glow-deep: rgb(0 169 249 / 0.08);
  --shadow: 0 16px 48px rgb(0 0 0 / 0.35);
  --shadow-lg: 0 28px 72px rgb(0 0 0 / 0.45);
  --debugger-bg: #080e1a;
  --debugger-fg: #e8eef8;
  --debugger-muted: #a8b8d0;
  --debugger-border: #243044;
}

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

html {
  scroll-behavior: smooth;
}

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

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

  .reveal,
  .reveal-hero {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--primary);
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--muted);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand img {
  border-radius: 6px;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.nav-links a:hover {
  color: var(--foreground);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-text-link {
  color: var(--muted-foreground);
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.35rem 0.4rem;
}

.nav-text-link:hover {
  color: var(--foreground);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0;
}

.icon-link:hover {
  color: var(--foreground);
  border-color: var(--primary);
}

.icon-link svg {
  width: 1.05rem;
  height: 1.05rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  padding: 0;
}

.nav-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0.125rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: color-mix(in srgb, var(--muted) 50%, transparent);
}

.theme-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.theme-toggle button:hover {
  color: var(--foreground);
}

/* Prefer html[data-theme] so the active option is correct before deferred JS. */
html[data-theme="light"] .theme-toggle [data-theme-value="light"],
html[data-theme="dark"] .theme-toggle [data-theme-value="dark"],
html[data-theme="system"] .theme-toggle [data-theme-value="system"],
.theme-toggle button.is-active {
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: 0 1px 2px rgb(0 1 47 / 0.06);
}

html[data-theme="light"] .theme-toggle [data-theme-value="light"] .icon-sun,
html[data-theme="dark"] .theme-toggle [data-theme-value="dark"] .icon-moon,
.theme-toggle button.is-active .icon-sun,
.theme-toggle button.is-active .icon-moon {
  fill: currentColor;
}

.theme-toggle svg {
  width: 0.875rem;
  height: 0.875rem;
  display: block;
}

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  padding: 1rem 0 1.25rem;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.mobile-nav li + li {
  margin-top: 0.65rem;
}

.mobile-nav a {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.mobile-nav .btn {
  width: 100%;
  justify-content: center;
}

/* Homepage below desktop nav: brand + theme + hamburger only; CTAs live in drawer + hero.
   Legal pages have no hamburger — keep Sign in; waitlist CTA hides at ≤560px. */
@media (max-width: 899px) {
  body:not(:has(.legal-page)) .nav-actions .btn,
  body:not(:has(.legal-page)) .nav-actions .nav-text-link,
  body:not(:has(.legal-page)) .nav-actions .icon-link {
    display: none;
  }
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav,
  .mobile-nav.open {
    display: none;
  }
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.15s ease;
}

.btn:hover {
  color: inherit;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.825rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  filter: brightness(1.06);
  color: var(--primary-foreground);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

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

/* ——— Typography helpers ——— */

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

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

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

.section-head h2,
.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-lead {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1.05rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-primary {
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--primary);
}

/* ——— Hero ——— */

.hero {
  position: relative;
  padding: 1.75rem 0 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, var(--glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 30%, var(--glow-deep), transparent 50%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--primary) 4%, transparent) 0%,
      transparent 40%
    );
  z-index: 0;
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, black, transparent);
  -webkit-mask-image: radial-gradient(
    ellipse 70% 55% at 50% 20%,
    black,
    transparent
  );
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-bottom: 2.5rem;
}

.hero-teaser {
  padding: 4rem 0 2rem;
}

.hero-single {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
  padding: 3rem 1rem 3.5rem;
}

.hero-single .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-single h1 {
  max-width: 16ch;
}

.hero-single .hero-sub {
  max-width: 36rem;
  margin-inline: auto;
}

.hero-single .hero-ctas {
  justify-content: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 5.5vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 14ch;
}

.hero-sub {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  line-height: 1.65;
}

.hero-gloss {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  max-width: 36rem;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-note a {
  color: var(--primary);
  font-weight: 500;
}

@media (min-width: 980px) {
  .hero {
    padding: 0;
    min-height: calc(100svh - var(--nav-h));
    justify-content: center;
  }

  .hero > .container.hero-grid {
    width: min(100% - 1.5rem, 80rem);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.28fr);
    gap: 2rem;
    padding-bottom: 3.5rem;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 4.2vw, 3.85rem);
  }
}

/* ——— Hero product shot (real app screenshot) ——— */

.hero-shot {
  border: 1px solid var(--debugger-border);
  border-radius: var(--radius-xl);
  background: var(--debugger-bg);
  color: var(--debugger-fg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
}

.shot-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--debugger-border);
  background: color-mix(in srgb, var(--debugger-bg) 80%, #000);
}

.debugger-dots {
  display: flex;
  gap: 0.35rem;
}

.debugger-dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #334560;
}

.debugger-dots span:nth-child(1) {
  background: #ff5f57;
}

.debugger-dots span:nth-child(2) {
  background: #febc2e;
}

.debugger-dots span:nth-child(3) {
  background: #28c840;
}

.debugger-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--debugger-muted);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-shot-frame {
  border: 1px solid var(--debugger-border);
  border-radius: var(--radius-xl);
  background: var(--debugger-bg);
  overflow: hidden;
  box-shadow: var(--shadow-lg, 0 18px 50px rgba(0, 1, 47, 0.18));
}

.hero-shot-media {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.product-shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Crop dense product shots on narrow viewports — keep left/top (timeline + error) readable */
@media (max-width: 979px) {
  .hero-shot-media,
  .feature-row-media .product-shot-frame {
    height: 16rem;
  }

  .hero-shot-media img,
  .feature-row-media .product-shot-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
  }
}

@media (min-width: 560px) and (max-width: 979px) {
  .hero-shot-media,
  .feature-row-media .product-shot-frame {
    height: 22rem;
  }
}

/* Motion: hero */

.reveal-hero {
  opacity: 0;
  transform: translateY(14px);
}

.has-motion .reveal-hero.visible {
  animation: hero-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--hero-i, 0) * 70ms);
}

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

/* ——— Sections ——— */

.section {
  padding: 5rem 0;
}

@media (max-width: 799px) {
  .section {
    padding: 3.25rem 0;
  }
}

.section-tight {
  padding: 1.5rem 0;
}

.strip {
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 55%, transparent);
}

.strip-inner {
  text-align: center;
}

.strip-inner p {
  margin: 0;
  font-size: 0.975rem;
  color: var(--muted-foreground);
  max-width: 44rem;
  margin-inline: auto;
}

.strip-inner strong {
  color: var(--foreground);
}

/* Pains */

.pain-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 800px) {
  .pain-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.pain-item {
  padding-top: 0.25rem;
  border-top: 2px solid var(--primary);
}

.pain-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.pain-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.pain-item p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.pillars-head {
  margin-top: 1rem;
}

/* Feature rows (Goals / Graph + screenshots) */

.feature-row {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin-top: 2.5rem;
}

.feature-row-copy .pill {
  margin-bottom: 0.85rem;
}

.feature-row-copy h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.feature-row-copy p {
  margin: 0;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.feature-row-media {
  min-width: 0;
}

@media (min-width: 980px) {
  .feature-row {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    margin-top: 3.25rem;
  }

  .feature-row--flip .feature-row-copy {
    order: 2;
  }

  .feature-row--flip .feature-row-media {
    order: 1;
  }
}

.trust-strip {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 2.75rem;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--card) 70%, transparent);
}

.trust-strip-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.trust-strip-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.trust-strip-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

@media (min-width: 800px) {
  .trust-strip {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
  }
}

/* Failure story */

.story-section {
  padding-block: 3.5rem;
  background:
    radial-gradient(ellipse 50% 80% at 50% 50%, var(--glow), transparent 70%),
    color-mix(in srgb, var(--muted) 40%, transparent);
  border-block: 1px solid var(--border);
}

.story-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .story-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: start;
  }
}

.failure-story {
  margin: 0 auto;
  max-width: 42rem;
  text-align: center;
  border: none;
  padding: 0;
}

.failure-story p {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.failure-story--compact {
  margin: 0;
  max-width: none;
  text-align: left;
}

.failure-story--compact p {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.failure-story footer {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* Audience */

.audience-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .audience-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (min-width: 1100px) {
  .audience-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.audience {
  padding: 0;
}

.audience h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.audience a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.audience > p {
  margin: 0 0 1rem;
  color: var(--muted-foreground);
}

.audience ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.45rem;
  font-size: 0.925rem;
  color: var(--muted-foreground);
}

.audience li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--primary);
}

/* How it works */

.adopt-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .adopt-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

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

.steps li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 1.75rem;
  padding-top: 0.15rem;
}

.steps strong {
  display: block;
  margin-bottom: 0.2rem;
}

.steps span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.code-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--debugger-bg);
  color: var(--debugger-fg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.code-block-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--debugger-border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--debugger-muted);
}

.code-block pre {
  margin: 0;
  padding: 1.15rem 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

/* Reset global `code` chip styles — they paint light muted bg in light mode */
.code-block code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
}

.code-comment {
  color: #8b9cb3;
}

.code-kw {
  color: #c4b5fd;
}

.code-fn {
  color: #3db8f5;
}

/* Why / compare */

.claim {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted-foreground);
}

.claim em {
  font-style: normal;
  color: var(--foreground);
  font-weight: 600;
}

.compare-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .compare-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.compare {
  padding: 1.35rem 1.2rem;
  border-top: 2px solid var(--border);
}

.compare .vs {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.compare h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.compare p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

/* Trust / bridge */

/* Trust */

.trust-list {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 900px) {
  .trust-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1.75rem;
  }
}

.trust-item {
  display: flex;
  gap: 1rem;
}

.trust-item .icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--primary);
}

.trust-item .icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.trust-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.trust-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

/* Pricing */

.pricing-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 800px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.2rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--card) 85%, transparent);
  position: relative;
}

.price-card.featured {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  background: color-mix(in srgb, var(--primary) 6%, var(--card));
  box-shadow: var(--shadow);
}

.price-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.price-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.price-amount {
  margin: 0 0 0.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.price-amount span {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-amount small {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.price-meta {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--muted-foreground);
  line-height: 1.4;
}

.price-card ul {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-card li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  border-top: 1px solid var(--border);
}

.price-card li:first-child {
  border-top: none;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--secondary);
}

.price-card .btn {
  width: 100%;
  justify-content: center;
}

.price-enterprise {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1rem;
  padding: 1.35rem 1.4rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--muted) 50%, transparent);
}

.price-enterprise h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.price-enterprise p {
  margin: 0;
  max-width: 44rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.pricing-footnote {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  max-width: 40rem;
  margin-inline: auto;
}

/* Roadmap arc */

.arc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0.25rem 0 1.25rem;
}

.arc-step {
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  min-width: 7.5rem;
}

.arc-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.arc-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: var(--muted-foreground);
}

.arc-step.done {
  border-color: color-mix(in srgb, var(--secondary) 45%, var(--border));
  background: color-mix(in srgb, var(--secondary) 10%, var(--card));
}

.arc-step.next {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.arc-step.future {
  border-style: dashed;
  opacity: 0.9;
}

.arc-connector {
  width: 1.75rem;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.roadmap-now {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.roadmap-now strong {
  display: inline;
  margin-right: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground);
}

.roadmap-footnote {
  margin: 0;
  max-width: 40rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

/* CTA band */

.cta-band {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, var(--glow), transparent 65%),
    var(--background);
  border-top: 1px solid var(--border);
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: var(--muted-foreground);
}

.cta-band .hero-ctas {
  justify-content: center;
}

/* Legal pages */

.legal-page {
  padding: calc(var(--nav-h) + 2.5rem) 0 4rem;
}

.legal-inner {
  max-width: 44rem;
}

.legal-inner h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.legal-effective {
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.legal-inner h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.legal-inner h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
}

.legal-inner p,
.legal-inner li {
  color: var(--muted-foreground);
  line-height: 1.65;
  font-size: 0.95rem;
}

.legal-inner p {
  margin: 0 0 1rem;
}

.legal-inner ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-inner li {
  margin-bottom: 0.35rem;
}

.legal-inner a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-callout {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--primary) 8%, var(--card));
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--foreground);
}

.legal-callout strong {
  display: block;
  margin-bottom: 0.35rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-github {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-github svg {
  width: 1rem;
  height: 1rem;
}

.footer-copy {
  margin: 0 0 0 auto;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

@media (max-width: 560px) {
  .footer-copy {
    margin-left: 0;
    width: 100%;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  /* Legal pages have no hamburger — hide waitlist CTA; keep Sign in */
  body:has(.legal-page) .nav-actions .btn-primary {
    display: none;
  }
}

/* ——— Scroll reveals ——— */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}
