.download-page {
  background: #080b11;
  color: #edf1f7;
}

.download-page .site-header {
  background: rgba(8, 11, 17, .94);
}

.download-hero {
  padding: clamp(7.25rem, 11vw, 8.5rem) 0 clamp(2.8rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(105deg, #080b11, #101722);
}

.download-hero-inner {
  max-width: 52rem;
}

.download-hero h1 {
  margin: .4rem 0 1rem;
  font-size: clamp(2.65rem, 6vw, 4.2rem);
  line-height: .98;
}

.download-hero .lead {
  max-width: 47rem;
  margin: 0;
  color: #bec6d2;
  line-height: 1.7;
}

.download-section {
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10.5rem;
  min-width: 0;
  min-height: 21rem;
  border: 1px solid rgba(255, 255, 255, .1);
  background: #0e131c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
  overflow: hidden;
}

.download-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

.download-store-heading {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.download-platform-mark {
  display: grid;
  place-items: center;
  flex: 0 0 4rem;
  width: 4rem;
  height: 4rem;
  padding: .65rem;
  background: #171e29;
}

.download-platform-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.download-store-heading h2 {
  margin: .2rem 0 0;
  font-size: clamp(1.85rem, 2.5vw, 2.1rem);
  line-height: 1.08;
  white-space: nowrap;
}

.download-card-body > p {
  max-width: 34rem;
  margin: 1.55rem 0 0;
  color: #aeb7c5;
  line-height: 1.7;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: auto;
  padding-top: 2rem;
}

.download-actions .button {
  min-height: 3rem;
}

.download-qr {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: .75rem;
  border-left: 1px solid rgba(255, 255, 255, .08);
  background: #0a0e15;
  text-align: center;
}

.download-qr canvas {
  display: block;
  width: 150px;
  height: auto;
  aspect-ratio: 1;
  max-width: 100%;
  background: #fff;
  border: 8px solid #fff;
}

.download-qr p,
.download-trust,
.download-message {
  margin: 0;
}

.download-qr strong,
.download-qr small {
  display: block;
}

.download-qr small {
  margin-top: .25rem;
  color: #8e98a7;
  line-height: 1.45;
}

.download-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-top: 1.6rem;
  color: #9fa8b6;
  font-size: .82rem;
  line-height: 1.5;
  text-align: center;
}

.download-trust > span {
  display: grid;
  place-items: center;
  flex: 0 0 1.45rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: rgba(114, 199, 153, .12);
  color: #8bd5ac;
  font-weight: 800;
}

.download-message {
  min-height: 1.4rem;
  padding-top: .7rem;
  color: #8bd5ac;
  text-align: center;
}

.download-message.is-error {
  color: #ef9d91;
}

@media (min-width: 1081px) {
  .download-actions {
    display: grid;
  }

  .download-actions > * {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 1080px) {
  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-card {
    grid-template-columns: minmax(0, 1fr) 13rem;
    min-height: 19rem;
  }

  .download-qr {
    padding: 1.35rem;
  }
}

@media (min-width: 681px) {
  .download-hero h1 {
    white-space: nowrap;
  }
}

@media (max-width: 680px) {
  .download-hero {
    padding-top: 7.5rem;
  }

  .download-card {
    grid-template-columns: 1fr;
  }

  .download-actions {
    display: grid;
  }

  .download-actions > * {
    width: 100%;
    text-align: center;
  }

  .download-qr {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-left: 0;
    text-align: left;
  }

  .download-qr canvas {
    width: 136px;
    height: 136px;
  }
}

@media (max-width: 420px) {
  .download-card-body,
  .download-qr {
    padding: 1.25rem;
  }

  .download-qr {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-page * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

:root[data-theme="light"] .download-page {
  color: var(--text);
}

:root[data-theme="light"] .download-hero {
  border-bottom-color: rgba(35, 49, 66, .12);
  background: linear-gradient(100deg, #fcf9f1 0%, #f8f4eb 57%, #efe9dd 100%);
}

:root[data-theme="light"] .download-hero h1,
:root[data-theme="light"] .download-store-heading h2,
:root[data-theme="light"] .download-qr strong {
  color: #222d3c;
}

:root[data-theme="light"] .download-hero .lead,
:root[data-theme="light"] .download-card-body > p {
  color: #536074;
}

:root[data-theme="light"] .download-card {
  color: #222d3c;
  border-color: rgba(35, 49, 66, .14);
  background: rgba(255, 253, 248, .97);
  box-shadow: 0 22px 54px rgba(45, 55, 68, .13);
}

:root[data-theme="light"] .download-platform-mark {
  border: 1px solid rgba(151, 105, 24, .14);
  background: #f1eadc;
}

:root[data-theme="light"] .download-qr {
  border-left-color: rgba(35, 49, 66, .11);
  background: #f5efe3;
}

:root[data-theme="light"] .download-qr small,
:root[data-theme="light"] .download-trust {
  color: #697587;
}

:root[data-theme="light"] .download-message {
  color: #2f7552;
}

:root[data-theme="light"] .download-message.is-error {
  color: #a13f35;
}

@media (max-width: 680px) {
  :root[data-theme="light"] .download-qr {
    border-top-color: rgba(35, 49, 66, .11);
    border-left: 0;
  }
}
