/* ===== How It Works – Variables (align with hero if needed) ===== */
.how-it-works {
  --hiw-dark: #0f172a;
  --hiw-blue: #1e3a8a;
  --hiw-accent: #7c3aed;
  --hiw-accent-hover: #6d28d9;
  --hiw-text: #0f172a;
  --hiw-muted: #64748b;
  --hiw-border: rgba(15, 23, 42, 0.08);
  --hiw-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  --hiw-shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.08);
  --hiw-radius: 12px;
  --hiw-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Section container ===== */
.how-it-works {
  padding: 4.5rem 1.25rem 5rem;
  background: #fff;
  font-family: var(--hiw-font);
}

.how-it-works-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Title & subtitle ===== */
.how-it-works-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  color: var(--hiw-text);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.how-it-works-title .accent {
  color: var(--hiw-accent);
}

.how-it-works-subtitle {
  font-size: 1rem;
  color: var(--hiw-muted);
  text-align: center;
  margin: 0 0 3rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Grid ===== */
.how-it-works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .how-it-works-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* ===== Step card ===== */
.how-it-works-card {
  background: #fff;
  border: 1px solid var(--hiw-border);
  border-radius: var(--hiw-radius);
  padding: 1.5rem;
  box-shadow: var(--hiw-shadow);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.how-it-works-card:hover {
  box-shadow: var(--hiw-shadow-hover);
  border-color: rgba(124, 58, 237, 0.2);
  transform: translateY(-2px);
}

.how-it-works-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--hiw-accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 0.75rem;
}

.how-it-works-card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--hiw-text);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.how-it-works-card-desc {
  font-size: 0.875rem;
  color: var(--hiw-muted);
  line-height: 1.55;
  margin: 0;
}
