/* Equitient AI – phone layout for the inner pages (Case Studies, Privacy Policy, Refund Policy).
   Add under style.css:  <link rel="stylesheet" href="assets/css/mobile.css">   Applies on phones/tablets only. */
@media (max-width:820px){
 html{scroll-padding-top:76px;-webkit-text-size-adjust:100%}
 html,body{overflow-x:hidden;max-width:100%}
 body{-webkit-tap-highlight-color:transparent}
 img,svg,video,iframe{max-width:100%;height:auto}
 .wrap{width:100%;box-sizing:border-box;padding-left:18px;padding-right:18px}

 /* header: one tidy row; brochure button is not squeezed into the bar */
 header{position:sticky;top:0;z-index:1000;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:rgba(5,11,26,.9)}
 html[data-theme="light"] header{background:rgba(255,255,255,.92)}
 header nav{display:flex;align-items:center;flex-wrap:nowrap;gap:10px;padding-top:10px;padding-bottom:10px}
 header .brand{flex:1 1 auto;min-width:0;margin-right:auto}
 header .brand .brand-mark{height:38px;width:auto;max-width:160px;object-fit:contain;border-radius:8px}
 header nav>.dd{display:none}
 header .icon{flex:none;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center}

 /* page content never runs off the right edge */
 main{max-width:100%}
 h1{font-size:clamp(28px,8.2vw,38px);line-height:1.15;overflow-wrap:break-word}
 h2{font-size:clamp(22px,6.4vw,28px);line-height:1.22;overflow-wrap:break-word}
 h3{overflow-wrap:break-word}
 p,li,td,th,dd,dt{font-size:16px;line-height:1.7;overflow-wrap:break-word}
 a{overflow-wrap:anywhere}
 table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 pre,code{white-space:pre-wrap;overflow-wrap:anywhere}
 ul,ol{padding-left:22px}
 .grid,.grid.g2,.grid.g3{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
 .btn{min-height:48px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px}
 .btn:active,.card:active{transform:scale(.98)}
 details summary{min-height:48px;cursor:pointer}

 /* dropdowns stay inside the screen */
 .dd{position:relative}
 .dd-menu{left:0!important;right:0!important;width:auto!important;min-width:0!important;max-width:100%;box-sizing:border-box}
 .dd-menu button{width:100%;min-height:48px;text-align:left;font-size:15px}

 /* footer */
 .fgrid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:22px!important}
 .fgrid>div:first-child{grid-column:1/-1}
 .fgrid a{display:block;padding:7px 0}
 .fbottom{display:flex!important;flex-direction:column;align-items:flex-start;gap:6px;padding-bottom:12px}
 .wa{right:14px!important;bottom:14px!important;padding:11px 16px!important;font-size:14px!important}

 /* hero */
 .hero{min-height:0!important;padding:22px 0 34px!important}
 .hero .wrap{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:22px!important;min-height:0!important}
 .hero h1{font-size:clamp(32px,9.2vw,44px);line-height:1.12;margin:0 0 14px}
 .hero p{font-size:16px;line-height:1.65}
 .hero .art{display:block;width:100%;max-width:340px;height:auto;margin:4px auto 0}
 .cta{display:grid!important;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:20px}
 .cta .btn,.cta .dd,.cta .dd-btn{width:100%;box-sizing:border-box;justify-content:center;text-align:center}
 .marks{display:grid!important;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}
 .marks span{display:block;padding:12px 14px;border-radius:14px;background:rgba(120,150,255,.08);border:1px solid rgba(120,150,255,.18);font-size:13px;line-height:1.35}
 .marks span b{display:block;font-size:15px;margin-bottom:2px}

 /* sections */
 main section{padding-top:42px;padding-bottom:42px}
 main section.hero{padding-top:22px!important;padding-bottom:34px!important}
 .steps{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 .steps h3{font-size:15px;margin:0 0 6px}.steps p{font-size:13.5px;line-height:1.5;margin:0}
 .card{padding:18px;border-radius:18px;box-sizing:border-box}
 .tags{display:flex;flex-wrap:wrap;gap:8px}
 .prog .row2{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px}
 .prog .row2 .btn{width:100%;box-sizing:border-box;text-align:center;justify-content:center}
 .who{display:flex;align-items:center;gap:14px}

 /* contact form */
 .contact{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:26px!important}
 form .row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 form input,form select,form textarea{width:100%;box-sizing:border-box;font-size:16px;min-height:50px;border-radius:12px}
 form textarea{min-height:110px}
 form .btn{width:100%}

 /* bottom quick action bar */
 .eq-bar{display:flex;position:fixed;left:12px;right:12px;bottom:12px;bottom:max(12px,env(safe-area-inset-bottom));z-index:9000;gap:8px;padding:8px;border-radius:20px;background:rgba(8,14,40,.9);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(120,150,255,.28);box-shadow:0 14px 36px rgba(0,0,0,.45);transition:transform .3s ease,opacity .3s ease}
 .eq-bar.eq-hide{transform:translateY(150%);opacity:0;pointer-events:none}
 .eq-bar a{flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:center;gap:5px;min-height:48px;padding:0 4px;white-space:nowrap;border-radius:14px;font-weight:600;font-size:14px;text-decoration:none;color:#fff;transition:transform .15s ease}
 .eq-bar svg{width:17px;height:17px;flex:none;fill:currentColor}
 .eq-b-call{background:rgba(255,255,255,.1)}
 .eq-b-wa{background:#22c55e;color:#04210f!important}
 .eq-b-enq{background:linear-gradient(90deg,#12b8f0,#5b4bff 60%,#a64dff)}

 /* popup mobile bottom-sheet */
 .eq-overlay{align-items:flex-end!important;padding:0!important}
 .eq-modal{width:100%!important;max-height:94vh!important;border-radius:24px 24px 0 0!important;animation:eqUp .35s ease!important}
 .eq-left{padding:18px 18px 6px!important}
 .eq-left h2{font-size:18px!important;margin:0!important}
 .eq-logo{width:140px!important;margin-bottom:10px!important}
 .eq-sub,.eq-course,.eq-chips{display:none!important}
 .eq-right{padding:12px 18px calc(22px + env(safe-area-inset-bottom,0px))!important}
 .eq-f input,.eq-f select{height:50px!important;font-size:16px!important}
 .eq-close{top:10px!important;right:10px!important}
}

.eq-progress{position:fixed;top:0;left:0;height:3px;width:0;z-index:10001;background:linear-gradient(90deg,#17d4ff,#9b5cff);pointer-events:none}
.eq-bar{display:none}
@keyframes eqUp{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
@media (max-width:360px){.steps{grid-template-columns:minmax(0,1fr)!important}.marks{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.eq-js .eq-reveal{opacity:1;transform:none;transition:none}.eq-bar,.eq-modal{transition:none;animation:none!important}}