/* ============================================================
   WHY US: "Stack up" (Mark's pick, 2026-10-20).
   Default (no JS / reduced motion): a plain list on navy.
   js/why.js adds .is-live, which pins the section for a few screens
   of scrolling and marks each claim as it arrives:
     .is-in       claim has slid in
     .is-current  newest claim, shows its explanation
     .is-past     earlier claims, faded back
   Previous drum wheel + proposed version: assets-source/pre-why-stack-backup/
   ============================================================ */

.why {
  position: relative;
  background: linear-gradient(180deg, var(--dark) 0%, var(--navy) 100%);   /* ends on plain navy, so it runs straight into the review below */
  color: var(--white);
}

/* the glow sits on the pinned stage, so it stays behind the claims */
.why-pin {
  padding: 90px 0;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(46, 101, 184, 0.3) 0%, rgba(46, 101, 184, 0) 70%);
}

.why .section-label { display: block; color: var(--light-blue); }   /* light blue reads on navy */

.why-title {
  margin: 0 0 2rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* --- Claims: plain list by default --- */
.why-list { display: grid; gap: 1.1rem; max-width: 44rem; margin: 0; padding: 0; list-style: none; }
.why-claim {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}
.why-exp { display: block; margin-top: 0.4rem; font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, 0.75); }

/* ============ Stack mode (js/why.js adds .is-live) ============ */
.why.is-live { height: 520vh; }   /* one pinned screen plus scroll for six claims */
.why.is-live .why-pin {
  position: sticky;
  top: 0;
  height: calc(100vh - 8px);
  height: calc(100svh - 8px);   /* stops short of the bottom edge so Safari's toolbar stays glass (see style.css RULE) */
  padding: 0;
  display: flex;
  align-items: center;
}
.why.is-live .why-item { opacity: 0; transform: translateY(28px); transition: opacity 0.5s ease, transform 0.5s ease; will-change: opacity, transform; }   /* will-change: Safari sets each claim up for animation in advance, so the slide-in doesn't stutter at the start */
.why.is-live .why-item.is-in { opacity: 1; transform: none; }
.why.is-live .why-item.is-past { opacity: 0.4; }
.why.is-live .why-exp {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}
.why.is-live .why-item.is-current .why-exp { max-height: 5em; margin-top: 0.4rem; opacity: 1; }

@media (max-width: 600px) {
  .why.is-live { height: 440vh; }
  .why-title { margin-bottom: 1.25rem; }
  .why-list { gap: 0.85rem; }
  .why-claim { font-size: 1.35rem; }
  .why-exp { font-size: 0.95rem; }
}
