/* Morph — Arabic (RTL) layer. Loaded after site.css on /ar/ pages only. */
:root {
  --serif: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
  --sans: "IBM Plex Sans Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
body { font-size: 1.125rem; line-height: 1.8; }

/* Arabic letters join: never track them. Tall naskh needs looser leading. */
h1, h2, h3, .brand, .btn-store small, .btn-soon small, .btn-store b, .lens .sub, .lens h3 { letter-spacing: 0; }
h1, h2, h3 { font-weight: 700; }
h1 { font-size: clamp(2.75rem, 7.4vw, 5.25rem); line-height: 1.3; }
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.35; }
h3 { line-height: 1.45; }
.lens h3, .steps h3 { font-size: 1.5rem; }
.also dt { font-weight: 700; line-height: 1.5; }
.prism-close { font-weight: 700; line-height: 1.6; }
.final h2 { font-size: clamp(2.25rem, 6vw, 4.25rem); line-height: 1.35; }
.doc h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); }
.doc h2 { line-height: 1.45; }
.btn { font-weight: 500; line-height: 1.2; }
.btn-store b { font-family: "Space Grotesk", var(--sans); }
.faq summary { line-height: 1.6; }
[lang="en"] { font-family: "Space Grotesk", var(--sans); }

/* ---------- Direction flips ---------- */
.skip { left: auto; right: 8px; transform: translateY(-300%); }
.skip:focus { left: auto; transform: none; }
.aurora.a1 { right: auto; left: -25vw; }
.aurora.a2 { left: auto; right: -25vw; }
.site-head nav { margin-left: 0; margin-right: auto; }
.site-head nav a.nav-cta { margin-left: 0; margin-right: 8px; }
.btn-store { padding: 0 14px 0 18px; }
.btn-soon { padding: 0 14px 0 16px; }
.btn-store .lines, .btn-soon .lines { text-align: right; }
@media (max-width: 900px) { .hero-copy { text-align: right; } }

/* Phone fan: the "next" card sits on the left in RTL. */
.stage .card[data-pos="1"] { --x: -46%; --r: -7deg; }
.stage .card[data-pos="4"] { --x: 46%; --r: 7deg; }
.stage .card[data-pos="2"] { --x: -70%; --r: -12deg; }
.stage .card[data-pos="3"] { --x: 70%; --r: 12deg; }
@media (max-width: 420px) {
  .stage .card[data-pos="1"] { --x: -36%; }
  .stage .card[data-pos="4"] { --x: 36%; }
}

.lens::before { left: auto; right: 0; background: linear-gradient(270deg, rgba(255, 255, 255, 0.9), var(--tone)); }
.lens .sub { margin-left: 0; margin-right: 10px; }
.glyph { font-family: "Amiri", serif; }
@media (max-width: 480px) { .lens .sub { margin: 4px 0 0; } }

.also div { padding: 28px 0 8px 24px; }
.also div + div { padding-left: 0; padding-right: 24px; border-left: 0; border-right: 1px solid var(--hair); }
@media (max-width: 900px) {
  .also div:nth-child(3) { padding-right: 0; border-right: 0; }
}
@media (max-width: 520px) {
  .also div, .also div + div { padding: 24px 0 4px; border-right: 0; }
}

.steps li::before { left: auto; right: 0; }
@media (max-width: 760px) { .steps li { padding-left: 0; padding-right: 72px; } }

.faq summary { padding: 22px 0 22px 44px; }
.faq summary::after { right: auto; left: 6px; }

.doc ul, .doc ol { padding-left: 0; padding-right: 1.25em; }
.doc th, .doc td { text-align: right; }
.doc h3 { font-family: var(--sans); }

/* ---------- Arabic-only pieces ---------- */
.notice { margin-top: 20px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 193, 7, 0.08); border: 1px solid rgba(255, 193, 7, 0.28); color: var(--text); font-size: 0.975rem; }
.crumbs { font-size: 0.9375rem; color: var(--dim); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "‹"; margin-left: 6px; opacity: 0.6; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--bright); }
.guide .wrap { max-width: 800px; }
.guide h1 { margin-top: 18px; }
.guide .lede { margin-top: 24px; }
.guide h2 { font-size: clamp(1.75rem, 3.6vw, 2.375rem); line-height: 1.45; }
.guide .figure-row { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; margin: 40px 0 8px; }
.guide .figure-row .shot { max-width: 220px; }
@media (max-width: 640px) { .guide .figure-row { grid-template-columns: 1fr; } .guide .figure-row .shot { justify-self: center; } }
.kinds { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.kinds li { padding: 18px 0; border-top: 1px solid var(--hair); }
.kinds li:last-child { border-bottom: 1px solid var(--hair); }
.kinds b { display: block; color: var(--bright); font: 700 1.375rem/1.5 var(--serif); }
.doc .kinds li + li { margin-top: 0; }
.guide .cta-block { margin-top: 56px; padding: 32px; border-radius: 22px; background: linear-gradient(135deg, rgba(97, 73, 255, 0.24), rgba(30, 30, 38, 0.9)); border: 1px solid rgba(138, 120, 255, 0.3); }
.guide .cta-block h2 { margin-top: 0; }
.guide .cta-block .ctas { margin-top: 24px; }
.sirin-link { margin-top: 28px; }
.guide h1 .tide { display: block; font-size: 0.72em; margin-top: 8px; }
