/* Arabic localization layer: keeps the original art direction while fixing RTL typography and flow. */
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700;800&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

html[dir="rtl"] { direction: rtl; }
html[dir="rtl"] body { direction: rtl; font-family: "IBM Plex Sans Arabic", sans-serif; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] h4, html[dir="rtl"] .logo, html[dir="rtl"] .gate-logo,
html[dir="rtl"] .loader-brand, html[dir="rtl"] .brief-title,
html[dir="rtl"] .beg-hero h1 { font-family: "Alexandria", sans-serif; letter-spacing: 0; }
html[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .gate-switch { direction: rtl; }
html[dir="rtl"] .drawer, html[dir="rtl"] .gate-wrap,
html[dir="rtl"] .beg-explain, html[dir="rtl"] .beg-compare,
html[dir="rtl"] .beg-steps, html[dir="rtl"] .beg-platforms,
html[dir="rtl"] .beg-what, html[dir="rtl"] .beg-faq,
html[dir="rtl"] .proof-copy, html[dir="rtl"] .footprint,
html[dir="rtl"] .brief { text-align: right; }
html[dir="rtl"] .gate-card { text-align: right; }
html[dir="rtl"] .gate-eyebrow { letter-spacing: 0; }
html[dir="rtl"] .gate-eyebrow::before { order: 2; }
html[dir="rtl"] .gate-card-head, html[dir="rtl"] .gate-foot,
html[dir="rtl"] .beg-hero-trust, html[dir="rtl"] .certs-head { direction: rtl; }
html[dir="rtl"] .gate-card { box-shadow: inset -3px 0 0 var(--meta); }
html[dir="rtl"] .gate-beginner { box-shadow: inset -3px 0 0 #fff; }
html[dir="rtl"] .gate-cta, html[dir="rtl"] .gate-continue { letter-spacing: 0; }
html[dir="rtl"] .beg-hero-lead { margin-inline: auto; }
html[dir="rtl"] .beg-hero-actions { justify-content: center; }
html[dir="rtl"] .sec-tag { letter-spacing: 0; }
html[dir="rtl"] .beg-explain-card, html[dir="rtl"] .beg-step,
html[dir="rtl"] .beg-plat, html[dir="rtl"] .beg-what-card { text-align: right; }
html[dir="rtl"] .beg-compare-col ul { padding-right: 1.2rem; padding-left: 0; }
html[dir="rtl"] .beg-faq-item summary { direction: rtl; }
html[dir="rtl"] .beg-faq-item summary span { margin-right: auto; margin-left: 0; }
html[dir="rtl"] .proof-grid, html[dir="rtl"] .fp-split { direction: rtl; }
html[dir="rtl"] .dos-row, html[dir="rtl"] .fp-card,
html[dir="rtl"] .fp-org, html[dir="rtl"] .site-foot { direction: rtl; }
html[dir="rtl"] .brief-title span { letter-spacing: 0; }
html[dir="rtl"] .beg-hero h1 { line-height: 1.3; }
html[dir="rtl"] .beg-hero h1 i { display: block; }
html[dir="rtl"] .gate-title { line-height: 1.2; }
html[dir="rtl"] .gate-title i { display: block; }
html[dir="rtl"] .gate-chips { direction: rtl; }
html[dir="rtl"] .gate-top { direction: rtl; }
html[dir="rtl"] .beg-steps-grid, html[dir="rtl"] .beg-explain-grid,
html[dir="rtl"] .beg-plat-grid, html[dir="rtl"] .beg-what-grid { direction: rtl; }
html[dir="rtl"] .proof-bullets { padding-right: 1.2rem; padding-left: 0; }
html[dir="rtl"] .gate-switch a { letter-spacing: 0; }
html[dir="rtl"] .brief-actions { direction: rtl; }
html[dir="rtl"] .beg-note { margin-top: 1.2rem; padding: 1rem 1.2rem; border-right: 2px solid var(--beg, #3ddc97); border-left: 0; background: rgba(255,255,255,.035); color: var(--mute); font-size: .9rem; }
html[dir="rtl"] .gate-switch a { direction: rtl; }
html[dir="rtl"] .fp-markets, html[dir="rtl"] .fp-orgs { text-align: right; }
html[dir="rtl"] .lab-head, html[dir="rtl"] .kb-head { direction: rtl; }
html[dir="rtl"] .method-ol { padding-right: 0; }
html[dir="rtl"] .decide-split, html[dir="rtl"] .sys-list, html[dir="rtl"] .fp-orgs { direction: rtl; }
html[dir="rtl"] .proof-visual { direction: ltr; }
html[dir="rtl"] .ticker-track, html[dir="rtl"] .mega-blow-track { direction: ltr; }

/* Latin display styles use compressed leading; give Arabic glyphs room to breathe. */
html[dir="rtl"] h1 { line-height: 1.3; }
html[dir="rtl"] h2 { line-height: 1.32; }
html[dir="rtl"] h3 { line-height: 1.28; }
html[dir="rtl"] h4 { line-height: 1.24; }
html[dir="rtl"] .gate-title { line-height: 1.35; }
html[dir="rtl"] .gate-card h3 { line-height: 1.25; }
html[dir="rtl"] .beg-hero h1 { line-height: 1.4; }
html[dir="rtl"] .brief-title { line-height: 1.32; }
@media (max-width: 1039px) {
  html[dir="rtl"] .drawer { text-align: right; }
  html[dir="rtl"] .drawer a { font-family: "IBM Plex Sans Arabic", sans-serif; line-height: 1.55; }
  html[dir="rtl"] .drawer-heading { letter-spacing: 0; }
}
