:root {
  --ink: #181818;
  --muted: #7a7772;
  --paper: #f6f5f2;
  --red: #a50022;
}

* { box-sizing: border-box; }

body {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 32px 20px;
  place-items: center;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0, rgba(165, 0, 34, .08), transparent 40%),
    var(--paper);
  font-family: Inter, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.download-card {
  width: min(100%, 460px);
  padding: 56px 42px 42px;
  border: 1px solid rgba(24, 24, 24, .08);
  border-radius: 28px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 70px rgba(35, 20, 22, .09);
  text-align: center;
}

.app-icon {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 26px;
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(74, 0, 14, .16);
}

h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.version {
  margin: 12px 0 34px;
  color: var(--muted);
  font-size: 14px;
}

.platform-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.platform-links[hidden], .primary-download[hidden] { display: none; }

.store-link, .primary-download {
  min-height: 64px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.store-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 18px;
  text-align: left;
}

.store-link span { margin-bottom: 4px; color: rgba(255,255,255,.62); font-size: 10px; }
.store-link strong { font-size: 14px; }

.primary-download {
  display: flex;
  width: 100%;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
}

.store-link:hover, .primary-download:hover {
  background: var(--red);
  box-shadow: 0 12px 24px rgba(165, 0, 34, .2);
  transform: translateY(-2px);
}

.store-link:focus-visible, .primary-download:focus-visible {
  outline: 3px solid rgba(165, 0, 34, .25);
  outline-offset: 4px;
}

.device-hint, .noscript-tip {
  margin: 14px 0 0;
  color: #99958f;
  font-size: 11px;
}

.noscript-tip { color: var(--red); }

@media (max-width: 480px) {
  body { padding: 18px; }
  .download-card { padding: 45px 24px 32px; border-radius: 22px; }
  .app-icon { width: 96px; height: 96px; border-radius: 21px; }
  h1 { font-size: 32px; }
  .platform-links { grid-template-columns: 1fr; }
  .store-link { align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
