/* home.css: the home page. This file holds the hero (the offer, the replay's place, the members' row and the phone
   hub; the replay's own styles are in site.css, shared with /results); the sections
   below the hero are added after the "Sections" marker at the end, per DESIGN.md "Home page plan". Tokens only. */

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-lg) var(--space-3xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
.hero__brand, .hero__ult, .hero__hub { display: none; }
.hero__replay { min-width: 0; }
.hero__title { font-size: var(--text-display); line-height: 1.02; max-width: 16ch; text-wrap: balance; }
.hero__sub { display: none; }
.hero__body { display: grid; gap: var(--space-lg); justify-items: start; }
.hero__lede { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 32ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hero__note { margin-top: calc(var(--space-xs) * -1); font-size: var(--text-sm); color: var(--color-ink-2); }
.hero__members { min-width: 0; margin-top: var(--space-md); }

/* Computer: the headline and the offer share the top band; the replayed day runs the full width of the container
   under them like a horizon (band and replay fit 1280x800), and members' own results run under the replay.
   Tablet: the same parts, stacked in source order. */
@media (min-width: 60.0625rem) {
  .hero { padding-block: var(--space-xs) var(--space-2xl); }
  .hero__grid {
    /* 11 and 13, and slimmer button padding below: the offer column holds the trial button and
       "See what is included in our Membership" on one line at 1280, so band and replay still fit 1280x800 */
    grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
    grid-template-areas: "title body" "replay replay" "members members";
    column-gap: var(--space-2xl); row-gap: var(--space-xl);
    align-items: end;
  }
  /* two lines in the 11-column side at every computer width: "Wake up to a plan," / "not a guess." */
  .hero__title { grid-area: title; font-size: clamp(2.5rem, 4.4vw, 4rem); max-width: none; }
  .hero__body { grid-area: body; gap: var(--space-md); padding-bottom: var(--space-2xs); }
  .hero__replay { grid-area: replay; }
  .hero__actions { gap: var(--space-xs); }
  .hero__actions .btn { padding-inline: var(--space-md); }
  .hero .replay__chart { height: clamp(14rem, 40svh, 22rem); }
  .hero__members { grid-area: members; margin-top: var(--space-md); }
}

/* ---------- Phone: a link page ----------
   Wordmark with the five signs, headline and its line, members' results, the Ultimate tile, the trial button and its price note, then the doors.
   No replay here (on a phone it is on /results). The source keeps the computer's order (offer, replay, row),
   so the grid places each part. */
@media (max-width: 40rem) {
  .hero { padding-block: var(--space-xs) var(--space-2xl); }
  .hero__grid { gap: var(--space-sm); grid-template-areas: "brand" "title" "sub" "members" "ult" "body" "hub"; }
  /* the logo, the five signs beside it, and their line under the row. The signs take the room the logo leaves
     (the stacked logo is 185px wide, then a 12px gap), never more than 24px each. The line is always ONE line:
     its size follows the phone's width so the longest of the five just fits (23.52 em wide in Marcellus; 24.2 leaves a little air). */
  .hero__brand { display: grid; grid-area: brand; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--space-sm); row-gap: var(--space-2xs); }
  .hero__brand .creed { display: contents; }
  .hero__brand .creed__signs { justify-self: end; --creed-size: min(24px, calc((100vw - 2 * var(--gutter) - 197px) / 6.68)); }
  .hero__brand .creed__lines { grid-column: 1 / -1; justify-items: end; min-height: 1.25em; --creed-text: min(1.0625rem, calc((100vw - 2 * var(--gutter)) / 24.2)); }
  .hero__brand .creed__line { text-align: right; white-space: nowrap; }
  .hero__title { grid-area: title; font-size: 2.25rem; max-width: 16ch; }
  .hero__sub { display: block; grid-area: sub; margin-top: calc(var(--space-2xs) * -1); font-size: var(--text-lead); line-height: 1.4; color: var(--color-ink-2); max-width: 30ch; }
  .hero__members { grid-area: members; margin-top: var(--space-xs); }
  .hero__ult { display: block; grid-area: ult; }
  .hero__body { grid-area: body; gap: var(--space-xs); }
  .hero__hub { display: block; grid-area: hub; margin-top: var(--space-md); }
  .hero .tile { min-height: var(--tile-height); padding-block: var(--space-xs); }
  .hero__lede, .hero__more, .hero__replay { display: none; }
  .hero__actions, .hero__actions .btn { width: 100%; }
  .hero__note { margin-top: 0; }
}
.hub { display: grid; gap: var(--space-xs); }
.hub__list { display: grid; gap: var(--space-xs); list-style: none; }
.tile--ultimate { border-color: var(--color-gold-deep); }

/* ---------- Members' results: the row that scrolls by itself ----------
   Base (scripting off, reduced motion): a plain sideways scroller with snap points and a visible scrollbar.
   src/scripts/marquee.js clones the pictures once and moves the row slowly (data-marquee="on"); snap is off then.
   Every picture keeps its own shape at one height; its width comes from its own size attributes, so the row's
   height and every picture's box are reserved before anything loads. */
.members { --members-height: 20rem; display: grid; gap: var(--space-xs); min-width: 0; }
.members__title { max-width: none; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--color-ink-2); }
.members__row {
  display: flex; align-items: flex-start; gap: var(--space-md); list-style: none;
  overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  padding-bottom: var(--space-sm); scrollbar-color: var(--color-muted) transparent;
}
.members__row li { flex: none; scroll-snap-align: start; }
.members__row a { display: block; border-radius: var(--radius-card); }
.members__row a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.members__row img {
  display: block; width: auto; max-width: none; height: var(--members-height);
  border: 1px solid var(--color-rule-strong); border-radius: var(--radius-card); background: var(--color-paper-2);
  -webkit-user-drag: none;
}
/* whole-pixel widths, so the cloned set repeats exactly and the loop has no sub-pixel seam (--r = width / height) */
@supports (width: round(1.5px, 1px)) {
  .members__row img { width: round(calc(var(--members-height) * var(--r, 0.63)), 1px); object-fit: cover; }
}
.members[data-marquee="on"] .members__row { scroll-snap-type: none; }
.members__row.is-dragging { cursor: grabbing; user-select: none; }
.members__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-lg); }
.members__note { margin-right: auto; font-size: var(--text-sm); line-height: 1.45; color: var(--color-ink-2); }
.members__all { display: inline-flex; align-items: center; min-height: var(--control-height-s); font-weight: 600; text-decoration-color: var(--color-gold-deep); }
.members__all:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-inner); }
@media (max-width: 40rem) {
  .members { --members-height: 15rem; }
  .members__row { gap: var(--space-sm); padding-bottom: var(--space-xs); }
  .members__note { font-size: var(--text-xs); }
}

/* ---------- Sections (below the hero; built per DESIGN.md "Home page plan") ---------- */

/* The page's one reveal: blocks marked data-reveal rise 12px and fade in once (src/scripts/day.js).
   Scoped to html.has-sky, so nothing is hidden unless the script that shows it is running. */
@media (prefers-reduced-motion: no-preference) {
  .js.has-sky [data-reveal] { transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
  .js.has-sky [data-reveal]:not(.is-seen) { opacity: 0; transform: translateY(12px); }
}

/* A framed product picture (the dashboard, the plan card): the replay's frame language. */
.frame { position: relative; overflow: clip; border: 1px solid var(--color-rule); border-radius: var(--radius-frame); background: var(--color-paper-2); }
.frame img { width: 100%; height: auto; }

/* 1. The evening before: the dashboard arrives. A gold line draws across the top of the frame as it lands. */
.day__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-2xl); align-items: center; }
.day__frame img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 0; }
.day__frame::before {
  content: ""; position: absolute; inset: 0 0 auto 0; z-index: 1; height: 3px;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold-pale), var(--color-gold-dark));
  transform-origin: 0 50%;
}
.day__time { display: grid; gap: var(--space-sm); align-content: end; padding-left: var(--space-lg); border-left: 1px solid var(--color-rule-strong); }
.day__when { font-size: var(--text-xl); font-weight: 600; line-height: 1.2; }
.day__for { font-size: var(--text-md); color: var(--color-ink-2); }
.day__item { margin-top: var(--space-lg); font-size: var(--text-title); line-height: 1.15; }
.day__detail { color: var(--color-ink-2); max-width: 34ch; }
.day__link { margin-top: var(--space-xs); }
.day__link a, .ladder__foot a, .price__subscribe, .price__print a, .about__contact a, .start__group { font-weight: 600; text-decoration-color: var(--color-gold-deep); }
.day__link a { display: inline-flex; align-items: center; min-height: var(--control-height-s); }
@media (prefers-reduced-motion: no-preference) {
  .has-sky .day__frame::before { transition: transform 900ms var(--ease-out) 240ms; }
  .has-sky .day__frame:not(.is-seen)::before { transform: scaleX(0); }
}

/* 2. Before the open: the plan card beside the ladder of its levels, spaced like a price axis. */
.plan__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; }
.plan__caption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }
.ladder { display: grid; gap: var(--space-lg); }
.ladder__head { font-size: var(--text-md); color: var(--color-ink-2); }
.ladder__ticker { margin-right: var(--space-xs); font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-ink); }
.ladder__rows { display: grid; }
.ladder__row {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 7.5rem; grid-template-areas: "name rule price" ". . met";
  align-items: center; column-gap: var(--space-md); margin-top: var(--gap, 0);
}
.ladder__name { grid-area: name; font-size: var(--text-sm); color: var(--color-ink-2); }
.ladder__price { grid-area: price; justify-self: end; font-size: var(--text-2xl); font-weight: 600; line-height: 1; color: var(--color-gold); }
.ladder__met { grid-area: met; justify-self: end; font-size: var(--text-xs); color: var(--color-ink-2); }
.ladder__rule { grid-area: rule; display: block; height: 0; border-top: 2px solid var(--color-gold); transform-origin: 0 50%; }
.ladder__row--invalidation .ladder__price { color: var(--color-ink); }
.ladder__row--invalidation .ladder__rule { border-top: 1px dashed var(--color-muted); }
.ladder__foot { padding-top: var(--space-md); border-top: 1px solid var(--color-rule); font-size: var(--text-sm); color: var(--color-ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .has-sky .ladder__rule { transition: transform 700ms var(--ease-out); transition-delay: calc(260ms + var(--i, 0) * 60ms); }
  .has-sky .ladder:not(.is-seen) .ladder__rule { transform: scaleX(0); }
}

/* What Ultimate includes, in the owner's order (src/data/tour.json). The section opens with the jump row:
   seven small outlined links that wrap. Then the two apps (#apps), each in full, no tabs. */
.tour__jumps { margin-top: var(--space-lg); }
.tour__list { display: flex; flex-wrap: wrap; gap: var(--space-xs); list-style: none; }
.tour__jump {
  display: inline-flex; align-items: center; min-height: var(--control-height-s); padding: var(--space-2xs) var(--space-sm);
  border: 1px solid var(--color-rule-strong); border-radius: var(--radius-control);
  color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: transform var(--dur-micro) var(--ease-out);
}
.tour__jump:hover { color: var(--color-ink); border-color: var(--color-ink-2); }
.tour__jump:active { transform: translateY(1px); }
.tour__jump:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

.apps { display: grid; margin-top: var(--space-xl); scroll-margin-top: var(--space-lg); }
.apps__head { display: grid; gap: var(--space-xs); padding-bottom: var(--space-xl); }
.apps__title { font-size: var(--text-3xl); max-width: 22ch; }
.apps__line { font-size: var(--text-lead); color: var(--color-ink-2); }
/* Computer: words on 7 and the picture on 5; the second app flips, picture on 7 and words on 5.
   Under 60rem both are one column, words then the picture (see "Tablet" below). */
.app { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--space-2xl); align-items: center; padding-block: var(--space-2xl); border-top: 1px solid var(--color-rule-strong); }
.app--flip .app__media { order: -1; }
.app__words { display: grid; gap: var(--space-md); align-content: start; min-width: 0; }
.app__name { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--color-gold); }
.app__tagline { font-family: var(--font-display); font-size: var(--text-display-s); line-height: 1.08; letter-spacing: var(--tracking-display); max-width: 20ch; text-wrap: balance; overflow-wrap: break-word; }
.app--flip .app__tagline { font-size: var(--text-section); }
.app__pitch { color: var(--color-ink-2); max-width: 52ch; }
.app__steps { font-size: var(--text-sm); color: var(--color-ink-2); max-width: 52ch; }
.app__open { margin-top: var(--space-2xs); }
.app__media { min-width: 0; }
/* the walkthrough: a phone-shaped frame, 9:16, centred in its column */
.app__media--phone { display: grid; justify-items: center; gap: var(--space-sm); }
.app__caption { max-width: 36ch; font-size: var(--text-sm); line-height: 1.45; color: var(--color-ink-2); text-align: center; text-wrap: balance; }

/* Key Institutional Levels, row two of #the-day: the indicator's words on 5, its demo still on 7. */
.levels {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "words film";
  gap: var(--space-xl) var(--space-2xl); align-items: center;
  margin-top: var(--space-3xl); padding-top: var(--space-3xl); border-top: 1px solid var(--color-rule-strong);
}
.levels__film { grid-area: film; }
.levels__words { grid-area: words; display: grid; gap: var(--space-sm); align-content: start; min-width: 0; }
.levels__name { font-size: var(--text-3xl); line-height: 1.08; max-width: 16ch; }
.levels__detail { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 36ch; }
.levels__other { margin-top: var(--space-sm); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); color: var(--color-ink-2); max-width: 44ch; }

/* The week ahead: the report on 5, the two calendars stacked on 7; each calendar links to its large picture. */
.week__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl) var(--space-2xl); align-items: start; }
.week__report, .week__calendar { display: grid; gap: var(--space-sm); min-width: 0; }
.week__report .frame img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; }
.week__calendars { display: grid; gap: var(--space-xl); }
.week__calendar { scroll-margin-top: var(--space-lg); }
.week__frame { display: block; isolation: isolate; }
.week__frame::after { content: ""; position: absolute; inset: 0; background: var(--color-hover-wash); opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.week__frame:hover::after { opacity: 1; }
.week__frame:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.week__caption { font-size: var(--text-sm); color: var(--color-ink-2); }
.week__action { margin-top: var(--space-xs); }

/* The indicators: the lead demo large, the others stacked beside it, never three equal; text rows last.
   The demo still itself (.demo, .demo__still, .demo__play, the players) is in site.css: /welcome uses it too. */
.ult__films { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: start; }
.ult__side { display: grid; gap: var(--space-xl); }
.demo--lead .demo__name { font-size: var(--text-3xl); }
.ult__main { display: grid; gap: var(--space-xl); align-content: start; }
.ult__tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg) var(--gap-columns); }
/* the text rows sit under the lead still beside the stacked ones on a computer, and come last in one column */
.ult__films { grid-template-areas: "main side" "tools side"; grid-template-rows: auto 1fr; }
.ult__main { grid-area: main; }
.ult__side { grid-area: side; }
.ult__films > .ult__tools { grid-area: tools; grid-template-columns: minmax(0, 1fr); align-self: start; margin-top: var(--space-md); }
.ult__tool { display: grid; gap: var(--space-2xs); padding-top: var(--space-md); border-top: 1px solid var(--color-rule-strong); }
.ult__tool dt { font-size: var(--text-lg); font-weight: 600; }
.ult__tool dd { color: var(--color-ink-2); max-width: 48ch; }

/* 4. The close: the newest recaps, a sideways row; the row scrolls, the page never does. */
.recaps .section__head { margin-bottom: calc(var(--space-3xl) + var(--space-lg)); }
.recaps__row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(18rem, 22rem); gap: var(--gap-columns); align-items: start;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-bottom: var(--space-md); scrollbar-color: var(--color-muted) transparent;
}
.recaps__row > * { scroll-snap-align: start; }
/* on the home strip a slip keeps its call, outcome, figures, chart and link; its caption (the full story and the
   disclaimer) is on /results and in the post, and the row carries the disclaimer under it */
.recaps .receipt__caption { display: none; }
.recaps__row:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: var(--radius-card); }
.recaps__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); margin-top: var(--space-xl); }
.recaps__note { font-size: var(--text-sm); color: var(--color-ink-2); max-width: 46ch; }

/* 5. The sample: the page's one band of a line and an action. */
.sample { padding-block: var(--section-gap-s); }
.sample__band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-lg) var(--space-2xl); }
.sample__line { font-size: var(--text-display-s); line-height: 1.06; max-width: 22ch; }

/* 6. The price: one plan, the page's one numeral at graphic scale. */
.price { padding-bottom: var(--section-gap-l); }
.price__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.price__offer { display: grid; gap: var(--space-xl); justify-items: start; }
.price__title { font-size: var(--text-section); font-variant-numeric: tabular-nums lining-nums; }
.price__figure { display: flex; align-items: baseline; gap: var(--space-2xs); margin-top: calc(var(--space-sm) * -1); }
.price__amount { font-variant-numeric: tabular-nums lining-nums; font-size: clamp(5rem, 9vw + 2rem, 12rem); font-weight: 600; line-height: 0.9; letter-spacing: -0.03em; color: var(--color-gold); }
.price__per { font-variant-numeric: tabular-nums lining-nums; font-size: var(--text-xl); font-weight: 600; color: var(--color-ink-2); }
.price__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); }
.price__subscribe { display: inline-flex; align-items: center; min-height: var(--control-height-s); }
.price__print { display: grid; gap: var(--space-xs); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); font-size: var(--text-sm); color: var(--color-ink-2); }
.price__print p { max-width: 50ch; }
.price__list { padding: var(--space-xl); border-radius: var(--radius-frame); background: var(--color-paper-2); }
.price__list-title { font-variant-numeric: tabular-nums lining-nums; margin-bottom: var(--space-md); font-size: var(--text-title); }
.price__items { columns: 2; column-gap: var(--gap-columns); list-style: none; }
.price__items li { break-inside: avoid; display: flex; align-items: center; min-height: 4.5rem; padding-block: var(--space-xs); border-top: 1px solid var(--color-rule); font-size: var(--text-lg); line-height: 1.3; }

/* 7. Free for everyone: six doors. The phone's hub already carries them, so the section leaves there. */
.free__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm) var(--gap-columns); list-style: none; }
.free { padding-top: calc(var(--section-gap-l) + var(--space-2xl)); }
.free__grid .tile { min-height: 72px; height: 100%; }

/* 8. About: the logo's crown rule opens a statement. */
.about__rule { display: flex; align-items: center; gap: var(--space-lg); margin-bottom: var(--space-2xl); }
.about__line { flex: 1; height: 2px; border-radius: 2px; }
.about__line--l { background: linear-gradient(90deg, transparent, var(--color-gold)); }
.about__line--r { background: linear-gradient(90deg, var(--color-gold), transparent); }
.about__crown { width: 52px; height: auto; flex-shrink: 0; }
.about__statement { font-size: var(--text-section); max-width: 24ch; }
.about__by { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-ink-2); }
.about__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); margin-top: var(--space-2xl); }
.about__promise { font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); max-width: 44ch; }
.about__pillars { display: grid; gap: var(--space-lg); }
.about__pillars div { display: grid; gap: var(--space-2xs); padding-top: var(--space-md); border-top: 1px solid var(--color-rule-strong); }
.about__pillars dt { font-family: var(--font-display); font-size: var(--text-title); line-height: 1.15; }
.about__pillars dd { color: var(--color-ink-2); }
.about__creed { margin-top: var(--space-2xl); font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.2; }
.about__contact { margin-top: var(--space-sm); color: var(--color-ink-2); }
.about__contact a { display: inline-flex; align-items: center; min-height: var(--control-height-s); color: var(--color-ink); }

/* 9. The closing call: back to the evening; the zigzag draws once. */
.start__inner { display: grid; justify-items: center; gap: var(--space-lg); text-align: center; }
.start__zig { width: min(220px, 60%); }
.start__zig .zigzag { width: 100%; height: auto; }
.start__title { font-size: var(--text-display-s); max-width: 18ch; }
.start__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-xs); }
.start__group { display: inline-flex; align-items: center; min-height: var(--control-height-s); }

/* Tablet */
@media (max-width: 60rem) {
  .day__grid, .plan__grid, .ult__films, .app, .levels, .week__grid, .price__grid, .about__grid { grid-template-columns: minmax(0, 1fr); }
  .app { align-items: start; }
  .ult__films { grid-template-areas: "main" "side" "tools"; grid-template-rows: auto; }
  .ult__films > .ult__tools { margin-top: 0; }
  .app--flip .app__media { order: 0; }
  .levels { grid-template-areas: "film" "words"; margin-top: var(--space-2xl); padding-top: var(--space-2xl); }
  .day__time { padding-left: var(--space-md); }
  .plan__card { max-width: 32rem; }
  .ult__side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-columns); }
  .free__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sample__band { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}

/* Phone */
@media (max-width: 40rem) {
  .day__grid { gap: var(--space-lg); }
  .day__frame img { aspect-ratio: 4 / 5; }
  .day__time { border-left: 0; padding-left: 0; padding-top: var(--space-md); border-top: 1px solid var(--color-rule-strong); }
  .day__item { margin-top: var(--space-xs); }
  .plan__grid { gap: var(--space-xl); }
  .ladder__row { grid-template-columns: 6rem minmax(0, 1fr) auto; column-gap: var(--space-sm); }
  .ladder__price { font-size: var(--text-xl); }
  .ladder__row { margin-top: calc(var(--gap, 0) * 0.6); }
  .ult__side { grid-template-columns: minmax(0, 1fr); }
  .demo--lead .demo__name { font-size: var(--text-title); }
  .ult__tools { grid-template-columns: minmax(0, 1fr); }
  .apps { margin-top: var(--space-lg); }
  .apps__head { padding-bottom: var(--space-lg); }
  .apps__title { font-size: var(--text-2xl); }
  .app { padding-block: var(--space-xl); gap: var(--space-lg); }
  .app__tagline, .app--flip .app__tagline { font-size: var(--text-2xl); max-width: none; }
  .levels__name { font-size: var(--text-2xl); }
  .week__calendars { gap: var(--space-lg); }
  .price__list { padding: var(--space-md); border-radius: var(--radius-card); }
  .price__items { columns: 1; }
  .price__items li { min-height: 2.75rem; font-size: var(--text-md); }
  .free { display: none; }
  .about__rule { margin-bottom: var(--space-xl); }
  .about__grid { margin-top: var(--space-xl); gap: var(--space-xl); }
  .start__actions, .start__actions .btn { width: 100%; }
}
/* The narrowest phones (320): the results button's one-line label needs the small button's size to fit. */
@media (max-width: 22.5rem) {
  .recaps__foot .btn { padding-inline: var(--space-md); font-size: var(--text-sm); }
}

/* The strip's first figure is the scenario's side. Its long label "Scenario that triggered" stays for assistive
   technology; the slip shows the short label "Side" so three slips fit one screen in about 80 words. */
.recaps .receipt__scenario > div:first-child { display: grid; align-content: start; }
.recaps .receipt__scenario > div:first-child::before { content: "Side"; font-size: var(--text-xs); color: var(--color-slip-ink-2); }
.recaps .receipt__scenario > div:first-child dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
