:root {
  --amber: #FFC83D;
  --ink: #0B0B0C;
  --bg: #FFFFFF;
  --surface: #F2F2F4;
  --text: #0B0B0C;
  --muted: #66696F;
  --border: #D9DADF;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0B0B0C; --surface: #1C1C1F; --text: #FFFFFF; --muted: #A6A9B0; --border: #33353B; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: inherit; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
/* Header and footer span the whole window; only the reading column is capped at 720px. */
header.top .wrap, footer.bottom .wrap { max-width: none; padding-left: 24px; padding-right: 24px; }
header.top { border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; letter-spacing: 3px; }
/* The mark is the in-app trophy (assets/images/trophy-*.png): white F on dark grounds, ink F on light — the <picture> picks by theme. */
.brand img { width: 32px; height: 32px; display: block; }
nav.links { display: flex; gap: 14px; font-size: 14px; color: var(--muted); flex-wrap: wrap; justify-content: flex-end; }
nav.links a { text-decoration: none; }
nav.links a:hover, nav.links a[aria-current] { color: var(--text); }
/* A phone (390 px): four links do not fit beside the mark (seen on the developer's iPhone, 2026-10-13), so the header
   keeps all four behind a menu button — a checkbox and its label, no JavaScript. Open, the links come down as a full-width
   panel under the header, one per row, and the button turns into a cross. Desktop never sees the button. */
.menu-toggle, .menu-button { display: none; }
@media (max-width: 480px) {
  header.top { position: relative; }
  .menu-button { display: block; font-size: 22px; line-height: 1; padding: 8px 2px; color: var(--muted); cursor: pointer; min-width: 28px; text-align: right; }
  .menu-button .close, .menu-toggle:checked ~ .menu-button .open { display: none; }
  .menu-toggle:checked ~ .menu-button .close { display: inline; }
  .menu-toggle:checked ~ .menu-button { color: var(--text); }
  nav.links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 6px 0 10px; background: var(--bg); border-bottom: 1px solid var(--border); z-index: 10; font-size: 16px; }
  nav.links a { padding: 12px 24px; color: var(--text); }
  .menu-toggle:checked ~ nav.links { display: flex; }
}
main { flex: 1; padding: 36px 0 64px; }
/* The front page is short: its hero sits in the middle of the window and the footer at the bottom, instead of the
   footer following the hero with a hole beneath it (the developer's iPhone, 2026-10-13). Text pages flow as before. */
main:has(.hero) { display: flex; flex-direction: column; justify-content: center; }
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 20px; margin: 36px 0 10px; }
h3 { font-size: 16px; margin: 22px 0 6px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.draft {
  display: inline-block; margin-left: 10px; padding: 2px 8px; border-radius: 999px;
  background: var(--amber); color: var(--ink); font-size: 12px; font-weight: 800; vertical-align: middle;
}
.card { background: var(--surface); border-radius: 14px; padding: 16px 18px; margin: 16px 0; }
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
ol, ul { padding-left: 22px; }
li + li { margin-top: 4px; }
.btn {
  display: inline-block; background: var(--amber); color: var(--ink); text-decoration: none;
  font-weight: 800; padding: 12px 20px; border-radius: 12px;
}
footer.bottom { border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
footer.bottom .wrap { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
footer.bottom a { text-decoration: none; }
/* A phone: the footer reads as two centred lines — the links, then who operates it — with room to breathe. */
@media (max-width: 480px) {
  footer.bottom .wrap { flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 24px; padding-bottom: 28px; }
  footer.bottom .wrap span:first-child { order: 2; }
  footer.bottom .wrap span:last-child { order: 1; line-height: 1.9; }
}
.hero { text-align: center; padding: 48px 0 24px; }
.hero img { width: 120px; height: 120px; display: block; margin: 0 auto; }
.hero h1 { font-size: 40px; margin-top: 18px; font-weight: 900; letter-spacing: 4px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 480px; margin: 8px auto 0; }
/* The slogan: the same words and weight as under the wordmark of the app's sign-in screen (components/brand-lines.tsx). */
.hero p.slogan { color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: 0.5px; margin-top: 4px; }
/* The three doors under the slogan: the stores' official badges (black in both themes, as they are designed; 48px is above
   the 40px minimum both brands ask for) and the web app as our amber button. A row on a desk, a stack on a phone. */
.doors { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; }
.doors .badge { display: block; line-height: 0; }
.doors .badge img { height: 48px; width: auto; display: block; }
/* Google ships its badge inside transparent padding (646x250 around a 564x168 mark): scale so the MARK is 48px and pull
   the padding back with negative margins, so it sits flush with Apple's. */
.doors .badge.play img { height: 71px; margin: -11.5px -11.5px; }
.doors .btn { min-width: 200px; text-align: center; }
