.app-preview {
  overflow: hidden;
  background: linear-gradient(180deg, #f7f9ff 0%, #eef4ff 100%);
}

.preview-head {
  margin-bottom: 52px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  direction: rtl;
}

.phone-shot {
  min-width: 0;
  margin: 0;
}

.phone-shot.elevated {
  transform: translateY(42px);
}

.phone-frame {
  position: relative;
  overflow: hidden;
  padding: 9px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 34px;
  background: #111827;
  box-shadow: 0 24px 55px rgba(30, 64, 175, .16);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  z-index: 2;
  width: 30%;
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .55);
  transform: translateX(-50%);
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
  border-radius: 26px;
  background: #fff;
}

.phone-shot figcaption {
  padding: 18px 7px 0;
  text-align: center;
}

.phone-shot figcaption b,
.phone-shot figcaption span {
  display: block;
}

.phone-shot figcaption b {
  font-size: 17px;
}

.phone-shot figcaption span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 650px;
    margin: auto;
  }

  .phone-shot.elevated {
    transform: none;
  }
}

@media (max-width: 520px) {
  .preview-head {
    margin-bottom: 30px;
    text-align: center;
  }

  .screenshots-grid {
    display: flex;
    gap: 16px;
    max-width: none;
    margin-inline: -12px;
    padding: 5px 12px 25px;
    overflow-x: auto;
    direction: rtl;
    scroll-snap-type: x mandatory;
  }

  .phone-shot {
    flex: 0 0 76vw;
    scroll-snap-align: center;
  }

  .phone-frame {
    border-radius: 30px;
  }

  .phone-frame img {
    border-radius: 23px;
  }
}
