.download-hero {
  background: var(--canvas, #faf8f3);
  border-bottom: 1px solid var(--border, #d7dee8);
  padding: 72px 0 80px;
}

.download-layout {
  align-items: center;
  display: grid;
  gap: clamp(48px, 8vw, 120px);
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
}

.download-copy {
  max-width: 620px;
}

.download-copy h1 {
  color: var(--ink, #111827);
  font: 800 clamp(40px, 5vw, 64px) / 1.0625 'Plus Jakarta Sans', system-ui,
    sans-serif;
  letter-spacing: -0.025em;
  margin: 0;
}

.download-copy .lead {
  color: var(--ink, #111827);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  margin: 20px 0 0;
}

.store-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
}

.store-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  justify-content: center;
  min-height: 64px;
  padding: 0;
  transition: opacity 150ms ease;
}

.store-link:first-child {
  width: 186px;
}
.store-link:last-child {
  width: 186px;
}

.store-link img {
  display: block;
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
}

.store-link:last-child img {
  height: auto;
  max-height: none;
  max-width: none;
  width: 214px;
}

.store-link:hover {
  opacity: 0.85;
}

.store-link:focus-visible,
.qr-link:focus-visible {
  outline: 3px solid var(--primary, #2563eb);
  outline-offset: 4px;
}

.download-art {
  display: flex;
  justify-content: center;
}

.app-icon-wrap {
  align-items: center;
  background: var(--sky, #eaf2ff);
  border: 2px solid var(--ink, #111827);
  border-radius: 42% 58% 51% 49% / 46% 48% 52% 54%;
  display: flex;
  height: min(29vw, 390px);
  justify-content: center;
  min-height: 280px;
  min-width: 280px;
  padding: 32px;
  position: relative;
  width: min(29vw, 390px);
}

.app-icon-wrap::before,
.app-icon-wrap::after {
  background: var(--butter, #fcd34d);
  border: 2px solid var(--ink, #111827);
  border-radius: 999px;
  content: '';
  height: 18px;
  position: absolute;
  width: 18px;
}

.app-icon-wrap::before {
  left: 8%;
  top: 16%;
}
.app-icon-wrap::after {
  bottom: 12%;
  right: 8%;
}

.app-icon-wrap img {
  background: #fff;
  border: 2px solid var(--ink, #111827);
  border-radius: 27%;
  display: block;
  height: auto;
  max-width: 250px;
  position: relative;
  width: 72%;
  z-index: 1;
}

.scan-section {
  background: var(--surface, #fff);
  padding: 64px 0;
}

.scan-layout {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 820px;
}

.scan-layout h2 {
  color: var(--ink, #111827);
  font: 700 clamp(28px, 3vw, 36px) / 1.18 'Plus Jakarta Sans', system-ui,
    sans-serif;
  letter-spacing: -0.025em;
  margin: 0;
}

.scan-layout p {
  color: var(--muted, #4b5563);
  font-size: 18px;
  line-height: 1.55;
  margin: 12px 0 0;
  max-width: 42ch;
}

.qr-link {
  background: #fff;
  border: 1px solid var(--border, #d7dee8);
  border-radius: 16px;
  display: block;
  padding: 12px;
}

.qr-link img {
  display: block;
  height: 184px;
  width: 184px;
}

@media (max-width: 899px) {
  .download-hero {
    padding: 64px 0;
  }
  .download-layout {
    gap: 48px;
    grid-template-columns: 1fr;
  }
  .app-icon-wrap {
    height: min(32vw, 300px);
    min-height: 240px;
    min-width: 240px;
    padding: 26px;
    width: min(32vw, 300px);
  }
}

@media (max-width: 680px) {
  .download-copy h1 {
    font-size: 40px;
    line-height: 44px;
  }
  .download-hero {
    padding: 48px 0 56px;
  }
  .download-layout {
    grid-template-columns: 1fr;
  }
  .download-copy {
    max-width: 540px;
  }
  .app-icon-wrap {
    height: 248px;
    min-height: 248px;
    min-width: 248px;
    width: 248px;
  }
  .store-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    max-width: 300px;
  }
  .store-link,
  .store-link:first-child,
  .store-link:last-child {
    width: 186px;
  }
  .scan-section {
    padding: 48px 0;
  }
  .scan-layout {
    gap: 28px;
    grid-template-columns: 1fr;
  }
  .qr-link {
    justify-self: start;
  }
}

@media (max-width: 360px) {
  .app-icon-wrap {
    height: 220px;
    min-height: 220px;
    min-width: 220px;
    width: 220px;
  }
  .qr-link img {
    height: min(184px, calc(100vw - 72px));
    width: min(184px, calc(100vw - 72px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-link {
    transition: none;
  }
  .store-link:hover {
    transform: none;
  }
}
