/* Steps — numbered process, straddling a glowing rail once it fits on one row */

.steps {
  list-style: none;
  display: grid;
  gap: 2.5rem 2rem;
}

.step__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.step__index {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
}
.step__when {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-bright);
}

.step__title {
  margin-bottom: 0.6rem;
}
.step__body {
  max-width: 38ch;
  font-size: 0.97rem;
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 3.5rem;
  }
  .step {
    position: relative;
    padding-top: 3rem;
  }
  /* Each segment bridges the column gap to the next circle, so the rail ends at the last one */
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: -2rem;
    height: 1px;
    background: linear-gradient(90deg, var(--teal-bright), var(--line-strong));
  }
  .step__head {
    display: block;
  }
  .step__index {
    position: absolute;
    top: -23px;
    left: 0;
  }
}
