/* The app's own tokens, from `design/00-foundations.html` in the Redhead tree:
   same palette, same shape ladder, same Inter. */

@font-face {
  font-family: Inter;
  src: url(fonts/Inter-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url(fonts/Inter-600.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url(fonts/Inter-800.woff2) format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --primary: #F26A6E;
  --on-primary: #4A0E12;
  --primary-container: #8E2B30;
  --bg: #1C1517;
  --on-surface: #F5F1EA;
  --on-surface-variant: #C6B7B4;
  --sc-low: #231A1C;
  --sc: #2A1F21;
  --outline-variant: #4A3B3C;
  --body: #E3DCD6;

  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 9999px;
}

* { box-sizing: border-box }

body {
  margin: 0;
  background: var(--bg);
  color: var(--on-surface);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { margin: 0 }
p { margin: 12px 0 }
a { color: var(--primary) }
b, strong { font-weight: 600 }

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  text-align: center;
}

.mark {
  border-radius: var(--r-lg);
  margin-bottom: 20px;
}

h1 {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.4px;
}

h1 .dot { color: var(--primary) }

.lede {
  font-size: 20px;
  color: var(--on-surface-variant);
  max-width: 34ch;
  margin: 10px auto 0;
}

.get { margin-top: 34px }

.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: var(--r-full);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.btn.fill {
  background: var(--primary);
  color: var(--on-primary);
}

.btn.fill:hover { background: #FF8085 }

/* A desktop visitor cannot install an APK from the machine they are reading on, so
   the button is the phone's and the QR is the desktop's. */
.btn { display: none }

.qr { margin: 0 }

.qr img {
  display: block;
  width: 196px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--r-md);
}

.qr figcaption {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-variant);
  margin-top: 12px;
}

.fine {
  font-size: 14px;
  color: var(--on-surface-variant);
  max-width: 46ch;
  margin: 16px auto 0;
}

/* ── sections ─────────────────────────────────────────────────────────── */

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

section {
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--outline-variant);
}

h2 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.6px;
  margin-bottom: 4px;
}

section p, li { color: var(--body) }

li { margin: 7px 0 }

.ticks {
  list-style: none;
  padding: 0;
}

.ticks li {
  position: relative;
  padding-left: 26px;
}

/* The tick is decoration, so it stays out of the text flow a reader copies. */
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: var(--r-full);
  background: var(--primary-container);
}

.split {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: start;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--outline-variant);
}

.shot { margin: 8px 0 0 }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.card {
  display: block;
  background: var(--sc-low);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 18px 20px;
  text-decoration: none;
}

.card:hover {
  background: var(--sc);
  border-color: var(--outline-variant);
}

.card .name {
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.card .cap {
  display: block;
  font-size: 14px;
  color: var(--on-surface-variant);
}

@media (max-width: 720px) {
  .btn { display: inline-block }
  .qr, .desktop-only { display: none }
  .hero { padding: 48px 20px 40px }
  h1 { font-size: 42px; letter-spacing: -1px }
  .lede { font-size: 18px }
  h2 { font-size: 25px }
  main { padding: 0 20px }
  .split { grid-template-columns: 1fr }
  .shot { max-width: 260px; margin-left: auto; margin-right: auto }
}
