/* A larger default desktop presentation; phone/tablet layouts keep their native scale. */
@media(min-width:1100px){
 html{zoom:1.25}
 .nav-floating #navigation{max-width:calc(100% - 24px);overflow-x:auto;scrollbar-width:none}
 .nav-floating #navigation::-webkit-scrollbar{display:none}
 .asy-assistant .aa-panel{max-height:calc(80dvh - 208px)}
 header.wrap{gap:20px}
 header #navigation{gap:9px}
 .asy-assistant .aa-launch{animation-name:aa-edge-travel-large}
}
@keyframes aa-edge-travel-large{
 0%,100%{transform:translate(0,0)}
 22%{transform:translate(-8px,min(0px,calc(45% + 9.9px - 18dvh)))}
 45%,55%{transform:translate(-3px,min(0px,calc(100% + 22px - 40dvh)))}
 78%{transform:translate(6px,min(0px,calc(50% + 11px - 20dvh)))}
}
@media(min-width:1100px) and (max-width:1399px){
 .hero{gap:24px}
 .hero h1{font-size:clamp(42px,4.3vw,65px)}
 .product-page .product-hero{gap:30px}
 .product-page .product-hero h1{font-size:42px}
 .ai-catalog .ai-core-products{grid-template-columns:1fr}
 .ai-core-products .ai-product-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:25px}
 .ai-core-products .ai-product-top{grid-column:1/-1}
 .ai-core-products .ai-product-copy{grid-column:1;grid-row:2}
 .ai-core-products .ap-scheme{grid-column:2;grid-row:2;margin-top:0}
 .ai-core-products .ai-product-result,.ai-core-products .ai-product-card>a{grid-column:1/-1}
 .ai-team-roles{grid-template-columns:repeat(3,minmax(0,1fr))}
 .ai-team-roles li::before{display:none}
 .ai-team-rail{border-bottom:0}
 .asy-assistant .aa-panel{max-height:calc(80dvh - 208px)}
}
@media(prefers-reduced-motion:reduce){.asy-assistant .aa-launch{animation:none!important}}

/* Keep voice controls reachable even on short screens. */
.asy-assistant .aa-panel{position:fixed;right:190px;left:auto;bottom:16px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
.aa-panel>*{flex-shrink:0}
.aa-panel .aa-messages{min-height:80px;flex-shrink:1}
@media(min-width:1100px){.asy-assistant .aa-panel{max-height:calc(80dvh - 32px)}}
@media(max-width:760px){.asy-assistant .aa-panel{right:12px;left:12px;bottom:12px;width:auto;max-height:calc(100dvh - 24px)}}

/* Compact, stationary launcher on phones; desktop motion stays unchanged. */
@media(max-width:760px){
 .asy-assistant{position:fixed;right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom))}
 .asy-assistant .aa-launch{width:104px;height:112px;animation:none!important;transform:none!important;will-change:auto}
 .asy-assistant .aa-hybrid-art{width:72px;height:72px}
 .asy-assistant .aa-launch .aa-entity-caption{max-width:104px;font-size:9px;line-height:1.35;padding:3px 6px}
 .asy-assistant .aa-assistant-demo{font-size:7px;line-height:1.3}
}

@media(max-width:760px){
 .pricing-roadmap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}
 .pricing-roadmap>span{display:flex;align-items:center;gap:8px;min-width:0;font-size:11px;line-height:1.4;text-align:left;overflow-wrap:anywhere}
 .pricing-roadmap>span i{flex:0 0 28px;margin:0}
 .pricing-roadmap>b{display:none}
}

@media(max-width:760px){
 #demo .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;overflow:visible}
 #demo .tabs button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;padding:11px 6px;white-space:normal;line-height:1.4;text-align:center}
 #demo .tabs button:last-child{grid-column:1/-1}
 #demo .tabs .demo-tab-icon{flex:0 0 18px;width:18px;height:18px}
 #process .steps li:nth-child(n){--arrival-x:0px;--arrival-y:14px;--arrival-r:0deg}
}

@media(max-width:760px){.ref-kpi small{overflow-wrap:anywhere}}

/* Prevent mobile Safari input zoom when opening Aizen or typing. */
@media(max-width:760px){
 .asy-assistant .aa-panel{box-sizing:border-box;min-width:0;max-width:calc(100% - 24px)}
 .asy-assistant .aa-panel input,.asy-assistant .aa-panel textarea,.asy-assistant .aa-panel select{font-size:16px;min-width:0;max-width:100%;box-sizing:border-box}
 .asy-assistant .aa-form{min-width:0}
 .asy-assistant .aa-form input{width:0;flex:1 1 0}
}

/* Stop the desktop launcher at the screen midpoint, then return down. */
@keyframes aa-edge-travel{
 0%,100%{transform:translate(0,0)}
 22%{transform:translate(-8px,min(0px,calc(45% + 9.9px - 22.5dvh)))}
 45%,55%{transform:translate(-3px,min(0px,calc(100% + 22px - 50dvh)))}
 78%{transform:translate(6px,min(0px,calc(50% + 11px - 25dvh)))}
}