/* MITC mobile design (loaded only on phones, after style.css) */
@media(max-width:640px){
:root{--m-gap:16px}
body{font-size:16px;line-height:1.7;padding-bottom:72px}
.wrap{padding:0 var(--m-gap)}
/* top bar: one slim row with languages only (phone/email are one tap away in the bottom bar) */
.top .wrap{min-height:38px;justify-content:center;padding:0 10px}
.top .info{display:none}
.langs{gap:2px 14px;justify-content:center;width:100%}
.langs a{font-size:.8rem;padding:6px 0;gap:5px;border-bottom-width:2px}
.langs svg{width:18px;height:12px}
/* header */
header.hd .wrap,.hd .wrap{min-height:62px}
.logo img{height:46px}
.burger{width:42px;height:42px;border-radius:12px;font-size:1.2rem;background:#fff;border:1px solid var(--sky2)}
nav.main{padding:6px var(--m-gap) 14px}
nav.main a{font-size:1.05rem;padding:13px 0}
/* rhythm */
section{padding:42px 0}
h2{font-size:1.5rem;line-height:1.35}
.kick{font-size:.7rem;padding:4px 12px;margin-bottom:.8rem}
.grid{gap:14px}
.card,.paths .card{padding:22px}.sv{padding:22px}
/* hero */
.hero{padding:30px 0 38px}
.hero .cols2{gap:26px}
.hero h1{font-size:1.9rem;line-height:1.3}
html[lang=fa] .hero h1{line-height:1.5}
.hero p.lead{font-size:1rem;line-height:1.8}
.hero .btns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}
.hero .btns .btn{width:100%;padding:13px 10px;font-size:.92rem}
.hero .btns .btn:first-child{grid-column:1/-1;padding:14px 10px;font-size:1rem}
.hero .btns .btn:only-child{grid-column:1/-1}
.earth{max-width:100%;margin:6px 0 0}
.earth .eg>img.hero-net{border-radius:20px;box-shadow:0 14px 34px rgba(31,86,184,.25)}
.earth .langrow,.earth .mapcap{display:none}
.hero .cols2>div:first-child:before{display:none}
.hero h1{filter:none}
/* the two divisions */
.paths{margin-top:-18px;padding-bottom:36px}
.paths .card h2{font-size:1.45rem}
/* stats: compact 2x2 */
.stats{grid-template-columns:1fr 1fr}
.stat{padding:18px 8px}.stat b{font-size:1.9rem}.stat b:after{margin:8px auto 6px;width:30px}.stat span{font-size:.85rem;line-height:1.5}
.stat+.stat{border:0}.stat:nth-child(odd){border-inline-end:1px solid var(--line)}.stat:nth-child(n+3){border-top:1px solid var(--line)}
/* text blocks */
.why .quote,.quote{font-size:1rem;padding-inline-start:16px;text-align:start}
.steps{gap:6px}.step{padding:6px 0}
/* background art: none behind running text on phones; keep only a calm hero texture and tiny icon tiles */
section[data-bg=n8n]:not(.hero)::before,section[data-bg=n8nb]:not(.hero)::before,section[data-bg=make]:not(.hero)::before,section[data-bg=zapier]:not(.hero)::before,section[data-bg=mkt1]:not(.hero)::before,section[data-bg=mkt2]:not(.hero)::before,section[data-bg=mkt3]:not(.hero)::before{display:none}
section[data-bg=docs]:not(.hero)::before,section[data-bg=trade]:not(.hero)::before,section[data-bg=global]:not(.hero)::before,section[data-bg=faq]:not(.hero)::before,section[data-bg=contact]:not(.hero)::before{opacity:.06}
/* faq / forms */
summary{padding:15px 16px;font-size:1rem}details p{padding:0 16px 16px}
form.ct input,form.ct select,form.ct textarea{padding:14px;font-size:16px}
.cta .box,.cta-inline{padding:22px;border-radius:18px}
/* footer */
footer.ft{padding:42px 0 90px}footer.ft .cols{gap:26px}.flogo img{height:70px}
/* sticky bottom bar: slim, with safe-area padding */
.bar{padding:8px 12px calc(8px + env(safe-area-inset-bottom));gap:8px;box-shadow:0 -6px 18px rgba(20,33,61,.08)}
.bar .btn{padding:11px 8px;font-size:.92rem;border-radius:10px}
.totop{width:40px;height:40px;bottom:136px;inset-inline-end:16px;font-size:1.1rem}
/* knowledge center, laws */
.tabs{overflow-x:auto;flex-wrap:nowrap;gap:2px;margin-bottom:22px;-webkit-overflow-scrolling:touch;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}
.tabs button{white-space:nowrap;padding:12px 14px;font-size:.92rem}
.lawchips{flex-wrap:nowrap;overflow-x:auto;margin-inline:calc(var(--m-gap) * -1);padding:2px var(--m-gap) 8px;scrollbar-width:none}.lawchips::-webkit-scrollbar{display:none}.lawchip{white-space:nowrap;flex:none}
.lawlist{grid-template-columns:1fr}

/* calm hero on phones: plain soft gradient, no automation art behind the headline and text */
.hero.dark,.hero,.hero[data-bg]{background-image:radial-gradient(520px 320px at 90% 0,rgba(25,180,218,.16),transparent 62%),radial-gradient(420px 300px at 0 100%,rgba(243,176,7,.12),transparent 60%),linear-gradient(180deg,var(--sky),#fff)}
.hero.art-hero{background:linear-gradient(180deg,#EEF5FD,#fff)}
/* company cards: no dead space */
.co{padding:18px;gap:4px}.co i{width:40px;height:40px}.co a.dom{padding-top:4px;margin-top:6px}
.grid.g3>.co{min-height:0}

/* second fixes from phone screenshots */
.hero.light,.hero{padding:26px 0 36px}
.art-hero.hero.light{padding:24px 0 14px}
.hero .btns .btn:nth-child(2):last-child{grid-column:1/-1}
.fviz{height:260px}
.fviz .chart{top:18%}
}
