/* =========================================
   AFFILIATE PAGE STYLES
   ========================================= */

/* --- HERO SECTION --- */
/* Fix: Ensure text is white against the green gradient background */
.hero-affiliate {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.hero-affiliate .hero-title,
.hero-affiliate .hero-subtitle,
.hero-affiliate .hero-trust {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* --- SCENARIO GRID (The Math Section) --- */
.scenario-grid {
  display: grid;
  grid-template-columns: 1fr; /* Stacked on mobile */
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .scenario-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 Columns on Desktop */
    align-items: stretch; /* Ensure cards are equal height */
  }
}

/* --- STEPS GRID (How It Works) --- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 Columns on Tablet/Desktop */
    gap: 1.5rem;
    align-items: stretch; /* CRITICAL: Forces rows to be equal height */
  }
}

/* --- STEP CARD STYLING --- */
.step-card {
  background: #ffffff;
  border: 1px solid var(--color-gray-200); /* Fallback: #e5e7eb */
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* EQUAL HEIGHT & LAYOUT FIXES */
  height: 100%; /* Fills the grid cell completely */
  display: flex; /* Enables flexbox for internal layout */
  flex-direction: column; /* Stacks content vertically */
  justify-content: flex-start; /* Aligns content to top */
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent-300); /* Fallback: #86efac */
}

/* --- ICON STYLING --- */
.step-icon-wrapper {
  width: 64px;
  height: 64px;
  background: #ecfdf5; /* Light green bg */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  flex-shrink: 0; /* Prevents icon from squishing */
}

.step-icon {
  width: 32px;
  height: 32px;
  color: #059669; /* Dark green icon */
}

/* --- TYPOGRAPHY --- */
.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-gray-900); /* Fallback: #111827 */
  margin-bottom: 0.75rem;
}

.step-text {
  font-size: 0.95rem;
  color: var(--color-gray-500); /* Fallback: #6b7280 */
  line-height: 1.6;
}

/* --- CLEANUP --- */
/* Hide arrows in grid layout to prevent clutter */
.step-arrow {
  display: none;
}
