/* ==========================================================================
   trainer-modular.css — page-local styles for the modular trainer landing
   (/trainer-modular).

   Composition strategy: the page must not read as ten centered stacks in a
   row, so consecutive modules deliberately differ in shape:

     M1 hero        dark, video, 2-col asymmetric
     M2 personas    centred head, six framed cells three-up, staggered columns
     M3 build/grow  dark band, left figure panel, numbered sequence
     M4 how         2-col, left text + trainer photo     (reuses .how-it-works)
     M5 why         2-col, heading left / benefits right
     M6 included    full-bleed auto-scrolling card marquee, centred head
     M7 pricing     centred head + reassurance row, illustrated hero card
                    with two stacked cards beside it
     M8 proof       2-col, trainer cutout + evidence
     M9 faq         2-col, left stacked heading+filter menu / right list (reuses .faq-grid)
     M10 final cta  dark, centred                        (reuses .closing)

   All values read tokens.css. Zero hex/rgb literals.
   ========================================================================== */

/* ── Kicker rework: pill removed, flanking accent lines ────────────────────
   kicker.css ships .kicker as a filled pill (tint fill + full radius); this
   page drops that chrome and marks the eyebrow with a hairline accent line
   on each side instead, as a local design pass. Scoped purely by this file
   only ever loading on /trainer-modular — kicker.css itself, and every other
   route still using the pill, is untouched.

   Text treatment (uppercase, letter-spacing, weight, size, colour) moves off
   the chip onto the label itself below, carried over unchanged from
   kicker.css's own values so it survives the fill's removal.

   Alignment rule: a kicker's block context decides which sides get a line.
   Left-aligned blocks (M1 hero, M3 build/grow, M4 how — none of them sit in
   a .block-head) get the treatment below as-is: text then a single line to
   its right, flex-start packed so it sits flush against the label with
   nothing on the left to balance against. Centred block heads (M2 personas,
   M6 included, M7 pricing — plain .block-head on this page, never
   .block-head.left) get the ::before line restored and the row centred
   below, so line-text-line reads as one balanced unit.

   Line measure: 96px, one value for every line on the page — both sides of a
   centred kicker, the single line of a left-aligned one, every section, every
   breakpoint. It used to be 120px on desktop and 32px under 720, which made
   the accent read as a different mark per viewport and left the phone lines
   as stubs whose length no longer related to anything. The geometry below is
   written so that one constant is the whole story: the two pseudo-elements
   share a single rule (so a side can never drift from its opposite), and the
   context-specific rules further down only switch `content` and colour on,
   never the size.
   ------------------------------------------------------------------------ */
.kicker {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-12);
  background: none;
  border-radius: 0;
  padding: 0;
  color: var(--brand-ink);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-size: var(--fs-kicker);
  font-weight: var(--fw-bold);
  /* line-height 1 is load-bearing twice over: it keeps the eyebrow's box the
     height of its own text, and it is what `align-items: center` measures the
     hairlines against — see the align-self note on the lines below. */
  line-height: 1;
  /* The label is the one item in the row that must not give: holding it to a
     single line makes its min-content equal to its max-content, so a row too
     narrow for 96+label+96 takes the shortfall out of the lines (the only
     shrinkable items left) instead of breaking a three-word eyebrow in two. */
  white-space: nowrap;
  margin-bottom: var(--space-14);
}
/* Both hairlines, one declaration — geometry only. Which sides actually draw
   is decided by `content` in the context rules below.

   flex-shrink stays at 1 as a safety valve, not as the intended behaviour:
   at 360px the longest centred kicker on the page ("14 features, one plan",
   ~155px set) needs 96+12+155+12+96 = 371px against a 328px content column,
   so the pair gives up ~21px a side rather than overflow the gutter. Both
   lines shrink off the same 96px basis in the same flex line, so they stay
   identical to each other; only the very narrowest phones ever see under
   96px, and only on the two longest labels.

   align-self: center is the same centring `align-items` already applies —
   restated on the line itself so the hairline stays pinned to the middle of
   the label's box even if a consumer re-aligns the row. Because half-leading
   is symmetric, that middle is the text's optical centre at any line-height,
   so the line cannot drift as type settings change. */
.kicker::before,
.kicker::after {
  flex: 0 1 96px;
  height: 1px;
  align-self: center;
  background: rgba(var(--brand-rgb), .1);
}
.kicker::after { content: ''; }
.block-head .kicker { justify-content: center; }
.block-head .kicker::before { content: ''; }

/* ── Scroll reveals ────────────────────────────────────────────────────────
   Driven by useReveal(): the hook sets [data-reveal-armed] on <main> once it
   has confirmed IntersectionObserver support and no reduced-motion
   preference, then marks each element [data-reveal-in] as it arrives. Every
   hidden state below is gated behind the armed attribute — with no JS, with a
   failed observer, or under reduced motion the page renders fully visible and
   none of this applies. Content is never hidden by CSS alone.

   Transform and opacity only, and short: --dur-slow with a small rise. This
   is a settle, not an entrance.
   ------------------------------------------------------------------------ */
[data-reveal-armed] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}
[data-reveal-armed] [data-reveal][data-reveal-in] {
  opacity: 1;
  transform: none;
}

/* M2 cells carry a permanent column offset (translateY on the outer
   columns), so they reveal on opacity alone — a transform here would fight
   the composition and land every card on the same baseline. */
[data-reveal-armed] .tm-personas__cell {
  transform: none;
  transition: opacity var(--dur-slow) var(--ease-out);
}

/* Stagger: nth-child delays rather than inline custom properties, in the same
   idiom as how-it-works.css. Capped under a fifth of a second so the last
   card never feels like it is waiting its turn. */
[data-reveal-armed] .tm-personas__cell:nth-child(2),
[data-reveal-armed] .tm-pricing-tiers__item:nth-child(2) { transition-delay: 70ms; }
[data-reveal-armed] .tm-personas__cell:nth-child(3),
[data-reveal-armed] .tm-pricing-tiers__item:nth-child(3) { transition-delay: 140ms; }
[data-reveal-armed] .tm-personas__cell:nth-child(4) { transition-delay: 40ms; }
[data-reveal-armed] .tm-personas__cell:nth-child(5) { transition-delay: 110ms; }
[data-reveal-armed] .tm-personas__cell:nth-child(6) { transition-delay: 180ms; }
[data-reveal-armed] .tm-proof-body { transition-delay: 80ms; }

@media (prefers-reduced-motion: reduce) {
  /* Belt and braces: the hook already refuses to arm, but if the preference
     flips after mount nothing should be left hidden or moving. */
  [data-reveal-armed] [data-reveal],
  [data-reveal-armed] [data-reveal][data-reveal-in] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  [data-reveal-armed] .tm-personas__cell { transition: none; }
}

/* ── M1 hero — Foundation footnote ─────────────────────────────────────────
   Foundation is the only stage with a second copy line placed after the CTA
   row. It reads as small print under the buttons, not a second subhead
   paragraph, so it gets its own class rather than reusing
   .hero p.subhead (hero.css). Sized and
   muted below the subhead's rgba(--white-rgb, .85); matches the alpha used
   elsewhere for secondary on-dark text (recent-bookings, store-badges). */
.hero-footnote {
  font-size: var(--fs-sm);
  color: rgba(var(--white-rgb), .65);
  margin: var(--space-16) 0 0;
  max-width: 54ch;
  font-weight: var(--fw-regular);
}

/* ── M1 hero — tablet band (721–980) ───────────────────────────────────────
   Between the two existing breakpoints the hero grid has already collapsed to
   one column (hero.css) but everything still read left-aligned against a
   centred phone, and the phone sat whole on the section's bottom edge — a
   third layout that belonged to neither desktop nor mobile.

   Two corrections, both scoped to this page (this sheet only loads on
   /trainer-modular) and bounded above 720 so the mobile hero is untouched:

   1. The copy column centres as a block. Centring is applied to
      .tm-hero__copy, not to section.hero — the mobile rule centres the whole
      section, which bleeds into the phone screen and centres the feed rows
      inside the device. Scoping it to the copy column keeps the mock's own
      typography flush-left.
   2. The phone takes the desktop crop — the section's overflow:hidden eats the
      bottom 18% of the device (113px of its 628px) instead of leaving it whole
      on the edge. Desktop gets there by translating the phone 27% down inside
      a two-column grid that has the height to spare; here the aside is the
      last row, so translating that far would only open ~160px of dead band
      above the device. The device keeps its 10% nudge and the crop comes from
      a negative bottom margin instead: the aside's box ends 95px short, the
      section's bottom padding follows it up, and the phone is cut at the same
      82% mark while the hero gets ~80px shorter rather than taller. The
      .trn-pop is absolute against the aside, so it rides up with that box and
      stays hugging the phone's lower-left; it is never transformed.
   ------------------------------------------------------------------------ */
@media (min-width: 721px) and (max-width: 980px) {
  .tm-hero__copy { text-align: center; }
  /* Every max-width'd line in the column centres as a block. */
  .hero .tm-hero__copy p.subhead,
  .hero .tm-hero__copy .hero-footnote {
    margin-left: auto;
    margin-right: auto;
  }
  .hero .tm-hero__copy .hero-actions { justify-content: center; }
  /* text-align above only centres inline content — the kicker is now a
     full-width flex row (see the kicker rework at the top of this file), so
     it needs its own centring plus the ::before line restored to match the
     rest of this now-centred column. Switching the line on is all this rule
     does: size comes from the shared 96px pseudo-element rule, colour from
     the .hero override further down. */
  .tm-hero__copy .kicker { justify-content: center; }
  .tm-hero__copy .kicker::before { content: ''; }
  section.hero.is-compact .hero-aside .phone-mock {
    transform: translateY(10%);
    margin-bottom: -95px;
  }
}

/* ── M1 hero — headline, one step up ────────────────────────────────────────
   This page's h1 wants to read slightly larger than the shared .hero h1
   (hero.css), without moving the other routes that reuse that rule
   (TrainerHero, generic landing hero). `.hero.is-compact h1` out-specifies
   the shared selector, and this sheet only ever loads on /trainer-modular,
   so the bump is scoped to this hero and stage-agnostic (same h1 element
   across all three stages). Each breakpoint moves up to the next rung of
   the display scale used elsewhere for h1 — a step, not a jump. */
.hero.is-compact h1 { font-size: var(--fs-h1-mid); }
@media (max-width: 980px) {
  .hero.is-compact h1 { font-size: var(--fs-h1); }
}
@media (max-width: 720px) {
  .hero.is-compact h1 { font-size: var(--fs-h2-faq); }
}

/* ── M1 hero — kicker: dark line colour + responsive centring ─────────────
   Brand-at-10% (the shared accent-line colour) is calibrated for light
   surfaces and all but disappears against the hero's video background, so
   this dark beat gets a white-alpha line instead — picked a notch past the
   old dark-chip fill (.12, still used by .trainer-cta's pill elsewhere) since
   a 1px line reads fainter than a filled area at the same alpha and needs
   the extra contrast to hold against moving video.

   Desktop is left-aligned (the base .kicker treatment above applies
   untouched, single line on the right). Under 720px hero.css's own
   section.hero{text-align:center} rule centres the whole hero — same "text-
   align alone can't centre a flex row" gap as the 721–980 band above, so the
   kicker needs the same fix repeated here, and the same content-only switch:
   the line is 96px here as everywhere else. */
.hero .kicker {
  background: none;
  color: var(--public-on-dark);
}
.hero .kicker::before,
.hero .kicker::after {
  background: rgba(var(--white-rgb), .3);
}
@media (max-width: 720px) {
  .hero .kicker { justify-content: center; }
  .hero .kicker::before { content: ''; }
}

/* ── Icon slot (shared: M2 cells + M6 marquee cards) ───────────────────────
   Every slot on the page is now filled — M2's six cells and M6's fourteen
   cards all carry real artwork. The empty state below is kept anyway: a slot
   with no icon is drawn as a reserved tile at the exact footprint the real
   icon will occupy — soft fill, dashed hairline — so a feature added ahead of
   its artwork reads as intentional rather than as a missing asset, and
   dropping the icon in later changes no layout.

   One primitive, two consumers — that's what makes M2 and M6 read as one
   system. .tm-marquee__slot is kept as an alias so M6's markup is untouched.

   Size is a variant, not a constant: the slot scales with its container. Both
   consumers currently take .tm-slot--lg (72px) — M2 because its cells are at
   section scale, M6 because at 56px the artwork read as a bullet next to its
   own label. The 56px base stays as the primitive's floor for any tighter
   surface. Same shape, same hairline, sized to the cell it sits in.
   ------------------------------------------------------------------------ */
.tm-slot,
.tm-marquee__slot {
  width: var(--tm-slot-size, 56px);
  height: var(--tm-slot-size, 56px);
  flex: 0 0 var(--tm-slot-size, 56px);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: border-color var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease);
}
.tm-slot--lg { --tm-slot-size: 72px; }

/* Filled variant — the slot once its real icon lands. The reserved-tile
   treatment is scaffolding for an empty box, so it comes off: no dashed
   hairline, no fill, just the artwork at the same footprint. The artwork is a
   transparent cutout, so it sits directly on the card surface. Kept as an
   explicit modifier rather than :has(img) so an empty slot is provably
   untouched by it. */
.tm-slot--icon,
.tm-marquee__slot--icon {
  border-color: transparent;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tm-slot--icon > img,
.tm-marquee__slot--icon > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── M2 · Persona grid — six framed cells, three up ────────────────────────
   Six equivalent starting points, none of them featured, so every cell gets
   the same frame: hairline border, --card surface, --radius-md. That is the
   M6 marquee card, at section scale — the two modules now share both the
   frame and the reserved icon slot, which is what makes them read as one
   system rather than two takes on the same content.

   Three equal columns is the measure fix: an earlier uneven 2+4 / 3+3 / 4+2
   bento produced cells up to 740px wide and put the shorter bodies on a
   single ~90-character line. At a third of the container every body sits near
   44 characters.

   Intra-cell rhythm is one deliberate scale: 20px under the slot, 16px
   between title and body. An earlier revision held two lines open on every
   title so bodies would align across the row, which bought alignment at the
   cost of a visible hole under every one-line title.

   The stack is centred, not left-hung: slot, title and body share the card's
   vertical centre line, which also puts every cell's slot on the same axis as
   the centred section head above. That requires equal side insets — the
   earlier 24/56 pair would have left centred content sitting visibly left of
   its own frame — so the same 80px of horizontal inset is split evenly and the
   measure is unchanged. Centring is horizontal only; the column stagger below
   is a vertical transform and the two do not interact.

   Heights are content-driven and the columns are staggered. `align-items:
   start` stops the grid stretching every cell to its row's tallest, so a card
   is exactly as tall as its own copy — the two-line bodies and the four-line
   ones stop pretending to be the same object. On top of that each column
   carries a fixed vertical offset, so neighbouring cards never share a top
   edge.

   The offsets are symmetric: the middle column holds the baseline and the two
   outer columns drop 56px, so the row reads as a shallow V. An earlier
   revision used an uneven 0 / 28 / 12 set, which gave every pair of
   neighbours a different vertical relationship and read as three inconsistent
   gaps rather than as one shape. Symmetry is what makes an offset legible as
   composition instead of as error: with one axis and one distance there is a
   rule the eye can find. They are transforms, so they cost no layout; the
   grid carries matching bottom padding to give the dropped columns somewhere
   to go.

   Not true masonry: with six cards in two rows, real masonry (row 2 hugging
   up into the ragged space above) would need CSS columns, which fills
   top-to-bottom-then-across and would scramble a reading order that runs
   beginner to established. Content heights plus column offsets buy the same
   loose, un-gridded read while cards 1-6 stay in order left to right.
   ------------------------------------------------------------------------ */
.tm-personas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* Row gap is wider than the column gap: the straddling slots overhang 36px
     above each card, so the second row needs that much clearance from the
     cards above it plus visible air. */
  gap: var(--space-56) var(--space-16);
  /* Cards size to their own content instead of stretching to the row. */
  align-items: start;
  /* Room for the dropped columns, which transforms don't reserve. */
  padding-bottom: var(--space-56);
  /* Room above: the icon slots straddle the cards' top border and poke half
     a slot (36px) past the grid's top edge. */
  padding-top: var(--space-40);
}

/* Column stagger: outer columns down, middle column on the baseline.
   3n+1 is column one, 3n+2 the middle, 3n+3 column three. */
.tm-personas__cell:nth-child(3n + 1),
.tm-personas__cell:nth-child(3n + 3) { transform: translateY(56px); }

.tm-personas__cell {
  display: flex;
  flex-direction: column;
  /* Centred composition: slot, title and body all share one vertical axis.
     align-items centres the slot and the measure-capped body as flex items;
     text-align centres the lines inside them. */
  align-items: center;
  text-align: center;
  gap: var(--space-16);
  /* Side insets are equal so the content axis is the card's real centre — an
     asymmetric inset (the earlier 24/56 pair) would leave centred content
     visibly off-centre in its frame. 40px a side keeps the same 80px of total
     horizontal inset the uneven pair had, so the measure doesn't widen. */
  padding: var(--space-24) var(--space-40);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
}

/* The one step in the scale that isn't 16: the slot is a graphic, not a line
   of text, so it needs slightly more air beneath it to stop reading as part
   of the title block.

   The slot straddles the frame: a negative top margin lifts it so the card's
   top border runs exactly through its vertical middle — upper half of the
   icon outside the frame, lower half wrapped by it. The opaque --bg fill
   (invisible against both surfaces, card and section are the same white)
   masks the border line behind the icon, so the frame reads as parting
   around the artwork rather than cutting through it. */
.tm-personas__cell .tm-slot {
  margin-top: calc(-1 * (var(--space-24) + var(--tm-slot-size, 72px) / 2));
  margin-bottom: var(--space-4);
}
.tm-personas__cell .tm-slot--icon { background: var(--bg); }

.tm-personas__cell h3 {
  margin: 0;
  color: var(--ink);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-card);
  /* Titles run to four words or more in a third-width cell, so let the
     browser even out the wrap rather than leaving one word on line two. */
  text-wrap: balance;
}

/* Bodies are client copy and show in full — no clamping. The ch cap holds the
   measure just inside the column at desktop and does the real work once the
   grid collapses to one or two wide columns. */
.tm-personas__cell p {
  margin: 0;
  color: var(--ink-3);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: 44ch;
}

/* This module's heading carries the section, so it runs at the system's large
   section-h2 step rather than the default --fs-h2 (the same token the
   categories module uses on the main landing). Scoped to the module: it is a
   deliberate emphasis here, not a change to .block-head everywhere. */
#built-for .block-head h2 { font-size: var(--fs-h1-lg); }

/* ── M3 · Build / Manage / Grow — dark band with a process diagram ──────────
   An earlier revision ran the photograph full-bleed behind everything. That
   forced the wash so dark (to hold 14px runs at AA over the window
   highlights) that the photograph stopped reading at all. So the photo gets
   its own real estate instead: a panel bleeding off an edge at full
   brightness, content on solid dark beside it. Text never sits on the image,
   so contrast is structural rather than tuned.

   The panel covers the intro row only, and bleeds off the *right* edge. Both
   follow from the module's shape: Build → Manage → Grow is drawn as a
   diagram that needs the full container width, so nothing can hold a column
   for the whole section height, and the intro copy has to share the
   diagram's left axis or the figure reads as a detached band. Bleeding right
   also suits the photograph, whose content (arched windows, the rack) sits
   in the right of the frame — the empty wall is what dissolves into the
   plate, not the subject.

   Art direction: an empty studio before opening, not a training scene.
   The brand rules out neon gym interiors and anonymous-muscle stock, and the
   closing CTA already owns the cinematic-gym look. Calm architecture reads as
   business infrastructure, which is the brand personality.
   ------------------------------------------------------------------------ */
.tm-bmg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--public-on-dark);
}
/* The section's vertical rhythm moves onto the two rows, so the figure can
   sit at top:0 of the intro and still reach the true top edge of the band
   instead of starting below section.block's padding. Doubled class to beat
   `section.block`'s element+class specificity. */
.tm-bmg.block { padding: 0; }

.tm-bmg__figure {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  height: 100%;
  object-fit: cover;
  /* Only bites once the panel is taller than 1:1.78 (narrow viewports), where
     cover starts cropping width instead of height. Anchored right, onto the
     windows and the lit floor: at 50% it lands on the dark empty wall and
     reads as flat black. */
  object-position: 82% 46%;
  z-index: -2;
  pointer-events: none;
  /* Feather both inner edges so the panel dissolves into the dark plate
     instead of cutting a hard seam. Two layers intersected: a long fade
     across to the copy, and a short one at the foot so the panel does not
     end on a ruled line where the diagram's rail starts. A mask reads only
     the alpha channel, so the colour here is arbitrary and no token
     applies. */
  -webkit-mask-image:
    linear-gradient(270deg, black 55%, transparent 100%),
    linear-gradient(180deg, black 82%, transparent 100%);
  mask-image:
    linear-gradient(270deg, black 55%, transparent 100%),
    linear-gradient(180deg, black 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Grain, matching the .trainer-cta texture. */
.tm-bmg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url('../../noise.svg');
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: .22;
  mix-blend-mode: overlay;
}

/* Two stacked rows, both full-bleed: the intro (copy + figure panel) and the
   diagram. .container's centring is neutralised here because the figure has
   to be measured against the full section width; the two rows re-create the
   container's inner edge themselves so their content still lands on one axis. */
.tm-bmg__inner {
  max-width: none;
  padding: 0;
}

/* Column 2 is the figure's real estate. The left pad reproduces where
   .container's text edge falls at this viewport width — max() so it degrades
   to a plain gutter once the viewport is narrower than the container. */
.tm-bmg__intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42%;
  padding-top: var(--space-88);
  padding-bottom: var(--space-56);
  padding-left: max(
    var(--container-pad),
    calc((100% - var(--container-max)) / 2 + var(--container-pad))
  );
}
.tm-bmg__content {
  grid-column: 1;
  /* Grid items default to min-width:auto and refuse to shrink below their
     min-content, which blows the column out past the viewport on phones. */
  min-width: 0;
  max-width: 54ch;
  /* Clearance so the lead never runs into the panel's feathered edge. */
  padding-right: var(--space-48);
}

/* Dark-surface kicker: pill fill stripped like every kicker on this page —
   text-only, colour white, and the flanking line swaps to white-alpha (see
   the M1 hero kicker note near the top of this file) since brand-at-10%
   doesn't hold up against this band's photo background. Left-aligned like
   the rest of this module — .tm-bmg__content never centres at any
   breakpoint — so only the base ::after line applies; no ::before override
   needed here. */
.tm-bmg .kicker {
  background: none;
  color: var(--public-on-dark);
}
.tm-bmg .kicker::after {
  background: rgba(var(--white-rgb), .3);
}

.tm-bmg__content h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  font-weight: var(--fw-display);
  margin: 0 0 var(--space-14);
}
.tm-bmg__lead {
  /* The gap down to the diagram belongs to the intro row, which owns the
     figure panel's height with it. */
  margin: 0;
  color: rgba(var(--white-rgb), .82);
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  max-width: 54ch;
}

/* ── The diagram ───────────────────────────────────────────────────────────
   A rail runs across the top of the three stages, each stage marks it with a
   station dot and drops a spine, and every capability hangs off that spine as
   its own node. The previous revision set the same content as three
   middot-separated runs, which read as comma-soup and left the "one platform"
   claim unillustrated; wiring the stages together makes the claim structural.

   Every line is a 1px pseudo-element scaled from 0, not an SVG path: the
   geometry is entirely "along this box's edge", so the box model already
   knows the coordinates. An SVG would need a viewBox re-measured on every
   reflow, and would put the connectors outside the flow that positions them.
   Nothing here is a background-position or width animation — scaleX/scaleY
   off a pinned transform-origin is what draws a line without touching layout.

   Each node owns the run of spine directly above it (its own row plus the gap
   above), so consecutive segments meet exactly and the spine grows one node
   at a time rather than arriving as a finished stroke.
   ------------------------------------------------------------------------ */
.tm-bmg__flow {
  /* Distance from the spine to a node box; also the length of each stub. */
  --tm-bmg-rail: 22px;
  --tm-bmg-node-gap: var(--space-10);
  /* Stage head → first node. Read by the first node's spine segment. */
  --tm-bmg-drop: var(--space-20);
  --tm-bmg-col-gap: var(--space-40);
  --tm-bmg-line: rgba(var(--white-rgb), .22);
  --tm-bmg-live: rgba(var(--white-rgb), .8);
  /* One stagger step. 21 parts × 60ms plus the draw ≈ 1.7s for the whole
     diagram: an assembly, not a title sequence. */
  --tm-bmg-step: 60ms;
  --tm-bmg-draw: .42s;
  --tm-bmg-rise: .5s;
  /* The running pulse. One beat per part, so the loop is the reveal's
     ordering played again at cruising speed — the same `--i` drives both.
     12s over 21 parts is ~570ms a node: a readable pause, not a strobe.
     --tm-bmg-slots is set on the section by the component. */
  --tm-bmg-cycle: 12s;
  --tm-bmg-beat: calc(var(--tm-bmg-cycle) / var(--tm-bmg-slots, 21));
  /* Held back so the loop starts after the diagram has finished drawing. */
  --tm-bmg-lead: 1.9s;

  list-style: none;
  margin: 0 auto;
  /* The rows re-create .container themselves — see .tm-bmg__inner. */
  max-width: var(--container-max);
  padding: 0 var(--container-pad) var(--space-88);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--tm-bmg-col-gap);
}

.tm-bmg__stage {
  position: relative;
  min-width: 0;
}
/* The rail over this stage. Three of these plus the two links between them
   read as one line across the full width. */
.tm-bmg__stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--tm-bmg-line);
  transform-origin: left center;
}
/* A stage's rail carries the signal on to the next station, so the last one
   has no work to do: it was a line running from the final dot to the right
   margin, pointing at nothing. The drawing now ends where the process ends,
   on the Grow station. The travelling pulse for that stage goes with it (see
   the loop section) — a light running along a wire that isn't there would be
   worse than the dangling wire was. */
.tm-bmg__stage:last-child::before { content: none; }

/* The rail segment bridging the column gap from the previous stage, with a
   chevron so the sequence reads as a direction and not just a join. */
.tm-bmg__link {
  position: absolute;
  top: 0;
  left: calc(-1 * var(--tm-bmg-col-gap));
  width: calc(var(--tm-bmg-col-gap) - var(--space-8));
  height: 1px;
  background: var(--tm-bmg-line);
  transform-origin: left center;
}
.tm-bmg__link::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--tm-bmg-line);
  border-right: 1px solid var(--tm-bmg-line);
  transform: translateY(-50%) rotate(45deg);
}

.tm-bmg__stage-head {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: var(--space-10);
  /* Head text starts on the same axis as the node boxes; the station dot
     keeps the spine's axis at 0. */
  padding: var(--space-16) 0 0 var(--tm-bmg-rail);
}
/* Spine from the station dot down to the first node's segment. */
.tm-bmg__stage-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--tm-bmg-line);
  transform-origin: top center;
}
/* The station. The only brand-coloured thing in the module: three dots is
   well inside the "accent ≤10% of surface" budget, and it is what tells you
   where a stage starts on a rail that is otherwise a hairline.

   13px, not 7px. Against a 1px hairline a 7px dot reads as a thickening of
   the line; at 13 it reads as a bead the line is threaded through, which is
   what a station is. It is an element rather than a pseudo of the head so it
   keeps a pseudo of its own for the arrival ping, and it is out of flow so
   the flex row that lays out the title never sees it. */
.tm-bmg__station {
  position: absolute;
  left: 0;
  top: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--brand);
  transform: translate(-50%, -50%);
}

.tm-bmg__stage-head h3 {
  margin: 0;
  font-size: var(--fs-h3-lg);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-tight);
  line-height: 1.1;
  color: var(--public-on-dark);
}

.tm-bmg__nodes {
  list-style: none;
  margin: var(--tm-bmg-drop) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--tm-bmg-node-gap);
}
.tm-bmg__node {
  position: relative;
  min-width: 0;
  padding-left: var(--tm-bmg-rail);
}
/* This node's run of spine: from where the previous one stopped to its own
   bottom edge. */
.tm-bmg__node::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(-1 * var(--tm-bmg-node-gap));
  bottom: 0;
  width: 1px;
  background: var(--tm-bmg-line);
  transform-origin: top center;
}
.tm-bmg__node:first-child::before { top: calc(-1 * var(--tm-bmg-drop)); }
/* Nothing hangs below the last node, so the spine stops on its stub. */
.tm-bmg__node:last-child::before { bottom: 50%; }
/* The stub into the box. */
.tm-bmg__node::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--tm-bmg-rail);
  height: 1px;
  background: var(--tm-bmg-line);
  transform-origin: left center;
}

/* Nodes are peers of one another, so they are deliberately one repeated
   shape — a diagram's boxes, not a card grid pretending items differ. Flat
   translucent fill and a hairline, no blur and no shadow: they sit on the
   solid plate, not over the photograph, so there is no layering problem for
   glass to solve. */
.tm-bmg__node-box {
  position: relative;
  display: flex;
  /* Sized to its label, not to the column. A node is a box on a diagram, so
     its outline should end where its name does; a `display: flex` span is
     block-level and would otherwise run the full measure of the stage,
     turning a row of nodes into a stack of full-bleed bars. The sizing lives
     on the box and not on the <li>, so the list item keeps the column's full
     width and the connectors it owns — the spine (::before) and the stub
     (::after) are both pinned to `left: 0` and the stub is exactly
     --tm-bmg-rail long, which is also the item's padding-left, so it still
     lands on the box's left edge whatever the box's width. `top: 50%` stays
     the box's vertical centre for the same reason: the box is the item's only
     child, so it sets the item's height.
     max-width keeps the longest labels ("Marketplace visibility") inside the
     column on narrow viewports — they wrap on a space rather than overflow,
     and fit-content never breaks a word. */
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: var(--space-10);
  padding: var(--space-10) var(--space-14);
  border-radius: var(--radius-sm);
  background: rgba(var(--white-rgb), .06);
  border: 1px solid rgba(var(--white-rgb), .14);
  color: rgba(var(--white-rgb), .88);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
}
/* Sixteen identical bullets would read as one texture; sixteen distinct
   glyphs make the column scannable. Sized as content, not as a tile stacked
   over a heading — the icon sits inline, on the label's own line. */
.tm-bmg__node-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: rgba(var(--white-rgb), .6);
}

/* ── Staged reveal ─────────────────────────────────────────────────────────
   The start state is scoped under .tm-bmg--anim, a class the component only
   adds once it knows it can both observe and animate. Without JS, without
   IntersectionObserver or under reduced motion the class is absent and the
   diagram is simply drawn — content can never be stranded at opacity 0.
   `--i` is set inline per part and inherits into its pseudo-elements, so one
   custom property drives the whole cascade of delays. */
.tm-bmg--anim .tm-bmg__stage::before,
.tm-bmg--anim .tm-bmg__stage-head::before,
.tm-bmg--anim .tm-bmg__station,
.tm-bmg--anim .tm-bmg__link,
.tm-bmg--anim .tm-bmg__node::before,
.tm-bmg--anim .tm-bmg__node::after {
  transition: transform var(--tm-bmg-draw) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--tm-bmg-step));
}
/* Lines that draw along x… */
.tm-bmg--anim .tm-bmg__stage::before,
.tm-bmg--anim .tm-bmg__link,
.tm-bmg--anim .tm-bmg__node::after { transform: scaleX(0); }
/* …and along y. */
.tm-bmg--anim .tm-bmg__stage-head::before,
.tm-bmg--anim .tm-bmg__node::before { transform: scaleY(0); }
.tm-bmg--anim .tm-bmg__station { transform: translate(-50%, -50%) scale(0); }

/* Boxes land a beat after the line that reaches them, and they arrive *along*
   that line: a node slides in from its own stub, a stage title drops from its
   station. Motion that restates the connector, rather than a fade that could
   have been applied to anything. Deliberately no scale — a bordered box with
   14px text inside it resamples badly mid-tween, and the wobble is exactly
   the kind of flourish that makes a page feel cheap. */
.tm-bmg--anim .tm-bmg__stage-head > *:not(.tm-bmg__station),
.tm-bmg--anim .tm-bmg__node-box {
  opacity: 0;
  transition:
    opacity var(--tm-bmg-rise) var(--ease-out),
    transform var(--tm-bmg-rise) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--tm-bmg-step) + 90ms);
}
.tm-bmg--anim .tm-bmg__stage-head > *:not(.tm-bmg__station) { transform: translate3d(0, 12px, 0); }
.tm-bmg--anim .tm-bmg__node-box { transform: translate3d(-14px, 4px, 0); }

.tm-bmg--anim.is-revealed .tm-bmg__stage::before,
.tm-bmg--anim.is-revealed .tm-bmg__link,
.tm-bmg--anim.is-revealed .tm-bmg__node::after { transform: scaleX(1); }
.tm-bmg--anim.is-revealed .tm-bmg__stage-head::before,
.tm-bmg--anim.is-revealed .tm-bmg__node::before { transform: scaleY(1); }
.tm-bmg--anim.is-revealed .tm-bmg__station {
  transform: translate(-50%, -50%) scale(1);
}
.tm-bmg--anim.is-revealed .tm-bmg__stage-head > *:not(.tm-bmg__station),
.tm-bmg--anim.is-revealed .tm-bmg__node-box {
  opacity: 1;
  transform: none;
}

/* ── The running pulse ─────────────────────────────────────────────────────
   Once drawn, the diagram keeps working: a pulse crosses a stage's rail, its
   station flares, its nodes lift one after another, and the pulse hops the
   link to the next stage — then the loop repeats. A process diagram that
   never moves is a picture of a process; this one shows it running.

   It is the reveal's own ordering played again at cruising speed. Every part
   already carries `--i`, so `delay = i × beat` is the whole scheduler: no
   nth-child ladder, no JS timer, nothing to drift out of sync when an item is
   added to the brief. --tm-bmg-slots comes from the component, so the loop
   stays 12s end to end whatever the item count.

   The pulse is brand-coloured, and only the pulse. At rest the diagram is a
   grey hairline drawing; azure appears where the signal currently is — the
   band on the rail, the connector it hops, the node it reaches and that
   node's glyph — then drains away behind it. That is what keeps cyan inside
   the "accent ≤10% of surface" budget on a dark plate while still reading as
   SplitMart's colour: it is never more than one stage lit at a time, and the
   brand fill is a 10% wash rather than a saturated block. Anti-slop §10 warns
   off dark-mode glow as decoration; here the glow is the payload — it marks
   one moving thing and nothing else.

   The warm accent is rationed to the handover: a station goes amber for
   ~350ms as the pulse arrives, three times in twelve seconds. It reads as a
   stage changing hands, which is the one event on this diagram worth a second
   colour.

   Everything here animates opacity, transform or a colour on a 1px line, and
   body text never changes colour — every label stays at its resting contrast.

   Loop-only pseudo-elements exist only under .is-revealed, so a diagram that
   never animates never carries them at all. */
.tm-bmg--anim.is-revealed .tm-bmg__stage::after,
.tm-bmg--anim.is-revealed .tm-bmg__node-box::after,
.tm-bmg--anim.is-revealed .tm-bmg__node-icon,
.tm-bmg--anim.is-revealed .tm-bmg__station,
.tm-bmg--anim.is-revealed .tm-bmg__station::after,
.tm-bmg--anim.is-revealed .tm-bmg__link,
.tm-bmg--anim.is-revealed .tm-bmg__link::after {
  animation-duration: var(--tm-bmg-cycle);
  animation-iteration-count: infinite;
  animation-delay: calc(var(--i, 0) * var(--tm-bmg-beat) + var(--tm-bmg-lead));
}

/* The pulse itself: a soft band swept along the rail. A background-position
   sweep, because a transform would have to know the stage's pixel width to
   travel it; the painted strip is 1px tall, so the repaint is nothing. */
.tm-bmg--anim.is-revealed .tm-bmg__stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  pointer-events: none;
  /* Azure comet with a near-white core: the core is what makes it read as a
     light travelling along a wire rather than a coloured stripe sliding. */
  background-image: linear-gradient(
    90deg,
    transparent 0,
    rgba(var(--brand-rgb), .75) 42%,
    var(--tm-bmg-live) 50%,
    rgba(var(--brand-rgb), .75) 58%,
    transparent 100%
  );
  background-repeat: no-repeat;
  background-size: 88px 100%;
  background-position: -88px 0;
  animation-name: tm-bmg-rail-run;
  animation-timing-function: linear;
}
@keyframes tm-bmg-rail-run {
  0% { background-position: -88px 0; opacity: 0; }
  2% { opacity: 1; }
  9% { background-position: calc(100% + 88px) 0; opacity: 1; }
  11%, 100% { background-position: calc(100% + 88px) 0; opacity: 0; }
}

/* The last stage has no rail, so it has no comet either. */
.tm-bmg--anim.is-revealed .tm-bmg__stage:last-child::after { content: none; }

/* The handover, rewritten as a heartbeat. The old version was one symmetric
   swell to 1.6x and back — legible, but a bigger dot made it read as a blob
   inflating. A station now takes the pulse in two beats: a hard hit to amber,
   a drop, a softer second beat already back on brand, then settle. Two beats
   land as something arriving; one reads as something breathing.

   Between handovers the dot doesn't sit perfectly still either — one shallow
   swell around the middle of the cycle. Each station's timeline is offset by
   its own `--i`, so the three idle beats never coincide and the row keeps a
   low pulse of its own instead of freezing for eleven seconds out of twelve.

   Scale peaks lower than before (1.45 against 1.6) because it is scaling a
   13px dot rather than a 7px one: same absolute travel, less inflation. */
.tm-bmg--anim.is-revealed .tm-bmg__station {
  animation-name: tm-bmg-station-flare;
  animation-timing-function: var(--ease-out);
}
@keyframes tm-bmg-station-flare {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    background-color: var(--brand);
  }
  2% {
    transform: translate(-50%, -50%) scale(1.45);
    background-color: var(--star);
  }
  4.5% {
    transform: translate(-50%, -50%) scale(1.02);
    background-color: var(--star);
  }
  7% {
    transform: translate(-50%, -50%) scale(1.26);
    background-color: var(--brand);
  }
  11%, 46% {
    transform: translate(-50%, -50%) scale(1);
    background-color: var(--brand);
  }
  /* The idle swell. */
  52% { transform: translate(-50%, -50%) scale(1.12); }
  60% { transform: translate(-50%, -50%) scale(1); }
}

/* The ping: a ring shed by the station as the pulse lands, expanding out and
   fading. It is the one piece of pure decoration in the module and it earns
   its place by being the thing that makes the handover visible from the far
   side of the diagram — the flare alone is a 13px event on a full-width
   drawing. Ring only, never a filled disc: a filled halo would wash the
   labels beside it. Loop-only pseudo, so a still diagram never carries it. */
.tm-bmg--anim.is-revealed .tm-bmg__station::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--brand);
  opacity: 0;
  pointer-events: none;
  animation-name: tm-bmg-station-ping;
  animation-timing-function: var(--ease-out);
}
@keyframes tm-bmg-station-ping {
  0% { transform: scale(1); opacity: 0; }
  2% { opacity: .6; }
  12% { transform: scale(3.6); opacity: 0; }
  12.01%, 100% { transform: scale(1); opacity: 0; }
}

/* The node lift: a second hairline over the resting one, faded in and out.
   Overlaying rather than restyling the box keeps the loop on opacity alone,
   and carries the brand wash and the shadow token in with it. */
.tm-bmg--anim.is-revealed .tm-bmg__node-box::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(var(--brand-rgb), .55);
  background: rgba(var(--brand-rgb), .1);
  box-shadow: var(--shadow-brand);
  opacity: 0;
  pointer-events: none;
  animation-name: tm-bmg-node-live;
  animation-timing-function: var(--ease);
}
@keyframes tm-bmg-node-live {
  0%, 100% { opacity: 0; }
  1.6%, 5% { opacity: 1; }
  9% { opacity: 0; }
}
/* The glyph picks the brand up for the same window. The label does not — its
   contrast is not something a decorative loop gets to modulate. */
.tm-bmg--anim.is-revealed .tm-bmg__node-icon {
  animation-name: tm-bmg-icon-live;
  animation-timing-function: var(--ease);
}
@keyframes tm-bmg-icon-live {
  0%, 10%, 100% { color: rgba(var(--white-rgb), .6); }
  1.6%, 5% { color: var(--brand); }
}

/* The hop between stages: the connector and its chevron light together. */
.tm-bmg--anim.is-revealed .tm-bmg__link {
  animation-name: tm-bmg-line-spark;
  animation-timing-function: var(--ease);
}
.tm-bmg--anim.is-revealed .tm-bmg__link::after {
  animation-name: tm-bmg-edge-spark;
  animation-timing-function: var(--ease);
}
@keyframes tm-bmg-line-spark {
  0%, 10%, 100% { background-color: var(--tm-bmg-line); }
  2%, 6% { background-color: var(--brand); }
}
@keyframes tm-bmg-edge-spark {
  0%, 10%, 100% { border-color: var(--tm-bmg-line); }
  2%, 6% { border-color: var(--brand); }
}

/* Belt and braces for a preference toggled after the component mounted. */
@media (prefers-reduced-motion: reduce) {
  /* The loop stops and the two pseudo-elements that only exist to carry it
     are removed outright. */
  .tm-bmg--anim.is-revealed .tm-bmg__stage::after,
  .tm-bmg--anim.is-revealed .tm-bmg__node-box::after { content: none; }
  .tm-bmg--anim.is-revealed .tm-bmg__station::after { content: none; }
  .tm-bmg--anim.is-revealed .tm-bmg__station,
  .tm-bmg--anim.is-revealed .tm-bmg__node-icon,
  .tm-bmg--anim.is-revealed .tm-bmg__link,
  .tm-bmg--anim.is-revealed .tm-bmg__link::after { animation: none; }

  .tm-bmg--anim .tm-bmg__stage::before,
  .tm-bmg--anim .tm-bmg__link,
  .tm-bmg--anim .tm-bmg__node::after,
  .tm-bmg--anim .tm-bmg__stage-head::before,
  .tm-bmg--anim .tm-bmg__node::before {
    transition: none;
    transform: none;
  }
  .tm-bmg--anim .tm-bmg__station {
    transition: none;
    transform: translate(-50%, -50%);
  }
  .tm-bmg--anim .tm-bmg__stage-head > *:not(.tm-bmg__station),
  .tm-bmg--anim .tm-bmg__node-box {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ── M4 · How it works — extends the shared .how-it-works composition ───── */
/* The shared stepper stages three items; this module has five. */
.tm-how-steps li:nth-child(4) { animation-delay: 420ms; }
.tm-how-steps li:nth-child(5) { animation-delay: 560ms; }
.tm-how-steps li:nth-child(1) .num { animation-delay: 0s; }
.tm-how-steps li:nth-child(2) .num { animation-delay: .9s; }
.tm-how-steps li:nth-child(3) .num { animation-delay: 1.8s; }
.tm-how-steps li:nth-child(4) .num { animation-delay: 2.7s; }
.tm-how-steps li:nth-child(5) .num { animation-delay: 3.6s; }

/* Steps here are single sentences with no sub-heading, so they carry the
   body size rather than the shared caption size. */
.tm-how-steps { margin-top: var(--space-32); }
.tm-how-steps li p {
  font-size: var(--fs-body);
  color: var(--ink-2);
  padding-top: var(--space-8);
}

/* This module's step list is shorter than the one the shared component was
   built for, so an unconstrained photo grows taller than the text column and
   overhangs the section's top edge. Cap its height and keep it right-aligned
   against the text. */
.tm-how .hiw-photo {
  max-height: 560px;
  width: auto;
  margin-left: auto;
  /* The shared rule drop-shadows the figure, which assumes an alpha-cut
     source. This photo is not one, so the shadow renders as a rectangle
     around the image box. */
  filter: none;
}

/* Horizontal-overflow guard for the floating stat card.
   The shared card hangs 24px past its column (`.hiw-stat { right: -24px }`)
   and its sticker badge adds another 12px on top of that — 36px past the
   container's content edge in total. From the two-column breakpoint up to
   ~1224px the container is still fluid, so the only gutter available is its
   own 24px padding: the badge's last 12px pushed the document 12px wider
   than the viewport and gave the page a horizontal scrollbar. Pull the card
   in for that band (36px overhang -> 20px, 4px of clearance) and let the
   full overhang return once the page margins around the 1200px container are
   wide enough to pay for it. The 1260px ceiling is deliberately above the
   1224px break-even point so a classic scrollbar can't land the layout back
   inside the overflowing range. */
@media (min-width: 981px) and (max-width: 1260px) {
  .tm-how .hiw-stat { right: calc(var(--space-8) * -1); }
}

/* No margin-bottom override here: the shared .hiw-art:has(.hiw-photo) rule
   cancels the section's padding-bottom exactly (88px desktop, 56px phones),
   so the figure and its stat card stand flush on the section's lower
   boundary with no background strip before the next block. */

/* ── M5 · Why trainers choose — heading left, benefits right ──────────────
   The section's tint is an inset rounded panel rather than a full-bleed band.
   `.block.alt` can't do it: that tint is shared with four other sections
   (M7, the landing testimonials, categories…), so this section drops `.alt`
   and paints its own background through a ::before. */
.tm-why-block {
  position: relative;
  /* Side inset of the tinted panel from the page edges. */
  --tm-why-inset: var(--space-32);
}
.tm-why-block::before {
  content: '';
  position: absolute;
  inset: 0 var(--tm-why-inset);
  background: var(--bg-soft);
  border-radius: var(--radius-3xl);
}
/* The container is widened by exactly the inset it now sits inside, so the
   text column still lands on the same page grid as the untinted sections
   above and below, and the inset reads as the panel's inner padding instead
   of eating the content width. `position` lifts it above the ::before. */
.tm-why-block > .container {
  position: relative;
  max-width: calc(var(--container-max) + 2 * var(--tm-why-inset));
  padding-inline: calc(var(--container-pad) + var(--tm-why-inset));
}
.tm-why {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: var(--space-56);
  align-items: start;
}
.tm-why-head h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  font-weight: var(--fw-bold);
  margin: 0 0 var(--space-14);
}
.tm-why-lead {
  margin: 0;
  color: var(--ink-3);
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  max-width: 46ch;
}

/* Flat benefit list: the client copy specifies flat lists per stage
   (9 / 1+5 / 8 items), which the former three-group bento couldn't hold
   without inventing group labels. No card chrome — a white panel inside the
   tinted panel would be a box in a box, and the icons already give the list
   its structure. The class name stays so the markup and the PLUS divider
   keep their hook. */
.tm-benefit-card {
  padding: 0;
  border: 0;
  background: none;
}
/* Inherited-tier row ("Everything in Launch") above the PLUS divider. */
.tm-benefit-base {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
  margin: 0;
  color: var(--ink-2);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: var(--lh-card);
}
/* "PLUS" divider between the inherited base and the stage's additions —
   client copy, set as a hairline rule with the word centered. */
.tm-benefit-plus {
  display: flex;
  align-items: center;
  gap: var(--space-14);
  margin: var(--space-16) 0 var(--space-20);
  color: var(--brand-ink);
  font-size: var(--fs-micro);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
}
.tm-benefit-plus::before,
.tm-benefit-plus::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--line);
}
.tm-benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-18) var(--space-24);
}
.tm-benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
  color: var(--ink-2);
  font-size: var(--fs-body);
  line-height: var(--lh-card);
}
/* One 22px duotone glyph per benefit (see WhyChoose.tsx). Bigger than the
   old 16px tick because a duotone silhouette needs the area to stay legible;
   flex-start keeps it on the first line when a label wraps. */
.tm-benefit-icon {
  flex-shrink: 0;
  color: var(--brand);
  width: 22px;
  height: 22px;
}

/* ── Heading accents (M5 Foundation heading, M6 heading) ─────────────────────
   A couple of words get the brand-accent treatment inline in a heading.
   brand-ink, not brand: on the light panel/page backgrounds these headings
   sit on, --brand's cyan falls under 3:1 contrast against white — --brand-ink
   is the darker variant built for exactly this. */
.tm-accent {
  color: var(--brand-ink);
}
/* Both accents ("to build" in M5, "to run" in M6) also draw a thin
   underline on load/mount. A ::after bar (not text-decoration) so
   thickness/colour/opacity are exact and the draw is a transform, not a
   layout change — stays on the compositor. M5's span is recreated whenever
   the Foundation stage (re)mounts — its children differ in shape from
   Growth/Demand's plain-string heading, so React unmounts/remounts rather
   than patching in place — so a freshly inserted node replays the keyframe
   by construction each time the stage switches back to Foundation. */
.tm-accent--underline {
  position: relative;
  display: inline-block;
}
.tm-accent--underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.06em;
  height: 1px;
  background: rgba(var(--brand-rgb), .2);
  transform: scaleX(0);
  transform-origin: left;
  animation: tm-accent-draw .6s var(--ease-out) .5s forwards;
}
@keyframes tm-accent-draw {
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .tm-accent--underline::after {
    animation: none;
    transform: scaleX(1);
  }
}

/* ── M6 · Everything included — feature marquee ─────────────────────────────
   A full-bleed line of fourteen cards drifting left at ~45px/s, and draggable.
   The wrapper is the only element that clips, so nothing here can widen the
   page. The track carries the card list twice (the second copy is aria-hidden
   in the markup) and its x is written per-frame from the component's rAF loop,
   wrapped modulo one copy's width — the same loop point the old keyframe used,
   but as a number the drag can also move.
   ------------------------------------------------------------------------ */
.tm-marquee {
  position: relative;
  overflow: hidden;
  /* The page keeps the vertical axis; only horizontal gestures reach the
     component, which is what lets it capture a swipe without ever costing
     the reader a scroll. */
  touch-action: pan-y;
  cursor: grab;
  /* Room for the arc. Cards only ever fall below the centre one and only ever
     scale down, so the headroom the curve needs is all at the bottom; without
     it the clip would shave the outermost cards. */
  padding: var(--space-8) 0 var(--space-48);
  /* Both edges dissolve instead of cutting cards in half, so the row reads as
     continuous rather than as a clipped grid. A mask samples only the alpha
     channel, so `black` here means "opaque" and no colour token applies —
     same sanctioned exception as .tm-bmg__figure above. */
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    black var(--space-64),
    black calc(100% - var(--space-64)),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    black var(--space-64),
    black calc(100% - var(--space-64)),
    transparent 100%
  );
}

/* While the finger is down: no text selection dragging along with the row,
   and the cursor says the row is being held rather than offered. */
.tm-marquee.is-dragging { cursor: grabbing; }
.tm-marquee.is-dragging .tm-marquee__track { user-select: none; }
/* Images are the one thing in a card that a mouse can pick up on its own. */
.tm-marquee img { -webkit-user-drag: none; user-select: none; }

.tm-marquee__track {
  display: flex;
  width: max-content;
  gap: var(--space-16);
  /* transform is owned by the rAF loop: drift, drag and momentum are one
     number there. Pause on hover and focus lives in the same place — it is a
     velocity target, not a paused animation. */
  will-change: transform;
}

.tm-marquee__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-16);
}

/* Card: reserved icon slot over a single label, centred. No body copy and no
   filled icon tile — with fourteen of them passing by, anything heavier reads
   as a wall of AI feature cards (no icon tile stacked above a heading). */
.tm-marquee__card {
  flex: 0 0 176px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  min-height: 168px;
  padding: var(--space-24) var(--space-16);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
  text-align: center;
  /* transform is driven per-frame from the component's rAF loop (the arc), so
     it is deliberately absent from the transition list — a transition here
     would fight the loop and smear every frame. */
  transform-origin: 50% 50%;
  will-change: transform;
  transition: border-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.tm-marquee__card:hover { border-color: var(--brand); }

/* The slot itself is the shared .tm-slot primitive defined at the top of this
   file; only its hover response belongs to the marquee. Filled slots opt out:
   tinting the reserved tile on hover is a cue that the box is a box, and once
   there is artwork in it that cue is noise. */
.tm-marquee__card:hover .tm-marquee__slot:not(.tm-marquee__slot--icon) {
  border-color: var(--brand);
  background: var(--brand-soft-2);
}

.tm-marquee__label {
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-card);
}
.tm-marquee__card:hover .tm-marquee__label { color: var(--brand-ink); }

@media (prefers-reduced-motion: reduce) {
  /* No drift, no momentum and no arc (the rAF loop bails out on the same
     query); the row becomes a plain horizontal scroller of flat, full-size
     cards. A finger still moves it — natively, which is the point — so the
     wrapper hands both axes back to the browser, and the component's drag
     falls through to scrollLeft for pointers that cannot pan on their own. */
  .tm-marquee {
    overflow-x: auto;
    padding-bottom: var(--space-8);
    touch-action: auto;
  }
  .tm-marquee__track { will-change: auto; }
  .tm-marquee__card { will-change: auto; }
}

/* ── M7 · Social proof — trainer cutout + evidence ────────────────────────
   Two compositions live in this section, chosen by stage (SocialProof.tsx):
   .tm-proof is the Foundation/Growth two-column shell (cutout left, proof
   right) and everything down to .tm-proof-note serves it; .tm-reasons at the
   end of the zone is Demand's full-width reason grid, which has no art
   column at all. Nothing is shared between the two but the section band. */
.tm-proof {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: var(--space-56);
  align-items: end;
}

/* The cutout stands flush on the section's lower boundary: the negative
   margin cancels the section's padding-bottom exactly (88px), so her feet
   land on the edge of the .alt background with no strip below — same device
   M4 uses. Exact cancellation, not overhang, so the next section (which
   paints its own background later in the DOM) never clips the figure.

   The stage swaps the portrait (SocialProof.tsx), so the column can no
   longer be sized by whichever image happens to be in it: the cutouts have
   different source ratios (879x951 vs 1280x1280) and letting each set its
   own height would move the whole section's lower edge on every switch.
   The box therefore owns the geometry — width of the column, locked to the
   879:951 ratio the layout was tuned around, capped at the old 480px render
   height (444 x 480) — and every portrait is fitted into it. Height is
   identical across both portrait-bearing stages by construction.
   Both portraits share one grid cell so the outgoing one can fade out under
   the incoming one with no reflow. */
.tm-proof-art {
  align-self: end;
  line-height: 0;
  margin-bottom: calc(var(--space-88) * -1);
  display: grid;
  width: 100%;
  max-width: 444px;
  aspect-ratio: 879 / 951;
}
/* cover, not contain: the square sources carry transparent side margins
   (~12% each) that contain would keep, rendering the figure smaller than
   Mira's edge-to-edge crop. Cover trims ~4% per side — well inside those
   margins, so nothing of the person is cut — and bottom-center keeps every
   figure standing on the same ground line. */
.tm-proof-art img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
}
/* Keyframe in, transition out. The incoming portrait is mounted in the same
   commit that marks it active, and a transition cannot run on an element's
   very first computed style — it would pop in over the outgoing one. An
   animation does run on mount, so the incoming side fades; the outgoing side
   simply loses .is-active and transitions back to the base opacity: 0. Both
   take --dur-slow, so the two halves of the crossfade stay in step. */
.tm-proof-art img.is-active {
  opacity: 1;
  animation: tm-proof-portrait-in var(--dur-slow) var(--ease);
}
@keyframes tm-proof-portrait-in {
  from { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  /* Straight swap, no crossfade. */
  .tm-proof-art img { transition: none; }
  .tm-proof-art img.is-active { animation: none; }
}

.tm-proof-body { padding-bottom: var(--space-8); }
.tm-proof-body h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  font-weight: var(--fw-bold);
  margin: 0 0 var(--space-14);
}
.tm-proof-lead {
  margin: 0 0 var(--space-28);
  color: var(--ink-3);
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  max-width: 52ch;
}

.tm-proof-benefits {
  list-style: none;
  margin: 0 0 var(--space-32);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}
.tm-proof-benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-10);
  color: var(--ink-2);
  font-size: var(--fs-body);
}
.tm-proof-benefits li svg.lucide,
.tm-proof-benefits li [data-lucide] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand);
}

/* Pull-quote. Typographic quote marks in brand, no side stripe, no card. */
.tm-quote { margin: 0 0 var(--space-28); }
.tm-quote p {
  margin: 0;
  color: var(--ink);
  font-size: var(--fs-subhead);
  font-weight: var(--fw-medium);
  line-height: var(--lh-body);
  max-width: 46ch;
}
.tm-quote p::before,
.tm-quote p::after {
  color: var(--brand);
  font-weight: var(--fw-display);
}
.tm-quote p::before { content: '\201C'; }
.tm-quote p::after  { content: '\201D'; }

/* Metric row. Display face + tabular figures, matching .proof-card .metric.
   Each value/label pair is its own white card — --bg fill, hairline border,
   --radius-md — so the tiles read as discrete facts on the section's --alt
   tint instead of a bare number list. Frames are still: no shadow, no hover,
   matching the project's standing rule for card surfaces. */
/* Twelve-column base rather than auto-fit: auto-fit sizes the row off the
   available width and leaves whatever stub the division happens to produce.
   The row count is a decision here — four per row (span 3 of 12). Growth is
   the only stage with metrics now (Demand's seven-tile wall became
   .tm-reasons below), so the row is always exactly full; a future stage with
   an awkward count keys its own exception to data-count, which the component
   sets from the real content rather than an nth-child guess. */
.tm-metrics {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-16);
  margin: 0;
  padding-top: var(--space-24);
  border-top: 1px solid var(--line);
}
.tm-metrics > div {
  grid-column: span 3;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-16);
}
.tm-metrics dt {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-tight);
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tm-metrics dd {
  margin: var(--space-6) 0 0;
  color: var(--ink-3);
  font-size: var(--fs-meta);
  line-height: 1.3;
}

.tm-proof-note {
  margin: var(--space-14) 0 var(--space-28);
  /* --muted lands at 4.38:1 on --bg-soft, just under the AA floor for text
     this size; --ink-3 clears it at 6.86:1. */
  color: var(--ink-3);
  font-size: var(--fs-micro);
}

/* ── M7 · Demand — "Why Independent Providers Choose SplitMart" ────────────
   Eight reason cards, full width, replacing the metric wall (client PDF
   p.7–8). No art column: eight titled cards with a line of copy each need
   the whole 1140px measure to fall four-wide, and beside the 444px portrait
   column they would fall two-wide and four-deep — a text block half again
   taller than the figure standing next to it. The head is the page's own
   .block-head (centred h2, shared responsive sizing), so nothing here
   restyles it.

   4 x 2 on desktop by an explicit repeat(4), not auto-fit: the count is
   exactly eight and the two rows are meant to be equal — auto-fit would
   re-cut them at every intermediate width and could leave a 3 + 3 + 2.

   No surface: no fill, no border, no radius — the same bare-block treatment
   as .tm-benefit-card, which is the page's standing move for a list of short
   read-once items sitting on the --alt tint. Eight bordered boxes here read
   as a form, and the tint already separates the zone from the bands above
   and below; the glyph plus the bold title carry the grouping on their own.
   Body copy is --ink-3 on --alt rather than on --bg, which the tint keeps
   well inside AA at this size.

   With the boxes gone the gap becomes the only separator, so it grows and
   splits: 40px between the rows (two lines of copy need clear air under
   them before the next glyph) against 32px between columns. */
.tm-reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-40) var(--space-32);
}
/* Padding zeroed, not merely trimmed: the card's left edge is now the text's
   left edge, so all four columns align to the container measure exactly like
   .block-head above them. */
.tm-reason { padding: 0; }
/* One 48px duotone glyph per card — doubled from 24px now that there is no
   border to give the block its presence. At this size the glyph is the card's
   anchor rather than a bullet, and it sits between the 22px benefit tick and
   M6's 72px slot's upper half. Fixed box so a glyph that arrives late (the
   loader swaps the <i> for an inline SVG after mount) cannot reflow the card.

   Written against `svg.` and `[data-lucide].` rather than the bare class:
   base.css sizes every rendered icon with `svg.lucide` (0,1,1), which outranks
   a lone class and would otherwise clamp this back to 20px the moment the
   swap lands. Same idiom as .tm-proof-benefits above. */
svg.tm-reason__icon,
[data-lucide].tm-reason__icon {
  display: block;
  width: 48px;
  height: 48px;
  color: var(--brand);
  /* 16px under a 48px glyph, up from 14px under a 24px one: the bigger box
     needs a touch more air before the title, but not so much that the two
     stop reading as one unit. */
  margin-bottom: var(--space-16);
}
.tm-reason h3 {
  margin: 0 0 var(--space-8);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-card);
  letter-spacing: var(--ls-tight);
  color: var(--ink);
}
.tm-reason p {
  margin: 0;
  color: var(--ink-3);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
}

/* Reveal stagger by column, so both rows sweep left to right and the second
   row does not wait out the first — eight sequential delays would end up a
   second long. Same nth-child idiom and the same sub-200ms cap as the
   personas/pricing staggers at the top of this sheet; kept here rather than
   in that block so the M7 rules stay in one place. */
[data-reveal-armed] .tm-reason:nth-child(4n + 2) { transition-delay: 60ms; }
[data-reveal-armed] .tm-reason:nth-child(4n + 3) { transition-delay: 120ms; }
[data-reveal-armed] .tm-reason:nth-child(4n + 4) { transition-delay: 180ms; }

/* ── M9 · FAQ category filter (menu left, filtered list right, ────────────
   heading rowed above both) — replaces the old six-stacked-groups layout:
   all 26 questions used to be visible and expandable at once, which read
   as a wall of accordions. The six category titles now drive a filter
   instead of a table of contents.

   "FAQ" (.tm-faq-heading) is its own full-width row above .faq-grid, not
   inside .lead — that's what lets .lead (menu + contact card) and
   .faq-list (the accordion) start at the SAME top edge: .faq-grid's
   align-items: start lines up the two column boxes at the row's top, and
   since .tm-faq-nav is .lead's first child with no margin-top and the
   first <details> is .faq-list's first child with no margin-top, "same
   row top" means the menu's first pill and the first question's card both
   have their top border on that exact line. Putting the heading inside
   .lead (like the old kicker+h2+menu stack) would have pushed the menu
   down past the list's top instead.

   The right column is a plain .faq-list at full column width, showing
   only the active category's questions with no repeated category-name
   heading above them — .tm-faq-group and its > h3 label are gone; the
   left menu already names the active category, and .faq-list's
   aria-labelledby (Faq.tsx) carries that name to assistive tech, so
   removing the visible duplicate lost nothing (see Faq.tsx for the state +
   remount-on-switch behavior).

   Plain accessible buttons, not AntD Menu: this is a static marketing
   module with no form state, and the codebase's own precedent for "buttons
   that filter visible content" is exactly this — .segments in
   segmented-filter.css and EarningsCalculator's fee-share control both use
   plain role="tablist"/"tab" buttons. AntD Menu's chrome (icons, submenus,
   a selected-bar built for app nav) is heavier than a six-item filter
   needs.

   Sticky: .lead (menu + contact card) sticks as one rail while the answer
   list scrolls — the heading lives above the grid now, so it isn't part of
   the sticky unit and scrolls away normally with the page, same as any
   section heading; only the "what category am I in" control needs to stay
   on screen. Scoped to #faq so it can't leak into the other pages that
   share .lead/.faq-grid (marketing/Faq, landing/Faq, TrainerFaq) — moot in
   practice since this file only loads on /trainer-modular, but kept
   explicit. */
.tm-faq-heading {
  margin: 0 0 var(--space-24);
  font-size: var(--fs-h2-faq);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  font-weight: var(--fw-bold);
}

#faq .lead {
  /* The marketing header (header.site) is position:fixed, not the app-shell
     header --sticky-offset is authoritative for. --space-100 matches the
     sticky "on this page" rail in legal.css, the closest existing analog. */
  position: sticky;
  top: var(--space-100);
}

.tm-faq-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  /* No margin-top: .tm-faq-nav is .lead's first child now (the heading
     moved out), and it has to be flush with .lead's top edge for the
     menu-vs-list top alignment above to hold. */
}

.tm-faq-nav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  width: 100%;
  padding: var(--space-10) var(--space-14);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-3);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-card);
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease);
}
.tm-faq-nav__item:hover { background: var(--hover-bg); color: var(--hover-text); }
.tm-faq-nav__item.is-active {
  background: var(--surface-selected);
  border-color: rgba(var(--brand-rgb), .3);
  color: var(--brand-ink);
}

.tm-faq-nav__count {
  flex-shrink: 0;
  min-width: 22px;
  height: 20px;
  padding: 0 var(--space-7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pill);
  background: rgba(var(--slate-rgb), .08);
  color: var(--muted);
  font-size: var(--fs-count-sm);
  font-weight: var(--fw-bold);
  line-height: 1;
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.tm-faq-nav__item.is-active .tm-faq-nav__count {
  background: var(--bg);
  color: var(--brand-ink);
}

/* Contact card, below the menu. Same "frame, not furniture" language as
   .tm-pricing-tiers__item and .faq-list details: hairline border, radius,
   flat fill — no shadow, no hover, because it isn't interactive (the
   contact-link inside it carries its own underline affordance). */
.tm-faq-contact {
  margin-top: var(--space-20);
  padding: var(--space-16) var(--space-18);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
}

/* The heading moved above .faq-grid entirely (.tm-faq-heading, see above),
   so the left column's only content is the menu + contact card — the menu
   is the widest thing in it, and the original ~1fr/1.4fr split (sized for
   a full kicker+h2+intro lead block) is oversized for that. Tightened to a
   column that fits the menu + contact card comfortably and hands the rest
   to the answer list. Gated to min-width: 981px, ABOVE the shared
   @media(max-width:980px)
   .faq-grid{grid-template-columns:1fr} collapse in faq.css — #faq
   .faq-grid has higher specificity (id + 2 classes) than that rule's
   .faq-grid (1 class), so left ungated it would win at any width and
   break the mobile single-column stack regardless of source order. */
@media (min-width: 981px) {
  #faq .faq-grid { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); }
}

/* M7 · Pricing styles live in the appended "M7 Pricing" block at the end of
   this file. */

/* ── Dev-only stage toggle (demo control, not production chrome) ────────── */
.tm-stage-toggle {
  position: fixed;
  right: var(--space-16);
  bottom: var(--space-16);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: var(--space-10);
  padding: var(--space-10) var(--space-12);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  box-shadow: var(--shadow-lg);
}
.tm-stage-toggle__label {
  padding-left: var(--space-4);
  color: var(--muted);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-weight: var(--fw-bold);
  white-space: nowrap;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  /* Figure becomes a band above the content: a 42% panel of a 900px viewport
     is too small a window for the photograph to read as a room. */
  .tm-bmg__figure {
    position: relative;
    width: 100%;
    height: 220px;
    mask-image: none;
    -webkit-mask-image: none;
    z-index: 0;
  }
  /* The intro's side padding moves onto the copy so the band stays
     full-bleed; the figure is the grid's first row by DOM order. */
  .tm-bmg__intro {
    grid-template-columns: 1fr;
    padding: 0 0 var(--space-40);
  }
  .tm-bmg__content {
    /* Must be reset: the desktop rule pins this to column 1 of a two-column
       grid and pads for a panel that is no longer beside it. */
    grid-column: 1;
    max-width: none;
    padding: var(--space-40) var(--container-pad) 0;
  }

  /* Three columns of five nodes each become unreadable long before the
     column itself gets narrow — "Marketplace visibility" is already wrapping
     at tablet width. So the diagram rotates rather than shrinks: one spine
     down the left, stages strung along it, nodes branching off exactly as
     they do on desktop. Same graph, read top to bottom. */
  .tm-bmg__flow {
    grid-template-columns: 1fr;
    row-gap: var(--space-40);
  }
  /* The rail has nothing left to span in a single column — the spine is the
     through-line now, and the pulse that swept it goes with it. The loop
     still reads: the links spark and the nodes lift down the page. */
  .tm-bmg__stage::before,
  .tm-bmg--anim.is-revealed .tm-bmg__stage::after { content: none; }
  /* The inter-stage link turns vertical and bridges the row gap, chevron
     pointing down the flow. */
  .tm-bmg__link {
    left: 0;
    top: calc(-1 * var(--space-40));
    width: 1px;
    height: var(--space-40);
    transform-origin: top center;
  }
  .tm-bmg__link::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(-50%) rotate(135deg);
  }
  /* Guarded, because this sits after the reduced-motion reset in the file and
     would otherwise re-hide the connector for a preference toggled late. */
  @media (prefers-reduced-motion: no-preference) {
    .tm-bmg--anim .tm-bmg__link { transform: scaleY(0); }
    .tm-bmg--anim.is-revealed .tm-bmg__link { transform: scaleY(1); }
  }
  /* A node box stretched across 900px is a banner, not a node — which the
     base rule's `width: fit-content` already prevents at every width, so the
     old 520px cap here has nothing left to do. The cap stays at 100% of the
     column so the sizing story is the same one on every breakpoint. */
  .tm-bmg__node-box { max-width: 100%; }

  .tm-why { grid-template-columns: 1fr; gap: var(--space-32); }

  /* Three-up becomes two-up, so the columns are re-cut: odd cards are now
     column one, even cards column two. A symmetric V needs a centre column to
     be symmetric about, which a two-column grid doesn't have, so the echo is
     the simplest thing that still reads as a rule: one column down, half the
     desktop distance. Flattening entirely was the alternative, but it would
     make the tablet view read as a different design rather than a narrower
     one. */
  .tm-personas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: var(--space-28);
  }
  .tm-personas__cell:nth-child(3n + 1),
  .tm-personas__cell:nth-child(3n + 3) { transform: none; }
  .tm-personas__cell:nth-child(2n) { transform: translateY(28px); }
  #built-for .block-head h2 { font-size: var(--fs-h1-md); }

  /* One column, and the portrait moves to the BOTTOM of the stack. Stacked at
     the top it was the worst of both worlds: the cutout is drawn to stand on
     the section's lower boundary, so its hard waist-level bottom edge read as
     a badly cropped photo once there was a 32px gap and a wall of copy
     underneath it. Below the copy, with the section's own padding-bottom
     cancelled, that same edge is the ground line the figure stands on.
     `order` on the grid items only — the DOM keeps art-then-body so the
     desktop layout and the reading order are untouched. */
  .tm-proof {
    grid-template-columns: 1fr;
    gap: var(--space-32);
    text-align: center;
  }
  /* The centred column. The cap keeps the centring legible — a heading and a
     lead stretched across the full 930px would centre only their last line. */
  .tm-proof-body {
    order: 1;
    max-width: 640px;
    margin-inline: auto;
    padding-bottom: 0;
  }
  .tm-proof-lead { margin-inline: auto; }
  .tm-proof-benefits li { justify-content: center; }
  .tm-quote p { margin-inline: auto; }

  /* contain, not cover: the three sources are tight alpha crops at slightly
     different ratios (879:951, 883:938, 886:974), and cover trimmed whichever
     axis overflowed the fixed 879:951 box — a sliver off the sides of the
     kettlebell shot, off the top of the band shot. At 444px that was
     invisible; at 260–320px the same percentage is a visible nick out of a
     shoulder or a hairline. contain fits every figure whole and bottom-centres
     it, so all three still share one ground line, and because the box keeps
     its ratio the section height stays identical across stages — the crossfade
     has nothing to reflow. The leftovers are transparent margins at the top,
     which is background either way. */
  .tm-proof-art {
    order: 2;
    align-self: auto;
    /* aspect-ratio alone did not actually hold the box: with overflow visible
       a box's automatic minimum block size is its min-content size, and the
       band portrait (886:974, taller than the declared 879:951) pushed the
       column 6px past the ratio — so the section's height moved on that one
       stage change. min-height: 0 drops that floor, the ratio governs, and all
       three stages measure identically. Scoped to the narrow breakpoints, so
       the desktop composition is untouched. */
    min-height: 0;
    /* Exact cancellation of section.block's 88px padding-bottom, same device
       as desktop: the figure lands on the edge of the .alt band with no strip
       below and no overhang into the next section. */
    margin-bottom: calc(var(--space-88) * -1);
    max-width: 320px;
    margin-inline: auto;
  }
  .tm-proof-art img { object-fit: contain; }

  /* The reveal stagger follows the visual order, so it swaps with it: the copy
     now leads and the portrait trails it. */
  [data-reveal-armed] .tm-proof-body { transition-delay: 0s; }
  [data-reveal-armed] .tm-proof-art { transition-delay: 80ms; }

  /* Demand's reason grid: 4 x 2 becomes 2 x 4. Four columns below 980 give
     each card ~200px, which breaks "Bring Your Existing Clients" over three
     lines and leaves the body copy at four words a line. */
  .tm-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Two columns, so the column stagger halves with them. Reset first: the
     desktop rules key off 4n and would otherwise hold a card at 180ms in a
     row it no longer sits in. */
  [data-reveal-armed] .tm-reason:nth-child(n) { transition-delay: 0s; }
  [data-reveal-armed] .tm-reason:nth-child(2n) { transition-delay: 70ms; }

  /* M9 FAQ: .faq-grid already collapses to one column at this breakpoint
     (faq.css), stacking .lead (menu + contact card) above .faq-list; the
     heading sits above .faq-grid entirely now (own row, not part of
     .lead), so it isn't touched by any of this. Sticking the lead only
     makes sense next to a scrolling second column, so drop it here; the
     menu itself becomes a horizontally scrollable chip row.

     min-width: 0 on the grid item is load-bearing, not decoration: .lead
     is a grid item of .faq-grid, and grid items default to min-width:auto,
     which resolves to their min-content size. .tm-faq-nav's chips are
     flex: 0 0 auto + white-space: nowrap, so their min-content IS their
     full un-wrapped width — with six chips (one as long as "Existing
     clients and customer attribution") that min-content easily exceeds the
     viewport, and grid honored it by widening the 1fr track instead of
     letting .tm-faq-nav's own overflow-x: auto scroll internally. This is
     the same fix as .tm-bmg__content above.

     Swipe-to-scroll checklist (so a finger can actually pan this row,
     not just a mouse-drag or a script): overflow-x: auto makes it a real
     scroll container (verified scrollWidth > clientWidth once the
     min-width: 0 fix above is in place — without it the row never
     overflows itself, it blows out the section instead, and there is
     nothing to pan). touch-action: pan-x tells the browser this element
     owns horizontal touch gestures, so a horizontal drag isn't ceded to
     page scroll/zoom while still leaving vertical page scroll to the
     page. -webkit-overflow-scrolling: touch is the legacy iOS momentum
     hint (harmless no-op on modern engines, which already give a native
     scroller momentum). scrollbar-width: none / ::-webkit-scrollbar only
     hide the drawn scrollbar chrome — they don't affect scrollability.
     mask-image at ≤720 (below) is paint-only and never intercepts touch
     hit-testing. None of .tm-faq-nav's children set their own touch-action
     that would narrow this — the base.css `button { touch-action:
     manipulation }` reset on the pills allows panning too (manipulation
     disables only double-tap-zoom, not pan gestures), so it doesn't
     conflict with the row's pan-x. */
  #faq .lead { position: static; min-width: 0; }
  .tm-faq-nav {
    flex-direction: row;
    gap: var(--space-8);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    padding-bottom: var(--space-4);
    padding-right: var(--space-16);
  }
  .tm-faq-nav::-webkit-scrollbar { display: none; }
  .tm-faq-nav__item {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    border-radius: var(--pill);
    border-color: var(--line);
    background: var(--bg-3);
  }
}

@media (max-width: 720px) {
  .tm-benefit-list { grid-template-columns: 1fr; }
  /* 32px of side inset plus the 24px container gutter would leave ~280px of
     text column at 360px, so the panel hugs the phone edges more closely and
     the list keeps a readable measure. Radius stays at 32px. */
  .tm-why-block { --tm-why-inset: var(--space-16); }
  /* One column: an offset would just be inconsistent leading between cards,
     so the stagger flattens and the cards stack plainly. */
  .tm-personas {
    grid-template-columns: 1fr;
    padding-bottom: 0;
    /* Stacked cards still need slot clearance between rows. */
    row-gap: var(--space-48);
  }
  .tm-personas__cell:nth-child(n) { transform: none; }
  /* 40px a side would burn a fifth of the width on a single narrow column, so
     the equal side inset steps down to the mobile base of 24px; vertical stays
     at 20px. Kept symmetric so the centred content axis stays the card's. */
  .tm-personas__cell { padding: var(--space-20) var(--space-24); }
  /* Mobile padding-top is 20, not 24, so the lift recomputes to keep the
     border on the slot's midline. */
  .tm-personas__cell .tm-slot {
    margin-top: calc(-1 * (var(--space-20) + var(--tm-slot-size, 72px) / 2));
  }
  #built-for .block-head h2 { font-size: var(--fs-h2-md); }

  /* section.block drops to 56px of vertical padding on phones, so the
     flush-to-the-boundary offset steps down with it. */
  .tm-proof-art {
    max-width: 260px;
    margin-inline: auto;
    margin-bottom: calc(var(--space-56) * -1);
  }
  /* Section rhythm follows section.block's phone padding, which the band
     took over from the cascade. */
  /* 16px is the phone gutter for every content block on the site; these two
     rows re-create .container by hand, so they have to step down with it. */
  .tm-bmg__content { padding: var(--space-32) var(--space-16) 0; }
  .tm-bmg__intro { padding-bottom: var(--space-32); }
  .tm-bmg__flow {
    /* 22px of spine offset out of a 328px content box is a fourteenth of the
       measure; 18 keeps the elbow legible and gives the labels the width. */
    --tm-bmg-rail: 18px;
    --tm-bmg-col-gap: var(--space-32);
    padding: 0 var(--space-16) var(--space-56);
    row-gap: var(--space-32);
  }
  .tm-bmg__link {
    top: calc(-1 * var(--space-32));
    height: var(--space-32);
  }
  .tm-bmg__stage-head { padding-top: var(--space-12); }
  .tm-bmg__stage-head h3 { font-size: var(--fs-h4); }
  /* Tighter padding: at 360px there is no width to give away. The cap stays
     at the column — `max-width: none` would let a label whose longest word
     out-measures a 328px content box push its box past the gutter. */
  .tm-bmg__node-box {
    max-width: 100%;
    padding: var(--space-8) var(--space-12);
  }
  /* Two tiles per row on phones (six of twelve). An odd count would end on a
     half-width orphan, so a last odd tile takes the whole row instead — a
     deliberate closing line rather than a gap. */
  .tm-metrics > div { grid-column: span 6; }
  .tm-metrics > div:last-child:nth-child(odd) { grid-column: span 12; }

  /* Demand's reason grid keeps two columns while they still hold a readable
     line, and folds to one when they don't: auto-fit against a 200px floor
     puts the fold at ~424px of content box, so a 480px phone still gets the
     pair and a 360px phone gets full-width cards instead of two 156px
     slivers. The floor is under the narrowest content box (328px at 360),
     so no card can overflow the gutter. With no border on the cards the
     200px floor now buys 200px of actual text (it used to buy 200px minus
     36px of padding), so the pair holds a longer line here than it did.

     Gap stays split the way it is on desktop and stays generous for the same
     reason — it is the only thing separating one unbordered block from the
     next — but both steps come down a notch for the narrower measure. */
  .tm-reasons {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-32) var(--space-20);
  }
  /* Narrower cards so more than two are in frame at 390px, and shorter edge
     fades because 64px of a 390px viewport is a sixth of the row. */
  .tm-marquee__card {
    flex: 0 0 152px;
    min-height: 152px;
    gap: var(--space-14);
    padding: var(--space-20) var(--space-12);
  }
  .tm-marquee {
    /* Shallower arc on phones (the loop scales the drop with viewport width),
       so the band needs less headroom. */
    padding-bottom: var(--space-32);
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      black var(--space-24),
      black calc(100% - var(--space-24)),
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0,
      black var(--space-24),
      black calc(100% - var(--space-24)),
      transparent 100%
    );
  }

  .tm-stage-toggle {
    left: var(--space-16);
    right: var(--space-16);
    justify-content: center;
    /* Anchored to the top on phones: at the bottom it sat directly over the
       closing CTA, the one control that matters on this page. */
    bottom: auto;
    top: var(--space-16);
  }

  /* M9 FAQ chip row: trailing-edge fade so overflowing categories collapse
     into a gradient hint instead of a hard cut — one-sided like
     .segments[data-size] in segmented-filter.css (the row starts flush left
     with no scroll needed to see item 1, only the right edge hints at
     more). "black" here is opacity-only (mask alpha), not a color choice —
     same keyword the existing marquee mask uses, no token stands in for it. */
  .tm-faq-nav {
    padding-right: var(--space-24);
    mask-image: linear-gradient(90deg, black calc(100% - var(--space-24)), transparent 100%);
    -webkit-mask-image: linear-gradient(
      90deg,
      black calc(100% - var(--space-24)),
      transparent 100%
    );
  }
}

/* M9 FAQ categories */
/* Bullet answers inside the accordion (locations, attribution sources,
   who-pays-the-fee). Indent matches .faq-list details p — icon column
   (20px) + gap — so list text aligns under the answer prose; the bullet
   marker hangs inside that padding. */
.faq-list details .a-list {
  margin: var(--space-4) 0;
  padding-left: calc(20px + var(--space-14) + 1.1em);
  list-style: disc;
  color: var(--ink-3);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.faq-list details .a-list li + li { margin-top: var(--space-4); }
.faq-list details .a-list li::marker { color: var(--brand); }

/* M7 Pricing */
/* The money module, rebuilt to the client's wireframe: three subject cards —
   your own clients, marketplace growth, payments — instead of the previous
   rate table plus a footnote row. Each card now carries its own mechanics
   paragraph, so nothing about how the fees work trails the section any more.

   The numbers survive the redesign. The wireframe shows none, but a pricing
   module that states no price asks to be believed rather than read: 0% keeps
   the hero, and the marketplace/Promote rates ride under the Marketplace
   card's prose as a compact rate list, small enough not to compete with the
   card's claim and precise enough to answer "how much".

   The "No ..." trio is a plain dotted row under the heading, not furniture —
   an earlier revision boxed the three lines into cells, which promoted copy
   to chrome. Panels are framed but still — hairline only, no shadow, no
   hover: the cards aren't interactive and the copy carries the module. */

/* ── The reassurance row ───────────────────────────────────────────────────
   Three guarantees on one line under the h2. Separators are drawn dots, not
   • glyphs, so no screen reader announces "bullet" between them; the dot is
   a child of the second item in each pair, and the flex gaps on both the row
   and the item put equal air on either side of it without negative margins.
   ------------------------------------------------------------------------ */
.tm-pricing-nos {
  margin: var(--space-14) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-8) var(--space-16);
  color: var(--ink-3);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
}
.tm-pricing-nos li {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}
.tm-pricing-nos li + li::before {
  content: '';
  flex: 0 0 auto;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(var(--ink-rgb), .3);
}

/* ── The two columns — one photographic, one framed ────────────────────────
   The client's arrangement: "Run Your Business" on the left, "Grow Through
   the Marketplace" on the right, and one dotted line under both. The left
   column stays the wider of the two because it carries the footage — a
   picture cropped to the same width as a four-line paragraph is a texture
   swatch, not a photograph — while the right needs only enough measure to
   hold its sentence without stranding a word.

   This grid used to hold three cards, with the photographic one spanning both
   rows of a stacked pair; with one card beside it there is a single row, and
   the two columns simply stretch to the taller of the two.
   ------------------------------------------------------------------------ */
.tm-pricing-tiers {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--space-16);
  align-items: stretch;
}

/* Vertical padding is a step under the horizontal: the two light cards set the
   row height for the whole module — the hero spans both rows and takes
   whatever they add up to — so every millimetre trimmed here comes off the
   module twice. */
.tm-pricing-tiers__item {
  display: flex;
  flex-direction: column;
  padding: var(--space-20) var(--space-24);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
}

/* The left column, and the module's one dark surface — a photographed studio
   under a scrim, with the copy on it. It was a brand tint with a spot
   illustration before; the tint made it the lightest card in a row of light
   cards, which is a weak way to say "this is the side that costs nothing".
   A photograph against a white card says it in one glance. It no longer
   spans a stacked pair, so it takes a floor of its own: without one the row
   is three lines of copy tall and the footage is a strip.

   Footage: /assets/hero-bg.mp4, the reel M1 does *not* use (that one is
   hero-bg-trainer.mp4), so no clip loops twice on the page. It opens on the
   same subject the still it replaces was chosen for and against the same art
   direction the M3 band is held to — a near-empty concrete gym, one figure,
   LED strips, calm architecture rather than a neon gym, in the desaturated
   cinematic grade bmg-studio-dawn set for the page. Motion earns the card
   what a still could not: the one surface on the page that says "this costs
   nothing" is now the one surface that moves.

   The video is a child element, not a background layer, so the scrim that
   used to ride above it in the same `background` shorthand moves out to
   ::before. Three stacked planes inside the card's own stacking context
   (`isolation: isolate` makes the negative indices local): video at -3,
   scrim at -2, grain at -1, copy at 0. The flat --bg-dark under all of them
   is what the card shows in the seconds before the poster paints, so the
   surface is never light and the white copy is never stranded.

   M3 keeps text off its photograph entirely and says so; this card cannot,
   so the scrim is tuned rather than structural. The photo version ran it at
   38% plate + 86/78/55/28 ramp, compositing to ~91% behind the copy: legible
   past 12:1, and dark enough that the picture underneath was barely an
   inference. That was the wrong trade once the picture started moving — a
   video nobody can see is an expensive still — so the scrim came down in two
   passes and has landed here:

     plate  13%
     ramp   52 / 46 / 22 / 6  (95deg)
     pool   38% → 0, bottom-left, under the copy only

   Composited: ~58% at the top-left where the eyebrow sits, ~74% in the
   bottom-left corner under the number, ~63% along the body line, and ~18% at
   the right edge — which is to say the right half of the card is now open
   footage rather than a tinted rectangle.

   The structural change in this pass is the third layer. Darkness used to be
   spent globally: every pixel paid for the few hundred that sit behind text.
   The pool inverts that — an ellipse anchored at the bottom-left corner,
   sized to the copy block and gone by 80% of the way across, so the plate can
   drop to 13% without the number losing its footing. Protection is local, and
   what is left over is picture.

   The honest accounting, measured against the reel's *brightest* frame (a
   blown studio window, i.e. white under the scrim — not the average frame):
   the white sentence holds 6.6:1 in the corner and 4.6:1 mid-line, fading to
   ~3.8:1 at the very end of the 34ch measure; the .72 eyebrow reads ~3.3:1;
   the 0% sits at ~3.0:1, AA-large for 72px display type. The eyebrow and the
   tail of the body line are under AA on that worst frame, and that is a
   deliberate, requested trade — visible video over uniform darkness. What
   pays for it is per-glyph rather than per-card: the white lines carry a
   two-stop text-shadow (see below) that separates them from whatever is
   behind them without tinting the frame, and the 0% keeps its brand glow.
   The copy is capped at 34ch and left; the picture keeps the right third —
   now closer to the right half — to itself. */
.tm-pricing-tiers__item.is-free {
  grid-column: 1;
  grid-row: 1;
  min-height: 340px;
  padding: var(--space-28);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(var(--white-rgb), .14);
  color: var(--public-on-dark);
  background: var(--bg-dark);
}

/* The footage layer. Absolute and out of flow, so the card's height stays
   whatever the copy, the card beside it and the min-height floor settle on —
   the video never sets it, it only fills it. `cover` on a 16:9 source in a
   portrait-ish card crops the sides and keeps the figure, which sits
   mid-frame. */
.tm-pricing-tiers__video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

/* The scrim, moved out of the card's old `background` shorthand — it now sits
   over the video element instead of over a background image. Three layers,
   painted top-down as listed: the local pool under the copy block, the
   left-to-right ramp, then the flat plate that keeps the surface from ever
   going light. */
.tm-pricing-tiers__item.is-free::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      85% 62% at 6% 100%,
      rgba(var(--bg-dark-rgb), .38) 0%,
      rgba(var(--bg-dark-rgb), .20) 52%,
      rgba(var(--bg-dark-rgb), 0) 80%
    ),
    linear-gradient(
      95deg,
      rgba(var(--bg-dark-rgb), .52) 0%,
      rgba(var(--bg-dark-rgb), .46) 40%,
      rgba(var(--bg-dark-rgb), .22) 72%,
      rgba(var(--bg-dark-rgb), .06) 100%
    ),
    linear-gradient(rgba(var(--bg-dark-rgb), .13), rgba(var(--bg-dark-rgb), .13));
}

/* Per-glyph protection, which is what buys the 13% plate. Two stops doing two
   different jobs: a tight 2px shadow that draws the letterform's own edge
   against whatever frame is behind it, and a wide, weak 16px bloom that pulls
   the local average down across the word without reading as a box or a
   halo. Neither tints the picture, which a heavier plate would.

   Both white lines are in the list — the heading and the sentence under it.
   The glyph is an SVG, so it takes the equivalent as a drop-shadow filter —
   text-shadow does nothing to a path. */
.tm-pricing-tiers__item.is-free .tm-pricing-tiers__claim,
.tm-pricing-tiers__item.is-free .tm-pricing-tiers__body {
  text-shadow:
    0 1px 2px rgba(var(--ink-pure-rgb), .55),
    0 2px 16px rgba(var(--ink-pure-rgb), .35);
}
.tm-pricing-tiers__item.is-free svg.tm-pricing-tiers__glyph,
.tm-pricing-tiers__item.is-free [data-lucide].tm-pricing-tiers__glyph {
  filter: drop-shadow(0 1px 2px rgba(var(--ink-pure-rgb), .5));
}

/* Grain, same recipe as the M3 band and .trainer-cta — the page's dark photo
   surfaces all carry it. z-index: -1 against `isolation: isolate` on the card
   is what puts it over the card's own background but under the copy: a
   positioned pseudo-element at z-index 0 or auto would paint on top of the
   text instead. */
.tm-pricing-tiers__item.is-free::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url('../../noise.svg');
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: .18;
  mix-blend-mode: overlay;
}

/* The card's own contents, top to bottom: glyph at the top edge, then the
   heading and its sentence pushed to the foot by the auto margin — the same
   margin the 0% used to take. Two things want it there: the slack opens in
   the middle of the frame, over the photograph, instead of under the copy;
   and the scrim's pool is anchored to the bottom-left corner, so the copy
   sits in the densest part of the card rather than beside it. The padding-top
   is a floor for the breakpoints where the card sizes to its own copy and the
   auto margin resolves to nothing. */
.tm-pricing-tiers__item.is-free .tm-pricing-tiers__claim {
  margin-top: auto;
  padding-top: var(--space-28);
  color: var(--public-on-dark);
}
/* .86 white: 4.9:1 against the scrim under the copy, and it keeps the body
   one step behind the heading above it exactly as --ink-2 did on white. */
.tm-pricing-tiers__item.is-free .tm-pricing-tiers__body {
  max-width: 34ch;
  color: rgba(var(--white-rgb), .86);
}

/* One glyph per column, standing in for the emoji on the client's markup.
   Same 48px box the Demand reasons use — and the same --brand they take on a
   light surface — so the icon sets on the page stay one size and one colour.
   The doubled selector covers both states of the icon loader: the <i> before
   Solar swaps it, the <svg> after. */
svg.tm-pricing-tiers__glyph,
[data-lucide].tm-pricing-tiers__glyph {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-12);
  color: var(--brand);
}
/* On the dark column the cyan would be the one saturated thing on a
   desaturated frame, and it is not what the card is about — white at .92,
   which is the same step back the body copy takes. */
.tm-pricing-tiers__item.is-free svg.tm-pricing-tiers__glyph,
.tm-pricing-tiers__item.is-free [data-lucide].tm-pricing-tiers__glyph {
  color: var(--public-on-dark);
  opacity: .92;
}

/* Each column's title, and now the thing the reader lands on — the display
   number it used to sit two steps under is gone. Display face, h3-lg: big
   enough to carry a column on its own, small enough that the two of them do
   not argue with the h2 above. */
.tm-pricing-tiers__claim {
  margin: 0 0 var(--space-10);
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: var(--fs-h3-lg);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  color: var(--ink);
}

/* Card leading, not prose leading: these are two- and three-line paragraphs
   inside framed cards, and 1.6 spends a line's worth of height per paragraph
   that the module cannot afford. --lh-body keeps them comfortable at card
   scale. */
.tm-pricing-tiers__body {
  margin: 0;
  max-width: 42ch;
  color: var(--ink-2);
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
}
.tm-pricing-tiers__body + .tm-pricing-tiers__body { margin-top: var(--space-10); }

/* ── The payments line, under the columns ──────────────────────────────────
   What is left of the Payments card once no processing rate is quoted: two
   facts, one line. It reuses the reassurance row's own rules — same dotted
   separator, same centred flex — so the module opens and closes on the same
   note, and only the space above it and the lock glyph are new. The glyph
   takes the sheet's 20px default and inherits --ink-3 from the row, which is
   what keeps it a mark on the line rather than an icon on a list.
   ------------------------------------------------------------------------ */
.tm-pricing-secure {
  margin-top: var(--space-24);
}

@media (max-width: 980px) {
  /* Single column, source order. The photographic card keeps a height of its
     own — one notch under the desktop floor — or the footage would be a strip
     behind three lines of text. The left-to-right scrim still fits: the copy
     is capped at 34ch, which is a third of the container at this width. */
  .tm-pricing-tiers {
    grid-template-columns: 1fr;
    gap: var(--space-14);
  }
  .tm-pricing-tiers__item { padding: var(--space-20); }
  .tm-pricing-tiers__item.is-free {
    grid-column: auto;
    grid-row: auto;
    padding: var(--space-24);
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .tm-pricing-nos {
    gap: var(--space-6) var(--space-12);
    font-size: var(--fs-lead);
  }
  .tm-pricing-nos li { gap: var(--space-12); }

  /* Phone: the copy runs the full width of the card, so a scrim that only
     darkens the left edge would leave the ends of every line over open
     footage. The ramp turns vertical instead — lighter at the head where the
     glyph sits, heavier at the foot under the heading and its sentence.

     Pulled back through the same two passes as the desktop plate, and with
     the same third layer added: 46/50 ramp over a 13% plate, plus a pool.
     The pool turns with the ramp — anchored to the bottom *edge* rather than
     the bottom-left corner, because at 330px wide the copy runs the full
     width and a corner ellipse would leave the ends of every line outside it.

     Composited that is ~53% at the head, ~59% through the middle, and ~73%
     at the foot, against ~80/~94 before the video went in. The middle is
     where most of the change lands, and the middle is the part of the frame
     with no text over it — which is the whole idea: the phone gets to see the
     footage in the band that isn't spoken for.

     Against the reel's brightest frame: 6.3:1 for the white sentence at the
     foot, and the heading above it sits in the same band at full white. Both
     carry the two-stop shadow as well as the plate.

     The card still needs a height of its own, one notch below the tablet
     floor. The video keeps covering that box — it is absolute, so the
     min-height is the card's to set and the frame crops to whatever comes
     out. */
  .tm-pricing-tiers__item.is-free {
    padding: var(--space-20);
    min-height: 272px;
  }
  .tm-pricing-tiers__item.is-free::before {
    background:
      radial-gradient(
        150% 58% at 50% 100%,
        rgba(var(--bg-dark-rgb), .38) 0%,
        rgba(var(--bg-dark-rgb), .18) 55%,
        rgba(var(--bg-dark-rgb), 0) 82%
      ),
      linear-gradient(
        180deg,
        rgba(var(--bg-dark-rgb), .46) 0%,
        rgba(var(--bg-dark-rgb), .50) 100%
      ),
      linear-gradient(rgba(var(--bg-dark-rgb), .13), rgba(var(--bg-dark-rgb), .13));
  }
  .tm-pricing-tiers__item.is-free .tm-pricing-tiers__claim {
    padding-top: var(--space-24);
  }

  .tm-pricing-tiers__claim { font-size: var(--fs-h4); }
  .tm-pricing-secure { margin-top: var(--space-20); }
}
