/* =============================================================
   how.css
   "How It Works" section. Four steps in a row on desktop.
   ============================================================= */

.how {
  background: var(--color-bg);
  text-align: center;
}

.how__header {
  max-width: 720px;
  margin: 0 auto 72px;
}

.how__headline {
  font-size: clamp(32px, 4.4vw, 46px);
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  text-align: left;
}

/* Connecting dotted line behind step numbers (desktop only) */
.how__steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 1px;
  border-top: 1.5px dotted var(--color-border);
  z-index: 0;
}

.how__step {
  position: relative;
  z-index: 1;
}

.how__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.how__step-title {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--color-text-primary);
}

.how__step-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* Tablet */
@media (max-width: 1024px) {
  .how__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }

  .how__steps::before {
    display: none;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .how__header {
    margin-bottom: 48px;
  }

  .how__steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
