/* ==========================================================================
   How It Works Section
   4-step vertical flow with expandable outcomes. Numbered 01-04 in mono.
   Mobile-first: 375 px base, scale up.
   ========================================================================== */

.how-it-works {
  padding: var(--sp-24) 0;
}

/* ---------- Vertical timeline ---------- */

.steps-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  position: relative;
}

/* Connecting line */
.steps-container::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--vc-border-default);
}

/* ---------- Step item ---------- */

.step-item {
  display: flex;
  gap: var(--sp-6);
  margin-bottom: var(--sp-12);
  position: relative;
  cursor: pointer;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: var(--vc-bg-surface);
  border: 2px solid var(--vc-border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--vc-text-tertiary);
  flex-shrink: 0;
  z-index: 1;
  transition: all var(--t-fast);
}

.step-item.active .step-number {
  border-color: var(--vc-accent);
  color: var(--vc-accent);
  background: var(--vc-accent-subtle);
}

/* ---------- Step content ---------- */

.step-content {
  flex: 1;
}

.step-title {
  font-size: 18px;
  color: var(--vc-text-primary);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.step-desc {
  font-size: 15px;
  color: var(--vc-text-secondary);
  line-height: 1.6;
}

/* ---------- Expandable outcomes ---------- */

.step-outcomes {
  margin-top: var(--sp-4);
  padding: 0 var(--sp-4);
  background: var(--vc-bg-surface);
  border-radius: var(--r-md);
  border: 1px solid var(--vc-border-subtle);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
}

.step-item.active .step-outcomes {
  max-height: 500px;
  opacity: 1;
  padding: var(--sp-4);
}

.outcome-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--vc-border-subtle);
}

.outcome-item:last-child {
  border-bottom: none;
}

.outcome-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--vc-accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.outcome-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--vc-accent);
}

.outcome-title {
  font-size: 14px;
  color: var(--vc-text-primary);
  font-weight: 600;
}

.outcome-sub {
  font-size: 13px;
  color: var(--vc-text-tertiary);
}

/* ---------- Responsive ---------- */

@media (min-width: 769px) {
  .steps-container::before {
    left: 24px;
  }
}

@media (max-width: 768px) {
  .step-item {
    flex-direction: column;
  }

  .steps-container::before {
    display: none;
  }
}
