/* ============================================
   DraftSOS Polish — Micro-animations & Visual Flair
   ============================================ */

/* ── Headlines — Clean White ── */
.hero__title,
.section__title {
  color: var(--text-primary);
}

/* ── Feature Cards — Hover Lift ── */
.feature-card,
.pricing-card,
.step-card,
.vertical-card,
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover,
.vertical-card:hover,
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15), 0 0 24px color-mix(in oklch, var(--accent-start) 10%, transparent);
}

.pricing-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2), 0 0 32px color-mix(in oklch, var(--accent-start) 15%, transparent);
}

/* ── Dot Grid Backgrounds for Sections ── */
.pain,
.features,
.pricing,
.comparison {
  position: relative;
}

.pain::before,
.features::before,
.pricing::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.pain > .container,
.features > .container,
.pricing > .container {
  position: relative;
  z-index: 1;
}

/* ── Accent Glow on CTAs ── */
.btn--primary {
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn--primary:hover::after {
  opacity: 1;
}

/* ── Metric Counter Pulse ── */
.metric__value {
  animation: counterPulse 3s ease-in-out infinite;
}

@keyframes counterPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ── Trust Badge Shimmer ── */
.trust-badge,
.pricing__trust {
  position: relative;
  overflow: hidden;
}

.trust-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: shimmer 4s ease infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* ── Step Numbers — Animated Ring ── */
.step-card__number {
  position: relative;
}

.step-card__number::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid color-mix(in oklch, var(--accent-start) 30%, transparent);
  animation: ringPulse 2.5s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0; }
}

/* ── Testimonial Quote Mark Animation ── */
.testimonial-card::before {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.testimonial-card:hover::before {
  transform: scale(1.2) rotate(-5deg);
  opacity: 0.15;
}

/* ── FAQ Accordion Smooth ── */
.faq__question {
  transition: color 0.2s ease;
}

.faq__question:hover {
  color: var(--accent-start);
}

.faq__item.active .faq__question {
  color: var(--accent-start);
}

/* ── Changelog Tags — Subtle Bounce ── */
.changelog__tag {
  transition: transform 0.2s ease;
}

.changelog__tag:hover {
  transform: scale(1.08);
}

/* ── Footer Social Icons — Lift ── */
.footer__social-link {
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer__social-link:hover {
  transform: translateY(-3px);
}

/* ── Hide monthly/annual toggle (DraftSOS uses season pricing) ── */
.pricing__toggle {
  display: none !important;
}

/* ── Smooth anchor scroll ── */
html {
  scroll-behavior: smooth;
}

/* ── Reduce motion for accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__title,
  .section__title {
    -webkit-text-fill-color: unset;
    background: none;
  }
}
