/* WalkBharat download page. Same brand as the invite-links site: cobalt as the
   action colour, flat surfaces, light AND dark with a visible switch.
   The theme lives in html[data-theme] (set first by /theme.js), never in a bare
   prefers-color-scheme rule, so the switch always wins over the device.
   Contrast measured (WCAG): light ink on bg 16.5:1, muted on bg 6.3:1, white on
   action 6.6:1; dark ink on bg 15.6:1, muted on bg 7.9:1, dark ink on action 7.9:1. */
:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #15171c;
  --muted: #5b6070;
  --line: #c9cedc;
  --action: #2454c9;
  --on-action: #ffffff;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #121318;
  --card: #1c1e25;
  --ink: #eceef4;
  --muted: #a7acbb;
  --line: #3a3e4b;
  --action: #8fa9ff;
  --on-action: #0d1430;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Tamil", sans-serif;
  min-height: 100vh;
  padding: 16px 16px 48px;
}
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1120px; margin: 0 auto 48px;
  animation: rise 0.5s ease backwards;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.brand span { font-weight: 700; font-size: 18px; letter-spacing: 0.01em; }
main { width: 100%; max-width: 520px; margin: 0 auto; text-align: center; }
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 12px; font-weight: 700; animation: rise 0.5s 0.08s ease backwards; }
p { margin: 0 0 24px; color: var(--muted); animation: rise 0.5s 0.16s ease backwards; }
.stores { display: grid; gap: 16px; margin: 32px 0; animation: rise 0.5s 0.24s ease backwards; }
.button, .icon-btn {
  appearance: none; border: 0; border-radius: 999px; min-height: 56px; padding: 12px 24px;
  font: 700 18px/1.2 inherit; font-family: inherit; cursor: pointer; text-decoration: none;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 100%; max-width: 100%; text-align: center;
  transition: transform 0.15s ease, opacity 0.2s ease, background-color 0.2s ease;
}
.icon-btn {
  width: auto; min-height: 48px; min-width: 48px; padding: 8px 16px; font-size: 14px; font-weight: 500;
  background: transparent; color: var(--ink); border: 1px solid var(--line); flex: none;
}
.primary { background: var(--action); color: var(--on-action); }
.secondary { background: transparent; color: var(--action); border: 1px solid var(--line); font-weight: 500; }
.off { background: var(--card); color: var(--ink); border: 1px solid var(--line); cursor: default; }
.off small { font-weight: 500; font-size: 14px; color: var(--muted); }
.button:active, .icon-btn:active { transform: scale(0.98); }
.button:hover, .icon-btn:hover { opacity: 0.92; }
.off:hover { opacity: 1; }
.button:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
main > .button + .button { margin-top: 16px; }
.note { font-size: 14px; margin-top: 32px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.theme-easing, .theme-easing * { transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease !important; }
@media (prefers-reduced-motion: reduce) {
  .top, h1, p, .stores { animation: none; }
  .button, .icon-btn { transition: none; }
  .button:active, .icon-btn:active { transform: none; }
  .theme-easing, .theme-easing * { transition: none !important; }
}
