/* Device mockups (Oscar's iPhone and MacBook images) with live, data-driven content — nothing is baked into a video or a
   flat image, so a later mobile layout can resize, move or re-time them. Size a device with --w; everything inside scales. */
.dv-phone,.dv-laptop{position:relative;width:var(--w);}
.dv-phone{--w:228px;aspect-ratio:700/1430;transform-origin:0 0;transition:transform 1s cubic-bezier(.62,0,.32,1)}
.dv-phone.dv-aim{z-index:8}
.dv-laptop{--w:760px;aspect-ratio:1600/969}
.dv-frame{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none;z-index:3}
.dv-scr{position:absolute;overflow:hidden;background:#000;z-index:1;isolation:isolate;transform:translateZ(0)}
.dv-in{position:absolute}
/* the phone's screen works in the real UI's own 393 x 852 pt space, scaled to the frame (--kx/--ky set by devices.js) */
.dv-ui{position:absolute;left:0;top:0;width:393px;height:852px;transform-origin:0 0;transform:scale(var(--kx,1),var(--ky,1));overflow:hidden;background:#fff}
.dv-s{position:absolute;inset:0;width:393px;height:852px;opacity:0;transition:opacity .32s ease}
.dv-s.on{opacity:1}
img.dv-s{display:block}
/* the real UI's scan band (same gradient, line and 2.4 s sweep as 拍照上架 in the back office) */
.dv-scan{position:absolute;overflow:hidden;opacity:0;transition:opacity .2s}
.dv-scan.on{opacity:1}
.dv-scan i{position:absolute;left:0;right:0;top:-90px;height:90px;background:linear-gradient(180deg,rgba(71,101,255,0) 0%,rgba(71,101,255,.3) 100%);border-bottom:2px solid #7d93ff}
.dv-scan.on i{animation:dvScan 2.4s ease-in-out infinite alternate}
@keyframes dvScan{from{transform:translateY(0)}to{transform:translateY(calc(var(--h) + 90px))}}
/* a finger tap: light disc with a fine dark rim and soft shadow, so it reads on the black camera UI and on the white app alike */
.dv-tap{position:absolute;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:rgba(255,255,255,.5);box-shadow:0 0 0 1.5px rgba(17,18,20,.22),0 6px 16px rgba(0,0,0,.28);opacity:0;pointer-events:none;z-index:9}
.dv-tap.go{animation:dvTap .75s ease-out}
@keyframes dvTap{0%{opacity:0;transform:scale(.7)}14%{opacity:1;transform:scale(.9)}46%{opacity:1;transform:scale(.82)}100%{opacity:0;transform:scale(1.25)}}
.dv-blink{position:absolute;inset:0;background:#000;opacity:0;pointer-events:none;z-index:8}
.dv-blink.go{animation:dvBlink .32s ease-out}
@keyframes dvBlink{0%{opacity:0}25%{opacity:1}100%{opacity:0}}
/* ---- iOS camera (photo mode), drawn in the same 393 x 852 space ---- */
.dv-cam{background:#000;color:#fff;font-family:var(--font,system-ui,sans-serif)}
.dv-cam .vf{position:absolute;left:0;top:118px;width:393px;height:524px;overflow:hidden;background:#111}
.dv-cam .vf img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(var(--fz,1));transition:transform 1.3s cubic-bezier(.2,.7,.2,1)}
.dv-cam .tb{position:absolute;left:0;right:0;top:62px;height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 22px}
.dv-cam .tb b{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center}
.dv-cam .tb b.c{background:none}
.dv-cam svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;display:block}
.dv-cam .zm{position:absolute;left:50%;top:592px;transform:translateX(-50%);display:flex;gap:6px;padding:5px;border-radius:999px;background:rgba(0,0,0,.32)}
.dv-cam .zm b{width:30px;height:30px;border-radius:50%;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;font:700 11px/1 Overpass,sans-serif;padding-top:.15em}
.dv-cam .zm b.on{width:36px;height:36px;margin:-3px 0;color:#FFD60A;font-size:12.5px}
.dv-cam .md{position:absolute;left:0;right:0;top:664px;height:20px;white-space:nowrap}
.dv-cam .md span{position:absolute;top:0;transform:translateX(-50%);font-size:13.5px;font-weight:600;line-height:20px;color:#fff}
.dv-cam .md span.on{color:#FFD60A}
.dv-cam .bar{position:absolute;left:0;right:0;top:722px;height:84px}
.dv-cam .th{position:absolute;left:34px;top:22px;width:42px;height:42px;border-radius:9px;background:#2A2A2C center/cover no-repeat;overflow:hidden}
.dv-cam .sh{position:absolute;left:50%;top:4px;width:76px;height:76px;margin-left:-38px;border-radius:50%;border:4.5px solid #fff}
.dv-cam .sh i{position:absolute;inset:4.5px;border-radius:50%;background:#fff;transition:transform .12s}
.dv-cam .sh.down i{transform:scale(.86)}
.dv-cam .fp{position:absolute;right:34px;top:20px;width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center}
.dv-cam .fp svg{width:21px;height:21px}
/* after the shutter: the photo with 重拍 / 使用照片 */
.dv-use{background:#000;color:#fff;font-family:var(--font,system-ui,sans-serif)}
.dv-use .vf{position:absolute;left:0;top:118px;width:393px;height:524px;overflow:hidden}
.dv-use .vf img{width:100%;height:100%;object-fit:cover;display:block}
.dv-use .ub{position:absolute;left:0;right:0;bottom:34px;height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;font-size:17px;font-weight:500}
/* laptop: a black menu bar behind the notch, then the page */
.dv-laptop .mb{position:absolute;left:0;right:0;top:0;background:#000}
.dv-laptop .shot{position:absolute;left:0;right:0;bottom:0;width:100%;display:block}
/* the back office running on the laptop (1470 x 919 px, scaled by --k): pages cross-fade, a list scrolls, a cursor clicks */
.dv-desk{position:absolute;left:0;right:0;overflow:hidden;background:#F5F6F8}
.dv-dui{position:absolute;left:0;top:0;transform-origin:0 0;transform:scale(var(--k,1))}
.dv-ds{position:absolute;inset:0;opacity:0;transition:opacity .16s ease}
.dv-ds.on{opacity:1}
.dv-ds>img{position:absolute;left:0;top:0;width:100%;height:100%;display:block}
.dv-sc{position:absolute;overflow:hidden}
.dv-sc img{display:block;width:100%;transition-property:transform;transition-timing-function:cubic-bezier(.45,0,.2,1)}
.dv-cur{position:absolute;left:0;top:0;width:26px;height:26px;z-index:5;overflow:visible;transition-property:transform;transition-timing-function:cubic-bezier(.45,0,.25,1);filter:drop-shadow(0 1px 1.6px rgba(0,0,0,.35))}
.dv-cur path{fill:#111214;stroke:#fff;stroke-width:1.5;stroke-linejoin:round;transform-origin:4.04px 4.69px;transition:transform .09s ease}
.dv-cur.down path{transform:scale(.84)}
