/* Current order: hero, trust strip, audiences, method, graph, example,
   corpus, pricing, final. Keep image panels and animation declarations. */
.home-benefits {
  --ink: #edf7f1;
  --muted: #d1e4d9;
  background: #123c35;
  color: var(--ink);
}
.home-benefits .eyebrow,
.home-benefits .benefit-card > span { color: #b7e2c8; }
.home-benefits .benefit-card { border-top-color: #76a88d; }

/* Night mode alternates deep and softer green, rather than bright white. */
html[data-theme="dark"] body .home-benefits {
  --ink: #e4eee8;
  --muted: #c3d8cc;
  background: #101c19;
}
html[data-theme="dark"] body .home-method,
html[data-theme="dark"] body .home-compare,
html[data-theme="dark"] body .home-pricing { background: #243c32; }
html[data-theme="dark"] body .home-evolving::before,
html[data-theme="dark"] body .home-final::before {
  background: linear-gradient(90deg, rgba(16,28,25,.94), rgba(16,28,25,.84) 56%, rgba(16,28,25,.66));
}

/* The three-step section follows its content, without a full-screen spacer. */
.home-method {
  padding-top: clamp(3rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 3vw, 3rem);
}
.home-method .section-intro { margin-bottom: 2rem; }

/* Homepage-only, gentle native snapping: long sections remain scrollable. */
html:has(#main > .home-hero) {
  scroll-snap-type: y proximity;
  scroll-padding-top: 5.5rem;
}
#main > .home-hero,
#main > .home-section,
#main > .home-immersive,
#main > .home-final {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
html:has(#main > .home-hero) .site-footer { scroll-snap-align: end; }
@media (prefers-reduced-motion: reduce) {
  html:has(#main > .home-hero) { scroll-snap-type: none; }
}

/* Same screen rhythm as the graph, with room for readable mobile content. */
#main { --home-panel-height: 92svh; }
#main > .home-hero,
#main > .home-section,
#main > .home-immersive,
#main > .home-final { min-height: var(--home-panel-height); }
#main > .home-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2rem, 4vw, 3rem);
}
#main > .home-section .section-intro { margin-bottom: 2rem; }
#main > .home-final { display: grid; align-items: center; }
#main > .home-final .home-final-content { padding-block: clamp(2rem, 4vw, 3rem); }
@media (max-width: 800px) {
  #main { --home-panel-height: 680px; }
}

#main > .home-method .section-intro h2 { font-size: clamp(2.4rem, 4vw, 4rem); }
#main > .home-method .section-intro { max-width: 900px; }
#main > .home-method .method-step { padding-block: 1rem; }

/* Readable homepage copy: never shrink text to force a screen-sized panel. */
#main:has(> .home-hero) { --home-copy-size: clamp(1.125rem, 1.4vw, 1.25rem); }
#main .home-lede,
#main .home-section p,
#main .home-final p,
#main .method-step > div,
#main .method-step blockquote,
#main .compare-card blockquote,
#main .feature-list li {
  font-size: var(--home-copy-size);
  line-height: 1.65;
}
#main .immersive-lines { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.65; }
#main .home-kicker,
#main .home-section .eyebrow,
#main .home-immersive .eyebrow,
#main .home-final .eyebrow,
#main .home-trust-items,
#main .benefit-card > span,
#main .method-step > span,
#main .compare-card .compare-label,
#main .home-section .evidence-caption,
#main .home-section .comparison-note,
#main .home-section .corpus-footnote,
#main .corpus-stats dt,
#main .price-card .pill,
#main .price small {
  font-size: 1rem;
  line-height: 1.6;
}
#main .home-trust-items { gap: .75rem 1.5rem; letter-spacing: .04em; }
#main .corpus-stats dt { text-transform: none; letter-spacing: normal; }
#main .home-actions a,
#main .home-section .button,
#main .home-final .button,
#main .evidence-link { font-size: 1.125rem; line-height: 1.5; }
#main .benefit-card h3,
#main .compare-card h3,
#main .price-card h3 { font-size: clamp(1.5rem, 2vw, 1.8rem); line-height: 1.3; }
#main .home-section .section-intro > p:last-child:not(.eyebrow) { max-width: 760px; }
#main .scroll-cue { font-size: 1rem; letter-spacing: .05em; }
html:has(#main > .home-hero) .site-footer p,
html:has(#main > .home-hero) .site-footer a { font-size: 1rem; line-height: 1.6; }

/* Native smooth transitions for homepage links and browser snap settling. */
html:has(#main > .home-hero) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html:has(#main > .home-hero) { scroll-behavior: auto; }
}

/* JS settling replaces native snap only when the enhancement is available. */
html.home-glide-ready:has(#main > .home-hero) { scroll-snap-type: none; }
html.home-glide-moving:has(#main > .home-hero) { scroll-behavior: auto; }
