/* Arabic: right-to-left fixes on top of the normal styles (loaded only when Arabic is on) */
html[dir=rtl] body,html[dir=rtl] input,html[dir=rtl] button,html[dir=rtl] select,html[dir=rtl] textarea{font-family:system-ui,-apple-system,"Segoe UI",Tahoma,"Noto Sans Arabic","Geeza Pro",Arial,sans-serif}
/* Letter-spacing breaks the joined Arabic letters, and Arabic has no capitals. */
html[dir=rtl] *{letter-spacing:0!important}
html[dir=rtl] .eyebrow,html[dir=rtl] [class*=eyebrow]{text-transform:none}
html[dir=rtl] p,html[dir=rtl] li,html[dir=rtl] small{line-height:1.7}
/* Numbers, emails, usernames and codes read left to right inside Arabic text. */
html[dir=rtl] input[type=email],html[dir=rtl] input[type=number],html[dir=rtl] input[type=tel],html[dir=rtl] input[inputmode=numeric],html[dir=rtl] input[name=email],html[dir=rtl] input[name=handle],html[dir=rtl] input[name=code]{direction:ltr;text-align:right}
html[dir=rtl] code,html[dir=rtl] .secret{direction:ltr;unicode-bidi:isolate}
/* The language switch stays visible on phones. */
@media(max-width:700px){html .landing-nav .text-btn.lang-toggle{display:inline-flex}}
/* Arabic labels are longer, so tighter gaps keep the top bar inside a 360 px phone. */
@media(max-width:420px){html[dir=rtl] .landing-nav>div{gap:10px}}
@media(max-width:340px){html[dir=rtl] .landing-nav{padding-left:12px;padding-right:12px}html[dir=rtl] .landing-nav>div{gap:6px}}

/* Pictures behind text. In English the text sits on the left over a dark shade; in Arabic it sits on the right,
   so the shade and the photo are mirrored too (the -rtl pictures are flipped copies). */
html[dir=rtl] .landing-hero{background:linear-gradient(270deg,#090a09 0%,rgba(9,10,9,.92) 33%,rgba(9,10,9,.2) 65%),url('/assets/landing-hero-rtl.webp') center/cover}
html[dir=rtl] .community-proof{background:linear-gradient(270deg,rgba(7,8,7,.05),#090a09 73%),url('/assets/community-cover-rtl.webp') right center/cover}
html[dir=rtl] .cover-training{background-image:linear-gradient(270deg,#080908 0,rgba(8,9,8,.2)),url('/assets/training-cover-rtl.webp')}
html[dir=rtl] .cover-nutrition{background-image:linear-gradient(270deg,#080908 0,rgba(8,9,8,.25)),url('/assets/nutrition-cover-rtl.webp')}
html[dir=rtl] .cover-community{background-image:linear-gradient(270deg,#080908 0,rgba(8,9,8,.3)),url('/assets/community-cover-rtl.webp')}
html[dir=rtl] .cover-recovery{background-image:linear-gradient(270deg,#080908 0,rgba(8,9,8,.2)),url('/assets/recovery-cover-rtl.webp')}
html[dir=rtl] .pro-locks-head.has-banner{background:linear-gradient(270deg,rgba(8,9,8,.94) 0,rgba(8,9,8,.72) 42%,rgba(8,9,8,.1) 100%),url('/assets/pro/services-banner-rtl.webp') 30% 30%/cover #0b0b09}
@media(min-width:1021px){
  html[dir=rtl] .pp-hero-art{left:calc((100% - 100vw)/2);right:38%;border-radius:0 0 28px 0}
  html[dir=rtl] .pp-hero-art img{transform:scaleX(-1)}
  html[dir=rtl] .pp-hero-art:after{background:linear-gradient(270deg,var(--bg) 0,rgba(9,10,9,.72) 26%,rgba(9,10,9,.08) 62%,rgba(9,10,9,.5) 100%),linear-gradient(0deg,var(--bg) 0,transparent 30%)}
}
@media(max-width:700px){
  html[dir=rtl] .landing-hero{background-position:37% center}
  html[dir=rtl] .community-proof{background-position:65% center}
}
@media(max-width:640px){
  html[dir=rtl] .pro-locks-head.has-banner{background:linear-gradient(180deg,rgba(8,9,8,.05) 0,rgba(8,9,8,.55) 45%,rgba(8,9,8,.95) 78%),url('/assets/pro/services-banner-rtl.webp') 50% 0/cover #0b0b09}
}
/* Pro and Features pages: tick lists and the numbers strip read from the right. */
html[dir=rtl] .pp-ticks li{padding-left:0;padding-right:28px}
html[dir=rtl] .pp-ticks li:before{left:auto;right:0}
html[dir=rtl] .pp-assure li:before{margin-right:0;margin-left:8px}
html[dir=rtl] .pp-strip>div{border-right:0;border-left:1px solid var(--line)}
html[dir=rtl] .pp-strip>div:last-child{border-left:0}
@media(max-width:1020px){html[dir=rtl] .pp-strip>div:nth-child(3){border-left:0}}
@media(max-width:640px){html[dir=rtl] .pp-strip>div{border-right:0!important;border-left:1px solid var(--line)!important}html[dir=rtl] .pp-strip>div:nth-child(2n),html[dir=rtl] .pp-strip>div:last-child{border-left:0!important}}
/* Units pinned inside number boxes (steps, years, kg, kcal/day…) move to the left edge in Arabic, with room for
   the longer Arabic words, so they never sit on top of the number, which reads from the right. */
html[dir=rtl] .plan-unit input{padding-right:14px!important;padding-left:88px!important}
html[dir=rtl] .plan-unit input~em{right:auto;left:14px}
html[dir=rtl] .weight-input input{padding-right:12px!important;padding-left:44px!important}
html[dir=rtl] .weight-input b{right:auto;left:12px}
html[dir=rtl] .nutrition-target-fields input{padding-right:12px;padding-left:76px}
html[dir=rtl] .nutrition-target-fields label small{right:auto;left:9px}
