:root {
  color-scheme: dark;
  --landing-ink: #eaf1ee;
  --landing-muted: #a7b7b3;
  --landing-paper: #101719;
  --landing-panel: #172123;
  --landing-panel-soft: #1d292b;
  --landing-line: rgba(202, 222, 218, 0.14);
  --landing-brand: #79b9b1;
  --landing-brand-strong: #b6ddd7;
  --landing-accent: #d78a70;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--landing-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 240px),
    var(--landing-paper);
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: -15vmax;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 12%, rgba(121, 185, 177, 0.14), transparent 28rem),
    radial-gradient(circle at 86% 82%, rgba(215, 138, 112, 0.11), transparent 30rem),
    url("./piece-it-together-mark.png") center / min(84vw, 780px) no-repeat;
  content: "";
  filter: blur(2px);
  opacity: 0.13;
}

a {
  color: inherit;
}

.download-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding:
    max(24px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
}

.download-card {
  width: min(100%, 980px);
  display: grid;
  gap: clamp(18px, 4vw, 30px);
  padding: clamp(20px, 4.5vw, 46px);
  border: 1px solid var(--landing-line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--landing-panel) 94%, transparent);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 24px);
}

.brand-mark {
  width: clamp(86px, 14vw, 126px);
  height: clamp(86px, 14vw, 126px);
  border-radius: 24%;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.brand-copy {
  display: grid;
  gap: 7px;
}

.brand-copy h1,
.brand-copy p {
  margin: 0;
}

.brand-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.15rem, 6vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.mobile-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: stretch;
}

.download-copy,
.store-panel {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--landing-line);
  border-radius: 14px;
  background: var(--landing-panel-soft);
}

.download-eyebrow,
.download-copy h2,
.download-copy p {
  margin: 0;
}

.download-eyebrow {
  color: var(--landing-brand-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.availability {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--landing-brand) 44%, var(--landing-line));
  border-radius: 999px;
  color: var(--landing-brand-strong);
  background: color-mix(in srgb, var(--landing-brand) 11%, transparent);
  font-size: 0.77rem;
  font-weight: 800;
}

.availability span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--landing-brand);
  box-shadow: 0 0 12px var(--landing-brand);
}

.download-copy h2 {
  max-width: 15ch;
  font-size: clamp(1.7rem, 4.5vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.download-lead {
  max-width: 31rem;
  font-size: clamp(0.98rem, 2.2vw, 1.12rem);
  line-height: 1.52;
}

.download-note {
  max-width: 30rem;
  color: var(--landing-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.store-panel {
  justify-items: center;
  text-align: center;
  background:
    linear-gradient(150deg, rgba(121, 185, 177, 0.09), transparent 52%),
    var(--landing-panel-soft);
}

.store-heading,
.store-note {
  margin: 0;
}

.store-heading {
  font-size: 1.08rem;
  font-weight: 850;
}

.store-note {
  color: var(--landing-muted);
  font-size: 0.78rem;
}

.download-badges {
  width: 100%;
  display: grid;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.download-badge-link {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border: 1px solid var(--landing-line);
  border-radius: 10px;
  background: #0c1112;
  line-height: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: border-color 150ms ease, filter 150ms ease, transform 150ms ease;
}

.download-badge-link:hover,
.download-badge-link:focus-visible {
  border-color: var(--landing-brand);
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.download-badge-link:focus-visible {
  outline: 2px solid var(--landing-brand);
  outline-offset: 3px;
}

.download-badge {
  display: block;
  width: auto;
  height: 48px;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  color: var(--landing-muted);
  font-size: 0.82rem;
}

.download-links a {
  text-underline-offset: 3px;
}

.download-links a:hover,
.download-links a:focus-visible {
  color: var(--landing-ink);
}

@media (max-width: 760px) {
  .mobile-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .download-page {
    align-items: start;
  }

  .download-card {
    border-radius: 16px;
  }

  .brand-lockup {
    justify-content: flex-start;
  }

  .brand-copy h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .download-copy,
  .store-panel {
    padding: 20px;
  }

  .download-badge {
    height: 45px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-badge-link {
    transition: none;
  }
}
