/* Shared iPhone screenshot carousel for app landing pages */
.hero-preview.screenshot-carousel {
  max-width: 1100px;
  width: 100%;
  margin: 64px auto 0;
  position: relative;
}

.shot-carousel {
  position: relative;
  display: flex;
  align-items: center;
}

.shot-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.shot-track {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc(50% - 100px);
  padding: 12px 18% 32px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.shot-track::-webkit-scrollbar {
  display: none;
}

.shot-slide {
  flex: 0 0 200px;
  margin: 0;
  scroll-snap-align: center;
  opacity: 0.42;
  transform: scale(0.92);
  filter: saturate(0.85);
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.shot-slide.is-active {
  opacity: 1;
  transform: scale(1);
  filter: none;
}

.shot-phone {
  background: #111318;
  border-radius: 34px;
  padding: 8px;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.shot-phone img,
.shot-marketing img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

.shot-marketing {
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.16),
    0 1px 3px rgba(0, 0, 0, 0.06);
}

.shot-nav {
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  background: var(--card, var(--surface, #fff));
  color: var(--text, #111);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  z-index: 3;
}

.shot-prev { left: 4px; }
.shot-next { right: 4px; }

.shot-nav svg {
  width: 18px;
  height: 18px;
}

.shot-nav:hover {
  background: var(--primary, var(--sky, #2563EB));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.shot-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.shot-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: var(--border, #d4d4d8);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}

.shot-dots button.is-active {
  width: 22px;
  background: var(--primary, var(--sky, #2563EB));
}

@media (max-width: 720px) {
  .hero-preview.screenshot-carousel {
    margin-top: 36px;
  }

  .shot-viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .shot-track {
    padding: 8px 40px 24px;
    scroll-padding-inline: 40px;
    gap: 16px;
  }

  .shot-slide {
    flex-basis: min(168px, 56vw);
    transform: none;
    opacity: 1;
    filter: none;
  }

  .shot-nav {
    width: 36px;
    height: 36px;
  }
}
