/* -------------------------------------------------------- */
/* 🔹 How It Works Section                                  */
/* -------------------------------------------------------- */
/* The app's flow as four numbered phones, read left to     */
/* right — two by two on tablets, stacked on phones         */

.how-it-works {
  padding-block: var(--landing-section-spacing);
  text-align: center;
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--website-section-spacing) var(--space-xl);
  margin-top: var(--website-section-spacing);
  list-style: none;
}

.how-it-works__step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Bezel composite from optimize-images.js — the frame is in the image */
.how-it-works__step img {
  width: 210px;
  margin-bottom: var(--space-xl);
}

.how-it-works__number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 700;
}

.how-it-works__title {
  margin-top: var(--space-m);
  font-size: var(--text-headline-medium);
  font-weight: 700;
}

.how-it-works__text {
  max-width: 260px;
  margin-top: var(--space-s);
  font-size: var(--text-body-medium);
  line-height: 1.6;
  color: var(--color-text-secondary);
}


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

@media (min-width: 600px) {
  .how-it-works__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .how-it-works__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
