/* ============================================================
   WayGo — How It Works Timeline
   Horizontal steps with connecting line
   ============================================================ */

.how {
  position: relative;
}

/* Steps container */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
  position: relative;
}

/* Connecting line */
.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.3), rgba(13, 148, 136, 0.3), transparent);
  z-index: 0;
}

/* Step item */
.step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 12px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: rgba(13, 148, 136, 0.1);
  border: 2px solid rgba(13, 148, 136, 0.25);
  border-radius: 50%;
  color: var(--brand-teal-light);
  transition: all var(--duration-base) var(--ease-out-expo);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: transparent;
  border: 1px dashed rgba(13, 148, 136, 0.15);
  transition: border-color var(--duration-base) var(--ease-out-expo);
}

.step:hover .step-number {
  background: rgba(13, 148, 136, 0.18);
  border-color: rgba(13, 148, 136, 0.5);
  box-shadow: 0 0 30px rgba(13, 148, 136, 0.2);
  transform: scale(1.05);
}

.step:hover .step-number::after {
  border-color: rgba(13, 148, 136, 0.3);
}

.step-icon {
  width: 32px;
  height: 32px;
  color: var(--brand-teal-light);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 240px;
  margin: 0 auto;
}

/* Arrow between steps (mobile only) */
.step-arrow {
  display: none;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 400px;
    margin: 0 auto;
  }

  .steps::before {
    display: none;
  }

  .step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
    padding: 20px 0;
    position: relative;
  }

  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 35px;
    top: 92px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(13,148,136,0.3), transparent);
  }

  .step-number {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
    margin: 0;
    flex-shrink: 0;
  }

  .step p {
    max-width: none;
  }
}
