.how-it-works {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(180deg,
    #F8F9FC 0%,
    #FAF9F7 30%,
    #FBF9F5 60%,
    #FAF9F7 100%);
}

.how-it-works__eyebrow {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 12px;
}

.how-it-works__headline {
  text-align: center;
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  margin-bottom: 12px;
}

.how-it-works__subhead {
  text-align: center;
  font-size: var(--fs-body);
  color: var(--color-gray);
  margin-bottom: 64px;
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  align-items: stretch;
}

.how-it-works__connector {
  display: none;
}

@media (min-width: 769px) {
  .how-it-works__connector {
    display: block;
    position: absolute;
    top: 160px;
    left: 20%;
    right: 20%;
    height: 0;
    border-top: 2px dashed rgba(59, 191, 178, 0.3);
    z-index: 0;
    pointer-events: none;
  }
}

.step-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 24px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-default);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-teal);
}

.step-card__number {
  font-size: 48px;
  font-weight: var(--fw-bold);
  color: rgba(59, 191, 178, 0.2);
  line-height: 1;
  margin-bottom: 16px;
}

.step-card__image-wrapper {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin-bottom: 20px;
}

.step-card__image {
  max-height: 200px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.step-card__headline {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  margin-bottom: 12px;
}

.step-card__description {
  font-size: 16px;
  color: var(--color-gray);
  line-height: var(--lh-body);
  margin-top: auto;
}

@media (max-width: 767px) {
  .how-it-works__steps {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 480px;
    margin: 0 auto;
  }

  .how-it-works {
    padding: 60px 0;
  }

  .step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto !important;
  }

  .step-card__image-wrapper {
    height: auto;
  }

  .step-card__image {
    display: block;
    max-width: 220px;
    max-height: 180px;
    width: auto;
    height: auto;
    margin: 0 auto 20px;
    object-fit: contain;
  }

  .how-it-works__connector {
    display: none !important;
  }
}
