:root {
  color-scheme: light;
  --background: #f8f4ed;
  --surface: rgba(255, 255, 255, 0.88);
  --ink: #292929;
  --muted: #625f5b;
  --brand: #7a1fa2;
  --brand-bright: #bb42ee;
  --line: rgba(122, 31, 162, 0.16);
  --shadow: 0 28px 80px rgba(122, 31, 162, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 10% 8%, rgba(187, 66, 238, 0.15), transparent 24rem),
    radial-gradient(circle at 90% 92%, rgba(255, 243, 194, 0.82), transparent 26rem),
    var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: transparent;
  font-family: "Poppins", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
}

.download-page {
  display: grid;
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  place-items: center;
  padding: 32px 20px;
}

.download-card {
  width: min(100%, 620px);
  padding: clamp(30px, 7vw, 64px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--brand);
}

.brand-mark img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.download-copy {
  margin: clamp(38px, 8vw, 58px) 0 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  max-width: 520px;
  margin: 0 auto;
  font-size: clamp(2.55rem, 8vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.supporting {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 3vw, 1.17rem);
  line-height: 1.55;
}

.store-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-link {
  display: inline-flex;
  min-width: 196px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  outline-offset: 5px;
  transition: transform 160ms ease, filter 160ms ease;
}

.store-link:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.store-link:focus-visible {
  outline: 3px solid rgba(122, 31, 162, 0.42);
}

.store-link img {
  display: block;
  width: auto;
  height: 58px;
  max-width: 100%;
  object-fit: contain;
}

.fallback {
  max-width: 440px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

footer {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 20px 22px;
  font-size: 0.82rem;
}

footer a {
  color: var(--muted);
  text-underline-offset: 3px;
}

@media (max-width: 520px) {
  .download-page {
    min-height: calc(100svh - 74px);
    padding: 16px;
  }

  .download-card {
    padding: 30px 20px 32px;
    border-radius: 28px;
  }

  .download-copy {
    margin: 34px 0 28px;
  }

  .store-actions {
    flex-direction: column;
    gap: 10px;
  }

  .store-link,
  .store-link img {
    height: 60px;
  }

  .store-link {
    width: 220px;
  }

  footer {
    min-height: 74px;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-link {
    transition: none;
  }
}
