/* Samo, Arabic edition (ar/*.html only). Loads after styles.css.
   Fonts: the Arabic faces are registered under the SAME family names as the Latin ones, limited to the Arabic
   unicode range, so every rule in styles.css keeps working: Arabic letters draw in the Arabic face, Latin words,
   numbers and the logo stay in Barlow / JetBrains Mono / Instrument Serif. Headings get Alexandria. */
@font-face{font-family:'Barlow';font-weight:400;src:url(fonts/ar/plex-400.woff2) format('woff2');font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:'Barlow';font-weight:500;src:url(fonts/ar/plex-500.woff2) format('woff2');font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:'Barlow';font-weight:600;src:url(fonts/ar/plex-600.woff2) format('woff2');font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:'Barlow';font-weight:700;src:url(fonts/ar/plex-700.woff2) format('woff2');font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:'JetBrains Mono';font-weight:500;src:url(fonts/ar/plex-500.woff2) format('woff2');font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:'JetBrains Mono';font-weight:600 700;src:url(fonts/ar/plex-600.woff2) format('woff2');font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:'Instrument Serif';font-style:italic;font-weight:400;src:url(fonts/ar/amiri-400.woff2) format('woff2');font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:'Instrument Serif';font-style:normal;font-weight:400;src:url(fonts/ar/amiri-400.woff2) format('woff2');font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:'Samo Head';font-weight:400 500;src:url(fonts/ar/alexandria-500.woff2) format('woff2');font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:'Samo Head';font-weight:600;src:url(fonts/ar/alexandria-600.woff2) format('woff2');font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:'Samo Head';font-weight:700 800;src:url(fonts/ar/alexandria-700.woff2) format('woff2');font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}

:root{--head:'Samo Head','Barlow',system-ui,sans-serif}
html[lang=ar] body{font-synthesis:none;text-rendering:optimizeLegibility}

/* Arabic letters must join: no tracking anywhere, except number-only displays */
html[lang=ar] *,html[lang=ar] *::before,html[lang=ar] *::after{letter-spacing:0!important}
html[lang=ar] .seg b,html[lang=ar] .logo{letter-spacing:-.02em!important}
html[lang=ar] .kick,html[lang=ar] .run-label,html[lang=ar] .rtag,html[lang=ar] .seg small,html[lang=ar] .upsell .kick,html[lang=ar] .h-stats span{text-transform:none}

/* display type: Alexandria, more air between lines (Arabic has taller marks above and below) */
html[lang=ar] .h-hero,html[lang=ar] h2,html[lang=ar] .doc h1,html[lang=ar] .st-hero h1,html[lang=ar] .st-tease .st-t,
html[lang=ar] h3,html[lang=ar] .reveal{font-family:var(--head)}
html[lang=ar] .h-hero{line-height:1.22}
html[lang=ar] h2{line-height:1.3}
html[lang=ar] .doc h1{line-height:1.25}
html[lang=ar] .st-hero h1{line-height:1.2}
html[lang=ar] .st-tease .st-t{line-height:1.35}
html[lang=ar] .reveal{line-height:1.6}
html[lang=ar] h3{line-height:1.4}
html[lang=ar] p,html[lang=ar] li,html[lang=ar] .q .a{line-height:1.8}
/* the serif accent: Amiri is upright calligraphic, never a fake slant */
html[lang=ar] em{font-style:normal}
html[lang=ar] .h-hero em,html[lang=ar] h2 em,html[lang=ar] .st-hero h1 em,html[lang=ar] .doc h1 em{font-family:var(--accent);font-weight:400;line-height:1}
html[lang=ar] .h-hero em{padding-right:0;padding-left:.04em}
/* small mono labels read larger in Arabic */
html[lang=ar] .kick,html[lang=ar] .run-label{font-size:14px;line-height:1.3}
html[lang=ar] .rtag{font-size:12px;line-height:1.2}
html[lang=ar] .seg small{font-size:12px}

/* language switch: styled in styles.css (shared with the English pages) */
.ar-note{margin:14px 0 0;padding:12px 16px;border-radius:14px;background:rgba(255,255,255,.06);color:var(--soft);font-size:14.5px;line-height:1.7}
.ar-note a{color:var(--fg)}

/* ---------------------------------------------------------------- mirror the physical layout */
[dir=rtl] .skip{left:auto;right:-999px}
[dir=rtl] .skip:focus{right:8px}
[dir=rtl] .btn.solid .price,[dir=rtl] .btn.glow .price,[dir=rtl] .btn.metal .price{margin-right:0;margin-left:-12px}
[dir=rtl] .dock .btn .price{margin-right:8px;margin-left:-14px}
[dir=rtl] .term-bar span{margin-left:0;margin-right:8px}
[dir=rtl] .cursor{margin-left:0;margin-right:2px}
[dir=rtl] .caret{margin-left:0;margin-right:.08em}
[dir=rtl] .dock{padding:8px 20px 8px 8px}
[dir=rtl] .dock .btn{margin-left:0;margin-right:auto}
[dir=rtl] .doc ul{padding-left:0;padding-right:22px}
[dir=rtl] .signup,[dir=rtl] .st-tease,[dir=rtl] .st-perk,[dir=rtl] .flight-copy,[dir=rtl] .rv-tag{text-align:right}
[dir=rtl] .upsell .x{right:auto;left:14px}
[dir=rtl] .lightbox .x{right:auto;left:16px}
[dir=rtl] .anchor b{margin-left:0;margin-right:6px}
[dir=rtl] .flight-progress i{transform-origin:right center}
[dir=rtl] .rtag{left:auto;right:10px}
[dir=rtl] .kick::before{margin-right:0;margin-left:9px}
[dir=rtl] .head.center .kick::after{margin-left:0;margin-right:9px}
[dir=rtl] .st-plan .rec{right:auto;left:18px}
[dir=rtl] .st-tease .btn svg{margin-left:0;margin-right:6px;transform:scaleX(-1)}
[dir=rtl] .st-num{left:auto;right:10px}
[dir=rtl] .st-tease{padding-right:24px;padding-left:40%}
[dir=rtl] .st-tease-v{right:auto;left:0;-webkit-mask:linear-gradient(270deg,transparent,#000 45%);mask:linear-gradient(270deg,transparent,#000 45%)}
@media(max-width:520px){[dir=rtl] .st-tease{padding-left:24px}[dir=rtl] .st-tease-v{-webkit-mask:linear-gradient(#000 40%,transparent);mask:linear-gradient(#000 40%,transparent)}}
[dir=rtl] .rv-play{right:auto;left:9px}
[dir=rtl] .snd{right:auto;left:6px}
[dir=rtl] .lb-snd{right:auto;left:12px}
[dir=rtl] .rv-w .snd{right:auto;left:7px}
@media(min-width:980px){
  [dir=rtl] .hero-film{right:auto;left:max(32px,calc((100vw - var(--max))/2))}
  [dir=rtl] .hero-copy{margin-left:0;margin-right:max(32px,calc((100vw - var(--max))/2))}
  [dir=rtl] .hero-copy::before{left:auto;right:-12%}
}

/* everything that scrolls sideways keeps its left-to-right motion; only the words inside are Arabic */
[dir=rtl] .strip,[dir=rtl] .track,[dir=rtl] .sstrip,[dir=rtl] .river,[dir=rtl] .rv-row,[dir=rtl] .wall,[dir=rtl] .ticker,[dir=rtl] .tk-track,[dir=rtl] .pages{direction:ltr}
[dir=rtl] .strip *,[dir=rtl] .sstrip figcaption,[dir=rtl] .rv-tag,[dir=rtl] .ticker span,[dir=rtl] .tk-track span{direction:rtl}

/* code, links and commands typed into Claude Code stay left to right */
[dir=rtl] .prompt,[dir=rtl] code,[dir=rtl] .skill,[dir=rtl] input[type=email],[dir=rtl] input[type=url]{direction:ltr;unicode-bidi:isolate}
[dir=rtl] .prompt{text-align:left}
