/* Purpose: Five-step process — vertical timeline on mobile, 3-up grid on tablet, connected 5-up row on desktop. */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; row-gap: 0; position: relative; }

.step { position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding: 0 0 var(--space-8); text-align: left; }
.step::before { content: ""; position: absolute; left: 32px; top: 64px; bottom: 0; width: 1px; background: var(--color-accent-line); }
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }

.medal {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0;
  grid-row: span 2;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-accent);
  background: var(--color-surface);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-primary);
}
.medal::after { content: ""; position: absolute; inset: 4px; border-radius: var(--radius-full); border: 1px solid var(--color-accent-faint); }

.step h3 { font-size: var(--text-lg); color: var(--color-primary); margin-top: 14px; margin-bottom: var(--space-2); }
.step p { font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--color-text-muted); }

/* md */
@media (min-width: 641px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-12); }
  .step { display: block; padding: 0 var(--space-4); text-align: center; }
  .step::before { content: none; }
  .medal { margin: 0 auto var(--space-6); grid-row: auto; }
  .step h3 { margin-top: 0; }
}

/* xl */
@media (min-width: 1081px) {
  .steps { grid-template-columns: repeat(5, 1fr); row-gap: 0; }
  .steps::before { content: ""; position: absolute; top: 32px; left: 10%; right: 10%; height: 1px; background: var(--color-accent-line); }
}
