/* === SECTION DIVIDER — animated ECG pulse === */
.section-divider {
  position: relative;
  width: 100%;
  height: 60px; /* matches the top divider for visual consistency */
  margin: 0;
  overflow: visible; /* let the pulse glow bleed past the strip */
  pointer-events: none;
}
.section-divider--top {
  position: absolute;
  top: 80px; /* sits right below the fixed header */
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--content-max);
  height: 60px; /* compact strip; overflow:visible lets the glow breathe */
  z-index: 4;
  overflow: visible;
}
.section-divider svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.section-divider .ecg-base {
  fill: none;
  stroke: rgba(45, 212, 191, 0.18);
  stroke-width: 1;
}
.section-divider .ecg-pulse {
  fill: none;
  stroke: #2DD4BF;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(45, 212, 191, 0.65)) drop-shadow(0 0 10px rgba(45, 212, 191, 0.35));
  stroke-dasharray: 200 1200;
  stroke-dashoffset: 1400;
  animation: ecg-sweep 4.5s linear infinite;
}
@keyframes ecg-sweep {
  0%   { stroke-dashoffset: 1400; }
  100% { stroke-dashoffset: 0; }
}
@media (max-width: 640px) {
  .section-divider:not(.section-divider--top) { height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .section-divider .ecg-pulse {
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 0.55;
  }
}

/* === UNIFIED PAGE BACKGROUND — matches the iframe's interior (slate-950) === */
html, body {
  background: #020618 !important;
}
body {
  background: #020618 !important;
}
/* Kill all per-section background images and overlay frames */
.hero,
.hero::before,
.section--what,
.section--what::before,
.section--vitality,
.section--vitality::before,
.section--patients,
.section--patients::before,
.section--providers,
.section--providers::before,
.section--security,
.section--security::before,
.section--optimization,
.section--contact,
.hero-v2,
.hero-v2 .hero__bg-grid {
  background: transparent !important;
  background-image: none !important;
}
.hero-v2 { background: transparent !important; }

/* === HEADER FIX: wordmark left, nav right-aligned, vertically centered === */
.header-v2 .header__inner,
.header-v2 > .container {
  max-width: var(--content-max) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1.5rem, 3vw, 3rem) !important;
  padding-right: clamp(1.5rem, 3vw, 3rem) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem;
}
.header-v2 .wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  padding: 8px 0;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.header-v2 .wordmark__name {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
/* Tagline sits under HealthV.ai. Tightened tracking + auto-fit font-size
   so "VITALITY SIMPLIFIED V<n>" never extends past the wordmark's right
   edge regardless of viewport. */
.header-v2 .wordmark__tagline {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
  margin-left: 2px;
  white-space: nowrap;
}
.header-v2 .wordmark__version {
  margin-left: 6px;
  font-weight: 800;
}
.header-v2 .wordmark .v {
  color: var(--accent);
}
.header-v2 .wordmark .ai {
  color: var(--text-muted);
  font-weight: 600;
}
.header-v2 .nav-v2 {
  margin-left: auto;
}

/* === LOGO BANNER: light up dark monochrome SVG logos on dark bg === */
.hero-v2__logo-banner .logo-banner__img {
  filter: brightness(0) invert(1) !important;
  opacity: 0.85 !important;
}
.hero-v2__logo-banner .logo-banner__img:hover {
  opacity: 1 !important;
}

/* === GLOBAL DARK THEME OVERRIDES === */
:root {
  --bg-primary: #04101A;
  --bg-soft: #061625;
  --bg-alt: #0B2942;
  --surface-card: #0F172A;
  --surface-glass: rgba(15, 23, 42, 0.72);

  --text-heading: #F8FAFC;
  --text-body: #CBD5E1;
  --text-muted: #94A3B8;

  --border: rgba(148, 163, 184, 0.10);
  --border-strong: rgba(148, 163, 184, 0.18);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 40px rgba(13, 148, 136, 0.22);

  /* Unified content max-width — header, hero/iframe, dividers, and
     marketing sections all center within this. The page #020618 background
     fills the side margins on screens wider than this. */
  --content-max: 1440px;
}
html, body {
  background: var(--bg-primary);
  color: var(--text-body);
}
.section, .section--vitality, .section--patients, .section--optimization, .section--security, .section--what {
  background: transparent !important;
}

/* Center marketing-section content + the inter-section dividers at the same
   max-width as the hero so the whole page reads as one centered column. */
.section .container {
  max-width: var(--content-max);
}
.section-divider:not(.section-divider--top) {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}
.section__title { color: var(--text-heading); }
.section__subtitle { color: var(--text-muted); }
.wordmark { color: var(--text-heading); }
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); }
.footer__copy, .footer__email { color: var(--text-muted); }

/* === HEADER v2 — nav + Launch App === */
.header-v2 {
  background: #020618 !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
.header-v2.scrolled {
  background: #020618 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.nav-v2 {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav-v2__link {
  font-size: 0.92rem;
  font-weight: 600;
  color: #CBD5E1;
  text-decoration: none;
  letter-spacing: 0.005em;
  transition: color 0.15s ease;
  position: relative;
}
.nav-v2__link:hover { color: #5EEAD4; }
.nav-v2__link.active { color: #5EEAD4; }
.nav-v2__link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.btn-launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.15rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 6px 20px -8px rgba(13, 148, 136, 0.55);
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
.btn-launch-pill:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(13, 148, 136, 0.65);
}

/* === HERO v2: full-width dashboard iframe with hero overlay === */
.hero-v2 {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

/* Sized so header + top-ekg + iframe + bottom-ekg fit within a 900px viewport,
   leaving the inter-section EKG just below the Health To-Dos at the fold. */
.hero-v2 .hero-v2__pane--dashboard {
  position: relative;
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  min-height: 900px;
  padding-left: 0;
  padding-top: 140px; /* 80px header + 60px top EKG strip (so the humanoid head clears the strip) */
}
.hero-v2 .dashprev-iframe {
  width: 100%;
  height: 100%;
  min-height: 760px; /* dashboard panel 560 + Health To-Dos ~200 (3 compact rows hugging the bottom) */
  border: 0;
  display: block;
  background: transparent;
}

/* Mobile (≤900px): tighten the hero so the dashboard appears just below the
   header. The desktop padding (140px) leaves a huge dead band on phones.
   The hero-v2 itself also gets a desktop-default `padding: 6rem 0 3rem`
   from the ≤980px rule below, which stacked with this pane's padding-top
   added ~78px of empty space above the iframe. Zero out the section
   padding so the iframe begins right under the fixed mobile header. */
@media (max-width: 900px) {
  .hero-v2 {
    padding: 0;
  }
  .hero-v2 .hero-v2__pane--dashboard {
    min-height: 0;
    padding-top: 100px; /* fixed mobile header (~92px) + 8px breathing room */
    padding-bottom: 0;
  }
  /* Cap the iframe to (viewport - header - breathing room) so it fits in
     the visible mobile viewport instead of growing tall enough that the
     labs band at its bottom edge slides off-screen. svh accounts for
     the mobile browser's URL bar at its smallest. */
  .hero-v2 .dashprev-iframe {
    min-height: 0;
    height: calc(100svh - 110px);
    max-height: calc(100svh - 110px);
  }
  /* Hide the top EKG strip on mobile — it doesn't fit cleanly in the narrow
     viewport and adds visual clutter above the dashboard. */
  .section-divider--top {
    display: none;
  }
}
/* Older fallback rules below set iframe height: 720px / 580px which would
   override the @media (max-width: 900px) cap above; reset them on those
   widths so our svh-based clamp wins. */
@media (max-width: 980px) {
  .dashprev-iframe { height: calc(100svh - 110px) !important; min-height: 0 !important; }
}
@media (max-width: 640px) {
  .dashprev-iframe { height: calc(100svh - 110px) !important; min-height: 0 !important; }
}

/* Hero text overlay — absolute, top-left, sits to the left of the iframe */
.hero-v2 .hero-v2__pane--hero {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: min(38%, 480px);
  padding: clamp(6rem, 12vh, 9rem) clamp(1.5rem, 3vw, 3rem) 3rem clamp(1.5rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 5;
  background: transparent;
}

/* (Legacy: .hero-v2 > .container no longer exists in the markup since the
   design pass moved to a direct .hero-v2__pane--dashboard child. The cap
   now lives on .hero-v2__pane--dashboard above. Keeping a no-op rule
   reserves the selector in case the markup is restored.) */
.hero-v2 > .container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-v2 .hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-v2__grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
  position: relative;
  z-index: 1;
}

/* HERO LEFT */
.hero-v2__pane--hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0;
}

.hero-v2__headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #F8FAFC;
  margin: 0 0 1rem;
}

.hero-v2__sub {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #CBD5E1;
  margin: 0 0 1.6rem;
}

.hero-v2__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 14px 34px -12px rgba(13, 148, 136, 0.55);
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out), background 0.15s var(--ease-out);
  align-self: flex-start;
}
.hero-v2__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(13, 148, 136, 0.65);
}

.hero-v2__integrations {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}
.hero-v2__integrations-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 0.7rem;
}
.hero-v2__integrations-row {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: wrap;
}
.hero-v2__integrations-row img {
  height: 22px;
  max-width: 110px;
  object-fit: contain;
  opacity: 0.65;
  filter: grayscale(0.4);
  transition: opacity 0.15s ease;
}
.hero-v2__integrations-row img:hover { opacity: 1; filter: none; }

/* Logo carousel inside hero pane — slimmer */
.hero-v2__logo-banner {
  margin-top: 0;
  padding: 0.6rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.hero-v2__logo-banner .logo-banner__track {
  gap: 2.5rem;
}
.hero-v2__logo-banner .logo-banner__img {
  height: 28px;
  max-width: 130px;
  opacity: 0.7;
  filter: grayscale(0.4);
}

/* === DASHBOARD PREVIEW — live app via iframe === */
.hero-v2__pane--dashboard {
  display: flex;
}

.dashprev-iframe {
  width: 100%;
  min-height: 800px;
  height: 86vh;
  max-height: 1000px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  display: block;
}

@media (max-width: 1100px) {
  .hero-v2__grid { grid-template-columns: 220px minmax(0, 1fr); gap: 1rem; }
}
@media (max-width: 980px) {
  .dashprev-iframe { min-height: 640px; height: 720px; }
}
@media (max-width: 640px) {
  .dashprev-iframe { min-height: 540px; height: 580px; border-radius: 14px; }
}

.dashprev {
  width: 100%;
  background: radial-gradient(ellipse at 50% 30%, #0B2942 0%, #061625 60%, #04101A 100%);
  color: #E2E8F0;
  border-radius: 24px;
  padding: 1.4rem 1.4rem 1rem;
  box-shadow:
    0 40px 80px -25px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(94, 234, 212, 0.05) inset,
    0 0 80px -20px rgba(13, 148, 136, 0.18) inset;
  position: relative;
  overflow: hidden;
}

/* Subtle starfield via radial-gradient dots */
.dashprev__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 28% 82%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.2px 1.2px at 65% 12%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 45% 50%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1.2px 1.2px at 5% 65%, rgba(255,255,255,0.4), transparent);
  pointer-events: none;
}

.dashprev__grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr 0.95fr;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

/* === LEFT COLUMN: Health metrics + ring gauges === */
.dashprev__left { padding: 0.4rem 0.2rem; }
.dashprev__perf-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #2DD4BF;
  margin-bottom: 0.35rem;
}
.dashprev__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 1.1rem;
  letter-spacing: -0.01em;
}
.dashprev__gauge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 0.7rem;
  justify-items: center;
}

/* Ring gauge (Sleep / HRV / Steps / Weight) */
.ring-gauge {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ring-gauge__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.45));
}
.ring-gauge[data-color="amber"] .ring-gauge__svg {
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.55));
}
.ring-gauge[data-color="muted"] .ring-gauge__svg {
  filter: none;
}
.ring-gauge__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 5;
}
.ring-gauge__fill {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}
.ring-gauge__icon {
  position: absolute;
  top: 22px;
  color: rgba(226, 232, 240, 0.6);
}
.ring-gauge[data-color="amber"] .ring-gauge__icon { color: #FBBF24; }
.ring-gauge__value {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.ring-gauge[data-color="muted"] .ring-gauge__value {
  color: #64748B;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}
.ring-gauge__label {
  position: absolute;
  bottom: -18px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #2DD4BF;
}
.ring-gauge[data-color="amber"] .ring-gauge__label { color: #FBBF24; }
.ring-gauge[data-color="muted"] .ring-gauge__label { color: #64748B; }
.ring-gauge__sub {
  position: absolute;
  bottom: -32px;
  font-size: 0.6rem;
  color: rgba(148, 163, 184, 0.7);
  white-space: nowrap;
}

/* === CENTER COLUMN: Humanoid === */
.dashprev__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}
.humanoid-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.humanoid {
  width: 100%;
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 0 24px rgba(16, 185, 129, 0.35));
}
/* ECG strip below humanoid */
.ecg-strip {
  margin-top: -10px;
  background: rgba(15, 32, 50, 0.85);
  border: 1px solid rgba(94, 234, 212, 0.15);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  width: 100%;
  max-width: 240px;
  text-align: center;
  backdrop-filter: blur(6px);
}
.ecg-strip__svg {
  width: 100%;
  height: 30px;
  display: block;
  filter: drop-shadow(0 0 4px rgba(94, 234, 212, 0.5));
}
.ecg-strip__meta {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 5px;
  font-size: 0.72rem;
  color: #94A3B8;
  margin-top: 4px;
}
.ecg-strip__bpm strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: #2DD4BF;
}
.ecg-strip__sep { color: rgba(148, 163, 184, 0.4); }
.ecg-strip__rhythm { color: #94A3B8; }

/* === RIGHT COLUMN: Vitality + AI === */
.dashprev__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.4rem 0.2rem;
}
.dashprev__stamp {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: #2DD4BF;
  margin-bottom: 0.35rem;
}
.dashprev__greet {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.9rem;
  letter-spacing: -0.01em;
}
.dashprev__greet span {
  color: #2DD4BF;
}
.vitality-circle {
  position: relative;
  width: 84px;
  height: 84px;
  margin-bottom: 0.4rem;
}
.vitality-circle__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.6));
}
.vitality-circle__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}
.vitality-circle__fill {
  fill: none;
  stroke: #10B981;
  stroke-width: 6;
  stroke-linecap: round;
}
.vitality-circle__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.vitality-circle__num {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.vitality-circle__den {
  font-size: 0.65rem;
  color: #94A3B8;
  align-self: flex-end;
  margin-bottom: 4px;
}
.vitality-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #10B981;
  letter-spacing: 0.16em;
}
.vitality-sub {
  font-size: 0.6rem;
  font-weight: 600;
  color: #2DD4BF;
  letter-spacing: 0.18em;
  margin-bottom: 0.7rem;
}

.ai-block {
  background: rgba(15, 32, 50, 0.5);
  border: 1px solid rgba(94, 234, 212, 0.1);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  text-align: left;
  margin-bottom: 0.6rem;
}
.ai-block__title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #2DD4BF;
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}
.ai-block__text {
  font-size: 0.74rem;
  line-height: 1.45;
  color: #CBD5E1;
  margin: 0;
}
.ai-block__text strong {
  color: #fff;
  font-weight: 700;
}

.ask-input {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(15, 32, 50, 0.7);
  border: 1px solid rgba(94, 234, 212, 0.15);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
}
.ask-input input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #94A3B8;
  font-size: 0.78rem;
  padding: 6px 0;
}
.ask-input input::placeholder { color: rgba(148, 163, 184, 0.6); }
.ask-input__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.15);
  border: none;
  color: #2DD4BF;
  cursor: pointer;
}

/* === LAB METRICS RIBBON === */
.dashprev__labs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 0.4rem 1.1rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(94, 234, 212, 0.08);
  position: relative;
  z-index: 1;
}
.lab-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94A3B8;
}
.lab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.lab-dot--green { background: #10B981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.7); }
.lab-dot--amber { background: #F59E0B; box-shadow: 0 0 6px rgba(245, 158, 11, 0.7); }

/* === RESPONSIVE === */
/* Stack hero above iframe on anything narrower than full desktop, so iframe gets
   full viewport width and the React app inside renders desktop layout. */
@media (max-width: 1280px) {
  .hero-v2__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-v2__pane--hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem 2rem;
    padding: 0;
  }
  .hero-v2__headline { margin: 0; flex: 1 1 auto; }
  .hero-v2__sub { display: none; }
  .hero-v2__cta { align-self: center; }
  .hero-v2__integrations { margin-top: 0.6rem; padding-top: 0.6rem; flex: 1 1 100%; border-top: 0; }
}
@media (max-width: 980px) {
  /* No top/bottom padding here — the .hero-v2__pane--dashboard padding-top
     reserves space for the fixed header (see ≤900px rule above). Adding
     padding here stacks an extra ~80px of dead space above the iframe. */
  .hero-v2 { padding: 0; }
  .nav-v2 { gap: 1.1rem; }
}

@media (max-width: 760px) {
  /* Hide inline nav on mobile — keep hamburger visible (base.css handles it).
     Dark-theme drawer to match the rest of the site (was white). */
  .nav-v2 {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1rem var(--space-lg);
    background: rgba(2, 6, 24, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
  }
  .nav-v2.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-v2__link {
    font-size: 1rem;
    padding: 0.4rem 0;
    width: 100%;
    color: #CBD5E1; /* slate-300 — readable on dark drawer */
  }
  .nav-v2__link:hover { color: #5EEAD4; }
  .btn-launch-pill {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
  }
}

/* Stack dashboard columns on tablet/mobile */
@media (max-width: 720px) {
  .dashprev__grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .dashprev__center { order: -1; }
  .humanoid { max-width: 180px; }
  .dashprev__right { padding-top: 0.8rem; border-top: 1px solid rgba(94, 234, 212, 0.08); }
  .dashprev__labs { gap: 0.4rem 0.8rem; }
}

@media (max-width: 640px) {
  /* No top/bottom padding — the dashboard pane handles header clearance. */
  .hero-v2 { padding: 0; }
  .hero-v2__headline { font-size: clamp(1.85rem, 1.4rem + 2vw, 2.5rem); }
  .hero-v2__cta { width: 100%; justify-content: center; padding: 1rem 1.6rem; }
  .dashprev { padding: 1.1rem; border-radius: 18px; }
  .ring-gauge { width: 84px; height: 84px; }
  .ring-gauge__value { font-size: 0.85rem; }
  .ring-gauge__icon { top: 16px; }
  .humanoid { max-width: 160px; }
  .lab-chip { font-size: 0.6rem; }
  .hero-v2__logo-banner .logo-banner__img { height: 22px; }
}
