/* ===== RTL / Hebrew layer — loaded only on pages with <html lang="he" dir="rtl"> (he/*.html) ===== */
[dir="rtl"] body { line-height: 1.6; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .h-display, [dir="rtl"] .h-section, [dir="rtl"] .h-cta { letter-spacing: 0; }
[dir="rtl"] .h-display { line-height: 1.18; }
[dir="rtl"] .h-section { line-height: 1.25; }
[dir="rtl"] .lead, [dir="rtl"] .section-sub { line-height: 1.55; }
/* Hebrew has no case: never uppercase or track eyebrows */
[dir="rtl"] .hero__eyebrow, [dir="rtl"] .eyebrow, [dir="rtl"] .hc-eyebrow { text-transform: none; letter-spacing: 0; font-size: 16px; }

/* "Forward" arrows point left in RTL (scale composes with the hover transforms) */
[dir="rtl"] .ico:has(> use[href="#i-arrow"]) { scale: -1 1; }
[dir="rtl"] .link-arrow:hover .ico { transform: translateX(4px); } /* icon is flipped with scale:-1 1, so +4px moves it left */
[dir="rtl"] .cap-card:hover .cap-card__go { transform: translateX(-2px); }

/* Cards with an end-corner arrow button */
[dir="rtl"] .cap-card { padding: 28px 19px 88px 28px; }
[dir="rtl"] .cap-card__go { right: auto; left: 28px; }

/* Reveal animations that slide horizontally mirror */
[dir="rtl"].motion [data-anim="left"] { transform: translate3d(calc(var(--m-dist) * 1.4), 0, 0); }
[dir="rtl"].motion [data-anim="right"] { transform: translate3d(calc(var(--m-dist) * -1.4), 0, 0); }
[dir="rtl"].motion [data-anim].is-in { transform: none; }

/* Absolute-positioned illustrations keep their composed LTR geometry; text inside stays RTL */
[dir="rtl"] .hero-collage, [dir="rtl"] .hub { direction: ltr; }
[dir="rtl"] .hub__node { direction: rtl; }

/* CTA background shapes sit behind the end side of the text */
[dir="rtl"] .cta__shapes { transform: scaleX(-1); }

/* Menus */
[dir="rtl"] .mega a, [dir="rtl"] .mega--lg .mega__col a { text-align: right; }
[dir="rtl"] .mega--lg .mega__col a strong, [dir="rtl"] .mega--lg .mega__col a span { direction: ltr; text-align: right; unicode-bidi: plaintext; }
[dir="rtl"] .mobile-menu a { text-align: right; }

/* Brand name and Latin terms inside Hebrew text */
[dir="rtl"] [dir="ltr"] { unicode-bidi: isolate; }

/* Cookie banner / settings dialog */
[dir="rtl"] .cmodal__foot { justify-content: flex-start; }
[dir="rtl"] .switch span::after { left: auto; right: 4px; }
[dir="rtl"] .switch input:checked + span::after { transform: translateX(-30px); }

/* ================= Global mirror fixes (style.css / pages.css components) ================= */
[dir="rtl"] .skip-link { left: auto; right: 16px; }
[dir="rtl"] .btn:hover .ico:has(> use[href="#i-arrow"]), [dir="rtl"] .mega__all:hover .ico, [dir="rtl"] .explore a:hover i,
[dir="rtl"] .paths a:hover .ico { transform: translateX(4px); }
[dir="rtl"] .nf__links a:hover i { transform: translateX(-4px); }
[dir="rtl"] .paths a:hover > span { transform: translateX(-6px); }
/* breadcrumb separators point left */
[dir="rtl"] .crumbs li + li::before, [dir="rtl"] .breadcrumb li + li::before { border-right: 0; border-left: 1.5px solid currentColor; transform: rotate(-45deg); }
[dir="rtl"] .crumbs li + li::before { border-left-color: var(--muted); }
/* bullet / dot / check lists: marker on the right */
[dir="rtl"] .dot-list li, [dir="rtl"] .dots li, [dir="rtl"] .kb li, [dir="rtl"] .sec-resp li, [dir="rtl"] .aichat__a li { padding-left: 0; }
[dir="rtl"] .dot-list li { padding-right: 32px; }
[dir="rtl"] .dots li, [dir="rtl"] .kb li { padding-right: 28px; }
[dir="rtl"] .sec-resp li { padding-right: 30px; }
[dir="rtl"] .aichat__a li { padding-right: 16px; }
[dir="rtl"] .dot-list li::before, [dir="rtl"] .dots li::before, [dir="rtl"] .kb li::before, [dir="rtl"] .sec-resp li::before { left: auto; right: 0; }
[dir="rtl"] .aichat__a li::before { left: auto; right: 2px; }
[dir="rtl"] .int-defs li::before { left: auto; right: 0; }
[dir="rtl"] .legal__body ul { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .legal-table th, [dir="rtl"] .legal-table td { padding: 20px 0 20px 20px; text-align: right; }
/* column dividers */
[dir="rtl"] .resp > div + div, [dir="rtl"] .badges li + li, [dir="rtl"] .stages li + li, [dir="rtl"] .platlayers li + li, [dir="rtl"] .tri > div + div { border-left: 0; border-right: 1px solid #dededb; }
[dir="rtl"] .stepper > li + li { border-left: 0; border-right: 1px solid rgba(255, 255, 255, .3); }
[dir="rtl"] .tri > div + div { border-right-color: #d6d6d3; }
[dir="rtl"] .stages li + li { border-right-color: #e6e6e3; }
[dir="rtl"] .platlayers li + li { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .tri > div:first-child { padding-left: 28px; padding-right: 0; }
[dir="rtl"] .badges--spread li:first-child { padding-left: clamp(12px, 2.4vw, 40px); padding-right: 0; }
[dir="rtl"] .badges--spread li:last-child { padding-right: clamp(12px, 2.4vw, 40px); padding-left: 0; }
@media (max-width: 1100px) {
  [dir="rtl"] .resp > div + div, [dir="rtl"] .stepper > li:nth-child(3), [dir="rtl"] .stages li:nth-child(3), [dir="rtl"] .badges--desc li + li { border-right: 0; }
  [dir="rtl"] .platlayers li, [dir="rtl"] .platlayers li + li { padding: 20px 0 0; border-right: 0; }
  [dir="rtl"] .tri > div { border-right: 0 !important; }
}
@media (max-width: 767px) {
  [dir="rtl"] .stepper > li + li, [dir="rtl"] .stages li + li { border-right: 0; }
  [dir="rtl"] .badges li { border: 0 !important; }
}
[dir="rtl"] .quote { padding-left: 0; padding-right: 16px; border-left: 0; border-right: 4px solid var(--green-500); }
[dir="rtl"] .int-examples-grid li { border-left: 0; border-right: 4px solid var(--green-500); }
[dir="rtl"] .pfield label .req { margin-left: 0; margin-right: 2px; }
[dir="rtl"] .pfield select { background-position: left 16px center; padding-left: 44px; padding-right: 16px; }
[dir="rtl"] .modal__close { right: auto; left: 12px; }
[dir="rtl"] .compare__col--good li.is-key b::after { content: "הבדל מרכזי"; margin-left: 0; margin-right: 10px; }
[dir="rtl"] .int-app__bar span { margin-left: 0; margin-right: auto; }
[dir="rtl"] .aichat__ctx { margin-left: 0; margin-right: auto; text-align: left; }
[dir="rtl"] .aichat__av i { right: auto; left: -1px; }
@media (max-width: 1240px) and (min-width: 1101px) { [dir="rtl"] .contact__form-wrap { padding-left: 0; padding-right: 48px; } }
/* video play triangle keeps its optical offset toward the arrow tip */
[dir="rtl"] .video__play .ico { margin-left: 4px; }

/* ================= Homepage ================= */
/* hero collage keeps LTR geometry; the copy inside reads RTL */
[dir="rtl"] .hero-collage .hc-dark__copy, [dir="rtl"] .hero-collage .hc-tile--gray p, [dir="rtl"] .hero-collage .hc-card,
[dir="rtl"] .hero-collage .hc-order, [dir="rtl"] .hero-collage .hc-account { direction: rtl; text-align: right; }
/* workflow story keeps its composition (curved arrow images point to fixed spots) */
[dir="rtl"] .flow__row { direction: ltr; }
[dir="rtl"] .flow__row > .flow__copy, [dir="rtl"] .flow__row .steps { direction: rtl; text-align: right; }
[dir="rtl"] .flow__arrow--2 { left: 555px; }
/* progress steps read right-to-left, connector on the leading (left) side */
[dir="rtl"] .steps li::before { left: auto; right: 0; }
[dir="rtl"] .steps li:not(:last-child)::after { left: auto; right: 34px; background: linear-gradient(270deg, var(--green-500), transparent); }
[dir="rtl"] .tab-panel__img { justify-self: start; }
@media (max-width: 1100px) { [dir="rtl"] .tab-panel__img { justify-self: end; } }
[dir="rtl"] .pg-platform .platlayers li, [dir="rtl"] .pg-platform .platlayers li + li { padding: 0; border: 0; }

/* How it works — wave timeline keeps its LTR geometry (SVG curve + nodes); copy reads RTL */
/* full mirror of the timeline: columns flip with the RTL grid, nodes/chips/curve mirrored */
[dir="rtl"] .wave__copy { text-align: right; }
@media (min-width: 901px) {
  [dir="rtl"] .wave__svg { scale: -1 1; }
  [dir="rtl"] .wave__dot { left: auto; right: 30px; }
  [dir="rtl"] .wave li:nth-child(even) .wave__dot { left: auto; right: 130px; }
  [dir="rtl"] .wave__node .chip { left: auto; right: -78px; }
  [dir="rtl"] .wave li:nth-child(even) .wave__node .chip { left: auto; right: 198px; }
  [dir="rtl"] .wave li:nth-child(odd) .wave__copy { padding-right: 0; padding-left: 110px; }
  [dir="rtl"] .wave li:nth-child(even) .wave__copy { padding-left: 0; padding-right: 112px; }
  [dir="rtl"] .pg-hiw .wave li:nth-child(even) .wave__copy { padding-right: 90px; }
}
[dir="rtl"] .wave p { line-height: 1.5; }
/* "back" arrows mirror too */
[dir="rtl"] .ico:has(> use[href="#i-arrow-left"]) { scale: -1 1; }
/* Hebrew is never tracked (small caps-style eyebrows/labels included) */
[dir="rtl"] body * { letter-spacing: 0 !important; }
[dir="rtl"] .int-defs li { padding: 14px 40px 14px 0; }
@media (max-width: 767px) { [dir="rtl"] .int-defs li { padding-right: 36px; } }
[dir="rtl"] .auto-flow .arr { scale: -1 1; }

/* Phone numbers, e-mails, URLs, codes: always LTR islands inside Hebrew */
[dir="rtl"] a[href^="tel:"], [dir="rtl"] a[href^="mailto:"], [dir="rtl"] .phone__code, [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"], [dir="rtl"] input[type="url"] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"], [dir="rtl"] input[type="url"] { text-align: right; }
[dir="rtl"] input[type="tel"]::placeholder, [dir="rtl"] input[type="email"]::placeholder, [dir="rtl"] input[type="url"]::placeholder { text-align: right; }
@media (max-width: 1100px) { [dir="rtl"] .header__actions { margin-left: 0; margin-right: auto; } }
/* Language switch stays reachable on mobile (Hebrew pages) */
@media (max-width: 1100px) {
  [dir="rtl"] .header__actions .lang { display: block; }
  [dir="rtl"] .header__actions { gap: 4px; }
  [dir="rtl"] .header__actions .lang .mega--sm { left: 0; right: auto; translate: none; transform: none; }
}
@media (max-width: 767px) {
  [dir="rtl"] .tabs__bar { margin-left: var(--gutter); margin-right: var(--gutter); border-radius: var(--pill); }
}
[dir="rtl"] .sol-hero .crumbs li + li::before { border-top-color: #fff; border-left-color: #fff; border-right: 0; }
@media (max-width: 900px) { [dir="rtl"] .wave ol::before { left: auto; right: 19px; } }
