/* V12 — sizing only. Preserve approved scene choreography and brand identity. */
/* Cinematic hero: give the five stages a properly sized canvas rather than a narrow embedded panel. */
#demo.hx3{width:min(1320px, calc(100vw - 48px));max-width:none;margin-left:50%;translate:-50% 0}
#demo .hx-world{height:660px}
#demo .hx-scene-title h3{font-size:clamp(25px,2.25vw,34px)}
#demo .hx-scene-title p{font-size:14px;line-height:1.5}
#demo .hx-facts{gap:9px}
#demo .hx-eq code{font-size:clamp(13px,1.17vw,17px)}
#demo .hx-module strong{font-size:12px}
/* Builder: dedicate the width and height to the animation, not former window chrome. */
body.landing-premium #builder .fm-builder-showcase{width:min(1320px,calc(100vw - 48px));max-width:none;margin-left:50%;translate:-50% 0}
body.landing-premium #builder .fm-builder-frame{width:100%;height:815px;border-radius:14px}
/* Real financial model & formula editor: keep the real interface as the largest visual object. */
body.landing-premium #model #fmInsideDemo{width:min(1300px,calc(100vw - 48px));max-width:none;margin-left:50%;translate:-50% 0;grid-template-columns:minmax(0,1.9fr) minmax(290px,.72fr)}
#model .fm-inside-command{font-size:13px}
#model .model-image-pane img{height:565px}
body.landing-premium #formulaMotion{width:min(1300px,calc(100vw - 48px));max-width:none;margin-left:50%;translate:-50% 0}
#formulaMotion .fmq-app{min-height:565px}
#formulaMotion .fmq-intro p{font-size:15px;line-height:1.6}
/* Computational engine: promote the actual network and formula labels. */
body.landing-premium #engine #impactGraph{width:min(1320px,calc(100vw - 48px));max-width:none;margin-left:50%;translate:-50% 0}
body.landing-premium #engine #impactGraph .flow-visual{min-height:500px;padding:24px 18px 0}
body.landing-premium #engine #impactGraph .flow-node strong{font-size:18px}
body.landing-premium #engine #impactGraph .flow-node small{font-size:12px}
body.landing-premium #engine #impactGraph .logic-svg{width:100%}
/* V7 scenarios: expand the scene itself and reserve enough height for 3D graphs/results. */
body.landing-premium #scenarios .scenario-v7-embed{width:min(1320px,calc(100vw - 48px))!important;max-width:none!important;margin-left:50%!important;translate:-50% 0}
body.landing-premium #scenarios .scenario-v7-embed iframe{height:760px!important}
@media(max-width:1100px){
 #demo.hx3{width:calc(100vw - 32px)}
 #demo .hx-world{height:625px}
 body.landing-premium #builder .fm-builder-showcase,body.landing-premium #model #fmInsideDemo,body.landing-premium #formulaMotion,body.landing-premium #engine #impactGraph,body.landing-premium #scenarios .scenario-v7-embed{width:calc(100vw - 32px)!important}
 body.landing-premium #builder .fm-builder-frame{height:780px}
 body.landing-premium #scenarios .scenario-v7-embed iframe{height:740px!important}
}
@media(max-width:700px){
 #demo.hx3{width:calc(100vw - 20px)}
 #demo .hx-world{height:650px}
 #demo .hx-scene-title h3{font-size:clamp(21px,5.8vw,25px)}
 #demo .hx-scene-title p{font-size:11px}
 #demo .hx-eq code{font-size:11px}
 #demo .hx-module strong{font-size:10px}
 body.landing-premium #builder .fm-builder-showcase,body.landing-premium #model #fmInsideDemo,body.landing-premium #formulaMotion,body.landing-premium #engine #impactGraph,body.landing-premium #scenarios .scenario-v7-embed{width:calc(100vw - 20px)!important}
 body.landing-premium #builder .fm-builder-frame{height:870px;border-radius:10px}
 body.landing-premium #model #fmInsideDemo{grid-template-columns:1fr}
 #model .model-image-pane img{height:385px}
 #formulaMotion .fmq-app{min-height:765px}
 #formulaMotion .fmq-intro p{font-size:13px}
 body.landing-premium #engine #impactGraph .flow-visual{min-height:540px!important;padding:9px 6px 0!important}
 body.landing-premium #engine #impactGraph .flow-node strong{font-size:15px}
 body.landing-premium #engine #impactGraph .flow-node small{font-size:11px}
 body.landing-premium #scenarios .scenario-v7-embed iframe{height:755px!important}
}
@media(max-width:350px){
 #demo .hx-world{height:665px}
 body.landing-premium #builder .fm-builder-frame{height:900px}
 body.landing-premium #scenarios .scenario-v7-embed iframe{height:790px!important}
}
