/* ==========================================================================
   VADR landing · Arabic (right-to-left)
   Loaded only by ar/index.html, after the other stylesheets. It swaps the font
   and mirrors the few things that were placed with left/right; the grids and
   flex rows already flip on their own under dir="rtl".
   ========================================================================== */

/* Arabic font; the Latin bits (VADR, M, 450) still use Inter / Geist Mono */
[dir="rtl"] {
  --font: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Sans Arabic", "Geist Mono", ui-monospace, monospace;
}
/* spacing letters apart breaks the joined Arabic letters */
[dir="rtl"] body *:not(.editor *) { letter-spacing: 0 !important; }
/* Arabic letters reach higher and lower than Latin ones, so the big lines need more room */
[dir="rtl"] h1, [dir="rtl"] h2 { line-height: 1.15; }
[dir="rtl"] h3 { line-height: 1.35; }
/* body text: Arabic reads better with a little more air than Latin */
[dir="rtl"] p, [dir="rtl"] li { line-height: 1.75; }

/* the code, web address, email and phone stay left-to-right */
[dir="rtl"] .editor { direction: ltr; text-align: left; }
[dir="rtl"] .shop > .shop__bar span,
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[name="site"] { direction: ltr; text-align: right; }
[dir="rtl"] input::placeholder { text-align: right; }

/* nav */
[dir="rtl"] .badge { padding: 6px 10px 6px 12px; }

/* hero: the copy sits on the right, he stands on the left (js mirrors him) */
@media (min-width: 901px) {
  [dir="rtl"] .merge__copy { left: auto; right: 6.4vw; }
  /* the English paragraph rides up under the headline; Arabic letters hang lower, so it stays put */
  [dir="rtl"] .merge__copy p { top: 0; }
  [dir="rtl"] .merge__actions { left: auto; right: 0; }
  /* touch screens wider than a phone: the chip sits on his right */
  [dir="rtl"] .merge__status { transform: none; align-items: flex-start; }
}

/* 01 How it works */
[dir="rtl"] .how-b__step { padding-left: 0; border-left: 0; padding-right: 28px; border-right: 1px solid var(--rail); }
[dir="rtl"] .how-b__stage, [dir="rtl"] .gets-b__stage { margin: 0 var(--shift) 0 calc(-1 * var(--shift)); }
[dir="rtl"] .mock__tag, [dir="rtl"] .gets__chip { left: auto; right: 12px; }
[dir="rtl"] .shop__bar span { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .shop__stock span { left: auto; right: 0; padding-left: 0; padding-right: 14px; }
[dir="rtl"] .shop__stock span::before { left: auto; right: 0; }

/* 02 What the store gets */
[dir="rtl"] .gets-b__tab { text-align: right; }
[dir="rtl"] .gets-b__tab::after { transform-origin: right; }
[dir="rtl"] .gets__fit em, [dir="rtl"] .gets__bars em, [dir="rtl"] .gets__top em { text-align: left; }
[dir="rtl"] .gets__kpis div + div { border-left: 0; border-right: 1px solid #e5e7eb; }
[dir="rtl"] .gets__bars b::after, [dir="rtl"] .gets__top b::after { inset: 0 0 0 auto; }

/* 03 Founding 20 */
[dir="rtl"] .offer__list li { padding-left: 0; padding-right: 32px; }
[dir="rtl"] .offer__list li::before { left: auto; right: 0; }

/* 05 FAQ */
[dir="rtl"] .faq__q { text-align: right; }

@media (max-width: 900px) {
  [dir="rtl"] .how-b__stage, [dir="rtl"] .gets-b__stage { margin: 0; }
}
