/* Mobile apps page: a strip of real app screens, each at its own true proportions
   (never stretched or cut to a common shape). It drifts on its own; a mouse can drag it,
   a finger can swipe it, the arrows step it. */
.sa-c-apps { padding-bottom: 0; }
.sa-c-apps-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sa-c-apps-nav { display: flex; gap: 8px; flex: 0 0 auto; }
.sa-c-apps-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(16, 27, 55, .25); background: transparent; color: #101B37; cursor: pointer;
  transition: border-color .2s ease;
}
.sa-c-apps-btn:hover { border-color: #101B37; }
.sa-c-apps-btn:focus-visible { outline: 2px solid #3F5E99; outline-offset: 2px; }
.sa-c-apps-btn svg { width: 16px; height: 16px; }
.sa-c-apps-view {
  margin-top: 40px; overflow-x: hidden; overflow-y: hidden; scrollbar-width: none;
  cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}
.sa-c-apps-view::-webkit-scrollbar { display: none; }
.sa-c-apps-view.is-drag { cursor: grabbing; }
.sa-c-apps-view:focus-visible { outline: 2px solid #3F5E99; outline-offset: 4px; }
.sa-c-apps-track { display: flex; gap: 32px; width: max-content; margin: 0; padding: 8px 0 24px; list-style: none; }
.sa-c-app { flex: 0 0 auto; margin: 0; --app-h: clamp(380px, 22vw + 180px, 520px); }
.sa-c-app figure { margin: 0; }
.sa-c-app-phone {
  display: block; height: var(--app-h); overflow: hidden; border: 7px solid #161A22; border-radius: 30px;
  background: #161A22; box-shadow: 0 16px 32px rgba(16, 27, 55, .18);
}
.sa-c-app-phone img { display: block; height: 100%; width: auto; pointer-events: none; -webkit-user-drag: none; }
.sa-c-app figcaption { margin-top: 16px; font-size: 14px; font-weight: 600; line-height: 1.35; color: #101B37; }
.sa-c-app figcaption span { display: block; margin-top: 2px; font-weight: 300; color: #4A5672; }
@media (max-width: 900px) {
  .sa-c-apps-nav { display: none; }
  .sa-c-apps-view { margin-top: 32px; -webkit-mask-image: none; mask-image: none; }
  .sa-c-apps-track { gap: 20px; }
  .sa-c-app { --app-h: clamp(340px, 90vw, 420px); }
  .sa-c-app-phone { border-width: 6px; border-radius: 26px; }
}

/* every phone the same shape (a modern phone, 390 x 844); a screen that is wider than that
   sits at the top at full width and the rest of the phone takes the app's own colour */
.sa-c-app-phone { aspect-ratio: 390 / 844; width: auto; }
.sa-c-app-phone img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.sa-c-app-phone[style] img { object-fit: contain; }
