/* Shared by every page on liftmax.co.uk.
   Lifted out of the homepage's inline <style> when the privacy policy moved
   in from its own repo — two pages on one domain that looked like two
   different products was the thing worth fixing, and duplicating the palette
   into each file is how they drift apart again. */

/* LiftMax "Volt" palette — values taken from src/theme/colors.ts in the app
   repo. Dark is the brand's native mode; light is a same-hierarchy inversion.
   The accent is a reward signal: see the note above .prescription for the
   rule about where it is allowed to appear. */
:root {
  --bg: #0B0D0E;
  --surface: #14171A;
  --surface-raised: #1D2124;
  --border: #2A2F33;
  --text: #F7F9F9;
  --text-secondary: #9AA3A8;
  --text-muted: #5B6368;
  --accent: #C6FF3C;
  --accent-text: #0B0D0E;
  --accent-soft: rgba(198, 255, 60, 0.10);
  --accent-border: rgba(198, 255, 60, 0.35);
  --data: #3CD7FF;
  /* Pro amber — premium/premiumSoft/premiumBorder in colors.ts. */
  --premium: #FFC53C;
  --premium-soft: rgba(255, 197, 60, 0.12);
  --premium-border: rgba(255, 197, 60, 0.38);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ECEFEF;
    --surface: #FFFFFF;
    --surface-raised: #F7F8F8;
    --border: #D6DBDC;
    --text: #14171A;
    --text-secondary: #4B5257;
    --text-muted: #767E82;
    /* Deepened from the dark-mode hues: neon volt reads as a highlighter
       on a light page, and #C6FF3C on white fails AA outright. */
    --accent: #4C7A12;
    --accent-text: #F7F9F9;
    --accent-soft: rgba(76, 122, 18, 0.10);
    --accent-border: rgba(76, 122, 18, 0.35);
    --data: #0E7FA3;
    /* Deepened as in the app: neon amber on white is unreadable as text. */
    --premium: #8A5A00;
    --premium-soft: rgba(138, 90, 0, 0.10);
    --premium-border: rgba(138, 90, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, .wordmark {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ── Header ─────────────────────────────────────────────── */
header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.wordmark {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}
/* The accent's first appearance on the homepage. The static page has two;
   the live demo adds the slider thumb and the "too easy" grade, both of
   which are making the same claim the accent is reserved for. */
.wordmark span { color: var(--accent); }
/* On the inner pages the wordmark is the way back out. */
a.wordmark { text-decoration: none; color: var(--text); }

/* The homepage's header carries in-page links beside the wordmark. */
header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-nav { display: flex; gap: 1.25rem; font-size: 0.9rem; }
.top-nav a { color: var(--text-secondary); text-decoration: none; }
.top-nav a:hover { color: var(--text); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 4.5rem 0 3.5rem; }
.hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  max-width: 34rem;
}

.hero .hero-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.hero-note a { color: var(--text-secondary); }

/* ── The prescription card ──────────────────────────────── */
/* A concrete example beats a paragraph describing one. This is the
   shape of the app's central output. */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  margin: 2.5rem 0 0;
}
.card .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 0.6rem;
}
.card .exercise {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}
/* Tabular figures — weights and reps are meant to be trusted at a glance. */
.card .prescription {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  /* The accent's second appearance, and the last one on the page as it
     renders without JavaScript: a recommendation is exactly the "earned,
     not hyped" moment it is reserved for. */
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.card .why {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ── Sections ───────────────────────────────────────────── */
section { padding: 3rem 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: 0; }

h2 {
  font-size: clamp(1.6rem, 4.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

/* The small label over each section's heading — the same device as the
   store panels' "EVERY SESSION" line, so the site and the listing read as
   one thing. Muted rather than volt: the accent is spent elsewhere. */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
}

/* A one-line claim that should land before the paragraph explaining it. */
.statement {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lead { color: var(--text-secondary); }

ul { padding-left: 1.15rem; margin: 0 0 1rem; }
li { margin-bottom: 0.55rem; color: var(--text-secondary); }
li strong { color: var(--text); font-weight: 600; }
li:last-child { margin-bottom: 0; }

a {
  color: var(--text);
  text-decoration-color: var(--accent-border);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--accent); }

/* ── Support ────────────────────────────────────────────── */
.support {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}
.support .lead { margin-bottom: 0.75rem; }
.support-note { font-size: 0.9rem; color: var(--text-secondary); margin: 0.75rem 0 0; }
.email {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.95rem;
  word-break: break-all;
}

/* ── Prose pages (the policy) ───────────────────────────── */
/* The policy arrived as one long run of h2/p with no section rules, and it
   reads better that way — a legal document is not a set of feature cards.
   This gives it the site's type and rhythm without the dividers. */
.prose { padding: 3rem 0 1rem; }
.prose h1 { font-size: clamp(1.7rem, 5vw, 2.2rem); font-weight: 700; margin: 0 0 0.4rem; }
.prose h2 { font-size: 1.2rem; margin: 2.25rem 0 0.75rem; }
.prose p { color: var(--text-secondary); }
.updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
footer a { color: var(--text-secondary); }
footer .footer-name { margin: 0; }
footer nav { margin-bottom: 0.75rem; display: flex; gap: 1.25rem; flex-wrap: wrap; }
/* The same handle on all three, said once at the end rather than three times.
   Marks in the link colour, not the platforms' own: they sit in a footer, and
   the accent is kept for the app. */
footer .footer-social { align-items: center; }
footer .footer-social a { display: inline-flex; align-items: center; gap: 0.4rem; }
footer .footer-social svg { height: 1.05em; width: auto; flex: none; }
footer .footer-handle { color: var(--text-muted); }

@media (max-width: 30rem) {
  body { font-size: 16px; }
  .hero { padding: 3rem 0 2.5rem; }
  section { padding: 2.25rem 0; }
}

/* ══ Additions: the live demo, the charts, the screenshots ═══════════
   Everything below follows the two palette rules the top of this file
   sets out. The accent stays a reward signal — on this page that is the
   wordmark and the prescription, and nothing new below claims it except
   the "too easy" grade, which is the one place the demo is saying the
   same thing the accent already means: you had more in you, so the load
   goes up. Data gets --data (Signal Cyan), which the palette has always
   defined and nothing used until there was a chart to draw. */

h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.75rem;
}

/* ── The live demo ──────────────────────────────────────────────── */
/* The panel is hidden until demo.js reveals it, so a JS-off visitor sees
   the static card exactly as it was rather than a set of dead inputs. */
.demo-panel {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
/* Scoped to .demo-panel, not left as a bare class: these are <p> inside
   .hero, whose own `.hero p` rule is more specific than a lone class and was
   rendering both of them at the hero's 1.15rem lead size. */
.demo-panel .demo-lede {
  font-size: 0.9rem;
  max-width: none;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.demo-sessions {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.demo-sessions li {
  display: grid;
  grid-template-columns: 1.25rem 1fr 1fr 1.6fr;
  gap: 0.5rem;
  align-items: end;
  margin: 0;
  color: inherit;
}
.sess-n {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-bottom: 0.55rem;
}

/* One field shape for every control in the demo. */
.sess-f { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.sess-f > span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 600;
}
.sess-f input[type="number"],
.sess-f select {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  width: 100%;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
}
.sess-f select {
  /* Room for the caret drawn below; kept off `background` so the surface
     token stays the single source of the fill. */
  padding-right: 1.6rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
                    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: right 0.75rem center, right 0.55rem center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.sess-f input:focus-visible,
.sess-f select:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 1px;
  border-color: var(--accent-border);
}

.demo-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.demo-days { grid-column: 1 / -1; }
.demo-days output {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-secondary);
}
.demo-days input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  margin: 0.15rem 0 0;
}

/* ── The demo's working ─────────────────────────────────────────── */
.demo-working {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.demo-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.demo-chart .trend-line { fill: none; stroke: var(--data); stroke-width: 2; stroke-linejoin: round; }
.demo-chart .dot { fill: var(--data); }
/* Hollow: a lower bound the engine inferred, not a measurement it trusts. */
.demo-chart .dot-floored { fill: var(--surface-raised); stroke: var(--data); stroke-width: 2; }
.demo-chart .basis-line {
  stroke: var(--text-muted);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.demo-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.demo-steps li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.5rem;
  margin: 0;
  color: inherit;
}
.step-in {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text-secondary);
  font-size: 0.75rem;
}
.step-out {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-align: right;
}
.step-out em { font-style: normal; font-size: 0.68rem; color: var(--text-muted); }
.step-grade {
  grid-column: 1 / -1;
  justify-self: start;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}
/* The one new place the accent is allowed: "you had more in you" is the
   same claim the accent already makes everywhere else on the page. */
.step-grade[data-grade="too_easy"] {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.demo-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 1rem 0 0;
}
.demo-facts .fact-wide { grid-column: 1 / -1; }
.demo-facts dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.demo-facts dd {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
/* Only an increase earns the accent — same rule as everywhere else. */
.trend-chip[data-trend="increase_big"],
.trend-chip[data-trend="increase_normal"] { color: var(--accent); }

.demo-panel .demo-note {
  font-size: 0.78rem;
  max-width: none;
  color: var(--text-muted);
  margin: 1rem 0 0;
  line-height: 1.55;
}

/* ── Standalone charts (the layoff curve) ───────────────────────── */
.chart {
  margin: 1.5rem 0 0;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.chart svg { display: block; width: 100%; height: auto; }
.chart .grid line { stroke: var(--border); stroke-width: 1; }
.chart .curve {
  fill: none;
  stroke: var(--data);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart .pt { fill: var(--data); }
.chart text {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  fill: var(--text-muted);
}
.chart .axis-y text { text-anchor: end; }
.chart figcaption {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.6;
}

/* ── Screenshots ────────────────────────────────────────────────── */
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.shots figure { margin: 0; }
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.shots figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* ── Feature insets ─────────────────────────────────────────────── */
.insets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.inset {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
}
.inset-h { font-weight: 600; margin: 0 0 0.6rem; }
.inset-b { font-size: 0.88rem; color: var(--text-secondary); margin: 0 0 0.75rem; }
.inset-b:last-child { margin-bottom: 0; }
.inset-quiet { font-size: 0.82rem; color: var(--text-muted); font-style: italic; }
.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.grid-list { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.grid-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.4rem 0;
  border-top: 1px solid var(--border);
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.grid-list li:first-child { border-top: 0; }
.grid-list .out { color: var(--text); font-size: 0.95rem; min-width: 2.75rem; text-align: right; }

/* A pin stack, last pin marked — the ceiling the prescription stops at. */
.stack { display: flex; gap: 3px; margin: 0 0 0.75rem; }
.stack span {
  flex: 1;
  height: 1.5rem;
  border-radius: 3px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
}
.stack .pin-last {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

/* ── LiftMax Pro ────────────────────────────────────────────────── */
/* Pro gets --premium, the app's own amber for everything Pro (the lock
   cards, the paywall), so the site and the app mark it the same way. Not
   the accent: that is the reward signal (see the top of this file), and a
   product being on sale is not one. The panel's glow is the store panels'
   volt glow, recoloured to match. */
.pro-panel {
  position: relative;
  overflow: hidden;
  padding: 2.25rem 1.75rem 2rem;
  margin: 0 0 1.25rem;
  border: 1px solid var(--premium-border);
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--premium-soft), transparent 70%),
    var(--surface);
}
.eyebrow-pro { color: var(--premium); display: flex; align-items: center; gap: 0.75rem; }
.pro-tag {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--premium);
  border: 1px solid var(--premium-border);
  background: var(--premium-soft);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}
.pro .pro-title {
  font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  margin: 0 0 1rem;
  text-wrap: balance;
}
.pro-title span { color: var(--premium); }
.pro-lede {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 34rem;
  margin: 0 0 1.5rem;
}
.pro-terms {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pro-terms li {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

.pro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.25rem;
}
.pro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
}
/* Programs (the headline) and MaxStats (the most to say) take a full row
   each; the two in-context features share the last one. */
.pro-card-wide { grid-column: 1 / -1; }
.pro-card-head {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 0 0 1rem;
}
.pro-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--premium-soft);
  border: 1px solid var(--premium-border);
}
.pro-icon svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: var(--premium);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pro .pro-h {
  font-size: 1.2rem;
  margin: 0.05rem 0 0.15rem;
}
.pro-hook { color: var(--text); font-weight: 500; margin: 0; line-height: 1.4; }
.pro-b { font-size: 0.92rem; color: var(--text-secondary); margin: 0 0 0.75rem; }
.pro-points { margin: 0; padding-left: 1.1rem; font-size: 0.92rem; }
.pro-points li { margin-bottom: 0.45rem; }
.pro-points li::marker { color: var(--premium); }
.pro-foot {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.9rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.pro-why {
  border-left: 2px solid var(--premium);
  padding: 0.25rem 0 0.25rem 1.1rem;
  margin: 1.75rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.pro-why-h { font-weight: 600; color: var(--text); margin: 0 0 0.35rem; }

.free-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
}
.free-note .free-h { margin: 0 0 1rem; font-size: 1.1rem; }
.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.5rem;
}
.checks li {
  margin: 0;
  font-size: 0.92rem;
  padding-left: 1.6rem;
  position: relative;
}
/* A drawn tick in the muted text colour: these are promises, not rewards,
   so they stay off the accent too. */
.checks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.3rem;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(-45deg);
}
.free-foot { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ── Narrow screens ─────────────────────────────────────────────── */
@media (max-width: 46rem) {
  /* Six stacked full-width phones is a lot of scrolling; a sideways strip
     keeps the set to one screen's height, with the next shot peeking in to
     say there is more. Bleeds to the screen edge, padded back to the gutter. */
  .shots {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -1.5rem;
    padding: 0 1.5rem 0.5rem;
    scroll-padding: 0 1.5rem;
  }
  .shots figure { flex: 0 0 62%; max-width: 15rem; scroll-snap-align: start; }
  .pro-grid { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .pro-panel { padding: 1.75rem 1.25rem 1.5rem; }
  .insets { grid-template-columns: 1fr; }
  .demo-working { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
  /* The three fields stop fitting on one line well before the page does. */
  .demo-sessions li {
    grid-template-columns: 1.25rem 1fr 1fr;
    grid-template-areas: "n w r" ". e e";
    gap: 0.5rem 0.5rem;
  }
  .demo-sessions .sess-n { grid-area: n; }
  .demo-sessions .sess-rir { grid-area: e; }
  .demo-opts { grid-template-columns: 1fr; }
  .demo-facts { grid-template-columns: 1fr; }
}

/* ── Store badges ───────────────────────────────────────────────────
   Apple's and Google's official artwork, self-hosted rather than
   hotlinked, as both sets of brand guidelines ask.

   Sizing is done on the artwork inside each badge, not on the files,
   because the two are drawn differently: Google's PNG bakes its required
   clear space into the canvas (a 41px inset on a 250px-tall image, so the
   badge itself is only 67.2% of the file), while Apple's SVG is the badge
   edge to edge and needs its clear space added here. Both end up 44px of
   visible badge in a 66px box, which is what keeps them on a shared
   baseline at a matching weight. If either file is ever re-downloaded,
   re-check that inset before trusting these numbers. */
.get {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}
/* No border, background or hover tint: the badges are fixed artwork that
   the guidelines forbid decorating, so the link is the badge itself. */
.store { display: block; text-decoration: none; }
.store img { display: block; width: auto; }

.store-play img { height: 66px; }

/* 11px all round is Apple's 10%-of-height clear space, and lands the
   badge at the same 66px box height as Google's padded canvas. */
.store-apple { padding: 11px; }
.store-apple img { height: 44px; }

/* The artwork carries no focus styling of its own. */
.store:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 10px;
}

/* At full size the pair measures ~340px, against 342px of content width on a
   390px phone. Two pixels of slack is not slack, so the badges step down here
   to 40px of visible badge — Apple's stated minimum height, and the floor this
   row is allowed to reach. That leaves the pair at ~300px, comfortably inside
   the gutter. If they ever need to be bigger, let the row wrap instead of
   going under 40. */
@media (max-width: 30rem) {
  .get { gap: 0.25rem; }
  .store-play img { height: 60px; }
  .store-apple { padding: 10px; }
  .store-apple img { height: 40px; }
}
