/* ==========================================================================
   CitedSEO \2014  regional premium
   Sand + ink ground \00b7  deep teal signal \00b7  gold emphasis \00b7  khatam star grid
   ========================================================================== */
@import url('/assets/fonts/cited-arabic.css?v=3');


:root {
  --sand:      #F5F0E8;
  --sand-2:    #EBE4D8;
  --sand-3:    #EFE8DB;
  --paper:     #FDFBF7;
  --line:      #DED5C4;
  --line-2:    #C9BCA3;

  --ink:       #0F1A17;
  --ink-deep:  #0B1411;
  --text:      #14201D;
  --text-2:    #4A5A55;
  --text-3:    #3B4C47;
  --muted:     #6B7A75;

  --teal:      #0B5F55;
  --teal-dark: #084A42;
  --teal-light:#5FC6B4;

  --gold:      #B8862F;
  --gold-light:#E0B457;
  --gold-text: #8A6318;
  --gold-wash: #F0E4CB;
  --gold-deep: #6B4F14;

  --red:       #EC3013;

  --on-ink:    #F5F0E8;
  --on-ink-2:  #B7C4BF;
  --on-ink-3:  #93A29D;
  --on-ink-4:  #6F7E79;

  --r:         4px;
  --r-lg:      6px;
  --maxw:      1312px;
  --gutter:    64px;

  --sans:  'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mono:  'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  --arabic:'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

h1, h2, h3 { margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 20px; background: var(--ink); color: var(--on-ink);
  text-decoration: none; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; color: var(--on-ink); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--gold-light); }

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section--ink { background: var(--ink); border-bottom: 0; position: relative; overflow: hidden; }
.section--flush { border-bottom: 0; }

.motif { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.motif + * { position: relative; }

/* ---------- type ---------- */

.label {
  display: block;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal);
}
.label--gold { color: var(--gold-text); }
.label--on-ink { color: var(--gold-light); }
.label--muted { color: var(--muted); }

.h2 {
  font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500; line-height: 1.12; letter-spacing: -0.018em; color: var(--ink);
}
.h3 { font-family: var(--serif); font-size: 27px; font-weight: 500; color: var(--ink); }
.lede { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-2); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 48px; margin-bottom: 44px;
}
.section-head > div { max-width: 740px; display: flex; flex-direction: column; gap: 14px; }
.section-head .lede { max-width: 420px; margin-bottom: 6px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 1px solid transparent;
  border-radius: var(--r); font-family: var(--sans); font-size: 16px; font-weight: 500;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn--primary { background: var(--teal); color: var(--paper); }
.btn--primary:hover { background: var(--teal-dark); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--paper); color: var(--text); }
.btn--gold { background: var(--gold-light); color: var(--ink-deep); font-weight: 600; }
.btn--gold:hover { background: #D0A244; color: var(--ink-deep); }
.btn--outline-light { background: transparent; color: var(--on-ink); border-color: rgba(245,240,232,.3); }
.btn--outline-light:hover { background: rgba(245,240,232,.08); color: var(--on-ink); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 15px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,240,232,.92); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 48px; height: 88px; }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { display: block; width: 146px; height: 31px; }
.b
rand img { display: block; width: 146px; height: 31px; }

.nav { flex-grow: 1; display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 15px; color: var(--text-3); text-decoration: none; }
.nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.lang {
  display: flex; align-items: center; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; background: transparent;
}
.lang button {
  min-height: 34px; padding: 0 14px; border: 0; background: transparent;
  color: var(--text-3); font-family: var(--mono); font-size: 12px;
  letter-spacing: .08em; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--text); color: var(--sand); }
.lang button[lang="ar"] { font-family: var(--arabic); font-size: 14px; letter-spacing: 0; }
.signin { font-size: 15px; color: var(--text); text-decoration: none; }

.menu-toggle { display: none; }
.mobile-nav { display: none; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: 92px 0 80px; border-bottom: 1px solid var(--line); }
.hero__grid { position: relative; display: flex; gap: 64px; align-items: flex-start; }
.hero__copy { flex-grow: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 30px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(253,251,247,.7);
}
.eyebrow span:first-child { width: 6px; height: 6px; border-radius: 999px; background: var(--red); }
.eyebrow span:last-child {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
}

.hero h1 {
  max-width: 780px; font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 60px); font-weight: 500;
  line-height: 1.06; letter-spacing: -0.022em; color: var(--ink);
}
.hero p { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.65; color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }

.enginestrip {
  width: 100%; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.enginestrip span { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.enginestrip .strip-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.enginestrip .dim { color: var(--muted); }
.enginestrip .rule { width: 1px; height: 14px; background: var(--line); }

/* hero sample card */
.sample {
  flex-shrink: 0; width: 440px; padding: 26px; background: var(--paper);
  border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 22px;
}
.sample__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sample__head h2 { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); }
.chip {
  flex-shrink: 0; padding: 4px 10px; background: var(--sand-2); border-radius: 3px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: #5B6B66;
}
.bars { display: flex; flex-direction: column; gap: 16px; }
.bar { display: flex; flex-direction: column; gap: 7px; }
.bar__top { display: flex; justify-content: space-between; align-items: baseline; }
.bar__top b { font-size: 14px; font-weight: 500; color: var(--text); }
.bar__top span { font-family: var(--mono); font-size: 14px; color: var(--teal); }
.bar__top span.gold { color: var(--gold-text); }
.bar__top span.grey { color: var(--muted); }
.track { height: 8px; background: var(--sand-2); border-radius: 999px; overflow: hidden; }
.track i { display: block; height: 8px; background: var(--teal); }
.track i.gold { background: var(--gold); }
.track i.grey { background: #8C9B96; }
.sample__foot {
  padding-top: 18px; border-top: 1px solid var(--sand-2);
  display: flex; align-items: center; justify-content: space-between;
}
.sample__foot span:first-child { font-size: 13px; color: #5B6B66; }
.sample__foot span:last-child { font-family: var(--mono); font-size: 20px; color: var(--ink); }

/* ---------- engines ---------- */

.group { display: flex; flex-direction: column; gap: 18px; }
.group + .group { margin-top: 44px; }
.group__label { display: flex; align-items: center; gap: 16px; }
.group__label .rule { flex-grow: 1; height: 1px; background: var(--line); }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.engine {
  padding: 26px; border: 1px solid var(--line); border-radius: var(--r);
  display: flex; flex-direction: column; gap: 10px;
}
.engine--sovereign
 { background: var(--paper); border-left: 3px solid var(--gold); }
.engine b { font-family: var(--serif); font-size: 25px; font-weight: 500; color: var(--ink); }
.engine--global b { color: #2C3A36; }
.engine span {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- capabilities ---------- */

.card {
  min-height: 236px; padding: 36px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 14px;
}
.card .num { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--gold-text); }
.card p { margin: 0; max-width: 500px; font-size: 16px; line-height: 1.65; color: var(--text-2); }

/* ---------- steps ---------- */

.step { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.step .dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--teal); border-radius: 999px;
  font-family: var(--mono); font-size: 13px; color: var(--teal);
}
.step h3 { font-family: var(--sans); font-size: 20px; font-weight: 600; color: var(--ink); }
.step p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-2); }

/* ---------- dialects ---------- */

.on-ink .h2, .on-ink h2 { color: var(--on-ink); }
.on-ink .lede { color: var(--on-ink-2); }

.dialect {
  padding: 30px; background: rgba(245,240,232,.05);
  border: 1px solid rgba(245,240,232,.16); border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 14px;
}
.dialect .ar {
  font-family: var(--arabic); font-size: 40px; font-weight: 600;
  line-height: 1.3; color: var(--teal-light);
}
.dialect b { font-size: 18px; font-weight: 600; color: var(--on-ink); }
.dialect span {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-ink-3);
}

/* ---------- cta ---------- */

.cta {
  position: relative; overflow: hidden; background: var(--ink-deep);
  padding: 104px 0; text-align: center;
}
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.cta h2 {
  max-width: 840px; font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 56px); font-weight: 500;
  line-height: 1.1; letter-spacing: -0.02em; color: var(--on-ink);
}
.cta p { margin: 0; font-size: 19px; color: var(--on-ink-2); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink-deep); border-top: 1px solid rgba(245,240,232,.14);
  padding: 56px 0 40px;
}
.site-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 64px; }
.site-footer__brand { max-width: 330px; display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand img { display: block; width: 132px; height: 28px; }
.site-footer__brand p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--on-ink-3); }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col strong {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--on-ink-4);
}
.footer-col a { font-size: 14px; color: #C6D1CD; text-decoration: none; }
.footer-col a:hover { color: var(--on-ink); }
.site-footer__bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(245,240,232,.12);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.site-footer__bottom span { font-size: 13px; color: #8A9993; }
.site-footer__bottom .cities { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--on-ink-4); }

/* ==========================================================================
   Dashboard
   ========================================================================== */

.app { display: flex; min-height: 100vh; }

.side {
  flex-shrink: 0; width: 244px; padding: 22px 18px; background: var(--ink);
  display: flex; flex-direction: column; gap: 26px;
}
.side__brand { display: flex; align-items: center; padding: 0 6px; text-decoration: none; }
.side__brand img { display: block; width: 122px; height: 26px; }
.workspace {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 48px; padding: 0 12px; background: rgba(245,240,232,.07);
  border: 1px solid rgba(245,240,232,.16); border-radius: var(--r);
  cursor: pointer; text-align: left; color: var(--on-ink);
}
.workspace small {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: #8A9993;
}
.workspace b { font-size: 14px; font-weight: 500; }
.side nav { display: flex; flex-direction: column; gap: 3px;
 }
.side nav .group-label {
  padding: 0 12px 8px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--on-ink-4);
}
.side nav .group-label + .group-label, .side nav a + .group-label { padding-top: 18px; }
.side nav a {
  display: flex; align-items: center; min-height: 42px; padding: 0 12px;
  border-radius: var(--r); color: #C6D1CD; font-size: 14px; text-decoration: none;
}
.side nav a:hover { background: rgba(245,240,232,.06); color: var(--on-ink); }
.side nav a[aria-current="page"] {
  background: rgba(95,198,180,.14); border-left: 2px solid var(--teal-light);
  color: var(--on-ink); font-weight: 500;
}
.side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.refresh {
  padding: 14px; background: rgba(224,180,87,.1); border: 1px solid rgba(224,180,87,.3);
  border-radius: var(--r); display: flex; flex-direction: column; gap: 8px;
}
.refresh small {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-light);
}
.refresh b { font-family: var(--mono); font-size: 17px; font-weight: 400; color: var(--on-ink); }
.who { display: flex; align-items: center; gap: 10px; padding: 8px 6px; }
.who .avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--teal-light); color: var(--ink); font-size: 13px; font-weight: 600;
}
.who b { display: block; font-size: 13px; font-weight: 400; color: var(--on-ink); }
.who small { display: block; font-size: 12px; color: #8A9993; }

.app__main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  flex-shrink: 0; min-height: 74px; padding: 14px 32px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.topbar__title { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; }
.topbar__title small {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.topbar__title h1 { font-family: var(--serif); font-size: 25px; font-weight: 500; color: var(--ink); }
.segmented {
  display: flex; align-items: center; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; background: var(--paper);
}
.segmented button {
  min-height: 40px; padding: 0 14px; border: 0; background: transparent;
  color: var(--text-3); font-family: var(--sans); font-size: 13px; cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--text); color: var(--sand); }
.pillbtn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--text); font-family: var(--sans); font-size: 14px; cursor: pointer;
}
.pillbtn .ar { font-family: var(--arabic); font-size: 14px; }

.board { flex-grow: 1; padding: 26px 32px 32px; display: flex; flex-direction: column; gap: 22px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kpi {
  padding: 20px; background: var(--paper); border: 1px solid var(--line);
  border-top: 3px solid var(--teal); border-radius: 5px;
  display: flex; flex-direction: column; gap: 10px;
}
.kpi--gold { border-top-color: var(--gold); }
.kpi--grey { border-top-color: #8C9B96; }
.kpi small {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.kpi b { font-family: var(--mono); font-size: 34px; font-weight: 400; color: var(--ink); }
.kpi span { font-size: 13px; color: var(--teal); }
.kpi span.down { color: var(--gold-text); }
.kpi span.flat { color: #5B6B66; }

.panels { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; }
.panel {
  padding: 22px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 5px; display: flex; flex-direction: column; gap: 18px;
}
.panel--ink { background: var(--ink); border: 0; }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.panel__head h2 { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--ink); }
.panel--ink .panel__head h2 { color: var(--on-ink); }
.legend { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.legend i { width: 10px; height: 10px; }

.rows { display: flex; flex-direction: column; gap: 13px; }
.row { display: flex; align-items: center; gap: 14px; }
.row__name { flex-shrink: 0; width: 82px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.row__name.dim { color: var(--muted); }
.row__bar { flex-grow: 1; display: flex; height: 16px; border-radius: 2px; overflow: hidden; background: var(--sand-3); }
.row__bar i { display: block; heigh
t: 16px; }
.row__val { flex-shrink: 0; width: 38px; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.rows hr { width: 100%; height: 1px; margin: 3px 0; border: 0; background: var(--sand-2); }

.dbar { display: flex; flex-direction: column; gap: 8px; }
.dbar__top { display: flex; align-items: baseline; justify-content: space-between; }
.dbar__top .name { display: inline-flex; align-items: baseline; gap: 9px; }
.dbar__top .ar { font-family: var(--arabic); font-size: 17px; font-weight: 600; color: var(--ink); }
.dbar__top .en { font-size: 14px; color: var(--text-3); }
.dbar__top .val { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.dbar__top .val.gold { color: var(--gold-text); }

.callout {
  margin-top: auto; padding: 14px; background: #F3EEE4;
  border-left: 3px solid var(--gold); border-radius: 3px;
  display: flex; flex-direction: column; gap: 6px;
}
.callout small {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-deep);
}
.callout span { font-size: 14px; line-height: 1.5; color: var(--text-3); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  padding: 0 0 10px; text-align: left; font-family: var(--mono); font-size: 10px;
  font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 12px 0; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--sand-3); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.mono { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
td.small { font-size: 13px; color: var(--text-3); }
td.right { text-align: right; font-family: var(--mono); font-size: 13px; color: var(--muted); }

.gap {
  padding: 12px 14px; background: rgba(245,240,232,.06);
  border: 1px solid rgba(245,240,232,.14); border-radius: var(--r);
  display: flex; flex-direction: column; gap: 6px;
}
.gap .q { font-size: 15px; color: var(--on-ink); }
.gap .q.ar { font-family: var(--arabic); }
.gap small { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: #8A9993; }
.panel--ink p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--on-ink-3); }
.panel--ink .count { font-family: var(--mono); font-size: 12px; color: var(--gold-light); }
.panel--ink .btn { margin-top: auto; width: 100%; min-height: 44px; font-size: 14px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .hero__grid { flex-direction: column; }
  .sample { width: 100%; max-width: 560px; }
}

@media (max-width: 1080px) {
  .panels { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  :root { --gutter: 32px; }
  .nav, .header-actions .signin { display: none; }
  .header-actions .lang { display: inline-flex; }
  .header-actions .lang button { min-height: 36px; padding: 0 12px; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: auto;
    background: transparent; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
  }
  .site-header__inner { gap: 16px; }
  .mobile-nav.is-open {
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px 0 20px; border-top: 1px solid var(--line);
  }
  .mobile-nav a {
    min-height: 48px; display: flex; align-items: center;
    font-size: 16px; color: var(--text); text-decoration: none;
  }
  .mobile-nav .btn { margin-top: 8px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-head .lede { max-width: 640px; }
  .app { flex-direction: column; }
  .side { width: 100%; flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }
  .side nav { flex-direction: row; flex-wrap: wrap; flex-grow: 1; }
  .side nav .group-label { display: none; }
  .side nav a[aria-current="page"] { border-left: 0; border-bottom: 2px solid var(--teal-light); }
  .side__foot { margin-top: 0; flex-direction: row; align-items: center; gap: 16px; }
  .refresh { flex-direction: row; align-items: center; gap: 10px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 44px; }
  .cta { padding: 64px 0; }
  .card { min-height: 0; padding: 26px; }
  .engine { padding: 20px; }
  .engine b { font-size: 21px; }
  .dialect { padding: 20px; }
  .dialect .ar { font-size: 30px; }
  .hero__actions { width: 100%; flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .cta__actions { width: 100%; flex-direction: column; 
}
  .cta__actions .btn { width: 100%; }
  .site-footer__top { flex-direction: column; gap: 36px; }
  .footer-cols { gap: 36px; }
  .board { padding: 20px; }
  .topbar { padding: 14px 20px; }
  .brand img { width: 122px; height: 26px; }
  .header-actions > .btn { display: none; }
}

@media (max-width: 520px) {
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .header-actions .btn--sm { display: none; }
}

/* ---------- Arabic typography tune (2026-10-18): smaller type, tighter menu ---------- */
html[lang="ar"] body { font-size: 16px; }
html[lang="ar"] .hero h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.25; letter-spacing: 0; }
html[lang="ar"] .h2 { font-size: clamp(25px, 2.9vw, 38px); line-height: 1.3; letter-spacing: 0; }
html[lang="ar"] .lede { font-size: 16px; line-height: 1.7; }
html[lang="ar"] .hero p { font-size: 17px; }
html[lang="ar"] .card { font-size: 15.5px; }
html[lang="ar"] .nav { gap: 20px; }
html[lang="ar"] .nav a { font-size: 14px; white-space: nowrap; }
