/* =============================================================================
   section5-media.com: the home page (with site.css)
   =============================================================================
   The three apps come first, side by side, each in its own colours, with its
   store buttons on the first screen of a phone and a computer. Below them one
   price table, the questions people ask, then the family's story. Each app
   has its own page too (app.css).

   Each app's screen is drawn live, not a screenshot (home.js): My Stadiums'
   stamps are drawn by the app's own stamp code, My Travel's map is the app's
   own map, in the apps' own colours, with sample stadiums, states and a sample
   game, never a family photo or a face. Each plays once as it comes into view
   and rests on its last frame; a tap plays it again. With motion turned off,
   the finished screen shows and nothing moves.
   ============================================================================= */

/* ── Opening ────────────────────────────────────────────────────────────── */
.intro .wrap { padding-top: 64px; padding-bottom: 44px; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.intro h1 { margin: 0; font-size: 50px; line-height: 1.1; letter-spacing: -0.024em; font-weight: 700; max-width: 15em; text-wrap: balance; }
.intro p { margin: 0; color: var(--muted); font-size: 18px; max-width: 21em; padding-bottom: 6px; }

/* ── The three apps: one band each, in each app's own colours ───────────── */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); }
.door { color: #fff; padding: 40px 40px 0; display: grid; grid-row: span 7; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); row-gap: 0; overflow: hidden; scroll-margin-top: 16px; }
.door.st { background: var(--navy); --accent: var(--gold); }
.door.tr { background: var(--green); --accent: var(--mint); }
.door.at { background: var(--night); --accent: var(--cyan); }
.door .name { display: flex; align-items: center; gap: 14px; margin: 0; font: 400 34px/1 var(--mark); letter-spacing: 0.03em; }
.door .name img { width: 52px; height: 52px; border-radius: 12px; }
.door .promise { margin: 26px 0 16px; font-size: 27px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; max-width: 15em; text-wrap: balance; }
.door ul { list-style: none; margin: 0 0 20px; padding: 0; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.door li + li { margin-top: 6px; }
.door .free { color: var(--accent); font-weight: 600; font-size: 16px; margin: 0 0 22px; }
.door .stores { display: flex; gap: 10px; flex-wrap: wrap; align-self: start; }
.door .stores a { display: inline-flex; align-items: center; min-height: 44px; border-radius: 9px; }
.door .stores img { height: 44px; width: auto; }
/* The way to the app's own page, under its store buttons. */
.door .more, .hero .more { justify-self: start; align-self: start; display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: #fff; font-weight: 600; font-size: 16px; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.door .shot { padding-top: 40px; display: flex; justify-content: center; align-items: flex-end; }

/* The phone the screen sits in: its top only, standing in the band's floor */
.screen { max-width: 100%; width: 300px; height: 380px; border-radius: 40px 40px 0 0; background: #05070a; padding: 10px 10px 0; overflow: hidden; cursor: pointer; }
.screen:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.at .screen { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }
.scr { height: 100%; border-radius: 31px 31px 0 0; overflow: hidden; }
.scr-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px 6px; }
.scr-bar img { width: 20px; height: 20px; border-radius: 5px; }
.scr-bar span { font: 400 15px/1 var(--mark); letter-spacing: 0.04em; }
.n { display: inline-block; font-variant-numeric: tabular-nums; }

/* My Stadiums: the passport */
.st-scr { background: #f2f4f7; color: #16202e; --stamp-ink-collected: hsl(213 45% 26%); }
.st-head { padding: 4px 16px 0; }
.st-head > b { display: block; font: 400 26px/1 var(--mark); letter-spacing: 0.03em; color: #79631b; }
.st-head > span { display: block; font-size: 12.5px; color: #4f5b6d; margin-top: 3px; }
.st-head .n { color: #16202e; font-weight: 700; }
.st-chips { display: flex; gap: 6px; padding: 10px 16px 4px; overflow: hidden; }
.st-chips > span { white-space: nowrap; flex: none; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #efede3; border: 1px solid #e3d9b6; color: #2b3445; font-variant-numeric: tabular-nums; transition: background-color 0.4s ease; }
.st-chips > span.flash { background: #f3dc93; }
.st-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 4px; padding: 8px 10px 0; }
.cell { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.stamp { width: 74px; height: 74px; color: hsl(213 45% 26%); transform: rotate(var(--r)); }
.stamp svg { width: 100%; height: 100%; overflow: visible; display: block; }
.stamp svg text { font-family: var(--body); font-weight: 600; }
.cell .after { display: flex; flex-direction: column; align-items: center; }
.cell b { font-size: 10.5px; line-height: 1.25; margin-top: 4px; color: #16202e; }
.cell small { font-size: 9.5px; color: #4f5b6d; line-height: 1.3; }
.cell i { font-style: normal; font-size: 9.5px; font-weight: 600; color: #8a6a12; }
/* The stamp's date, in the app's gold, one shade deeper so it can be read on the stamp's pale field. */
.st-scr .stamp svg text[fill="#D4AF37"] { fill: #7d661b; }

/* My Travel: the map */
.tr-scr { background: #f6f9f7; color: #17261f; }
.tr-head { padding: 6px 16px 0; }
.tr-head > b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.tr-head > span { display: block; font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.tr-card { margin: 12px 12px 0; background: #fff; border: 1px solid #e2e8e4; border-radius: 14px; padding: 8px; }
.tr-card svg { display: block; width: 100%; height: auto; }
.tr-card path { fill: #dce5e0; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: fill 0.35s ease-out; }
.tr-card path.been { fill: #2ecc70; }
.tr-chips { padding-top: 12px; }
.tr-chips > span { background: #e6f4ec; border-color: #bfe3cd; color: #17261f; }

/* My Athlete: a game's stats */
.at-scr { background: #0e1b2b; color: #eef3f8; }
.at-scr .scr-bar span { color: #eef3f8; }
.at-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 6px 16px 8px; }
.at-head b { display: block; font-size: 17px; font-weight: 700; }
.at-head span { display: block; font-size: 11.5px; color: #8796a8; margin-top: 2px; }
.at-head i { font-style: normal; color: #8796a8; font-size: 18px; line-height: 1; }
.at-tabs { display: flex; gap: 18px; padding: 6px 16px 0; border-bottom: 1px solid #1d2d42; font-size: 12px; color: #8796a8; }
.at-tabs span { padding-bottom: 8px; display: inline-flex; align-items: center; gap: 5px; }
.at-tabs .on { color: #fff; font-weight: 600; box-shadow: inset 0 -2px 0 var(--cyan); }
.at-tabs em { font-style: normal; font-size: 9.5px; font-weight: 700; background: var(--cyan); color: #04121f; border-radius: 999px; min-width: 15px; height: 15px; display: inline-grid; place-items: center; padding: 0 4px; font-variant-numeric: tabular-nums; }
.at-rows { padding: 4px 12px 0 16px; }
.at-row { display: grid; grid-template-columns: 30px 1fr 46px; align-items: center; gap: 8px; height: 33px; border-bottom: 1px solid #16263a; font-size: 12px; }
.at-row abbr { text-decoration: none; font-weight: 700; color: #c9d4e0; font-size: 11px; }
.at-row span { color: #d5dee8; }
.at-box { height: 24px; border-radius: 6px; background: #14243a; border: 1px solid #233650; display: grid; place-items: center end; padding-right: 8px; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; transition: border-color 0.15s; }
.at-box.focus { border-color: var(--cyan); }

/* The motion: only for people who have not turned it off */
@media (prefers-reduced-motion: no-preference) {
  .stamp.land { animation: land 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  .cell .after.show { animation: rise 0.35s ease-out both; }
  .n.tick { animation: tick 0.3s ease-out; }
  .at-box .digit { animation: rise 0.18s ease-out both; }
}
@media (prefers-reduced-motion: reduce) {
  .tr-card path, .st-chips > span, .at-box { transition: none; }
}
@keyframes land {
  0% { opacity: 0; transform: scale(1.9) rotate(calc(var(--r) - 9deg)); }
  55% { opacity: 1; transform: scale(0.93) rotate(var(--r)); }
  78% { transform: scale(1.03) rotate(var(--r)); }
  100% { opacity: 1; transform: scale(1) rotate(var(--r)); }
}
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes tick { 0% { transform: translateY(-5px); opacity: 0.2; } 100% { transform: none; opacity: 1; } }
.stamp.wait, .cell .after.wait { opacity: 0; }

/* ── The films: two sample recap films, drawn by the apps' own film code ─── */
.films .wrap { padding-top: 88px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
.films-words { max-width: 30em; }
.films-note { margin: 0; color: var(--muted); font-size: 15px; }
.film-pair { display: flex; gap: 24px; }
.film-item { margin: 0; }
.film { width: 220px; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #05070a; border: 7px solid #05070a; cursor: pointer; }
.film canvas { display: block; width: 100%; height: 100%; border-radius: 21px; }
.film:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 4px; }
.film-cap { margin: 10px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
@media (min-width: 761px) and (max-width: 1139px) {
  .films .wrap { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .films .wrap { padding-top: 56px; grid-template-columns: 1fr; gap: 24px; }
  .film-pair { gap: 14px; }
  .film-item { flex: 1 1 0; min-width: 0; }
  .film { width: 100%; border-radius: 22px; border-width: 5px; }
  .film canvas { border-radius: 17px; }
}

/* ── Prices: one place, the three apps side by side ─────────────────────── */
.prices .wrap { padding-top: 88px; padding-bottom: 8px; }
.sec { margin: 0 0 8px; font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.sec-line { margin: 0 0 36px; color: var(--muted); font-size: 18px; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); column-gap: 40px; }
.plan { border-top: 4px solid var(--c); padding-top: 18px; display: grid; grid-row: span 5; grid-template-rows: subgrid; }
.plan dl { display: contents; }
.plan.st { --c: var(--gold); } .plan.tr { --c: var(--mint); } .plan.at { --c: var(--cyan); }
.plan h3 { margin: 0 0 14px; font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.plan h3 img { width: 30px; height: 30px; border-radius: 7px; }
.plan dl div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.plan dt { font-size: 14px; color: var(--muted); }
.plan dd { margin: 2px 0 0; font-weight: 600; font-size: 17px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.plan dd small { display: block; font-weight: 400; font-size: 15px; color: var(--muted); }
.plan .stores { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 8px; align-self: start; }
.plan .stores a { display: inline-flex; align-items: center; min-height: 44px; border-radius: 9px; }
.plan .stores img { height: 40px; width: auto; }

/* ── Questions ─────────────────────────────────────────────────────────── */
.faq .wrap { padding-top: 88px; }
.faq .sec { margin-bottom: 28px; }
.qa-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 64px; max-width: 1040px; }
.qa h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
.qa p { margin: 0; color: var(--body-ink); font-size: 17px; max-width: 34em; }
.faq-more { margin: 36px 0 0; color: var(--muted); font-size: 16px; }

/* ── Our story ──────────────────────────────────────────────────────────── */
.story { margin-top: 72px; background: var(--quiet); scroll-margin-top: 16px; }
.story .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 72px; padding-top: 80px; padding-bottom: 80px; }
.story p { margin: 0 0 18px; font-size: 18px; color: var(--body-ink); max-width: 34em; }
.promises { margin: 54px 0 0; padding: 0; list-style: none; }
.promises li { margin-bottom: 22px; font-size: 17px; color: var(--body-ink); }
.promises b { display: block; color: var(--ink); font-size: 17px; }
.next { margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.next-title { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--ink); }
.next ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.next li { display: flex; align-items: flex-start; gap: 12px; }
.next img { width: 28px; height: 28px; border-radius: 6px; flex: none; margin-top: 2px; }
.next li h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.next li p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.45; }

@media (max-width: 760px) {
  .intro .wrap { display: block; padding-top: 26px; padding-bottom: 22px; }
  .intro h1 { font-size: 31px; line-height: 1.1; }
  .intro p { margin-top: 10px; font-size: 16px; }
  .apps { grid-template-columns: 1fr; grid-template-rows: none; }
  .door { display: flex; flex-direction: column; padding: 24px 20px 0; }
  .door .name { font-size: 30px; }
  .door .name img { width: 44px; height: 44px; }
  .door .promise { font-size: 23px; margin: 16px 0 10px; }
  .door ul { font-size: 15px; margin-bottom: 14px; }
  .door .free { font-size: 15px; margin-bottom: 16px; }
  .door .stores img { height: 42px; }
  .door .shot { padding-top: 28px; }
  .screen { width: 268px; height: 312px; padding: 8px 8px 0; border-radius: 34px 34px 0 0; }
  .scr { border-radius: 27px 27px 0 0; }
  .stamp { width: 66px; height: 66px; }
  .prices .wrap { padding-top: 56px; }
  .sec { font-size: 28px; }
  .price-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 36px; }
  .plan { display: block; }
  .story { margin-top: 48px; }
  .story .wrap { grid-template-columns: 1fr; gap: 0; padding-top: 52px; padding-bottom: 52px; }
  .story p { font-size: 17px; }
  .promises { margin-top: 18px; }
  .faq .wrap { padding-top: 56px; }
  .qa-list { grid-template-columns: 1fr; gap: 24px; }
  .qa h3 { font-size: 18px; }
  .qa p { font-size: 16px; }
}
/* One line for the price somebody pays who already pays for another of our
   apps, under the cards rather than a fourth row repeated in each of them
   (review, 29 November 2026). */
.bundle { margin: 32px 0 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--quiet); font-size: 16px; line-height: 1.55; max-width: 46em; }
.bundle b { font-weight: 600; }
.fine { color: var(--muted); font-size: 14px; margin: 28px 0 0; max-width: 46em; }

/* Between a phone and a wide computer (a tablet, a small laptop): one band
   under another, the words on the left and the phone on the right. */
@media (min-width: 761px) and (max-width: 1139px) {
  .apps { grid-template-columns: 1fr; grid-template-rows: none; }
  .door { grid-row: auto; grid-template-rows: repeat(6, auto) 1fr; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 48px; }
  .door > * { grid-column: 1; }
  .door .shot { grid-column: 2; grid-row: 1 / 8; align-self: end; padding-top: 0; }
}
/* Wider than 1440: each band's words and phone keep to the middle of the band. */
@media (min-width: 1441px) { .door { padding-inline: calc((100vw - 1440px) / 6 + 40px); } }
