:root {
  color-scheme: dark;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --brand: #7b87f2;
  --page: #1b1f1e;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  background: var(--page);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

.download-page {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--page);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--page);
}

.hero__image {
  display: block;
  width: 100%;
  max-height: 400px;
}

.downloads {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1600px;
  margin: -32px auto 0;
  padding: 0 20px max(32px, env(safe-area-inset-bottom));
}

.downloads h1 {
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  letter-spacing: -0.32px;
}

.store-list {
  display: grid;
  gap: 16px;
}

.store-button {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 8px;
  background: var(--brand);
  box-shadow: 0 8px 24px rgb(31 36 88 / 12%);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
}

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

.store-button:active {
  transform: translateY(1px);
}

.store-button:focus-visible,
.upgrade-modal__action:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.store-button__icon {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  flex: 0 0 auto;
  fill: #f5f5f4;
}

.store-button span {
  width: 106px;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgb(8 10 12 / 68%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 1;
  transition: opacity 180ms ease;
}

.modal-backdrop[hidden] {
  display: none;
}

.upgrade-modal {
  width: min(100%, 360px);
  padding: 30px 24px 24px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 20px;
  background: linear-gradient(165deg, #30343d 0%, #202328 100%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 45%);
  text-align: center;
  animation: modal-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.upgrade-modal__badge {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, #8f9aff, #6976e5);
  box-shadow: 0 10px 28px rgb(101 116 229 / 35%);
  place-items: center;
}

.upgrade-modal__badge svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.upgrade-modal h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.upgrade-modal p {
  margin: 12px 0 24px;
  color: rgb(255 255 255 / 72%);
  font-size: 15px;
  line-height: 1.7;
}

.upgrade-modal__action {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  transition: filter 160ms ease, transform 160ms ease;
}

.upgrade-modal__action:hover {
  filter: brightness(1.06);
}

.upgrade-modal__action:active {
  transform: scale(0.99);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}

@media (max-width: 600px) {
  .hero__image {
    min-height: 230px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
