/* Homepage CTA card. Kept at its own asset path so production caches update immediately. */
.cta-row {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 28px;
  width: fit-content;
  margin-top: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-copy h1 span + span {
  margin-top: 24px;
}

.phone {
  box-shadow: none;
}

.home-crowd {
  transform: translateX(-50%);
  clip-path: none;
}

.cta-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}

.desktop-scan-note {
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  color: var(--text);
  font-family: "Honk", "Space Mono", monospace;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-store-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  align-self: center;
  margin-bottom: 0;
  padding: 22px 22px 19px;
  border: 2px solid #111111;
  border-radius: 6px;
  background: #6bcf98;
  box-shadow: 6px 6px 0 #111111;
}

.app-store-qr {
  width: 190px;
  height: 190px;
  padding: 8px;
  border-radius: 5px;
  background: #ffffff;
}

.audio-player {
  width: auto;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.audio-sample {
  display: flex;
  align-self: center;
  min-height: 0;
  margin: 0;
}

.audio-play {
  width: 74px;
  height: 68px;
  margin-left: 0;
  padding: 0;
  border: 2px solid #111111;
  border-radius: 5px;
  background: #f4df54;
  box-shadow: 6px 6px 0 #111111;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.audio-play:hover {
  opacity: 1;
  background: #f7e979;
  transform: translate(1px, 1px);
  box-shadow: 5px 5px 0 #111111;
}

.audio-play:active {
  opacity: 1;
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 #111111;
}

.audio-icon {
  width: 44px;
  height: 44px;
}

.audio-icon-play {
  margin-left: 0;
  transform: translateX(-1px);
}

@media (max-width: 700px) {
  .cta-row {
    display: block;
    width: fit-content;
    padding: 0;
  }

  .cta-card-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    width: fit-content;
  }

  .app-store-qr-wrap {
    display: none;
  }

  .app-store-cta {
    display: flex;
    order: 1;
    width: auto;
    height: 68px;
    min-height: 0;
    padding: 12px 14px;
    border: 2px solid #111111;
    border-radius: 6px;
    background: #6bcf98;
    box-shadow: 6px 6px 0 #111111;
  }

  .app-store-badge {
    display: block !important;
    width: min(170px, 100%);
  }

  .audio-sample {
    display: flex;
    order: 2;
  }

  .audio-player {
    display: flex;
    width: auto;
    min-height: 0;
    padding: 0;
  }

  .audio-play {
    width: 64px;
    height: 68px;
  }

  .audio-icon {
    width: 38px;
    height: 38px;
  }
}

@media (min-width: 701px) {
  .hero {
    min-height: calc(100vh + 180px);
  }

  .hero-copy {
    margin-top: 35px;
  }

  .home-crowd {
    position: fixed;
    bottom: 0;
  }

  .hero-copy h1 {
    font-size: clamp(1.5rem, 2.3vw, 2.45rem);
  }

  .phone {
    width: 54%;
  }

  .cta-row {
    grid-template-columns: auto minmax(24px, 1fr) auto;
    width: 100%;
    max-width: 400px;
  }

  .cta-card-actions {
    display: contents;
  }

  .app-store-qr-wrap {
    grid-column: 1;
    grid-row: 1;
  }

  .app-store-qr {
    width: 190px;
    height: 190px;
  }

  .desktop-scan-note {
    width: auto;
  }

  .audio-sample {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
  }

  .app-store-cta {
    display: none;
  }
}

.phone-carousel .phone-carousel-image {
  animation: none;
  opacity: 0;
  transition: opacity 1350ms ease-in-out;
}

.phone-carousel .phone-carousel-image:first-child {
  opacity: 1;
  z-index: 0;
}

.phone-carousel .phone-carousel-image.is-current {
  z-index: 1;
  opacity: 1;
}

.phone-carousel .phone-carousel-image.is-next {
  z-index: 2;
  opacity: 0;
}

.phone-carousel .phone-carousel-image.is-next.is-visible {
  opacity: 1;
}

.phone-carousel .phone-carousel-image.is-current.is-exiting {
  opacity: 0;
}
}

@media (prefers-reduced-motion: reduce) {
  .phone-carousel .phone-carousel-image {
    animation: none;
    opacity: 0;
  }

  .phone-carousel .phone-carousel-image:first-child {
    opacity: 1;
  }
}
