/* Tasteful motion. Everything here is opt-in: only with no reduced-motion preference.
   Scroll reveals use CSS scroll-driven animations, so browsers without them just show the content. */
@media (prefers-reduced-motion: no-preference) {
  /* Hero copy rises in once on load. */
  .hero-copy > * { animation: rise 0.7s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }
  .hero-art .phone { animation: phone-up 0.9s 0.1s var(--ease) both; }

  /* Floating labels drift gently. */
  .chip { animation: float 6s ease-in-out infinite; }
  .chip-b { animation-delay: -3s; }
  .dot { animation: pulse 2.4s ease-out infinite; }

  @supports (animation-timeline: view()) {
    .head, .steps li, .features li, .trust li, .plans li, .pay, .guide,
    .install-intro, .faq details, .closing, .privacy-copy {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    /* Header gains a soft shadow once the page scrolls. */
    .top {
      animation: lift linear both;
      animation-timeline: scroll();
      animation-range: 0 120px;
    }
  }
}

@keyframes rise { from { opacity: 0; translate: 0 14px; } }
@keyframes phone-up { from { opacity: 0; translate: 0 60px; } }
@keyframes reveal { from { opacity: 0; translate: 0 28px; } }
@keyframes float { 50% { translate: 0 -8px; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 197, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(110, 231, 197, 0); }
}
@keyframes lift {
  to { box-shadow: 0 10px 30px -18px rgba(6, 44, 37, 0.35); background: rgba(255, 255, 255, 0.92); }
}
