/* LP page animations — pairs with animations.css + lp-animations.js */

@keyframes lpHeroFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes lpHowPanelEnter {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Hero load sequence (header is on body — outside hero stacking context) */
.lp-page:not(.lp-hero-ready) .lp-header-bar,
.lp-hero-banner:not(.lp-hero-ready) .lp-hero__title,
.lp-hero-banner:not(.lp-hero-ready) .lp-hero__sub,
.lp-hero-banner:not(.lp-hero-ready) .lp-hero__list li,
.lp-hero-banner:not(.lp-hero-ready) .lp-form-card {
  opacity: 0;
}

.lp-hero-banner.lp-hero-ready .lp-form-card {
  opacity: 1;
}

.lp-page.lp-hero-animate .lp-header-bar {
  animation: lpHeroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lp-hero-banner.lp-hero-animate .lp-hero__title {
  animation: lpHeroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.lp-hero-banner.lp-hero-animate .lp-hero__sub {
  animation: lpHeroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

.lp-hero-banner.lp-hero-animate .lp-hero__list li {
  animation: lpHeroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lp-hero-banner.lp-hero-animate .lp-hero__list li:nth-child(1) {
  animation-delay: 0.32s;
}
.lp-hero-banner.lp-hero-animate .lp-hero__list li:nth-child(2) {
  animation-delay: 0.4s;
}
.lp-hero-banner.lp-hero-animate .lp-hero__list li:nth-child(3) {
  animation-delay: 0.48s;
}
.lp-hero-banner.lp-hero-animate .lp-hero__list li:nth-child(4) {
  animation-delay: 0.56s;
}
.lp-hero-banner.lp-hero-animate .lp-hero__list li:nth-child(5) {
  animation-delay: 0.64s;
}

.lp-hero-banner.lp-hero-animate .lp-form-card {
  animation: lpHeroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
}

/* How it works — tab panel re-entry */
.lp-how__panel.is-entering .lp-how__panel-layout {
  animation: lpHowPanelEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scroll polish */
.lp-form-card,
.lp-features-bar__item,
.lp-how__tab,
.JM_____card,
.lp-dyk__card,
.lp-review-card {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.lp-form-card:hover,
.lp-features-bar__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(52, 66, 118, 0.12);
}

.JM_____card:hover {
  transform: translateY(-5px);
}

.lp-how__tab:not(.is-active):hover {
  transform: translateY(-2px);
}

.lp-features-bar__accent {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-features-bar__item.mph-anim-visible .lp-features-bar__accent {
  transform: scale(1.05);
}

.lp-social-proof__wall {
  transition: opacity 0.8s ease;
}

.lp-social-proof__wall.mph-anim-visible {
  opacity: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  .lp-page:not(.lp-hero-ready) .lp-header-bar,
  .lp-hero-banner:not(.lp-hero-ready) .lp-hero__title,
  .lp-hero-banner:not(.lp-hero-ready) .lp-hero__sub,
  .lp-hero-banner:not(.lp-hero-ready) .lp-hero__list li,
  .lp-hero-banner:not(.lp-hero-ready) .lp-form-card {
    opacity: 1;
  }

  .lp-page.lp-hero-animate .lp-header-bar,
  .lp-hero-banner.lp-hero-animate .lp-hero__title,
  .lp-hero-banner.lp-hero-animate .lp-hero__sub,
  .lp-hero-banner.lp-hero-animate .lp-hero__list li,
  .lp-hero-banner.lp-hero-animate .lp-form-card {
    animation: none;
  }

  .lp-how__panel.is-entering .lp-how__panel-layout {
    animation: none;
  }

  .lp-form-card:hover,
  .lp-features-bar__item:hover,
  .JM_____card:hover,
  .lp-how__tab:not(.is-active):hover {
    transform: none;
  }
}
