/* NeoMaturity final responsive pass — 2026-09-02 */
html,body{max-width:100%;overflow-x:hidden}
img,svg,video,canvas{max-width:100%}
:where(.hero-grid,.screens,.business,.image-row,.cards,.tool-grid,.decision-grid,.method-trust,.diagnostic-app)>*{min-width:0}
:where(h1,h2,h3,p,a,span,strong){overflow-wrap:anywhere}
@media(max-width:760px){
 .nav-in{min-height:66px;gap:9px}
 .brand{gap:8px;font-size:16px;min-width:0}
 .brand-mark{width:38px;height:38px;flex:0 0 38px}
 .brand-product-lockup{min-width:0;line-height:1.1}
 .brand-product-lockup small{font-size:9px;max-width:190px;white-space:normal}
 .nav-in>.btn{min-height:42px;padding:0 14px;font-size:13px;white-space:nowrap}
 .hero{padding-top:34px}
 .hero-grid{gap:22px}
 h1{font-size:clamp(36px,10vw,46px)!important;line-height:1!important}
 .lead{font-size:16px;line-height:1.6}
 .hero-photo{height:210px!important;object-position:center}
 .dashboard{margin-top:-56px!important;border-radius:20px!important}
 .dash-body{padding:12px!important}
 .floating{font-size:12px}
 .section{padding:38px 0}
 .head h2{font-size:32px}
 .cta{padding:22px!important;border-radius:22px!important}
}
@media(max-width:520px){
 .brand-product-lockup small{display:none}
 .nav-in>.btn{width:auto!important;padding:0 12px}
 .hero-photo{height:190px!important}
 .dashboard{margin-top:-42px!important}
 .f1,.f2{width:100%!important}
 .image-card img{height:190px!important}
}
/* diagnostic: preserve readable controls and prevent clipped result actions */
@media(max-width:760px){
 body.diagnostic-only .diagnostic-shell{width:min(100%,calc(100vw - 16px))!important;padding:8px 0!important}
 body.diagnostic-only .diagnostic-app{gap:8px!important}
 body.diagnostic-only .assistant{border-radius:18px!important;overflow:hidden!important}
 body.diagnostic-only .chat-head{gap:8px!important;padding:10px 11px!important}
 body.diagnostic-only .chat-agent{min-width:0!important}
 body.diagnostic-only .chat-agent>div{min-width:0!important}
 body.diagnostic-only .chat-agent strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px;display:block}
 body.diagnostic-only .status-pill{flex:0 0 auto;white-space:nowrap}
 body.diagnostic-only .panel{padding:15px!important}
 body.diagnostic-only .option,body.diagnostic-only .answer{min-width:0!important}
 body.diagnostic-only input,body.diagnostic-only select,body.diagnostic-only textarea{font-size:16px!important;max-width:100%}
 body.diagnostic-only #step5 .result-actions{gap:8px!important}
}
@media(max-width:430px){
 body.diagnostic-only .chat-agent strong{max-width:145px}
 body.diagnostic-only .status-pill{max-width:104px!important}
 body.diagnostic-only #step5 .result-actions{grid-template-columns:1fr!important}
}
