/* ═══════════════════════════════════════════════════════
   LAYOUT.CSS — Stitch "Clinical Editorial" v2
   Asymmetric Grids · Bokeh Backgrounds · Mobile-First
   ═══════════════════════════════════════════════════════ */

/* ── Container ───────────────────────────────────────── */
.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--section-padding-x);
}

/* ── Sections ────────────────────────────────────────── */
section {
  padding: var(--section-padding-y) 0;
  position: relative;
}

.section--surface     { background: var(--surface); }
.section--container   { background: var(--surface-container); }
.section--bokeh       { background-image: var(--bokeh-bg); }
.section--mesh        { background-image: var(--mesh-gradient); }
.section--purple      { background: var(--color-purple-mid); }
.section--green       { background: var(--color-green); }
.section--navy        { background: var(--color-navy); }

/* ═══════════════════════════════════════════════════════
   NAVIGATION — Glassmorphic
   ═══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-nav);
  transition: all 0.4s ease;
}

.nav.is-scrolled {
  background: rgba(85, 84, 173, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav__inner {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo img { height: 32px; width: auto; }
.nav__logo-color  { display: block; }
.nav__logo-white  { display: none; }
.nav.is-scrolled .nav__logo-color { display: none; }
.nav.is-scrolled .nav__logo-white { display: block; }

.nav__links {
  display: none;
  align-items: center;
  gap: var(--gap-xl);
}

.nav__links a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-purple);
  letter-spacing: 0;
  transition: color 0.2s ease;
}

.nav__links a:hover { color: var(--color-coral); }

.nav.is-scrolled .nav__links a { color: rgba(255,255,255,0.85); }
.nav.is-scrolled .nav__links a:hover { color: #ffffff; }

.nav__cta { display: none; }

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--on-surface);
  border-radius: 1px;
  transition: background 0.3s ease;
}

.nav.is-scrolled .nav-hamburger span { background: #ffffff; }

/* Mobile nav */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding: 100px 32px 48px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-mobile.is-open { transform: translateX(0); }

.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 400;
  color: var(--on-surface);
  padding: 16px 0;
  display: block;
}

.nav-mobile__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 28px;
  color: var(--on-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-mobile__cta {
  margin-top: auto;
  padding-top: var(--gap-xl);
}

/* ═══════════════════════════════════════════════════════
   HERO — Mesh gradient + Video BG + Kinetic Ticker
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 96px;
  padding-bottom: 140px; /* room for ticker */
  background-image: var(--mesh-gradient);
  background-size: cover;
}

/* Bokeh atmospheric layer */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bokeh-bg);
  pointer-events: none;
  z-index: 1;
}

.hero > .container { position: relative; z-index: 2; }

.hero__grid {
  display: grid;
  gap: var(--gap-2xl);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xl);
  align-self: center;
}

.hero__copy h1 {
  line-height: 0.95;
}

.hero__copy h1 em {
  color: var(--color-coral-dark);
}

.hero__subhead {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--on-surface-variant);
  line-height: 1.6;
  max-width: 576px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
  align-items: center;
  padding-top: var(--gap-md);
}

/* Hero right side — poster stat card (image + gradient + caption).
   Visible on every breakpoint; on mobile it stacks below the copy.
   Mobile-specific sizing lives further below, after the base rules. */
.hero__visual {
  position: relative;
  display: block;
  margin-top: var(--gap-2xl);
}

.hero__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-cinematic);
  position: relative;
}

.hero__image-wrap .image-placeholder {
  aspect-ratio: 4 / 5;
  min-height: 400px;
}

/* Hero stat card — editorial composition: lab-reports image as the
   backdrop, coral→burgundy→purple gradient layered on top to tint and
   unify, content (overline + stat + caption) anchored at the bottom
   like a photo caption. No CTA on the card itself; the section already
   has the primary CTA + text link in the left column. */
.hero-stat-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  /* Fallback gradient if the image fails to load */
  background: linear-gradient(160deg, #e82065 0%, #b8004b 32%, #5e2877 65%, #39378f 100%);
  color: #ffffff;
  min-height: 440px;
  box-shadow:
    0 30px 70px -20px rgba(57, 55, 143, 0.45),
    0 12px 32px -10px rgba(232, 32, 101, 0.28);
  overflow: hidden;
}

.hero-stat-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Slight desaturation softens the lab-paper warmth so the gradient
     reads cleanly without color clash. */
  filter: saturate(0.6);
}

.hero-stat-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Vertical wash: image reads cleanly at the top, deepens to a near-
     opaque deep purple at the bottom so the caption text contrasts. */
  background: linear-gradient(180deg,
    rgba(57, 55, 143, 0)    0%,
    rgba(57, 55, 143, 0.18) 35%,
    rgba(94, 40, 119, 0.65) 60%,
    rgba(42, 40, 115, 0.95) 100%);
}

.hero-stat-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-stat-card__overline {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--gap-md);
}

.hero-stat-card__num {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(3.25rem, 6vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 6px;
  font-variant-numeric: tabular-nums;
}

.hero-stat-card__num sup {
  font-size: 0.20em;
  font-style: normal;
  font-weight: 500;
  vertical-align: super;
  margin: 0 0.04em 0 0;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0;
}

.hero-stat-card__label {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.075rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 32ch;
}

/* "View the Evidence" link under the stat card — centered, purple,
   underlined. Sits in the right column below the card. */
.hero-stat-card__link {
  display: block;
  text-align: center;
  margin-top: var(--gap-lg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-purple);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.hero-stat-card__link:hover {
  color: var(--color-coral-dark);
}

/* Mobile-only sizing for the stat card — capped height keeps the card
   readable on narrow viewports without stretching the image awkwardly.
   Placed after the base rules so the cascade resolves in our favor. */
@media (max-width: 1023.98px) {
  .hero-stat-card {
    min-height: 420px;
    max-width: 520px;
    margin: 0 auto;
  }
  .hero-stat-card__num {
    font-size: clamp(2.75rem, 9vw, 4rem);
  }
  .hero-stat-card__link {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  /* Bokeh orbs that flank the card on desktop crowd the mobile layout. */
  .hero__visual .bokeh-orb {
    display: none;
  }
}

.hero__glass-quote {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  background: var(--glass-bg);
  border-top: var(--glass-border);
  padding: var(--gap-xl);
}

.hero__glass-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-body-lg);
  color: var(--color-purple);
}

/* Bokeh blur orbs */
.bokeh-orb {
  position: absolute;
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: 0;
}

.bokeh-orb--pink {
  background: rgba(255, 217, 222, 0.3);
  filter: blur(50px);
}

.bokeh-orb--purple {
  background: rgba(160, 159, 254, 0.2);
  filter: blur(40px);
}

/* ═══════════════════════════════════════════════════════
   COST OF FAILURE — Asymmetric 2-col
   ═══════════════════════════════════════════════════════ */
.cost__grid {
  display: grid;
  gap: var(--gap-xl);
}

.cost__left { display: flex; flex-direction: column; gap: var(--gap-xl); }

.cost__cards {
  display: grid;
  gap: var(--gap-lg);
}

/* Stagger: second card offset on desktop */
.cost__card-offset { /* applied on desktop */ }

/* ═══════════════════════════════════════════════════════
   TIRT — Purple background with comparison cards
   ═══════════════════════════════════════════════════════ */
.tirt-section {
  overflow: hidden;
  position: relative;
}

.tirt-section__gradient-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(to left, rgba(225,24,97,0.15), transparent);
  pointer-events: none;
}

.tirt__header {
  text-align: center;
  max-width: 768px;
  margin: 0 auto var(--gap-2xl);
}

.tirt__header h2 { color: #ffffff; }

.tirt__header p {
  color: rgba(226, 223, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
}

.tirt__cards {
  display: grid;
  gap: var(--gap-xl);
}

/* ═══════════════════════════════════════════════════════
   PRODUCT — Brief layout (2-col) with overflow for glass card
   ═══════════════════════════════════════════════════════ */
#product { overflow: visible; }
#product > .container { overflow: visible; }
.product__grid {
  display: grid;
  gap: var(--gap-xl);
  overflow: visible;
}

.product__right {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  overflow: visible;
}

/* ═══════════════════════════════════════════════════════
   TESTIMONIALS — Cinematic video cards
   ═══════════════════════════════════════════════════════ */
.testimonials__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--gap-3xl);
}

.testimonials__header h2 em {
  color: var(--color-coral-dark);
}

.testimonials__nav {
  display: none;
  gap: var(--gap-md);
}

.testimonials__nav-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(228, 189, 194, 0.4);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.testimonials__nav-btn:hover { background: #ffffff; }

.testimonials__grid {
  display: grid;
  gap: var(--gap-xl);
}

/* ═══════════════════════════════════════════════════════
   @HOME — Card format (v4)
   ═══════════════════════════════════════════════════════ */
.athome-section {
  background: var(--surface-container);
  position: relative;
}

.athome-card {
  background: var(--color-purple-mid);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-cinematic);
  position: relative;
}

.athome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-coral-green);
}

.athome__grid {
  display: grid;
  gap: var(--gap-xl);
}

.athome__copy {
  padding: var(--gap-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--gap-lg);
}

.athome__copy h2 { color: #ffffff; }
.athome__copy .overline { color: var(--color-coral); }

.athome__subhead {
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(255,255,255,0.8);
  line-height: 1.35;
}

.athome__body {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: var(--leading-relaxed);
}

.athome__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
}

.athome__visual {
  position: relative;
  min-height: 300px;
}

.athome__visual .image-placeholder {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.05);
  border-radius: 0;
  min-height: unset;
}

/* ═══════════════════════════════════════════════════════
   EVIDENCE — Bokeh background
   ═══════════════════════════════════════════════════════ */
.evidence__stats {
  display: grid;
  gap: var(--gap-lg);
  margin-bottom: var(--gap-xl);
}

.evidence__testimonials {
  display: grid;
  gap: var(--gap-lg);
}

/* ═══════════════════════════════════════════════════════
   CLOSING CTA
   ═══════════════════════════════════════════════════════ */
.closing-cta {
  text-align: center;
  position: relative;
  /* Top padding matches refs' bottom; bottom matches refs' top so the
     lime divider sits symmetrically between "Built for clinicians..."
     and the "References" label. */
  padding-top: 64px;
  padding-bottom: 64px;
}

.closing-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #b6cd2f, rgba(182,205,47,0.3));
}

.closing-cta h2 {
  color: #ffffff;
  max-width: 720px;
  margin: 0 auto var(--gap-md);
}

.closing-cta__sub {
  font-size: 19px;
  color: rgba(255,255,255,0.9);
  max-width: 640px;
  margin: 0 auto var(--gap-xl);
  line-height: var(--leading-relaxed);
}

.closing-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
  justify-content: center;
  margin-bottom: var(--gap-lg);
}

.closing-cta__micro {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  background: #22335A;
  border-top: none;
  position: relative;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════
   REFERENCES SECTION
   Page-specific citations between closing CTA and footer.
   Gradient flows from the closing CTA's green into a deeper
   green, then transitions to the navy footer below.
   ═══════════════════════════════════════════════════════ */
.references {
  position: relative;
  background: linear-gradient(180deg, var(--color-green) 0%, var(--color-green-dark) 100%);
  padding: 64px 0;
}

/* Lime accent bar at the boundary between closing CTA and references —
   25% width, centered. Mirrors the lime gradient at the top of the
   closing CTA section for visual continuity. */
.references::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25%;
  max-width: 280px;
  height: 4px;
  background: linear-gradient(90deg, #b6cd2f, rgba(182,205,47,0.3));
  border-radius: 2px;
  pointer-events: none;
}

.references__header {
  margin-bottom: var(--gap-lg);
}

.references__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.references__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: var(--gap-2xl);
  row-gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  counter-reset: ref-counter;
}

@media (min-width: 768px) {
  .references__list {
    grid-template-columns: 1fr 1fr;
  }
}

.references__list li {
  counter-increment: ref-counter;
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.92);
}

.references__list li::before {
  content: counter(ref-counter) ".";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  min-width: 22px;
}

.references__list a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.references__list a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 3px;
}

.references__list em {
  font-style: italic;
}

/* Big italic tagline — typographic structural moment */
.footer__big-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3.2vw, 35px);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 var(--gap-2xl) 0;
}

@media (min-width: 1024px) {
  .footer__big-tagline {
    white-space: nowrap;
  }
}

/* Back-to-top caret — upper right corner */
.footer__back-to-top {
  position: absolute;
  top: var(--gap-2xl);
  right: var(--section-padding-x);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.footer__back-to-top:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  transform: translateY(-2px);
}

.footer__back-to-top svg {
  width: 14px;
  height: 14px;
}

.footer__big-tagline-period {
  color: var(--color-coral);
}

.footer__grid {
  display: grid;
  gap: var(--gap-xl);
  padding-bottom: var(--gap-xl);
}

.footer__brand img {
  display: block;
  height: 29px;
  width: auto;
  max-width: 100%;
}

.footer__heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.9);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--gap-md);
}

.footer__links a {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer__links a:hover { color: rgba(255,255,255,0.85); }

.footer__contact-text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--gap-md);
}

.footer__cta {
  margin-bottom: var(--gap-lg);
  padding: 12px 32px;
  font-size: 16px;
}

.footer__utility {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm) var(--gap-md);
}

.footer__utility a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease;
}
.footer__utility a:hover { color: rgba(255,255,255,0.8); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--gap-lg);
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
}

.footer__legal a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  transition: color 0.2s ease;
}
.footer__legal a:hover { color: rgba(255,255,255,0.6); }

.footer__social {
  display: flex;
  gap: var(--gap-md);
  margin-top: var(--gap-md);
}

.footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s ease;
}

.footer__social a:hover { background: rgba(255,255,255,0.15); }

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.7);
}

/* Newsletter subscribe — minimal underline input + coral pill */
.footer__subscribe {
  margin-top: var(--gap-xl);
  max-width: 320px;
}

.footer__subscribe-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 700;
  margin-bottom: var(--gap-sm);
}

.footer__subscribe-row {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s ease;
  padding-bottom: 4px;
}

.footer__subscribe-row:focus-within {
  border-color: rgba(255,255,255,0.55);
}

.footer__subscribe-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: 8px 0;
  outline: none;
}

.footer__subscribe-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.footer__subscribe-btn {
  flex-shrink: 0;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer__subscribe-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.85);
}

.footer__subscribe-iframe {
  display: none;
}

/* Toast — disappearing notification for newsletter signup confirmation */
.footer__toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  background: #22335A;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28), 0 4px 12px rgba(0,0,0,0.16);
  border-left: 3px solid var(--color-coral);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 10000;
  max-width: calc(100vw - 48px);
}

.footer__toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Page-shell wrapper. At desktop+ it gets z-index + opaque bg so the fixed-
   footer parallax reveal works. JS only adds .has-footer-reveal to <body>
   when the footer fits comfortably in the viewport — otherwise we fall back
   to a normal-flow footer (no reveal). */
.page-shell {
  position: relative;
}

@media (min-width: 1024px) {
  .page-shell {
    z-index: 2;
    background: var(--color-bg);
  }
  body.has-footer-reveal {
    padding-bottom: var(--footer-h, 540px);
  }
  body.has-footer-reveal .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET (768px+)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .cost__grid       { grid-template-columns: 1fr 1fr; gap: var(--gap-3xl); }
  .tirt__cards      { grid-template-columns: 1fr 1fr; }
  .evidence__stats  { grid-template-columns: repeat(3, 1fr); }
  .evidence__testimonials { grid-template-columns: 1fr 1fr; }
  .footer__grid     { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom   { flex-direction: row; justify-content: space-between; align-items: center; }

  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .testimonials__nav  { display: flex; }

  .athome__grid { grid-template-columns: 1fr 1fr; }
  .athome__copy { padding: var(--gap-2xl); }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (1024px+)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta   { display: inline-flex; }
  .nav-hamburger { display: none; }

  .hero__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--gap-2xl);
    align-items: center;
  }

  .hero__visual {
    display: block;
    align-self: center;
  }

  .product__grid {
    grid-template-columns: 55% 1fr;
    align-items: center;
  }

  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Stagger: middle testimonial card offset */
  .testimonials__grid > :nth-child(2) {
    margin-top: 48px;
  }

  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — WIDE (1280px+)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 1280px) {
  .hero__grid    { gap: var(--gap-3xl); }
  .cost__grid    { gap: var(--gap-3xl); }
  .product__grid { gap: var(--gap-3xl); }
}
