/* Original front-view hardware, referenced to Apple's iPhone 18 Pro specifications.
   Body 71.9:150; display 1206:2622. Decorative radii are visual estimates.
   Container-relative geometry keeps a small preview from becoming a capsule. */
.product-device[data-phone-model],.tn-phone-shell[data-phone-model]{
 --mbp-device-ready:1;position:relative;box-sizing:border-box;container-type:inline-size;
 aspect-ratio:719/1500;height:auto!important;padding:0!important;border:0!important;
 border-radius:16.5% / 7.909%;overflow:visible;
 background:linear-gradient(115deg,#8c8e92 0%,#35383d 5%,#101216 15%,#080a0e 79%,#55595f 96%,#a0a2a5);
 box-shadow:inset 0 0 0 1px #a0a1a680,inset 0 0 0 2px #15171b,0 25px 36px -24px #1117218c;
 transform-origin:50% 50%;backface-visibility:hidden;
}
.product-device[data-phone-model]::before,.product-device[data-phone-model]::after{content:none!important}
.product-device[data-phone-model] .iphone-screen,.tn-phone-shell[data-phone-model] .tn-phone-screen{
 position:absolute!important;left:3.6cqi;right:3.6cqi;top:3.433cqi;bottom:3.433cqi;
 width:auto;height:auto;aspect-ratio:auto;border:0;border-radius:12.8cqi!important;overflow:hidden;
}
.product-device[data-phone-model] .iphone-screen>picture{display:block;width:100%;height:100%}
.product-device[data-phone-model] .iphone-screen img{
 display:block;width:100%;height:100%;max-width:none;max-height:none;aspect-ratio:auto;
 object-fit:contain!important;border-radius:0!important;box-shadow:none!important;transform:none!important;
}
.pro-island{position:absolute;z-index:5;top:1.1%;left:37.5%;width:25%;height:3.4%;border-radius:999px;background:#040507;pointer-events:none}
.pro-island::after{content:"";position:absolute;right:12%;top:29%;width:12%;aspect-ratio:1;border-radius:50%;background:#10141b;box-shadow:inset 0 0 0 .4px #252a33}
.pro-controls{position:absolute;inset:0;pointer-events:none}
.pro-control{position:absolute;width:.72cqi;border-radius:1cqi;background:linear-gradient(90deg,#181a1f,#70747b,#34383e);box-shadow:0 0 0 .2px #33373c}
.pro-control--action{left:-.65cqi;top:17%;height:3.5%}
.pro-control--volume-up{left:-.65cqi;top:25%;height:6%}
.pro-control--volume-down{left:-.65cqi;top:33%;height:6%}
.pro-control--power{right:-.65cqi;top:28%;height:9%}
.pro-control--camera{right:-.65cqi;top:62%;height:7%}
.tn-phone-shell[data-phone-model]{transform:perspective(1200px) translate3d(var(--tn-x,0px),var(--tn-lift,0px),0) rotateX(var(--tn-pitch,0deg)) rotateY(var(--tn-yaw,0deg)) rotateZ(var(--tn-angle,0deg)) scale(var(--tn-scale,1))}
.tn-phone-shell[data-phone-model] .tn-phone-status{height:6%;font-size:3.5cqi;inset-inline:8.5%}
.tn-phone-shell[data-phone-model] .tn-phone-window{inset:6.8% 0 0}
.tn-phone-shell[data-phone-model] .tn-home-indicator{height:1.1cqi;bottom:.85%;left:34%;width:32%}
.tn-tablet-shell{container-type:inline-size;border-radius:4.8% / 6.15%}
.tn-tablet-shell .tn-tablet-screen{border-radius:3.2% / 4.267%}
.tn-tablet-shell .tn-tablet-camera{width:.45cqi;height:.45cqi;top:.7%;left:49.775%}
.product-device[data-phone-model][data-device-state="entering"]{will-change:transform}
.product-device[data-phone-model][data-device-state="settled"]{will-change:auto}
/* Portrait screenshots stay upright after arrival. No pointer-driven tilt or exit wobble. */
.product-device[data-phone-model]{transform:perspective(1400px) translate3d(var(--product-x,0px),var(--product-y,0px),0) rotateX(var(--product-rx,0deg)) rotateY(var(--product-ry,0deg)) scale(var(--product-scale,1))}
.product-device[data-phone-model][data-device-state="settled"]{transform:none}
.tn-device-showcase[data-tn-assembly="1.000"] .tn-device-shell{transform:none}
@media(min-width:821px){.goodnight-hero .product-device[data-phone-model]{width:clamp(220px,calc((100svh - 250px)*.479333),300px)}}
@media(max-width:620px){
 .tn-phone-shell[data-phone-model]{transform:none!important}
 .tn-tablet-shell{border-radius:4.8% / 6.15%}
 .tn-tablet-shell .tn-tablet-screen{border-radius:3.2% / 4.267%}
 .home-story--labs .tn-phone-shell[data-phone-model]{width:100%;max-width:none}
 .home-story--labs .tn-phone-screen{border-radius:12.8cqi!important}
 .home-story--labs .tn-tablet-shell{border-radius:4.8% / 6.15%}
 .home-story--labs .tn-tablet-screen{border-radius:3.2% / 4.267%}
}
@media(prefers-reduced-motion:reduce){
 .product-device[data-phone-model],.tn-phone-shell[data-phone-model],.tn-tablet-shell{transform:none!important;will-change:auto!important;animation:none!important}
}
