/* Pathways to Excellence — site and platform styles
   Palette follows the programme deck: deep green on slate, Inter type. */
:root {
  --ink: #1c2d37;
  --ink-2: #3a4750;
  --muted: #5a6872;
  --faint: #8a96a0;
  --line: #e1e5e9;
  --line-2: #eef1f3;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --brand: #1e6b52;
  --brand-dark: #154f3c;
  --brand-deep: #0f3a2c;
  --brand-tint: #e8f2ee;
  --brand-tint-2: #cfe5db;
  --gold: #a8844c;
  --gold-tint: #f6efe3;
  /* status (reserved: always with a label) */
  --good: #1e7a4a; --good-bg: #e4f3ea;
  --warn: #a36a00; --warn-bg: #fbf0d9;
  --serious: #b4532a; --serious-bg: #fbe9e1;
  --critical: #b42828; --critical-bg: #fbe5e5;
  /* categorical: sectors (validated reference order, slots 1–4) */
  --s-health: #2a78d6; --s-tech: #eb6834; --s-energy: #1baf7a; --s-infra: #eda100;
  /* sequential readiness ramp (one hue) */
  --r0: #e9eef0; --r1: #cfe5db; --r2: #93c4ae; --r3: #4f9a7c; --r4: #1e6b52;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 33, 43, .05), 0 6px 24px rgba(16, 33, 43, .06);
  --shadow-lg: 0 20px 60px rgba(16, 33, 43, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-ar: "IBM Plex Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15.5px/1.6 var(--font); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--font-ar); font-size: 16px; }
html[lang="ar"] .display, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: var(--font-ar); letter-spacing: 0; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--ink); }
h1, h2, .display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(30, 107, 82, .45); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.eyebrow { font: 600 12px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; display: block; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-family: var(--font-ar); font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tnum { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- demo ribbon ---------- */
.ribbon {
  background: var(--brand-deep); color: #d9ebe3; font-size: 12.5px; text-align: center;
  padding: 7px 16px; letter-spacing: .01em;
}
.ribbon strong { color: #fff; font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border: 1px solid transparent; border-radius: 999px; padding: 11px 20px; cursor: pointer;
  font-weight: 600; font-size: 14.5px; line-height: 1; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(30, 107, 82, .25); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); background: #fff; }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: var(--brand-tint); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .5); background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-xs { padding: 6px 11px; font-size: 12.5px; }
.btn-danger { background: #fff; color: var(--critical); border-color: #f0c9c9; }
.btn-danger:hover { background: var(--critical-bg); }
.btn svg { width: 16px; height: 16px; flex: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none !important; flex: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { font: 600 17px/1.1 var(--font-display); letter-spacing: -.01em; }
.brand-name small { display: block; font: 500 11px/1.3 var(--font); color: var(--muted); letter-spacing: .04em; margin-top: 2px; }
html[lang="ar"] .brand-name { font-family: var(--font-ar); }
.site-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.site-nav a { white-space: nowrap; color: var(--ink-2); font-weight: 500; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.site-nav a:hover { background: var(--line-2); color: var(--ink); }
.site-nav a.active { color: var(--brand); background: var(--brand-tint); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; cursor: pointer;
  font-weight: 600; font-size: 13px; color: var(--ink-2);
}
.lang-toggle:hover { border-color: var(--ink-2); }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 40px; height: 40px; cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--brand-deep); }
.hero-img { position: absolute; inset: 0; background: url(../assets/img/hero-building.jpg) center 30% / cover no-repeat; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 36, 28, .94) 0%, rgba(13, 48, 37, .84) 42%, rgba(15, 58, 44, .35) 78%, rgba(15, 58, 44, .15) 100%);
}
html[dir="rtl"] .hero::after { background: linear-gradient(260deg, rgba(10, 36, 28, .94) 0%, rgba(13, 48, 37, .84) 42%, rgba(15, 58, 44, .35) 78%, rgba(15, 58, 44, .15) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-block: 104px 96px; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.2vw, 62px); max-width: 15ch; line-height: 1.06; margin-bottom: 22px; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 56ch; color: #d6e7df; margin-bottom: 34px; }
.hero .eyebrow { color: #9fd3bc; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 58px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .16); max-width: 760px; }
.hero-meta div { font-size: 13.5px; color: #b9d3c8; }
.hero-meta strong { display: block; color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 2px; }

/* ---------- sections ---------- */
.section { padding-block: 92px; }
.section-tight { padding-block: 64px; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-dark { background: var(--brand-deep); color: #d6e7df; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #9fd3bc; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.3vw, 42px); margin-bottom: 16px; }
.section-head p { font-size: 17.5px; color: var(--muted); margin: 0; }
.section-dark .section-head p { color: #b9d3c8; }
.center { text-align: center; margin-inline: auto; }

.page-hero { background: #fff; border-bottom: 1px solid var(--line); padding-block: 72px 56px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset-inline-end: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, var(--brand-tint) 0%, rgba(232, 242, 238, 0) 70%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(32px, 4.2vw, 50px); max-width: 20ch; margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: var(--muted); max-width: 62ch; margin: 0; }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 18px; margin-bottom: 8px; font-family: var(--font); font-weight: 650; }
.card p:last-child { margin-bottom: 0; }
.card-hover { transition: border-color .15s, box-shadow .2s, transform .2s; }
.card-hover:hover { border-color: #c9d3d9; box-shadow: var(--shadow); transform: translateY(-2px); }
.icon-badge { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); margin-bottom: 18px; }
.icon-badge svg { width: 23px; height: 23px; }

/* problem statement */
.quote-panel { border-inline-start: 3px solid var(--brand); padding: 6px 0 6px 26px; font: 500 clamp(20px, 2.2vw, 26px)/1.45 var(--font-display); color: var(--ink); }
html[dir="rtl"] .quote-panel { padding: 6px 26px 6px 0; }
html[lang="ar"] .quote-panel { font-family: var(--font-ar); }

.photo { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tall { aspect-ratio: 4 / 5; }
.photo-cap { position: absolute; inset-inline: 16px; bottom: 16px; background: rgba(255, 255, 255, .94); border-radius: 12px; padding: 14px 16px; font-size: 13.5px; color: var(--ink-2); box-shadow: var(--shadow); }
.photo-cap strong { color: var(--ink); display: block; font-size: 14px; }

/* the three-step mechanism */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; counter-reset: s; }
.step { position: relative; padding: 30px 28px 32px; background: #fff; border: 1px solid var(--line); }
.step:first-child { border-start-start-radius: var(--radius); border-end-start-radius: var(--radius); }
.step:last-child { border-start-end-radius: var(--radius); border-end-end-radius: var(--radius); }
.step + .step { border-inline-start: 0; }
.step-num { font: 600 13px var(--font); color: var(--brand); letter-spacing: .1em; }
.step h3 { font: 600 26px/1.2 var(--font-display); margin: 8px 0 10px; }
html[lang="ar"] .step h3 { font-family: var(--font-ar); }
.step .comp { display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--brand-dark); background: var(--brand-tint); border-radius: 999px; padding: 5px 11px; }
.step-arrow { position: absolute; inset-inline-end: -15px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; z-index: 2; box-shadow: 0 0 0 5px var(--bg); }
.step-arrow svg { width: 15px; height: 15px; }
html[dir="rtl"] .step-arrow svg { transform: scaleX(-1); }

/* stakeholder tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 26px; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.tab:hover { border-color: var(--ink-2); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.benefit-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.benefit-list li svg { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }

/* complement panel */
.fit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fit { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.fit h3 { font-size: 17px; font-family: var(--font); font-weight: 650; margin-bottom: 6px; }
.fit p { color: #b9d3c8; font-size: 14.5px; margin-bottom: 10px; }
.fit .adds { font-size: 13.5px; color: #e7f2ed; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 10px; margin-bottom: 0; }
.fit .adds b { color: #9fd3bc; font-weight: 600; }
.foot-note { font-size: 12.5px; color: var(--muted); margin-top: 18px; }
.section-dark .foot-note { color: #8fb3a3; }

/* stage table */
.stage-row { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; font-size: 15px; }
.stage-row:first-child { padding-top: 0; }
.stage-row.head { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-done { background: var(--good-bg); color: var(--good); }
.pill-ahead { background: var(--line-2); color: var(--ink-2); }
.pill-todo { background: var(--warn-bg); color: var(--warn); }

/* journey (PMAP phases) */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; margin-top: 10px; }
.journey::before { content: ""; position: absolute; top: 23px; inset-inline: 10%; height: 2px; background: linear-gradient(90deg, var(--brand-tint-2), var(--brand)); }
html[dir="rtl"] .journey::before { background: linear-gradient(270deg, var(--brand-tint-2), var(--brand)); }
.jstep { text-align: center; padding: 0 12px; position: relative; }
.jdot { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: #fff; border: 2px solid var(--brand); color: var(--brand); font-weight: 700; position: relative; z-index: 1; }
.jstep:last-child .jdot { background: var(--brand); color: #fff; }
.jstep h4 { font-size: 15px; margin-bottom: 6px; }
.jstep p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* readiness scale */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale-step { border-radius: 12px; padding: 16px 14px; min-height: 128px; border: 1px solid var(--line); background: #fff; }
.scale-bar { height: 6px; border-radius: 3px; margin-bottom: 14px; }
.scale-step b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.scale-step span { font-size: 13px; color: var(--muted); line-height: 1.45; display: block; }

/* sectors */
.sector-card { border-top: 4px solid var(--c, var(--brand)); }
.sector-card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sector-card li { font-size: 14px; color: var(--ink-2); padding-inline-start: 18px; position: relative; }
.sector-card li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--c, var(--brand)); }

/* GCC table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th { text-align: start; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #fbfcfc; white-space: nowrap; }
html[lang="ar"] table.data th { letter-spacing: 0; font-size: 13px; }
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover td { background: #f7faf9; }
table.data td.num, table.data th.num { text-align: end; font-variant-numeric: tabular-nums; }

/* impact model */
.model { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.control { margin-bottom: 22px; }
.control label { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.control output { font-variant-numeric: tabular-nums; color: var(--brand); }
.control small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
input[type="range"] { width: 100%; accent-color: var(--brand); }
.model-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.fig { background: var(--bg); border-radius: 12px; padding: 16px; }
.fig b { display: block; font: 600 30px/1.1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.fig span { font-size: 13px; color: var(--muted); }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  border: 1px solid #d3dadf; border-radius: 10px; padding: 11px 13px; background: #fff; font-size: 14.5px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30, 107, 82, .15); }
.field .hint { font-size: 12px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.check input { margin-top: 4px; accent-color: var(--brand); }

/* footer */
.site-footer { background: #0d1f27; color: #9fb0ba; padding-block: 56px 36px; font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #cfdbe1; display: block; padding: 3px 0; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name small { color: #8fa1ab; }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; margin-top: 8px; font-size: 12.5px; color: #7f939e; line-height: 1.6; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-deep) 100%); border-radius: 22px; padding: 52px; color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset-inline-end: -60px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .05); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.cta-band p { color: #cfe5db; margin: 0; font-size: 16.5px; }
.cta-band .hero-cta { position: relative; z-index: 1; }

/* ================= PLATFORM (app shell) ================= */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: calc(100vh - 32px); }
.sidebar { background: #0f2630; color: #b9c8cf; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { color: #fff; padding: 20px 20px 16px; }
.sidebar .brand-name small { color: #8fa1ab; }
.side-nav { padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.side-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #6f8792; padding: 16px 10px 6px; font-weight: 600; }
html[lang="ar"] .side-label { letter-spacing: 0; font-size: 12px; }
.side-nav a { display: flex; align-items: center; gap: 11px; color: #c4d2d8; padding: 9px 10px; border-radius: 9px; font-size: 14px; font-weight: 500; text-decoration: none; }
.side-nav a svg { width: 18px; height: 18px; opacity: .8; flex: none; }
.side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-nav a.active { background: rgba(124, 196, 164, .16); color: #fff; }
.side-nav a.active svg { opacity: 1; color: #8fd4b5; }
.side-nav .count { margin-inline-start: auto; font-size: 11.5px; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 1px 8px; color: #dfe8ec; }
.side-nav .count.alert { background: #b4532a; color: #fff; }
.side-foot { margin-top: auto; padding: 16px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 12px; color: #7c939e; }
.side-foot a { color: #b9d3c8; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 28px; position: sticky; top: 0; z-index: 30; }
.topbar .crumb { font-size: 13.5px; color: var(--muted); }
.topbar .crumb b { color: var(--ink); font-weight: 600; }
.topbar-right { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.role-switch { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.role-switch select { border: 1px solid var(--line); border-radius: 999px; padding: 7px 30px 7px 12px; background: #fff; font-weight: 600; color: var(--ink); font-size: 13px; max-width: 260px; }
.country-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: #fff; cursor: pointer; }
.country-chip:hover { border-color: var(--ink-2); }
.content { padding: 28px; max-width: 1400px; width: 100%; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title h1 { font-size: 28px; }
.page-title p { margin: 6px 0 0; color: var(--muted); max-width: 70ch; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.panel-head h2, .panel-head h3 { font: 650 15.5px/1.3 var(--font); }
html[lang="ar"] .panel-head h2, html[lang="ar"] .panel-head h3 { font-family: var(--font-ar); }
.panel-head .sub { font-size: 12.5px; color: var(--muted); font-weight: 400; display: block; margin-top: 2px; }
.panel-body { padding: 18px 20px; }
.panel-body.flush { padding: 0; }
.cols { display: grid; gap: 18px; margin-bottom: 18px; align-items: start; }
.c-2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.c-2e { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.c-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; position: relative; }
.kpi .label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi .value { font: 600 30px/1.15 var(--font-display); margin-top: 6px; font-variant-numeric: tabular-nums; color: var(--ink); }
html[lang="ar"] .kpi .value { font-family: var(--font); }
.kpi .delta { font-size: 12.5px; margin-top: 4px; color: var(--muted); }
.kpi .delta b { color: var(--good); font-weight: 600; }
.kpi.accent { background: var(--brand-deep); border-color: var(--brand-deep); }
.kpi.accent .label, .kpi.accent .delta { color: #a9cdbd; }
.kpi.accent .value { color: #fff; }
.kpi.accent .delta b { color: #fff; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.b-good { background: var(--good-bg); color: var(--good); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-serious { background: var(--serious-bg); color: var(--serious); }
.b-critical { background: var(--critical-bg); color: var(--critical); }
.b-neutral { background: var(--line-2); color: var(--ink-2); }
.b-brand { background: var(--brand-tint); color: var(--brand-dark); }
.b-gold { background: var(--gold-tint); color: #7c5f31; }
.badge svg { width: 12px; height: 12px; }
.sector-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-inline-end: 7px; vertical-align: 0; }

.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 600; font-size: 12.5px; flex: none; color: #fff; }
.av-mentor { background: #3a4750; }
.av-mentee { background: var(--brand); }
.av-lg { width: 64px; height: 64px; font-size: 21px; }
.who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.who > div > b { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.who > div > span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }

.meter { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; min-width: 80px; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.readiness { display: inline-flex; gap: 3px; vertical-align: middle; }
.readiness i { width: 14px; height: 8px; border-radius: 2px; background: var(--r0); }
.readiness i.on1 { background: var(--r1); } .readiness i.on2 { background: var(--r2); } .readiness i.on3 { background: var(--r3); } .readiness i.on4 { background: var(--r4); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.toolbar input[type="search"], .toolbar select { border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; background: #fff; font-size: 13.5px; }
.toolbar input[type="search"] { min-width: 220px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 7px 12px; font-size: 13px; cursor: pointer; color: var(--ink-2); font-weight: 500; }
.seg button + button { border-inline-start: 1px solid var(--line); }
.seg button.on { background: var(--ink); color: #fff; }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }
.list-item.clickable { cursor: pointer; }
.list-item.clickable:hover { background: #f7faf9; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; font-size: 14px; }
.list-item .meta { font-size: 12.5px; color: var(--muted); }

.insight { display: flex; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.insight:last-child { border-bottom: 0; }
.insight .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.insight .ico svg { width: 18px; height: 18px; }
.insight .title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.insight .text { font-size: 13.5px; color: var(--muted); }
.insight .act { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* kanban */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.kcol { background: #f1f4f5; border-radius: 12px; padding: 12px; min-height: 260px; }
.kcol h3 { font: 650 13px var(--font); display: flex; justify-content: space-between; color: var(--ink-2); margin: 2px 4px 12px; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; margin-bottom: 9px; cursor: pointer; box-shadow: 0 1px 2px rgba(16, 33, 43, .04); }
.kcard:hover { border-color: #c4ced4; box-shadow: var(--shadow); }
.kcard b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.kcard > span { font-size: 12px; color: var(--muted); display: block; }
.kcard .row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }

/* plan detail */
.profile-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.pair { display: flex; align-items: center; gap: 12px; }
.pair-link { width: 46px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 6px, transparent 6px 10px); position: relative; }
.pair-link::after { content: ""; position: absolute; inset-inline-end: -2px; top: -4px; border: 5px solid transparent; border-inline-start-color: var(--brand); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.facts div { font-size: 12.5px; color: var(--muted); }
.facts b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; margin-top: 2px; }
.objective { display: flex; gap: 12px; align-items: flex-start; padding: 12px 20px; border-bottom: 1px solid var(--line-2); }
.objective:last-child { border-bottom: 0; }
.objective input { margin-top: 4px; accent-color: var(--brand); width: 16px; height: 16px; cursor: pointer; }
.objective .grow { flex: 1; }
.objective.done .otext { color: var(--muted); text-decoration: line-through; text-decoration-color: #b8c2c8; }
.otext { font-size: 14px; font-weight: 500; }
.timeline { position: relative; padding: 6px 20px 6px 20px; }
.tl-item { position: relative; padding: 10px 0 10px 26px; border-inline-start: 2px solid var(--line); margin-inline-start: 6px; }
html[dir="rtl"] .tl-item { padding: 10px 26px 10px 0; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: -7px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
.tl-item b { font-size: 13.5px; }
.tl-item .meta { font-size: 12.5px; color: var(--muted); }
.tl-item p { font-size: 13.5px; margin: 4px 0 0; color: var(--ink-2); }

/* charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); fill: var(--muted); font-size: 11.5px; }
.chart .axis-line { stroke: var(--line); }
.chart .grid-line { stroke: var(--line-2); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.legend i.line { height: 3px; border-radius: 2px; width: 16px; }
.tooltip { position: fixed; z-index: 200; pointer-events: none; background: #0f2630; color: #fff; font-size: 12.5px; line-height: 1.45; padding: 9px 12px; border-radius: 9px; box-shadow: var(--shadow-lg); max-width: 260px; opacity: 0; transition: opacity .1s; }
.tooltip.show { opacity: 1; }
.tooltip b { font-weight: 600; }
.tooltip .tt-muted { color: #9fb5bf; }
.view-toggle { font-size: 12px; }
.chart-table { margin-top: 10px; }
.chart-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.chart-table th, .chart-table td { padding: 6px 8px; border-bottom: 1px solid var(--line-2); text-align: start; }
.chart-table td.num, .chart-table th.num { text-align: end; font-variant-numeric: tabular-nums; }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(12, 28, 36, .5); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s ease; }
.modal { background: #fff; border-radius: 18px; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--shadow-lg); animation: rise .2s ease; }
.modal-head { padding: 20px 24px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-head h2 { font: 650 19px/1.3 var(--font); }
html[lang="ar"] .modal-head h2 { font-family: var(--font-ar); }
.modal-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.modal-body { padding: 20px 24px; }
.modal-foot { padding: 16px 24px 22px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line-2); }
.x-btn { border: 0; background: var(--line-2); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink-2); flex: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(-50%); background: #0f2630; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 300; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; animation: rise .2s ease; }
html[dir="rtl"] .toast { transform: translateX(50%); }
.toast svg { width: 18px; height: 18px; color: #8fd4b5; }

/* guided tour */
.tour-mask { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.tour-spot { position: fixed; z-index: 151; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(10, 28, 36, .58); transition: all .3s ease; pointer-events: none; border: 2px solid #8fd4b5; }
.tour-card { position: fixed; z-index: 152; width: min(380px, calc(100vw - 32px)); background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 20px 22px; transition: top .3s ease, left .3s ease; }
.tour-card .step-of { font-size: 12px; font-weight: 600; color: var(--brand); letter-spacing: .08em; text-transform: uppercase; }
.tour-card h3 { font: 650 18px/1.3 var(--font); margin: 6px 0 8px; }
html[lang="ar"] .tour-card h3 { font-family: var(--font-ar); }
.tour-card p { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }
.tour-card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tour-dots { display: flex; gap: 5px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.tour-dots i.on { background: var(--brand); width: 18px; border-radius: 3px; }

/* print (programme report) */
.print-only { display: none; }
@media print {
  .no-print, .sidebar, .topbar, .ribbon, .site-header, .site-footer, .tour-card, .tour-spot { display: none !important; }
  .app { display: block; }
  .content { padding: 0; }
  .print-only { display: block; }
  body { background: #fff; font-size: 12px; }
  .panel, .kpi { break-inside: avoid; border-color: #ccd5da; }
  .cols, .kpis { gap: 10px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c-2, .c-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1240px) {
  .site-nav { display: none; position: absolute; top: 70px; inset-inline: 0; background: #fff; flex-direction: column; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .menu-btn { display: grid; place-items: center; margin-inline-start: auto; }
  .header-actions { order: 3; }
}
@media (max-width: 980px) {
  .site-nav { display: none; position: absolute; top: 70px; inset-inline: 0; background: #fff; flex-direction: column; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .menu-btn { display: grid; place-items: center; margin-inline-start: auto; }
  .header-actions .btn-primary { display: none; }
  .split, .model, .g3, .g4, .fit-grid, .site-footer .wrap, .cta-band { grid-template-columns: 1fr; }
  .g2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:first-child, .step:last-child { border-radius: 0; border-inline-start: 1px solid var(--line); }
  .step + .step { border-top: 0; }
  .step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .step:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .step-arrow { inset-inline-end: auto; inset-inline-start: 50%; top: auto; bottom: -15px; transform: translateX(-50%) rotate(90deg); }
  .journey, .scale { grid-template-columns: 1fr; gap: 16px; }
  .journey::before { display: none; }
  .jstep { display: grid; grid-template-columns: 48px 1fr; gap: 14px; text-align: start; }
  .jdot { margin: 0; }
  .stage-row { grid-template-columns: 1fr; gap: 6px; }
  .stage-row.head { display: none; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: 270px; z-index: 90; transform: translateX(-100%); transition: transform .2s; }
  html[dir="rtl"] .sidebar { transform: translateX(100%); }
  .sidebar.open { transform: none !important; box-shadow: var(--shadow-lg); }
  .topbar { padding: 0 16px; }
  .topbar .menu-btn { display: grid; margin: 0; }
  .content { padding: 18px 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-2e { grid-template-columns: minmax(0, 1fr); }
  .seg { flex-wrap: wrap; }
  .toolbar input[type="search"] { min-width: 0; width: 100%; }
  .model-figs { grid-template-columns: 1fr; }
  .section { padding-block: 64px; }
  .hero .wrap { padding-block: 72px 64px; }
  .cta-band { padding: 32px 26px; }
  .role-switch .lbl, .crumb { display: none; }
}
@media (max-width: 1100px) { .hide-sm { display: none; } }
@media (max-width: 980px) { .site-header .wrap { gap: 10px; } .header-actions { order: 3; } }
@media (max-width: 560px) {
  .brand-name small { display: none; }
  .brand-name { font-size: 15.5px; }
  .demo-list { grid-template-columns: 1fr !important; }
  .form-grid { grid-template-columns: 1fr; }
  .wrap { padding-inline: 18px; }
  .hero-meta { gap: 18px; }
  .topbar-right .country-chip span { display: none; }
  .role-switch select { max-width: 150px; }
}

@media (min-width: 1241px) { .site-nav .nav-contact { display: none; } }
.site-header .wrap > * { flex-shrink: 0; }
.site-header .site-nav { flex-shrink: 1; }
