/* Biodex home page layout — the game-site layout (Oct 2026), per tier (S phone, M, L desktop).
   L is a 640u column with no rail (unit.js, data-wide). Every size is in virtual pixels (u); the
   pixel face (Press Start 2P) is set on multiples of 8u, or 4u where a line must fit. */

/* ── Display type ─────────────────────────────────────────────────────────────────────────────── */
.display { font-size: calc(32 * var(--u)); line-height: calc(40 * var(--u)); }
:root[data-narrow] .display { font-size: calc(24 * var(--u)); line-height: calc(32 * var(--u)); }
:root[data-tier="M"] .display { font-size: calc(32 * var(--u)); line-height: calc(40 * var(--u)); }
:root[data-tier="L"] .display { font-size: calc(40 * var(--u)); line-height: calc(48 * var(--u)); }

.display-2 { font-size: calc(24 * var(--u)); line-height: calc(32 * var(--u)); }
:root[data-narrow] .display-2 { font-size: calc(16 * var(--u)); line-height: calc(24 * var(--u)); }
:root[data-tier="L"] .display-2 { font-size: calc(32 * var(--u)); line-height: calc(40 * var(--u)); }

/* a hard pixel drop shadow under every headline: lit paper on the light ground, ink on the dark */
.display, .display-2 { text-shadow: calc(2 * var(--u)) calc(2 * var(--u)) 0 var(--band-light); }
.g-sheet .display, .g-sheet .display-2 { color: var(--on-leaf); text-shadow: calc(2 * var(--u)) calc(2 * var(--u)) 0 var(--cast-sheet); }
.k-panel .display-2 { color: var(--ink); text-shadow: calc(2 * var(--u)) calc(2 * var(--u)) 0 var(--band-light); }

.lead { font-size: max(1.125rem, calc(14 * var(--u))); line-height: 1.35; font-weight: 500; max-width: 30rem; }
:root[data-tier="L"] .lead { font-size: max(1.25rem, calc(16 * var(--u))); }
.small { font-size: var(--prose-small); line-height: 1.5; }
.g-sheet .small { color: var(--band-light); }

/* short bullet lists: a leaf-green pixel square, one line each */
.ticks { display: grid; gap: calc(6 * var(--u)); font-weight: 500; font-size: max(1rem, calc(12 * var(--u))); line-height: 1.35; }
:root[data-tier="L"] .ticks { font-size: max(1.0625rem, calc(13 * var(--u))); }
.ticks li { display: flex; align-items: baseline; gap: calc(6 * var(--u)); }
.tick { flex: none; width: calc(6 * var(--u)); height: calc(6 * var(--u)); background: var(--leaf);
        box-shadow: 0 0 0 var(--u) var(--leaf-border); transform: translateY(calc(-1 * var(--u))); }
.hero-text .ticks { text-align: left; }

/* the kicker: a banner as wide as its words, not the column */
.banner.kicker { display: inline-flex; width: auto; max-width: 100%; }
/* the hero's kicker is the page's h1 (the keyword): it keeps a paragraph's base size, not the h1 sizes */
h1.kicker, :root[data-narrow] h1.kicker, :root[data-tier] h1.kicker { font-size: var(--prose-size); line-height: var(--prose-lh); color: inherit; }

/* ── 1 · Hero ─────────────────────────────────────────────────────────────────────────────────── */
.hero { padding: calc(24 * var(--u)) 0 calc(40 * var(--u)); }
.hero-grid { display: grid; grid-template-columns: 100%; row-gap: calc(24 * var(--u)); }
.hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; gap: calc(12 * var(--u)); }
.hero-text .lead { margin-inline: auto; max-width: none; }
.hero-text .door { margin-bottom: 0; }
.hero-free { font-size: calc(8 * var(--u)); line-height: calc(10 * var(--u)); color: var(--band-light); }
.hero-media { display: flex; justify-content: center; }

:root:is([data-tier="M"], [data-tier="L"]) .hero { padding: calc(32 * var(--u)) 0 calc(48 * var(--u)); }
:root:is([data-tier="M"], [data-tier="L"]) .hero-grid {
  grid-template-columns: minmax(0, 1fr) auto; column-gap: calc(24 * var(--u)); align-items: center; }
:root:is([data-tier="M"], [data-tier="L"]) .hero-text { text-align: left; align-items: flex-start; }
:root:is([data-tier="M"], [data-tier="L"]) .hero-text .lead { margin-inline: 0; }

/* ── 2 · Stats: overlaps the hero's lower edge ────────────────────────────────────────────────── */
.stats-band { position: relative; z-index: 1; margin-top: calc(-24 * var(--u)); }
.stats { padding: calc(4 * var(--u)); --ground-cast: var(--cast-sheet); }
.stats-grid { display: grid; gap: var(--u); background: var(--border);
              grid-template-columns: round(down, calc((100% - var(--u)) / 2), var(--u)) 1fr; }
:root[data-tier="L"] .stats-grid {
  grid-template-columns: repeat(3, round(down, calc((100% - 3 * var(--u)) / 4), var(--u))) 1fr; }
.stat { background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: calc(4 * var(--u)); padding: calc(8 * var(--u)) calc(2 * var(--u)); text-align: center; }
.stat-value { font-family: "Biodex Pixel Figures", monospace; font-size: calc(24 * var(--u)); line-height: calc(24 * var(--u)); color: var(--ink); }
:root[data-tight] .stat-value { font-size: calc(16 * var(--u)); line-height: calc(16 * var(--u)); }
:root[data-tier="M"] .stat-value { font-size: calc(32 * var(--u)); line-height: calc(32 * var(--u)); }
.stat-caption { font-size: calc(8 * var(--u)); line-height: calc(10 * var(--u)); color: var(--ink-soft); }
.stats-credit { margin-top: calc(4 * var(--u)); max-width: none; text-align: right; }

/* ── Feature rows: clip | text (feature-flip: text | clip) ────────────────────────────────────── */
.feature { display: flex; flex-direction: column; gap: calc(16 * var(--u)); }
.feature > .clip { order: 2; align-self: center; }
.feature-text > * + * { margin-top: calc(12 * var(--u)); }
.clip-solo { display: flex; justify-content: center; }
:root:is([data-tier="M"], [data-tier="L"]) .feature {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: calc(24 * var(--u)); align-items: center; }
:root:is([data-tier="M"], [data-tier="L"]) .feature > .clip { order: 0; grid-column: 1; grid-row: 1; }
:root:is([data-tier="M"], [data-tier="L"]) .feature > .feature-text { grid-column: 2; grid-row: 1; }
:root:is([data-tier="M"], [data-tier="L"]) .feature-flip { grid-template-columns: minmax(0, 1fr) auto; }
:root:is([data-tier="M"], [data-tier="L"]) .feature-flip > .clip { grid-column: 2; }
:root:is([data-tier="M"], [data-tier="L"]) .feature-flip > .feature-text { grid-column: 1; }

/* how it works: three numbered steps */
/* on a phone the headline sits centred over the three steps; beside the clip it stays left */
:root:not([data-tier="M"]):not([data-tier="L"]) #how-h { text-align: center; }
.steps3 { display: grid; gap: calc(8 * var(--u)); }
.step3 { display: flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(6 * var(--u)); }
.step3-icon { flex: none; display: flex; align-items: center; justify-content: center;
              width: calc(44 * var(--u)); height: calc(44 * var(--u)); padding: 0; }
.step3-body { flex: 1 1 auto; min-width: 0; }
.step3-word { display: flex; align-items: center; gap: calc(6 * var(--u)); color: var(--ink);
              font-size: calc(16 * var(--u)); line-height: calc(20 * var(--u)); }
.step3-n { display: inline-flex; align-items: center; justify-content: center; flex: none;
           width: calc(16 * var(--u)); height: calc(16 * var(--u)); background: var(--leaf); color: var(--on-leaf);
           font-size: calc(8 * var(--u)); line-height: calc(8 * var(--u)); text-shadow: var(--u) var(--u) 0 var(--leaf-border);
           box-shadow: 0 0 0 var(--u) var(--leaf-border); }
.step3-body p { margin-top: calc(2 * var(--u)); }

/* ── 5 · Your Biodex ──────────────────────────────────────────────────────────────────────────── */
.collect-band { padding: calc(32 * var(--u)) 0; }
.collect-top { display: flex; flex-direction: column; gap: calc(24 * var(--u)); margin-bottom: calc(24 * var(--u)); }
.collect-text > * + * { margin-top: calc(12 * var(--u)); }
:root:is([data-tier="M"], [data-tier="L"]) .collect-top {
  display: grid; grid-template-columns: minmax(0, 1fr) calc(144 * var(--u)); column-gap: calc(24 * var(--u)); align-items: center; }
.medal-head { font-size: calc(8 * var(--u)); line-height: calc(10 * var(--u)); color: var(--medal-gold-lit); }
:root[data-tier="L"] .medal-head { font-size: calc(16 * var(--u)); line-height: calc(20 * var(--u)); }
.medal-chips { display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)); }
.medal-chip { display: inline-flex; align-items: center; gap: calc(4 * var(--u)); padding: calc(4 * var(--u)) calc(6 * var(--u));
              font-family: "Biodex Pixel", monospace; text-transform: uppercase; font-size: calc(8 * var(--u)); line-height: calc(10 * var(--u)); }

.reveal { display: flex; flex-direction: column; align-items: center; }
.reveal .reveal-seat { --cw: 112; --ch: 140; }
.reveal-title { font-size: calc(16 * var(--u)); line-height: calc(20 * var(--u)); color: var(--medal-gold-lit);
                text-shadow: calc(2 * var(--u)) calc(2 * var(--u)) 0 var(--cast-sheet); }
.reveal-medal { display: flex; justify-content: center; margin-top: calc(12 * var(--u)); color: var(--on-leaf); min-height: calc(10 * var(--u)); }
.reveal-medal[hidden] { display: flex !important; visibility: hidden; }

.tray { padding: calc(6 * var(--u)); }
.tray-grid { display: grid; grid-template-columns: repeat(2, round(down, calc((100% - 8 * var(--u)) / 2), calc(2 * var(--u))));
             gap: calc(12 * var(--u)) calc(8 * var(--u)); padding-bottom: calc(6 * var(--u)); }
.tray-grid .scard { width: 100%; height: calc(140 * var(--u)); }
.tray-grid .scard:nth-child(n+5) { display: none; }
:root:is([data-tier="M"], [data-tier="L"]) .tray-grid {
  grid-template-columns: repeat(4, round(down, calc((100% - 24 * var(--u)) / 4), calc(2 * var(--u)))); }
:root:is([data-tier="M"], [data-tier="L"]) .tray-grid .scard:nth-child(n+5) { display: flex; }

/* the flip (the new find): a card turns over between its pixel sprite and the real photograph (biodex.js). The photo
   fills the card's whole face, under the name and the tab; while it shows, the name sits on a pale
   plate. Without the script (or with reduced motion) the cards keep their sprites. */
.scard-real { display: none; position: absolute; z-index: 1; left: calc(4 * var(--u)); top: calc(4 * var(--u));
              width: calc(100% - 8 * var(--u)); height: calc(100% - 8 * var(--u)); object-fit: cover; }
.scard.is-real .scard-real { display: block; }
.scard.is-real .scard-sprite { visibility: hidden; }
.scard.is-real .scard-cap { z-index: 2; background: var(--halo); }
/* the tray's cards pixelate instead (biodex.js, morph): a canvas over the whole face, under the name */
.morph-canvas { position: absolute; z-index: 1; left: calc(4 * var(--u)); top: calc(4 * var(--u));
                width: calc(100% - 8 * var(--u)); height: calc(100% - 8 * var(--u)); image-rendering: pixelated; }
.morph-canvas[hidden] { display: none; }
/* the new find's photo starts under its name, the bird's head clear of the plate */
.reveal .scard-real { top: calc(36 * var(--u)); height: calc(100% - 40 * var(--u)); object-position: 50% 25%; }

/* ── 6 · Together ─────────────────────────────────────────────────────────────────────────────── */

/* ── 4 · Inside the game: the scroll story ────────────────────────────────────────────────────────
   A phone (S, or any screen shorter than 561px): each line, then its own screen, one under the other.
   A tablet or a laptop: the lines scroll on the left, one phone stays put on the right and changes
   screen as each line crosses the middle (biodex.js, tour). */
.tour-head { display: flex; flex-direction: column; align-items: center; gap: calc(12 * var(--u)); text-align: center;
             margin-bottom: calc(32 * var(--u)); }
.k-phone { --f-line: var(--ink); --k-shade: var(--cast-sheet); --k-lit: var(--border); --f-face: var(--sheet); }
.phone { padding: calc(10 * var(--u)) calc(6 * var(--u)) calc(14 * var(--u)); }
.phone-shot { display: block; width: 100%; height: auto; background: var(--sheet); }
video.phone-shot { aspect-ratio: 576 / 1230; object-fit: cover; }   /* a recording a little wider than the screenshots: trim its sides */
video.phone-shot.fit-contain { object-fit: contain; background: #000; }   /* a 9:16 clip: shown whole, black above and below */

.tour-steps { display: grid; gap: calc(48 * var(--u)); }
.tour-step { display: flex; flex-direction: column; align-items: center; gap: calc(16 * var(--u)); text-align: center; }
.tour-text { display: flex; flex-direction: column; align-items: center; gap: calc(8 * var(--u)); }
.tour-title { color: var(--ink); font-size: calc(16 * var(--u)); line-height: calc(24 * var(--u)); max-width: calc(240 * var(--u)); }
.tour-line { font-weight: 500; font-size: max(1.0625rem, calc(13 * var(--u))); line-height: 1.35; color: var(--ink-soft); }
.tour-inline { width: calc(min(188, var(--col)) * var(--u)); margin: 0; }
.tour-stage { display: none; }

@media (min-height: 561px) {
  :root:is([data-tier="M"], [data-tier="L"]) .tour-grid { justify-content: center;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: calc(24 * var(--u)); }
  :root:is([data-tier="M"], [data-tier="L"]) .tour-inline { display: none; }
  :root:is([data-tier="M"], [data-tier="L"]) .tour-steps { gap: 0; padding-block: 12vh; }
  :root:is([data-tier="M"], [data-tier="L"]) .tour-step {
    min-height: 72vh; justify-content: center; align-items: flex-start; text-align: left; }
  :root:is([data-tier="M"], [data-tier="L"]) .tour-text { align-items: flex-start; }
  :root[data-tier="L"] .tour-grid { grid-template-columns: minmax(0, calc(320 * var(--u))) auto; column-gap: calc(64 * var(--u)); }
  :root[data-tier="L"] .tour-title { font-size: calc(24 * var(--u)); line-height: calc(32 * var(--u)); max-width: calc(320 * var(--u)); }

  /* the phone: as tall as the window allows below the plaque (40u), never wider than 204u (188u on M) */
  :root:is([data-tier="M"], [data-tier="L"]) .tour-stage {
    display: flex; align-items: center; position: sticky; top: calc(40 * var(--u));
    height: calc(100vh - 40 * var(--u)); height: calc(100dvh - 40 * var(--u)); }
  :root:is([data-tier="M"], [data-tier="L"]) .tour-stage .phone {
    width: min(calc(204 * var(--u)), round(down, calc((100vh - 88 * var(--u)) * 576 / 1230 + 12 * var(--u)), var(--u))); }
  :root[data-tier="M"] .tour-stage .phone { width: min(calc(188 * var(--u)), round(down, calc((100vh - 88 * var(--u)) * 576 / 1230 + 12 * var(--u)), var(--u))); }
  .phone-stack { display: grid; }
  .phone-stack > * { grid-area: 1 / 1; visibility: hidden; }
  .phone-stack > [data-on] { visibility: visible; }

  /* with the script running, the lines not being shown step back */
  :root:is([data-tier="M"], [data-tier="L"]) .tour-grid.is-live .tour-text { opacity: .3; transition: opacity .3s steps(3); }
  :root:is([data-tier="M"], [data-tier="L"]) .tour-grid.is-live .tour-step.is-on .tour-text { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .tour-grid.is-live .tour-text { transition: none; } }

/* ── 7 · Plans: the headline, then the Free | Premium table under it, centred ───────────────────── */
.plans-stack { display: flex; flex-direction: column; align-items: center; gap: calc(16 * var(--u)); }
.plans-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.plans-text > * + * { margin-top: calc(12 * var(--u)); }
.plans-text .ticks { text-align: left; }
/* the note under Free | Premium (the * of its three weekly rows), close under the table */
.plans-notes { text-align: center; margin-top: calc(-8 * var(--u)); }
.plans-notes p { margin: 0 auto; max-width: none; color: var(--ink-soft); }
.plans-notes p + p { margin-top: calc(4 * var(--u)); }
.plans-table td { text-transform: uppercase; }
.plans-table .col-premium { background: var(--leaf-bevel); }
.plans-table thead .col-premium { background: var(--leaf); }
.plans-table thead .col-premium .colhead { color: var(--on-leaf); text-shadow: var(--u) var(--u) 0 var(--leaf-border); }
.plans-2 col.c-feature { width: auto; }
/* bigger words in Free | Premium: the feature names and the figures */
/* bold: the pixel font has no bold cut, so each letter is thickened by a copy of itself shifted right */
.plans-2 :is(th[scope="row"], td) { font-weight: 700; text-shadow: max(calc(var(--u) / 2), 1px) 0 0 currentColor; }
.plans-2 th[scope="row"] { font-size: calc(var(--prose-size) * 1.5); line-height: calc(var(--prose-lh) * 1.5); }
.plans-2 td { font-size: calc(12 * var(--u)); line-height: calc(14 * var(--u)); }
/* a row with a popup: an orange i key (the app's info mark) after its name. It is a raised gold key: lit
   top-left, shaded bottom-right, standing on a dark ledge; pressed, it sinks onto the ledge */
.i-mark { --k: max(var(--u), 2px); appearance: none; cursor: pointer; padding: 0;
          display: inline-block; position: relative; top: calc(-1 * var(--k)); margin-left: calc(6 * var(--u));
          width: max(calc(8 * var(--u)), 13px); height: max(calc(8 * var(--u)), 13px);
          background: var(--medal-gold); border: var(--k) solid var(--sheet); color: var(--sheet);
          box-shadow: inset var(--k) var(--k) 0 var(--medal-gold-lit), inset calc(-1 * var(--k)) calc(-1 * var(--k)) 0 var(--medal-bronze),
                      0 calc(2 * var(--k)) 0 var(--sheet);
          font-family: "Biodex Pixel", monospace; font-size: max(calc(6 * var(--u)), 8px); line-height: max(calc(5 * var(--u)), 8px);
          text-align: center; vertical-align: middle; transition: transform 60ms, box-shadow 60ms; }
.i-mark::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; }
.i-mark:hover { background: var(--medal-gold-lit); }
.i-mark:active { transform: translateY(calc(2 * var(--k)));
                 box-shadow: inset var(--k) var(--k) 0 var(--medal-bronze), 0 0 0 var(--sheet); background: var(--medal-gold); }
.i-mark:focus-visible { outline: calc(2 * var(--u)) solid var(--ground-ring); outline-offset: calc(2 * var(--u)); }
/* the popup never outgrows the screen, and nothing in it scrolls */
.plan-dialog { width: min(calc(320 * var(--u)), calc(100% - 16 * var(--u))); }
/* the panel stops short of the screen's foot (the dialog hangs max(10vh, 24px) from the top) */
.plan-dialog .dialog-panel { display: flex; flex-direction: column; max-height: calc(100dvh - max(10vh, 24px) - 16px); }
.plan-dialog h2 { font-size: calc(12 * var(--u)); line-height: calc(16 * var(--u)); padding-right: max(calc(28 * var(--u)), 44px); }
:root[data-lowdensity] .plan-dialog h2 { font-size: calc(16 * var(--u)); line-height: calc(20 * var(--u)); }
/* a bigger close key, on top of the title, with a wide target around it; it stands on a dark ledge and
   sinks onto it when pressed */
.plan-dialog .close-key { z-index: 2; width: max(calc(22 * var(--u)), 32px); height: max(calc(22 * var(--u)), 32px);
                          font-size: max(calc(11 * var(--u)), 14px); line-height: max(calc(14 * var(--u)), 20px); padding: max(calc(4 * var(--u)), 6px);
                          filter: drop-shadow(0 max(calc(2 * var(--u)), 3px) 0 var(--sheet)); transition: transform 60ms, filter 60ms; }
.plan-dialog .close-key::before { width: max(calc(40 * var(--u)), 56px); height: max(calc(40 * var(--u)), 56px); }
.plan-dialog .close-key:hover { --f-face: color-mix(in srgb, var(--close) 85%, white); }
.plan-dialog .close-key:active { transform: translateY(max(calc(2 * var(--u)), 3px)); filter: none; --f-face: color-mix(in srgb, var(--close) 75%, black); }
/* the screenshot is shown whole: it shrinks (keeping its shape) to the space left under the line, in a
   frame that hugs it: a dark line, a panel mat, and a ledge under it */
.plan-dialog .plan-shot { display: block; flex: 0 1 auto; min-height: 0; align-self: center; width: auto; max-width: 100%; height: auto;
                          box-sizing: border-box; padding: max(calc(3 * var(--u)), 4px); background: var(--panel);
                          border: max(var(--u), 2px) solid var(--sheet); box-shadow: 0 max(calc(2 * var(--u)), 3px) 0 var(--cast-paper); }
.plan-dialog .plan-shot { cursor: zoom-in; }
.plan-dialog .plan-shot:focus-visible { outline: calc(2 * var(--u)) solid var(--ground-ring); outline-offset: calc(2 * var(--u)); }
/* the screenshot full screen, over its popup */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0;
            background: transparent; cursor: zoom-out; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lightbox .close-key { position: fixed; top: 16px; right: 16px; width: 40px; height: 40px; padding: 8px; font-size: 16px; line-height: 24px; }
/* the plan columns: Free only holds short figures (512 PX); Premium holds MAX / RESOLUTION on two lines
   (10 letters at 12u, plus padding). The feature names get the rest — and on a laptop the sheet widens */
.plans-2 col.c-plan { width: calc(96 * var(--u)); }
.plans-2 col.c-plan + col.c-plan { width: calc(136 * var(--u)); }
:root[data-tier="L"] .plan-sheet-2 { width: calc(560 * var(--u)); }
/* a phone: each plan gets half the row, so the figures step down to 10u to keep RESOLUTION inside */
:root:is([data-tier="S"], :not([data-tier])) .plans-2 td { font-size: calc(10 * var(--u)); line-height: calc(12 * var(--u)); }
.plans-2 thead td { background: var(--card); }
/* Premium's prices, under the table: MONTHLY | YEARLY | LIFETIME, the price big, its "a month" under it */
.plans-price caption { caption-side: top; }
.plans-price .price { display: block; font-family: "Biodex Pixel Figures", monospace; font-size: calc(16 * var(--u)); line-height: calc(20 * var(--u)); color: var(--ink); }
.plans-price .price-per { display: block; color: var(--ink-soft); }
.plans-price td { vertical-align: top; }
/* the saving: a gold block standing out of the cell — lit top-left, shaded bottom-right, 4u of
   extruded side under it, tilted, and it hops every few seconds (reduced motion: it just stands) */
.plans-price .price-save { display: inline-block; position: relative; margin: calc(8 * var(--u)) 0 calc(6 * var(--u));
  padding: calc(3 * var(--u)) calc(5 * var(--u)); background: var(--medal-gold); color: var(--ink);
  font-size: calc(8 * var(--u)); line-height: calc(10 * var(--u));
  outline: var(--u) solid var(--ink);
  box-shadow: inset var(--u) var(--u) 0 var(--medal-gold-lit), inset calc(-1 * var(--u)) calc(-1 * var(--u)) 0 #B47A0E,
    var(--u) var(--u) 0 var(--ink), calc(2 * var(--u)) calc(2 * var(--u)) 0 #8A5C08, calc(3 * var(--u)) calc(3 * var(--u)) 0 #8A5C08,
    calc(4 * var(--u)) calc(4 * var(--u)) 0 var(--ink), calc(5 * var(--u)) calc(5 * var(--u)) 0 rgba(43, 32, 20, .25);
  transform: rotate(-4deg); animation: save-hop 3.2s steps(1) infinite; }
.plans-price td:nth-child(3) .price-save { transform: rotate(3deg); animation-delay: 1.6s; }
.plans-price .price-save::before { content: ""; position: absolute; top: calc(2 * var(--u)); left: calc(2 * var(--u));
  width: calc(2 * var(--u)); height: calc(2 * var(--u)); background: #FFF3CF; }   /* the glint */
@keyframes save-hop { 0%, 84%, 100% { translate: 0 0; } 88% { translate: 0 calc(-3 * var(--u)); } 92% { translate: 0 calc(-1 * var(--u)); } }
:root:is([data-tier="S"], :not([data-tier])) .plans-table.plans-price { grid-template-columns: repeat(3, minmax(0, 1fr)); }
:root:is([data-tier="S"], :not([data-tier])) .plans-table.plans-price caption { grid-column: 1 / -1; margin-bottom: 0; }

/* a phone: each feature is its own boxed section — its name across the top, then FREE | PREMIUM side by
   side under it, each cell naming its plan — with a clear gap before the next feature
   (.plans-table.plans-2: outranks biodex.css's three-plan phone grid) */
:root:is([data-tier="S"], :not([data-tier])) .plans-table.plans-2 { display: block; padding: 0; background: none; }
:root:is([data-tier="S"], :not([data-tier])) .plans-table.plans-2 :is(colgroup, thead) { display: none; }
:root:is([data-tier="S"], :not([data-tier])) .plans-table.plans-2 tbody { display: flex; flex-direction: column; gap: calc(6 * var(--u)); }
:root:is([data-tier="S"], :not([data-tier])) .plans-table.plans-2 tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--u); padding: var(--u); background: var(--border); box-shadow: var(--u) var(--u) 0 rgba(43, 32, 20, .25); }
:root:is([data-tier="S"], :not([data-tier])) .plans-table.plans-2 th[scope="row"] { grid-column: 1 / -1; background: var(--panel);
  text-align: center; padding: calc(4 * var(--u)); }
:root:is([data-tier="S"], :not([data-tier])) .plans-table.plans-2 td { display: flex; flex-direction: column; justify-content: center;
  align-items: center; padding: calc(4 * var(--u)) calc(2 * var(--u)); }
:root:is([data-tier="S"], :not([data-tier])) .plans-table.plans-2 td::before { content: attr(data-plan) " "; display: block; font-size: calc(8 * var(--u));
  line-height: calc(10 * var(--u)); color: var(--ink-soft); margin-bottom: calc(2 * var(--u)); }
:root:is([data-tier="S"], :not([data-tier])) .plans-table.plans-2 td.col-premium::before { color: var(--leaf-border); }

/* ── 6 · Who it's for: two columns, Kids & families | Individual enthusiasts, in the Free | Premium table's
   frame (1u ink lines between card cells, a panel header). The cells are bold prose. The source order is one
   column then the other: a laptop or tablet lays them side by side (grid-auto-flow: column, so the rows
   line up); a phone stacks them, one list under the other */
.who-grid { display: grid; gap: var(--u); padding: var(--u); background: var(--border);
  grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); grid-auto-flow: column; }
.who-head { margin: 0; background: var(--panel); text-align: center; font-family: "Biodex Pixel", monospace; text-transform: uppercase;
  font-size: calc(8 * var(--u)); line-height: calc(10 * var(--u)); font-weight: 400; padding: calc(2 * var(--u)); }
.who-cell { margin: 0; max-width: none; background: var(--card); padding: calc(6 * var(--u)) calc(8 * var(--u)); color: var(--ink);
  font-family: "Biodex Prose", system-ui, sans-serif; font-size: var(--prose-size); line-height: var(--prose-lh);
  font-weight: 500; text-shadow: 0.04em 0 0 currentColor;   /* bold: the prose font ships only 400 and 500, so a sliver-shifted copy thickens it */
  display: flex; align-items: center; }
:root:is([data-tier="S"], :not([data-tier])) .who-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
:root:is([data-tier="S"], :not([data-tier])) .who-head:not(:first-child) { margin-top: calc(6 * var(--u)); }
:root[data-tier="L"] .who-sheet { width: calc(560 * var(--u)); }

/* ── 8 · FAQ ──────────────────────────────────────────────────────────────────────────────────── */
.faq-col > .faq { margin-top: calc(16 * var(--u)); }
.faq-more { margin: calc(16 * var(--u)) auto 0; max-width: none; }
:root[data-tier="L"] .faq-col > .faq { width: calc(480 * var(--u)); margin-inline: auto; }

/* ── 9 · Last call ───────────────────────────────────────────────────────────────────────────── */
.last-call { text-align: center; }
.last-panel .lead { margin-inline: auto; }
.out-there { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(4 * var(--u)); }
:root[data-tier="M"] .out-there img:nth-child(n+6) { display: none; }   /* five fit the tablet panel; seven left the crow alone on a row */

.inline-form { text-align: left; width: min(calc(224 * var(--u)), 100%); margin-inline: auto; margin-top: calc(16 * var(--u)); }
.inline-form .k-sheet6 > * + * { margin-top: calc(8 * var(--u)); }

.step-arrow { display: flex; line-height: 0; }

/* the hero's four words, one a line. IDENTIFY is 8 letters (8 × the type
   size): at 32u it needs 256u, so a column narrower than that sets the stack at 24u */
.hero-title > span:not(.vh) { display: block; }
:root[data-tight] .hero-title { font-size: calc(24 * var(--u)); line-height: calc(32 * var(--u)); }
/* a tablet sets the hero beside its clip: 24u there (192u), and the clip narrows to 152u to leave the room */
:root[data-tier="M"] .hero-title { font-size: calc(24 * var(--u)); line-height: calc(32 * var(--u)); }
/* the three words breathe: each grows by 3% and back, a beat apart. On a phone they grow from their
   centre, beside the clip from their left edge. Reduced motion stops it (biodex.css). */
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.hero-title > span:not(.vh) { animation: breathe 3.6s ease-in-out infinite; transform-origin: 50% 50%; }
.hero-title > span:nth-child(3) { animation-delay: .6s; }
.hero-title > span:nth-child(5) { animation-delay: 1.2s; }
.hero-title > span:nth-child(7) { animation-delay: 1.8s; }
:root:is([data-tier="M"], [data-tier="L"]) .hero-title > span:not(.vh) { transform-origin: 0 50%; }

/* The two app stores (StoreBadges.astro): dark raised keys, each with its store's logo — lit top-left,
   shaded bottom-right, on a ledge; pressed, a key sinks onto it. */
.stores { display: flex; gap: calc(4 * var(--u)); margin: 0; padding: 0; list-style: none; }
.store { --k: max(var(--u), 2px); position: relative; display: flex; align-items: center; justify-content: center; gap: calc(6 * var(--u));
         background: var(--sheet); color: var(--on-leaf); border: var(--k) solid var(--ink); white-space: nowrap; cursor: default;
         box-shadow: inset var(--k) var(--k) 0 rgba(255,255,255,.18), inset calc(-1 * var(--k)) calc(-1 * var(--k)) 0 rgba(0,0,0,.35),
                     0 calc(2 * var(--k)) 0 var(--ink);
         transition: transform 60ms, box-shadow 60ms; user-select: none; -webkit-user-select: none; }
.store:hover { background: color-mix(in srgb, var(--sheet) 85%, white); }
.store:active { transform: translateY(calc(2 * var(--k)));
                box-shadow: inset var(--k) var(--k) 0 rgba(0,0,0,.35), 0 0 0 var(--ink); }
.store-logo { width: calc(14 * var(--u)); height: calc(14 * var(--u)); fill: currentColor; flex: none; }
.store-text { display: flex; flex-direction: column; text-align: left; }
.store-soon { font-family: "Biodex Prose", system-ui, sans-serif; font-size: max(calc(6 * var(--u)), 9px); line-height: 1.1; opacity: .8; }
.store-name { font-family: "Biodex Pixel", monospace; text-transform: uppercase; font-size: calc(9 * var(--u)); line-height: calc(11 * var(--u)); }

/* under a page door (the hero, the last call): one above the other, each as wide as the door */
.cta-stack { display: flex; flex-direction: column; align-items: stretch; gap: calc(8 * var(--u)); width: 100%; }
:root:is([data-tier="M"], [data-tier="L"]) .cta-stack { width: calc(176 * var(--u)); }
.last-panel .cta-stack { margin-inline: auto; }
/* Your Biodex: the door under the tray of cards, centred */
.collect-cta { margin: calc(16 * var(--u)) auto 0; }
.stores-door { flex-direction: column; gap: calc(6 * var(--u)); }
.stores-door .store { justify-content: flex-start; height: max(calc(32 * var(--u)), 40px); padding: 0 calc(12 * var(--u)); gap: calc(8 * var(--u));
                      border-color: var(--band); background: #4A3C2A;
                      box-shadow: inset var(--k) var(--k) 0 rgba(255,255,255,.22), inset calc(-1 * var(--k)) calc(-1 * var(--k)) 0 rgba(0,0,0,.4),
                                  0 calc(2 * var(--k)) 0 var(--cast-sheet); }
.stores-door .store:hover { background: #57472F; }
.stores-door .store:active { box-shadow: inset var(--k) var(--k) 0 rgba(0,0,0,.4), 0 0 0 var(--cast-sheet); }
/* on a phone "Coming soon to GOOGLE PLAY" on one line; on a tablet or laptop the door is too narrow, two lines */
.stores-door .store-text { flex-direction: row; align-items: baseline; gap: calc(4 * var(--u)); }
:root:is([data-tier="M"], [data-tier="L"]) .stores-door .store-text { flex-direction: column; align-items: flex-start; gap: 0; }
:root:is([data-tier="M"], [data-tier="L"]) .stores-door .store { height: calc(28 * var(--u)); }
