/* Download page: App Store hero button */
.download-cta {
  transition: filter 180ms ease;
  filter: brightness(1);
}

.download-cta:hover,
.download-cta:focus-visible {
  filter: brightness(0.9);
}

.download-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 6px;
}

/* Download page: App Store carousel */
.app-preview {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.5rem 1rem 1rem;
  scroll-padding-inline: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.app-preview::-webkit-scrollbar {
  display: none;
}

.app-preview__item {
  position: relative;
  flex: 0 0 calc(80vw - 3rem);
  max-width: 20rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.75rem;
  border-radius: 1.75rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -25px rgba(15, 23, 42, 0.7);
  text-align: left;
  overflow: hidden;
  scroll-snap-align: center;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.app-preview__item:hover,
.app-preview__item:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 35px 85px -35px rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

.app-preview__image {
  border-radius: 1.25rem;
  box-shadow: 0 22px 45px -30px rgba(15, 23, 42, 0.8);
}

.app-preview__caption {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(241, 245, 249, 0.78);
}

@media (min-width: 640px) {
  .app-preview__item {
    flex-basis: calc(55vw - 3rem);
  }
}

@media (min-width: 768px) {
  .app-preview {
    padding-inline: 2rem;
  }
  .app-preview__item {
    flex-basis: 22rem;
  }
}

@media (min-width: 1024px) {
  .app-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .app-preview__item {
    flex: none;
    scroll-snap-align: unset;
  }
}
