:root {
  color: #1a2a39;
  background: #ffffff;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100dvh;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.download-page {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 80px 120px;
}

.download-card {
  display: flex;
  width: min(100%, 720px);
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

h1 {
  width: min(100%, 576px);
  margin: 0;
  color: #1a2a39;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.download-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.store-links {
  display: flex;
  gap: 24px;
}

.market-link,
.website-link {
  display: flex;
  width: 140px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow:
    0 10px 20px rgba(90, 105, 130, 0.14),
    0 2px 6px rgba(90, 105, 130, 0.08);
  color: #0b1020;
  text-decoration: none;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.market-link {
  position: relative;
}

.store-logo,
.market-wordmark {
  display: block;
  position: absolute;
}

.store-logo--apple {
  top: 14px;
  left: 16px;
  width: 17.717px;
  height: 21.776px;
}

.store-logo--google {
  top: 12px;
  left: 13px;
  width: 23.09px;
  height: 25.72px;
}

.market-copy {
  position: absolute;
  top: 0;
  left: 0;
  color: #282828;
  font-family: "SF Pro Text", "SF Pro Display", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
}

.market-copy--apple {
  left: 41px;
}

.market-copy--google {
  left: 43px;
}

.market-eyebrow {
  position: absolute;
  top: 13px;
  left: 0;
}

.market-wordmark--apple {
  top: 25px;
  left: 0;
  width: 69px;
  height: 14px;
}

.market-wordmark--google {
  top: 25px;
  left: 0;
  width: 78px;
  height: 16px;
}

.website-link {
  position: relative;
  justify-content: flex-start;
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
}

.website-link img {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 22px;
  height: 22px;
}

.website-link span {
  position: absolute;
  top: 13px;
  left: 46px;
  white-space: nowrap;
}

.market-link:hover,
.website-link:hover {
  box-shadow:
    0 12px 24px rgba(90, 105, 130, 0.2),
    0 3px 8px rgba(90, 105, 130, 0.1);
  transform: translateY(-1px);
}

.market-link:focus-visible,
.website-link:focus-visible {
  outline: 3px solid rgba(119, 139, 238, 0.45);
  outline-offset: 3px;
}

.market-link:active,
.website-link:active {
  box-shadow: 0 6px 12px rgba(90, 105, 130, 0.14);
  transform: translateY(0);
}

.noscript-message {
  margin: -20px 0 0;
  color: #637184;
  font-size: 14px;
}

@media (max-width: 640px) {
  :root {
    background: #fcfcfc;
  }

  .download-page {
    padding: max(32px, env(safe-area-inset-top)) 32px
      max(32px, env(safe-area-inset-bottom));
  }

  h1 {
    font-size: 36px;
    letter-spacing: -0.015em;
  }
}

@media (max-width: 374px) {
  .download-page {
    padding-inline: 20px;
  }

  .store-links {
    gap: 12px;
  }

  .market-link,
  .website-link {
    width: 134px;
  }
}

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