.p2-apps-stage {
  position: absolute;
  width: min(82%, 520px);
  aspect-ratio: 1.75;
  left: 50%;
  top: calc(50% - 24px);
  transform: translate(-50%, -50%);
  isolation: isolate;
}
.p2-app-device { position: absolute; bottom: 0; }
.p2-app-device--ipad { left: 8%; width: 43%; aspect-ratio: 3 / 4; z-index: 2; }
.p2-app-device--iphone { left: 70%; width: 22%; aspect-ratio: 9 / 19.5; z-index: 1; }
.p2-app-device::after {
  content: ""; position: absolute; z-index: -1; bottom: -8%; left: -8%; width: 116%; height: 12%;
  border-radius: 50%; background: #1b252552; filter: blur(10px);
}
.p2-app-device-body {
  position: absolute; inset: 0; padding: 5%; border: 2px solid #aeb2b6; border-radius: 8% / 6%;
  background: linear-gradient(125deg, #494d50, #141617 25%, #101112 75%, #565b60);
  box-shadow: 0 2px 0 #e0e3e5 inset, 0 0 0 1px #595c60, 5px 14px 24px #18212140;
  transition: transform .65s cubic-bezier(.2,.7,.2,1), box-shadow .65s;
}
.p2-app-device--iphone .p2-app-device-body { padding: 5%; border-radius: 20% / 9.3%; }
.p2-app-screen { width: 100%; height: 100%; overflow: hidden; border-radius: 4% / 3%; background: linear-gradient(135deg,#7a7d80,#55595d); }
.p2-app-device--iphone .p2-app-screen { border-radius: 17% / 7.8%; }
.p2-app-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.p2-app-camera { position: absolute; top: 1.7%; left: 50%; transform: translateX(-50%); width: 2%; aspect-ratio: 1; border-radius: 50%; background: #07090c; box-shadow: 0 0 0 1px #3a3c3e; }
.p2-app-device--iphone .p2-app-camera { top: 4.3%; width: 28%; aspect-ratio: 4; border-radius: 99px; box-shadow: none; }
.p2-apps-stage.is-waiting .p2-app-device { opacity: 0; }
.p2-apps-stage.is-revealing .p2-app-device--ipad { animation: apps-ipad-in 1.8s cubic-bezier(.22,.7,.22,1) both; }
.p2-apps-stage.is-revealing .p2-app-device--iphone { animation: apps-iphone-in 1.8s cubic-bezier(.22,.7,.22,1) both; }
@keyframes apps-ipad-in {
  0% { opacity: 0; transform: translate(47.7%, 14px); }
  30% { opacity: 1; transform: translate(47.7%, 0); }
  100% { opacity: 1; transform: translate(0, 0); }
}
@keyframes apps-iphone-in {
  0%, 30% { opacity: 0; transform: translate(-141%, -10px); }
  42% { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .p2-showcase:hover .p2-apps-stage:not(.is-static) .p2-app-device--ipad .p2-app-device-body { transform: translate(-3px, -7px) rotate(-1.5deg); }
  .p2-showcase:hover .p2-apps-stage:not(.is-static) .p2-app-device--iphone .p2-app-device-body { transform: translate(4px, -5px) rotate(2deg); }
}
@media (max-width: 480px) {
  .p2-apps-stage { width: 88%; }
  .p2-app-device-body { border-width: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .p2-apps-stage .p2-app-device { animation: none !important; opacity: 1 !important; }
  .p2-app-device-body { transition: none; }
}
