/* ============================================================================
   resolvix.pro/ar — right-to-left overrides
   ----------------------------------------------------------------------------
   Loaded only by ar/index.html, after styles.css and hero-story.css. The hero
   illustration already mirrors itself (hero-story.css uses logical
   properties); what is left here is the handful of rules in styles.css that
   assume left-to-right, plus type settings Arabic needs.
   ========================================================================== */

/* Geist has no Arabic, so Latin (Resolvix, KB-2018, the numbers) stays in
   Geist and Arabic falls through to the system's Arabic face. */
:root {
  --font: "Geist", -apple-system, "SF Arabic", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

/* Letter-spacing breaks the joins between Arabic letters, and the tight
   heading line-heights clip the dots above and below them. */
html[dir="rtl"] body * { letter-spacing: 0 !important; }
html[dir="rtl"] h1, html[dir="rtl"] h2 { line-height: 1.3; }
html[dir="rtl"] h3 { line-height: 1.45; }
html[dir="rtl"] .hero__copy h1 { line-height: 1.25; }

/* Small labels were set in Geist Mono caps; Arabic has neither, and the
   fallback monospace Arabic is badly spaced. Digits keep their fixed widths. */
html[dir="rtl"] .mono,
html[dir="rtl"] .aging__scale span,
html[dir="rtl"] .gaprow em,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .care-kicker,
html[dir="rtl"] .tag,
html[dir="rtl"] .foot__col h4 { font-family: var(--font); }
html[dir="rtl"] .eyebrow { font-size: 13px; }
html[dir="rtl"] .hero__copy .eyebrow { font-size: 12px; }
html[dir="rtl"] .care-kicker { font-size: 11px; }
html[dir="rtl"] .tag { font-size: 11px; }
html[dir="rtl"] .foot__col h4 { font-size: 12px; }

/* ------------------------------------------------------------- chrome ---- */
.nav__progress { transform-origin: right; background: linear-gradient(270deg, var(--teal), var(--amber-lit)); }
.btn:hover .arw { transform: translateX(-4px); }

/* --------------------------------------------------------- hero story ---- */
.care-panel--before { transform: translateX(15px); }
.care-story[data-mode=without] .care-panel--after { transform: translateX(-18px); }
.care-routes { transform: scaleX(-1); }
.care-connection { transform-origin: left; }
.care-progress__fill { transform-origin: right; }
.customer-message { border-radius: 14px 14px 4px 14px; }
.care-resource--docs { transform: rotate(2deg); }
.care-resource--away { transform: rotate(-1.5deg); }
.care-resource--busy { transform: rotate(1deg); }

/* ---------------------------------------------------------- what it is --- */
.tri__n { right: auto; left: 24px; }
.tri__list li { padding-left: 0; padding-right: 16px; }
.tri__list li::before { left: auto; right: 0; }

/* ------------------------------------------------------- ageing card ----- */
.aging__due { left: auto; right: 76.9%; }
.aging__scale span:nth-child(1) { left: auto; right: 0; }
/* Ends at the marker on the day-0 side, mirroring the English layout. */
.aging__scale span:nth-child(2) { left: auto; right: 76.9%; transform: translateX(100%); }
.aging__scale span:nth-child(3) { right: auto; left: 0; }
.aging__fill { border-radius: 0 4px 4px 0; background: linear-gradient(270deg, var(--published), var(--amber-lit)); }

/* --------------------------------------------------------- lifecycle ----- */
.step:first-child { padding-left: 10px; padding-right: 0; }
.step:last-child { padding-right: 10px; padding-left: 0; }
.step__seg { transform-origin: right; }
.step__dot { margin-right: 0; margin-left: 6px; }
.loop__arc svg { transform: scaleX(-1); }
@media (max-width: 860px) {
  .step:first-child, .step:last-child { padding-inline: 0; }
  .step__seg { transform-origin: top; }
  .step__dot { margin: 3px 0 6px; }
}

/* ---------------------------------------------------------- showcase ----- */
.chapter::before { left: auto; right: 0; }

/* -------------------------------------------------------------- gaps ----- */
.gapact { margin-left: 0; margin-right: auto; }

/* --------------------------------------------------------------- faq ----- */
.qa__body { padding: 0 0 22px 40px; }
.qa__body li { padding-left: 0; padding-right: 17px; }
.qa__body li::before { left: auto; right: 0; }
