/* 02 Product: six numbered steps. Each row of steps shares one continuous rule (a stretch of the
   Trail), with each step's checkpoint and number sitting on it. */
.workflow__grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 64px;
}

/* Each step spans four shared rows (title, screen, text, button), so titles, screens and
   buttons line up across a row whatever the title length. */
.step {
  position: relative;
  grid-row: span 4;
  display: grid;
  grid-template-rows: subgrid;
  align-items: start;
  padding: 30px var(--gutter) 64px 0;
  border-top: 1px solid var(--line);
}
.step:nth-last-child(-n+3) { padding-bottom: 0; }
.step__num {
  position: absolute;
  top: -7px;
  left: 14px;
  padding: 0 6px;
  background: var(--paper);
  color: var(--ink-2);
  font: 400 12px/1 var(--mono);
  letter-spacing: .06em;
}
.step__title {
  font: 400 var(--fs-card)/1.06 var(--sans);
  letter-spacing: -0.025em;
}
.step__media {
  position: relative;
  aspect-ratio: 432 / 283;
  margin-top: 22px;
  overflow: hidden;
  container-type: inline-size;
}
.step__text {
  color: var(--ink-2);
  max-width: 430px;
  margin: 18px 0 26px;
  line-height: 1.34;
}
/* Each step's link is a quiet text link; the page keeps solid buttons for the main actions. */
.step__cta { justify-self: start; min-height: 32px; padding: 0; background: none; color: var(--ink); }
@media (hover: hover) { .step__cta:hover { background: none; text-decoration: underline; text-underline-offset: 4px; } }

@media (max-width: 1099px) {
  .workflow__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-last-child(-n+3) { padding-bottom: 64px; }
  .step:nth-last-child(-n+2) { padding-bottom: 0; }
}

@media (max-width: 767px) {
  .workflow__grid { grid-template-columns: 1fr; margin-top: 36px; }
  .step, .step:nth-last-child(-n+3), .step:nth-last-child(-n+2) {
    grid-row: auto;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 18px;
    padding: 26px 0 22px;
  }
  .step__media { grid-column: 1; grid-row: 1 / span 2; margin-top: 0; aspect-ratio: 1; }
  .step__title { grid-column: 2; grid-row: 1; min-height: 0; font-size: 22px; }
  .step__text {
  color: var(--ink-2); display: none; }
  .step__cta { grid-column: 2; grid-row: 2; align-self: end; margin-top: 14px; }
}
