/* Real screenshots of the Zupper Attendance app and dashboard (assets/shots/).
   .crop shows one region of a 1440px dashboard capture: --z zoom, --x/--y the region's top-left in capture px. */
.crop { position: relative; overflow: hidden; }
.crop--fill, .frame > .crop.crop--fill { position: absolute; inset: 0; }
.panel.crop { background: #f4f7f5; }
.crop > img { position: absolute; max-width: none; height: auto; width: calc(1440px * var(--z, 1)); left: calc(var(--x, 0) * var(--z, 1) * -1px); top: calc(var(--y, 0) * var(--z, 1) * -1px); }

/* a dashboard window: the capture on its own, a hairline and a soft shadow */
.shot { background: #f4f7f5; border: 1px solid rgb(19 36 31 / .12); border-radius: var(--r-lg); box-shadow: 0 24px 60px -32px rgb(19 36 31 / .35); }
.shot--plain { overflow: hidden; }
.shot--plain > img { display: block; width: 100%; height: auto; }
.shot--fill > img { width: 100%; left: 0; top: 0; }
@media (max-width: 639px) { .shot--plain { overflow: hidden; }
.shot--plain > img { display: block; width: 100%; height: auto; }
.shot--fill > img { width: 760px; left: -150px; } }

/* a phone: the Flutter screen in a plain rounded body */
.phone { --pw: 290px; width: var(--pw); aspect-ratio: 390 / 844; flex: none; box-sizing: content-box; padding: calc(var(--pw) * .03); border-radius: calc(var(--pw) * .15); background: #13241f; box-shadow: 0 24px 60px -24px rgb(19 36 31 / .45); }
.phone > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: calc(var(--pw) * .12); }

/* a card panel holding a phone that runs out through the panel's bottom */
.panel.panel--phone { height: var(--p-h); min-height: 0; display: grid; justify-items: center; align-items: start; padding-top: var(--s-6); overflow: hidden; }

/* a frame holding a phone that runs out through the frame's bottom: the phone leaves the flow, so --ratio sets the height */
.frame.frame--phone-cut > .phone { position: absolute; top: var(--s-6); left: 50%; transform: translateX(-50%); }
