/* INSTANT — true portrait viewports for marketing previews only. */
/* Every guest preview keeps a portrait 9:16 screen. The frame adds its
   bezel outside that viewport; content never decides the phone's height. */
.marketing-page .hero-demo { width:min(330px,100%); }
.marketing-page :is(.phone,.gphone) { transform: none !important; }
.marketing-page :is(.phone,.gphone) .scr {
  position:relative;aspect-ratio:9 / 16;height:auto!important;min-height:0!important;max-height:none!important;
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
  scrollbar-color:#7B715F transparent
}
.marketing-page :is(.phone,.gphone) .scr>iframe {
  position:absolute;inset:0;width:100%;height:100%;display:block;border:0
}
.marketing-page #demos .iphone3d-scene {
  width:min(230px,100%);height:auto!important;max-width:230px;margin-inline:auto
}
.marketing-page #demos .iphone3d { width:100%;height:auto!important;transform:none!important; }
.marketing-page #demos .ip-frame { width:100%;height:auto!important; }
.marketing-page #demos .ip-screen.demo-9-16 {
  width:100%!important;height:auto!important;min-height:0;aspect-ratio:9 / 16
}
/* This interactive phone has no separate screen wrapper, so its content
   box is the viewport and the existing 5px frame sits outside the ratio. */
.marketing-page .how-live .hl-phone {
  box-sizing:content-box;width:250px;max-width:calc(100% - 10px);height:auto;
  min-height:0;aspect-ratio:9 / 16;overflow-x:hidden;overflow-y:auto;
  overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#7B715F transparent
}
/* Perspective belongs to the outer frame; the screen keeps its 9:16 viewport.
   Limit the motion to decorative previews with a desktop mouse. */
@media (min-width:861px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .marketing-page .hero-demo > :is(.phone,.gphone),
  .marketing-page #demos .iphone3d {
    transform:rotateX(2deg) rotateY(-12deg) rotateZ(.5deg)!important;
    transform-style:preserve-3d;
    transition:transform 650ms cubic-bezier(.2,.8,.25,1)
  }
  .marketing-page .hero-demo:hover > :is(.phone,.gphone),
  .marketing-page #demos .iphone3d-scene:hover .iphone3d {
    transform:rotateX(var(--preview-rotate-x,1deg)) rotateY(var(--preview-rotate-y,-4deg)) rotateZ(0deg)!important;
    transition:transform 160ms ease-out
  }
}
@media (prefers-reduced-motion:reduce) {
  .marketing-page .hero-demo > :is(.phone,.gphone),
  .marketing-page #demos .iphone3d { transform:none!important;transition:none!important; }
}
