:root {
  --ink: #070e23;
  --foreground: #f5f9ff;
  --accent: #a3caff;
  --muted: #c0cde2;
  --light-rule: #c8d9ef;
  --light-text: #142e54;
  --light-muted: #3e5678;
  background: var(--ink);
  color: var(--foreground);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100svh;
  margin: 0;
}

main { display: grid; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
}

.brand { display: grid; place-items: center; min-height: 2.75rem; }
.brand img { display: block; width: 9rem; height: auto; }

.download-hero {
  --art-top: 2.125rem;
  --art-width: min(100vw, 60rem, max(32rem, calc((100svh - 16.75rem) * 2.15)));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--art-top) + var(--art-width) * .375) 1.25rem 1.5rem;
  text-align: center;
  background: radial-gradient(ellipse 30rem 14rem at 50% 69%, #182c55, transparent);
}

.hero-art {
  position: absolute;
  z-index: -1;
  top: var(--art-top);
  left: 50%;
  width: var(--art-width);
  padding-top: calc(var(--art-width) * .06);
  transform: translateX(-50%);
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent),
    linear-gradient(180deg, transparent, #000 7%, #000 38%, rgb(0 0 0 / 16%) 67%, transparent 92%);
  mask-composite: intersect;
}

.hero-user-type {
  position: absolute;
  z-index: 1;
  inset: 0;
  color: #6387bf;
  font-size: calc(var(--art-width) * .162);
  font-weight: 800;
  line-height: .93;
  letter-spacing: -.055em;
  white-space: nowrap;
  pointer-events: none;
  /* Follow the top edges of the five phones in the fixed 2:1 artwork. */
  clip-path: polygon(
    0 -12%, 100% -12%, 100% 35%, 95% 35%, 94.3% 30%, 93% 28.5%, 91.5% 27.7%,
    81.7% 29.3%, 79% 31%, 78.6% 25.8%, 77.5% 23.5%, 76% 22.4%,
    63.8% 21.7%, 61.5% 23.2%, 60.9% 18.4%, 59.4% 15.8%, 58% 14.7%,
    42.3% 14.7%, 40.8% 15.4%, 39.7% 16.7%, 38.8% 18.6%, 38.3% 22.8%,
    36.4% 21.7%, 24% 22.4%, 22.5% 23.7%, 21.4% 25.8%, 20.9% 31%,
    18.3% 29.4%, 8.5% 27.7%, 7% 28.3%, 5.6% 30%, 4.5% 35%, 0 35%
  );
}

.hero-user-digits {
  position: relative;
  display: inline-block;
}

.hero-user-label {
  position: absolute;
  inset-inline: 0;
  bottom: calc(100% - min(1vw, .875rem));
  font-size: clamp(.6875rem, 1.45vw, 1.25rem);
  line-height: 1;
  letter-spacing: normal;
  text-align-last: justify;
  white-space: normal;
}

.hero-copy { max-width: 59rem; margin-inline: auto; }

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.125rem, calc(var(--art-width) * .066), 3.875rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.hero-copy h1 span { color: var(--accent); }

.hero-intro {
  max-width: 31rem;
  margin: .75rem auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  text-wrap: balance;
}

.store-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  width: min(100%, 23rem);
  margin: 1.25rem auto 0;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 3.5rem;
  padding: .65rem .9rem;
  border: 1px solid var(--light-rule);
  border-radius: .875rem;
  background: #edf5ff;
  color: var(--light-text);
  text-align: left;
}

.store-link:hover {
  border-color: #88b4f2;
  background: #dbeaff;
}

.store-link:focus-visible { outline-color: var(--accent); }
.store-link svg { width: 1.5rem; height: 1.5rem; flex: none; }
.store-link-copy { display: grid; gap: .2rem; }
.store-link-name { font-size: 1rem; font-weight: 700; line-height: 1.15; }
.store-link-platform { color: var(--light-muted); font-size: .75rem; line-height: 1.2; }

.user-count {
  margin: .75rem 0 0;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
  text-wrap: balance;
}

.hero-intro strong,
.user-count strong { color: var(--foreground); font-weight: 650; }

@media (max-width: 44rem) {
  .site-header { min-height: 3.75rem; }
  .brand img { width: 8.75rem; }

  .download-hero {
    --art-top: 2.625rem;
    --art-width: min(106vw, calc(90vw + 4.4rem));
    padding: calc(7.25rem + 27vw) 1.25rem 2.75rem;
    background: radial-gradient(ellipse 18rem 9rem at 50% 65%, #172a50, transparent);
  }

  .hero-copy h1 { font-size: clamp(1.75rem, 8.3vw, 3.25rem); }
  .hero-intro {
    max-width: 25rem;
    font-size: clamp(.875rem, 3.65vw, .9375rem);
  }

  .store-links { gap: .625rem; width: min(100%, 22rem); }
  .store-link { gap: .5rem; padding-inline: .5rem; }
  .store-link svg { width: 1.25rem; height: 1.25rem; }
  .store-link-name { font-size: .875rem; }
}

@media (max-width: 19rem) {
  .store-links { grid-template-columns: 1fr; max-width: 16rem; }
}
