.get-app {
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding-block: max(32px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-bottom));
}

.get-app .hero {
  gap: 0;
}

.get-app .lede {
  margin-top: 12px;
}

.get-mascot {
  position: relative;
  width: clamp(166px, 53vw, 224px);
  margin-bottom: -16px;
  background: radial-gradient(closest-side, #ffbd3b36, transparent 92%);
}

.get-mascot img {
  width: 100%;
}

.get-spark {
  position: absolute;
  color: var(--star);
  line-height: 1;
  text-shadow: 0 0 14px #ffc33a;
}

.get-spark-left {
  top: 45%;
  left: 5%;
  font-size: 1rem;
}

.get-spark-right {
  top: 24%;
  right: 8%;
  font-size: .72rem;
}

.get-stores {
  --badge-height: clamp(42px, 13vw, 50px);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.get-stores a {
  position: relative;
  display: grid;
  place-items: center;
  height: var(--badge-height);
  min-height: 44px;
  border-radius: 8px;
}

.get-stores [data-store="apple"] {
  width: calc(var(--badge-height) * 119.664 / 40);
}

.get-stores [data-store="apple"] img {
  width: 100%;
}

.get-stores [data-store="android"] {
  width: calc(var(--badge-height) * 564 / 168);
}

/* Match the visible badge heights while preserving Google's transparent border. */
.get-stores [data-store="android"] img {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: calc(var(--badge-height) * 646 / 168);
  max-width: none;
  pointer-events: none;
}

.get-stores a:hover {
  outline: 2px solid var(--night-ink);
  outline-offset: 3px;
}

.get-app .get-browser {
  margin-top: 18px;
  color: var(--night-muted);
}

/* A computer can't install the app: it shows the code their tablet or phone scans. */
.get-scan {
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  text-align: left;
}

.get-scan .send-qr,
.get-scan .send-qr svg {
  width: 96px;
  height: 96px;
}

.get-scan p {
  max-width: 13rem;
  color: var(--night-muted);
  font-size: .95rem;
}

@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .get-scan.get-desktop { display: flex; }
  .get-browser .get-desktop { display: inline; }
}

.get-app .get-browser a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--night-ink);
}

.get-social {
  display: block;
  width: min(100%, 23rem);
  margin: 16px auto 0;
  overflow: hidden;
  border: 1px solid #c7b9f365;
  border-radius: 16px;
  background: var(--night-deep);
  color: var(--night-ink);
  text-decoration: none;
}

.get-social:hover {
  border-color: var(--night-ink);
}

.get-social-art {
  --art-height: 76px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  height: var(--art-height);
  overflow: hidden;
}

.get-social-art img {
  width: 100%;
  height: var(--art-height);
  object-fit: cover;
  object-position: center top;
}

.get-social-art img:first-child {
  object-position: center 42%;
}

.get-social-caption {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
  line-height: 1.25;
}

.get-social-caption strong,
.get-social-caption small {
  display: block;
}

.get-social-caption strong {
  font-size: .97rem;
  font-weight: 850;
}

.get-social-caption small {
  margin-top: 3px;
  color: var(--night-muted);
  font-size: .82rem;
}

.get-social-arrow {
  color: var(--night-muted);
  font-size: 1.25rem;
}

@media (max-height: 650px) {
  .get-app {
    padding-block: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-bottom));
  }
  .get-mascot { width: min(46vw, 166px); }
  .get-stores { margin-top: 20px; }
  .get-app .get-browser { margin-top: 12px; }
  .get-social { margin-top: 10px; }
  .get-social-art { --art-height: 60px; }
}

@media (prefers-reduced-motion: no-preference) {
  .get-mascot img {
    transform-origin: 50% 72%;
    animation: get-phil-hop 680ms cubic-bezier(.23, 1, .32, 1) both;
  }

  .get-spark {
    animation: get-phil-sparkle 680ms ease-out 180ms both;
  }

  .get-spark-right {
    animation-delay: 270ms;
  }
}

@keyframes get-phil-hop {
  0% { opacity: .65; transform: translateY(18px) scale(1.06, .94); }
  35% { opacity: 1; transform: translateY(-20px) scale(.96, 1.04); }
  72% { transform: translateY(2px) scale(1.045, .96); }
  100% { transform: none; }
}

@keyframes get-phil-sparkle {
  0% { opacity: 0; transform: scale(.55); }
  48% { opacity: 1; transform: scale(1.2); }
  100% { opacity: .7; transform: none; }
}
