/* MERITIQA V5 — HOMEPAGE-ONLY MOBILE STABILISATION
   Preserves original desktop styling and homepage composition.
   Source baseline: supplied meritiqa-studio-theme/front-page.php + assets/home-23.css.
*/
@media(max-width: 1000px){
 body.home.m2-body,body.home.m2-body #main-content,body.home.m2-body .m4-home{max-width:100%;min-width:0}
 body.home.m2-body .m2-header .m2-head-inner{min-width:0}
 body.home.m2-body .m2-header .m2-logo{min-width:0;flex-shrink:1}
 body.home.m2-body .m2-header .m2-logo-text{min-width:0}
 body.home.m2-body .m2-header .m2-header-actions{margin-left:auto;flex-shrink:0}
 body.home.m2-body .m2-header .m2-menu-toggle{min-width:44px;min-height:44px;display:grid;align-content:center;justify-items:center}
 body.home.m2-body .m2-header .m2-nav.is-open{max-height:calc(100dvh - 72px);overflow-y:auto;overscroll-behavior:contain;padding-bottom:env(safe-area-inset-bottom)}
 body.home.m2-body .m2-header .m2-nav a{min-height:44px;display:flex;align-items:center;white-space:normal;line-height:1.4}
}
@media(max-width: 780px){
 body.home.m2-body .m4-home,body.home.m2-body .m4-home *{min-width:0}
 body.home.m2-body .m4-home .m2-container{width:100%;max-width:1400px;padding-inline:clamp(18px,5vw,32px)}
 body.home.m2-body .m4-home h1,body.home.m2-body .m4-home h2,body.home.m2-body .m4-home h3,body.home.m2-body .m4-home h4{overflow-wrap:break-word}
 body.home.m2-body .m4-home h1{font-size:clamp(36px,9vw,56px);letter-spacing:-.055em;line-height:1.08}
 body.home.m2-body .m4-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px}
 body.home.m2-body .m4-main-cta{max-width:100%;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:10px;white-space:normal;text-align:center}
 body.home.m2-body .m4-sub-link{min-height:44px;display:inline-flex;align-items:center}
 body.home.m2-body .m4-demo-top{flex-wrap:wrap;row-gap:9px}
 body.home.m2-body .m4-demo-top a{min-height:44px;display:inline-flex;align-items:center}
 body.home.m2-body .m4-live-demo{width:100%;max-width:100%;overflow:visible}
 body.home.m2-body .m4-demo-left,body.home.m2-body .m4-demo-study{width:100%;min-width:0}
 body.home.m2-body #m2-role-search{min-height:48px;font-size:16px}
 body.home.m2-body .m2-role-option,body.home.m2-body .m4-demo-left .m2-task-item{min-height:48px}
 body.home.m2-body .m4-demo-left .m2-task-item span{font-size:14px}
 body.home.m2-body .m4-depth-line{display:block}
 body.home.m2-body .m2-depth-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;margin-top:12px}
 body.home.m2-body .m2-depth-buttons button{min-height:48px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;column-gap:5px;padding:9px 5px;font-size:13px}
 body.home.m2-body .m2-depth-buttons button small{font-size:11px}
 body.home.m2-body .m4-demo-cta{display:inline-flex;align-items:center;min-height:44px;line-height:1.5}
 body.home.m2-body .m4-method-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.home.m2-body .m4-member-plans{grid-template-columns:1fr}
 body.home.m2-body .m4-member-button{min-height:48px;display:inline-flex;align-items:center;justify-content:center}
 body.home.m2-body .m4-q-grid{grid-template-columns:1fr}
}
@media(max-width: 480px){
 body.home.m2-body .m2-header{height:65px}
 body.home.m2-body .m2-header .m2-head-inner{gap:8px;padding-inline:14px}
 body.home.m2-body .m2-header .m2-logo{gap:8px}
 body.home.m2-body .m2-header .m2-brand-icon{width:32px;height:32px;flex-shrink:0}
 body.home.m2-body .m2-header .m2-logo-text>span{font-size:clamp(11px,3.7vw,14px);letter-spacing:.10em}
 body.home.m2-body .m2-header .m2-head-cta{font-size:11px;padding:9px 10px;white-space:normal;text-align:center;max-width:106px;line-height:1.2}
 body.home.m2-body .m2-header .m2-nav.is-open{max-height:calc(100dvh - 65px)}
 body.home.m2-body .m4-home-hero{padding-block:48px 44px}
 body.home.m2-body .m4-home h1{font-size:clamp(34px,9vw,45px);margin:22px 0}
 body.home.m2-body .m4-home-hero .m4-intro>p{font-size:16px;line-height:1.6}
 body.home.m2-body .m4-hero-actions .m4-main-cta{width:100%}
 body.home.m2-body .m4-section-intro h2,body.home.m2-body .m4-method h2,body.home.m2-body .m4-coverage-flex h2{font-size:clamp(31px,8vw,38px)}
 body.home.m2-body .m4-home-product{padding-block:45px}
 body.home.m2-body .m4-demo-top{padding:12px 14px}
 body.home.m2-body .m4-demo-identity{white-space:normal;font-size:11px}
 body.home.m2-body .m4-demo-left{padding:18px 15px}
 body.home.m2-body .m4-demo-study{padding:22px 15px}
 body.home.m2-body .m4-demo-study h3{font-size:clamp(24px,7vw,29px)}
 body.home.m2-body .m4-demo-overline{flex-wrap:wrap;font-size:9px}
 body.home.m2-body .m4-study-lesson{padding-left:14px}
 body.home.m2-body .m4-study-lesson p{font-size:15px}
 body.home.m2-body .m4-method-steps{grid-template-columns:1fr}
 body.home.m2-body .m4-member-plan{padding:20px}
 body.home.m2-body .m4-member-price{font-size:36px}
}
@media(max-width: 360px){
 body.home.m2-body .m2-header .m2-head-cta{display:none}
 body.home.m2-body .m2-header .m2-nav .m2-mobile-studio{display:flex!important}
 body.home.m2-body .m4-home-kicker{letter-spacing:.08em}
}
@media(prefers-reduced-motion:reduce){body.home.m2-body .m4-home *,body.home.m2-body .m2-header *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
