:root {
  --ink: #12263a;
  --muted: #4a5d70;
  --brand: #0b6e99;
  --brand-dark: #08547a;
  --bg: #f6f9fb;
  --card: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.logo { font-weight: 800; font-size: 1.4rem; color: var(--brand); text-decoration: none; }
.hero { padding-top: 48px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 16px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.cta {
  display: inline-block; padding: 14px 22px; border-radius: 10px;
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 600;
}
.cta:hover { background: var(--brand-dark); }
.cta.small { padding: 8px 16px; font-size: 0.95rem; }

/* The official store badges, unaltered (the Play PNG only lost its transparent margin). Apple and
   Google both require every store badge in a row to be the same height; App Store goes first. */
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badges a { display: inline-block; line-height: 0; border-radius: 8px; }
.badges img { height: 44px; }

/* Home page: the pitch beside the download card on a computer, stacked on a phone. */
.hero-split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .hero-split { grid-template-columns: 1fr 340px; gap: 48px; } }
.download-card {
  background: var(--card); border-radius: 16px; padding: 24px 18px; text-align: center;
  box-shadow: 0 2px 10px rgba(18, 38, 58, 0.1); max-width: 340px;
}
.download-card h2 { font-size: 1.25rem; margin: 0 0 6px; }
.download-card .muted { margin: 0 0 14px; font-size: 0.95rem; }
.download-card .badges { justify-content: center; margin-top: 18px; }
/* The QR code SVG carries its own white border, which scanners need; never crop it. */
.qr { display: block; width: 180px; height: 180px; margin: 0 auto; }
/* Phones and tablets get no QR code on the home page (nobody can scan their own screen). The class is
   set in the page's <head>, before anything is drawn, so the page doesn't jump when the code goes. */
.phone #qr-block { display: none; }
.qr-url { margin: 6px 0 0; font-size: 0.9rem; color: var(--muted); }
.download-page { text-align: center; }
.download-page .lead { margin: 0 auto 24px; }
.download-page .download-card { margin: 0 auto; }
.grid {
  display: grid; gap: 16px; padding-bottom: 56px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid article { background: var(--card); border-radius: 14px; padding: 20px 22px; box-shadow: 0 1px 3px rgba(18, 38, 58, 0.08); }
.grid h2 { font-size: 1.1rem; margin: 0 0 6px; }
.grid p { margin: 0; color: var(--muted); }
.about { padding-bottom: 48px; max-width: 720px; }
.about h2 { font-size: 1.3rem; margin: 0 0 8px; }
.about p { color: var(--muted); margin: 0 0 8px; }
.about a { color: var(--brand); }
.foot {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  padding-top: 24px; padding-bottom: 40px; border-top: 1px solid #dde5ec; color: var(--muted);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--muted); }

/* The pages hide and show elements with the hidden attribute (the join page's store badges and
   invite code); the display of .cta and .badges a would beat it. */
[hidden] { display: none !important; }
button.cta { border: 0; font: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.join h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
.join .lead { margin: 0 0 4px; }
.invite-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(2.2rem, 10vw, 3.2rem); font-weight: 800; letter-spacing: 0.18em;
  margin: 0 0 12px; -webkit-user-select: all; user-select: all;
}
.steps { color: var(--muted); padding-left: 1.3em; max-width: 640px; }
.steps li { margin: 4px 0; }
.open-app { margin-top: 24px; color: var(--muted); }
.open-app a { color: var(--brand); }
