/* Screenshot frames, phone rails and image-beside-copy splits */

.shot {
  width: 100%;
  height: auto;
  border-radius: var(--r-xs);
  box-shadow: var(--shadow-screen);
}

.shot--flat { box-shadow: none; }

.caption {
  font-weight: 600;
  font-size: var(--fs-xs);
  color: var(--text);
  margin-block-end: 0.75rem;
}

.caption--center { text-align: center; }

/* A row of phone mockups */
.rail { display: flex; gap: var(--gap-sm); }
.rail > * { flex: 1; min-width: 0; }

.rail img {
  width: 100%;
  height: auto;
  border-radius: var(--r-xs);
  box-shadow: var(--shadow-phone);
}

/* Fixed-width phone columns (the 160px screens in the source) */
.rail--fixed { gap: 1.25rem; }
.rail--fixed > * { flex: 0 0 auto; width: 160px; }

/* Centred phone inside a card, capped so it never balloons */
.phone-cap {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: var(--r-xs);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
  max-width: var(--phone-max, 150px);
}

/* Image + copy side by side */
.split {
  display: flex;
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: center;
}

.split > img {
  flex-shrink: 0;
  width: var(--split-img, 140px);
  height: auto;
  border-radius: var(--r-xs);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.split__title { font-size: 1rem; font-weight: 600; margin-block-end: 0.5rem; }
.split__body { font-size: var(--fs-xs); color: var(--text-4); line-height: 1.55; }

/* Below tablet width, squeezing five phones into a row makes them unreadable.
   Turn the rail into a snap-scrolling strip instead of shrinking further. */
@media (max-width: 820px) {
  .rail {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline-start: 0;
    padding-block-end: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  }

  .rail > * { flex: 0 0 46%; scroll-snap-align: start; }
  .rail--fixed > * { flex: 0 0 140px; width: 140px; }
}

@media (max-width: 520px) {
  .rail > * { flex: 0 0 64%; }
  .split { flex-direction: column; align-items: flex-start; }
  .split > img { width: min(var(--split-img, 140px), 45vw); }
}
