/* Right-to-left additions for the Darija page ONLY (public/landing-ar.html; the English page does not load this file).
   landing.css is shared by both pages and written with start/end values, so the layout mirrors by itself once <html dir="rtl">
   is set. What does not mirror by itself is here. */

/* Arabic is a JOINED script. The shared stylesheet tightens headings with negative letter-spacing, and any tracking at all pulls
   the joins apart, so it is switched off for every element. The price digits (Latin, not joined) keep their tight look. */
html[dir=rtl] *{letter-spacing:normal!important}
html[dir=rtl] .price-num{letter-spacing:-2.4px!important}

/* Outfit has no Arabic glyphs, so the browser falls back per character. These are the system Arabic faces, named so the fallback
   is predictable. This is a DECISION, not a gap (Amine, 16 Oct 2026): Arabic uses the system face by choice; a self-hosted Arabic font was
   considered and rejected. Do not add an Arabic @font-face or a font file to public/landing/ (landing-rules fails on both). The system face is
   wider than Outfit, so the Darija headline takes more lines and the page is taller: accepted. */
html[dir=rtl] body{font-family:Outfit,"Segoe UI",Tahoma,"Geeza Pro","Noto Sans Arabic",Arial,sans-serif}

/* The shared line heights (1.08 to 1.15) are set for Latin capitals and clip Arabic marks above and below the line. */
html[dir=rtl] h1,html[dir=rtl] h2,html[dir=rtl] h3,html[dir=rtl] .card h3{line-height:1.35}
html[dir=rtl] h1{line-height:1.3}

/* Arrows point the way the reading goes: the diagonal arrows in the chips and buttons, and the arrow in the headline's lime pill.
   The drawing is mirrored INSIDE the svg (its <path>s, about the middle of the 24x24 viewBox), NOT with a transform on the <svg>. The first
   version transformed the <svg>, and a transformed element becomes its own stacking layer: it painted ABOVE the cards' stretched link
   overlay (.card-link::after), so a tap on the arrow's centre landed on the icon and did nothing (scripts/landing-cards-check.mjs failed on
   it, 10 Oct 2026). A transform on a child of the svg creates no stacking layer in the page. */
html[dir=rtl] .chip svg path,html[dir=rtl] .cta .arrow svg path,html[dir=rtl] .btn-outline svg path,html[dir=rtl] .btn-solid svg path,html[dir=rtl] .h1-pill svg path{transform:scaleX(-1);transform-box:view-box;transform-origin:center}

/* The lime spark in the "wins" header is placed with an INLINE style (right:0), which a stylesheet can only beat with !important. In
   English it sits at the right edge, away from the left-aligned heading; mirrored, the heading is at the right and the spark landed on
   top of its first word (seen in a screenshot of the Darija page, 10 Oct 2026). It moves to the left edge. */
html[dir=rtl] .wins-head .spark{right:auto!important;left:0!important}
