/* GRC AI Advisor: public website. Plain CSS, no build step. Colours as in the client deck. */

:root {
  --green: #0F6E5C;
  --green-dark: #0B5647;
  --accent: #3FBF9F;
  --tint: #E3F2EE;
  --navy: #101828;
  --navy-2: #1C2330;
  --navy-3: #252E3D;
  --slate: #2D3544;
  --muted: #5D6778;
  --muted-2: #9AA3B2;
  --line: #DDE1E7;
  --bg: #F6F7F9;
  --white: #FFFFFF;
  --indigo: #4B4FB3;
  --indigo-tint: #ECEDFB;
  --amber: #9A5B00;
  --amber-mid: #E0A93B;
  --amber-tint: #FDF3E1;
  --red: #B42318;
  --red-mid: #E0675E;
  --red-tint: #FDECEA;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  --font: "Tajawal", "Segoe UI", system-ui, -apple-system, "Noto Sans Arabic", "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --topbar-h: 64px;
  color-scheme: light;
}

/* ---------- Language: show only the chosen language ---------- */
html[lang="en"] [lang="ar"]:not(.keep),
html[lang="ar"] [lang="en"]:not(.keep) { display: none !important; }
/* The switch shows the other language's name */
html[lang="en"] .langswitch [lang="en"],
html[lang="ar"] .langswitch [lang="ar"] { display: none; }
/* The Arabic video is only offered in Arabic */
html[lang="en"] .kmap-video { display: none; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0; font-weight: 800; }
p { margin: 0; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
button { font: inherit; color: inherit; }
sup a { text-decoration: none; font-weight: 700; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--accent); }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-small { min-height: 38px; padding: 6px 16px; font-size: 15px; }
.btn-big { min-height: 54px; padding: 12px 30px; font-size: 18px; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: #63D2B6; color: var(--navy); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-line { border-color: var(--line); background: var(--white); color: var(--navy); }
.btn-line:hover { border-color: var(--green); color: var(--green); }
.btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(16, 24, 40, .97); color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.topbar-in { display: flex; align-items: center; gap: 20px; min-height: var(--topbar-h); }
.brand img { width: 160px; height: auto; }
.mainnav { margin-inline-start: auto; }
.mainnav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.mainnav a { display: block; padding: 8px 12px; color: #D0D5DD; text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 8px; }
.mainnav a:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.langswitch {
  min-height: 38px; padding: 4px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid rgba(255, 255, 255, .3); color: var(--white); font-weight: 700; font-size: 15px;
}
.langswitch:hover { border-color: var(--accent); color: var(--accent); }
.langswitch [lang="ar"] { font-size: 16px; }
.menubtn { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; cursor: pointer; position: relative; }
.menubtn-bars, .menubtn-bars::before, .menubtn-bars::after { position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px; background: var(--white); border-radius: 2px; content: ""; }
.menubtn-bars { top: 50%; margin-top: -1px; }
.menubtn-bars::before { top: -6px; }
.menubtn-bars::after { top: 6px; }

@media (max-width: 1060px) {
  .menubtn { display: block; }
  .mainnav { position: absolute; inset-inline: 0; top: 100%; background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .1); display: none; margin: 0; }
  .mainnav.open { display: block; }
  .mainnav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .mainnav a { padding: 12px; font-size: 17px; }
  .topbar-actions { margin-inline-start: auto; }
}
@media (max-width: 520px) {
  :root { --gutter: 16px; }
  .brand img { width: 128px; }
  .topbar-in { gap: 10px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .btn-small { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section.alt { background: var(--bg); }
.dark { background: var(--navy); color: #D0D5DD; }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.kicker {
  display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px;
  background: var(--tint); color: var(--green); font-weight: 700; font-size: 14px;
}
.dark .kicker { background: rgba(63, 191, 159, .14); color: var(--accent); }
h2 { font-size: clamp(28px, 3.6vw, 42px); max-width: 26em; letter-spacing: -.01em; }
html[lang="ar"] h2 { letter-spacing: 0; }
.intro { margin-top: 16px; font-size: 19px; color: var(--muted); max-width: 46em; }
.dark .intro { color: #B9C0CC; }
.subhead { margin-top: 64px; margin-bottom: 18px; font-size: 24px; }
.footnote { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 60em; }
.dark .footnote { color: var(--muted-2); }
.muted { color: var(--muted); font-size: 15px; }
@media (max-width: 700px) { .section { padding-block: 60px; } .intro { font-size: 17px; } .subhead { margin-top: 48px; font-size: 21px; } }

/* ---------- 1. Hero ---------- */
.hero { padding-block: 84px 96px; background: radial-gradient(1200px 500px at 85% 0%, rgba(63, 191, 159, .13), transparent 60%), var(--navy); }
html[dir="rtl"] .hero { background: radial-gradient(1200px 500px at 15% 0%, rgba(63, 191, 159, .13), transparent 60%), var(--navy); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--accent); color: var(--navy); font-weight: 700; font-size: 14px; }
.hero h1 { margin-top: 20px; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.02em; }
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.3; }
.lead { margin-top: 22px; font-size: clamp(18px, 1.8vw, 21px); color: #C8CED8; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.madein { margin-top: 36px; font-size: 15px; color: var(--muted-2); display: flex; align-items: center; gap: 10px; }
.madein::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.hero-art svg { width: 100%; filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .35)); }
html[dir="rtl"] .flipx { transform: scaleX(-1); }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; gap: 40px; } .hero-art { max-width: 480px; } .hero { padding-block: 56px 64px; } }

/* ---------- 2. Value ---------- */
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; align-items: start; }
.points { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.points li { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-top: 1px solid var(--line); }
.points li:first-child { border-top: 0; }
.points p { font-size: 18px; color: var(--slate); }
.points strong { color: var(--navy); }
.num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--green); font-weight: 800; font-size: 15px; }
.points li:last-child .num { background: var(--green); color: var(--white); }
.value-cards { display: grid; gap: 14px; }
.vcard { padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.vcard p:not(.vbig) { color: var(--muted); margin-top: 4px; }
.vbig { font-size: 28px; font-weight: 800; color: var(--green); line-height: 1.2; }
.vcard-strong { background: var(--green); border-color: var(--green); }
.vcard-strong .vbig { color: var(--white); font-size: 34px; }
.vcard-strong p:not(.vbig) { color: #D7EEE8; }
.vcard-strong sup a { color: var(--accent); }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: start; vertical-align: top; padding: 14px 18px; border-top: 1px solid var(--line); }
thead th { border-top: 0; background: var(--bg); color: var(--muted); font-size: 14px; font-weight: 700; }
tbody th { color: var(--navy); font-weight: 700; }
td.hl, th.hl { background: var(--tint); color: var(--navy); }
thead th.hl { background: var(--green); color: var(--white); }
td.hl { font-weight: 500; }
.mlabel { display: none; }
.changes th[scope="row"] { width: 22%; }
.changes td { width: 39%; }
@media (max-width: 640px) {
  /* stack table rows into cards on a phone */
  .changes thead, .vs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .changes tr, .vs tr { display: block; border-top: 1px solid var(--line); padding: 14px 16px; }
  .changes tbody tr:first-child, .vs tbody tr:first-child { border-top: 0; }
  .changes th, .changes td, .vs th, .vs td { display: block; width: auto !important; border: 0; padding: 2px 0; background: none; }
  .changes td:not(.hl), .vs td:not(.hl) { color: var(--muted); font-size: 15px; }
  .mlabel { display: block !important; font-size: 12px; font-weight: 700; color: var(--muted); }
  td.hl .mlabel { color: var(--green); }
  .changes td.hl, .vs td.hl { margin-top: 6px; padding: 8px 12px; border-radius: 8px; background: var(--tint); }
}

/* ---------- 3. Platform ---------- */
.platform { display: grid; grid-template-columns: 1fr 320px; gap: 24px; margin-top: 40px; align-items: start; }
.layers { display: grid; gap: 12px; }
.layer { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: stretch; }
.layer-name { display: flex; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--green); color: var(--white) !important; font-size: 16px; }
.layer-ai .layer-name { background: var(--indigo); }
.chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chips-2 { grid-template-columns: repeat(2, 1fr); }
.chips-3 { grid-template-columns: repeat(3, 1fr); }
.chips-4 { grid-template-columns: repeat(4, 1fr); }
.chips-6 { grid-template-columns: repeat(6, 1fr); }
.chips li { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); font-weight: 700; color: var(--navy); font-size: 15px; line-height: 1.35; text-align: center; }
.chips li strong { font-size: 16px; }
.chips li small { font-weight: 400; color: var(--muted); font-size: 14px; }
.chips-ai li { background: var(--indigo-tint); border-color: transparent; color: var(--indigo); }
.chips-6 li { font-size: 14px; padding: 12px 8px; }
.scope { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--tint); color: var(--slate); }
.scope strong { color: var(--green); }
.side-card { padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.side-card h3 { font-size: 19px; color: var(--green); margin-bottom: 14px; }
.side-green { background: var(--tint); border-color: transparent; }
.ticks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 28px; font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.ticks strong { color: var(--navy); }
.ticks:last-child { margin-bottom: 0; }
@media (max-width: 1000px) { .platform { grid-template-columns: 1fr; } .chips-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .layer { grid-template-columns: 1fr; }
  .layer-name { padding: 10px 14px; }
  .chips-3, .chips-4 { grid-template-columns: repeat(2, 1fr); }
  .chips-3 li:last-child { grid-column: 1 / -1; }
  .chips-2 { grid-template-columns: 1fr; }
}

/* ---------- 4. Knowledge map ---------- */
.kmap { margin-top: 36px; }
.kmap-views { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.kmap-views button, .filters button {
  min-height: 42px; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 15px;
  border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #D0D5DD;
}
.kmap-views button:hover { border-color: var(--accent); color: var(--white); }
.kmap-views button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.kmap-stage { display: grid; grid-template-columns: 1fr; gap: 16px; }
.kmap-canvas {
  position: relative; container-type: inline-size; border-radius: var(--radius);
  background: radial-gradient(60% 60% at 50% 50%, rgba(63, 191, 159, .12), transparent 70%), #0D2A26;
  border: 1px solid rgba(63, 191, 159, .25); overflow: hidden;
}
.kmap-canvas svg.kmap-edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.kmap-edges path { fill: none; stroke: rgba(63, 191, 159, .55); stroke-width: 2; transition: opacity .2s, stroke .2s; }
.kmap-edges path.e-finding { stroke: rgba(224, 169, 59, .7); }
.kmap-edges path.e-risk { stroke: rgba(224, 103, 94, .7); }
.kmap-edges path.on { stroke: var(--accent); stroke-width: 3; opacity: 1; }
.kmap-edges path.off { opacity: .12; }
.knode {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: .6em; text-align: start;
  padding: .55em .75em; border-radius: .7em; cursor: pointer;
  background: #13201F; border: 1px solid rgba(63, 191, 159, .45); color: var(--white);
  font-size: 1.25cqw; line-height: 1.25; box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
  transition: opacity .2s, border-color .2s, background-color .2s;
}
.knode::after { content: ""; position: absolute; inset-block: .55em; inset-inline-end: -1px; width: 3px; border-radius: 3px; background: var(--kc, var(--accent)); }
.knode .ki { flex: none; width: 2.2em; height: 2.2em; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--kc, var(--accent)); color: var(--kc, var(--accent)); }
.knode .ki svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.knode .kt { display: flex; flex-direction: column; min-width: 0; }
.knode .kk { font-size: .82em; color: var(--kc, var(--accent)); font-weight: 700; }
.knode .kn { font-weight: 700; font-size: 1.05em; }
.knode:hover { border-color: var(--white); }
.knode.sel { background: #1B3A35; border-color: var(--white); box-shadow: 0 0 0 3px rgba(63, 191, 159, .45); }
.knode.off { opacity: .28; }
.knode.k-center { background: linear-gradient(180deg, #2FA987, #188A6D); border-color: rgba(255, 255, 255, .5); text-align: center; justify-content: center; padding: .9em 1.1em; font-size: 1.55cqw; }
.knode.k-center::after { display: none; }
.knode.k-center .ki { display: none; }
.knode.k-center .kk { color: #E3F2EE; }
.knode.k-center .kt { align-items: center; }
.knode .kbadge { display: none; margin-top: .3em; padding: .1em .6em; border-radius: 999px; background: var(--amber-mid); color: var(--navy); font-size: .8em; font-weight: 700; align-self: flex-start; }
.kmap.impact .knode[data-id="result"] .kbadge { display: inline-block; }
.k-control { --kc: #A7F3D9; }
.k-fw { --kc: #6FE0C0; }
.k-doc { --kc: #8FD3FF; }
.k-finding { --kc: #F2C14E; }
.k-risk { --kc: #F28B82; }
.k-plan { --kc: #B9BCF5; }
.kmap-info { padding: 20px 24px; border-radius: var(--radius); background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08); min-height: 150px; }
.kmap-info > * { max-width: 62em; }
.kmap-info .ik { font-size: 14px; font-weight: 700; color: var(--accent); }
.kmap-info h3 { font-size: 19px; margin-top: 4px; }
.kmap-info p { margin-top: 10px; font-size: 15.5px; color: #C8CED8; }
.kmap-info ul { margin: 10px 0 0; padding-inline-start: 18px; font-size: 15px; color: #C8CED8; }
.kmap-info button.linkish { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font-size: 15px; }
.kmap-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; padding: 0; font-size: 14px; color: #B9C0CC; }
.kmap-legend li { display: flex; align-items: center; gap: 8px; }
.kmap-legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--kc); }
.kmap-video { margin-top: 16px; }
.kmap-video summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: 15px; }
.kmap-video video, .kmap-fallback video { margin-top: 12px; border-radius: var(--radius); width: 100%; }
.kmap-fallback figcaption { margin-top: 8px; font-size: 14px; }
.sources { margin-top: 20px; font-size: 13.5px; color: var(--muted-2); max-width: 70em; }
/* narrow layout: the map is drawn tall, so nodes get a bigger share of the width */
.kmap-canvas.narrow .knode { font-size: 3.1cqw; }
.kmap-canvas.narrow .knode.k-center { font-size: 3.9cqw; }
.kmap-canvas.narrow .knode .ki { width: 1.9em; height: 1.9em; }

/* ---------- 5. Seven steps ---------- */
.steps7 { list-style: none; margin: 40px 0 0; padding: 24px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.steps7 li { position: relative; text-align: center; padding: 0 6px; }
.steps7 li:not(:last-child)::after { content: ""; position: absolute; top: 20px; inset-inline-start: calc(50% + 26px); width: calc(100% - 44px); height: 2px; background: var(--line); }
.stepn { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 50%; background: var(--tint); color: var(--green); font-weight: 800; }
.steps7 li:nth-child(4) .stepn { background: var(--green); color: var(--white); }
.steps7 h3 { font-size: 17px; }
.steps7 li:nth-child(4) h3 { color: var(--green); }
.steps7 p { margin-top: 6px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.tcard { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.tcard h3 { font-size: 19px; margin-top: 12px; }
.tcard p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.tcard-green { background: var(--green); border-color: var(--green); }
.tcard-green h3 { color: var(--white); }
.tcard-green p { color: #D7EEE8; }
.tcard-indigo { background: var(--indigo-tint); border-color: transparent; }
.tcard-indigo h3 { color: var(--indigo); }
.ico { width: 40px; height: 40px; padding: 8px; border-radius: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; background: var(--tint); color: var(--green); }
.tcard-green .ico { background: rgba(255, 255, 255, .15); color: var(--white); }
.tcard-indigo .ico { background: var(--white); color: var(--indigo); }
@media (max-width: 960px) {
  .steps7 { grid-template-columns: 1fr; gap: 0; padding: 8px 20px; }
  .steps7 li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; text-align: start; padding: 14px 0; }
  .steps7 li:not(:last-child)::after { top: 58px; inset-inline-start: 19px; width: 2px; height: calc(100% - 48px); }
  .stepn { grid-row: span 2; margin: 0; }
  .steps7 p { margin-top: 2px; }
  .trio { grid-template-columns: 1fr; }
}

/* ---------- 6. Citation step-through ---------- */
.cite { margin-top: 36px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.cite-tabs { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); background: var(--bg); }
.cite-tabs button {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 6px 14px; cursor: pointer;
  background: none; border: 0; border-bottom: 3px solid transparent; font-weight: 700; font-size: 15px; color: var(--muted);
}
.cite-tabs .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.cite-tabs button.done .n { background: var(--tint); border-color: var(--tint); color: var(--green); }
.cite-tabs button[aria-selected="true"] { color: var(--green); border-bottom-color: var(--green); background: var(--white); }
.cite-tabs button[aria-selected="true"] .n { background: var(--green); border-color: var(--green); color: var(--white); }
.cite-tabs button:hover { color: var(--navy); }
.cite-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px; align-items: start; }
.cite-step { font-size: 14px; color: var(--muted); font-weight: 700; }
.cite-panel h3 { font-size: 26px; margin-top: 4px; }
.cite-panel h4 { margin-top: 20px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--green); }
html[lang="ar"] .cite-panel h4 { text-transform: none; letter-spacing: 0; font-size: 16px; }
.cite-panel p { margin-top: 6px; font-size: 17px; }
.cite-panel:focus-visible { outline-offset: 8px; }
.ccard { margin: 0; padding: 20px; border-radius: var(--radius); background: var(--navy); color: #D0D5DD; font-size: 15px; }
.ccard figcaption { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ccard-tag { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px; color: var(--muted-2); }
.ccard-req { color: var(--white); font-weight: 700; font-size: 17px; }
.ccard-rows { list-style: none; margin: 0; padding: 0; }
.ccard-rows li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 8px; border-radius: 8px; transition: opacity .25s, background-color .25s; }
.ccard-rows b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(63, 191, 159, .18); color: var(--accent); font-size: 13px; }
.ccard-rows li.future { color: var(--muted-2); }
.ccard-rows li.future b { background: rgba(255, 255, 255, .06); color: var(--muted-2); }
.ccard-rows li.future .pill { background: transparent; border: 1px solid #5D6778; color: var(--muted-2); }
.ccard-rows li.current { background: rgba(63, 191, 159, .12); color: var(--white); }
.ccard-rows li.current b { background: var(--accent); color: var(--navy); }
.ccard .quote { font-style: italic; }
.pill { display: inline-block; margin: 2px 2px 0 0; padding: 1px 10px; border-radius: 999px; font-style: normal; font-size: 13px; font-weight: 700; }
.pill-amber { background: var(--amber-mid); color: var(--navy); }
.pill-grey { background: rgba(255, 255, 255, .12); color: #D0D5DD; }
.pill-green { background: var(--accent); color: var(--navy); }
.pill-line { border: 1px solid rgba(255, 255, 255, .3); color: #D0D5DD; }
.cite-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 32px 24px; }
.cite-dots { display: flex; gap: 6px; }
.cite-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.cite-dots i.on { background: var(--green); width: 24px; border-radius: 4px; }
@media (max-width: 900px) {
  .cite-tabs { display: flex; overflow-x: auto; scrollbar-width: thin; }
  .cite-tabs button { flex: none; min-width: 96px; }
  .cite-body { grid-template-columns: 1fr; padding: 22px; gap: 22px; }
  .cite-nav { padding: 8px 22px 22px; }
  .cite-panel h3 { font-size: 22px; }
}
@media (max-width: 420px) { .cite-dots { display: none; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.stat-n { font-size: 40px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat-l { font-weight: 700; color: var(--navy); margin-top: 6px; font-size: 18px; }
.stat-s { margin-top: 8px; color: var(--muted); font-size: 15px; }
.stat-green { background: var(--green); border-color: var(--green); }
.stat-green .stat-n, .stat-green .stat-l { color: var(--white); }
.stat-green .stat-s { color: #D7EEE8; }
.stat-indigo { background: var(--indigo-tint); border-color: transparent; }
.stat-indigo .stat-n, .stat-indigo .stat-l { color: var(--indigo); }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr; } }

/* ---------- 7. Regulators ---------- */
.regs { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.reg { display: flex; flex-direction: column; padding: 22px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); border-top: 4px solid var(--green); }
.reg-code { font-size: 28px; font-weight: 800; color: var(--green); line-height: 1.1; }
.reg h3 { margin-top: 8px; font-size: 16px; }
.reg p:not(.reg-code):not(.applies) { margin-top: 10px; font-size: 15px; color: var(--muted); flex: 1; }
.applies { margin-top: 16px; padding: 10px 12px; border-radius: 8px; background: var(--tint); font-size: 14px; color: var(--slate); }
.applies strong { color: var(--green); }
@media (max-width: 1060px) { .regs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .regs { grid-template-columns: 1fr; } }

/* ---------- 8. Principles ---------- */
.principles { display: grid; grid-template-columns: 1fr 340px; gap: 16px; margin-top: 40px; align-items: start; }
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pgrid li { padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; align-items: start; }
.pn { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--green); font-weight: 800; }
.pgrid h3 { font-size: 19px; align-self: center; }
.pgrid p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 1000px) { .principles { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pgrid { grid-template-columns: 1fr; } }

/* ---------- 9. Comparison ---------- */
.vs { margin-top: 0; }
.section #comparison .tablewrap { margin-top: 0; }
#comparison .intro + .tablewrap { margin-top: 36px; }
.vs th[scope="row"] { width: 22%; }
.vs td { width: 39%; }
.summary { margin-top: 28px; padding: 24px; border-radius: var(--radius); background: var(--bg); }
.summary-bar { display: flex; gap: 3px; height: 18px; border-radius: 999px; overflow: hidden; }
.seg-full { flex: 16; background: var(--green); }
.seg-part { flex: 5; background: var(--accent); }
.seg-out { flex: 2; background: var(--muted-2); }
.summary-key { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 16px 0 0; padding: 0; }
.summary-key li { display: flex; align-items: baseline; gap: 8px; color: var(--slate); }
.summary-key b { font-size: 30px; font-weight: 800; line-height: 1; }
.c-full { color: var(--green); }
.c-part { color: #177A62; }
.c-out { color: var(--muted); }
.c-lead { color: var(--indigo); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border-color: var(--line); color: var(--slate); background: var(--white); }
.filters button small { font-size: 13px; color: var(--muted); font-weight: 500; }
.filters button:hover { border-color: var(--green); }
.filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.filters button[aria-pressed="true"] small { color: #D7EEE8; }
.filters .st, .filters .st-lead { width: 16px; height: 16px; vertical-align: -3px; margin: 0; background-size: 16px; }
.filters button[aria-pressed="true"] .st-full { background-color: var(--accent); }
.filters button[aria-pressed="true"] .st-part { border-color: var(--white); background: linear-gradient(90deg, var(--white) 50%, transparent 50%); }
.filters button[aria-pressed="true"] .st-out { border-color: var(--white); }
.filters button[aria-pressed="true"] .st-lead { background: var(--white); }
.filter-count { margin: 12px 0; font-size: 14px; color: var(--muted); min-height: 1.6em; }
.caps th[scope="row"] { width: 26%; }
.caps .c-status { width: 92px; white-space: nowrap; }
.caps td:last-child { font-size: 15.5px; }
.caps tr.group th { background: var(--bg); color: var(--green); font-size: 14px; padding-block: 10px; }
.caps tr[hidden] { display: none; }
.st { display: inline-block; width: 20px; height: 20px; border-radius: 50%; vertical-align: -4px; }
.st-full { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.st-part { border: 2px solid var(--green); background: linear-gradient(90deg, var(--green) 50%, transparent 50%); }
html[dir="rtl"] .st-part { background: linear-gradient(270deg, var(--green) 50%, transparent 50%); }
.st-out { border: 2px solid var(--muted-2); }
.st-lead { display: inline-block; width: 20px; height: 20px; margin-inline-start: 6px; vertical-align: -4px; background: var(--indigo); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L10 14.9l-5.2 2.7 1-5.8L1.5 7.7l5.9-.9z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L10 14.9l-5.2 2.7 1-5.8L1.5 7.7l5.9-.9z'/%3E%3C/svg%3E") center/contain no-repeat; }
.legend-line { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.legend-line > span { display: inline-flex; align-items: center; gap: 6px; }
.legend-line .st-lead { margin: 0; }
.leads { margin: 0; padding: 0; list-style: none; counter-reset: lead; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.leads li { counter-increment: lead; position: relative; padding: 18px 18px 18px 18px; padding-top: 46px; border-radius: var(--radius); border: 1px solid var(--line); font-size: 15.5px; color: var(--muted); }
.leads li::before { content: counter(lead); position: absolute; top: 14px; inset-inline-start: 18px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--indigo-tint); color: var(--indigo); font-weight: 800; font-size: 13px; }
.leads strong { color: var(--navy); }
@media (max-width: 900px) { .leads { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .leads { grid-template-columns: 1fr; }
  .caps thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .caps tr { display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--line); padding: 12px 16px; }
  .caps th, .caps td { border: 0; padding: 0; width: auto !important; }
  .caps td:last-child { grid-column: 1 / -1; margin-top: 4px; color: var(--muted); font-size: 15px; }
  .caps tr.group { display: block; padding: 0; }
  .caps tr.group th { display: block; padding: 10px 16px; }
}

/* ---------- 10. Security ---------- */
.security { display: grid; grid-template-columns: 1fr 360px; gap: 16px; margin-top: 40px; align-items: start; }
.sec-list { list-style: none; margin: 0; padding: 8px 24px; border-radius: var(--radius); background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08); }
.sec-list li { display: grid; grid-template-columns: 34px 40px 1fr; gap: 14px; align-items: center; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.sec-list li:first-child { border-top: 0; }
.sn { font-weight: 800; color: var(--muted-2); }
.sec-list .ico { background: rgba(63, 191, 159, .14); color: var(--accent); }
.sec-list h3 { font-size: 18px; }
.sec-list p { font-size: 15.5px; color: #B9C0CC; margin-top: 2px; }
.sec-cards { display: grid; gap: 14px; }
.scard { padding: 22px 24px; border-radius: var(--radius); background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08); }
.scard h3 { font-size: 24px; }
.scard p { margin-top: 6px; color: #B9C0CC; font-size: 15.5px; }
.scard-green { background: var(--green); border-color: var(--green); }
.scard-green p { color: #D7EEE8; }
@media (max-width: 960px) { .security { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .sec-list { padding: 4px 16px; } .sec-list li { grid-template-columns: 40px 1fr; } .sn { display: none; } }

/* ---------- 11. Screens slider ---------- */
.slider { margin-top: 36px; }
.slider-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.slider-tabs button { min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-weight: 700; font-size: 15px; color: var(--slate); }
.slider-tabs button:hover { border-color: var(--green); }
.slider-tabs button[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.slider-frame { border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.slider-chrome { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.slider-chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; }
.slide img { width: 100%; height: auto; aspect-ratio: auto; background: var(--white); min-height: 120px; }
.slide figcaption { margin-top: auto; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--slate); background: var(--white); }
.slider-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.slider-pos { font-size: 15px; color: var(--muted); font-weight: 700; }

/* ---------- 12. Contact and footer ---------- */
.contact { padding-block: 72px; background: linear-gradient(135deg, var(--green), #0B4C40); }
.contact .intro { color: #D7EEE8; }
.contact-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.contact-addr { color: #D7EEE8; font-size: 16px; }
.footer { padding-block: 36px; background: var(--white); border-top: 1px solid var(--line); }
.footer-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo { width: 144px; }
.footer-made { font-weight: 700; color: var(--green); }
.footer-small { margin-inline-start: auto; font-size: 14px; color: var(--muted); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Print: a clean PDF of the whole page in the chosen language ---------- */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  :root { --gutter: 0px; }
  body { font-size: 11pt; background: #fff; color: #1C2330; }
  .topbar, .skip, .hero-cta, .kmap-views, .kmap-video, .cite-nav, .cite-tabs, .filters, .filter-count,
  .slider-tabs, .slider-nav, .slider-chrome, .contact-actions .btn, .menubtn, noscript { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .section, .hero, .contact { padding-block: 10mm; }
  .dark, .hero, .contact { background: #fff !important; color: #2D3544; }
  .dark h1, .dark h2, .dark h3, .contact h2 { color: #101828; }
  .dark .intro, .contact .intro, .lead { color: #5D6778; }
  .dark .kicker { background: var(--tint); color: var(--green); }
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero h1 { font-size: 26pt; }
  .eyebrow { border: 1px solid var(--green); background: none; color: var(--green); }
  h2 { font-size: 19pt; }
  .section.alt { background: #fff; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none !important; }
  .vcard, .tcard, .stat, .reg, .pgrid li, .leads li, .scard, .side-card, .points li, .chips li, .steps7 li, .sec-list li, tr, figure, .ccard-rows li { break-inside: avoid; }
  h2, h3, .kicker, .intro { break-after: avoid; }
  .kicker { display: table; }
  .kmap-canvas, .ccard, .contact, .summary, .steps7 { break-inside: avoid; }
  /* knowledge map */
  .kmap-stage { grid-template-columns: 1fr; }
  .kmap-info { display: none; }
  .kmap-canvas { background: #0D2A26 !important; }
  .kmap-legend { color: #5D6778; }
  .sources { color: #5D6778; }
  /* security on white */
  .sec-list, .scard { background: #fff; border: 1px solid var(--line); }
  .scard-green { background: var(--green); }
  .sec-list p, .scard p { color: #5D6778; }
  .scard-green p { color: #fff; }
  .sec-list .ico { background: var(--tint); color: var(--green); }
  /* citation: every step */
  .cite { border: 0; }
  .cite-body { grid-template-columns: 1fr; padding: 0; gap: 6mm; }
  .cite-panel[hidden] { display: block !important; }
  .cite-panel { padding: 3mm 0; border-top: 1px solid var(--line); break-inside: avoid; }
  .cite-panel h3 { font-size: 14pt; }
  .cite-panel h4 { margin-top: 2mm; }
  .ccard-rows li { background: none !important; color: #D0D5DD !important; }
  /* comparison: all rows */
  .caps tr[hidden] { display: table-row !important; }
  .tablewrap { overflow: visible; }
  .leads { grid-template-columns: repeat(3, 1fr); }
  /* screens: one under another */
  .slider-track { display: block; overflow: visible; }
  .slide { break-inside: avoid; margin-bottom: 6mm; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
  .slider-frame { border: 0; }
  .contact { border-top: 2px solid var(--green); }
  .contact-in { display: block; }
  .contact-addr { color: var(--green); font-size: 14pt; font-weight: 700; margin-top: 4mm; }
  .contact-actions { align-items: flex-start; }
  a[href^="#"] { color: inherit; text-decoration: none; }
}
