/* ============================================================
   FlowPilot — landing page
   Design system: STEEP-DESIGN.md ("serif analytics on warm paper")
   - 97% achromatic: paper white canvas, fog bands, mist cards
   - One rare peach accent card per page
   - Signifier serif (Newsreader substitute) at 400 only
   - Sohne sans (Inter substitute) with half-step weights
   - Flat 24px cards, 9999px pill buttons, hairline borders
   - Only floating product artifacts carry shadow
   ============================================================ */

:root {
  /* Colors */
  --color-ink-black: #17191c;
  --color-paper-white: #ffffff;
  --color-mist-gray: #f2f2f3;
  --color-fog-white: #fafafb;
  --color-slate-gray: #777b86;
  --color-ash-gray: #979799;
  --color-smoke-gray: #a3a6af;
  --color-blush-peach: #fbe1d1;
  --color-sienna-brown: #5d2a1a;
  --color-line: #ececec;
  --color-blue: #1d5bdf; /* brand mark only */

  /* Typography */
  --font-signifier: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sohne: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-caption: 15px;
  --leading-caption: 1.5;
  --text-body: 17px;
  --leading-body: 1.35;
  --text-body-lg: 20px;
  --leading-body-lg: 1.35;
  --text-subheading: 22px;
  --leading-subheading: 1.5;
  --text-heading-sm: 26px;
  --leading-heading-sm: 1.18;
  --tracking-heading-sm: -0.23px;
  --text-heading: 44px;
  --leading-heading: 1.3;
  --tracking-heading: -0.66px;
  --text-heading-lg: 64px;
  --leading-heading-lg: 1.3;
  --tracking-heading-lg: -0.96px;
  --text-display: 90px;
  --leading-display: 1.3;
  --tracking-display: -2.25px;

  --font-weight-regular: 400;
  --font-weight-w430: 430;
  --font-weight-w450: 450;
  --font-weight-w480: 480;
  --font-weight-medium: 500;

  /* Spacing */
  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-28: 28px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-64: 64px;
  --spacing-80: 80px;
  --spacing-96: 96px;
  --spacing-124: 124px;
  --spacing-128: 128px;
  --spacing-160: 160px;

  /* Layout */
  --page-max-width: 1200px;
  --section-gap: 80px;
  --card-padding: 20px;
  --element-gap: 8px;
  --gutter: 32px;

  /* Radii */
  --radius-cards: 24px;
  --radius-images: 12px;
  --radius-inputs: 16px;
  --radius-buttons: 9999px;
  --radius-smallcards: 16px;
  --radius-elevatedcards: 20px;

  /* Elevation — floating product artifacts only */
  --shadow-artifact: 0 0 0 1px rgba(4, 23, 43, 0.05),
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sohne);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-weight: var(--font-weight-regular);
  color: var(--color-ink-black);
  background: var(--color-paper-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--color-blush-peach);
  color: var(--color-sienna-brown);
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: var(--section-gap) 0;
}

/* Clip at the main content boundary: the collage cards fly from the hero
   into the demo window (both inside <main>), but their large transforms
   must not extend the page's scrollable area past the footer (which read
   as "infinite scroll" at the bottom). `clip` avoids creating a scroll
   container the way `hidden` would. */
main {
  overflow: clip;
}

/* ---------- Type ---------- */
h1,
h2,
h3 {
  font-family: var(--font-signifier);
  font-weight: 400;
  color: var(--color-ink-black);
}

h1 {
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}

h2 {
  font-size: var(--text-heading-lg);
  line-height: var(--leading-heading-lg);
  letter-spacing: var(--tracking-heading-lg);
}

h3 {
  font-size: var(--text-heading-sm);
  line-height: var(--leading-heading-sm);
  letter-spacing: var(--tracking-heading-sm);
}

h1 em,
h2 em {
  font-style: italic;
}

/* Hero emphasis — "seconds, not days" gets a marker-highlight sweep so the
   key phrase reads at a glance, not just as a faint italic. */
h1 .line em {
  font-style: italic;
  color: var(--color-ink-black);
  position: relative;
  white-space: nowrap;
  z-index: 0;
}

h1 .line em::before {
  content: "";
  position: absolute;
  left: -0.12em;
  right: -0.12em;
  top: 0.42em;
  bottom: -0.02em;
  background: var(--color-mist-gray);
  border-radius: 4px;
  z-index: -1;
  transform: skewX(-6deg) scaleX(0);
  transform-origin: left center;
  /* Sweeps in after the headline lines have risen (lines finish ~1.2s). */
  animation: highlightSweep 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.15s forwards;
}

@keyframes highlightSweep {
  to {
    transform: skewX(-6deg) scaleX(1);
  }
}

.lead {
  font-size: var(--text-body-lg);
  line-height: var(--leading-body-lg);
  color: var(--color-slate-gray);
  max-width: 560px;
}

.eyebrow {
  display: inline-block;
  font-size: var(--text-caption);
  font-weight: var(--font-weight-w450);
  letter-spacing: 0.02em;
  color: var(--color-ash-gray);
  margin-bottom: var(--spacing-20);
}

/* Early-access eyebrow stands out in solid ink black. */
.access-eyebrow {
  color: var(--color-ink-black);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--spacing-64);
}

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

.section-head h2 {
  margin-bottom: var(--spacing-20);
}

.section-lead {
  font-size: var(--text-body-lg);
  line-height: var(--leading-body-lg);
  color: var(--color-slate-gray);
}

.section-head.center .section-lead {
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Buttons — pill pair ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-8);
  height: 48px;
  padding: 0 var(--spacing-20);
  border-radius: var(--radius-buttons);
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--color-ink-black);
  color: var(--color-paper-white);
  border: 1px solid var(--color-ink-black);
}

.btn-primary:hover {
  background: #000;
  border-color: #000;
}

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

.btn-ghost:hover {
  background: var(--color-ink-black);
  color: var(--color-paper-white);
}

.btn-arrow {
  transition: transform 0.15s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-block {
  width: 100%;
  height: 52px;
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--color-ink-black);
  border-bottom: 1px solid var(--color-ink-black);
  font-size: var(--text-caption);
  color: #ffffff;
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-16);
  min-height: 44px;
  position: relative;
  padding-top: var(--spacing-8);
  padding-bottom: var(--spacing-8);
}

.announce-text {
  text-align: center;
}

.announce-pill {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-w450);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-buttons);
  padding: 4px var(--spacing-16);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.announce-pill:hover {
  background: #ffffff;
  color: var(--color-ink-black);
}

.announce-close {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  padding: var(--spacing-4);
}

.announce-close:hover {
  color: #ffffff;
}

.announce.dismissed {
  display: none;
}

/* ---------- Nav — whisper-quiet, transparent ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav.scrolled {
  border-bottom: 1px solid var(--color-line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-32);
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-12);
}

.brand-mark {
  width: 28px;
  height: 28px;
}

.brand-name {
  font-size: 17px;
  font-weight: var(--font-weight-w480);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-32);
}

.nav-links a {
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  color: var(--color-ink-black);
  padding: 2px 0;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.25s ease;
}

.nav-links a:hover {
  background-size: 100% 1px;
}

.nav-ctas {
  display: flex;
  align-items: center;
  gap: var(--spacing-20);
}

.nav-text {
  font-size: 16px;
  color: var(--color-ink-black);
  padding: 2px 0;
}

.nav-text:hover {
  color: var(--color-slate-gray);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 var(--spacing-16);
  border-radius: var(--radius-buttons);
  background: var(--color-ink-black);
  color: var(--color-paper-white);
  font-size: 15px;
  transition: background-color 0.15s ease;
}

.nav-cta:hover {
  background: #000;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-ink-black);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ---------- Hero — centered display + floating artifact collage ----------
   The copy is centered on the canvas; the floating artifacts are absolutely
   positioned in the side gutters so they frame the headline without covering
   the text or buttons (the "text-and-UI collage" pattern). */
/* No overflow:hidden here — the collage must be able to travel PAST the
   hero's bottom edge and land on top of the demo window below. */
.hero {
  position: relative;
  padding: var(--spacing-96) 0 var(--spacing-128);
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-copy .lead {
  margin: var(--spacing-24) auto 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-12);
  margin-top: var(--spacing-40);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-8) var(--spacing-24);
  margin-top: var(--spacing-40);
  font-size: var(--text-caption);
  color: var(--color-ash-gray);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
}

.hero-trust li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-smoke-gray);
}

/* Peach glow behind the headline — the warm editorial wash */
.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  /* .hero no longer clips (overflow:hidden removed for the collage flight),
     so cap the glow at the hero's own width to avoid horizontal scroll. */
  width: min(900px, 100%);
  height: 620px;
  background: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    rgba(251, 225, 209, 0.9) 0%,
    rgba(251, 225, 209, 0.45) 45%,
    rgba(251, 225, 209, 0) 72%
  );
  z-index: 0;
  pointer-events: none;
  animation: glowIn 1.4s ease both;
}

@keyframes glowIn {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/* Hero copy entrance — staggered fade-up, driven by --d */
.hero-anim {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Line-mask headline reveal — each line rises out of a clipped mask */
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.line {
  display: block;
  transform: translateY(110%);
  animation: lineUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.line-mask:nth-child(1) .line {
  animation-delay: 0.15s;
}

.line-mask:nth-child(2) .line {
  animation-delay: 0.3s;
}

@keyframes lineUp {
  to {
    transform: translateY(0);
  }
}

/* Floating product artifacts — the only elements with shadow.
   Absolutely positioned in the side gutters around the centered copy. */
/* z-index must stay ABOVE .demo-window (z-index: 2) so that once the cards
   converge they render ON TOP of the demo window, not behind it. */
.hero-collage {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* Cards are static inside their .slot wrappers — the slot owns placement
   (idle position in CSS, scroll-convergence transform from main.js). */
.artifact {
  background: var(--color-paper-white);
  border-radius: var(--radius-elevatedcards);
  box-shadow: var(--shadow-artifact);
  padding: var(--spacing-16) var(--spacing-20) var(--spacing-12);
  opacity: 0;
  animation: artifactIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Scroll convergence — each artifact lives in a slot anchored at its idle
   position. main.js translates the slots toward a cluster band above the
   demo window as you scroll, then fades them out (initCollage). */
.slot {
  position: absolute;
  will-change: transform, opacity;
}

.slot-table {
  top: 96px;
  left: 0;
}

.slot-stat {
  top: 40px;
  right: 0;
}

.slot-flow {
  bottom: 96px;
  left: 0;
}

.slot-composer {
  bottom: 40px;
  right: 0;
}

/* Source chips — small floating badges (Excel, Drive, Mail, Database) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-12);
  background: var(--color-paper-white);
  border-radius: var(--radius-buttons);
  box-shadow: var(--shadow-artifact);
  padding: 14px var(--spacing-20) 14px var(--spacing-16);
  opacity: 0;
  animation: artifactIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.chip svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.chip-label {
  font-size: 14px;
  font-weight: var(--font-weight-w450);
  color: var(--color-ink-black);
}

/* Excel sits below the table card (which ends ~297px) so nothing overlaps */
.slot-excel {
  top: 428px;
  left: 64px;
}

.slot-drive {
  top: 236px;
  right: 128px;
}

.slot-mail {
  bottom: 300px;
  left: 176px;
}

.slot-db {
  bottom: 248px;
  right: 96px;
}

.slot-excel .chip {
  animation-delay: 1.15s;
}

.slot-drive .chip {
  animation-delay: 1.25s;
}

.slot-mail .chip {
  animation-delay: 1.35s;
}

.slot-db .chip {
  animation-delay: 1.45s;
}

/* Staggered artifact entrance + gentle idle float */
@keyframes artifactIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Gentle continuous float so the collage feels alive */
.table-card {
  animation: artifactIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards,
    floatY 7s ease-in-out 1.6s infinite;
}

.stat-card {
  animation: artifactIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards,
    floatY 8s ease-in-out 1.8s infinite;
}

.flow-card {
  animation: artifactIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards,
    floatY 7.5s ease-in-out 2s infinite;
}

.composer {
  animation: artifactIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards,
    floatY 9s ease-in-out 2.2s infinite;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Avatar cursors — the "live interaction" motif */
.avatar-cursor {
  position: absolute;
  display: inline-flex;
  align-items: flex-start;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: var(--d, 1s);
  z-index: 3;
}

.ac-bubble {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--color-ink-black);
  box-shadow: 0 0 0 2px var(--color-paper-white), var(--shadow-artifact);
}

.ac-blue {
  background: #dbe7f6;
}

.ac-green {
  background: #dcead9;
}

.ac-pointer {
  width: 18px;
  height: 18px;
  margin: -4px 0 0 -6px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Hero cursor positions */
.ac-1 {
  top: 150px;
  right: 220px;
  animation: fadeUp 0.7s ease 1.1s forwards, drift1 9s ease-in-out 2s infinite;
}

.ac-2 {
  bottom: 150px;
  left: 200px;
  animation: fadeUp 0.7s ease 1.3s forwards, drift2 10s ease-in-out 2.4s infinite;
}

@keyframes drift1 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-14px, 12px);
  }
}

@keyframes drift2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(16px, -10px);
  }
}

/* Region table — top-left (positioned by .slot-table) */
.table-card {
  width: 280px;
  padding: var(--spacing-16);
}

.tc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-12);
}

.tc-title {
  font-size: 14px;
  font-weight: var(--font-weight-w450);
  letter-spacing: -0.01em;
}

.tc-badge {
  font-size: 12px;
  color: var(--color-ash-gray);
}

.tc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tc-table th {
  text-align: left;
  font-weight: var(--font-weight-w450);
  color: var(--color-ash-gray);
  font-size: 12px;
  padding: 0 var(--spacing-8) var(--spacing-8) 0;
}

.tc-table td {
  padding: 6px var(--spacing-8) 6px 0;
  border-top: 1px solid var(--color-line);
  color: var(--color-ink-black);
}

.tc-table td:first-child {
  font-weight: var(--font-weight-w450);
}

.flag-chip {
  color: var(--color-sienna-brown);
  font-weight: var(--font-weight-w450);
}

/* Stat card — top-right (positioned by .slot-stat) */
.stat-card {
  width: 230px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.sc-label {
  font-size: 14px;
  color: var(--color-slate-gray);
}

.sc-metric {
  font-size: var(--text-body-lg);
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.01em;
}

.sc-delta {
  font-size: 14px;
  color: var(--color-slate-gray);
}

.sc-chart {
  width: 100%;
  height: 56px;
  margin-top: var(--spacing-8);
}

/* Gestural chart line draws itself in */
.sc-chart .draw {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: drawLine 1.6s ease 1.2s forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* Workflow fragment — bottom-left (positioned by .slot-flow) */
.flow-card {
  width: 300px;
}

.fc-nodes {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  margin-bottom: var(--spacing-12);
}

.fc-node {
  font-size: 11px;
  font-weight: var(--font-weight-w450);
  letter-spacing: 0.04em;
  color: var(--color-slate-gray);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-smallcards);
  padding: 4px var(--spacing-12);
  background: var(--color-fog-white);
}

.fc-arrow {
  color: var(--color-smoke-gray);
  font-size: 13px;
}

.fc-line {
  font-size: 13px;
  color: var(--color-slate-gray);
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  padding: 4px 0;
}

.fc-check {
  color: var(--color-ink-black);
  font-weight: var(--font-weight-medium);
}

.fc-cs {
  color: var(--color-ash-gray);
}

/* AI composer — bottom-right (positioned by .slot-composer) */
.composer {
  width: 320px;
  padding: 0;
}

.composer-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
  padding: var(--spacing-12) var(--spacing-16);
}

.composer-ic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-ash-gray);
  flex-shrink: 0;
}

.composer-text {
  flex: 1;
  font-size: 15px;
  color: var(--color-smoke-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.composer-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-ink-black);
  color: var(--color-paper-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ---------- Live demo — the floating product artifact ---------- */
.demo-section {
  /* Same rhythm as every other section — no extra top padding here. */
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

/* What-is block — concise factual product definition (users + AI crawlers) */
.what-is {
  max-width: 720px;
  margin: 0 auto var(--spacing-64);
  text-align: center;
}

.what-is h2 {
  margin-bottom: var(--spacing-20);
}

.what-is p {
  color: var(--color-slate-gray);
  line-height: 1.7;
  margin-bottom: var(--spacing-16);
}

.what-is code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--color-mist-gray);
  border-radius: 6px;
  padding: 2px 6px;
}

.demo-window {
  position: relative;
  z-index: 2;
  background: var(--color-paper-white);
  border-radius: var(--radius-elevatedcards);
  box-shadow: var(--shadow-artifact);
  overflow: hidden;
  max-width: 1040px;
  margin: 0 auto;
}

.dw-titlebar {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  padding: var(--spacing-12) var(--spacing-20);
  border-bottom: 1px solid var(--color-line);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-mist-gray);
}

.dot.red {
  background: #f0d3cc;
}

.dot.yellow {
  background: #f3e3c8;
}

.dot.green {
  background: #d8e4d4;
}

.dw-title {
  margin-left: var(--spacing-8);
  font-size: 13px;
  color: var(--color-ash-gray);
}

.dw-badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: var(--font-weight-w450);
  color: var(--color-slate-gray);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-buttons);
  padding: 2px var(--spacing-12);
}

.dw-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: 420px;
}

/* Chat column */
.dw-chat {
  padding: var(--spacing-24);
  border-right: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-24);
}

.dw-msg {
  display: flex;
  gap: var(--spacing-12);
  align-items: flex-start;
}

.dw-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-mist-gray);
  color: var(--color-slate-gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  flex-shrink: 0;
}

.dw-avatar svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.dw-bubble {
  background: var(--color-mist-gray);
  border-radius: var(--radius-smallcards);
  padding: var(--spacing-12) var(--spacing-16);
  max-width: 100%;
}

.dw-sender {
  display: block;
  font-size: 12px;
  font-weight: var(--font-weight-w450);
  color: var(--color-ash-gray);
  margin-bottom: 4px;
}

.dw-typed {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-ink-black);
  min-height: 45px;
}

.dw-cursor {
  display: inline-block;
  width: 2px;
  height: 15px;
  background: var(--color-ink-black);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.dw-status {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-slate-gray);
  min-height: 24px;
}

.dw-ellipsis::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-smoke-gray);
  margin-right: var(--spacing-8);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Canvas column */
.dw-canvas {
  position: relative;
  padding: var(--spacing-24);
  background: var(--color-fog-white);
  overflow: hidden;
}

.dw-dropzone {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-12);
  transition: opacity 0.4s ease;
}

.dw-logo {
  width: 56px;
  height: 56px;
}

.dw-logo svg {
  width: 100%;
  height: 100%;
}

.dw-dropzone-label {
  font-size: 14px;
  font-weight: var(--font-weight-w450);
  color: var(--color-ash-gray);
}

/* Files flying in */
.dw-file {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  background: var(--color-paper-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-smallcards);
  padding: 6px var(--spacing-12);
  font-size: 13px;
  font-weight: var(--font-weight-w450);
  color: var(--color-ink-black);
  box-shadow: var(--shadow-artifact);
  opacity: 0;
  pointer-events: none;
}

.dw-file svg {
  width: 16px;
  height: 16px;
}

.dw-file.f1 {
  top: 18%;
  left: 8%;
}

.dw-file.f2 {
  top: 34%;
  right: 6%;
}

.dw-file.f3 {
  bottom: 30%;
  left: 10%;
}

.dw-file.f4 {
  bottom: 16%;
  right: 12%;
}

/* Generated workflow */
.dw-flow {
  position: relative;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.dw-nodes .node rect {
  fill: var(--color-paper-white);
  stroke: var(--color-line);
  stroke-width: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transform-box: fill-box;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.dw-nodes .node text {
  opacity: 0;
  transition: opacity 0.4s ease 0.15s;
}

.node-tag {
  font-family: var(--font-sohne);
  font-size: 10px;
  font-weight: var(--font-weight-w450);
  letter-spacing: 0.06em;
  fill: var(--color-ash-gray);
}

.node-label {
  font-family: var(--font-sohne);
  font-size: 12px;
  font-weight: var(--font-weight-w450);
  fill: var(--color-ink-black);
}

.dw-edges .edge {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.5s ease;
}

.dw-arrows .arrow {
  opacity: 0;
  transition: opacity 0.3s ease 0.3s;
}

/* Results */
.dw-results {
  position: absolute;
  left: var(--spacing-24);
  right: var(--spacing-24);
  bottom: var(--spacing-24);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
}

/* Live collaborator cursor over the demo canvas */
.dw-cursor-ac {
  top: 24%;
  right: 18%;
  animation: fadeUp 0.7s ease 1.4s forwards, drift1 8s ease-in-out 2.4s infinite;
}

.dw-result {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  background: var(--color-paper-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-smallcards);
  padding: 8px var(--spacing-12);
  font-size: 13px;
  font-weight: var(--font-weight-w450);
  color: var(--color-ink-black);
  width: fit-content;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.dw-result .ok {
  color: var(--color-ink-black);
  font-weight: var(--font-weight-medium);
}

.dw-result .cs {
  color: var(--color-ash-gray);
}

/* ---- Demo stage machine ---- */
/* Stage 0: typing prompt */
/* Stage 1: files fly in */
.demo-window[data-stage="1"] .dw-file.f1 {
  animation: flyIn 0.7s ease forwards;
}

.demo-window[data-stage="1"] .dw-file.f2 {
  animation: flyIn 0.7s ease 0.25s forwards;
}

.demo-window[data-stage="1"] .dw-file.f3 {
  animation: flyIn 0.7s ease 0.5s forwards;
}

.demo-window[data-stage="1"] .dw-file.f4 {
  animation: flyIn 0.7s ease 0.75s forwards;
}

@keyframes flyIn {
  0% {
    opacity: 0;
    transform: translate(var(--fx, -40px), var(--fy, -40px)) scale(0.9);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

.demo-window[data-stage="1"] .dw-file.f1 {
  --fx: -60px;
  --fy: -60px;
}

.demo-window[data-stage="1"] .dw-file.f2 {
  --fx: 60px;
  --fy: -50px;
}

.demo-window[data-stage="1"] .dw-file.f3 {
  --fx: -50px;
  --fy: 50px;
}

.demo-window[data-stage="1"] .dw-file.f4 {
  --fx: 50px;
  --fy: 60px;
}

/* Stage 2: workflow builds */
.demo-window[data-stage="2"] .dw-dropzone,
.demo-window[data-stage="3"] .dw-dropzone {
  opacity: 0;
}

.demo-window[data-stage="2"] .dw-flow,
.demo-window[data-stage="3"] .dw-flow {
  opacity: 1;
}

.demo-window[data-stage="2"] .node.n1 rect,
.demo-window[data-stage="3"] .node.n1 rect {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.demo-window[data-stage="2"] .node.n1 text,
.demo-window[data-stage="3"] .node.n1 text {
  opacity: 1;
  transition-delay: 0.15s;
}

.demo-window[data-stage="2"] .node.n2 rect,
.demo-window[data-stage="3"] .node.n2 rect {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.demo-window[data-stage="2"] .node.n2 text,
.demo-window[data-stage="3"] .node.n2 text {
  opacity: 1;
  transition-delay: 0.5s;
}

.demo-window[data-stage="2"] .edge.e1 {
  stroke-dashoffset: 0;
  transition-delay: 0.55s;
}

.demo-window[data-stage="3"] .edge.e1 {
  stroke-dashoffset: 0;
}

.demo-window[data-stage="2"] .arrow.a1 {
  opacity: 1;
  transition-delay: 0.8s;
}

.demo-window[data-stage="3"] .arrow.a1 {
  opacity: 1;
}

.demo-window[data-stage="2"] .node.n3 rect,
.demo-window[data-stage="3"] .node.n3 rect {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.85s;
}

.demo-window[data-stage="2"] .node.n3 text,
.demo-window[data-stage="3"] .node.n3 text {
  opacity: 1;
  transition-delay: 1s;
}

.demo-window[data-stage="2"] .edge.e2 {
  stroke-dashoffset: 0;
  transition-delay: 1.1s;
}

.demo-window[data-stage="3"] .edge.e2 {
  stroke-dashoffset: 0;
}

.demo-window[data-stage="2"] .arrow.a2 {
  opacity: 1;
  transition-delay: 1.35s;
}

.demo-window[data-stage="3"] .arrow.a2 {
  opacity: 1;
}

.demo-window[data-stage="2"] .node.n4 rect,
.demo-window[data-stage="3"] .node.n4 rect {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.4s;
}

.demo-window[data-stage="2"] .node.n4 text,
.demo-window[data-stage="3"] .node.n4 text {
  opacity: 1;
  transition-delay: 1.55s;
}

.demo-window[data-stage="2"] .edge.e3 {
  stroke-dashoffset: 0;
  transition-delay: 1.65s;
}

.demo-window[data-stage="3"] .edge.e3 {
  stroke-dashoffset: 0;
}

.demo-window[data-stage="2"] .arrow.a3 {
  opacity: 1;
  transition-delay: 1.9s;
}

.demo-window[data-stage="3"] .arrow.a3 {
  opacity: 1;
}

/* Stage 3: verified results */
.demo-window[data-stage="3"] .dw-result.r1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.demo-window[data-stage="3"] .dw-result.r2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.demo-window[data-stage="3"] .dw-result.r3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}

/* ---------- Pipeline strip ---------- */
.pipeline {
  max-width: 1040px;
  margin: var(--spacing-64) auto 0;
  text-align: center;
}

.pipeline-title {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-w450);
  color: var(--color-ash-gray);
  margin-bottom: var(--spacing-20);
}

.pipeline-nodes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-8) var(--spacing-12);
}

.pnode {
  font-size: 15px;
  font-weight: var(--font-weight-w450);
  color: var(--color-ink-black);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-buttons);
  padding: 6px var(--spacing-16);
  background: var(--color-paper-white);
  animation: nodePulse 3.2s ease-in-out infinite;
}

.pnode:nth-child(1) {
  animation-delay: 0s;
}

.pnode:nth-child(3) {
  animation-delay: 0.4s;
}

.pnode:nth-child(5) {
  animation-delay: 0.8s;
}

.pnode:nth-child(7) {
  animation-delay: 1.2s;
}

.pnode:nth-child(9) {
  animation-delay: 1.6s;
}

.pnode:nth-child(11) {
  animation-delay: 2s;
}

@keyframes nodePulse {
  0%,
  100% {
    border-color: var(--color-line);
    background: var(--color-paper-white);
  }
  50% {
    border-color: var(--color-smoke-gray);
    background: var(--color-fog-white);
  }
}

.parrow {
  color: var(--color-smoke-gray);
  font-size: 14px;
}

.pipeline-note {
  margin-top: var(--spacing-20);
  font-size: var(--text-caption);
  color: var(--color-slate-gray);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Logo strip ---------- */
.logos {
  padding: var(--spacing-40) 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.logos-label {
  text-align: center;
  font-size: var(--text-caption);
  color: var(--color-ash-gray);
  margin-bottom: var(--spacing-24);
}

/* Infinite logo marquee with edge fade */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--spacing-40);
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.logo-mark {
  font-size: 18px;
  color: var(--color-smoke-gray);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.logo-mark:hover {
  color: var(--color-slate-gray);
}

.logo-mark.serif {
  font-family: var(--font-signifier);
  font-style: italic;
}

.logo-mark.sans {
  font-weight: var(--font-weight-w480);
}

/* ---------- Features — fog band, flat mist cards ---------- */
.features {
  background: var(--color-fog-white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-24);
}

.feature-card {
  background: var(--color-mist-gray);
  border-radius: var(--radius-cards);
  padding: var(--spacing-32) var(--spacing-20);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: #ececee;
}

/* Higher specificity so the hover-lift wins over the
   reveal-on-scroll transform (html.js .reveal.in). */
html.js .feature-card.reveal.in:hover {
  transform: translateY(-4px);
  background: #ececee;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-paper-white);
  border: 1px solid var(--color-line);
  color: var(--color-ink-black);
  margin-bottom: var(--spacing-16);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-tag {
  display: block;
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  color: var(--color-ash-gray);
  margin-bottom: var(--spacing-12);
}

.feature-card h3 {
  font-family: var(--font-sohne);
  font-size: var(--text-body-lg);
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: var(--spacing-12);
}

.feature-card p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-ink-black);
}

/* ---------- Quotes — white band, one rare peach card ---------- */
.quotes-section {
  background: var(--color-paper-white);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-24);
}

.quote {
  background: var(--color-mist-gray);
  border-radius: var(--radius-cards);
  padding: var(--spacing-32) var(--spacing-20);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--spacing-32);
}

.quote blockquote {
  font-size: 18px;
  line-height: 1.5;
  font-weight: var(--font-weight-w430);
  color: var(--color-ink-black);
}

.quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quote-name {
  font-size: 15px;
  font-weight: var(--font-weight-w450);
}

.quote-role {
  font-size: 14px;
  color: var(--color-slate-gray);
}

/* The one peach card — sienna text, no shadow, on white */
.quote-peach {
  background: var(--color-blush-peach);
}

.quote-peach blockquote,
.quote-peach .quote-name,
.quote-peach .quote-role {
  color: var(--color-sienna-brown);
}

/* ---------- FAQ — fog band ---------- */
.faq {
  background: var(--color-fog-white);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

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

.faq-item:first-child {
  border-top: 1px solid var(--color-line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-16);
  padding: var(--spacing-20) 0;
  font-size: var(--text-subheading);
  font-weight: var(--font-weight-w450);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

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

.faq-chevron {
  font-size: 16px;
  color: var(--color-ash-gray);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 0 var(--spacing-20);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-slate-gray);
  max-width: 640px;
}

/* ---------- Early access ---------- */
.access {
  background: var(--color-paper-white);
}

.access-inner {
  max-width: 720px;
  text-align: center;
}

.access-copy h2 {
  margin-bottom: var(--spacing-16);
}

.access-lead {
  font-size: var(--text-body-lg);
  line-height: var(--leading-body-lg);
  color: var(--color-slate-gray);
  max-width: 520px;
  margin: 0 auto var(--spacing-40);
}

/* Hand-drawn arrow — a loose, sketchy stroke pointing down at the form.
   The line draws itself in when the section scrolls into view (.reveal.in). */
.hand-arrow {
  width: 120px;
  /* Positive margin keeps it clearly BELOW the paragraph — no overlap. */
  margin: var(--spacing-16) auto var(--spacing-24);
}

.hand-arrow svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Hidden only when JS is active (it draws in on reveal); fully visible otherwise. */
html.js .ha-line {
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}

html.js .ha-head {
  opacity: 0;
  transform-origin: center;
  transition: opacity 0.3s ease 1.2s;
}

html.js .access-copy.reveal.in ~ .hand-arrow .ha-line {
  stroke-dashoffset: 0;
}

html.js .access-copy.reveal.in ~ .hand-arrow .ha-head {
  opacity: 1;
}

/* The form sits in a visible card so the section has a clear, eye-catching
   target — not an invisible field on bare paper. */
.form-box {
  background: var(--color-ink-black);
  border: 1px solid var(--color-ink-black);
  border-radius: var(--radius-cards);
  padding: var(--spacing-32) var(--spacing-40);
  text-align: left;
}

#accessForm {
  text-align: left;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-16);
  margin-bottom: var(--spacing-16);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
}

.form-label {
  font-size: 14px;
  font-weight: var(--font-weight-w450);
  color: #ffffff;
}

.form-label em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
}

.form-field input {
  font: inherit;
  font-size: 16px;
  color: var(--color-ink-black);
  background: var(--color-paper-white);
  border: 1px solid transparent;
  border-radius: var(--radius-inputs);
  padding: var(--spacing-16);
  transition: border-color 0.15s ease;
}

.form-field input::placeholder {
  color: var(--color-smoke-gray);
}

.form-field input:focus {
  outline: none;
  border-color: var(--color-ink-black);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.form-note {
  margin-top: var(--spacing-16);
  font-size: var(--text-caption);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.form-error {
  margin-top: var(--spacing-12);
  font-size: var(--text-caption);
  color: var(--color-sienna-brown);
}

.form-field input.invalid {
  border-color: var(--color-sienna-brown);
}

/* Success state */
.access-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-12);
  padding: var(--spacing-40) 0;
}

.access-success[hidden] {
  display: none;
}

.success-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-ink-black);
  color: var(--color-paper-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.access-success h3 {
  font-family: var(--font-signifier);
  font-size: var(--text-heading-sm);
  font-weight: 400;
}

.access-success p {
  font-size: 16px;
  color: var(--color-slate-gray);
  max-width: 420px;
}

.ps {
  margin-top: var(--spacing-40);
  font-size: var(--text-caption);
  color: var(--color-ash-gray);
}

.founder {
  margin-top: var(--spacing-32);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-12);
}

.founder-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-mist-gray);
  color: var(--color-slate-gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  flex-shrink: 0;
}

.founder-text {
  font-size: 15px;
  color: var(--color-slate-gray);
  text-align: left;
}

.founder-name {
  display: block;
  font-size: 14px;
  color: var(--color-ash-gray);
  margin-top: 2px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-fog-white);
  border-top: 1px solid var(--color-line);
  padding: var(--spacing-40) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-24);
  flex-wrap: wrap;
}

.footer-love-link {
  color: var(--color-ink-black);
  font-weight: var(--font-weight-w450);
  text-decoration: none;
  border-bottom: 1px solid var(--color-line);
}

.footer .brand-mark {
  width: 24px;
  height: 24px;
}

.footer .brand-name {
  font-size: 15px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-24);
}

.footer-links a {
  font-size: 15px;
  color: var(--color-slate-gray);
}

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

.footer-meta {
  font-size: 14px;
  color: var(--color-ash-gray);
}

/* ---------- Reveal on scroll ----------
   Gated on html.js (added by main.js) so the page is fully
   visible when JavaScript is unavailable. main.js adds the
   "in" class and sets an inline transition-delay from data-delay. */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  h1 {
    font-size: var(--text-heading-lg);
    letter-spacing: var(--tracking-heading-lg);
  }

  h2 {
    font-size: var(--text-heading);
    letter-spacing: var(--tracking-heading);
  }

  .hero {
    padding: var(--spacing-80) 0 var(--spacing-96);
  }

  .hero-collage {
    display: none;
  }

  .demo-section {
    padding-top: var(--section-gap);
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 24px;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-paper-white);
    border-bottom: 1px solid var(--color-line);
    padding: var(--spacing-16) var(--gutter) var(--spacing-24);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: var(--spacing-12) 0;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-text {
    display: none;
  }

  .nav-cta {
    font-size: 14px;
    padding: 0 var(--spacing-12);
    white-space: nowrap;
  }

  .feature-grid,
  .quotes {
    grid-template-columns: 1fr;
  }

  .dw-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dw-badge {
    white-space: nowrap;
  }

  .dw-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dw-chat {
    border-right: none;
    border-bottom: 1px solid var(--color-line);
  }

  .dw-canvas {
    min-height: 380px;
  }

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

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

@media (max-width: 560px) {
  h1 {
    font-size: 40px;
    letter-spacing: -0.015em;
  }

  h2 {
    font-size: 32px;
    letter-spacing: -0.01em;
  }

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

  .btn-block {
    height: auto;
    padding: var(--spacing-16);
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }

  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-8);
  }

  .announce-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .announce-close {
    position: static;
    transform: none;
  }

  .pipeline-nodes {
    gap: var(--spacing-8);
  }
}

/* ---------- Reduced motion ---------- */
@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;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }

  /* Entrance elements start hidden (opacity:0 / translated) and rely on a
     delayed animation with `forwards` fill. Under reduced motion the duration
     is forced to ~0 but the delay is not reset, so the fill can leave them
     stuck in their hidden base state. Pin them to their final visible state. */
  .hero-anim,
  .artifact,
  .chip,
  .avatar-cursor {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .line {
    transform: none;
    animation: none;
  }

  .hero-glow {
    opacity: 1;
    transform: translateX(-50%);
    animation: none;
  }

  .marquee-track {
    animation: none;
  }

  .sc-chart .draw {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
  }

  /* Highlight sweep shows fully drawn, no animation. */
  h1 .line em::before {
    transform: skewX(-6deg) scaleX(1);
    animation: none;
  }

  .ha-line,
  .ha-head {
    transition: none !important;
  }

  html.js .ha-line {
    stroke-dashoffset: 0;
  }

  html.js .ha-head {
    opacity: 1;
  }

  .dw-cursor {
    animation: none;
  }

  .dw-ellipsis::before {
    animation: none;
  }
}
