/*
 * How it works, page-only.
 *
 * tokens.css decides type, colour and space; styles.css builds the components (.steps, .split,
 * .device, .device-row, .card, .pill). Nothing here restates either of those. What is left is
 * the handful of spacing decisions that only this page's sequence needs.
 *
 * .closing, .cta-note and the card-heading gap moved to styles.css on 2026-11-15, once a second
 * page needed each of them.
 */

/* The hero is type, not product: the five lines of the loop are the picture. It therefore
   carries less top padding than the home hero, which has a phone to balance. */
.hero { padding-top: var(--space-5); }

/* `.hero .lead { max-width: 46rem }` was here and is gone. It widened the lead to about 71
   characters, overruling --measure-lead (54ch) from tokens.css - a page file making a decision
   the architecture note at the top of styles.css says page files must not make. It also has no
   job now the hero is a two-column split. Raised by a cycle-2 reviewer. */
@media (min-width: 52rem) {
  .hero { padding-top: var(--space-6); }
  .hero .split { grid-template-columns: 1fr 0.85fr; align-items: center; }
}

.hero .lead { margin-top: var(--space-3); }

/* The `.loop-map` rules lived here. The list they styled was deleted from the hero - it
   repeated the five section headings verbatim. */

/* A spec strip under a step, close enough to belong to the sentence above it. */
.step-pills { margin-top: var(--space-3); }

/* The aside that follows a row of screens: narrower than the measure, so it reads as a note on
   the screens rather than the start of a new idea. */
.step-note {
  margin-top: var(--space-4);
  max-width: 58ch;
  font-size: var(--step-meta);
}

/*
 * Step three gets the most room on the page, because it is the half of coaching that a video
 * cannot do. More padding above and below, and the two cards sit under the two screens that
 * they quote.
 */
.drill-step { padding-block: var(--space-5); }

@media (min-width: 48rem) {
  .drill-step { padding-block: var(--space-7); }
}

.drill-grid { margin-top: var(--space-4); }

.drill-note {
  margin-top: var(--space-4);
  max-width: 62ch;
  font-size: var(--step-meta);
}


/* Step one is the only step with no screen to show, so it stays a short band rather than
   stretching to the height of the sections that have one. */
.film-step { padding-block: var(--space-4); }

@media (min-width: 48rem) {
  .film-step { padding-block: var(--space-5); }
}

/*
 * 390px. This page shows eight screens. The stacked phones used to be shrunk to 15rem here to
 * stay inside the 8,000px budget; styles.css now turns a device row into a snapping swipe row
 * on a phone instead, which costs one phone's height rather than three and keeps them readable.
 * What is left is the band padding.
 */
@media (max-width: 30rem) {
  .section { padding-block: var(--space-4); }
  .drill-step { padding-block: var(--space-5); }
  .split .device { width: min(100%, 17rem); }
}

/*
 * This page's section headings are left-aligned, because each one is a numbered step rather
 * than a centred statement. A centred device row under a left-aligned heading reads as two
 * layouts in one section - most visible in step three, where two phones sit centred under a
 * heading that starts at the left margin. The rows start at the left margin too.
 *
 * Below 46rem the row is a swipe row and starts at the left anyway, so this only changes the
 * wide layout.
 */
@media (min-width: 46rem) {
  .device-row { justify-content: flex-start; }
}

/*
 * Step three is a split now rather than a one-phone row. The shot is the smaller half: this
 * screen is a conversation, not a frame of swing, so it does not need the width the step-two
 * pair does, and the sentence beside it is what the shot is evidence FOR.
 */
.drill-split { margin-top: var(--space-4); }

@media (min-width: 52rem) {
  /*
   * Both columns are sized, not one sized and one 1fr. A 1fr second column stretches to the
   * page edge and the note then sits in the middle of it with a third of a screen of nothing
   * to its right - the same emptiness the one-phone row had, moved along rather than fixed.
   *
   * align-items: start, not centre: the note is a caption to the exchange in the shot, so it
   * starts where the exchange starts. Centred, it floated against a tall frame with nothing
   * holding it to anything.
   */
  .drill-split {
    grid-template-columns: 22rem minmax(0, 26rem);
    justify-content: start;
    align-items: start;
    gap: var(--space-5);
  }

  /* It stops being a footnote once it is a column: it is the only prose in this half. */
  .drill-split .drill-note {
    margin-top: 0;
    max-width: none;
    padding-top: var(--space-2);
  }
}
