:root {
  color-scheme: dark;
  font-family:
    Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f5f5;
  background: #090909;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% -12rem, rgb(255 90 38 / 13%), transparent 34rem),
    #090909;
}

.download-panel {
  width: min(100%, 25rem);
  margin: auto;
  padding: 1.75rem 1rem 1rem;
  overflow: hidden;
  border: 1px solid #262626;
  background: rgb(10 10 10 / 82%);
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 55%);
  backdrop-filter: blur(1.5rem) saturate(120%);
  -webkit-backdrop-filter: blur(1.5rem) saturate(120%);
}

.download-header {
  padding-inline: 1.5rem;
  text-align: center;
}

h1 {
  margin: 0;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.download-header p,
.qr-section p {
  margin: 0;
  color: #737373;
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.download-header p {
  margin-block-start: 0.5rem;
  text-wrap: pretty;
}

.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-block: 1.25rem;
}

.qr-code {
  width: 12rem;
  height: 12rem;
  padding: 0.5rem;
  color: #000;
  background: #fff;
  outline: 1px solid oklch(1 0 0 / 10%);
  outline-offset: -1px;
}

.qr-code svg {
  display: block;
  width: 100%;
  height: 100%;
}

.store-links {
  display: flex;
  gap: 0.5rem;
}

.store-links a {
  min-height: 2.75rem;
  min-width: 0;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  border: 1px solid #404040;
  color: #f5f5f5;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  text-decoration: none;
  touch-action: manipulation;
  transition-property: color, background-color, border-color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
  -webkit-tap-highlight-color: rgb(255 90 38 / 16%);
}

.store-links svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.store-links a:hover {
  border-color: #737373;
  background: #171717;
}

.store-links a:active {
  transform: scale(0.96);
}

a:focus-visible {
  outline: 2px solid #ff5a26;
  outline-offset: 2px;
}

.back-link {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-start: 0.5rem;
  color: #737373;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25rem;
  text-decoration-color: #404040;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.25rem;
  touch-action: manipulation;
  transition-property: color, text-decoration-color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.back-link:hover {
  color: #e5e5e5;
  text-decoration-color: #737373;
}

@media (max-width: 39.999rem) {
  .store-links {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-links a,
  .back-link {
    transition-duration: 0s;
  }
}
