.hero-demo-viewport{position:relative;aspect-ratio:1/2;isolation:isolate}
.hero-demo-viewport iframe{display:block;position:absolute;top:0;left:0;width:390px;height:780px;border:0;max-width:none;transform:scale(var(--demo-scale,1));transform-origin:top left;pointer-events:none}
.demo-transcript{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* Local preview: give transformed image/iframe screens an explicit rounded paint clip. */
:is(.hero-demo-viewport,.experience-preview .phone-screen,.incognito-screen){clip-path:inset(0 round var(--preview-phone-radius,43px))}
/* Keep iframe paint in the rounded screen layer; the outer phone retains its shadow. */
:is(.hero-demo-viewport,.experience-preview .phone-screen,.incognito-screen){-webkit-mask-image:linear-gradient(#fff,#fff);mask-image:linear-gradient(#fff,#fff)}
/* Keep the animated screen in a stable, flat bezel during hover. */
.hero-product:hover .phone,.experience-preview .feature-device:hover .phone,.incognito-device .phone{transform:none}

/* Local review: a larger, closer brand mark aligned with the wordmark. */
.hero-product .product-name{gap:7px;align-items:center}
.hero-product .product-name img{width:34px;height:45px;transform:translateY(-3.5px)}
@media(max-width:767px){.hero-product .product-name img{width:32px;height:43px}}

/* A warm graphite/titanium chassis, independent of the screen theme. */
:is(.hero-product,.experience-preview,.incognito-device) .phone{--preview-device-radius:43px;--preview-shell:6px;--preview-edge:1px;--preview-phone-radius:calc(var(--preview-device-radius) - var(--preview-shell) - var(--preview-edge));padding:var(--preview-shell);border:var(--preview-edge) solid #9d8e79;border-radius:var(--preview-device-radius);background:linear-gradient(#302920,#302920) center 2px/30px 2px no-repeat,linear-gradient(125deg,#b4a795,#6c6255 33%,#8c7d68 68%,#51483c)}
:is(.hero-product,.experience-preview,.incognito-device) .phone-screen{border:0;border-radius:var(--preview-phone-radius)}
/* Side keys sit outside the shell. No extra border or overlay covers the display. */
:is(.hero-product,.experience-preview,.incognito-device) .phone::before,:is(.hero-product,.experience-preview,.incognito-device) .phone::after{content:"";position:absolute;width:3px;border:1px solid #6e6252;border-radius:2px;background:linear-gradient(90deg,#51483d,#ab9a80,#655a4b);pointer-events:none}
:is(.hero-product,.experience-preview,.incognito-device) .phone::before{left:-3px;top:104px;height:61px;border:0;border-radius:0;box-shadow:none;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%223%22%20height%3D%2261%22%20viewBox%3D%220%200%203%2061%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%220%22%3E%3Cstop%20stop-color%3D%22%2351483d%22%2F%3E%3Cstop%20offset%3D%22.5%22%20stop-color%3D%22%23ab9a80%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23655a4b%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cg%20fill%3D%22url(%23g)%22%20stroke%3D%22%236e6252%22%20stroke-width%3D%221%22%3E%3Crect%20x%3D%22.5%22%20y%3D%22.5%22%20width%3D%222%22%20height%3D%2225%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22.5%22%20y%3D%2235.5%22%20width%3D%222%22%20height%3D%2225%22%20rx%3D%221%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 0 0/3px 61px no-repeat}
:is(.hero-product,.experience-preview,.incognito-device) .phone::after{right:-3px;top:150px;height:48px;box-shadow:none}
@media(max-width:767px){:is(.hero-product,.experience-preview,.incognito-device) .phone{--preview-device-radius:39px}}
/* Light-theme hardware uses neutral brushed silver; the warm display stays unchanged. */
[data-theme='light'] :is(.hero-product,.experience-preview,.incognito-device) .phone{border-color:#bdbab5;background:linear-gradient(#56534e,#56534e) center 2px/30px 2px no-repeat,linear-gradient(125deg,#eeeae5,#b9b7b3 33%,#d9d6d0 68%,#9d9b96)}
[data-theme='light'] :is(.hero-product,.experience-preview,.incognito-device) .phone::before,[data-theme='light'] :is(.hero-product,.experience-preview,.incognito-device) .phone::after{border-color:#aaa7a1;background:linear-gradient(90deg,#aaa7a1,#e8e5df,#a7a49e)}
[data-theme='light'] :is(.hero-product,.experience-preview,.incognito-device) .phone::before{border:0;box-shadow:none;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%223%22%20height%3D%2261%22%20viewBox%3D%220%200%203%2061%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%220%22%3E%3Cstop%20stop-color%3D%22%23aaa7a1%22%2F%3E%3Cstop%20offset%3D%22.5%22%20stop-color%3D%22%23e8e5df%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23a7a49e%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cg%20fill%3D%22url(%23g)%22%20stroke%3D%22%23aaa7a1%22%20stroke-width%3D%221%22%3E%3Crect%20x%3D%22.5%22%20y%3D%22.5%22%20width%3D%222%22%20height%3D%2225%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22.5%22%20y%3D%2235.5%22%20width%3D%222%22%20height%3D%2225%22%20rx%3D%221%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 0 0/3px 61px no-repeat}
