:root {
  --paper: #F2F5F0;
  --ink: #0B2A4A;
  --muted: #4B5D70;
  --brand: #0F4E8C;
  --accent: #8DC541;
  --brand-ink: #FFFFFF;
  --line: #D3DCD2;
  --card: #FFFFFF;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0B1A2B;
    --ink: #EAF0F6;
    --muted: #A3B2C2;
    --brand: #8DC541;
  --accent: #8DC541;
    --brand-ink: #071426;
    --line: #22364D;
    --card: #13263C;
        color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Helvetica Neue", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 24px;
}

header .wordmark { display: inline-block; }
header .wordmark img { display: block; height: 30px; width: auto; }

main {
  flex: 1;
  display: flex;
  align-items: center;
}
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 48px;
}

.app-icon {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 0 28px;
  filter: drop-shadow(0 10px 18px rgba(14, 32, 54, 0.18));
}

h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  max-width: 11ch;
}
.lede {
  color: var(--muted);
  font-size: 1.1875rem;
  max-width: 34ch;
  margin: 0 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:focus-visible, .text-btn:focus-visible, .web-link:focus-visible, .stores a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* Mobile panel */
.mobile { display: none; flex-direction: column; gap: 12px; max-width: 360px; }
.status {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.bar {
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
}
.bar.running span { animation: drain var(--delay, 2000ms) linear forwards; }
@keyframes drain { to { transform: scaleX(0); } }
.text-btn {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Desktop panel */
.desktop { display: none; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
/* Replace these two links' text with Apple's and Google's official badge images */
.stores a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
}
.web-link { color: var(--ink); text-underline-offset: 3px; }

.qr-card {
  display: none;
  justify-self: end;
  width: 300px;
  padding: 28px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -28px rgba(14, 32, 54, 0.28);
  text-align: center;
}
#qr { min-width: 220px; min-height: 220px; margin: 0 auto 20px; padding: 12px; background: #FFFFFF; border-radius: 12px; width: max-content; }
#qr svg { display: block; width: 196px; height: 196px; }
#qr svg path, #qr svg rect[fill="black"] { fill: #0F4E8C; }
.qr-title { margin: 0 0 4px; font-weight: 700; }
.qr-caption { margin: 0; color: var(--muted); font-size: 0.9375rem; }

footer { color: var(--muted); font-size: 0.875rem; }
footer a { color: inherit; }

/* Platform switching */
body[data-platform="ios"] .mobile,
body[data-platform="android"] .mobile { display: flex; }
body[data-platform="desktop"] .desktop { display: block; }

@media (min-width: 860px) {
  body[data-platform="desktop"] .hero { grid-template-columns: 1.15fr 0.85fr; }
  body[data-platform="desktop"] .qr-card { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .bar.running span { animation: none; }
}
