/* ============================================
   Zappwise Design System — Haven-Inspired
   ============================================ */

/* --- Custom Properties --- */
:root {
  --blue: #1A6BF4;
  --blue-dark: #0A55D6;
  --blue-light: #EFF6FF;
  --ink: #0F172A;
  --muted: #556378;
  --surface: #F4F4F5;
  --white: #FFFFFF;
  --black: #1A1A1A;
  --border: #E2E8F0;

  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max-content: 1280px;
  --section-py: 120px;
  --card-radius: 16px;
  --img-radius: 20px;
  --grid-gap: 32px;
  --nav-height: 72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; }

/* Hide scrollbar entirely. Reason: persistent native scrollbars on macOS/Windows ignore most CSS track-styling and paint a white strip over full-bleed images. Page is still fully scrollable via wheel, trackpad, keyboard arrows, Page Up/Down. */
::-webkit-scrollbar { display: none; width: 0; height: 0; }
body { -ms-overflow-style: none; scrollbar-width: none; }
body::-webkit-scrollbar { display: none; }

/* Custom interactive scrollbar — transparent track that responds to clicks (jump to position), draggable thumb. Replaces the OS scrollbar that was hidden via CSS. */
.scroll-indicator {
  position: fixed;
  top: 0;
  right: 0;
  width: 14px;
  height: 100vh;
  z-index: 100;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transition: opacity 280ms ease, background 200ms ease, box-shadow 200ms ease;
}
.scroll-indicator.visible { opacity: 1; }
/* macOS-style track that fades in during active interaction — opaque light grey fill + 1px left separator. Opaque (not semi-transparent) so it's visible on both light and dark page sections, matching Apple's behavior. */
.scroll-indicator:hover,
.scroll-indicator:has(.scroll-indicator-fill.dragging),
.scroll-indicator:has(.scroll-indicator-fill.linger) {
  background: rgba(245, 245, 245, 0.96);
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.12);
}
.scroll-indicator-fill {
  position: absolute;
  right: 3px;
  width: 7px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  cursor: grab;
  transition: width 180ms ease, right 180ms ease, background 180ms ease;
  will-change: top, height, width;
}
.scroll-indicator:hover .scroll-indicator-fill,
.scroll-indicator-fill.dragging,
.scroll-indicator-fill.linger {
  width: 11px;
  right: 1px;
}
.scroll-indicator-fill.dragging { cursor: grabbing; }
/* Touch-device styling — applies to actual phones/tablets and DevTools mobile emulation, NOT desktop with a narrowed window. Matches how Apple/Notion/GitHub keep desktop chrome consistent regardless of window size. */
@media (pointer: coarse) {
  .scroll-indicator { width: 10px; }
  /* Lighter, softer thumb on touch — no hover state to brighten it, but a more transparent appearance reads as "modern/light" */
  .scroll-indicator-fill { width: 4px; right: 3px; border-radius: 2px; background: rgba(0, 0, 0, 0.26); }
  /* No widening on touch — finger goes straight to the thumb */
  .scroll-indicator:hover .scroll-indicator-fill,
  .scroll-indicator-fill.dragging,
  .scroll-indicator-fill.linger { width: 4px; right: 3px; }
  /* No track styling on touch — iOS shows thumb only, no grey fill or separator line */
  .scroll-indicator:hover,
  .scroll-indicator:has(.scroll-indicator-fill.dragging),
  .scroll-indicator:has(.scroll-indicator-fill.linger) {
    background: transparent;
    box-shadow: none;
  }
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 200ms ease; }
@media (hover: hover) {
  a:hover { color: var(--blue-dark); }
  .alt-row:hover,
  a.icon-card:hover { color: inherit; }
}
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* --- Skip to content --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--blue);
  color: var(--white);
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* Visually hidden but readable by screen readers (skip-link uses its own
   off-screen positioning). Use for section headings that the design omits
   visually but assistive tech needs for navigation. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { color: var(--ink); text-wrap: balance; }
h1 { font-size: 64px; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: 44px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
p { margin-bottom: 1em; }
.caption { font-size: 14px; line-height: 1.5; letter-spacing: 0.02em; }
.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--blue);
}
.hero-eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow-row .card-badge { margin-bottom: 0; }
.hero-eyebrow-row .card-badge[aria-hidden="true"] { visibility: hidden; }
@media (max-width: 768px) {
  .hero-eyebrow-row { display: flex; flex-direction: column; gap: 8px; }
  .hero-eyebrow-row .card-badge[aria-hidden="true"] { display: none; }
}
.label + h1,
.hero-eyebrow-row + h1 { margin-top: 12px; }

/* --- Layout --- */
.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: var(--section-py) 0;
}
.section--surface { background: var(--surface); }
.section--hero { padding-top: calc(var(--nav-height) + 80px); }
.text-center { text-align: center; }
.section-header { margin-bottom: 48px; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.nav-logo img {
  height: 32px;
  width: auto;
}
.nav-logo {
  transition: opacity 200ms ease;
}
/* Hide the main nav logo when the mobile drawer is open — the drawer has its own logo, no need to show both at once */
body:has(.mobile-nav.open) .nav-logo {
  opacity: 0;
  pointer-events: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}
/* Absolute-center the text-link cluster in the viewport (independent of logo / auth-button widths) */
.nav-links-center {
  display: flex;
  align-items: center;
  gap: 32px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
/* Push the auth buttons (Apply, Sign in) to the right edge */
.nav-links > .btn-primary { margin-left: auto; }
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color 200ms ease;
  position: relative;
}
.nav-link:hover { color: var(--blue); }

/* Nav-specific button sizing, tighter than page-body CTAs */
.nav-links .btn-primary,
.nav-links .btn-secondary {
  padding: 10px 20px;
  font-size: 14px;
}
/* Group the two action buttons closer together than the rest of the nav */
.nav-links .btn-primary + .btn-secondary { margin-left: -16px; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  padding: 8px 0;
  background: transparent;
  border: none;
  text-decoration: none;
  transition: color 200ms ease;
}
.nav-dropdown-trigger:hover { color: var(--blue); }
.nav-dropdown-trigger::after {
  content: '';
  border: 2px solid currentColor;
  border-top: 0;
  border-left: 0;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 200ms ease;
}
.nav-dropdown:hover:not(.suppress-hover) .nav-dropdown-trigger::after,
.nav-dropdown:focus-within:not(.suppress-hover) .nav-dropdown-trigger::after,
.nav-dropdown.open .nav-dropdown-trigger::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--card-radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 20px;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}
.nav-dropdown:hover:not(.suppress-hover) .nav-dropdown-menu,
.nav-dropdown:focus-within:not(.suppress-hover) .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--ink);
  border-radius: 8px;
  transition: background 150ms ease;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--blue-light); color: var(--blue); }
.nav-dropdown-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 12px 4px;
}
.nav-dropdown-group-label:first-child { padding-top: 0; }

/* --- Cookie consent banner --- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 440px;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 20px;
  z-index: 9000;
  font-family: var(--font-sans);
  animation: cookieSlideIn 320ms ease;
}
@keyframes cookieSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 16px;
}
.cookie-banner__text a {
  color: var(--blue);
  text-decoration: underline;
}
.cookie-banner__text a:hover { color: var(--blue-dark); }
.cookie-banner__actions {
  display: flex;
  gap: 8px;
}
.cookie-banner__btn {
  flex: 1;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.cookie-banner__btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.cookie-banner__btn--secondary:hover { background: rgba(15, 23, 42, 0.04); }
.cookie-banner__btn--primary {
  background: var(--blue);
  color: var(--white);
}
.cookie-banner__btn--primary:hover { background: var(--blue-dark); }
@media (max-width: 600px) {
  .cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    max-width: none;
    padding: 16px;
  }
  .cookie-banner__actions { flex-direction: column-reverse; }
}

/* Mobile nav */
.nav-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 200ms ease;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 1010;
  transform: translateX(100%);
  transition: transform 300ms ease;
  overflow-y: auto;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}
@media (min-width: 480px) {
  .mobile-nav { max-width: 360px; }
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 1005;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Brand bar (logo + close) — matches desktop nav height so borders align */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 24px;
  height: var(--nav-height);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-nav-logo { display: flex; align-items: center; }
.mobile-nav-logo img { height: 28px; width: auto; }
.mobile-nav-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
  border-radius: 8px;
  transition: background 200ms ease;
}
.mobile-nav-close:hover { background: var(--surface); }
.mobile-nav-close svg { width: 22px; height: 22px; }

/* CTA section */
.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-nav-btn {
  width: 100%;
  max-width: 320px;
  text-align: center;
  display: block;
}

/* Sections wrapper */
.mobile-nav-sections {
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Section block (Products) */
.mobile-nav-section {
  display: flex;
  flex-direction: column;
}
.mobile-nav-section-header {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: color 200ms ease;
  margin-bottom: 4px;
}
.mobile-nav-section-header:hover { color: var(--blue); }
.mobile-nav-section-header--unlinked {
  cursor: default;
}
.mobile-nav-section-header--unlinked:hover { color: var(--ink); }
.mobile-nav-arrow {
  font-size: 16px;
  color: var(--muted);
  transition: transform 200ms ease, color 200ms ease;
}
.mobile-nav-section-header:hover .mobile-nav-arrow {
  transform: translateX(3px);
  color: var(--blue);
}
.mobile-nav-section-item {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  padding: 11px 0 11px 16px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: color 200ms ease;
}
.mobile-nav-section-item:hover { color: var(--ink); }
.mobile-nav-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  white-space: nowrap;
}

/* Flat list at bottom */
.mobile-nav-flat {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.mobile-nav-flat-item {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: 12px 0;
  text-decoration: none;
  transition: color 200ms ease;
}
.mobile-nav-flat-item:hover { color: var(--blue); }

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  min-height: 44px;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid var(--blue);
  border-radius: 10px;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,107,244,0.3);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  min-height: 44px;
  background: transparent;
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid var(--blue);
  border-radius: 10px;
  transition: background 200ms ease, color 200ms ease;
}
.btn-secondary:hover { background: var(--blue-light); color: var(--blue-dark); }
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--white);
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

/* --- Hero --- */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: var(--section-py);
  text-align: center;
}
.hero h1 { margin-bottom: 12px; max-width: 900px; margin-left: auto; margin-right: auto; }
.hero-brand {
  display: block;
  width: 536px;
  height: auto;
  max-width: 80vw;
  margin: 0 auto 56px;
  /* Using the non-balanced asset where the wordmark sits at canvas left and the
     dots extend to canvas right. A translateX shift in % scales with the image's
     responsive size so the wordmark's optical center stays aligned with the page
     center across viewports. The hero-brand-specific [data-animate] rules below
     bake this shift into the fade-up animation so [data-animate].is-visible
     doesn't override it via transform: none. */
  /* Diffuse drop shadow tuned down vs the H1 because the chunkier wordmark + dots silhouette
     casts a heavier halo for the same shadow values. */
  filter:
    drop-shadow(0 2px 12px rgba(0, 0, 0, 0.22))
    drop-shadow(0 8px 32px rgba(0, 0, 0, 0.18));
}
.hero-brand[data-animate] { transform: translate(3%, 30px); }
.hero-brand[data-animate].is-visible { transform: translate(3%, 0); }
body.hero-fullbleed-page .hero-subline {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}
body.hero-fullbleed-page .hero h1 {
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.34),
    0 8px 40px rgba(0, 0, 0, 0.28);
}
.hero-subline,
.section-subline {
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  max-width: 640px;
  margin: 8px auto 0;
}
.hero-subline--start { margin-left: 0; margin-right: 0; }
.hero p {
  font-size: 19px;
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--muted);
}
.hero-inline-image {
  display: block;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  margin-bottom: 40px;
  height: clamp(360px, 55vh, 640px);
}
.hero-inline-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity, transform;
}
/* Gate the opacity transition on a JS-applied .ready class. WebKit/Safari
   otherwise animates each inactive image from default opacity:1 down to
   opacity:0 on initial paint, producing a ghosting flash. Adding .ready
   one frame after load means the transition only applies to real state
   changes (carousel rotation), not first paint. */
.hero-inline-image.ready img {
  transition: opacity 1.2s ease-in-out;
}
.hero-inline-image img.active {
  opacity: 1;
}
@keyframes kenBurns {
  from { transform: scale(1);    }
  to   { transform: scale(1.10); }
}

/* --- Full-bleed hero (image fills the entire viewport, nav floats over it) ---
   Homepage nav is transparent over the hero with a white logo + white text;
   when scrolled past the hero (.scrolled class on nav added at scrollY > 10),
   nav picks up the default white-bg + dark-logo state from .nav.scrolled. */
body.hero-fullbleed-page .nav-logo img,
body.hero-fullbleed-page .nav-link,
body.hero-fullbleed-page .nav-dropdown-trigger,
body.hero-fullbleed-page .nav .btn-secondary,
body.hero-fullbleed-page .nav-hamburger span {
  transition: filter 200ms ease, color 200ms ease, background 200ms ease, border-color 200ms ease;
}
body.hero-fullbleed-page .nav:not(.scrolled) .nav-logo img {
  filter: brightness(0) invert(1);
}
/* On the full-bleed homepage: hide the top-left nav logo and the Apply-for-Beta CTA
   while the nav is transparent over the hero; fade them in once the nav picks up its
   white background after scrolling. */
body.hero-fullbleed-page .nav-logo,
body.hero-fullbleed-page .nav-links .btn-primary {
  transition: opacity 200ms ease, visibility 200ms ease;
}
body.hero-fullbleed-page .nav:not(.scrolled) .nav-logo,
body.hero-fullbleed-page .nav:not(.scrolled) .nav-links .btn-primary {
  opacity: 0;
  visibility: hidden;
}
body.hero-fullbleed-page .nav:not(.scrolled) .nav-link,
body.hero-fullbleed-page .nav:not(.scrolled) .nav-dropdown-trigger {
  color: #fff;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.34),
    0 8px 40px rgba(0, 0, 0, 0.28);
}
body.hero-fullbleed-page .nav:not(.scrolled) .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.16),
    0 6px 24px rgba(0, 0, 0, 0.12);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.11),
    0 10px 26px rgba(0, 0, 0, 0.09);
}
body.hero-fullbleed-page .nav:not(.scrolled) .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
}
body.hero-fullbleed-page .nav:not(.scrolled) .nav-hamburger span {
  background: #fff;
}
.hero--fullbleed {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 540px;
  margin-top: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--white);
}
.hero--fullbleed .hero-inline-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 0;
}
.hero--fullbleed .hero-inline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Curation mode overlay (?curate=1) */
.curate-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.4;
}
.curate-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.curate-overlay span {
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  user-select: text;
  pointer-events: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60vw;
}
.curate-counter { font-weight: 600; }
.curate-filename { font-weight: 500; }
.curate-status { opacity: 0.85; }

.hero--fullbleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.08) 40%,
    rgba(0, 0, 0, 0.18) 100%
  );
  z-index: 1;
}
.hero--fullbleed .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero--fullbleed h1 {
  color: var(--white);
  font-size: clamp(44px, 7.5vw, 96px);
  line-height: 1.1;
  margin-bottom: 16px;
  text-wrap: balance;
}

/* --- "What is Zappwise?" section — editorial typographic stack --- */
.what-is { text-align: center; }
.what-is__lead {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  max-width: 760px;
  margin: 24px auto 0;
  text-wrap: balance;
}
@media (max-width: 768px) {
  .what-is__audiences { grid-template-columns: 1fr; gap: 24px; max-width: 480px; margin-top: 48px; }
}

/* === Hide "About" page site-wide ===
   Removes the About link from the desktop nav, mobile nav, and footer.
   about.html stays intact at its URL; only the in-site links are hidden.
   To restore: delete or comment out this whole block. */
.nav-link[href*="about.html"] { display: none; }
.mobile-nav-flat-item[href*="about.html"] { display: none; }
.footer-col > a[href*="about.html"] { display: none; }
/* Hide the hard line break on narrow viewports — let text-wrap: balance handle wrapping so the H1 doesn't end up with an awkward short/long pair on phones */
@media (max-width: 600px) {
  .hero-h1-break { display: none; }
}
.hero--fullbleed .hero-subline {
  color: rgba(255, 255, 255, 0.92);
}
.hero--fullbleed > .container > p:not(.hero-subline) {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 24px auto 32px;
}
.hero--fullbleed .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}
.hero--fullbleed .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}
@media (max-width: 480px) {
  .hero--fullbleed h1 {
    font-size: clamp(32px, 9vw, 44px);
  }
  /* On the full-bleed homepage hero there's only one CTA (Apply for the Beta);
     let it hug its text with tighter padding and a smaller font so it doesn't dominate the screen. */
  body.hero-fullbleed-page .hero-ctas .btn-primary,
  body.hero-fullbleed-page .hero-ctas .btn-secondary {
    width: auto;
    max-width: none;
    padding: 10px 20px;
    font-size: 13px;
  }
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
/* Diffuse drop shadow so the CTA reads against a bright carousel image now that the overlay is gone. */
body.hero-fullbleed-page .hero-ctas .btn-primary,
body.hero-fullbleed-page .hero-ctas .btn-secondary {
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.26),
    0 14px 40px rgba(0, 0, 0, 0.22);
}

/* --- Full-Bleed Section --- */
.full-bleed {
  position: relative;
  width: 100vw;
  aspect-ratio: 16 / 9;
  max-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.full-bleed-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.full-bleed-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}
.full-bleed-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 60px 24px;
}
.full-bleed-content .container {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Pipeline pills */
.pipeline-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.pipeline-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 400ms ease-out, transform 400ms ease-out, background 400ms ease;
}
.pipeline-pill.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.pipeline-pill.is-active {
  background: rgba(26,107,244,0.3);
  border-color: rgba(26,107,244,0.5);
}
.pipeline-arrow {
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  opacity: 0;
  transition: opacity 400ms ease-out;
}
.pipeline-arrow.is-visible { opacity: 1; }

/* --- Alternating Rows --- */
.alt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
  align-items: center;
  text-decoration: none;
  color: inherit;
}
/* Vertical spacing between stacked alt-row cards (replaces inline margin-bottom). */
.alt-row + .alt-row { margin-top: 80px; }
.alt-row--reverse .alt-row-image { order: 2; }
.alt-row--reverse .alt-row-text { order: 1; }
.alt-row-image {
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.alt-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
@media (hover: hover) {
  .alt-row:hover .alt-row-image img { transform: scale(1.02); }
}
.alt-row-text { padding: 20px 0; }
.alt-row-text h3 { margin-bottom: 12px; transition: color 200ms ease; }
.alt-row-text p { margin-bottom: 20px; }
@media (hover: hover) {
  .alt-row:hover .alt-row-text h3 { color: var(--blue); }
}
/* Circle chevron button below the description — mobile-visible affordance. */
.alt-row-text::after {
  content: '\2192';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}
@media (hover: hover) {
  .alt-row:hover .alt-row-text::after {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    transform: translateX(4px);
  }
}
.alt-row-text .btn-link {
  display: none;
  font-weight: 600;
  font-size: 15px;
  align-items: center;
  gap: 6px;
}
.alt-row-text .btn-link::after {
  content: '\2192';
  transition: transform 200ms ease;
}
@media (hover: hover) {
  .alt-row:hover .btn-link::after { transform: translateX(4px); }
}

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  }
}
.card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
@media (hover: hover) {
  .card:hover .card-image img { transform: scale(1.03); }
}
.card-body { padding: 20px; }
.card-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 8px;
}
.card-badge--muted { background: var(--surface); color: var(--muted); }
h3 .card-badge,
h2 .card-badge {
  margin: 0 0 0 8px;
  vertical-align: middle;
}
.card-body h3 { margin-bottom: 8px; font-size: 20px; }
.card-body p { font-size: 15px; margin-bottom: 0; }

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
.cards-grid--2col {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: 1fr 1fr;
}

/* Icon card */
.icon-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 32px;
  text-align: center;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
a.icon-card { text-decoration: none; color: inherit; }
.icon-card > .card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  margin-bottom: 0;
}
.icon-card > .card-badge + .icon-card-icon { margin-top: 8px; }
@media (hover: hover) {
  .icon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  }
}
.icon-card-icon {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--blue);
  line-height: 1;
}
.icon-card-icon svg {
  width: 32px;
  height: 32px;
  display: inline-block;
  vertical-align: middle;
}
.icon-card h2, .icon-card h3 { margin-bottom: 8px; font-size: 20px; }
.icon-card p { font-size: 15px; margin-bottom: 0; }

/* Icon card with image header */
.icon-card--has-image {
  padding: 0;
  overflow: hidden;
}
.icon-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.icon-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.icon-card--has-image .icon-card-body {
  padding: 24px 28px 28px;
  text-align: center;
}

/* Outcomes numbered list */
.outcomes-list {
  display: flex;
  flex-direction: column;
  max-width: 880px;
  margin: 0 auto;
}
.outcomes-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: start;
  gap: 36px;
  padding: 40px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}
.outcomes-item:last-child {
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}
.outcomes-num {
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  color: rgba(15, 23, 42, 0.10);
  letter-spacing: -2px;
  user-select: none;
}
.outcomes-body h3 {
  font-size: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.outcomes-body p {
  font-size: 17px;
  margin-bottom: 0;
  color: var(--muted);
  max-width: 560px;
}

/* --- Marquee Carousel --- */
.marquee { overflow: hidden; position: relative; }
.marquee-track { overflow: hidden; position: relative; }
.marquee-inner {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee-card {
  width: 280px;
  flex-shrink: 0;
  margin-right: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
@media (hover: hover) {
  .marquee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  }
}
.marquee-card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
}
.marquee-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
@media (hover: hover) {
  .marquee-card:hover .marquee-card-image img { transform: scale(1.03); }
}
.marquee-card-body { padding: 20px; }
.marquee-card-body h3 { margin-bottom: 4px; font-size: 18px; }
.marquee-card-body p { font-size: 14px; margin-bottom: 0; }
.marquee-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.marquee-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink);
  transition: background 200ms ease;
}
.marquee-btn:hover { background: var(--blue-light); }

/* --- Before/After Slider --- */
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3/2;
  cursor: ew-resize;
  touch-action: none;
}
.ba-before, .ba-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--white);
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
  transform: translateX(-50%);
  z-index: 2;
}
.ba-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.ba-handle-circle svg {
  width: 10px;
  height: 10px;
  display: block;
}
.ba-label {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: rgba(0,0,0,0.5);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.ba-label--before { left: 12px; }
.ba-label--after { right: 12px; }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Video Interlude --- */
.video-interlude {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-interlude video, .video-interlude-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-interlude::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
}
.video-interlude h2 {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: 48px;
  text-align: center;
}

/* --- CTA Section (Dark) --- */
.cta-dark {
  position: relative;
  width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-py) 24px;
  min-height: 400px;
}
.cta-dark-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-dark::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}
/* Taller, brighter variant — overlay matches the hero carousel's gentle gradient. */
.cta-dark--tall { min-height: 640px; padding: 120px 24px; }
.cta-dark--tall::after {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.08) 40%,
    rgba(0, 0, 0, 0.18) 100%
  );
}
/* Hero-style diffusion shadow on the text and CTA inside the tall variant,
   so they read against the brighter image now that the overlay is light. */
.cta-dark--tall .cta-dark-content h2,
.cta-dark--tall .cta-dark-content p {
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.34),
    0 8px 40px rgba(0, 0, 0, 0.28);
}
.cta-dark--tall .cta-dark-content .btn-white,
.cta-dark--tall .cta-dark-content .btn-primary {
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.26),
    0 14px 40px rgba(0, 0, 0, 0.22);
}
.cta-dark-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.cta-dark-content h2 {
  color: var(--white);
  margin-bottom: 16px;
}
.cta-dark-content p {
  color: rgba(255,255,255,0.8);
  font-size: 19px;
  margin-bottom: 32px;
}

/* CTA Light */
.cta-light {
  background: var(--blue-light);
  border-radius: var(--img-radius);
  padding: 60px;
  text-align: center;
  max-width: var(--max-content);
  margin: 0 auto;
}
.cta-light h2 { margin-bottom: 16px; }
.cta-light p { margin-bottom: 24px; }

/* --- Legal pages (DPA, Terms, Privacy, Subprocessors) ---
   Replaces ~90 repeated inline styles across the legal docs. */
.legal-content { max-width: 760px; }
.legal-content h1 + p { color: var(--muted); margin-top: 8px; }
.legal-content h2 { margin-top: 48px; }
.legal-content h3 { margin-top: 24px; }
.legal-content h2 + p,
.legal-content h3 + p { margin-top: 8px; }
.legal-intro { margin-top: 32px; }
.legal-card {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.legal-card h3 { margin-top: 0; }
.legal-card p { margin-bottom: 8px; }
.legal-card p:last-child { margin-bottom: 0; }

/* --- Standard hero / intro paragraph that appears across product pages,
   pricing, contact, etc. Replaces the repeated inline
   max-width + margin + font-size combo. */
.section-intro {
  font-size: 18px;
  max-width: 760px;
  margin: 20px auto 0;
}
.section-intro--wide { max-width: 800px; }

/* --- Standard supporting text below a CTA headline. */
.cta-text {
  font-size: 18px;
  max-width: 560px;
  margin: 16px auto 32px;
}
.cta-text--narrow { max-width: 480px; }
.cta-text--wide { max-width: 640px; margin-bottom: 0; }

/* --- Footer --- */
.footer {
  background: var(--black);
  padding: 60px 0 32px;
  color: rgba(255,255,255,0.6);
}
/* Pull the footer content in from the page edges so brand and link cols
   have breathing room on both sides. Overrides the default .container 24px. */
.footer > .container { padding-left: clamp(24px, 5vw, 80px); padding-right: clamp(24px, 5vw, 80px); }
.footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: var(--white); }
/* Full-width footer.
   Desktop / tablet (≥640px): brand on left, link cols clustered right.
   Phone (<640px): brand on top row spanning full width, then PRODUCTS +
   COMPANY side-by-side in a 2-col grid underneath. Two intentional layouts,
   one breakpoint. */
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px 64px;
  margin-bottom: 48px;
}
.footer-brand { flex: 0 0 auto; max-width: 260px; }
.footer-col { flex: 0 0 auto; min-width: 120px; }
.footer-col:first-of-type { margin-left: auto; }

@media (max-width: 640px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
  .footer-col { margin-left: 0; min-width: 0; }
}
.footer-brand-link {
  display: inline-block;
  margin-bottom: 6px;
  transition: opacity 200ms ease;
}
.footer-brand-link:hover { opacity: 0.75; }
/* Explicit width: auto + aspect-ratio so the image scales proportionally
   from the height alone, regardless of the HTML width/height attributes. */
.footer-brand img {
  width: auto;
  height: 26px;
  aspect-ratio: 1200 / 291;
  display: block;
}
.footer-brand p { font-size: 14px; margin: 0; line-height: 1.5; max-width: 260px; }
.footer-col h3 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col a {
  display: block;
  padding: 11px 0;
  font-size: 14px;
}
/* Bottom row — centered at every width.
   Narrow: stacked vertically (legal above ©, both centered)
   Wide:   one row centered with gap between */
.footer-bottom {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  text-align: center;
}
.footer-bottom-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-bottom > span,
.footer-bottom-links a { white-space: nowrap; }
.footer-bottom-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

@media (min-width: 720px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }
}

/* --- Contact Page Grid --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 { margin-bottom: 16px; }
.contact-info p { font-size: 16px; }
.contact-info a { font-size: 18px; font-weight: 600; }

/* --- Contact Form --- */
.contact-form {
  max-width: 640px;
}
.form-success {
  max-width: 640px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--blue-light);
  border: 1px solid var(--blue);
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
.contact-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 16px;
  line-height: 1.4;
}
.contact-fallback {
  max-width: 640px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.contact-fallback a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}
.contact-fallback a:hover { text-decoration: underline; }
.contact-fallback-copy {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  font: 500 13px inherit;
  cursor: pointer;
  transition: all 150ms;
  min-height: 44px;
}
.contact-fallback-copy:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.contact-fallback-copy.is-copied {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,107,244,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* --- Inline hero image (under centered hero) --- */
.hero-image-inline {
  display: block;
  width: 100%;
  max-width: 980px;
  margin: 40px auto 0;
  border-radius: var(--img-radius);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero-image-inline--4x3 { aspect-ratio: 4 / 3; }

/* Responsive */
@media (max-width: 900px) {
  .audience-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .audience-hero-text h1 { font-size: 36px; }
}

/* --- Product Page --- */
.product-hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  text-align: center;
}
.product-hero h1 { margin-bottom: 20px; max-width: 800px; margin-left: auto; margin-right: auto; }
.product-hero p { font-size: 18px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Pipeline viz */
.pipeline-viz {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.pipeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
@media (hover: hover) {
  .pipeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  }
}
.pipeline-card-icon { font-size: 36px; margin-bottom: 16px; }
.pipeline-card h3 { margin-bottom: 8px; }
.pipeline-card p { font-size: 15px; margin-bottom: 16px; }
.pipeline-connector {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 2px;
  background: var(--border);
}

/* Before/after grid */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
}

/* Feature list */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border-radius: 12px;
}
.feature-item-icon {
  flex-shrink: 0;
  font-size: 24px;
}
.feature-item h3 { font-size: 18px; margin-bottom: 4px; }
.feature-item p { font-size: 15px; margin-bottom: 0; }

/* About page values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 32px;
  text-align: center;
}
.value-card h3 { margin-bottom: 8px; }
.value-card p { font-size: 15px; margin-bottom: 0; }

/* --- Scroll Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate="scale-in"] {
  transform: scale(1.08);
  transition-duration: 800ms;
}
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}
[data-delay="80"]  { transition-delay: 80ms; }
[data-delay="160"] { transition-delay: 160ms; }
[data-delay="240"] { transition-delay: 240ms; }
[data-delay="320"] { transition-delay: 320ms; }
[data-delay="400"] { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-inline-image img.active { animation: none; }
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 12px 0;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 8px; }

/* ============================================
   Responsive
   ============================================ */

/* Switch to hamburger before the nav links get squished */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  /* Footer keeps the desktop pattern (brand + link cols on one row) down through
     this tablet range — it fits comfortably. Only the very narrow mobile rule
     below switches to the stacked layout. */
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: 1fr; }
  .pipeline-viz { grid-template-columns: 1fr; }
  .pipeline-connector { display: none; }
  .audience-hero-grid { gap: 32px; }
  .audience-hero-text h1 { font-size: 40px; }
}

@media (max-width: 768px) {
  :root {
    --section-py: 64px;
    --card-radius: 12px;
    --img-radius: 12px;
    --grid-gap: 16px;
    --nav-height: 60px;
  }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .outcomes-item { grid-template-columns: 64px 1fr; gap: 20px; padding: 28px 0; }
  .outcomes-num { font-size: 48px; }
  .outcomes-body h3 { font-size: 22px; }
  h3 { font-size: 20px; }
  body { font-size: 16px; }
  .caption { font-size: 13px; }
  .label { font-size: 12px; }

  .hero p { font-size: 17px; }
  .hero { padding-top: calc(var(--nav-height) + 48px); }
  .section--hero { padding-top: calc(var(--nav-height) + 48px); }
  .hero-brand { margin-bottom: 24px; }
  .hero--fullbleed { padding-bottom: 160px; }

  /* Homepage product cards: stack with text ABOVE image on mobile,
     centered. Override the HTML order for both normal and reversed cards. */
  .alt-row { grid-template-columns: 1fr; gap: 16px; }
  .alt-row .alt-row-text,
  .alt-row--reverse .alt-row-text { order: 1; text-align: center; padding: 0 0 4px; }
  .alt-row .alt-row-image,
  .alt-row--reverse .alt-row-image { order: 2; }
  .alt-row-text h3 { font-size: 22px; }
  .alt-row-text h3 .card-badge { display: block; width: fit-content; margin: 6px auto 0; }
  .alt-row-text p { font-size: 16px; max-width: 480px; margin-left: auto; margin-right: auto; margin-bottom: 12px; }
  .alt-row-text::after { display: none; }
  .alt-row-text .btn-link { display: inline-flex; color: var(--blue); margin-top: 0; }

  .cards-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }

  .audience-hero-grid { grid-template-columns: 1fr; }
  .audience-hero-image { aspect-ratio: 16/9; }
  .audience-hero-text h1 { font-size: 32px; }
  .audience-pills { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .audience-pills::-webkit-scrollbar { display: none; }

  /* Footer rules moved to a separate narrower breakpoint below so iPad
     (768px portrait) keeps the desktop one-row layout. */

  .cta-dark { padding: 80px 24px; }
  .video-interlude { height: 300px; }
  .video-interlude h2 { font-size: 32px; }

  .cta-light { padding: 40px 24px; border-radius: 12px; }

  .audience-selector { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .audience-selector::-webkit-scrollbar { display: none; }


  .contact-form { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 480px) {
  h1 { font-size: 30px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-primary, .hero-ctas .btn-secondary { width: 100%; }
  .pipeline-pills { flex-direction: column; }
  .pipeline-arrow { transform: rotate(90deg); }
}

/* ============================================================
   Media Processing page — hero crossfade, capability gallery, reels
   ============================================================ */

/* 5-stage cinematic hero crossfade */
.ba-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  margin-top: 48px;
  margin-bottom: 24px;
}
.ba-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1500ms ease-in-out;
}
.ba-hero img.active { opacity: 1; }
.ba-hero-dots {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 8px;
}
.ba-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 200ms;
  position: relative;
}
/* Invisible 44×44 hit target centered on the visible 8px dot. Adjacent
   hit boxes overlap; the closer dot wins by hit-test order. */
.ba-hero-dot::before {
  content: '';
  position: absolute;
  inset: -18px;
}
.ba-hero-dot.active { background: #fff; }

/* Capability gallery — each capability is its own full-width section, alternating bg */
.cap-section { margin-top: 0; }

/* Asymmetric layout variant: text on one side, large slider on the other */
.cap-section--asymmetric {
  display: grid;
  grid-template-columns: 1fr 2.6fr;
  gap: 48px;
  align-items: center;
}
.cap-section--asymmetric.cap-section--mirrored {
  grid-template-columns: 2.6fr 1fr;
}
.cap-section--asymmetric .cap-text { text-align: left; }
.cap-section--asymmetric .cap-section-header { text-align: left; margin-bottom: 8px; }
.cap-section--asymmetric .cap-section-title { text-align: left; margin-bottom: 16px; }
.cap-section--asymmetric.cap-section--mirrored .cap-text { order: 2; }
.cap-section--asymmetric .cap-description {
  color: #444;
  line-height: 1.55;
  font-size: 16px;
  margin: 0;
}
/* Per-capability crossfade — auto-cycles through 2 example pairs (4 stages) */
.cap-crossfade {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}
.cap-crossfade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1500ms ease-in-out;
}
.cap-crossfade img.active { opacity: 1; }
.media-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}
@media (max-width: 900px) {
  .cap-section--asymmetric {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  /* Match the global mirrored selector's specificity so text stays above the
     image on mobile for BOTH normal and mirrored variants. */
  .cap-section--asymmetric .cap-text,
  .cap-section--asymmetric.cap-section--mirrored .cap-text { order: -1; text-align: center; }
  .cap-section--asymmetric .cap-section-header,
  .cap-section--asymmetric .cap-section-title { text-align: center; }
}
.cap-section-header {
  text-align: center;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.cap-section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #111;
  margin: 0 0 32px;
}
@media (max-width: 700px) {
  .cap-section-title { font-size: 32px; }
}
.cap-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 700px) {
  .cap-pair { grid-template-columns: 1fr; gap: 24px; }
}

/* Reels — tabbed format toggle, single video stage */
.reel-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 28px;
}
.reel-tab {
  background: transparent;
  border: 1px solid #d8d8d8;
  padding: 9px 20px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #555;
  transition: background 200ms, color 200ms, border-color 200ms;
}
.reel-tab:hover { border-color: #888; color: #111; }
.reel-tab.active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.reel-stage {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  min-height: 540px;
  align-items: center;
}
.reel-stage > [hidden] { display: none; }
.reel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}
.reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reel-stage .reel-horizontal { width: 100%; aspect-ratio: 16 / 9; }
.reel-stage .reel-vertical { width: auto; height: 540px; aspect-ratio: 9 / 16; }
@media (max-width: 700px) {
  .reel-stage { min-height: 0; }
  .reel-stage .reel-vertical { width: 100%; max-width: 320px; height: auto; }
}
.reels-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 40px auto 0;
  max-width: 800px;
  text-align: center;
}
@media (max-width: 600px) {
  .reels-proof { grid-template-columns: 1fr; gap: 16px; }
}
.reels-proof-item {
  font-size: 14px;
  color: #444;
  padding: 0 8px;
}
.reels-proof-item strong {
  display: block;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
}
@media (max-width: 768px) {
  .about-section-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .about-stats { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 768px) {
  .about-founders { grid-template-columns: 1fr; }
}

/* --- Listing Creation card: live iframe of the actual listing page --- */
.alt-row-image--iframe {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  background: #f7f6fb;
}
.alt-row-image--iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1600px;
  height: 1200px;
  border: 0;
  transform-origin: top left;
  /* Scale iframe (1600w viewport) down to the card width via container query units. */
  transform: scale(calc(100cqw / 1600));
  pointer-events: none;
  display: block;
  transition: transform 300ms ease;
}
@media (hover: hover) {
  .alt-row:hover .alt-row-image--iframe iframe {
    transform: scale(calc(100cqw / 1600 * 1.02));
  }
}

/* Wrapper for the same overlay on the listing-creation product page hero */
.hero-image-inline-wrap {
  display: block;
  width: 100%;
  max-width: 980px;
  margin: 40px auto 0;
  border-radius: var(--img-radius);
  overflow: hidden;
  position: relative;
}
.hero-image-inline-wrap > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Day-to-twilight FX (Media Processing homepage card) --- */
.alt-row-image--wipe,
.alt-row-image--crossfade,
.alt-row-image--hover-fx { position: relative; }
.alt-row-image--wipe img,
.alt-row-image--crossfade img,
.alt-row-image--hover-fx img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep on stable GPU compositor layers so opacity animation doesn't jank
     when the parent's hover-scale transform composes. */
  backface-visibility: hidden;
  will-change: opacity, transform;
}

/* Hover-fx: static cut-in-half by default, crossfade on hover */
.alt-row-image--hover-fx .fx-static,
.alt-row-image--hover-fx .fx-twilight,
.alt-row-image--hover-fx .fx-day {
  transition: opacity 400ms ease;
}
.alt-row-image--hover-fx .fx-static  { opacity: 1; }
.alt-row-image--hover-fx .fx-twilight { opacity: 0; }
.alt-row-image--hover-fx .fx-day     { opacity: 0; }
@media (hover: hover) {
  .alt-row:hover .alt-row-image--hover-fx .fx-static  { opacity: 0; }
  .alt-row:hover .alt-row-image--hover-fx .fx-twilight { opacity: 1; }
  .alt-row:hover .alt-row-image--hover-fx .fx-day {
    animation: crossfade-day-twilight 4s ease-in-out 400ms infinite;
  }
}
.alt-row-image--wipe .wipe-top {
  animation: wipe-day-twilight 6s ease-in-out infinite;
  will-change: clip-path;
}
.alt-row-image--crossfade .wipe-top {
  animation: crossfade-day-twilight 6s ease-in-out infinite;
  will-change: opacity;
}
@keyframes crossfade-day-twilight {
  0%, 12%   { opacity: 1; }
  46%, 54%  { opacity: 0; }
  88%, 100% { opacity: 1; }
}
.alt-row-image--wipe::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.7) 50%, transparent 100%);
  pointer-events: none;
  animation: wipe-line 6s ease-in-out infinite;
  will-change: left, opacity;
}
@keyframes wipe-day-twilight {
  0%, 12%   { clip-path: inset(0 0 0 0); }
  46%, 54%  { clip-path: inset(0 0 0 100%); }
  88%, 100% { clip-path: inset(0 0 0 0); }
}
@keyframes wipe-line {
  0%, 12%   { left: 0;                opacity: 0; }
  16%       {                         opacity: 1; }
  46%, 54%  { left: calc(100% - 2px); opacity: 1; }
  84%       {                         opacity: 1; }
  88%, 100% { left: 0;                opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .alt-row-image--wipe .wipe-top,
  .alt-row-image--crossfade .wipe-top { animation: none; }
  .alt-row-image--wipe::after { animation: none; opacity: 0; }
  /* Hover-fx: stay on static, no hover animation */
  .alt-row:hover .alt-row-image--hover-fx .fx-static { opacity: 1; }
  .alt-row:hover .alt-row-image--hover-fx .fx-twilight,
  .alt-row:hover .alt-row-image--hover-fx .fx-day { opacity: 0; animation: none; }
}
