/* Product screenshots in software review and comparison articles (scripts/product-screenshots.js) */
.product-shots { display: grid; gap: 28px; width: 100%; margin: 24px 0 36px; }
.product-shots-inline { margin: 20px 0; }
.product-shots-app { margin: 0; }
.product-shots-name { margin: 0 0 12px; font-weight: 700; font-size: 1.05rem; color: var(--color-ink); }
.product-shots-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.product-shots-strip img { display: block; width: 100%; height: auto; margin: 0; border-radius: 18px; border: 1px solid var(--color-slate-200); background: var(--color-slate-50); box-shadow: none; }

/* Phones: swipe through the screenshots like the App Store */
@media (max-width: 720px) {
  .product-shots-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .product-shots-strip img { scroll-snap-align: start; border-radius: 14px; }
}

/* "X vs Y" article header: both apps' phone screens rising from the card, with a vs badge */
.vs-matchup { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 28px 28px 0; border: 1px solid var(--color-pool-100); border-radius: 28px; background: linear-gradient(165deg, var(--color-pool-50) 0%, var(--color-white) 70%); box-shadow: 0 24px 60px -36px rgba(12, 58, 116, 0.45); overflow: hidden; }
.vs-matchup-side { display: flex; flex-direction: column; align-items: center; min-width: 0; margin: 0; }
.vs-matchup-name { margin: 0 0 18px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: 1.2; text-align: center; color: var(--color-pool-900); }
.vs-matchup-name:has(.vs-matchup-logo) { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; max-width: 100%; padding: 0 24px; box-sizing: border-box; }
.vs-matchup-name span { min-width: 0; }
.vs-matchup-logo { display: block; width: auto; height: auto; max-height: 34px; max-width: 100%; margin: 0; }
.vs-matchup-wordmark { max-height: 40px; max-width: min(100%, 170px); }
.vs-matchup-phone { width: 100%; max-width: 200px; height: 300px; overflow: hidden; border-radius: 24px 24px 0 0; box-shadow: 0 18px 40px -18px rgba(11, 18, 32, 0.55); }
.vs-matchup-phone img { display: block; width: 100%; height: auto; margin: 0; }
.vs-matchup-phone-framed { padding: 6px 6px 0; border-radius: 30px 30px 0 0; background: var(--color-ink); }
.vs-matchup-phone-framed img { border-radius: 24px 24px 0 0; }
.vs-matchup::before { content: ''; position: absolute; left: 50%; top: 50px; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--color-pool-300), rgba(125, 181, 246, 0)); transform: translateX(-50%); }
.vs-matchup-badge { position: absolute; left: 50%; top: 50px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--color-pool-100); border-radius: 50%; background: var(--color-white); box-shadow: 0 6px 16px -8px rgba(12, 58, 116, 0.35); color: var(--color-pool-900); font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; transform: translate(-50%, -50%); }

/* Review pages: one app in the same card, without the divider and badge */
.vs-matchup-single { grid-template-columns: minmax(0, 1fr); }
.vs-matchup-single::before { display: none; }
.vs-matchup-single .vs-matchup-wordmark { max-width: min(100%, 170px) !important; }
.vs-matchup-stack { position: relative; display: flex; justify-content: center; width: 100%; height: 300px; }
.vs-matchup-stack .vs-matchup-phone { position: absolute; bottom: 0; left: 50%; width: 200px; max-width: none; height: 300px; }
.vs-matchup-stack .vs-matchup-phone-front { z-index: 2; transform: translateX(-50%); }
.vs-matchup-stack .vs-matchup-phone-back-left,
.vs-matchup-stack .vs-matchup-phone-back-right { z-index: 1; height: 250px; opacity: 0.9; box-shadow: 0 12px 30px -16px rgba(11, 18, 32, 0.45); }
.vs-matchup-stack .vs-matchup-phone-back-left { transform: translateX(-112%) rotate(-6deg); transform-origin: bottom right; }
.vs-matchup-stack .vs-matchup-phone-back-right { transform: translateX(12%) rotate(6deg); transform-origin: bottom left; }
.blog-post:not(.article-layout) .vs-matchup-single { max-width: 520px; margin: 24px 0 32px; }

@media (max-width: 900px) {
  .vs-matchup { gap: 16px; padding: 20px 16px 0; border-radius: 22px; }
  .vs-matchup-name { margin-bottom: 14px; font-size: 1rem; }
  .vs-matchup-name:has(.vs-matchup-logo) { gap: 6px; min-height: 34px; padding: 0 18px; font-size: 0.9rem; }
  .vs-matchup-logo { max-height: 26px; }
  .vs-matchup-wordmark { max-height: 30px; max-width: 100%; }
  .vs-matchup-phone { max-width: 150px; height: 220px; border-radius: 19px 19px 0 0; }
  .vs-matchup-phone-framed { padding: 5px 5px 0; border-radius: 24px 24px 0 0; }
  .vs-matchup-phone-framed img { border-radius: 19px 19px 0 0; }
  .vs-matchup::before { top: 37px; }
  .vs-matchup-stack { height: 220px; }
  .vs-matchup-stack .vs-matchup-phone { width: 140px; height: 220px; }
  .vs-matchup-stack .vs-matchup-phone-back-left,
  .vs-matchup-stack .vs-matchup-phone-back-right { height: 180px; }
  .vs-matchup-badge { top: 37px; width: 30px; height: 30px; font-size: 0.7rem; }
}
