/* ===== ANIMATIONS ===== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

/* Utility classes */
.animate-fade-in {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Card staggered entrance */
.plan-card {
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}

.plan-card:nth-child(1) { animation-delay: 0.05s; }
.plan-card:nth-child(2) { animation-delay: 0.15s; }
.plan-card:nth-child(3) { animation-delay: 0.25s; }
.plan-card:nth-child(4) { animation-delay: 0.35s; }
.plan-card:nth-child(5) { animation-delay: 0.45s; }

/* Savings badge pulse */
.plan-card__savings {
  transition: transform 0.2s ease;
}

.plan-card:hover .plan-card__savings {
  animation: pulse-soft 0.6s ease;
}

/* CTA button shine effect */
.plan-card__cta {
  position: relative;
  overflow: hidden;
}

.plan-card__cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.15) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
}

.plan-card:hover .plan-card__cta::after {
  left: 100%;
}

/* Hero savings card float */
.savings-card {
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

/* Speed bar fill animation */
.plan-card__speed-bar-fill {
  animation: slideIn 0.8s ease forwards;
}

/* Badge pill entrance */
.plan-card__rec-badge {
  animation: fadeInUp 0.3s ease forwards;
}

/* Trust icon hover */
.trust-item:hover .trust-item__icon {
  animation: pulse-soft 0.4s ease;
}

/* How it works step arrows */
.steps__arrow {
  animation: float 3s ease-in-out infinite;
}
