/* Shared light and dark themes for both language pages. */
:root[data-theme="dark"] {
  color-scheme:dark;
  --paper:#020617;
  --concrete:#0f172a;
  --ink:#f1f5f9;
  --muted:#a6b3c5;
  --line:#334155;
  --accent:#f5b700;
  --surface:#0f172a;
  --surface-subtle:#1e293b;
  --surface-highlight:#172132;
  --highlight-line:#6b531d;
  --highlight-text:#facc15;
  --top-surface:#0f172a;
  --shadow:#02061738;
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme]) {
    color-scheme:dark;
    --paper:#020617;
    --concrete:#0f172a;
    --ink:#f1f5f9;
    --muted:#a6b3c5;
    --line:#334155;
    --accent:#f5b700;
    --surface:#0f172a;
    --surface-subtle:#1e293b;
    --surface-highlight:#172132;
    --highlight-line:#6b531d;
    --highlight-text:#facc15;
    --top-surface:#0f172a;
    --shadow:#02061738;
  }
}

.header-controls {
  display:flex;
  align-items:center;
  gap:6px;
  flex-shrink:0;
}
.language-link,.theme-toggle,.header-controls .menu-toggle {
  width:44px;
  height:44px;
  padding:0;
  border:1px solid var(--line);
  background:transparent;
  color:var(--ink);
  align-items:center;
  justify-content:center;
}
.language-link,.theme-toggle {
  display:inline-flex;
}
.language-link {
  font:12px var(--mono);
  text-decoration:none;
}
.language-link:hover,.theme-toggle:hover {
  background:var(--surface-subtle);
}
.theme-sun { display:none; }
:root[data-theme="dark"] .theme-sun { display:block; }
:root[data-theme="dark"] .theme-moon { display:none; }
.navigation { margin-inline-start:auto; gap:22px; }
@media(max-width:1100px) {
  .header { flex-wrap:wrap; gap:14px; padding-block:16px; }
  .header-controls { margin-inline-start:auto; }
  .js .header-controls .menu-toggle { display:inline-flex; }
  .navigation { order:3; width:100%; margin-inline-start:0; flex-wrap:wrap; }
  .js .navigation { display:none; }
  .js .navigation[data-open="true"] { display:flex; }
}
@media(max-width:760px) {
  .header { gap:10px; }
  .header-controls { gap:4px; }
  .brand { font-size:13px; }
  .brand-divider { margin-inline:5px; }
  .preview-caption { flex-wrap:wrap; }
  .preview-tabs { gap:12px; }
  .preview-tab { font-size:10px; }
}

/* Controls that need JavaScript stay out of the layout until theme.js marks the page. */
:root:not(.js) .theme-toggle,:root:not(.js) .menu-toggle { display:none!important; }
.language-link { width:auto; min-width:44px; padding-inline:8px; }

/* Landing sections: before/after, samples, trust, final action, phone bar. */
.hero .actions .text-link,.final-cta .actions .text-link { display:inline-flex; align-items:center; min-height:44px; padding-inline:10px; font-weight:650; }
.hero-note a,.hero .actions .text-link,.final-cta .actions .text-link { text-decoration:underline; }
ol.steps { list-style:none; padding:0; margin:0; }
.before-after { display:grid; grid-template-columns:1fr auto 1fr; gap:20px; align-items:center; margin-top:48px; }
.before-after figure { margin:0; background:var(--surface); border:1px solid var(--line); overflow:hidden; }
.before-after .eyebrow { margin:0; padding:12px 18px; border-bottom:1px solid var(--line); }
.before-after img { width:100%; }
.before-after figcaption { padding:10px 18px; font-size:12px; color:var(--muted); }
.before-after-arrow { font-size:2rem; color:var(--accent); }
[dir=rtl] .before-after-arrow { transform:scaleX(-1); }
.section-cta { margin-top:40px; display:flex; justify-content:center; }
.audience-line { max-width:70ch; color:var(--muted); margin:-12px 0 32px; }
.samples { display:flex; flex-wrap:wrap; align-items:center; gap:4px 24px; margin-top:32px; padding:16px 20px; border:1px dashed var(--line); }
.samples h3 { font-size:15px; margin:0; }
.samples a { display:inline-flex; align-items:center; min-height:44px; font-size:14px; font-weight:650; }
.trust-layout { display:grid; grid-template-columns:1fr 1fr; gap:60px; }
.trust-layout h2 { margin-bottom:20px; }
.trust-layout p { color:var(--muted); }
.trust-layout .text-link { display:inline-flex; align-items:center; min-height:44px; }
.trust-facts>div { padding-block:16px; border-bottom:1px solid var(--line); }
.trust-facts>div:first-child { padding-top:0; }
.trust-facts h3 { margin-bottom:6px; }
.trust-facts p { margin:0; font-size:14px; }
.trust-facts .analytics-note { margin-top:8px; font-size:13px; }
.final-cta { text-align:center; }
.final-cta h2 { margin-bottom:12px; }
.final-cta>p { color:var(--muted); }
.final-cta .actions { justify-content:center; }
.next-steps { max-width:620px; margin:32px auto 0; text-align:start; color:var(--muted); font-size:15px; padding-inline-start:22px; }
.next-steps li { margin-bottom:8px; }
.mobile-bar { display:none; }
.preview-tab[aria-pressed=true] { color:var(--highlight-text); border-color:var(--amber); }
/* Arabic: system Arabic faces, no negative tracking (it breaks letter joining). */
:root[lang=ar] { --sans:"Noto Sans Arabic","Segoe UI","Geeza Pro","Tahoma",system-ui,sans-serif; }
[lang=ar] h1,[lang=ar] h2,[lang=ar] h3,[lang=ar] .eyebrow { letter-spacing:0; }
[lang=ar] h1 { line-height:1.35; }
[lang=ar] .eyebrow { font-size:13px; }
[dir=rtl] .icon use[href="#arrow"] { transform:scaleX(-1); transform-origin:center; }
@media(max-width:900px) {
  .trust-layout { grid-template-columns:1fr; gap:30px; }
  .before-after { grid-template-columns:1fr; gap:10px; }
  .before-after-arrow,[dir=rtl] .before-after-arrow { transform:rotate(90deg); justify-self:center; }
}
@media(max-width:600px) {
  .mobile-bar { display:flex; gap:10px; position:fixed; inset-inline:0; bottom:0; z-index:30; padding:10px 16px calc(10px + env(safe-area-inset-bottom)); background:var(--paper); border-top:1px solid var(--line); }
  .mobile-bar .button { flex:1; min-height:48px; justify-content:center; }
  .mobile-bar-whatsapp { display:grid; place-items:center; width:48px; border:1px solid var(--line); color:var(--ink); }
  body { padding-bottom:72px; }
  .header-controls .language-link { min-width:40px; padding-inline:4px; font-size:11px; }
}
