/* ============================================
   Komla — Landing page styles
   Theme: the app's Graphite dark theme, a step lifted, Geist (sans + mono)
   ============================================ */

/* Self-hosted variable fonts (latin + latin-ext subsets from Google Fonts). Served from
   our origin so the CSP (font-src 'self') holds and every page gets the same type. */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/geist-v5-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/geist-v5-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/geist-mono-v6-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/geist-mono-v6-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ——— Brand / accent ——— */
  --primary: #339fee;
  --primary-bright: #6fb9f1;
  --primary-dim: #0081d9;
  --primary-glow: rgba(51, 159, 238, 0.25);
  --primary-subtle: rgba(51, 159, 238, 0.08);

  --accent-cyan: #5de4c7; /* gradient title sweep only */
  --accent-violet: #a78bfa; /* gradient title sweep only */

  /* ——— Foreground (text) ——— */
  --fg1: #f9fafb; /* primary — soft off-white */
  --fg2: #abaeb2; /* secondary / dim */
  --fg3: #8c9094; /* quiet / muted */
  --foreground: var(--fg1);
  --foreground-dim: var(--fg2);
  --foreground-quiet: var(--fg3);

  /* ——— Backgrounds (the app's Graphite, globals.css .dark: the page is its #12161a sidebar, so
     the demos, rendered on its #090d10 chrome, sit a step below it like the app's work area) ——— */
  --bg: #12161a;
  --bg-darker: #090d10;
  --background: var(--bg);
  --background-darker: var(--bg-darker);
  --surface: #1a1e22;
  --surface-light: #23272b;
  --surface-lighter: #2a2e33;

  /* ——— Borders ——— */
  --border: #25292d;
  --border-light: #32363a;
  --border-soft: #1e2226;
  --muted: rgba(255, 255, 255, 0.04);

  /* ——— Semantic / signal ——— */
  --signal-green: #62d38a;
  --signal-amber: #f0c04a;
  --signal-red: #ff6154; /* Product Hunt orange / editorial accent */

  /* Legacy aliases */
  --gold: var(--primary);
  --cream: var(--fg1);
  --cream-dim: var(--fg2);
  --warm-brown: var(--surface);
  --warm-border: var(--border);

  /* ——— Type stacks ——— */
  --font-display:
    'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-sans:
    'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:
    'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    'Liberation Mono', 'Courier New', monospace;
  --font-serif: var(--font-display);

  /* ——— Type roles ——— */
  /* H1 / hero / page title — Geist, weight 600, tight tracking */
  --h1-family: var(--font-display);
  --h1-weight: 600;
  --h1-tracking: -0.05em;
  --h1-leading: 0.95;
  /* H2 / section title — sans, semibold */
  --h2-family: var(--font-display);
  --h2-weight: 600;
  --h2-tracking: -0.035em;
  --h2-leading: 1.15;
  /* H3 / feature title — sans, semibold */
  --h3-family: var(--font-display);
  --h3-weight: 600;
  --h3-tracking: -0.02em;
  --h3-leading: 1.15;
  /* Body */
  --body-family: var(--font-sans);
  --body-size: 1rem;
  --body-leading: 1.65;
  --body-color: var(--fg1);
  /* Eyebrow / tag — UPPERCASE mono */
  --eyebrow-family: var(--font-mono);
  --eyebrow-size: 0.7rem;
  --eyebrow-tracking: 0.06em;
  --eyebrow-transform: uppercase;
  --eyebrow-color: var(--primary-bright);
  /* Code */
  --code-family: var(--font-mono);
  --code-size: 0.85em;
  --code-bg: var(--surface-lighter);
  --code-fg: var(--primary-bright);

  /* ——— Spacing ——— */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* ——— Layout ——— */
  --container-max: 1200px;
  --container-narrow: 1024px;
  --container-padding: 1.5rem;

  /* ——— Radius ——— */
  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-pill: 999px;

  /* ——— Motion ——— */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 150ms;
  --t-base: 250ms;
  --t-slow: 400ms;

  /* ——— Shadows ——— */
  --shadow-card: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border) inset;
  --shadow-hero: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border) inset;
  --shadow-btn-primary:
    inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(51, 159, 238, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-btn-primary-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 0 0 1px rgba(111, 185, 241, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-glow-primary: 0 0 40px -10px var(--primary-glow);
  --shadow-media: 0 40px 80px -40px rgba(0, 0, 0, 0.7);

  /* ——— Gradients ——— */
  --grad-title: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--accent-violet) 50%,
    var(--accent-cyan) 100%
  );
  --grad-logo: linear-gradient(
    135deg,
    oklch(0.55 0.17 250),
    oklch(0.68 0.15 245) 50%,
    oklch(0.75 0.12 250)
  );
  --grad-card-fade: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  --grad-card-fade-strong: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  --grad-hero-orb: radial-gradient(
    ellipse 700px 400px at 50% 0%,
    rgba(51, 159, 238, 0.05),
    transparent 70%
  );

  /* ——— Backdrop / nav ——— */
  --nav-blur: blur(18px) saturate(1.3);
  --nav-bg: rgba(18, 22, 26, 0.72);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--foreground);
  background-color: var(--background);
  overflow-x: hidden;
  position: relative;
}

/* ============================================
   Typography
   ============================================ */
h1 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: var(--foreground);
}

h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.028em;
  color: var(--foreground);
}

h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  background: var(--surface-lighter);
  border-radius: var(--radius-sm);
  color: var(--primary-bright);
  letter-spacing: -0.01em;
}

::selection {
  background: var(--primary);
  color: #fff;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
  z-index: 1000;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.container {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 2;
}

.container--wide {
  max-width: var(--container-max);
}

.gold {
  color: var(--foreground);
}

/* ============================================
   Navigation — sticky top bar; its Download button follows the visitor down the page
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  border-bottom: 1px solid var(--border-soft);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--foreground);
}

.logo-icon-svg {
  display: block;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--foreground-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--foreground);
}

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

.nav-github {
  display: inline-flex;
  align-items: center;
  color: var(--foreground-dim);
  transition: color 0.2s ease;
}

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

.nav-github svg {
  display: block;
}

.nav-download {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.25rem;
  padding: 0 0.9rem;
  border-radius: var(--radius-md);
  background: #eceef1;
  color: #0a0b0e;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.nav-download:hover {
  background: #fff;
}

.nav-download svg {
  flex: none;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.8rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease,
    color 0.2s ease;
  cursor: pointer;
  border: none;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.005em;
}

.btn-primary {
  background: #eceef1;
  color: #0a0b0e;
  border: 1px solid #eceef1;
}

.btn-primary:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-secondary {
  background: var(--surface-light);
  color: var(--foreground);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--surface-lighter);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

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

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

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  height: auto;
}

.btn-large svg {
  pointer-events: none;
  flex-shrink: 0;
}

.btn-downloading {
  opacity: 0.8;
  pointer-events: none;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: 3.5rem var(--container-padding) 0;
  isolation: isolate;
}

.hero-inner {
  position: relative;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 1.25rem 0 0;
}

.hero-eyebrow {
  margin: 0 auto 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--foreground-dim);
  text-align: center;
  animation: fade-in-up 0.9s var(--ease-out-expo) both;
}

.hero-eyebrow[hidden] {
  display: none;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 auto 1.4rem;
  max-width: 32ch;
  text-align: center;
  text-wrap: balance;
  animation: fade-in-up 0.9s 0.05s var(--ease-out-expo) both;
}

.hero-headline__line {
  display: block;
}

.hero-subheadline {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.5;
  color: var(--foreground-dim);
  max-width: 56ch;
  margin: 0 auto 2rem;
  text-align: center;
  text-wrap: pretty;
  animation: fade-in-up 1s 0.2s var(--ease-out-expo) both;
}

.hero-subheadline__line {
  display: block;
}

.hero-subheadline__line--mobile {
  display: none;
}

.hero-trust-meta {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--foreground-quiet);
  letter-spacing: -0.005em;
  animation: fade-in-up 1s 0.45s var(--ease-out-expo) both;
}

.hero-trust-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust-meta__check {
  color: var(--signal-green);
  flex-shrink: 0;
}

/* Landing hero: text on the left, agents and a quote beside the CTA, the demo in the first screen */
.hero--landing {
  padding-top: 3.25rem;
}

.hero-top {
  max-width: calc(var(--container-max) - 2 * var(--container-padding));
  margin: 0 auto;
}

.hero--landing .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.3rem 0.8rem 0.3rem 0.65rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: left;
}

.hero--landing .hero-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal-green);
  box-shadow: 0 0 0 3px rgba(98, 211, 138, 0.18);
}

.hero--landing .hero-eyebrow[hidden] {
  display: none;
}

.hero--landing .hero-headline {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  max-width: none;
  margin: 0;
  text-align: left;
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 25rem);
  gap: 2.5rem 4rem;
  align-items: start;
  margin-top: 1.9rem;
}

.hero--landing .hero-subheadline {
  max-width: 36rem;
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  text-align: left;
}

/* Above the demo, so the platform menu opens over it. */
.hero--landing .hero-cta {
  position: relative;
  z-index: 5;
  align-items: flex-start;
  margin: 1.6rem 0 0;
}

.hero--landing .hero-cta-row {
  justify-content: flex-start;
}

.hero--landing .hero-trust-meta {
  justify-content: flex-start;
  margin-top: 1.1rem;
}

/* Above the demo, so the agent list opens over it. */
.hero-side {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 1.4rem;
  padding-left: 1.75rem;
  border-left: 1px solid var(--border);
  animation: fade-in-up 1s 0.45s var(--ease-out-expo) both;
}

.hero-agents__label {
  margin-bottom: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground-quiet);
}

.hero-agents__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero-agent {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--foreground);
}

.hero-agent--more {
  background: transparent;
  color: var(--foreground-quiet);
}

/* "+ 18 more" opens the rest of the built-in presets below the chips. */
.hero-agents {
  position: relative;
}

.agent-menu > summary {
  list-style: none;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.agent-menu > summary::-webkit-details-marker {
  display: none;
}

.agent-menu > summary:hover,
.agent-menu[open] > summary {
  border-color: var(--border-light);
  color: var(--foreground);
}

.agent-menu__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: 20;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.agent-menu__label {
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground-quiet);
}

.agent-menu__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.agent-menu__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agent-menu__list img {
  flex: none;
  width: 14px;
  height: 14px;
}

.agent-menu__note {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--foreground-dim);
}

.hero--landing .hero-quote {
  align-items: flex-start;
  max-width: none;
  margin: 0;
}

.hero--landing .hero-demo {
  max-width: calc(var(--container-max) - 2 * var(--container-padding));
  margin-top: 2.75rem;
}

/* "Other platforms" opens every build in place instead of leaving for /download. */
.platform-menu {
  position: relative;
}

.platform-menu__toggle {
  list-style: none;
  gap: 0.5rem;
}

.platform-menu__toggle::-webkit-details-marker {
  display: none;
}

.platform-menu__chevron {
  color: var(--foreground-quiet);
  transition: transform 0.15s var(--ease-out-quart);
}

.platform-menu[open] .platform-menu__chevron {
  transform: rotate(180deg);
}

.platform-menu__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 20;
  width: min(34rem, calc(100vw - 2rem));
}

.platform-menu__panel .all-platforms-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface);
  border-color: var(--border-light);
  box-shadow: var(--shadow-card);
}

/* Mobile visitors can't install, so the hero asks for an email instead, already open. */
.remind-inline {
  width: 100%;
  max-width: 28rem;
}

.remind-inline .remind-email {
  min-width: 0;
  padding: 0.8rem 0.9rem;
  font-size: 1rem;
  background: var(--surface);
}

.remind-inline .remind-btn {
  padding: 0.8rem 1.1rem;
  font-size: 0.95rem;
  background: #eceef1;
  color: #0a0b0e;
  white-space: nowrap;
}

.remind-inline .remind-btn:hover {
  background: #fff;
}

.remind-inline .remind-form-note {
  text-align: left;
  line-height: 1.45;
}

/* Agent logo strip (agent pages) */
.hero-logos {
  padding: 4rem 0 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-logos__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--foreground-quiet);
  margin-bottom: 1.4rem;
}

.hero-logos__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 3rem;
  justify-content: center;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--foreground-dim);
  letter-spacing: -0.01em;
}

.hero-logos__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-logos__item--muted {
  color: var(--foreground-quiet);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Hero CTA
   ============================================ */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  animation: fade-in-up 1s 0.35s var(--ease-out-expo) both;
}

.hero-cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
}

.ap-extras-toggle .toggle-arrow {
  display: inline-block;
  transition: transform 0.12s var(--ease-out-quart);
}

.ap-extras[open] > .ap-extras-toggle .toggle-arrow {
  transform: rotate(180deg);
}

.mobile-desktop-note {
  font-size: 0.9rem;
  color: var(--foreground-dim);
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

.remind-arrival-banner {
  margin: 0 auto var(--space-md);
  max-width: 28rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  text-align: center;
}

.remind-arrival-banner__heading {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--foreground);
}

.download-early-warning {
  font-size: 0.82rem;
  color: var(--signal-amber);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0;
}

/* ============================================
   Hero demo loop
   ============================================ */
.hero-demo {
  position: relative;
  max-width: 1280px;
  margin: 3rem auto 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--background-darker);
  box-shadow: var(--shadow-media);
  animation: fade-in-up 0.9s 0.6s var(--ease-out-expo) both;
  cursor: pointer;
}

.hero-demo:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 4px;
}

.hero-demo-video {
  display: block;
  width: 100%;
  height: auto;
}

/* Play-icon overlay shown when the demo is paused */
.hero-demo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  background: rgba(9, 13, 16, 0);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M8 5v14l11-7z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0;
  opacity: 0;
  transition:
    opacity 0.2s,
    background-size 0.2s,
    background-color 0.2s;
}

.hero-demo.is-paused::after {
  opacity: 1;
  background-color: rgba(9, 13, 16, 0.35);
  background-size: 88px 88px;
}

/* ============================================
   Remind form
   ============================================ */
.remind-disclosure {
  width: 100%;
  max-width: 26rem;
  margin: 0.75rem auto 0;
  text-align: center;
}

.remind-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #0a0b0e;
  background: #fafafd;
  border: 1px solid #fafafd;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
  list-style: none;
  user-select: none;
  letter-spacing: -0.005em;
  touch-action: manipulation;
}

.remind-toggle::-webkit-details-marker {
  display: none;
}

@media (hover: hover) {
  .remind-toggle:hover {
    background: #fff;
    border-color: #fff;
    transform: translateY(-1px);
  }
}

.remind-toggle-icon {
  flex-shrink: 0;
  color: currentColor;
}

.remind-toggle-chevron {
  flex-shrink: 0;
  margin-left: 0.15rem;
  color: currentColor;
  transition: transform 0.2s;
}

.remind-disclosure[open] .remind-toggle-chevron {
  transform: rotate(180deg);
}

.remind-form {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem;
  background: rgba(9, 13, 16, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: left;
}

.remind-form-note {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--foreground-quiet);
  text-align: center;
}

.remind-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.remind-email {
  flex: 1;
  padding: 0.65rem 0.85rem;
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.remind-email:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.remind-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.remind-btn {
  padding: 0.65rem 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.remind-btn:hover {
  background: var(--primary-bright);
}

.remind-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.remind-btn-label--short {
  display: none;
}

.remind-status {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.remind-status.success {
  background: rgba(127, 199, 141, 0.1);
  color: var(--signal-green);
  border: 1px solid rgba(127, 199, 141, 0.25);
}

.remind-status.error {
  background: rgba(245, 185, 66, 0.1);
  color: var(--signal-amber);
  border: 1px solid rgba(245, 185, 66, 0.25);
}

/* ============================================
   All-platforms panel
   ============================================ */
.all-platforms-panel {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.all-platforms-panel[open] > .all-platforms-grid {
  margin-top: 1rem;
}

.all-platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(9, 13, 16, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.ap-platform {
  text-align: left;
}

.ap-platform-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.ap-platform-name svg {
  color: var(--foreground-dim);
}

.ap-beta-tag {
  font-size: 0.62rem;
  padding: 2px 6px;
  background: var(--primary-subtle);
  color: var(--primary-bright);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 0.3rem;
}

.ap-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ap-download-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.7rem;
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 500;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  text-align: center;
  white-space: nowrap;
}

.ap-download-link:hover {
  background: var(--primary-subtle);
  color: var(--primary-bright);
  border-color: var(--primary);
}

.ap-extras {
  margin-top: 0.9rem;
  padding: 0 1.2rem 1.2rem;
}

.ap-extras-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  color: var(--foreground-dim);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
  cursor: pointer;
  user-select: none;
  list-style: none;
  touch-action: manipulation;
}

.ap-extras-toggle::-webkit-details-marker {
  display: none;
}

@media (hover: hover) {
  .ap-extras-toggle:hover {
    color: var(--primary-bright);
    background: var(--primary-subtle);
    border-color: var(--primary);
  }
}

.ap-extras[open] > .ap-extras-columns {
  margin-top: 0.8rem;
}

.ap-extras-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  text-align: left;
}

.ap-extras-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.ap-extras-text {
  font-size: 0.82rem;
  color: var(--foreground-dim);
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

.ap-extras-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: var(--background-darker);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  color: var(--foreground-dim);
  overflow-x: auto;
  margin-bottom: 0.55rem;
  line-height: 1.5;
}

.ap-extras-checksum-link {
  color: var(--primary-bright);
  font-weight: 500;
  border-bottom: 1px solid var(--primary-subtle);
}

.ap-extras-checksum-link:hover {
  color: #fff;
  border-bottom-color: var(--primary);
}

/* ============================================
   Section header
   ============================================ */
.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3rem;
  position: relative;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--foreground-quiet);
  margin-bottom: 0.875rem;
}

.section-eyebrow--accent {
  color: var(--primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--foreground);
  margin-bottom: 1rem;
  text-wrap: balance;
}

/* When a section has an eyebrow, constrain the title so it wraps to two lines like the reference */
.section-eyebrow + .section-title {
  max-width: 22ch;
  margin: 0 auto 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--foreground-dim);
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 auto;
}

.section-header--start {
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.section-header--start .section-title {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* ============================================
   Feature articles
   ============================================ */
.features-section {
  padding: var(--space-2xl) 0;
  position: relative;
  z-index: 2;
}

main > .features-section:first-of-type {
  padding-top: var(--space-xl);
}

.features-section + .features-section {
  padding-top: 0;
}

.feature-article {
  position: relative;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.feature-article + .feature-article {
  border-top: 1px solid var(--border-soft);
  padding-top: 4rem;
}

.feature-article-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.feature-article-grid.reverse {
  grid-template-columns: 1.3fr 1fr;
}

.feature-article-grid.reverse .feature-article-text {
  order: 2;
}

.feature-article-grid.reverse .feature-article-visual {
  order: 1;
}

.feature-article-text {
  position: relative;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--primary-subtle);
  border: 1px solid rgba(51, 159, 238, 0.22);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--primary-bright);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.feature-tag svg {
  color: var(--primary);
}

.feature-article h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.1rem;
}

.feature-article p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--foreground-dim);
  max-width: 32rem;
}

.feature-article-visual {
  position: relative;
}

.feature-screenshot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--background-darker);
  box-shadow: var(--shadow-media);
}

.feature-screenshot--portrait {
  max-width: 480px;
  margin-inline: auto;
}

.sc-screenshot-img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

/* Demo video (YouTube facade) */
.hero-screenshot {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--surface);
  box-shadow: var(--shadow-hero);
  aspect-ratio: 16 / 9;
}

/* ============================================
   Features: one demo per row, alternating sides
   ============================================ */
.workflow {
  position: relative;
  z-index: 2;
  padding: 6rem 0 4rem;
}

.workflow .section-header {
  margin-bottom: 2.25rem;
}

.workflow-panels {
  display: grid;
  gap: 6rem;
}

.workflow-panel {
  display: grid;
  grid-template-columns: minmax(0, 21rem) minmax(0, 1fr);
  gap: 2.5rem 4rem;
  align-items: center;
}

.workflow-panel:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
}

.workflow-panel:nth-child(even) .workflow-panel__text {
  order: 2;
}

.workflow-panel__step {
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--primary-bright);
}

.workflow-panel__title {
  margin-bottom: 0.9rem;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.workflow-panel__body {
  font-size: 1.075rem;
  line-height: 1.6;
  color: var(--foreground-dim);
  text-wrap: pretty;
}

.workflow-panel__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1280 / 736;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--background-darker);
  box-shadow: var(--shadow-media);
}

/* Portrait clips keep their shape instead of letterboxing in a landscape frame. */
.workflow-panel__media--portrait {
  justify-self: center;
  width: min(100%, 28rem);
  aspect-ratio: 900 / 1050;
}

.workflow-panel__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

/* ============================================
   Objections: the four answers that decide a download, beside a button
   ============================================ */
.objections {
  position: relative;
  z-index: 2;
  padding: 1rem 0 2rem;
}

.objections__panel {
  padding: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--surface);
}

.objections__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 2rem;
}

.objection__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.9rem;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary-bright);
}

.objection__title {
  margin-bottom: 0.4rem;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.objection__text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--foreground-dim);
}

.objection__text a {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: var(--border-light);
  text-underline-offset: 3px;
}

.objection__text a:hover {
  text-decoration-color: currentColor;
}

.objections__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.objections__note {
  font-size: 0.875rem;
  color: var(--foreground-quiet);
}

.social-proof {
  padding: clamp(4rem, 9vw, 6.875rem) 0;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.875rem;
  max-width: 1100px;
  margin: 0 auto;
}

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

.testimonial-card {
  position: relative;
  padding: 1.375rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  transition:
    border-color 220ms var(--ease-out-quart),
    background 220ms ease;
}

.testimonial-card:hover {
  border-color: var(--border-light);
}

/* Featured (longest) testimonial — centered above the row of three, narrower */
.testimonial-card--featured {
  grid-column: 1 / -1;
  max-width: 880px;
  width: 100%;
  justify-self: center;
  padding: 2.25rem 2.5rem;
  border-radius: 14px;
  margin-bottom: 0.625rem;
}

.testimonial-card--featured .testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 1.625rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 62ch;
  color: var(--foreground);
}

.testimonial-card--editorial {
  background: var(--surface);
}

.testimonial-source {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foreground-quiet);
}

.testimonial-quote {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--foreground);
  font-weight: 400;
  letter-spacing: -0.005em;
  flex: 1;
}

.testimonial-author {
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.testimonial-avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--foreground-dim);
  background: var(--surface-light);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
  user-select: none;
}

.testimonial-card--featured .testimonial-avatar {
  width: 38px;
  height: 38px;
  font-size: 0.78rem;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.testimonial-name {
  font-style: normal;
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--foreground-quiet);
  line-height: 1.4;
}

.testimonial-author--editorial {
  padding-left: 0.15rem;
}

.testimonial-author--editorial .testimonial-role {
  font-style: italic;
  color: var(--foreground-dim);
}

/* Landing: the long quote beside the two short ones, the editorial take as a
   full-width line below them. */
.testimonials--landing {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1rem;
  max-width: none;
}

.testimonials--landing .testimonial-card--featured {
  grid-column: 1;
  grid-row: span 2;
  max-width: none;
  margin-bottom: 0;
  padding: 1.75rem;
}

.testimonials--landing .testimonial-card--featured .testimonial-quote {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  font-weight: 400;
}

.testimonials--landing .testimonial-card--editorial {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
  grid-template-areas:
    'source quote'
    'author quote';
  align-content: start;
  gap: 0.25rem 2.5rem;
  margin-top: 1rem;
  padding: 2rem 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
}

.testimonials--landing .testimonial-source {
  grid-area: source;
}

.testimonials--landing .testimonial-card--editorial .testimonial-quote {
  grid-area: quote;
  font-size: clamp(1.15rem, 1.8vw, 1.375rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.testimonials--landing .testimonial-author--editorial {
  grid-area: author;
  margin-top: 0;
  padding-left: 0;
}

@media (max-width: 760px) {
  .testimonials--landing {
    grid-template-columns: 1fr;
  }
  .testimonials--landing .testimonial-card--featured {
    grid-row: auto;
  }
  .testimonials--landing .testimonial-card--featured .testimonial-quote {
    font-size: 1.05rem;
  }
  .testimonials--landing .testimonial-card--editorial {
    grid-template-columns: 1fr;
    grid-template-areas:
      'source'
      'quote'
      'author';
    gap: 0.75rem;
  }
}

/* ============================================
   Feature thumb grid (tier 2)
   ============================================ */
.feature-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--container-narrow);
  margin: 0 auto 3rem;
}

.feature-thumb-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.feature-thumb-card:hover {
  border-color: var(--border-light);
}

.feature-thumb-screenshot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--background-darker);
}

.feature-thumb-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  cursor: zoom-in;
}

.feature-thumb-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 1.2rem 1.25rem 0.4rem;
  letter-spacing: -0.015em;
}

.feature-thumb-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--foreground-dim);
  padding: 0 1.25rem 1.25rem;
  margin: 0;
}

/* ============================================
   Mini feature grid (bordered, no images)
   ============================================ */
.feature-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--container-narrow);
  margin: 2rem auto 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.feature-mini-cell {
  padding: 1.5rem 1.4rem;
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.feature-mini-cell:nth-child(3n) {
  border-right: none;
}

.feature-mini-cell:nth-last-child(-n + 3) {
  border-bottom: none;
}

.feature-mini-cell h3 {
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--foreground);
  margin-bottom: 0.4rem;
}

.feature-mini-cell p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--foreground-quiet);
  margin: 0;
}

.feature-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-bright);
  vertical-align: 0.1em;
  margin-left: 0.3em;
}

@media (max-width: 800px) {
  .feature-mini-grid {
    grid-template-columns: 1fr;
  }
  .feature-mini-cell {
    border-right: none;
  }
  .feature-mini-cell:last-child {
    border-bottom: none;
  }
  .feature-mini-cell:nth-last-child(-n + 3):not(:last-child) {
    border-bottom: 1px solid var(--border-soft);
  }
}

/* ============================================
   Explore grid (landing): every smaller feature, collapsed to six by script
   ============================================ */
.explore__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  margin-bottom: 2.5rem;
}

.explore__header .section-header {
  margin-bottom: 0;
}

.explore__header .section-title {
  margin-bottom: 0;
}

.explore__toggle[hidden] {
  display: none;
}

.explore__toggle svg {
  transition: transform 0.2s var(--ease-out-quart);
}

.explore__toggle[aria-expanded='true'] svg {
  transform: rotate(180deg);
}

/* Three columns, so six and thirty both fill every row. */
.explore-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.explore-grid.is-collapsed .explore-cell--extra {
  display: none;
}

.explore-cell {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem 1.5rem;
  background: var(--background);
}

.explore-cell__icon {
  width: 20px;
  height: 20px;
  margin-bottom: 0.4rem;
  fill: none;
  stroke: var(--foreground-dim);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.explore-cell h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
}

.explore-cell p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--foreground-dim);
}

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

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: var(--space-2xl) 0;
  position: relative;
  z-index: 2;
}

.faq-list {
  max-width: 44rem;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

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

.faq-question {
  width: 100%;
  padding: 1.35rem 0;
  background: transparent;
  border: none;
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--primary-bright);
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--foreground-quiet);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-quart);
}

.faq-answer p {
  padding-bottom: 1.4rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--foreground-dim);
  max-width: 40rem;
}

.faq--split .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem 4.5rem;
}

.faq--split .section-header {
  flex: 1 1 280px;
  margin-bottom: 0;
}

.faq--split .faq-list {
  flex: 999 1 560px;
  min-width: 0;
  max-width: none;
  margin: 0;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  z-index: 2;
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.cta-icon {
  display: none;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--foreground);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.cta-subtext {
  font-size: 1rem;
  color: var(--foreground-dim);
  margin-bottom: 2rem;
  line-height: 1.55;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
}

.cta--band {
  padding: 7rem 0;
  background: var(--background-darker);
  border-top: 1px solid var(--border-soft);
}

.cta--band .cta-headline {
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  letter-spacing: -0.04em;
}

.cta--band .cta-subtext {
  font-size: 1.125rem;
  max-width: 32rem;
  margin-inline: auto;
}

.cta-platforms {
  margin-top: 2.5rem;
}

/* ============================================
   Download panel: confirms the download and says how to install it
   ============================================ */
.download-panel {
  width: min(32rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  background: var(--surface);
  color: var(--foreground);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
}

.download-panel[open] {
  display: grid;
  gap: 1.25rem;
  animation: fade-in-up 0.35s var(--ease-out-expo) both;
}

.download-panel::backdrop {
  background: rgba(9, 13, 16, 0.65);
  backdrop-filter: blur(4px);
}

.download-panel__close-form {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.download-panel__close {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--foreground-quiet);
  cursor: pointer;
}

.download-panel__close:hover {
  background: var(--surface-lighter);
  color: var(--foreground);
}

.download-panel__started {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  margin-right: 2rem;
}

.download-panel__ok {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(98, 211, 138, 0.14);
  color: var(--signal-green);
}

.download-panel__title {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.download-panel__file {
  font-size: 0.85rem;
  color: var(--foreground-dim);
  overflow-wrap: anywhere;
}

.download-panel__file a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-panel__tabs {
  display: inline-flex;
  justify-self: start;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.download-panel__tabs button {
  padding: 0.3rem 0.85rem;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--foreground-quiet);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
}

.download-panel__tabs button[aria-selected='true'] {
  background: var(--surface-lighter);
  color: var(--foreground);
}

.download-panel__steps {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  counter-reset: install-step;
}

.download-panel__steps[hidden] {
  display: none;
}

.download-panel__steps li {
  position: relative;
  padding-left: 2.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--foreground-dim);
  counter-increment: install-step;
}

.download-panel__steps li::before {
  content: counter(install-step);
  position: absolute;
  top: 0;
  left: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: calc(1.5rem - 2px);
  text-align: center;
  color: var(--foreground);
}

.download-panel__steps strong {
  font-weight: 600;
  color: var(--foreground);
}

.download-panel__code {
  margin-top: 0.45rem;
  padding: 0.55rem 0.7rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background-darker);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--foreground);
}

.download-panel__needs {
  font-size: 0.82rem;
  color: var(--foreground-quiet);
}

.download-panel__foot {
  display: grid;
  gap: 0.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.download-panel__foot-text {
  font-size: 0.85rem;
  color: var(--foreground-dim);
}

.download-panel__foot .remind-email {
  min-width: 0;
}
/* ============================================
   Landing: download-first sections
   ============================================ */
.hero-quote {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 36rem;
  margin: 1.75rem auto 0;
  text-align: left;
}

.hero-quote__avatar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--surface-lighter);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground-dim);
}

.hero-quote__text {
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--foreground);
}

.hero-quote__author {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--foreground-quiet);
}

.feature-row__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.6rem;
  font-size: 0.94rem;
  color: var(--foreground);
}

.feature-row__points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.feature-row__check {
  flex: none;
  color: var(--signal-green);
}

/* Go further: the devbox card across the full width, then the demos, then the status bar. */
.further {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
}

.further-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(28rem, 100%), 1fr));
  gap: 1.25rem;
}

.further-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.further-card__media {
  aspect-ratio: 1440 / 822;
  border-bottom: 1px solid var(--border);
  background: var(--background-darker);
  overflow: hidden;
}

.further-card__media img,
.further-card__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.further-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.6rem 1.75rem 1.75rem;
}

.further-card__title {
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.further-card__text {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--foreground-dim);
}

.further-card__text a {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: var(--border-light);
  text-underline-offset: 3px;
}

.further-card__text a:hover {
  text-decoration-color: currentColor;
}

.further-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.further-card__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--foreground-quiet);
}

.further-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
}

.further-card__link:hover {
  color: var(--primary-bright);
}

.further-card--wide {
  grid-column: 1 / -1;
}

/* The remote-machine card is text only; its points run in two columns when there's room. */
@media (min-width: 960px) {
  .further-card--text .further-card__points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 2.5rem;
  }
}

.further-card__points {
  margin-top: 0.25rem;
}

.feature-row__points code {
  white-space: nowrap;
}

/* Side by side only once the text is short enough not to crop much of the video. */
@media (min-width: 1200px) {
  .further-card--wide {
    flex-direction: row;
  }
  .further-card--wide .further-card__media {
    flex: 1.25;
    aspect-ratio: auto;
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }
  .further-card--wide .further-card__body {
    flex: 1;
    justify-content: center;
    padding: 2.25rem 2.25rem 2rem;
  }
}

/* Testimonials: the Product Hunt badge sits beside the heading. */
.proof__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  margin-bottom: 2.5rem;
}

.proof__header .section-header {
  margin-bottom: 0;
}

.proof__header .section-title {
  margin-bottom: 0;
}

.proof__badge {
  display: block;
  flex: none;
}

.proof__badge img {
  display: block;
}

/* Pricing and source, with a note from the founder */
.price-teaser {
  position: relative;
  z-index: 2;
  padding: 6rem 0 0;
}

.price-teaser__panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.price-teaser__main {
  flex: 999 1 30rem;
  padding: 2.75rem;
  background: var(--surface);
}

.price-teaser__main .section-title {
  margin: 0;
}

.price-teaser__text {
  max-width: 35rem;
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--foreground-dim);
}

.price-teaser__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.price-teaser__actions .btn svg {
  display: block;
}

.price-teaser__text a {
  color: var(--foreground-dim);
  text-decoration: underline;
  text-decoration-color: var(--border-light);
  text-underline-offset: 3px;
}

.price-teaser__text a:hover {
  color: var(--primary-bright);
}

.price-teaser__founder {
  flex: 1 1 18rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  padding: 2.75rem 2.5rem;
  background: var(--surface);
}

.price-teaser__founder img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
}

.price-teaser__note {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--foreground);
}

.price-teaser__sign {
  font-size: 0.85rem;
  color: var(--foreground-quiet);
}

.price-teaser__sign a {
  color: var(--foreground-dim);
}

.hero-trust-meta a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border-light);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.hero-trust-meta a:hover {
  color: var(--primary-bright);
}

@media (max-width: 760px) {
  .further,
  .price-teaser {
    padding-top: 4rem;
  }
  .price-teaser__main,
  .price-teaser__founder {
    padding: 2rem 1.5rem;
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 1.6rem;
}

.footer-links a {
  color: var(--foreground-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: -0.005em;
  transition: color 0.2s;
}

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

.footer-copyright {
  font-size: 0.8rem;
  color: var(--foreground-quiet);
  margin-top: 0.8rem;
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 16, 0.92);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.lightbox-overlay.visible {
  opacity: 1;
}

.lightbox-overlay img,
.lightbox-overlay video {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}

/* ============================================
   Breadcrumbs (agent pages)
   ============================================ */
.page-breadcrumbs {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.page-breadcrumbs ol {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(9, 13, 16, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.page-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground-dim);
  font-size: 0.82rem;
  letter-spacing: -0.005em;
}

.page-breadcrumbs li + li::before {
  content: '/';
  color: rgba(255, 255, 255, 0.28);
}

.page-breadcrumbs a {
  color: var(--foreground-dim);
  transition: color 0.2s ease;
}

.page-breadcrumbs a:hover {
  color: var(--primary-bright);
}

.page-breadcrumbs [aria-current='page'] {
  color: var(--foreground);
}

/* ============================================
   Agent-page intro card + feature list
   ============================================ */
.agent-intro {
  margin: 0 auto var(--space-xl);
  max-width: 920px;
}

.agent-intro-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(9, 13, 16, 0.84), rgba(9, 13, 16, 0.68));
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.5rem 1.35rem;
}

.agent-intro-card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

.agent-intro-card p {
  color: var(--foreground-dim);
  margin-bottom: 0.9rem;
  line-height: 1.6;
}

.agent-intro-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.agent-intro-list li {
  color: var(--foreground-dim);
  padding-left: 1rem;
  position: relative;
  line-height: 1.55;
}

.agent-intro-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: var(--radius-pill);
  background: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.agent-intro-list strong {
  color: var(--foreground);
  font-weight: 600;
}

/* Checklist inside feature articles (agent pages) */
.feature-article-text .feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.feature-article-text .feature-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--foreground-dim);
  font-size: 0.95rem;
}

.feature-article-text .feature-list li svg {
  color: var(--primary);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Testimonial source label (Product Hunt row) */
.testimonial-source-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--foreground-dim);
  letter-spacing: -0.005em;
}

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .feature-article-grid,
  .feature-article-grid.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-article-grid.reverse .feature-article-text {
    order: 1;
  }
  .feature-article-grid.reverse .feature-article-visual {
    order: 2;
  }
  .hero-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-side {
    padding: 1.4rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .workflow-panel,
  .workflow-panel:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }
  .workflow-panel:nth-child(even) .workflow-panel__text {
    order: 0;
  }
  .workflow-panels {
    gap: 4.5rem;
  }
  .hero-inner {
    padding: 3.5rem 0 2rem;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    height: 52px;
    gap: 1.1rem;
    padding: 0 1rem;
  }
  .nav-links {
    margin-left: auto;
  }
  .nav-actions {
    margin-left: 0;
  }
  .nav .nav-link--desktop {
    display: none;
  }
  /* Phone order: headline, one line, the app, then the email form. */
  .hero--landing {
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
  }
  .hero--landing .hero-top,
  .hero--landing .hero-row,
  .hero--landing .hero-main {
    display: contents;
  }
  .hero--landing .hero-eyebrow {
    align-self: flex-start;
  }
  .hero--landing .hero-headline {
    font-size: clamp(2.3rem, 10vw, 3rem);
  }
  .hero--landing .hero-subheadline {
    order: 1;
    margin-top: 1rem;
    padding: 0;
  }
  .hero--landing .hero-demo {
    order: 2;
    width: 100%;
    margin-top: 1.5rem;
    aspect-ratio: 16 / 10;
  }
  /* At phone width the whole window is unreadable; show the sidebar and terminal. */
  .hero--landing .hero-demo-video {
    width: 190%;
    max-width: none;
  }
  .hero--landing .hero-cta {
    order: 3;
    margin-top: 1.5rem;
  }
  .hero--landing .hero-trust-meta {
    order: 4;
  }
  .hero-side {
    order: 5;
    margin-top: 2rem;
  }
  .hero-cta-row .platform-menu {
    display: none;
  }
  .workflow {
    padding: 4rem 0 3rem;
  }
  .objections__panel {
    padding: 1.5rem;
  }
  .objections__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .download-panel {
    padding: 1.4rem;
  }
  .hero-inner {
    padding: 1rem 0 0;
  }
  .hero-cta-row .btn-ghost {
    display: none;
  }
  .remind-btn {
    background: #fafafd;
    color: #0a0b0e;
  }
  .remind-btn:hover {
    background: #fff;
  }
  .remind-btn-label--full {
    display: none;
  }
  .remind-btn-label--short {
    display: inline;
  }
  .hero-headline {
    font-size: clamp(2.6rem, 11vw, 3.6rem);
    letter-spacing: -0.045em;
  }
  .hero-subheadline {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  .hero-subheadline__line--desktop {
    display: none;
  }
  .hero-subheadline__line--mobile {
    display: block;
  }
  .hero-trust-meta {
    font-size: 0.72rem;
    gap: 0.5rem 1rem;
  }
  .hero-logos__row {
    gap: 1rem 1.5rem;
    font-size: 0.82rem;
  }
  .feature-article {
    padding: 2rem 0 3rem;
  }
  .feature-article + .feature-article {
    padding-top: 3rem;
  }
  .feature-article h3 {
    font-size: 1.65rem;
  }
  .cta-content {
    padding: 3rem 1.5rem;
  }
  .testimonial-card {
    padding: 1.5rem 1.4rem 1.3rem;
    gap: 1rem;
  }
  .testimonial-card--featured {
    padding: 1.6rem 1.4rem 1.3rem;
  }
  .testimonial-card--featured .testimonial-quote {
    font-size: 1.05rem;
  }
  .feature-thumb-grid {
    grid-template-columns: 1fr;
  }
  .features-section {
    padding: 3rem 0;
  }
  .cta--band {
    padding: 2rem 0;
  }
}

/* ============================================
   Sticky email bar (phones) — appears after the hero
   ============================================ */
.sticky-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, calc(100% + 2rem));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.45rem 0.45rem 0.55rem;
  background: rgba(26, 30, 34, 0.92);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  box-shadow:
    0 20px 50px -10px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: calc(100vw - 2rem);
  visibility: hidden;
}

.sticky-bar.is-visible {
  transform: translate(-50%, 0);
  visibility: visible;
}

.sticky-bar__mobile {
  display: none;
  flex: 1;
  min-width: 0;
}

.sticky-bar__mobile-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.sticky-bar__mobile .remind-email {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-light);
}

.sticky-bar__send {
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.sticky-bar__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-md);
  color: var(--foreground-quiet);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s;
}

.sticky-bar__close:hover {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.06);
}

.sticky-bar--mobile {
  left: 1rem;
  right: 1rem;
  bottom: 0.75rem;
  transform: translate(0, calc(100% + 2rem));
  max-width: none;
  width: auto;
}

.sticky-bar--mobile.is-visible {
  transform: translate(0, 0);
}

.sticky-bar--mobile .sticky-bar__mobile {
  display: block;
}

/* On mobile widths the global remind-form rule swaps to the short label;
   keep the full "Email me a download link" copy on most phones, and only
   fall back to the short "Send link" on very narrow screens. */
@media (max-width: 640px) {
  .sticky-bar__send .remind-btn-label--full {
    display: inline;
  }
  .sticky-bar__send .remind-btn-label--short {
    display: none;
  }
}

@media (max-width: 400px) {
  .sticky-bar__send .remind-btn-label--full {
    display: none;
  }
  .sticky-bar__send .remind-btn-label--short {
    display: inline;
  }
}

/* Ensure fade-in-view stays visible (JS no longer animates these) */
.fade-in-view {
  opacity: 1;
}

.stagger-children {
  opacity: 1;
}
