/* ============================================
   BioPal — Design Tokens & Base
   ============================================ */

:root {
  --bg-primary: #0a0a0a;
  --bg-elevated: #141414;
  --bg-surface: #1e1e1e;
  --text-primary: #f0f0ec;
  --text-secondary: #8a8a80;
  --accent: #3B82FF;
  --accent-dim: #1B4FAE;
  --accent-glow: rgba(59, 130, 255, 0.2);
  --action-background: #1B4FAE;
  --action-foreground: #fff;
  --action-border: var(--accent);
  --action-glow: rgba(59, 130, 255, 0.16);
  --action-disabled-background: var(--bg-surface);
  --warm: #ff6b35;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  --font-display: 'Clash Display', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  --container: min(1200px, 90%);
  --nav-height: 80px;
  --section-spacing: clamp(4rem, 10vw, 7rem);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
}

/* ============================================
   Reset
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--nav-height) + 1.5rem);
}
/* Animate explicit section clicks, not the initial deep-link page layout. */
html.anchor-navigation { scroll-behavior: smooth; }

/* ============================================
   Lenis smooth scroll (lenis@1.3.23)
   ============================================ */
html.lenis,
html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* ============================================
   Utilities
   ============================================ */

.container { width: var(--container); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============================================
   Typography
   ============================================ */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}
.btn:not(:disabled):not([aria-disabled="true"]):hover { transform: translateY(-1px); }
.btn:not(:disabled):not([aria-disabled="true"]):active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--action-border); outline-offset: 3px; }
.btn:disabled,
.btn[aria-disabled="true"] { cursor: not-allowed; transform: none; opacity: 1; }

.btn-accent {
  background: var(--action-background);
  color: var(--action-foreground);
  border-color: var(--action-border);
  box-shadow: 0 4px 16px var(--action-glow);
}
.btn-accent:not(:disabled):not([aria-disabled="true"]):hover {
  box-shadow: 0 6px 20px var(--action-glow);
}
.btn-accent:not(:disabled):not([aria-disabled="true"]):active {
  box-shadow: 0 2px 8px var(--action-glow);
}
.btn-accent:disabled,
.btn-accent[aria-disabled="true"] {
  background: var(--action-disabled-background);
  color: var(--action-foreground);
  border-color: var(--border-hover);
  box-shadow: none;
}

.btn-outline {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: transparent;
}
.btn-outline:not(:disabled):not([aria-disabled="true"]):hover { border-color: var(--accent); color: var(--accent); }
.btn-outline:not(:disabled):not([aria-disabled="true"]):active { background: var(--bg-surface); }
.btn-outline:disabled,
.btn-outline[aria-disabled="true"] { border-color: var(--border); color: var(--text-secondary); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; }

/* ============================================
   Section Labels & Dots
   ============================================ */

.section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 50ch;
  margin-top: 0.5rem;
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.35s, backdrop-filter 0.35s;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: calc(28px * 0.4);
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.nav-logo-wordmark,
.footer-logo {
  /* Filled Clash Display 600 glyphs: 188×44 canvas, 42.88 cap height.
     Wordmark cap height = 28px mark / 1.6. No browser font fallback. */
  display: block;
  width: calc(28px * 188 / 68.608);
  height: calc(28px * 44 / 68.608);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(240, 240, 236, 0.85);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:focus-visible,
.mobile-menu a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.nav-links a[aria-current="location"],
.mobile-menu a[aria-current="location"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.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-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a:not(.btn) { transition: color 0.2s; }
.mobile-menu a:not(.btn):hover { color: var(--accent); }
.mobile-menu .btn { font-size: 1rem; }

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

/* Let desktop previews follow the hero copy without a full-screen gap. */
@media (min-width: 961px) {
  .hero { min-height: 0; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg-elevated);
  pointer-events: none;
  opacity: 0.55;
}
.hero-bg img,
.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% 42%;
}
.hero-bg video {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hero.video-ready .hero-bg video {
  opacity: 1;
}

.hero-motion-toggle {
  position: absolute;
  right: max(1.25rem, 3vw);
  /* Keep the desktop control within the first screen when the hero grows. */
  bottom: max(1.25rem, calc(100% - 100vh + 1.25rem));
  bottom: max(1.25rem, calc(100% - 100svh + 1.25rem + env(safe-area-inset-bottom, 0px)));
  /* The preview section overlaps the hero at z-index 3. */
  z-index: 4;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(240, 240, 236, 0.4);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.35);
  color: var(--text-primary);
  transition: background 0.2s, border-color 0.2s;
}
.hero-motion-toggle[hidden] { display: none; }
.hero-motion-toggle:hover {
  background: rgba(10, 10, 10, 0.7);
  border-color: var(--text-primary);
}
.hero-motion-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.hero-motion-play { display: none; }
.hero-motion-toggle.motion-paused .hero-motion-pause { display: none; }
.hero-motion-toggle.motion-paused .hero-motion-play { display: block; }

.hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #0a0a0a 100%);
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.hero-placeholder code {
  font-family: var(--font-body);
  color: var(--accent);
  font-size: 0.85rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(10, 10, 10, 1) 0%,
    rgba(10, 10, 10, 0.7) 30%,
    rgba(10, 10, 10, 0.2) 60%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1150px;
  padding: max(6rem, calc(33vh - var(--hero-headlines-height, 8rem) / 2)) 1.5rem 5rem;
}

.hero-headlines {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
}

.hero-h1 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5);
}
.hero-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.6);
}

.hero-points {
  position: relative;
  z-index: 2;
  list-style: none;
  max-width: 600px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-align: left;
}
.hero-points li {
  position: relative;
  padding-left: 1.7rem;
  color: rgba(240, 240, 236, 0.88);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.5;
}
.hero-points strong {
  color: var(--text-primary);
  font-weight: 600;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-assistants {
  position: relative;
  display: block;
}
.hero-assistants-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: var(--text-primary);
  line-height: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(240, 240, 236, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.18s, text-decoration-color 0.18s;
}
.hero-assistants-trigger svg {
  flex-shrink: 0;
  transition: transform 0.18s;
}
.hero-assistants-trigger:hover,
.hero-assistants-trigger[aria-expanded="true"] {
  color: #a9caff;
  text-decoration-color: currentColor;
}
.hero-assistants-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.hero-assistants-trigger:focus-visible,
.hero-assistants-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}
.hero-assistants-panel {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: var(--assistant-panel-width, min(400px, calc(100vw - 32px)));
  padding: 1rem 1.1rem;
  border: 1px solid rgba(240, 240, 236, 0.2);
  border-radius: 16px;
  background: rgba(23, 25, 29, 0.96);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-primary);
  text-align: left;
  cursor: default;
}
.hero-assistants-panel[hidden] { display: none; }
/* Bridge the small gap so a pointer can travel from the phrase to the panel. */
.hero-assistants-panel::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 0.75rem;
}
.hero-assistants-panel[data-placement="right"] {
  top: var(--assistant-panel-top);
  left: calc(100% + var(--assistant-panel-side-gap));
  transform: none;
}
.hero-assistants-panel[data-placement="right"]::before {
  top: 0;
  right: 100%;
  bottom: 0;
  left: auto;
  width: var(--assistant-panel-side-gap);
  height: auto;
}
.hero-assistants-panel[data-placement="right"] .hero-assistants-logos {
  grid-template-columns: repeat(var(--assistant-panel-columns, 3), minmax(0, 1fr));
  gap: 0.95rem;
}
.hero-assistants-panel[data-placement="right"] .hero-assistants-logos > span { font-size: 0.75rem; }
.hero-assistants-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #c0c5ce;
}
.hero-assistants-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -0.45rem -0.55rem -0.45rem 0;
  border-radius: 50%;
  color: #c0c5ce;
}
.hero-assistants-close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.hero-assistants-logos {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
}
.hero-assistants-logos > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.69rem;
  line-height: 1.4;
  color: #e0e2e6;
}
.hero-assistants-logos img { width: 40px; height: 40px; object-fit: contain; }
.hero-assistants-description {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #c0c5ce;
}
.hero-assistants-panel[data-side-compact] { padding: 0.75rem; }
.hero-assistants-panel[data-side-compact] .hero-assistants-heading { margin-bottom: 0.65rem; }
.hero-assistants-panel[data-side-compact] .hero-assistants-logos { gap: 0.5rem; }
.hero-assistants-panel[data-side-compact] .hero-assistants-logos > span {
  gap: 0.25rem;
  font-size: 0.6875rem;
}
.hero-assistants-panel[data-side-compact] .hero-assistants-logos img { width: 32px; height: 32px; }
.hero-assistants-panel[data-side-compact] .hero-assistants-description { font-size: 0.75rem; }
.hero-assistants-panel[data-compact] {
  padding: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.hero-assistants-panel[data-placement="above"] {
  top: var(--assistant-panel-top);
  left: var(--assistant-panel-left);
  transform: none;
}
.hero-assistants-panel[data-placement="above"]::before { top: 100%; bottom: auto; }
.hero-assistants-panel[data-placement="inline"] {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: 100%;
  margin-top: 0.65rem;
}
.hero-assistants-panel[data-placement="inline"]::before { display: none; }
.hero-assistants-panel[data-compact] .hero-assistants-heading {
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  line-height: 1.4;
}
.hero-assistants-panel[data-compact] .hero-assistants-close { margin: -0.4rem -0.3rem -0.4rem 0; }
.hero-assistants-panel[data-compact] .hero-assistants-logos {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}
.hero-assistants-panel[data-compact] .hero-assistants-logos > span {
  gap: 0.25rem;
  font-size: 0.6875rem;
}
.hero-assistants-panel[data-compact] .hero-assistants-logos img { width: 28px; height: 28px; }
.hero-assistants-panel[data-compact] .hero-assistants-description { display: none; }
@media (max-width: 360px) {
  .hero-assistants-panel[data-compact] .hero-assistants-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; }
}

.hero-signup {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.hero-signup .form-status:empty { display: none; }
.hero-signup-success {
  padding: 1.25rem;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  background: rgba(20, 20, 20, 0.9);
}
.hero-signup-success h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.hero-signup-success strong { overflow-wrap: anywhere; }

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: var(--section-spacing) 0;
  /* Anchor links align the content below the nav, past the section padding. */
  scroll-margin-top: calc(-1 * var(--section-spacing));
}

.section h2 {
  margin-bottom: 1rem;
}

/* ============================================
   HOW IT WORKS — Steps
   ============================================ */

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

.step {
  position: relative;
  border-top: 1px solid var(--border-hover);
  padding-top: 1rem;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-content: start;
  gap: 0.4rem 0.75rem;
}

.step-num {
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.55;
}

.step h3 { font-size: 1.15rem; line-height: 1.35; }
.step p { grid-column: 2; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.55; }

@media (hover: hover) and (pointer: fine) {
  .step::before {
    content: "";
    position: absolute;
    inset: -1px 0 auto;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), #a8ceff 55%, rgba(59, 130, 255, .12));
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .55s cubic-bezier(.2, .7, .2, 1), opacity .25s;
    pointer-events: none;
  }
  .step-num { transition: color .25s, text-shadow .25s; }
  .step h3 { transition: color .25s, text-shadow .25s; }
  .step p { transition: color .25s; }
  .step:hover::before { opacity: 1; transform: scaleX(1); }
  .step:hover .step-num { color: #9bc6ff; text-shadow: 0 0 16px rgba(59, 130, 255, .45); }
  .step:hover h3 { color: #dceaff; text-shadow: 0 0 24px rgba(59, 130, 255, .2); }
  .step:hover p { color: #aaa9a1; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .step::after {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #dceaff;
    box-shadow: 0 0 9px 2px rgba(59, 130, 255, .5);
    opacity: 0;
    pointer-events: none;
  }
  .step:hover::after { animation: step-line-sweep .75s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes step-line-sweep {
    0% { left: 0; opacity: 0; }
    15%, 65% { opacity: 1; }
    100% { left: calc(100% - 3px); opacity: 0; }
  }
}

/* ============================================
   FEATURES ACCORDION
   ============================================ */

.features-layout {
  margin-top: 2.5rem;
}
/* with a visual panel present, switch to two columns */
.features-layout:has(.features-visual) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.features-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 780px;
  margin: 0;
}
.features-layout:has(.features-visual) .features-accordion {
  max-width: none;
  margin: 0;
}

.feature-row {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}

.feature-row-heading {
  margin: 0;
}
.feature-row-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.05rem 1.3rem;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.feature-row-head:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.feature-row-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--bg-surface);
  color: var(--accent);
  transition: background 0.3s, color 0.3s;
}

.feature-row-title {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.feature-row-toggle {
  position: relative;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.feature-row-toggle::before,
.feature-row-toggle::after {
  content: "";
  position: absolute;
  background: var(--text-secondary);
  transition: background 0.3s;
}
.feature-row-toggle::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  margin-top: -1px;
}
.feature-row-toggle::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
}

.feature-row-desc {
  height: 0;
  opacity: 0;
  overflow: hidden;
}
.feature-row-desc p {
  padding: 0 1.4rem 1.25rem calc(1.3rem + 42px + 1rem);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* hover highlight */
.feature-row:hover {
  background: var(--bg-surface);
  border-color: var(--accent);
}

/* open state — driven by aria-expanded (JS toggles it; first row open in markup) */
.feature-row:has(.feature-row-head[aria-expanded="true"]) {
  background: var(--bg-surface);
  border-color: var(--accent);
}
.feature-row:has(.feature-row-head[aria-expanded="true"]) .feature-row-icon {
  background: var(--action-background);
  color: var(--action-foreground);
}
.feature-row:has(.feature-row-head[aria-expanded="true"]) .feature-row-toggle {
  transform: rotate(45deg);
}
.feature-row:has(.feature-row-head[aria-expanded="true"]) .feature-row-toggle::before,
.feature-row:has(.feature-row-head[aria-expanded="true"]) .feature-row-toggle::after {
  background: var(--text-primary);
}
.feature-row:has(.feature-row-head[aria-expanded="true"]) .feature-row-desc {
  height: auto;
  opacity: 1;
}

/* configurable visual panel */
.features-visual {
  position: sticky;
  top: 100px;
}
.features-visual-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Placeholder images */
.placeholder-img {
  background: linear-gradient(145deg, #1a1a2e, #16213e, #0f3460);
}

/* ============================================
   PILLARS
   ============================================ */

.section--pillars { background: var(--bg-elevated); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.pillar {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
}

.pillar--featured {
  transform: translateY(-12px);
  border-color: var(--accent);
  box-shadow: 0 20px 50px var(--accent-glow), 0 0 0 1px var(--accent);
}

.pillar-head {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.pillar--featured .pillar-head {
  background: linear-gradient(160deg, rgba(200, 255, 46, 0.06), transparent);
}

.pillar h3 {
  font-size: 2rem;
  letter-spacing: 0.15em;
  margin: 0.5rem 0 0.3rem;
}

.pillar-head p { color: var(--text-secondary); font-weight: 500; }

.pill {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
}
.pill--accent {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.pillar ul {
  padding: 1.2rem 1.5rem;
  display: grid;
  gap: 0.65rem;
  flex: 1;
}
.pillar li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  padding-left: 1.2rem;
  position: relative;
}
.pillar li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.pillar--featured li::before { background: var(--accent); }

/* Connector split */
.connector-split {
  padding: 1.2rem 1.5rem;
  display: grid;
  gap: 1rem;
  flex: 1;
}
.connector-sub {
  text-align: center;
}
.connector-sub h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}
.connector-sub p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.logo-grid-placeholder {
  margin-top: 0.6rem;
  padding: 0.8rem;
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
}
.connector-logos {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  gap: clamp(0.5rem, 1vw, 0.75rem);
  margin: 0.6rem auto 0;
  width: 100%;
  max-width: 350px;
  border-radius: var(--radius-sm);
  background: #2a2a2a;
  padding: 0.75rem;
}
.connector-logos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.apple-health-badge {
  display: block;
  width: 170px;
  max-width: 100%;
  height: auto;
  margin: 0.9rem auto 0;
}

/* ============================================
   TRUST
   ============================================ */

.section--trust {
  background: var(--bg-elevated);
}

.trust-statement {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.trust-statement h2 {
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  text-wrap: balance;
}
.trust-statement p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1.6;
  text-wrap: balance;
}

/* ============================================
   WHO IT'S FOR
   ============================================ */

.section--who-its-for {
  background: var(--bg-primary);
}

.who-header {
  margin-bottom: 3rem;
}
.who-header h2 {
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}
.who-header p {
  max-width: 640px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.who-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.who-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.who-num {
  font-family: var(--font-body);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.who-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.who-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.who-tag {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
}

/* ============================================
   FAQ
   ============================================ */

.section--faq {
  background: var(--bg-primary);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.faq-left h2 {
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.faq-left p {
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

.faq-item {
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1.2rem;
  margin-bottom: 0.6rem;
  transition: background 0.3s, border-color 0.3s;
}
.faq-item:hover {
  background: var(--bg-surface);
  border-color: var(--border-hover);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  list-style: none;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-secondary);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open]:not(.faq-animated) .faq-icon,
.faq-item.is-expanded .faq-icon {
  transform: rotate(45deg);
}
.faq-animated:not(.is-expanded) .faq-answer { opacity: 0; }

.faq-answer {
  padding: 0 0 1.2rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  cursor: pointer;
  user-select: none;
}
.faq-answer p + p { margin-top: .65rem; }

/* ============================================
   FINAL CTA
   ============================================ */

.section--cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  max-width: 600px;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}
.cta-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.cta-form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 560px;
  margin-top: 0.5rem;
  padding: 0.4rem;
  border: 1px solid var(--border-hover);
  border-radius: 22px;
  background: rgba(30, 30, 30, 0.94);
}
/* One continuous focus indicator for the combined email/button control. */
.cta-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.cta-form input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}
.cta-form input[type="email"]:focus {
  /* The form's focus-within treatment supplies the visible focus indicator. */
  outline: none;
}
.cta-form .btn {
  flex-shrink: 0;
  min-height: 52px;
  border-radius: var(--radius);
}
.cta-form input::placeholder { color: var(--text-secondary); }

/* Visually hidden — kept out of layout, focus, and autofill. */
.field-extra {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Cloudflare Turnstile — stays invisible until a challenge is needed */
.cf-turnstile {
  display: flex;
  justify-content: center;
  min-height: 0;
}
.cf-turnstile:empty { display: none; }

/* Typo suggestion ("Did you mean gmail.com?") */
.email-suggest {
  display: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.email-suggest.show { display: block; }
.email-suggest-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.email-suggest-btn:hover { color: var(--text-primary); }

.form-status {
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 1.4rem;
}
.form-status.success { color: var(--accent); }
.form-status.error { color: var(--warm); }

.cta-trust {
  font-size: 0.88rem !important;
  color: var(--text-secondary) !important;
  margin-top: 0.5rem;
}

/* CTA — default / success swap */
.cta-default[hidden],
.cta-success[hidden] {
  display: none;
}
.cta-default {
  display: grid;
  gap: 0.8rem;
  justify-items: center;
  width: 100%;
}

.cta-success {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  width: 100%;
  padding: 1.5rem 0;
}
.cta-success:focus { outline: none; }

.cta-success-check {
  width: 84px;
  height: 84px;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(59, 130, 255, 0.32), rgba(59, 130, 255, 0.05));
  border: 1px solid rgba(59, 130, 255, 0.55);
  box-shadow: 0 0 0 7px rgba(59, 130, 255, 0.07), 0 16px 48px var(--accent-glow);
  animation: check-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.cta-success-check svg {
  width: 38px;
  height: 38px;
}
.cta-success-check svg path {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: check-draw 0.45s 0.32s ease forwards;
}

.cta-success h2,
.cta-success-lead,
.cta-success-sub {
  opacity: 0;
  animation: success-rise 0.55s ease forwards;
}
.cta-success h2 { animation-delay: 0.18s; }
.cta-success-lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  animation-delay: 0.3s;
}
.cta-success-lead strong {
  color: var(--text-primary);
  font-weight: 600;
}
.cta-success-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  animation-delay: 0.42s;
}

@keyframes check-pop {
  0% { transform: scale(0.3); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes success-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: -11px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--text-primary);
}
.footer-social a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.footer-social svg {
  display: block;
  width: 22px;
  height: 22px;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}
.footer-credit {
  color: var(--text-primary);
}
.footer-mission {
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.9;
}
.footer-copy {
  color: var(--text-secondary);
  font-size: 0.78rem;
  opacity: 0.7;
}
.footer-credit a {
  color: var(--text-primary);
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s, border-color 0.2s;
}
.footer-credit a:hover {
  color: var(--accent);
}
.footer-sep {
  color: var(--text-secondary);
  opacity: 0.4;
  margin: 0 0.6rem;
}

/* ============================================
   FOLLOW-UP DIALOG
   ============================================ */

.follow-up {
  width: min(92%, 500px);
  max-height: 85vh;
  margin: auto;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 0;
  overflow-y: auto;
}
.follow-up::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.follow-up-form {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}
.follow-up-form p { color: var(--text-secondary); }
.follow-up-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.follow-up-form input,
.follow-up-form select {
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  background: var(--bg-surface);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.92rem;
}
.follow-up-form input:focus,
.follow-up-form select:focus {
  outline: none;
  border-color: var(--accent);
}
.follow-up-select summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.92rem;
  cursor: pointer;
}
.follow-up-select summary::-webkit-details-marker {
  display: none;
}
.follow-up-select summary::after {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
}
.follow-up-select[open] summary::after {
  transform: rotate(-135deg);
}
.follow-up-field {
  display: grid;
  gap: 0.35rem;
}
.follow-up-field-label {
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.follow-up-select .select-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.follow-up-select .select-value.is-placeholder {
  color: var(--text-secondary);
}
.follow-up-checks {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.6rem;
}
.follow-up-checks .check-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-primary);
  cursor: pointer;
}
.follow-up-checks input[type="checkbox"] {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  accent-color: var(--action-background);
  cursor: pointer;
}
.follow-up-checks input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.follow-up-checks .other-input {
  display: none;
  flex: 1;
  min-width: 0;
  padding: 0.35rem 0.55rem;
  font-size: 0.88rem;
  cursor: text;
}
.follow-up-checks input[type="checkbox"]:checked ~ .other-input {
  display: block;
}

.follow-up-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .pillars { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .pillar--featured { transform: none; order: -1; }
  .who-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .faq-grid { grid-template-columns: 1fr; gap: 2rem; }
  .features-layout:has(.features-visual) { grid-template-columns: 1fr; gap: 2rem; }
  .features-visual { position: static; order: -1; max-width: 480px; }
}

/* Keep the canonical lockup clear of links before they would wrap. */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions .hero-motion-toggle { position: static; }
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 1.25rem; }

  .hero { min-height: 0; }
  .hero-content {
    width: 100%;
    padding: calc(var(--nav-height) + 3rem) 1.25rem 2rem;
  }
  .hero-headlines { margin-bottom: 1.25rem; }
  .hero-h1 { font-size: clamp(2rem, 8vw, 3.2rem); }
  .hero-h2 { line-height: 1.4; text-wrap: balance; }
  .hero-points { gap: .6rem; margin-bottom: 1.5rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-right { align-items: flex-start; text-align: left; }
}

@media (max-width: 520px) {
  .cta-form { flex-direction: column; border-radius: 20px; }
  .cta-form .btn { width: 100%; white-space: normal; }
}

@media (max-width: 480px) {
  :root { --container: 92%; }
}

/* ============================================
   APP SHOWCASE — illustrative, replaceable device screens
   ============================================ */

.product-showcase {
  position: relative;
  z-index: 3;
  margin-top: -4rem;
  padding-bottom: clamp(2rem, 5vw, 5rem);
}
.product-showcase::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% 0 0;
  background: radial-gradient(ellipse at 52% 58%, rgba(59, 130, 255, 0.15), transparent 68%);
  /* Fade the glow to zero before its section boundary instead of cutting it off. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 70%, transparent 100%);
  pointer-events: none;
}
.showcase-viewport {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  /* Let device shadows fade into the shared gradient on desktop. */
  overflow: visible;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding: 24px;
  -webkit-overflow-scrolling: touch;
}
/* Keep sideways gestures in the carousel, but allow vertical page scrolling.
   Match Lenis's selector specificity to override its two-axis containment. */
.showcase-viewport, .lenis .showcase-viewport { overscroll-behavior: contain auto; }
.showcase-viewport::-webkit-scrollbar { display: none; }
.showcase-viewport:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: 12px; }
.showcase-devices {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  width: max-content;
  margin: 0 auto;
  padding: 22px 90px 26px 20px;
}
.showcase-phone {
  position: relative;
  flex: 0 0 auto;
  width: 22em;
  aspect-ratio: 9 / 19.5;
  padding: 0.65em;
  border: 1px solid #74767c;
  border-radius: 3em;
  background: linear-gradient(105deg, #64676c 0%, #151619 5%, #0c0d0f 45%, #45484d 98%, #93959a 100%);
  box-shadow: inset 0 0 0 2px #151619, inset 0 0 0 3px rgba(255,255,255,.12), 0 22px 44px rgba(0,0,0,.48);
  font-family: var(--font-body);
  font-size: clamp(10px, .94vw, 12px);
  scroll-snap-align: center;
}
.showcase-slide, .showcase-device-slot { display: contents; }
.showcase-slide-caption { display: none; }
.showcase-slide:not(:first-child) .showcase-phone { margin-left: -18px; }
.showcase-slide:nth-child(1) .showcase-phone { z-index: 1; }
.showcase-slide:nth-child(2) .showcase-phone { z-index: 2; }
.showcase-slide:nth-child(3) .showcase-phone { z-index: 3; }
.showcase-slide:nth-child(5) .showcase-phone { z-index: 4; }
.showcase-phone::before, .showcase-phone::after { content: ""; position: absolute; width: 3px; background: linear-gradient(#86898e, #22252a); border-radius: 2px; }
.showcase-phone::before { left: -3px; top: 8em; height: 4em; }
.showcase-phone::after { right: -3px; top: 11em; height: 5em; }
.phone-screen { position: relative; height: 100%; overflow: hidden; border: 1px solid #07080a; border-radius: 2.4em; background: #101216; color: #eceef3; }
.phone-status { display: flex; justify-content: space-between; align-items: center; height: 3.1em; padding: .75em 1.1em 0; font-size: .85em; font-weight: 600; }
.phone-status-icons { font-size: .85em; letter-spacing: 2px; }
.phone-island { position: absolute; top: .65em; left: 50%; transform: translateX(-50%); width: 6.2em; height: 1.65em; border-radius: 20px; background: #030304; box-shadow: inset -9px 0 0 -7px #102044; }
.phone-app { padding: .9em 1.05em 4.2em; }
.preview-topline { display: flex; align-items: center; gap: .6em; margin-bottom: 1.1em; }
.preview-avatar { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: #242b38; border: 1px solid #455375; font-size: .8em; font-weight: 600; }
.preview-wordmark { font-family: var(--font-display); font-size: 1.1em; font-weight: 600; letter-spacing: -.04em; }
.preview-top-dot { margin-left: auto; width: .45em; height: .45em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(59,130,255,.4); }
.preview-page-heading { display: flex; flex-direction: column; gap: .35em; margin-bottom: 1.15em; }
.preview-page-heading > strong { font-family: var(--font-display); font-size: 2em; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.preview-page-heading > span:last-child:not(:first-child) { color: #979eac; font-size: .9em; }
.preview-eyebrow, .preview-card-kicker { font-family: var(--font-body); font-weight: 600; font-size: .62em; letter-spacing: .1em; color: #8b96ac; }
.preview-run-card { padding: 1.05em; border: 1px solid #31528a; border-radius: 1.2em; background: linear-gradient(135deg, #1c3154, #141e31); }
.preview-card-kicker { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75em; }
.preview-run-card > strong { display: block; font-family: var(--font-display); font-size: 1.65em; line-height: 1.15; font-weight: 600; letter-spacing: -.03em; }
.preview-card-sub { display: block; font-size: .8em; color: #abb9d1; margin-top: .4em; }
.preview-sync-dot { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: #91c4b2; flex-shrink: 0; }
.preview-run-details { display: flex; gap: 1.5em; margin: 1.1em 0; }
.preview-run-details > span { display: flex; flex-direction: column; color: #94a2ba; font-size: .7em; }
.preview-run-details b { font-family: var(--font-display); font-size: 1.7em; font-weight: 500; color: #eceef3; line-height: 1.3; }
.preview-watch-link { display: flex; gap: .5em; align-items: center; padding-top: .8em; border-top: 1px solid #334766; font-size: .73em; color: #c5d4ec; }
.preview-watch-link svg { width: 1.4em; height: 1.4em; flex-shrink: 0; }
.preview-health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65em; margin-top: .8em; }
.preview-health-card { position: relative; display: flex; flex-direction: column; gap: .22em; padding: .8em; border: 1px solid #2a2e38; border-radius: 1em; background: #1a1d24; }
.preview-health-card > span:not(.preview-health-icon):not(.preview-optional) { font-size: .8em; color: #b3bbca; }
.preview-health-card > strong { font-family: var(--font-display); font-size: 1.6em; font-weight: 500; letter-spacing: -.02em; }
.preview-health-card > small { font-size: .7em; color: #8994a7; }
.preview-health-icon { color: #b6bffa; font-size: 1.3em; line-height: 1; margin-bottom: .15em; }
.preview-food-icon { color: #cfb588; }
.preview-optional { font-size: .6em; color: #aaa28f; margin-top: .7em; }
.preview-sleep-bars { display: flex; gap: 2px; height: .7em; align-items: center; margin-top: .5em; }
.preview-sleep-bars i { flex: 1; height: 100%; background: #8292cd; border-radius: 2px; }
.preview-sleep-bars i:nth-child(2n) { height: 65%; background: #b4bfe5; }
.preview-sleep-bars i:nth-child(3n) { height: 85%; background: #576da9; }
.preview-note-orb { width: 1.1em; height: 1.1em; margin-top: .15em; flex-shrink: 0; border: 1px solid #3b82ff; border-radius: 50%; background: radial-gradient(circle at 45% 40%, #86b7ff, #3069d7 45%, #121b2a 72%); box-shadow: 0 0 8px rgba(59,130,255,.2); }
.preview-tabs { position: absolute; bottom: 1.35em; left: 0; right: 0; display: flex; justify-content: space-around; padding: .75em .7em .25em; border-top: 1px solid #252a34; background: #101216; }
.preview-tabs > span { display: flex; flex-direction: column; align-items: center; gap: .12em; font-size: 1.25em; line-height: 1; color: #757f92; }
.preview-tabs small { font-size: .48em; line-height: 1.5; }
.preview-tabs .is-active { color: #72a6ff; }
.phone-home-indicator { position: absolute; bottom: .6em; left: 50%; transform: translateX(-50%); height: .3em; width: 7em; border-radius: 5px; background: #e3e6ec; }
.preview-chat-user { margin: .65em 0 .8em 1.3em; padding: .85em 1em; border: 1px solid #325285; border-radius: 1.1em 1.1em .3em 1.1em; background: #203653; color: #e4ebf7; font-size: .92em; line-height: 1.45; }
.preview-chat-coach { margin: 0 .2em 0 0; font-size: .85em; line-height: 1.45; }
.preview-chat-author { display: flex; gap: .5em; align-items: center; color: #d0d9ea; margin-bottom: .4em; font-weight: 600; }
.preview-chat-coach p { color: #aeb9cd; }
.preview-chat-user-short { font-size: .8em; padding: .75em .9em; }
.preview-context { display: flex; align-items: center; gap: .6em; margin: 1em 0; color: #a2b7ab; font-size: .65em; }
.preview-generated { padding: .85em; border-radius: .9em; border: 1px solid #2e3c55; background: #191f2c; }
.preview-generated > strong { display: block; font-family: var(--font-display); font-size: 1.13em; font-weight: 500; line-height: 1.15; margin-bottom: .45em; }
.preview-generated > span:not(.preview-card-kicker):not(.preview-faux-button) { font-size: .73em; color: #a4aec1; }
.preview-generated > div { display: flex; flex-wrap: wrap; gap: .35em; margin: .8em 0; }
.preview-generated > div > span { padding: .2em .5em; border-radius: .4em; background: #252e40; color: #b1c3e3; font-size: .65em; }
.preview-faux-button { display: flex; align-items: center; justify-content: space-between; padding: .6em .9em; background: var(--action-background); color: white; border-radius: 20px; font-size: .77em; font-weight: 600; }
.preview-goal { display: flex; align-items: center; gap: .8em; padding: .9em; background: #1b2332; border: 1px solid #2d3e5a; border-radius: .9em; }
.preview-goal-icon { display: grid; place-items: center; width: 2.4em; height: 2.6em; border-radius: .6em; background: #283e65; color: #b4cffc; font-family: var(--font-display); font-size: 1.15em; font-weight: 600; }
.preview-goal > div { display: flex; flex-direction: column; gap: .2em; }
.preview-goal strong { font-family: var(--font-display); font-weight: 500; font-size: 1.25em; }
.preview-goal > div > span { color: #9cacc4; font-size: .73em; }
.preview-week-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5em; margin: .95em 0 .65em; }
.preview-week-heading strong { font-size: 1.05em; font-weight: 500; }
.preview-week-heading > span { font-size: .68em; color: #8f9aaf; }
.preview-plan-list { display: flex; flex-direction: column; gap: .4em; }
.preview-plan-row { display: flex; align-items: center; gap: .6em; min-height: 3.5em; padding: .5em .55em; border: 1px solid #282e39; border-radius: .75em; background: #191d25; }
.preview-plan-row-active { background: #192941; border-color: #34598f; }
.preview-day { width: 2.1em; flex-shrink: 0; font-family: var(--font-body); font-weight: 600; font-size: .61em; color: #93a1b9; }
.preview-activity-icon { display: grid; place-items: center; width: 1.7em; height: 1.7em; flex-shrink: 0; border-radius: .45em; background: #233b5f; color: #8bb6fa; font-size: .85em; }
.preview-strength-icon { color: #d5bea2; background: #393127; }
.preview-strength-icon svg { width: 1.5em; height: 1.5em; }
.preview-plan-row > div { display: flex; flex-direction: column; gap: .12em; min-width: 0; }
.preview-plan-row strong { font-size: .87em; font-weight: 500; }
.preview-plan-row > div > span { font-size: .65em; color: #8c9ab0; }
.preview-row-dot { width: .4em; height: .4em; border-radius: 50%; background: #8caee4; margin-left: auto; }
.preview-route { position: relative; height: 8.2em; overflow: hidden; border-radius: .9em; background: #1a1e27; border: 1px solid #2a303c; }
.preview-route svg { width: 100%; height: 100%; }
.preview-route > span { position: absolute; bottom: .55em; left: .8em; color: #a1acbf; font-size: .62em; }
.preview-result-title { margin: 1em 0 .8em; }
.preview-result-title > strong { display: block; font-family: var(--font-display); font-size: 1.55em; line-height: 1.15; font-weight: 600; letter-spacing: -.035em; }
.preview-result-title > span { display: flex; align-items: center; gap: .5em; margin-top: .4em; color: #a4bbae; font-size: .63em; }
.preview-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1em .8em; }
.preview-result-grid > div { display: flex; flex-direction: column; }
.preview-result-grid > div > span { color: #8e9aae; font-size: .65em; }
.preview-result-grid strong { font-family: var(--font-display); font-size: 1.8em; font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.preview-result-grid strong small { font-family: var(--font-body); font-size: .35em; color: #9ba8bc; letter-spacing: 0; }
.preview-pace-chart { margin-top: 1.15em; padding-top: .85em; border-top: 1px solid #272e3b; }
.preview-pace-chart > div { display: flex; align-items: baseline; justify-content: space-between; gap: .5em; }
.preview-pace-chart strong { font-size: .8em; font-weight: 500; }
.preview-pace-chart span { font-size: .6em; color: #8998af; }
.preview-pace-chart svg { width: 100%; height: 3.3em; margin-top: .3em; }
.showcase-watch { position: absolute; z-index: 5; right: 12px; bottom: 8px; width: 178px; height: 308px; filter: drop-shadow(0 15px 18px rgba(0,0,0,.7)); }
.watch-strap { position: absolute; left: 29px; width: 120px; height: 105px; border: 1px solid #343638; background: repeating-linear-gradient(0deg, #292d2d 0 4px, #1b1e1f 4px 7px); }
.watch-strap-top { top: 0; border-radius: 13px 13px 0 0; transform: perspective(300px) rotateX(-12deg); }
.watch-strap-bottom { bottom: 0; border-radius: 0 0 17px 17px; background-image: radial-gradient(ellipse, #111416 0 3px, transparent 4px), repeating-linear-gradient(0deg, #292d2d 0 4px, #1b1e1f 4px 7px); background-size: 29px 24px, auto; }
.watch-case { position: absolute; top: 49px; left: 0; width: 178px; height: 214px; padding: 9px; border-radius: 44px; border: 1px solid #c7c2b8; background: linear-gradient(115deg, #d2cec2 0%, #797972 9%, #b4b1a6 21%, #d7d4cb 55%, #666760 94%, #b5b4a9 100%); box-shadow: inset 0 0 0 3px #8d8c83, inset 0 0 0 4px #d0ccc0; }
.watch-screen { position: relative; height: 100%; padding: 17px 12px 11px; border-radius: 35px; background: #030403; border: 2px solid #121411; color: #f6f6f4; }
.watch-crown { position: absolute; top: 43px; right: -10px; width: 11px; height: 29px; border-radius: 4px; border: 1px solid #c7c2b8; background: repeating-linear-gradient(0deg, #6a6d66 0 2px, #aaa99e 2px 3px); }
.watch-action-button { position: absolute; top: 76px; left: -4px; height: 32px; width: 4px; border-radius: 3px; background: #e5752f; }
.watch-topline { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 7px; line-height: 1.2; }
.watch-topline > span:first-child { color: #b0fb54; font-weight: 600; }
.watch-topline > span:last-child { font-size: 10px; }
.watch-workout-name { font-size: 7px; color: #92968b; margin: 5px 0 8px; white-space: nowrap; }
.watch-time { font-family: var(--font-body); font-variant-numeric: tabular-nums; font-size: 28px; line-height: 1.05; letter-spacing: -1.5px; font-weight: 500; color: #edfa53; white-space: nowrap; }
.watch-time > span { font-size: 15px; letter-spacing: -.5px; }
.watch-heart { font-family: var(--font-body); font-size: 23px; font-weight: 500; line-height: 1.2; margin: 2px 0; }
.watch-heart > span { color: #fa554e; font-size: 15px; }
.watch-heart small { font-size: 7px; color: #9e9f96; }
.watch-distance { font-size: 29px; line-height: 1.1; font-weight: 500; letter-spacing: -1px; }
.watch-distance small, .watch-pace small { font-size: 9px; letter-spacing: 0; }
.watch-pace { font-size: 25px; line-height: 1.1; font-weight: 500; letter-spacing: -.5px; }
.watch-pages { display: flex; justify-content: center; gap: 4px; margin-top: 5px; }
.watch-pages i { width: 3px; height: 3px; background: #55594b; border-radius: 50%; }
.watch-pages i:first-child { background: #b9f26e; }
.showcase-navigation { display: none; width: min(92%, 520px); margin: .2rem auto 0; }
.showcase-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  padding: 5px;
  border: 1px solid #2a3242;
  border-radius: 18px;
  background: rgba(17, 22, 32, .8);
}
.showcase-tab {
  min-height: 48px;
  padding: .5rem .25rem;
  border-radius: 12px;
  color: #aab1bf;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.25;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.showcase-tab:hover { color: var(--text-primary); background: rgba(255,255,255,.045); }
.showcase-tab[aria-current="step"] {
  background: var(--action-background);
  color: var(--action-foreground);
  box-shadow: inset 0 0 0 1px rgba(59,130,255,.45);
}
.showcase-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.showcase-copy { max-width: 1200px; padding: 2rem 0 0; text-align: center; }
.showcase-compatibility {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(.85rem, 2vw, 1.15rem) clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
  text-align: center;
  font-size: .9rem;
  line-height: 1.6;
  color: #aaa9a1;
}
.showcase-compatibility-summary { margin-bottom: .4rem; color: var(--text-primary); font-size: .95rem; }
.showcase-compatibility-summary strong { font-weight: 600; }
.showcase-compatibility-summary span { white-space: nowrap; }
.showcase-compatibility-details { max-width: 560px; margin: 0 auto; text-wrap: balance; }
.showcase-compatibility-break { display: none; }

@media (min-width: 961px) {
  .showcase-compatibility-break { display: inline; }
}

@media (max-width: 960px) {
  .product-showcase {
    --showcase-slide-width: min(72vw, 340px);
    /* Reserve room for the fixed navigation, caption, and preview tabs. */
    --showcase-phone-size: clamp(6.5px, min(2.35vw, calc((100svh - var(--nav-height) - 13rem) / 47.6667)), 11px);
    margin-top: -1rem;
  }
  .showcase-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding: 0;
  }
  .showcase-devices {
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 16px calc((100vw - var(--showcase-slide-width)) / 2) 20px;
  }
  .showcase-slide {
    display: flex;
    flex: 0 0 var(--showcase-slide-width);
    width: var(--showcase-slide-width);
    flex-direction: column;
    align-items: center;
    scroll-snap-align: center;
  }
  .showcase-device-slot {
    display: grid;
    place-items: center;
    width: 100%;
    height: calc(var(--showcase-phone-size) * 22 * 19.5 / 9);
  }
  .showcase-phone { font-size: var(--showcase-phone-size); scroll-snap-align: none; }
  .showcase-slide:not(:first-child) .showcase-phone { margin-left: 0; }
  .showcase-watch { position: relative; right: auto; bottom: auto; transform: scale(1.1); }
  .showcase-slide-caption {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 100%;
    padding: 0 12px;
    margin-top: 1rem;
    text-align: center;
    line-height: 1.5;
    text-wrap: pretty;
  }
  .showcase-slide-caption strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; color: var(--text-primary); }
  .showcase-slide-caption span { font-size: 1rem; color: #b9b9b1; }
  .showcase-navigation:not([hidden]) { display: block; }
  .showcase-copy { padding-top: 2.3rem; }
}

@media (max-width: 960px) and (max-height: 600px) {
  .showcase-watch { transform: scale(.85); }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .hero .hero-bg video {
    opacity: 0;
    transition: none;
  }
  .hero-motion-toggle { display: none; }

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

  /* Scroll-reveal elements: render in place, no fade-in or slide */
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Website privacy notice */
.privacy-content { max-width: 760px; padding: 3rem 0 4rem; }
.privacy-content h1 { margin: 2rem 0 0.25rem; font-size: clamp(2.25rem, 7vw, 3.5rem); }
.privacy-content h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.privacy-content section { margin: 2rem 0; }
.privacy-content p { margin-bottom: 1rem; color: var(--text-primary); }
.privacy-content .privacy-date { color: var(--text-secondary); margin-bottom: 1.5rem; }
.privacy-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.privacy-content a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.privacy-back { display: inline-block; padding: 0.5rem 0; }
