:root {
  color-scheme: dark;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --brand: #00c7af;
  --brand-dark: #009f8c;
  --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 {
  overflow: hidden;
  width: 100%;
  max-width: 750px;
  height: 66.6667vw;
  max-height: 500px;
  margin: 0 auto;
  border-radius: 0 0 28px 28px;
  background: var(--page);
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
}

.downloads {
  display: flex;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 36px 20px max(32px, env(safe-area-inset-bottom));
  align-items: center;
  flex-direction: column;
}

.downloads h1 {
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.store-list {
  display: grid;
  width: 100%;
  max-width: 360px;
  gap: 16px;
}

.store-button {
  display: grid;
  width: 100%;
  min-height: 54px;
  grid-template-columns: 24px 92px;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 8px;
  background: var(--brand);
  box-shadow: 0 8px 24px rgb(0 97 85 / 12%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease;
}

.store-button:hover {
  filter: brightness(1.05);
  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 img {
  display: block;
  width: 24px;
  height: 24px;
}

.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);
}

.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, #19d8c2, var(--brand-dark));
  box-shadow: 0 10px 28px rgb(0 199 175 / 28%);
  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.05);
}

.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 {
    border-radius: 0 0 22px 22px;
  }

  .downloads {
    padding-top: 30px;
  }
}

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