/* Features and How it works. The two pages share this file. It uses the tokens of styles.css and the kit. */

/* a row of links to the stages of the page */
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-top: var(--s-5); }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-weight: 500; text-decoration: none; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.jump a:hover { color: var(--ink); border-color: var(--line-strong); }

/* the head of a stage: the plan it is in, under the lead */
.plan-note { color: var(--muted); font-weight: 500; }

/* features as plain rows: the name, then one sentence. Two columns on a wide screen. */
.frows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--s-7); }
.frows li { display: grid; gap: var(--s-1); align-content: start; padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.frows strong { font-weight: 500; }
.frows--head { margin-bottom: var(--s-3); }
@media (min-width: 900px) {
  .frows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frows.frows--one { grid-template-columns: minmax(0, 1fr); }
}
:is(.mat, .grid, .pair) + .frows { margin-top: var(--s-7); }
.frows + .frows { margin-top: var(--s-6); }
.frows-title { margin: var(--s-7) 0 var(--s-3); }
.frows-title + .frows { margin-top: 0; }

/* two captures side by side, each on its own mat */
.pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-7); }
.pair > .mat { display: grid; place-items: center; }
.pair .shotwin { width: 100%; max-width: var(--shot-w, none); }
@media (min-width: 900px) { .pair { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); } }

/* a mat that holds a phone beside text */
.feature > .mat.phones { padding-block: var(--s-6); }
.feature .stack-4 .frows { margin-top: var(--s-3); }
.feature .stack-5 .frows { margin-top: var(--s-3); }

/* the same grid with the capture first on a wide screen */
@media (min-width: 900px) { .rev > * { grid-row: 1; } }

/* the cards of the "around every stage" section hold rows under the text */
.card--row .frows { margin-top: var(--s-4); }
.card--row .frows li { padding: var(--s-3) 0; }
.card--row > .frows + .mat { margin-top: var(--s-5); }

/* inside the inverse band the rule takes the band's own line colour (the kit sets --line there) */
.ground-inverse .frows li { border-color: var(--line); }
.ground-inverse .plan-note { color: var(--muted); }

/* How it works: the steps in order */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
.steps > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.steps .step-num { margin-top: 2px; }
.steps h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.steps__body { display: grid; gap: var(--s-1); }
.who { color: var(--muted); font-weight: 500; }
@media (min-width: 900px) { .steps--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-7); row-gap: var(--s-6); } }
.phase-head + .steps, .grid .steps { margin-top: var(--s-6); }
.steps + .note, .note + .note { margin-top: var(--s-5); }
.note { max-width: 62ch; }
.pair--even { }
@media (min-width: 900px) { .pair.pair--even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ground-inverse .who { color: var(--muted); }
.steps .step-num { font-size: 16px; width: 36px; height: 36px; }
.steps > li { grid-template-columns: 36px minmax(0, 1fr); }
.steps__body p { max-width: 62ch; }
.frows strong { font-size: var(--t-card); line-height: 1.3; letter-spacing: -0.01em; }
.frows li > span { color: var(--muted); }
.ground-inverse .frows li > span { color: var(--muted); }
.section-head p.plan-note { font-size: var(--t-body); color: var(--muted); }
.feature + .note, .grid + .note { margin-top: var(--s-6); }
.hero__lead, .t-lead, .section-head > p, .grid > div > p { max-width: 62ch; }
.hero__lead { margin-inline: auto; }
.frows-title { font: 500 var(--t-h3, 28px)/1.15 var(--font-display); letter-spacing: var(--display-tracking); margin-top: var(--s-8); }
.mat.one { display: grid; place-items: center; }
.mat.one .shotwin { width: 100%; max-width: var(--shot-w, none); }
.feature + .feature { margin-top: var(--s-8); }
.hero__lead, .t-lead, .section-head > p, .grid > div > p, .note { max-width: 56ch; }
.steps__body > p:last-child { margin-top: var(--s-1); }
:is(.mat, .pair) + .steps { margin-top: var(--s-7); }
.plan-note + .frows, .frows-title + .plan-note { margin-top: var(--s-3); }
.frows-title + .plan-note { margin-bottom: var(--s-3); }
.feature:has(> .mat.one) { align-items: start; }

/* block titles are one clear step above the row names */
.feature h3, .frows-title { font: 500 var(--t-h3, 28px)/1.15 var(--font-display); letter-spacing: var(--display-tracking); }
.feature h3.stage-gap { margin-top: var(--s-7); }
.mat + .feature, .grid + .feature { margin-top: var(--s-8); }
.nw { white-space: nowrap; }
.stage-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); }
.steps__body p, .note { max-width: 54ch; }

/* the step titles keep the row size inside a feature block (all 17 are one size) */
.feature .steps h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
/* Elliot and brand: the capture of Elliot sits under its own text on a phone, and beside both blocks on a wide screen */
.elliot-row { row-gap: var(--s-7); }
@media (min-width: 900px) {
  .elliot-row__a { grid-row: 1; }
  .elliot-row__shot { grid-row: 1 / span 2; }
  .elliot-row__b { grid-row: 2; }
}

/* Polish, 2026-11-16. A note stands clear of the rows above it. */
.frows + .note { margin-top: var(--s-5); }
