/* ══════════════════════════════════════════════════════════════
   LANDING PAGE: SOCIAL PROOF, HOW-IT-WORKS & BENEFITS SECTION
   
   Multi-section social proof area featuring:
   - Testimonials grid with staggered animations
   - How-it-works step cards with interactive hover states
   - Benefits grid with animation on scroll
   - Scroll-triggered animation support
   
   Classes:
   - .vs-social-proof, .vs-testimonials
   - .vs-how-it-works, .vs-steps, .vs-step-label
   - .vs-benefits, .vs-benefits-grid
   
   Depends on:
   - design-system.css (CSS custom properties)
   - animations.css (vs-fade-in keyframe)
   ══════════════════════════════════════════════════════════════ */

.vs-social-proof {
  margin-bottom: var(--vs-space-4xl);
}

.vs-social-proof h2 {
  text-align: center;
  margin-bottom: var(--vs-space-xl);
}

.vs-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--vs-space-lg);
  margin-top: var(--vs-space-xl);
}

/* Testimonial Card Enhancements */
.vs-testimonials .vs-card {
  position: relative;
  transition: all var(--vs-transition-slow);
  opacity: 0;
  animation: vs-fade-in 0.6s var(--vs-transition-gentle) forwards;
  /* Stagger animation using nth-child */
  animation-delay: calc(var(--card-index, 0) * 100ms);
}

/* Fallback for nth-child if CSS custom properties not set */
.vs-testimonials .vs-card:nth-child(1) {
  animation-delay: 0ms;
}

.vs-testimonials .vs-card:nth-child(2) {
  animation-delay: 100ms;
}

.vs-testimonials .vs-card:nth-child(3) {
  animation-delay: 200ms;
}

/* Scroll-triggered animation class */
.vs-testimonials .vs-card.vs-animate-in-view {
  opacity: 1;
  animation: vs-fade-in 0.6s var(--vs-transition-gentle) forwards;
  animation-delay: calc(var(--card-index, 0) * 100ms);
}

.vs-testimonials .vs-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 40px var(--vs-accent-glow);
  border-color: var(--vs-accent);
}

/* How It Works */
.vs-how-it-works {
  margin-bottom: var(--vs-space-4xl);
}

.vs-how-it-works h2 {
  text-align: center;
  margin-bottom: var(--vs-space-md);
}

.vs-how-it-works>p {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--vs-space-xl);
  color: var(--vs-text-secondary);
}

.vs-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--vs-space-lg);
  margin-top: var(--vs-space-xl);
}

/* How It Works Step Cards */
.vs-steps .vs-card {
  position: relative;
  transition: all var(--vs-transition-slow);
  opacity: 0;
  animation: vs-fade-in 0.6s var(--vs-transition-gentle) forwards;
  /* Offset delay for steps (starts at 200ms) */
  animation-delay: calc((var(--card-index, 0) + 2) * 100ms);
}

/* Fallback nth-child delays */
.vs-steps .vs-card:nth-child(1) {
  animation-delay: 200ms;
}

.vs-steps .vs-card:nth-child(2) {
  animation-delay: 300ms;
}

.vs-steps .vs-card:nth-child(3) {
  animation-delay: 400ms;
}

/* Scroll-triggered animation class */
.vs-steps .vs-card.vs-animate-in-view {
  opacity: 1;
  animation: vs-fade-in 0.6s var(--vs-transition-gentle) forwards;
  animation-delay: calc((var(--card-index, 0) + 2) * 100ms);
}

.vs-steps .vs-card:hover {
  transform: translateY(-12px);
  box-shadow:
    var(--vs-shadow-lg),
    0 0 40px rgba(212, 165, 116, 0.2);
  background: linear-gradient(160deg,
      rgba(212, 165, 116, 0.08) 0%,
      var(--vs-surface) 100%);
}

.vs-steps .vs-card:hover .vs-step-label {
  color: var(--vs-accent-bright);
  letter-spacing: 0.3em;
}

.vs-step-label {
  display: inline-block;
  font-size: var(--vs-text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vs-accent);
  margin-bottom: var(--vs-space-sm);
  font-weight: 600;
  opacity: 0.8;
}

/* Benefits Grid */
.vs-benefits {
  margin-bottom: var(--vs-space-4xl);
}

.vs-benefits h2 {
  text-align: center;
  margin-bottom: var(--vs-space-xl);
}

.vs-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--vs-space-lg);
}

.vs-benefits-grid .vs-card {
  position: relative;
  transition: all var(--vs-transition-slow);
  opacity: 0;
  animation: vs-fade-in 0.6s var(--vs-transition-gentle) forwards;
  /* Stagger animation using nth-child */
  animation-delay: calc(var(--card-index, 0) * 100ms);
}

/* Fallback nth-child delays */
.vs-benefits-grid .vs-card:nth-child(1) {
  animation-delay: 0ms;
}

.vs-benefits-grid .vs-card:nth-child(2) {
  animation-delay: 100ms;
}

.vs-benefits-grid .vs-card:nth-child(3) {
  animation-delay: 200ms;
}

.vs-benefits-grid .vs-card:nth-child(4) {
  animation-delay: 300ms;
}

/* Scroll-triggered animation class */
.vs-benefits-grid .vs-card.vs-animate-in-view {
  opacity: 1;
  animation: vs-fade-in 0.6s var(--vs-transition-gentle) forwards;
  animation-delay: calc(var(--card-index, 0) * 100ms);
}

.vs-benefits-grid .vs-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--vs-shadow-lg);
}

