/* CashFlowBI — motion v4
   Extra-slow, calm entrance animation. */

/* Initial state is enabled only when JavaScript has explicitly prepared motion. */
.motion-prep .hero .hero-product-name,
.motion-prep .hero .kicker,
.motion-prep .hero .hero-title-motion .hero-line,
.motion-prep .hero .hero-copy,
.motion-prep .hero .button {
  opacity: 0;
  transform: translateY(22px);
  will-change: opacity, transform;
}

/* Animation starts only after motion.js adds .motion-play. */
.motion-prep.motion-play .hero .hero-product-name,
.motion-prep.motion-play .hero .kicker,
.motion-prep.motion-play .hero .hero-title-motion .hero-line,
.motion-prep.motion-play .hero .hero-copy,
.motion-prep.motion-play .hero .button {
  animation: cfbi-enter 2.32s cubic-bezier(.22,.61,.36,1) both;
}

.motion-prep.motion-play .hero .hero-product-name { animation-delay: .16s; }
.motion-prep.motion-play .hero .kicker { animation-delay: .56s; }
.motion-prep.motion-play .hero .hero-title-motion .hero-line:nth-child(1) { animation-delay: 1.60s; }
.motion-prep.motion-play .hero .hero-title-motion .hero-line:nth-child(2) { animation-delay: 2.50s; }
.motion-prep.motion-play .hero .hero-title-motion .hero-line:nth-child(3) { animation-delay: 3.40s; }
.motion-prep.motion-play .hero .hero-copy { animation-delay: 4.04s; }
.motion-prep.motion-play .hero .button { animation-delay: 4.64s; }

.hero-title-motion .hero-line {
  display: block;
}

@keyframes cfbi-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections below hero: reveal once on scroll, also extra slow. */
.motion-scroll-ready main .section > .container {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 2.72s cubic-bezier(.22,.61,.36,1),
    transform 2.72s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}

.motion-scroll-ready main .section.is-visible > .container {
  opacity: 1;
  transform: translateY(0);
}

/* Respect the user's operating-system accessibility preference. */
@media (prefers-reduced-motion: reduce) {
  .motion-prep .hero .hero-product-name,
  .motion-prep .hero .kicker,
  .motion-prep .hero .hero-title-motion .hero-line,
  .motion-prep .hero .hero-copy,
  .motion-prep .hero .button,
  .motion-prep.motion-play .hero .hero-product-name,
  .motion-prep.motion-play .hero .kicker,
  .motion-prep.motion-play .hero .hero-title-motion .hero-line,
  .motion-prep.motion-play .hero .hero-copy,
  .motion-prep.motion-play .hero .button {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .motion-scroll-ready main .section > .container {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
