/* Fade in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children--visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children--visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children--visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children--visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children--visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children--visible > *:nth-child(6) { transition-delay: 0.3s; }

.stagger-children--visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Hover effects */
.card,
.step,
.testimonial,
.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.step:hover,
.testimonial:hover {
  transform: translateY(-4px);
  border-color: #CBD5E1;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card--featured:hover {
  box-shadow: 0 12px 40px -4px var(--indigo-glow-50);
}

/* Button press */
.btn:active {
  transform: translateY(0) scale(0.98);
}

/* FAQ accordion */
.faq-item__answer {
  display: none;
}

.faq-item[open] .faq-item__answer {
  display: block;
  animation: faq-open 0.3s ease;
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Screenshot hover */
.screenshot {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.screenshot:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px -12px rgba(0,0,0,0.15);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .stagger-children > *,
  .card,
  .step,
  .testimonial,
  .pricing-card,
  .screenshot {
    transition: none;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .stagger-children > * {
    opacity: 1;
    transform: none;
  }
}
