/* GENERATED by tools/perf/build_css_bundle.py — do not edit; edit the sources listed below and rebuild.
   Sources, in cascade order: seo/breadcrumbs.css, css/fonts.css, css/tokens.css, css/site.css, css/diagrams.css, css/home.css, css/article.css, css/brand.css, css/scenes.css, css/whatsapp.css, consent/consent.css, leads/leads.css */
/* ---- seo/breadcrumbs.css ---- */
/* Breadcrumbs (lane F, round 2). Separators trail the previous item instead of leading the next,
   so when the trail wraps (390 px) a wrapped item never starts with an orphan "/". Long current-page
   titles wrap inside their own item. Overrides the round-1 `.breadcrumbs li + li::before` rule. */
.breadcrumbs .breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0; row-gap: 0; }
.breadcrumbs .breadcrumbs__item { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.breadcrumbs .breadcrumbs__item + .breadcrumbs__item::before { content: none; }
.breadcrumbs .breadcrumbs__item:not(:last-child)::after {
  content: "/"; margin-inline: .5rem; color: var(--border-strong); flex: none;
}
.breadcrumbs .breadcrumbs__item a { overflow-wrap: anywhere; }
/* ---- css/fonts.css ---- */
/* Cairo — SIL Open Font License 1.1 (see /static/fonts/cairo/OFL.txt). Self-hosted.
   Four unicode-range faces derived from cairo-arabic-latin.woff2 by tools/perf/build_font_subsets.py
   (weight axis 400–800, upright). An English page needs only cairo-latin (17 KB), an Arabic page
   cairo-arabic (21 KB) plus cairo-latin (names, digits, punctuation); base.html preloads exactly
   those. The -ext faces (accented Latin, Arabic Supplement/Extended, presentation forms) are not used
   by current content and download only if a page contains such a character.
   Why it matters (R4c traces): when the font is not ready at the first layout, Arabic text is laid
   out with system fallback fonts first — 0.8–1.2 s of layout at 4× CPU against 0.2–0.3 s with Cairo
   ready — so the Arabic critical font bytes were cut from 61 KB to 38 KB.
   font-display: optional (R4c): a preloaded face that is ready by first render is used; otherwise
   this view keeps the fallback and the cached font is used from the next page on. With `swap` the
   late font forced a second full-page text layout and moved the title block (CLS 0.06–0.18 in lab
   runs). build_font_subsets.py reads src + unicode-range from this file.
   Order matters: where ranges overlap (format characters, Latin-1 punctuation) the LAST matching
   face wins, so cairo-latin comes last — English text never triggers an Arabic or -ext download. */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url("../fonts/cairo/cairo-arabic.6d0eb74a0a89.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+200C-200F, U+2066-2069;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url("../fonts/cairo/cairo-arabic-ext.e63897a7a5ac.woff2") format("woff2");
  unicode-range: U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url("../fonts/cairo/cairo-latin-ext.441bb6123edc.woff2") format("woff2");
  unicode-range: U+00A1-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+20B9, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url("../fonts/cairo/cairo-latin.834bddf52246.woff2") format("woff2");
  unicode-range: U+0000-007F, U+00A0, U+00A9, U+00AB, U+00AE, U+00B7, U+00BB, U+00D7, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212;
}
/* ---- css/tokens.css ---- */
/* Invoice And Tax — design tokens. Single source of truth for colour, type, space, motion.
   Palette derived from the official logo: navy wordmark, royal blue, cyan nodes, gold check.
   Breakpoints (used as literals in media queries — custom properties cannot be used there):
     sm 40rem (640px) · md 48rem (768px) · lg 64rem (1024px) · xl 80rem (1280px) */

:root {
  /* Brand */
  --c-navy-950: #050826;
  --c-navy-900: #0b1040;
  --c-navy-800: #141a55;
  --c-navy-700: #1e2670;
  --c-blue-700: #1d4ed8;
  --c-blue-600: #2563eb;
  --c-blue-500: #3b82f6;
  --c-blue-100: #dbe7ff;
  --c-blue-50: #eef4ff;
  --c-cyan-400: #22d3ee;
  --c-cyan-300: #67e8f9;
  --c-sky-400: #38bdf8;
  --c-gold-400: #e3b341;
  --c-gold-600: #a77812;
  --c-violet-500: #7c6cf2;
  --c-teal-500: #14b8a6;

  /* Neutrals (cool, slightly blue) */
  --c-white: #ffffff;
  --c-gray-25: #fbfcfe;
  --c-gray-50: #f6f8fc;
  --c-gray-100: #eef1f8;
  --c-gray-200: #e1e6f0;
  --c-gray-300: #c9d0df;
  --c-gray-500: #6b7390;
  --c-gray-600: #535b78;
  --c-gray-700: #3a4160;
  --c-gray-800: #232945;

  /* Semantic — light surfaces */
  --bg: var(--c-white);
  --bg-subtle: var(--c-gray-50);
  --bg-tint: #f2f6ff;
  --surface: var(--c-white);
  --surface-raised: var(--c-white);
  --ink: var(--c-navy-900);          /* headings */
  --text: #2b3253;                   /* body: 11.9:1 on white */
  --text-muted: var(--c-gray-600);   /* 6.6:1 on white */
  --text-subtle: var(--c-gray-500);  /* 4.8:1 on white — small meta only */
  --border: var(--c-gray-200);
  --border-strong: var(--c-gray-300);
  --link: var(--c-blue-700);         /* 6.7:1 on white */
  --link-hover: var(--c-navy-900);
  --accent: var(--c-blue-600);
  --accent-strong: var(--c-blue-700);
  --accent-soft: var(--c-blue-50);
  --gold: var(--c-gold-400);
  --gold-ink: #7a5600;

  --success: #0f7a4f;   --success-bg: #e8f7ef;
  --warning: #8a5a00;   --warning-bg: #fff6e0;
  --danger: #b42318;    --danger-bg: #fdecea;
  --info: var(--c-blue-700); --info-bg: var(--c-blue-50);

  /* Semantic — dark surfaces (hero, bento, CTA, footer) */
  --dk-bg: var(--c-navy-950);
  --dk-bg-2: var(--c-navy-900);
  --dk-surface: rgba(255, 255, 255, .045);
  --dk-surface-2: rgba(255, 255, 255, .075);
  --dk-border: rgba(255, 255, 255, .11);
  --dk-border-strong: rgba(255, 255, 255, .2);
  --dk-ink: #ffffff;
  --dk-text: #c8cfe6;     /* 11:1 on navy-950 */
  --dk-muted: #98a2c4;    /* 7:1 */
  --dk-link: var(--c-cyan-300);

  /* Gradients and glow */
  --grad-brand: linear-gradient(135deg, var(--c-blue-700) 0%, var(--c-blue-600) 45%, var(--c-sky-400) 100%);
  --grad-text: linear-gradient(100deg, var(--c-blue-700) 0%, var(--c-blue-600) 40%, #0891b2 100%);
  --grad-text-dark: linear-gradient(100deg, #7fb2ff 0%, var(--c-cyan-300) 60%, #a5f3fc 100%);
  --grad-button: linear-gradient(180deg, #2f6df0 0%, var(--c-blue-700) 100%);
  --grad-gold: linear-gradient(90deg, var(--c-gold-400), #f3d27a);
  --glow-blue: radial-gradient(closest-side, rgba(37, 99, 235, .45), rgba(37, 99, 235, 0));
  --glow-cyan: radial-gradient(closest-side, rgba(34, 211, 238, .28), rgba(34, 211, 238, 0));
  --grid-line: rgba(148, 170, 255, .07);

  /* Diagram palette for L2b (SVG uses classes that read these) */
  --dg-ink: var(--c-navy-900);
  --dg-text: var(--text);
  --dg-muted: var(--text-muted);
  --dg-line: #b8c3dc;
  --dg-node: var(--c-white);
  --dg-node-stroke: var(--c-gray-300);
  --dg-accent: var(--c-blue-600);
  --dg-accent-2: var(--c-cyan-400);
  --dg-accent-soft: var(--c-blue-50);
  --dg-gold: var(--c-gold-400);
  --dg-ok: #16a34a;
  --dg-warn: #d97706;
  --dg-bad: #dc2626;
  --dg-dark-node: rgba(255, 255, 255, .06);
  --dg-dark-stroke: rgba(255, 255, 255, .18);
  --dg-dark-text: #dfe5f7;
  --dg-dark-line: rgba(160, 185, 255, .35);

  /* Typography */
  --font-sans: "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", "Geeza Pro", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-md: clamp(1.125rem, 1.06rem + .3vw, 1.25rem);
  --fs-lg: clamp(1.25rem, 1.14rem + .5vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.3rem + .9vw, 2rem);
  --fs-2xl: clamp(1.875rem, 1.5rem + 1.7vw, 2.75rem);
  --fs-3xl: clamp(2.25rem, 1.65rem + 2.8vw, 3.75rem);
  --fs-display: clamp(2.375rem, 1.7rem + 3vw, 4rem);
  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.65;
  --tracking-tight: -.025em;
  --tracking-eyebrow: .12em;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-heavy: 800;

  /* Space (4px base) */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.25rem;
  --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem; --sp-12: 3rem; --sp-16: 4rem; --sp-20: 5rem; --sp-24: 6rem;
  --section-y: clamp(3.5rem, 2.4rem + 4.5vw, 7rem);
  --gutter: clamp(1rem, .6rem + 2vw, 2rem);
  --container: 76rem;
  --container-wide: 84rem;
  --measure: 42rem;

  /* Radii, borders, shadows */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --bw: 1px;
  --shadow-xs: 0 1px 2px rgba(11, 16, 64, .06);
  --shadow-sm: 0 1px 2px rgba(11, 16, 64, .05), 0 2px 8px rgba(11, 16, 64, .05);
  --shadow-md: 0 2px 4px rgba(11, 16, 64, .04), 0 10px 28px -6px rgba(11, 16, 64, .12);
  --shadow-lg: 0 4px 8px rgba(11, 16, 64, .04), 0 24px 56px -12px rgba(11, 16, 64, .22);
  --shadow-glow: 0 0 0 1px rgba(37, 99, 235, .25), 0 12px 32px -8px rgba(37, 99, 235, .45);

  /* Focus */
  --focus-ring: 0 0 0 3px var(--c-white), 0 0 0 5px var(--c-blue-600);
  --focus-ring-dark: 0 0 0 3px var(--c-navy-950), 0 0 0 5px var(--c-cyan-300);

  /* Motion */
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* Layers */
  --z-base: 1; --z-sticky: 50; --z-header: 100; --z-menu: 110; --z-drawer: 200; --z-banner: 300; --z-toast: 400;

  --header-h: 4.25rem;
}

/* Arabic: slightly larger, taller lines, no tracking */
:root[lang="ar"] {
  --fs-base: 1.125rem;
  --lh-body: 1.85;
  --lh-tight: 1.35;
  --lh-snug: 1.5;
  --tracking-tight: 0;
  --tracking-eyebrow: 0;
  /* R4c: until Cairo is ready (font-display: optional) Arabic text needs a fallback. With only
     generic families before it, the browser searches the system font list per character, which
     made the first layout of an Arabic page several times slower. Name the platforms' own Arabic
     faces first: Android (Noto), Apple (SF Arabic, Geeza Pro), Windows (Segoe UI, Tahoma). */
  --font-sans: "Cairo", "Noto Sans Arabic", "Noto Naskh Arabic", "SF Arabic", "Geeza Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur-base: 0ms; --dur-slow: 0ms; }
}
/* ---- css/site.css ---- */
/* Invoice And Tax — site styles. Depends on tokens.css. Logical properties only (RTL-first).
   Sections: 1 base · 2 layout · 3 dark theme · 4 controls · 5 header/nav/drawer · 6 page header
   · 7 blocks · 8 pricing · 9 forms · 10 resources/article · 11 footer · 12 errors/static · 13 motion · 14 print */

/* 1. Base ------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); scroll-padding-bottom: calc(var(--consent-banner-h, 0px) + .5rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: var(--fs-base); line-height: var(--lh-body);
  font-feature-settings: "kern"; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); font-weight: var(--fw-bold); margin: 0; text-wrap: balance; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--bg-subtle); padding: .1em .35em; border-radius: var(--r-xs); }
::selection { background: rgba(37, 99, 235, .18); }
:focus { outline: none; }
:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); border-radius: var(--r-xs); }
main:focus { box-shadow: none; }

.visually-hidden { 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-link { position: absolute; inset-inline-start: var(--sp-4); inset-block-start: -4rem; z-index: var(--z-toast); background: var(--c-navy-900); color: #fff; padding: var(--sp-3) var(--sp-5); border-radius: var(--r-sm); font-weight: var(--fw-semibold); text-decoration: none; }
.skip-link:focus { inset-block-start: var(--sp-3); color: #fff; }

.glyph, .icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .dir-flip, [dir="rtl"] .icon--dir { transform: scaleX(-1); }
.flip-x { transform: scaleX(-1); }
[dir="rtl"] .dir-flip.flip-x { transform: none; }
.rot-down { transform: rotate(90deg); }

/* 2. Layout ----------------------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--prose { max-width: calc(var(--measure) + 8rem + 2 * var(--gutter)); }
.container--article { max-width: calc(56rem + 2 * var(--gutter)); }
.section { position: relative; padding-block: var(--section-y); }
.section + .section:not(.section--tint):not(.section--dark):not(.cta-section) { padding-block-start: calc(var(--section-y) * .5); }
.section--tint { background: linear-gradient(180deg, var(--bg-tint), var(--bg-subtle)); }
.section--flush-top { padding-block-start: var(--sp-8); }
.section-head { max-width: 46rem; margin-inline: auto; text-align: center; margin-block-end: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head--start { margin-inline: 0; text-align: start; }
.section-title { font-size: var(--fs-2xl); font-weight: var(--fw-heavy); }
.section-intro { margin-block-start: var(--sp-4); font-size: var(--fs-md); color: var(--text-muted); }
.eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--tracking-eyebrow); color: var(--accent-strong); margin-block-end: var(--sp-3); }
html[lang="en"] .eyebrow { text-transform: uppercase; }
:root[lang="ar"] .eyebrow { font-size: var(--fs-sm); }
.eyebrow--pill { padding: .3rem .8rem; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--accent-soft); }

.grid { display: grid; gap: clamp(1rem, .7rem + 1vw, 1.5rem); grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 40rem) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-block-start: var(--sp-8); }

/* 3. Dark theme (scoped: hero, bento, CTA, footer) --------------------------------------- */
.theme-dark {
  --ink: var(--dk-ink); --text: var(--dk-text); --text-muted: var(--dk-muted); --text-subtle: var(--dk-muted);
  --border: var(--dk-border); --border-strong: var(--dk-border-strong); --link: var(--dk-link); --link-hover: #fff;
  --surface: var(--dk-surface); --bg-subtle: var(--dk-surface); --accent-soft: rgba(59, 130, 246, .16); --accent-strong: var(--c-cyan-300);
  --focus-ring: var(--focus-ring-dark);
  --dg-ink: #fff; --dg-text: var(--dg-dark-text); --dg-muted: var(--dk-muted); --dg-line: var(--dg-dark-line);
  --dg-node: var(--dg-dark-node); --dg-node-stroke: var(--dg-dark-stroke); --dg-accent: #60a5fa; --dg-accent-soft: rgba(59, 130, 246, .18);
  color: var(--text); background-color: var(--dk-bg);
}
.theme-dark ::selection { background: rgba(103, 232, 249, .3); }
.section--dark { background: radial-gradient(80% 60% at 50% 0%, #121a5c 0%, var(--dk-bg) 70%); overflow: hidden; }
.section-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40rem 22rem at 85% 0%, rgba(37, 99, 235, .28), transparent 70%), radial-gradient(30rem 20rem at 5% 100%, rgba(34, 211, 238, .12), transparent 70%); }
[dir="rtl"] .section-glow { transform: scaleX(-1); }

/* 4. Controls ---------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem;
  padding: .6rem 1.25rem; border-radius: var(--r-pill); border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-weight: var(--fw-semibold); font-size: var(--fs-sm); line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-base), border-color var(--dur-base), color var(--dur-base);
}
:root[lang="ar"] .btn { font-size: var(--fs-base); }
.btn:hover { color: var(--btn-fg); border-color: var(--accent); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--grad-button); --btn-fg: #fff; --btn-bd: transparent; background: var(--grad-button); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(11, 16, 64, .2), 0 6px 18px -6px rgba(29, 78, 216, .55); }
.btn--primary:hover { color: #fff; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 26px -8px rgba(29, 78, 216, .7); }
.btn--secondary { box-shadow: var(--shadow-xs); }
.theme-dark .btn--secondary { --btn-bg: rgba(255, 255, 255, .06); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .22); box-shadow: none; backdrop-filter: blur(8px); }
.theme-dark .btn--secondary:hover { --btn-bg: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.btn--ghost { --btn-bd: transparent; --btn-bg: transparent; box-shadow: none; }
.btn--ghost:hover { --btn-bg: var(--bg-subtle); border-color: transparent; }
.btn--sm { padding-inline: 1rem; }
.btn--block { width: 100%; }
.btn .btn-arrow { width: 1.05em; height: 1.05em; transition: translate var(--dur-base) var(--ease-out); }
.btn:hover .btn-arrow { translate: .15rem 0; }
[dir="rtl"] .btn:hover .btn-arrow { translate: -.15rem 0; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: var(--fw-semibold); text-decoration: none; color: var(--link); min-height: 2.75rem; }
.text-link:hover { text-decoration: underline; }
.text-link .glyph { width: 1em; height: 1em; }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--ink); text-decoration: none; transition: background-color var(--dur-base); }
.icon-btn:hover { background: var(--bg-subtle); color: var(--ink); }
.chip { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .35rem 1rem; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-decoration: none; }
.chip:hover { border-color: var(--accent); color: var(--accent-strong); }
.chip[aria-current="true"] { background: var(--c-navy-900); border-color: var(--c-navy-900); color: #fff; }
.tags .chip { min-height: 0; font-weight: var(--fw-medium); }

/* Announcement */
.announcement { position: relative; z-index: var(--z-header); font-size: var(--fs-sm); background: var(--c-navy-900); color: #e6ebfa; }
.announcement--neutral { background: var(--bg-subtle); color: var(--text); }
.announcement--notice { background: #fff4d6; color: #4a3500; }
.announcement-inner { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); min-height: 2.75rem; padding-block: .3rem; }
.announcement-text { text-align: center; }
.announcement a { color: inherit; font-weight: var(--fw-semibold); display: inline-flex; align-items: center; gap: .25rem; }
.announcement--brand a { color: var(--c-cyan-300); }
.announcement .glyph { width: 1em; height: 1em; }
.announcement-close { color: inherit; flex: none; margin-inline-start: auto; }
.announcement--brand .announcement-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* 5. Header, mega menu, drawer -------------------------------------------------------------- */
.site-header { position: sticky; inset-block-start: 0; z-index: var(--z-header); background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-block-end: 1px solid transparent; transition: border-color var(--dur-base), box-shadow var(--dur-base); }
.site-header.is-scrolled, .site-header.has-open-menu { border-block-end-color: var(--border); box-shadow: 0 6px 24px -18px rgba(11, 16, 64, .35); }
.header-bar { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h); transition: min-height var(--dur-base) var(--ease-out); }
.site-header.is-scrolled .header-bar { min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); flex: none; min-height: 2.75rem; }
.brand-logo-box img { height: 2rem; width: auto; }
.brand-logo-box--light { display: inline-flex; background: #fff; padding: .55rem .8rem; border-radius: var(--r-sm); }
.wordmark { direction: ltr; unicode-bidi: isolate; display: inline-block; font-weight: var(--fw-bold); font-size: 1.25rem; letter-spacing: 0; color: var(--c-navy-900); line-height: 1; white-space: nowrap; }
.theme-dark .wordmark { color: #fff; }

.primary-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--sp-1); margin-inline-start: auto; }
.lang-switch { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding-inline: .7rem; border-radius: var(--r-pill); color: var(--text); text-decoration: none; font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.lang-switch:hover { background: var(--bg-subtle); color: var(--ink); }
.lang-switch .glyph { width: 1.1em; height: 1.1em; color: var(--text-muted); }
.lang-switch:lang(ar) { font-size: var(--fs-base); }
.header-cta, .header-cta-2, .header-signin, .header-actions > .lang-switch { display: none; }
@media (min-width: 22.5rem) { .header-actions > .lang-switch { display: inline-flex; } }
@media (min-width: 40rem) { .header-cta { display: inline-flex; margin-inline-start: var(--sp-2); } }

@media (min-width: 75rem) {
  .primary-nav { display: block; margin-inline-start: var(--sp-4); }
  .menu-toggle { display: none; }
}
@media (min-width: 85rem) { .header-signin, .header-cta-2 { display: inline-flex; } .primary-nav { margin-inline-start: var(--sp-6); } }
.nav-list { display: flex; align-items: center; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.nav-link, .nav-trigger { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; padding: .4rem .8rem; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text); font-weight: var(--fw-semibold); font-size: var(--fs-sm); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-base), color var(--dur-base); }
:root[lang="ar"] .nav-link, :root[lang="ar"] .nav-trigger { font-size: var(--fs-base); }
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--bg-subtle); color: var(--ink); }
.nav-link[aria-current="page"], .nav-link[data-current-section] { color: var(--accent-strong); }
.nav-chevron { width: 1rem; height: 1rem; transition: transform var(--dur-base) var(--ease-out); color: var(--text-muted); }
.nav-trigger[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

.mega { position: absolute; inset-inline: 0; inset-block-start: 100%; background: #fff; border-block: 1px solid var(--border); box-shadow: 0 30px 60px -30px rgba(11, 16, 64, .35); animation: menu-in var(--dur-base) var(--ease-out); }
.mega-inner { display: grid; gap: var(--sp-8); padding-block: var(--sp-8) var(--sp-10); }
.mega-inner--feature { grid-template-columns: 1fr 17rem; }
.mega-cols { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.mega-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mega-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mega-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega { max-height: calc(100vh - var(--header-h) - 2rem); overflow-y: auto; overscroll-behavior: contain; }
.mega-feature { align-self: start; min-height: 14rem; }
.mega-heading { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-subtle); letter-spacing: var(--tracking-eyebrow); margin-block-end: var(--sp-3); padding-inline: .75rem; }
html[lang="en"] .mega-heading { text-transform: uppercase; }
.mega-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-link { display: flex; gap: .85rem; align-items: flex-start; padding: .65rem .75rem; border-radius: var(--r-md); text-decoration: none; color: var(--text); transition: background-color var(--dur-fast); }
.mega-link:hover, .mega-link[aria-current="page"] { background: var(--bg-tint); color: var(--text); }
.mega-icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-strong); border: 1px solid var(--c-blue-100); }
.mega-icon .icon { width: 1.15rem; height: 1.15rem; }
.mega-text { display: grid; gap: .1rem; }
.mega-label { font-weight: var(--fw-semibold); color: var(--ink); font-size: var(--fs-sm); }
:root[lang="ar"] .mega-label { font-size: var(--fs-base); }
.mega-desc { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.5; }
:root[lang="ar"] .mega-desc { font-size: var(--fs-sm); line-height: 1.7; }
.mega-feature { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-6); border-radius: var(--r-lg); background: radial-gradient(18rem 12rem at 100% 0%, rgba(37, 99, 235, .55), transparent 70%), var(--c-navy-900); }
.mega-feature-title { color: #fff; font-weight: var(--fw-bold); font-size: var(--fs-md); }
.mega-feature-text { color: var(--dk-text); font-size: var(--fs-sm); }
.mega-feature .text-link { margin-block-start: auto; }

.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(5, 8, 38, .55); backdrop-filter: blur(2px); animation: fade-in var(--dur-base) var(--ease-out); }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(25rem, 100%); display: flex; flex-direction: column; gap: var(--sp-4); background: #fff; padding: var(--sp-3) var(--sp-5) var(--sp-6); overflow-y: auto; overscroll-behavior: contain; box-shadow: var(--shadow-lg); animation: drawer-in var(--dur-slow) var(--ease-out); }
[dir="rtl"] .drawer-panel { animation-name: drawer-in-rtl; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; }
.drawer-search { display: flex; align-items: center; gap: var(--sp-1); border: 1px solid var(--border-strong); border-radius: var(--r-pill); padding-inline: 1rem .25rem; background: var(--bg-subtle); }
.drawer-search input { flex: 1; min-width: 0; min-height: 2.75rem; border: 0; background: transparent; }
.drawer-search input:focus { outline: none; }
.drawer-search:focus-within { box-shadow: var(--focus-ring); }
.drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav > ul > li { border-block-end: 1px solid var(--border); }
.drawer-link, .drawer-group > summary { display: flex; align-items: center; justify-content: space-between; min-height: 3.25rem; font-weight: var(--fw-bold); color: var(--ink); text-decoration: none; cursor: pointer; list-style: none; font-size: var(--fs-md); }
.drawer-group > summary::-webkit-details-marker { display: none; }
.drawer-group[open] > summary .nav-chevron { transform: rotate(180deg); }
.drawer-heading { font-size: var(--fs-xs); color: var(--text-subtle); font-weight: var(--fw-bold); margin-block: var(--sp-2) var(--sp-1); letter-spacing: var(--tracking-eyebrow); }
html[lang="en"] .drawer-heading { text-transform: uppercase; }
.drawer-links { padding-block-end: var(--sp-3) !important; }
.drawer-links a { display: flex; align-items: center; gap: .65rem; min-height: 2.75rem; color: var(--text); text-decoration: none; }
.drawer-links a .icon { color: var(--accent-strong); }
.drawer-links a[aria-current="page"], .drawer-link[aria-current="page"] { color: var(--accent-strong); }
.drawer-actions { display: grid; gap: var(--sp-3); margin-block-start: auto; padding-block-start: var(--sp-4); }
.drawer-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
html.drawer-open { overflow: hidden; }

/* 6. Page header, breadcrumbs ------------------------------------------------------------- */
.page-header { position: relative; overflow: hidden; padding-block: clamp(2.25rem, 1.5rem + 3vw, 4.5rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); border-block-end: 1px solid var(--border); background: linear-gradient(180deg, #f3f6ff 0%, var(--bg) 100%); }
.page-header-bg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--c-gray-100) 1px, transparent 1px), linear-gradient(90deg, var(--c-gray-100) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(60% 90% at 50% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(60% 90% at 50% 0%, #000 0%, transparent 75%); opacity: .8; }
.page-header-bg::after { content: ""; position: absolute; inset-block-start: -10rem; inset-inline-end: -6rem; width: 36rem; height: 24rem; background: radial-gradient(closest-side, rgba(56, 189, 248, .22), transparent); }
.page-header-inner { position: relative; }
.page-header--dark { background: var(--dk-bg); border: 0; }
.page-header--dark .page-header-bg { background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); }
.page-title { font-size: var(--fs-3xl); font-weight: var(--fw-heavy); max-width: 22ch; }
:root[lang="ar"] .page-title { max-width: 26ch; }
.page-lead { margin-block-start: var(--sp-4); font-size: var(--fs-md); color: var(--text-muted); max-width: 44rem; }
.reviewed { display: inline-flex; align-items: center; gap: .4rem; margin-block-start: var(--sp-5); font-size: var(--fs-xs); color: var(--text-muted); padding: .3rem .75rem; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); }
:root[lang="ar"] .reviewed { font-size: var(--fs-sm); }
.reviewed .glyph { width: 1rem; height: 1rem; color: var(--success); }
.theme-dark .reviewed .glyph { color: #4ade80; }
.breadcrumbs { margin-block-end: var(--sp-5); font-size: var(--fs-sm); color: var(--text-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: .5rem; color: var(--border-strong); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; display: inline-block; padding-block: .6rem; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: var(--fw-semibold); }

/* 7. Blocks ---------------------------------------------------------------------------------- */
/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(3.5rem, 2rem + 5vw, 7rem); }
.hero.theme-dark { background: linear-gradient(180deg, #060a2e 0%, var(--dk-bg) 60%, #070c33 100%); }
.hero--home { padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem) clamp(4rem, 2rem + 7vw, 8.5rem); }
.hero--compact { padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem); background: linear-gradient(180deg, #f3f6ff, var(--bg)); border-block-end: 1px solid var(--border); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000 10%, transparent 75%); mask-image: radial-gradient(70% 70% at 70% 30%, #000 10%, transparent 75%); }
.hero--compact .hero-grid { background-image: linear-gradient(var(--c-gray-100) 1px, transparent 1px), linear-gradient(90deg, var(--c-gray-100) 1px, transparent 1px); }
/* Glows are soft radial gradients (no filter): animating a blurred element repaints every frame. */
.hero-glow { position: absolute; border-radius: 50%; will-change: transform; pointer-events: none; }
.hero-glow--a { width: 52rem; height: 36rem; inset-block-start: -16rem; inset-inline-end: -14rem; background: var(--glow-blue); opacity: .9; }
.hero-glow--b { width: 30rem; height: 22rem; inset-block-end: -10rem; inset-inline-start: -8rem; background: var(--glow-cyan); }
.hero--compact .hero-glow { opacity: .35; }
.hero::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(103, 232, 249, .35), transparent); }
.hero--compact::after { display: none; }
.hero-inner { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4rem); align-items: center; }
@media (min-width: 64rem) { .hero--media .hero-inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }
.hero-copy { max-width: 40rem; }
.hero:not(.hero--media) .hero-copy { max-width: 52rem; }
.hero-title { font-size: var(--fs-3xl); font-weight: var(--fw-heavy); }
.hero--home .hero-title { font-size: var(--fs-display); letter-spacing: calc(var(--tracking-tight) * 1.2); }
:root[lang="ar"] .hero-title { line-height: 1.4; }
.hl { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.theme-dark .hl { background-image: var(--grad-text-dark); }
.hero-lead { margin-block-start: var(--sp-5); font-size: var(--fs-md); color: var(--text-muted); max-width: 38rem; }
.theme-dark .hero-lead { color: var(--dk-text); }
.hero .actions { margin-block-start: var(--sp-8); }
.hero-notes { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); list-style: none; padding: 0; margin-block-start: var(--sp-6); font-size: var(--fs-sm); color: var(--text-muted); }
.hero-notes li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-notes .glyph { width: 1rem; height: 1rem; color: var(--c-cyan-400); }
.hero--compact .hero-notes .glyph { color: var(--success); }
.hero .breadcrumbs { margin-block-end: var(--sp-6); }

.visual-frame { position: relative; border-radius: var(--r-xl); padding: clamp(1rem, .6rem + 1.5vw, 1.75rem); background: linear-gradient(180deg, #fff, var(--c-gray-50)); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.theme-dark .visual-frame { background: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03)); border-color: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(5, 8, 38, .6); }
@media (min-width: 64rem) { .theme-dark .visual-frame { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.theme-dark .visual-frame::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(103, 232, 249, .5), transparent 35%, transparent 65%, rgba(37, 99, 235, .55)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.visual-frame--image { padding: .5rem; }
.visual-frame--image img { border-radius: calc(var(--r-xl) - .5rem); width: 100%; }
.visual-frame > svg { display: block; width: 100%; height: auto; }

/* Cards */
.card { position: relative; display: flex; flex-direction: column; gap: var(--sp-3); padding: clamp(1.25rem, 1rem + .8vw, 1.75rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base), border-color var(--dur-base); }
.theme-dark .card { background: var(--dk-surface); box-shadow: none; }
.card--interactive:hover, .card:has(.card-link):hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-blue-100); }
.theme-dark .card--interactive:hover { border-color: var(--dk-border-strong); background: var(--dk-surface-2); }
.card-title { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { box-shadow: none; }
.card-link:focus-visible::after { box-shadow: var(--focus-ring); }
.card-text { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.65; }
:root[lang="ar"] .card-text { font-size: var(--fs-base); line-height: 1.85; }
.card-kicker { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--accent-strong); letter-spacing: var(--tracking-eyebrow); }
html[lang="en"] .card-kicker { text-transform: uppercase; }
:root[lang="ar"] .card-kicker { font-size: var(--fs-sm); }
.card-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-block-start: auto; padding-block-start: var(--sp-2); font-size: var(--fs-xs); color: var(--text-subtle); }
:root[lang="ar"] .card-meta { font-size: var(--fs-sm); }
.card-more { display: inline-flex; align-items: center; gap: .35rem; margin-block-start: auto; padding-block-start: var(--sp-2); font-weight: var(--fw-semibold); font-size: var(--fs-sm); color: var(--link); }
.card-more .glyph { width: 1em; height: 1em; transition: translate var(--dur-base) var(--ease-out); }
.card:hover .card-more .glyph { translate: .2rem 0; }
[dir="rtl"] .card:hover .card-more .glyph { translate: -.2rem 0; }
.card-cta { margin-block-start: auto; position: relative; z-index: 1; }
.feature-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-md); background: linear-gradient(180deg, #fff, var(--accent-soft)); color: var(--accent-strong); border: 1px solid var(--c-blue-100); box-shadow: 0 1px 2px rgba(29, 78, 216, .08); flex: none; }
.feature-icon .icon { width: 1.3rem; height: 1.3rem; }
.theme-dark .feature-icon { background: rgba(59, 130, 246, .14); border-color: rgba(103, 232, 249, .22); color: var(--c-cyan-300); box-shadow: none; }
.feature .card-title { font-size: var(--fs-md); margin-block-start: var(--sp-2); }

/* Bento */
.bento-section .section-head { position: relative; }
.bento { position: relative; display: grid; gap: 1rem; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; grid-auto-flow: dense; }
@media (min-width: 48rem) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento-tile--lg { grid-column: span 2; } .bento-tile--tall { grid-row: span 2; } }
@media (min-width: 64rem) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(13rem, auto); }
  .bento-tile--sm { grid-column: span 2; } .bento-tile--md { grid-column: span 3; } .bento-tile--lg { grid-column: span 4; } .bento-tile--tall { grid-column: span 2; grid-row: span 2; }
}
.bento-tile { --tile: 37, 99, 235; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--sp-5); padding: clamp(1.25rem, 1rem + 1vw, 2rem); border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--border); transition: border-color var(--dur-base), transform var(--dur-base) var(--ease-out); }
.bento-tile::before { content: ""; position: absolute; inset-block-start: -40%; inset-inline-end: -30%; width: 80%; height: 90%; background: radial-gradient(closest-side, rgba(var(--tile), .28), transparent); pointer-events: none; }
.bento-tile:hover { border-color: rgba(var(--tile), .5); }
.section--tint .bento-tile { background: #fff; box-shadow: var(--shadow-sm); }
.accent--teal { --tile: 20, 184, 166; } .accent--gold { --tile: 227, 179, 65; } .accent--violet { --tile: 124, 108, 242; }
.bento-tile .feature-icon { color: rgb(var(--tile)); background: rgba(var(--tile), .14); border-color: rgba(var(--tile), .3); }
.theme-dark .accent--brand .feature-icon { color: #7fb2ff; }
.bento-copy { position: relative; display: flex; flex-direction: column; gap: var(--sp-3); }
.bento-title { font-size: var(--fs-lg); }
.bento-text { color: var(--text-muted); font-size: var(--fs-sm); }
:root[lang="ar"] .bento-text { font-size: var(--fs-base); }
.bento-visual { position: relative; margin-block-start: auto; border-radius: var(--r-lg); border: 1px solid var(--border); background: rgba(5, 8, 38, .35); padding: var(--sp-4); }
.section--tint .bento-visual { background: var(--bg-subtle); }
@media (min-width: 64rem) { .bento-tile--lg.bento-tile--visual { flex-direction: row; align-items: center; } .bento-tile--lg.bento-tile--visual > * { flex: 1 1 0; } .bento-tile--lg .bento-visual { margin-block-start: 0; } }

/* Process */
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-6); counter-reset: step; }
@media (min-width: 64rem) { .process--horizontal { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--sp-5); } }
.process-step { position: relative; display: flex; gap: var(--sp-4); }
.process-marker { position: relative; z-index: 1; display: grid; place-items: center; width: 3rem; height: 3rem; flex: none; border-radius: 50%; background: #fff; border: 1px solid var(--c-blue-100); color: var(--accent-strong); font-weight: var(--fw-heavy); box-shadow: 0 0 0 6px var(--bg), var(--shadow-sm); }
.section--tint .process-marker { box-shadow: 0 0 0 6px var(--bg-tint), var(--shadow-sm); }
.theme-dark .process-marker { background: var(--c-navy-800); border-color: rgba(103, 232, 249, .3); color: var(--c-cyan-300); box-shadow: 0 0 0 6px var(--dk-bg); }
.process-marker .icon { width: 1.3rem; height: 1.3rem; }
.process-index { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-subtle); font-variant-numeric: tabular-nums; }
.process-title { font-size: var(--fs-md); margin-block: .15rem .4rem; }
.process-text { color: var(--text-muted); font-size: var(--fs-sm); }
:root[lang="ar"] .process-text { font-size: var(--fs-base); }
.process-step:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 1.5rem; inset-block: 3rem calc(-1 * var(--sp-6)); width: 1px; background: linear-gradient(180deg, var(--c-blue-100), var(--border)); }
.theme-dark .process-step:not(:last-child)::before { background: linear-gradient(180deg, rgba(103, 232, 249, .4), var(--dk-border)); }
@media (min-width: 64rem) {
  .process--horizontal .process-step { flex-direction: column; }
  .process--horizontal .process-step:not(:last-child)::before { inset-block: 1.5rem auto; inset-inline: 3rem calc(-1 * var(--sp-5)); width: auto; height: 1px; background: linear-gradient(90deg, var(--c-blue-100), var(--border)); }
  [dir="rtl"] .process--horizontal .process-step:not(:last-child)::before { background: linear-gradient(270deg, var(--c-blue-100), var(--border)); }
}
.process--vertical { max-width: 46rem; margin-inline: auto; }

/* Diagram / split */
.diagram-figure { max-width: 64rem; margin-inline: auto; }
.figure-caption { margin-block-start: var(--sp-4); text-align: center; font-size: var(--fs-sm); color: var(--text-muted); }
.split { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 64rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } .split--media-start .split-media { order: -1; } }
.split-copy .section-head { margin-block-end: var(--sp-6); }
.checklist { list-style: none; padding: 0; margin-block-start: var(--sp-6); display: grid; gap: var(--sp-3); }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist .glyph { flex: none; width: 1.35rem; height: 1.35rem; padding: .2rem; border-radius: 50%; background: var(--success-bg); color: var(--success); margin-block-start: .2em; }
:root[lang="ar"] .checklist .glyph { margin-block-start: .35em; }
.theme-dark .checklist .glyph { background: rgba(74, 222, 128, .14); color: #4ade80; }
.split .actions { margin-block-start: var(--sp-6); }

/* Audience */
.audience-top { display: flex; align-items: center; gap: var(--sp-3); }

/* Callout, answer */
.callout-wrap, .answer-wrap, .download-wrap { margin-block: var(--sp-8); }
.callout { display: flex; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); border-radius: var(--r-md); border: 1px solid var(--c-blue-100); border-inline-start: 4px solid var(--info); background: var(--info-bg); }
.callout--limitation { border-color: #f3dfae; border-inline-start-color: #c98a00; background: var(--warning-bg); }
.callout--note { border-color: var(--border); border-inline-start-color: var(--c-gray-500); background: var(--bg-subtle); }
.callout--success { border-color: #bfe8d2; border-inline-start-color: var(--success); background: var(--success-bg); }
.callout-icon { flex: none; color: var(--info); padding-block-start: .15em; }
.callout--limitation .callout-icon { color: var(--warning); } .callout--success .callout-icon { color: var(--success); } .callout--note .callout-icon { color: var(--text-muted); }
.callout-title { font-weight: var(--fw-bold); color: var(--ink); margin-block-end: var(--sp-1); }
.answer { position: relative; padding: clamp(1.25rem, 1rem + 1vw, 2rem); border-radius: var(--r-lg); background: linear-gradient(135deg, #f4f8ff, #fff 60%); border: 1px solid var(--c-blue-100); box-shadow: var(--shadow-sm); }
.answer::before { content: ""; position: absolute; inset-block: 1.25rem; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--grad-brand); }
.answer-q { font-size: var(--fs-lg); margin-block-end: var(--sp-3); }
.answer-a { font-size: var(--fs-md); color: var(--text); }

/* FAQ */
.faq { border-block-start: 1px solid var(--border); }
.faq-item { border-block-end: 1px solid var(--border); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 3.5rem; padding-block: var(--sp-4); cursor: pointer; list-style: none; font-weight: var(--fw-semibold); color: var(--ink); font-size: var(--fs-md); }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--accent-strong); }
.faq-toggle { position: relative; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1px solid var(--border-strong); transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base); }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: .7rem; height: 1.5px; background: currentColor; translate: -50% -50%; }
.faq-toggle::after { rotate: 90deg; transition: rotate var(--dur-base) var(--ease-out); }
.faq-item[open] .faq-toggle { background: var(--accent-soft); border-color: var(--c-blue-100); }
.faq-item[open] .faq-toggle::after { rotate: 0deg; }
.faq-a { padding-block-end: var(--sp-5); color: var(--text-muted); max-width: 46rem; }

/* CTA */
.cta { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: var(--sp-6); align-items: center; padding: clamp(2rem, 1.5rem + 3vw, 4rem); border-radius: var(--r-xl); }
@media (min-width: 64rem) { .cta { grid-template-columns: minmax(0, 1.4fr) auto; } }
.cta--banner { background: linear-gradient(120deg, #0a1050 0%, #0b1a74 45%, #0d3a9e 100%); box-shadow: 0 40px 80px -40px rgba(11, 16, 64, .6); }
.cta-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(28rem 18rem at 90% 10%, rgba(34, 211, 238, .35), transparent 70%), radial-gradient(24rem 16rem at 0% 100%, rgba(59, 130, 246, .35), transparent 70%); }
.cta-glow::after { content: ""; position: absolute; inset: 0; background: url("../img/bg/network.beaf4b9e6a5e.svg") center / cover no-repeat; opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000); mask-image: linear-gradient(90deg, transparent 10%, #000); }
[dir="rtl"] .cta-glow { transform: scaleX(-1); }
.cta--panel { background: var(--bg-tint); border: 1px solid var(--c-blue-100); }
.cta--panel .cta-glow { display: none; }
.cta-title { font-size: var(--fs-2xl); font-weight: var(--fw-heavy); }
.cta-text { margin-block-start: var(--sp-3); color: var(--text-muted); font-size: var(--fs-md); max-width: 40rem; }
.cta--banner .cta-text { color: var(--dk-text); }
.cta-actions { margin-block-start: 0; gap: 1.5rem; } /* ≥24px between targets (WCAG 2.5.8 spacing) */
.cta-section { padding-block: calc(var(--section-y) * .6); }

/* Claims */
.claims { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.claim { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-5); border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.claim-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; border-radius: 50%; background: var(--success-bg); color: var(--success); }
.claim-logo-box { flex: none; display: grid; place-items: center; padding: .5rem; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--c-gray-200); }
.claim-logo-box img { max-height: 3.5rem; width: auto; }
.claim-title { font-weight: var(--fw-bold); color: var(--ink); }
.claim-text { margin-block-start: var(--sp-1); color: var(--text-muted); font-size: var(--fs-sm); }
.claim-meta { margin-block-start: var(--sp-2); font-size: var(--fs-xs); color: var(--text-subtle); }
.claim-meta a { display: inline-flex; align-items: center; gap: .2rem; }
.claim-meta .glyph { width: .9rem; height: .9rem; }
.claims-fallback { display: flex; gap: .6rem; align-items: flex-start; max-width: 46rem; margin-inline: auto; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); background: var(--bg-subtle); border: 1px solid var(--border); color: var(--text-muted); font-size: var(--fs-sm); }
.claims-fallback .glyph { color: var(--accent-strong); margin-block-start: .15em; }

/* Integrations */
.integrations { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.integration-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.integ-logo-box { display: grid; place-items: center; height: 2.75rem; padding: .35rem .6rem; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--c-gray-200); }
.integ-logo-box img { max-height: 2rem; width: auto; }
.integration .card-title { font-size: var(--fs-md); }
.status { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: var(--fw-bold); white-space: nowrap; border: 1px solid transparent; }
:root[lang="ar"] .status { font-size: var(--fs-sm); }
.status::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.status--available { color: var(--success); background: var(--success-bg); border-color: #bfe8d2; }
.status--pilot { color: var(--gold-ink); background: #fff6dc; border-color: #f1dc9f; }
.status--on_request { color: var(--info); background: var(--info-bg); border-color: var(--c-blue-100); }
.status--planned { color: var(--c-gray-600); background: var(--c-gray-100); border-color: var(--c-gray-200); }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { box-shadow: var(--focus-ring); }
.table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: var(--fs-sm); }
:root[lang="ar"] .table { font-size: var(--fs-base); }
.table caption { caption-side: top; text-align: start; padding: var(--sp-4) var(--sp-5); font-weight: var(--fw-bold); color: var(--ink); border-block-end: 1px solid var(--border); }
.table th, .table td { padding: .85rem 1.25rem; text-align: start; vertical-align: top; border-block-end: 1px solid var(--border); }
.table thead th { background: var(--bg-subtle); color: var(--ink); font-weight: var(--fw-bold); white-space: nowrap; }
.table tbody th { font-weight: var(--fw-semibold); color: var(--ink); }
.table tbody tr:last-child > * { border-block-end: 0; }
.table tbody tr:hover > * { background: var(--bg-tint); }
.cell-yes { color: var(--success); } .cell-no { color: var(--text-subtle); }
.cell-yes .glyph, .cell-no .glyph { width: 1.2rem; height: 1.2rem; }
.table-group th { background: var(--bg-subtle); font-size: var(--fs-xs); letter-spacing: var(--tracking-eyebrow); color: var(--text-muted); }
html[lang="en"] .table-group th { text-transform: uppercase; }

/* Downloads */
.download { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); padding: var(--sp-5); border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); margin-block: var(--sp-8); }
.download-wrap .download { margin: 0; }
.download-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-strong); }
.download-body { flex: 1 1 14rem; }
.download-title { font-weight: var(--fw-bold); color: var(--ink); }
.download-text { color: var(--text-muted); font-size: var(--fs-sm); }
.download-meta { font-size: var(--fs-xs); color: var(--text-subtle); margin-block-start: .2rem; }
.download-gate { flex: 1 1 100%; }

/* 8. Pricing -------------------------------------------------------------------------------- */
.billing-toggle { display: flex; width: fit-content; margin: 0 auto var(--sp-10); padding: .3rem; border-radius: var(--r-pill); background: var(--bg-subtle); border: 1px solid var(--border); }
.billing-option { min-height: 2.75rem; min-width: 7rem; padding-inline: 1.25rem; border: 0; border-radius: var(--r-pill); background: transparent; font-weight: var(--fw-semibold); color: var(--text-muted); transition: background-color var(--dur-base), color var(--dur-base), box-shadow var(--dur-base); }
.billing-option[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.plans { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: var(--sp-4); padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.plan--featured { background: radial-gradient(22rem 14rem at 100% 0%, rgba(37, 99, 235, .45), transparent 70%), var(--c-navy-900); border-color: transparent; color: var(--dk-text); box-shadow: var(--shadow-glow); --ink: #fff; --text: var(--dk-text); --text-muted: var(--dk-muted); --border: var(--dk-border); --link: var(--dk-link); --focus-ring: var(--focus-ring-dark); }
.plan-badge { position: absolute; inset-block-start: -.8rem; inset-inline-start: 1.5rem; padding: .2rem .8rem; border-radius: var(--r-pill); background: var(--grad-gold); color: #3d2a00; font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.plan-name { font-size: var(--fs-lg); }
.plan-audience { font-size: var(--fs-sm); color: var(--accent-strong); font-weight: var(--fw-semibold); }
.plan--featured .plan-audience { color: var(--c-cyan-300); }
.plan-tagline { color: var(--text-muted); font-size: var(--fs-sm); }
.plan-price { padding-block: var(--sp-4); border-block: 1px solid var(--border); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; color: var(--ink); }
.price-amount { font-size: var(--fs-2xl); font-weight: var(--fw-heavy); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.price-currency { font-weight: var(--fw-bold); color: var(--text-muted); }
.price-period { color: var(--text-muted); font-size: var(--fs-sm); }
.price--text { font-size: var(--fs-xl); font-weight: var(--fw-heavy); }
.price-note { margin-block-start: var(--sp-1); font-size: var(--fs-xs); color: var(--text-muted); }
:root[lang="ar"] .price-note { font-size: var(--fs-sm); }
.plan-limits { display: grid; gap: var(--sp-2); font-size: var(--fs-sm); }
.plan-limits div { display: flex; justify-content: space-between; gap: var(--sp-3); }
.plan-limits dt { color: var(--text-muted); } .plan-limits dd { margin: 0; font-weight: var(--fw-semibold); color: var(--ink); }
.plan-features { margin-block-start: 0; font-size: var(--fs-sm); }
:root[lang="ar"] .plan-features { font-size: var(--fs-base); }
.plan--featured .checklist .glyph { background: rgba(74, 222, 128, .14); color: #4ade80; }
.pricing-note { margin-block-start: var(--sp-5); text-align: center; color: var(--text-muted); font-size: var(--fs-sm); }
.pricing-compare { margin-block-start: var(--sp-16); }
.compare-title { font-size: var(--fs-xl); margin-block-end: var(--sp-5); text-align: center; }
.plans-empty { max-width: 36rem; margin-inline: auto; align-items: center; text-align: center; }

/* 9. Forms (markup from the Leads lane: .form .field .field-error .error-summary .btn) -------- */
.section--form { background: linear-gradient(180deg, var(--bg-subtle), var(--bg)); }
.form-layout { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: start; }
@media (min-width: 64rem) { .form-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } .form-intro { position: sticky; inset-block-start: calc(var(--header-h) + 2rem); } }
.form-card { padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.expectations { margin-block-start: var(--sp-8); padding: var(--sp-6); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); }
.expectations-title { font-size: var(--fs-md); margin-block-end: var(--sp-4); }
.expectations-list { list-style: none; padding: 0; display: grid; gap: var(--sp-4); }
.expectations-list li { display: flex; gap: var(--sp-3); align-items: flex-start; color: var(--text-muted); }
.expectations-n { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-weight: var(--fw-bold); font-size: var(--fs-xs); }
.form { display: grid; gap: var(--sp-5); }
.form-grid, .form .row { display: grid; gap: var(--sp-5); }
@media (min-width: 40rem) { .form-grid, .form .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field > label, .field legend, .form label:not(.choice) { font-weight: var(--fw-semibold); color: var(--ink); font-size: var(--fs-sm); }
:root[lang="ar"] .field > label, :root[lang="ar"] .field legend { font-size: var(--fs-base); }
.field fieldset, fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-hint, .form .helptext { font-size: var(--fs-xs); color: var(--text-muted); }
:root[lang="ar"] .field-hint, :root[lang="ar"] .form .helptext { font-size: var(--fs-sm); }
.req { color: var(--danger); }
.form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]), .form select, .form textarea,
.search-inline input, .search-form input[type="search"] {
  width: 100%; min-height: 2.9rem; padding: .65rem .9rem; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: #fff; color: var(--ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.form textarea { min-height: 8rem; resize: vertical; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 55%, calc(100% - .85rem) 55%; background-size: .32rem .32rem; background-repeat: no-repeat; padding-inline-end: 2.25rem; }
[dir="rtl"] .form select { background-position: 1.15rem 55%, .85rem 55%; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--c-gray-500); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible, .search-inline input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .22); border-radius: var(--r-sm); }
.form [aria-invalid="true"] { border-color: var(--danger) !important; }
.form [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgba(180, 35, 24, .2); }
.form input[type="checkbox"], .form input[type="radio"] { width: 1.25rem; height: 1.25rem; accent-color: var(--accent-strong); margin: .2rem 0 0; flex: none; }
.choice, .form .checkbox, .form .consent { display: flex; gap: .65rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--text); min-height: 2.75rem; }
.field-error, .errorlist { color: var(--danger); font-size: var(--fs-sm); font-weight: var(--fw-semibold); list-style: none; padding: 0; margin: 0; }
.error-summary { padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); border: 1px solid #f4c7c3; border-inline-start: 4px solid var(--danger); background: var(--danger-bg); color: var(--ink); }
.error-summary h2, .error-summary-title { font-size: var(--fs-md); color: var(--danger); margin-block-end: var(--sp-2); }
.error-summary ul { margin: 0; padding-inline-start: 1.2rem; }
.error-summary a { color: var(--danger); font-weight: var(--fw-semibold); }
.form .btn[type="submit"], .form button[type="submit"] { justify-self: start; }
.form-success, .form .success { padding: var(--sp-5); border-radius: var(--r-md); background: var(--success-bg); border: 1px solid #bfe8d2; color: var(--ink); }
.form-note, .form .privacy-note { font-size: var(--fs-xs); color: var(--text-muted); }

/* 10. Resources, article, prose, search ---------------------------------------------------- */
.prose { color: var(--text); }
.prose > * + * { margin-block-start: 1.1em; }
.prose h2 { font-size: var(--fs-xl); margin-block-start: 2em; scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose h3 { font-size: var(--fs-lg); margin-block-start: 1.6em; }
.prose h4 { font-size: var(--fs-md); margin-block-start: 1.4em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-block-start: .6em; }
.prose > :first-child { margin-block-start: 0; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-block-start: .4em; }
.prose li::marker { color: var(--accent); }
.prose a { font-weight: var(--fw-medium); }
.prose blockquote { padding-inline-start: var(--sp-5); border-inline-start: 3px solid var(--c-blue-100); color: var(--text-muted); font-size: var(--fs-md); }
.prose hr { border: 0; border-block-start: 1px solid var(--border); margin-block: 2.5em; }
.prose strong { color: var(--ink); }
.prose--compact > * + * { margin-block-start: .75em; }
.prose--lead { font-size: var(--fs-md); color: var(--text-muted); max-width: 46rem; }
.resources-intro { margin-block-end: var(--sp-8); }
.filter-bar { margin-block-end: var(--sp-8); }
.filter-bar ul { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.resource-grid > li { display: flex; }
.article-card { width: 100%; }
.article-card .card-title { font-size: var(--fs-md); }
.empty-state { align-items: center; text-align: center; padding: var(--sp-12) var(--sp-6); color: var(--text-muted); }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-4); margin-block-start: var(--sp-10); }
.pagination > :last-child { justify-self: end; }
.pagination-status { font-size: var(--fs-sm); color: var(--text-muted); }
.article-header { border: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem .6rem; margin-block-start: var(--sp-5); font-size: var(--fs-sm); color: var(--text-muted); }
.article-visual { margin-block: var(--sp-6) 0; }
.article-layout { display: grid; gap: var(--sp-8); padding-block: var(--sp-10) var(--section-y); }
@media (min-width: 64rem) { .article-layout:has(.toc) { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--sp-12); } .toc { position: sticky; inset-block-start: calc(var(--header-h) + 1.5rem); align-self: start; } }
.article-layout:not(:has(.toc)) { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.article-body { max-width: var(--measure); min-width: 0; }
.article-body .section { padding-block: 0; }
.article-body .section + .section { padding-block-start: 0; }
.article-body .container { padding-inline: 0; max-width: none; }
.article-body > * + * { margin-block-start: var(--sp-8); }
.article-body .section-head { text-align: start; margin-inline: 0; margin-block-end: var(--sp-4); }
.article-body .section-title { font-size: var(--fs-xl); }
.article-body .callout-wrap, .article-body .answer-wrap, .article-body .download-wrap { margin-block: var(--sp-8); }
.toc { padding: var(--sp-5); border-radius: var(--r-md); background: var(--bg-subtle); border: 1px solid var(--border); font-size: var(--fs-sm); }
.toc-title { font-weight: var(--fw-bold); color: var(--ink); margin-block-end: var(--sp-3); }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: .45rem .6rem; border-radius: var(--r-xs); color: var(--text-muted); text-decoration: none; border-inline-start: 2px solid transparent; }
.toc a:hover { color: var(--ink); background: #fff; border-inline-start-color: var(--accent); }
.sources { padding-block-start: var(--sp-6); border-block-start: 1px solid var(--border); }
.sources-title { font-size: var(--fs-md); margin-block-end: var(--sp-3); }
.sources ol { padding-inline-start: 1.3em; font-size: var(--fs-sm); display: grid; gap: .35rem; }
.tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; }
.search-inline { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-block-start: var(--sp-6); max-width: 34rem; }
.search-inline input { flex: 1 1 14rem; width: auto; }
.search-page__title { font-size: var(--fs-2xl); font-weight: var(--fw-heavy); }
.search-page__count { margin-block: var(--sp-2) var(--sp-6); color: var(--text-muted); font-size: var(--fs-sm); }
.search-form { margin-block: var(--sp-6); max-width: 44rem; }
.search-form__label { display: block; font-weight: var(--fw-semibold); color: var(--ink); margin-block-end: var(--sp-2); }
.search-form__row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.search-form__input { flex: 1 1 14rem; min-height: 2.9rem; padding: .65rem .9rem; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: #fff; color: var(--ink); }
.search-form__input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .22); }
.search-filters__list { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0 0 var(--sp-6); padding: 0; }
.search-filters__link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .35rem 1rem; border-radius: var(--r-pill); border: 1px solid var(--border); color: var(--text); font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-decoration: none; }
.search-filters__link.is-active, .search-filters__link[aria-current] { background: var(--c-navy-900); border-color: var(--c-navy-900); color: #fff; }
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); max-width: 52rem; }
.search-results__item { position: relative; padding: var(--sp-5); border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-xs); }
.search-results__title { font-size: var(--fs-md); }
.search-results__url { font-size: var(--fs-xs); color: var(--success); direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.search-results__text { margin-block-start: var(--sp-2); color: var(--text-muted); font-size: var(--fs-sm); }
.search-empty { padding: var(--sp-8); border-radius: var(--r-lg); background: var(--bg-subtle); border: 1px solid var(--border); }
.search-empty__links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); list-style: none; padding: 0; margin-block-start: var(--sp-4); }
.pagination__status { font-size: var(--fs-sm); color: var(--text-muted); }
mark { background: #fff1c2; color: inherit; border-radius: 3px; padding-inline: .1em; }

/* 11. Footer -------------------------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(3rem, 2rem + 4vw, 5rem) calc(var(--sp-6) + var(--consent-banner-h, 0px)); /* R4b-A1: clear the fixed cookie banner (site.js) */ font-size: var(--fs-sm); background: linear-gradient(180deg, var(--c-navy-900) 0%, var(--dk-bg) 100%); }
:root[lang="ar"] .site-footer { font-size: var(--fs-base); }
/* R5 (Arabic LCP): the footer is always below the fold; skip its layout/paint until it nears the viewport.
   It already clips (overflow: hidden), so paint containment changes nothing visible; content stays in the
   accessibility tree and find-in-page. The intrinsic size keeps the scrollbar stable (no CLS). */
.site-footer { content-visibility: auto; contain-intrinsic-size: auto 56rem; }
.footer-glow { position: absolute; inset-inline: 0; inset-block-start: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(103, 232, 249, .45), rgba(37, 99, 235, .45), transparent); }
.footer-glow::after { content: ""; position: absolute; inset-block-start: -12rem; inset-inline-start: 50%; width: 40rem; height: 20rem; translate: -50% 0; background: radial-gradient(closest-side, rgba(37, 99, 235, .25), transparent); z-index: -1; }
.footer-top { display: grid; gap: var(--sp-10); }
@media (min-width: 64rem) { .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--sp-16); } }
.footer-summary { margin-block-start: var(--sp-4); color: var(--dk-muted); max-width: 26rem; }
.footer-contact { list-style: none; padding: 0; margin-block-start: var(--sp-5); display: grid; gap: var(--sp-1); }
.footer-contact li { display: flex; align-items: center; gap: .55rem; color: var(--dk-text); min-height: 2.25rem; }
.footer-contact .icon { color: var(--c-cyan-300); }
.footer-contact a, .footer-social a { color: var(--dk-text); text-decoration: none; }
.footer-contact a:hover, .footer-social a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; flex-wrap: wrap; gap: var(--sp-4); list-style: none; padding: 0; margin-block-start: var(--sp-4); }
.footer-social a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.footer-cols { display: grid; gap: var(--sp-8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.footer-heading { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--tracking-eyebrow); color: #fff; margin-block-end: var(--sp-3); }
html[lang="en"] .footer-heading { text-transform: uppercase; }
:root[lang="ar"] .footer-heading { font-size: var(--fs-sm); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; }
.footer-col a { display: inline-flex; align-items: center; min-height: 2.5rem; color: var(--dk-muted); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-newsletter { display: grid; gap: var(--sp-5); margin-block-start: var(--sp-12); padding: var(--sp-6); border-radius: var(--r-lg); border: 1px solid var(--dk-border); background: var(--dk-surface); }
@media (min-width: 64rem) { .footer-newsletter { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; } }
.footer-nl-heading { font-size: var(--fs-md); }
.footer-newsletter-copy p { color: var(--dk-muted); margin-block-start: var(--sp-1); }
.footer-newsletter .form input:not([type="checkbox"]) { background: rgba(255, 255, 255, .06); border-color: var(--dk-border-strong); color: #fff; }
.footer-newsletter .form label, .footer-newsletter .choice { color: var(--dk-text); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-6); margin-block-start: var(--sp-12); padding-block-start: var(--sp-6); border-block-start: 1px solid var(--dk-border); color: var(--dk-muted); font-size: var(--fs-xs); }
:root[lang="ar"] .footer-bottom { font-size: var(--fs-sm); }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 0 var(--sp-5); list-style: none; padding: 0; margin: 0; }
.footer-bottom a, .footer-consent button { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--dk-muted); text-decoration: none; background: none; border: 0; padding: 0; font-size: inherit; }
.footer-bottom a:hover, .footer-consent button:hover { color: #fff; text-decoration: underline; }
.footer-dev { margin-inline-start: auto; font-size: var(--fs-xs); color: #7d87ab; }
.footer-dev a { color: inherit; }

/* 12. Errors and static pages -------------------------------------------------------------- */
.error-page { position: relative; overflow: hidden; padding-block: clamp(3rem, 2rem + 5vw, 6rem) var(--sp-10); background: linear-gradient(180deg, #f3f6ff, var(--bg)); }
.error-inner { position: relative; }
.error-code { display: inline-block; margin-block-end: var(--sp-4); padding: .25rem .75rem; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-strong); font-weight: var(--fw-bold); font-size: var(--fs-xs); }
.error-page .actions { margin-block-start: var(--sp-6); }
.static-page { min-height: 100vh; display: grid; place-items: center; padding: var(--gutter); background: radial-gradient(50rem 30rem at 80% 0%, rgba(37, 99, 235, .35), transparent 70%), var(--dk-bg, #050826); color: var(--dk-text, #c8cfe6); }
.static-card { max-width: 36rem; padding: clamp(1.5rem, 1rem + 3vw, 3rem); border-radius: var(--r-xl, 28px); border: 1px solid var(--dk-border, rgba(255,255,255,.11)); background: rgba(255, 255, 255, .04); }
.static-card h1 { font-size: var(--fs-2xl, 2rem); color: #fff; margin-block: var(--sp-6, 1.5rem) var(--sp-3, .75rem); }
.static-card h2 { font-size: var(--fs-xl, 1.5rem); color: #fff; margin-block-end: var(--sp-3, .75rem); }
.static-card p + p { margin-block-start: var(--sp-4, 1rem); }
.static-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4, 1rem); align-items: center; }
.static-code { font-size: var(--fs-xs, .8rem); color: var(--dk-muted, #98a2c4); }
.static-sep { border: 0; border-block-start: 1px solid var(--dk-border, rgba(255,255,255,.11)); margin-block: var(--sp-8, 2rem); }
.static-ar { font-size: 1.1rem; line-height: 1.85; }

/* 13. Motion ----------------------------------------------------------------------------------- */
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawer-in-rtl { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-3%, 4%, 0); } }
/* R4c: the hero copy holds the LCP element (h1 / lead) and paints at once. A fade-in from opacity 0
   kept it out of LCP until a later repaint: Arabic desktop LCP 2.9–3.6 s against 0.8–1.2 s without
   (core/tests/test_perf_head.py). Only the decorative visual moves in, and without fading. */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual { animation: rise .9s .15s var(--ease-out) both; }
  .hero-glow--a { animation: drift 18s var(--ease-in-out) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 14. Print ------------------------------------------------------------------------------------- */
@media print {
  .site-header, .drawer, .announcement, .site-footer, .skip-link, .hero-bg, .cta-section, .footer-newsletter, [data-consent-banner], .toc, .billing-toggle { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .theme-dark, .hero, .section--dark, .plan--featured { background: #fff !important; color: #000 !important; --ink: #000; --text: #000; --text-muted: #333; }
  .hl { color: #000; background: none; }
  .card, .visual-frame, .plan { box-shadow: none; break-inside: avoid; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  .section { padding-block: 1.25rem; }
}

/* Leads-lane BEM hooks (form markup lives in leads/templates) */
.field__req { color: var(--danger); }
.theme-dark .field__req { color: #ff9b91; }
.field--checkbox { display: flex; flex-wrap: wrap; gap: .65rem; align-items: flex-start; }
.field--checkbox > label { flex: 1 1 0; font-weight: var(--fw-regular); }
.field--checkbox .field-error { flex-basis: 100%; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: var(--danger) !important; }
.error-summary__title { font-size: var(--fs-md); color: var(--danger); margin-block-end: var(--sp-2); }
.error-summary__list { margin: 0; padding-inline-start: 1.2rem; }
.theme-dark .field-error { color: #ff9b91; }
.theme-dark .form label, .theme-dark .field__label { color: var(--dk-text); }
.footer-newsletter .newsletter__form { grid-template-columns: 1fr; }
@media (min-width: 40rem) { .footer-newsletter .newsletter__form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } .footer-newsletter .newsletter__form > .field--checkbox { grid-column: 1 / -1; order: 3; } }
:root[lang="ar"] .hero-title { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); }
:root[lang="ar"] .hero--home .hero-title { font-size: clamp(2.125rem, 1.55rem + 2.6vw, 3.6rem); letter-spacing: 0; }
:root[lang="ar"] .page-title, :root[lang="ar"] .section-title, :root[lang="ar"] .cta-title { letter-spacing: 0; }
:root[lang="ar"] .mega-label { line-height: 1.5; }
.listing-title { font-size: var(--fs-xl); margin-block-end: var(--sp-5); }

/* Rendering budget: skip layout/paint of below-the-fold sections until they approach the
   viewport (large win on long pages on mobile). The hero and the first following section always
   render; `auto` remembers each section's real size once seen, so scrolling stays stable. */
main > .section ~ .section,
main > .section ~ .cta-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}
@media print { main > .section ~ .section, main > .section ~ .cta-section { content-visibility: visible; } }
/* R4-QA D2: sections holding long step lists outgrow the 720px placeholder; render them normally so
   nothing overlaps for a frame when they scroll into view. */
main > .section:has(.process) { content-visibility: visible; contain-intrinsic-size: none; }

/* ==========================================================================================
   R2 navigation (lane B) — canonical bilingual menus (navigation.Menu).
   Brand logo is the visual anchor of the header: 32–40px tall on desktop, 28–32px on phones,
   never stretched (width auto), crisp via the srcset supplied by {% brand_logo %}.
   ========================================================================================== */
.site-header .brand[data-brand-logo], .drawer .brand[data-brand-logo] { line-height: 0; }
.site-header .brand[data-brand-logo] img, .site-header .brand[data-brand-logo] svg { height: 1.875rem; width: auto; max-width: 11rem; object-fit: contain; }
.drawer .brand[data-brand-logo] img, .drawer .brand[data-brand-logo] svg { height: 1.875rem; width: auto; max-width: 10rem; object-fit: contain; }
@media (min-width: 64rem) { .site-header .brand[data-brand-logo] img, .site-header .brand[data-brand-logo] svg { height: 2.375rem; max-width: 14rem; } }
.site-header.is-scrolled .brand[data-brand-logo] img { height: 2rem; }
.site-footer .brand[data-brand-logo] img { height: 2.25rem; width: auto; max-width: 13rem; object-fit: contain; }
.drawer-col + .drawer-col { margin-block-start: var(--sp-1); }
.drawer-feature { display: grid; gap: var(--sp-1); margin-block: var(--sp-2) var(--sp-4); padding: var(--sp-4); border-radius: var(--r-md); background: var(--bg-tint); }
.drawer-feature-title { font-weight: var(--fw-bold); color: var(--ink); font-size: var(--fs-sm); }
.drawer-feature .text-link { min-height: 2.75rem; display: inline-flex; align-items: center; gap: .35rem; }
.footer-heading a { color: inherit; text-decoration: none; }
.footer-heading a:hover { text-decoration: underline; }
.footer-dev { display: inline-flex; align-items: center; gap: var(--sp-2); }
.footer-dev a { display: inline-flex; align-items: center; gap: var(--sp-2); }
.footer-dev-logo { display: inline-flex; line-height: 0; }
.footer-dev-logo img { height: 1.125rem; width: auto; opacity: .85; }
/* ---- css/diagrams.css ---- */
/* Diagrams — original, code-native SVG (templates/diagrams/*.html, generated by
   tools/brand/build_diagrams.py). Class-only styling: the CSP forbids style attributes.
   Colours come from the --dg-* tokens in tokens.css, with fallbacks so a diagram still renders
   if tokens.css is absent. Light by default; `.theme-dark .dg` (or `.dg--dark`) switches to the
   dark-surface palette. */

.dg {
  --_ink: var(--dg-ink, #0b1040);
  --_text: var(--dg-text, #0b1040);
  --_muted: var(--dg-muted, #535b78);
  --_line: var(--dg-line, #b8c3dc);
  --_node: var(--dg-node, #ffffff);
  --_stroke: var(--dg-node-stroke, #c9d0df);
  --_accent: var(--dg-accent, #2563eb);
  --_accent2: var(--dg-accent-2, #22d3ee);
  --_soft: var(--dg-accent-soft, #eef4ff);
  --_gold: var(--dg-gold, #e3b341);
  --_gold-ink: #8a6210;
  --_ok: var(--dg-ok, #16a34a);
  --_zone: rgba(37, 99, 235, .04);
  --_zone-line: rgba(37, 99, 235, .28);
  --_bar: #e1e6f0;
  --_bar-strong: #c9d0df;
  --_frame: #fbfcfe;
  --_frame-bar: #eef1f8;
  --_grad-a: #1d4ed8;
  --_grad-b: #0b1040;
  --_chip: var(--_node);
  --_chip-soft: var(--_soft);
  margin: 0;
  container-type: inline-size;
  color: var(--_ink);
}

.theme-dark .dg,
.dg.dg--dark {
  --_ink: var(--dg-dark-text, #dfe5f7);
  --_text: var(--dg-dark-text, #dfe5f7);
  --_muted: #a9b4d6;
  --_line: var(--dg-dark-line, rgba(160, 185, 255, .35));
  --_node: var(--dg-dark-node, rgba(255, 255, 255, .06));
  --_stroke: var(--dg-dark-stroke, rgba(255, 255, 255, .18));
  --_accent: #67b2ff;
  --_accent2: var(--dg-accent-2, #22d3ee);
  --_soft: rgba(103, 178, 255, .12);
  --_gold: var(--dg-gold, #e3b341);
  --_gold-ink: #f3d27a;
  --_ok: #4ade80;
  --_zone: rgba(103, 178, 255, .05);
  --_zone-line: rgba(103, 178, 255, .32);
  --_bar: rgba(255, 255, 255, .10);
  --_bar-strong: rgba(255, 255, 255, .22);
  --_frame: rgba(255, 255, 255, .04);
  --_frame-bar: rgba(255, 255, 255, .07);
  --_grad-a: #2563eb;
  --_grad-b: #1e2670;
  --_chip: #121a50; /* opaque: chips sit on top of connectors */
  --_chip-soft: #16245f;
}

/* Layout switch: wide geometry when the figure has room, stacked geometry when it does not. */
.dg__svg { display: block; width: 100%; height: auto; overflow: visible; }
.dg__svg--narrow { display: none; max-width: 440px; margin-inline: auto; }
@container (max-width: 639.98px) {
  .dg__svg--wide { display: none; }
  .dg__svg--narrow { display: block; }
}

.dg__note {
  margin-block-start: .5rem;
  font-size: .75rem;
  letter-spacing: .02em;
  color: var(--_muted);
  text-align: end;
}

/* Text */
.dg text { font-family: var(--font-sans); } /* R4c: same stack as the page (Arabic platform faces on AR) */
.dg-t { fill: var(--_text); font-size: 15px; font-weight: 650; }
.dg__svg--narrow .dg-t { font-size: 14px; }
.dg-t--sub, .dg-t--chip { font-size: 13px; font-weight: 600; fill: var(--_muted); }
.dg__svg--narrow .dg-t--sub, .dg__svg--narrow .dg-t--chip { font-size: 12.5px; }
.dg-t--chip { fill: var(--_text); }
.dg-t--muted { fill: var(--_muted); }
.dg-t--inv { fill: #ffffff; }
.dg-t--sub.dg-t--inv { fill: rgba(255, 255, 255, .82); }
.dg-t--badge, .dg__svg--narrow .dg-t--badge { font-size: 12px; font-weight: 750; fill: var(--_gold-ink); }
.dg-t--ok { fill: var(--_ok); }
.dg-t--accent { fill: var(--_accent); }
.dg-t--gold { fill: var(--_gold-ink); }

/* Boxes */
.dg-box:not(.dg-box--brand) { fill: var(--_node); stroke: var(--_stroke); stroke-width: 1.25; }
.dg-box.dg-box--accent { stroke: var(--_accent); fill: var(--_soft); }
.dg-box.dg-box--gold { stroke: var(--_gold); }
.dg-box.dg-box--ok { stroke: var(--_ok); }
.dg-box--brand { stroke: none; } /* fill = uid-scoped gradient attribute */
.dg-st1 { stop-color: var(--_grad-a); }
.dg-st2 { stop-color: var(--_grad-b); }
.dg-zone { fill: var(--_zone); stroke: var(--_zone-line); stroke-width: 1.25; stroke-dasharray: 4 5; }
.dg-ghost { fill: none; stroke: var(--_line); stroke-width: 1.5; stroke-dasharray: 5 6; }

.dg-chip { fill: var(--_chip); stroke: var(--_stroke); stroke-width: 1.25; }
.dg-chip--solid { fill: var(--_chip-soft); stroke: var(--_line); }
.dg-chip--accent { fill: var(--_chip-soft); stroke: var(--_accent); }
.dg-chip--gold { stroke: var(--_gold); }
.dg-chip--ok { stroke: var(--_ok); }

.dg-badge { fill: var(--_chip); stroke: var(--_gold); stroke-width: 1.75; }

/* Icons (paths copied from the sprite; sized via transform) */
.dg-ico { fill: none; stroke: var(--_accent); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.dg-ico--sm { stroke-width: 2; }
.dg-ico--inv { stroke: #ffffff; }
.dg-ico--muted { stroke: var(--_muted); }

/* Connectors */
.dg-ln { fill: none; stroke: var(--_line); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.dg-ln--accent { stroke: var(--_accent); }
.dg-ln--strong { stroke-width: 2.5; }
.dg-ln--gold { stroke: var(--_gold); }
.dg-ln--muted { stroke: var(--_stroke); }
.dg-ln--dash { stroke-dasharray: 5 6; }
.dg-ah { stroke-dasharray: none; }

/* Marks */
.dg-dot { fill: var(--_accent); }
.dg-dot--ring { fill: var(--_chip); stroke: var(--_accent); stroke-width: 2.5; }
.dg-dot--muted { fill: var(--_bar-strong); }
.dg-bar { fill: var(--_bar); }
.dg-bar--strong { fill: var(--_bar-strong); }
.dg-bar--soft { fill: var(--_bar); }

/* Schematic product frame */
.dg-frame { fill: var(--_frame); stroke: var(--_stroke); stroke-width: 1.25; }
.dg-frame--outline { fill: none; }
.dg-frame-bar { fill: var(--_frame-bar); }
.dg-side { fill: var(--_frame-bar); }
.dg-nav { fill: none; }
.dg-nav--on { fill: var(--_soft); stroke: var(--_accent); stroke-width: 1; }
.dg-row { fill: var(--_node); stroke: var(--_stroke); stroke-width: 1; }
.dg-pill { fill: var(--_chip); stroke-width: 1.25; }
.dg-pill--ok { stroke: var(--_ok); }
.dg-pill--accent { stroke: var(--_accent); }
.dg-pill--gold { stroke: var(--_gold); }
.dg-col { fill: var(--_bar-strong); }
.dg-col--hi { fill: var(--_accent); }

/* Optional motion: a slow travelling dash on primary flows. */
@media (prefers-reduced-motion: no-preference) {
  .dg-ln--live:not(.dg-ah) {
    stroke-dasharray: 10 6;
    /* A few cycles then rest: an endless dash animation repaints the SVG every frame. */
    animation: dg-flow 1.8s linear 3;
  }
  @media (max-width: 40rem) { .dg-ln--live:not(.dg-ah) { animation: none; } }
  @keyframes dg-flow { to { stroke-dashoffset: -32; } }
}

@media print {
  .dg-ln--live { animation: none; stroke-dasharray: none; }
}
/* ---- css/home.css ---- */
/* Homepage, marketing and trust blocks (lane C, round 2).
   Motion: transform/opacity only, one-shot (no endless repaint), all behind
   prefers-reduced-motion: no-preference. No layout shift: animated elements keep their box.
   Omani identity assets: static/img/oman/ (original artwork — docs/design/OMANI_IDENTITY.md). */

/* 1. Light hero with the official logo and the Muscat waterfront line ------------------- */
.hero--light {
  color: var(--text);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(37, 99, 235, .10), transparent 70%),
    radial-gradient(40rem 26rem at 0% 0%, rgba(34, 211, 238, .08), transparent 70%),
    linear-gradient(180deg, #f4f7ff 0%, #fbfcff 55%, #ffffff 100%);
  padding-block-end: clamp(8rem, 15vw, 19rem);
}
.hero--light .hero-grid {
  background-image: linear-gradient(rgba(29, 78, 216, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 78, 216, .055) 1px, transparent 1px);
}
.hero--light .hero-glow { opacity: .28; }
.hero--light::after { background: linear-gradient(90deg, transparent, rgba(29, 78, 216, .18), transparent); }
.hero--light .hero-notes .glyph { color: var(--success); }
.hero-skyline {
  position: absolute; inset-inline: 0; inset-block-end: 0; height: max(7rem, min(16.25vw, 20rem));
  background: url("../img/oman/muscat-waterfront.634f578e4f96.svg") center bottom / max(100%, 64rem) auto no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.hero-logo { margin-block-end: var(--sp-5); line-height: 0; }
.hero-logo:empty { display: none; }
.hero-logo .brand-mark--hero { --mark-h: clamp(3.25rem, 2.6rem + 2vw, 4.5rem); }
@media (min-width: 64rem) {
  .hero--showcase .hero-inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .hero--showcase .hero-copy { max-width: 42rem; }
}
.hero--home.hero--light { padding-block-start: clamp(2rem, 1rem + 3vw, 3.75rem); }
.hero--home.hero--light .hero-title { color: var(--ink); font-size: clamp(2.25rem, 1.55rem + 2.7vw, 3.6rem); }
:root[lang="ar"] .hero--home.hero--light .hero-title { font-size: clamp(2rem, 1.45rem + 2.2vw, 3.1rem); }

/* 2. Animated system flow (hero) -------------------------------------------------------- */
.flow {
  position: relative; overflow: hidden; border-radius: var(--r-xl); font-size: .875rem; line-height: 1.45;
  color: #dfe5f7; background: linear-gradient(180deg, #121a5c 0%, #0a0f3a 100%);
  box-shadow: 0 2px 4px rgba(11, 16, 64, .06), 0 44px 80px -32px rgba(11, 16, 64, .55), 0 0 0 1px rgba(11, 16, 64, .08);
}
.flow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(28rem 14rem at 100% 0%, rgba(34, 211, 238, .16), transparent 70%), radial-gradient(22rem 14rem at 0% 100%, rgba(59, 130, 246, .2), transparent 70%);
}
[dir="rtl"] .flow::before { transform: scaleX(-1); }
.flow-head, .flow-body { position: relative; }
.flow-head { display: flex; align-items: center; gap: .65rem; padding: .8rem 1.1rem; border-block-end: 1px solid rgba(255, 255, 255, .08); }
.flow-dots { display: inline-flex; gap: .3rem; }
.flow-dots i { display: block; width: .55rem; height: .55rem; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.flow-title { font-weight: var(--fw-bold); color: #fff; font-size: .8125rem; }
.flow-badge { margin-inline-start: auto; font-size: .6875rem; font-weight: var(--fw-bold); padding: .1rem .6rem; border-radius: var(--r-pill); border: 1px solid rgba(227, 179, 65, .5); color: #f3d27a; }
.flow-body { display: grid; gap: 1rem; padding: clamp(.9rem, .7rem + 1vw, 1.35rem); }
.flow-doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .85rem; border-radius: var(--r-md); background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .1); }
.flow-doc-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r-sm); background: rgba(59, 130, 246, .2); color: #93c5fd; }
.flow-doc-icon .icon { width: 1.3rem; height: 1.3rem; }
.flow-doc p { margin: 0; }
.flow-doc-type { color: #fff; font-weight: var(--fw-bold); }
.flow-doc-no { display: inline-block; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; color: #98a2c4; }
.flow-doc-party { color: #98a2c4; font-size: .75rem; overflow-wrap: anywhere; }
.flow-doc-side { display: grid; justify-items: end; gap: .3rem; }
.flow-amount { color: #fff; font-weight: var(--fw-heavy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.flow-status { display: grid; }
.flow-st { grid-area: 1 / 1; justify-self: end; padding: .1rem .6rem; border-radius: var(--r-pill); font-size: .6875rem; font-weight: var(--fw-bold); white-space: nowrap; opacity: 0; }
.flow-st--1 { background: rgba(255, 255, 255, .1); color: #c8cfe6; }
.flow-st--2 { background: rgba(59, 130, 246, .22); color: #bfdbfe; }
.flow-st--3 { background: rgba(34, 211, 238, .18); color: #a5f3fc; }
.flow-st--4 { background: rgba(124, 108, 242, .24); color: #ddd6fe; }
.flow-st--final { opacity: 1; background: rgba(74, 222, 128, .16); color: #86efac; }
.flow-track { position: relative; }
.flow-rail { position: absolute; inset-inline: 10%; inset-block-start: calc(1rem - 1px); height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.flow-rail-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #3b82f6, #22d3ee); transform-origin: left center; }
[dir="rtl"] .flow-rail-fill { transform-origin: right center; background: linear-gradient(270deg, #3b82f6, #22d3ee); }
.flow-pulse { position: absolute; inset: 0; opacity: 0; }
.flow-pulse::after { content: ""; position: absolute; inset-block-start: -4px; inset-inline-start: -5px; width: 10px; height: 10px; border-radius: 50%; background: #a5f3fc; box-shadow: 0 0 0 4px rgba(34, 211, 238, .25); }
.flow-steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.flow-step { display: grid; justify-items: center; gap: .4rem; text-align: center; }
.flow-node { position: relative; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #0b1040; border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.flow-node::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #22d3ee); }
.flow-node .glyph { position: relative; width: 1rem; height: 1rem; }
.flow-step-label { font-size: .6875rem; color: #c8cfe6; line-height: 1.3; overflow-wrap: anywhere; }
:root[lang="ar"] .flow-step-label { font-size: .75rem; }
.flow-log { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.flow-log-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .45rem .65rem; border-radius: var(--r-sm); background: rgba(255, 255, 255, .035); font-size: .78rem; color: #c8cfe6; }
.flow-log-ico { display: grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: rgba(74, 222, 128, .15); color: #4ade80; }
.flow-log-ico .glyph { width: .75rem; height: .75rem; }
.flow-log-time { font-family: var(--font-mono); font-size: .6875rem; color: #7d88b0; }
.flow-foot { display: flex; align-items: center; gap: .5rem; margin: 0; padding-block-start: .75rem; border-block-start: 1px dashed rgba(255, 255, 255, .12); font-size: .78rem; color: #98a2c4; }
.flow-foot .icon { width: 1rem; height: 1rem; color: var(--c-cyan-300); }
@media (max-width: 23.99rem) { .flow-log-time { display: none; } .flow-doc { grid-template-columns: auto minmax(0, 1fr); } .flow-doc-side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; } }

@media (prefers-reduced-motion: no-preference) {
  .flow-node::before { animation: iat-pop .45s var(--ease-out) both; }
  .flow-step--1 .flow-node::before { animation-delay: .6s; }
  .flow-step--2 .flow-node::before { animation-delay: 1.4s; }
  .flow-step--3 .flow-node::before { animation-delay: 2.2s; }
  .flow-step--4 .flow-node::before { animation-delay: 3s; }
  .flow-step--5 .flow-node::before { animation-delay: 3.8s; }
  .flow-rail-fill { animation: iat-fill 3.2s linear .6s both; }
  .flow-pulse { animation: iat-pulse 3.2s linear .6s both; }
  [dir="rtl"] .flow-pulse { animation-name: iat-pulse-rtl; }
  .flow-log-item { animation: iat-in .5s var(--ease-out) both; }
  .flow-log--1 { animation-delay: .7s; } .flow-log--2 { animation-delay: 1.5s; } .flow-log--3 { animation-delay: 2.3s; }
  .flow-log--4 { animation-delay: 3.1s; } .flow-log--5 { animation-delay: 3.9s; }
  .flow-st--1, .flow-st--2, .flow-st--3, .flow-st--4 { animation: iat-blip .8s linear both; }
  .flow-st--1 { animation-delay: .6s; } .flow-st--2 { animation-delay: 1.4s; } .flow-st--3 { animation-delay: 2.2s; } .flow-st--4 { animation-delay: 3s; }
  .flow-st--final { animation: iat-in .4s var(--ease-out) 3.8s both; }
}
@keyframes iat-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes iat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes iat-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes iat-pulse { 0% { opacity: 1; transform: translateX(0); } 92% { opacity: 1; } 100% { opacity: 0; transform: translateX(100%); } }
@keyframes iat-pulse-rtl { 0% { opacity: 1; transform: translateX(0); } 92% { opacity: 1; } 100% { opacity: 0; transform: translateX(-100%); } }
@keyframes iat-blip { 0% { opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }

/* 3. Trust strip (home, security, about) ------------------------------------------------- */
.trust-strip { padding-block: clamp(2.75rem, 2rem + 2.5vw, 4.5rem); }
.trust-strip:not(.section--tint):not(.section--dark) { background: linear-gradient(180deg, var(--bg-subtle), #fff 60%); border-block: 1px solid var(--border); }
.trust-strip .section-head { margin-block-end: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.trust-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.trust-card { position: relative; display: flex; flex-direction: column; gap: .85rem; padding: clamp(1.15rem, 1rem + .6vw, 1.6rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.trust-card::before { content: ""; position: absolute; inset-block-start: -1px; inset-inline: 1.25rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--c-blue-600), var(--c-cyan-400), var(--c-gold-400)); }
.trust-card-top { display: flex; align-items: center; gap: .9rem; }
.trust-icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--r-md); background: linear-gradient(180deg, #fff, var(--accent-soft)); border: 1px solid var(--c-blue-100); color: var(--accent-strong); }
.trust-icon .icon { width: 1.4rem; height: 1.4rem; }
.trust-icon--lg { width: 4rem; height: 4rem; }
.trust-card-title { margin: 0; font-size: var(--fs-md); font-weight: var(--fw-heavy); line-height: 1.3; color: var(--ink); }
.trust-wording { margin: 0; flex: 1; font-size: var(--fs-sm); color: var(--text-muted); }
:root[lang="ar"] .trust-wording { font-size: var(--fs-base); }
.trust-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.1rem; margin: 0; }
.trust-verify { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; font-size: var(--fs-sm); color: var(--text-muted); text-decoration: underline; text-underline-offset: .2em; }
.trust-verify .glyph { width: .95em; height: .95em; }
.theme-dark .trust-card { background: var(--dk-surface); }

/* 4. Readiness timeline ------------------------------------------------------------------ */
.readiness.section--tint { background: url("../img/oman/lattice-tile.b8220d9e701a.svg") center top / 96px 96px, linear-gradient(180deg, var(--bg-tint), var(--bg-subtle)); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.milestone { position: relative; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 1rem; padding-block-end: 1.75rem; }
.milestone::before { content: ""; position: absolute; inset-inline-start: calc(1rem - 1px); inset-block: 2.25rem .25rem; width: 2px; border-radius: 2px; background: var(--border-strong); }
.milestone--past::before { background: var(--accent); }
.milestone:last-child::before { display: none; }
.milestone-dot { position: relative; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); color: #fff; }
.milestone-dot .glyph { width: 1rem; height: 1rem; }
.milestone--past .milestone-dot { background: var(--accent); border-color: var(--accent); }
.milestone--current .milestone-dot { border-color: var(--c-gold-400); box-shadow: 0 0 0 6px rgba(227, 179, 65, .2); }
.milestone--current .milestone-dot::after { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--c-gold-400); }
.milestone--next .milestone-dot { border-color: var(--accent); }
.milestone-body { min-width: 0; padding: 1rem 1.15rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.milestone--current .milestone-body { border-color: rgba(227, 179, 65, .55); }
.milestone-when { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-heavy); color: var(--ink); line-height: 1.3; }
.milestone-tag { font-size: var(--fs-xs); font-weight: var(--fw-bold); padding: .1rem .6rem; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-strong); }
.milestone-tag--now { background: var(--warning-bg); color: var(--gold-ink); }
.milestone-title { margin: .35rem 0 .25rem; font-size: var(--fs-md); }
.milestone-text { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.milestone-source { margin: .6rem 0 0; font-size: var(--fs-xs); color: var(--text-subtle); }
.milestone-source a { display: inline-flex; align-items: center; gap: .25rem; min-height: 1.5rem; }
.milestone-source .glyph { width: .9em; height: .9em; }
@media (min-width: 64rem) {
  .timeline { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1.25rem; }
  .milestone { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; padding-block-end: 0; }
  .milestone::before { inset-block: calc(1rem - 1px) auto; inset-inline: 2.75rem -1rem; width: auto; height: 2px; }
  .milestone:last-child::before { display: none; }
}
.readiness-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-block-start: 2rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--border); }
.readiness-note { display: flex; gap: .55rem; align-items: flex-start; margin: 0; max-width: 44rem; font-size: var(--fs-sm); color: var(--text-muted); }
.readiness-note .glyph { flex: none; color: var(--accent-strong); margin-block-start: .15em; }
.readiness-foot .actions { margin: 0; }

/* 5. Assistant showcase ------------------------------------------------------------------- */
.assistant-body { margin: 0; font-size: var(--fs-md); color: var(--text); }
.ask { margin: 0; }
.ask-card { position: relative; display: grid; gap: 1rem; padding: clamp(1rem, .8rem + 1vw, 1.5rem); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.theme-dark .ask-card { background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); border-color: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 80px -32px rgba(0, 0, 0, .65); }
.ask-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; font-size: var(--fs-xs); color: var(--text-muted); }
.ask-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: var(--r-pill); font-weight: var(--fw-bold); background: rgba(124, 108, 242, .12); color: #5b4bd6; }
.theme-dark .ask-badge { background: rgba(124, 108, 242, .2); color: #c4b5fd; }
.ask-badge .icon { width: 1rem; height: 1rem; }
.ask-row { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .75rem; align-items: start; }
.ask-avatar { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--bg-subtle); border: 1px solid var(--border); color: var(--text-muted); }
.ask-avatar .icon { width: 1.1rem; height: 1.1rem; }
.ask-avatar--ai { border: 0; color: #fff; background: linear-gradient(135deg, var(--c-violet-500), var(--c-cyan-400)); }
.ask-bubble { position: relative; margin: 0; padding: .8rem 1rem; border-radius: var(--r-lg); font-size: var(--fs-sm); line-height: 1.65; }
:root[lang="ar"] .ask-bubble { font-size: var(--fs-base); line-height: 1.8; }
.ask-bubble--q { background: var(--accent-soft); border: 1px solid var(--c-blue-100); color: var(--ink); font-weight: var(--fw-semibold); }
.theme-dark .ask-bubble--q { background: rgba(59, 130, 246, .18); border-color: rgba(96, 165, 250, .3); color: #fff; }
.ask-bubble--a { background: var(--bg-subtle); border: 1px solid var(--border); }
.theme-dark .ask-bubble--a { background: rgba(255, 255, 255, .05); }
.ask-answer { margin: 0; color: var(--text); }
.ask-typing { position: absolute; inset-block-start: 1.1rem; inset-inline-start: 1rem; display: inline-flex; gap: .3rem; opacity: 0; color: var(--text-muted); }
.ask-typing i { display: block; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.ask-sources-title { margin: .85rem 0 .4rem; font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-muted); }
.ask-sources { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.ask-source { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; padding: .25rem .6rem; border-radius: var(--r-sm); font-size: var(--fs-xs); line-height: 1.4; background: rgba(8, 145, 178, .08); border: 1px solid rgba(8, 145, 178, .25); color: #0e5f75; }
.theme-dark .ask-source { background: rgba(34, 211, 238, .1); border-color: rgba(34, 211, 238, .28); color: #a5f3fc; }
.ask-source .icon { flex: none; width: .9rem; height: .9rem; }
.illustrative-tag { display: inline-block; margin-inline-end: .35rem; padding: .05rem .55rem; border-radius: var(--r-pill); border: 1px solid var(--border-strong); font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-muted); vertical-align: .05em; }
.ask-caption { text-align: start; }
.anim-ready .ask[data-animate] .ask-row--q,
.anim-ready .ask[data-animate] .ask-answer,
.anim-ready .ask[data-animate] .ask-sources-title,
.anim-ready .ask[data-animate] .ask-source { opacity: 0; }
.anim-ready .ask.is-inview .ask-row--q { animation: iat-in .5s var(--ease-out) .1s both; }
.anim-ready .ask.is-inview .ask-typing { animation: iat-blip 1.1s linear .55s both; }
.anim-ready .ask.is-inview .ask-typing i { animation: iat-dot .5s ease-in-out 2 alternate both; }
.anim-ready .ask.is-inview .ask-typing i:nth-child(2) { animation-delay: .6s; }
.anim-ready .ask.is-inview .ask-typing i:nth-child(3) { animation-delay: .75s; }
.anim-ready .ask.is-inview .ask-answer { animation: iat-in .6s var(--ease-out) 1.55s both; }
.anim-ready .ask.is-inview .ask-sources-title { animation: iat-in .4s var(--ease-out) 1.9s both; }
.anim-ready .ask.is-inview .ask-source { animation: iat-in .4s var(--ease-out) 2s both; }
.anim-ready .ask.is-inview .ask-source:nth-child(2) { animation-delay: 2.15s; }
.anim-ready .ask.is-inview .ask-source:nth-child(3) { animation-delay: 2.3s; }
.anim-ready .ask.is-inview .ask-source:nth-child(4) { animation-delay: 2.45s; }
@keyframes iat-dot { from { transform: translateY(0); } to { transform: translateY(-3px); } }

/* 6. Product preview -------------------------------------------------------------------- */
.pv-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; width: fit-content; max-width: 100%; margin: 0 auto clamp(1.5rem, 1rem + 1.5vw, 2.5rem); padding: .3rem; border-radius: var(--r-lg); background: var(--bg-subtle); border: 1px solid var(--border); }
.pv-tabs[hidden] { display: none; }
.pv-tab { appearance: none; border: 0; background: transparent; font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-muted); padding: .5rem 1.1rem; min-height: 2.75rem; border-radius: var(--r-md); cursor: pointer; transition: background-color var(--dur-base), color var(--dur-base); }
.pv-tab:hover { color: var(--ink); }
.pv-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.pv-tab:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.pv-panels { display: grid; gap: clamp(2.5rem, 2rem + 2vw, 4rem); }
.pv-panel { display: grid; gap: 1.5rem clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.pv-panel[hidden] { display: none; }
.pv-panel:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-lg); }
@media (min-width: 64rem) { .pv-panel { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); } }
.pv-label { margin: 0 0 .5rem; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--tracking-eyebrow); color: var(--accent-strong); }
html[lang="en"] .pv-label { text-transform: uppercase; }
.pv-title { margin: 0 0 .65rem; font-size: var(--fs-xl); }
.pv-text { margin: 0; color: var(--text-muted); }
.pv-figure { margin: 0; }
.pv-frame { overflow: hidden; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.pv-frame > figure.dg, .pv-frame > .dg { margin: 0; padding: clamp(.75rem, .5rem + 1vw, 1.25rem); }
.pv-frame > img { display: block; width: 100%; height: auto; }
.pv-chrome { display: flex; align-items: center; gap: .35rem; padding: .55rem .9rem; border-block-end: 1px solid var(--border); background: var(--bg-subtle); }
.pv-chrome i { display: block; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c-gray-300); }
.pv-url { margin-inline-start: .6rem; padding: .05rem .75rem; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--border); font-size: var(--fs-xs); color: var(--text-subtle); direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.product-preview .figure-caption { text-align: start; }

/* 7. Use cases ---------------------------------------------------------------------------- */
.usecase-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: var(--r-xl); background: var(--border); border: 1px solid var(--border); }
@media (min-width: 40rem) { .usecase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .usecase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.usecase { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: clamp(1.25rem, 1rem + 1vw, 2rem); background: var(--surface); transition: background-color var(--dur-base); }
.usecase:hover { background: var(--bg-tint); }
.usecase-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-md); background: linear-gradient(180deg, #fff, var(--accent-soft)); border: 1px solid var(--c-blue-100); color: var(--accent-strong); }
.usecase-icon .icon { width: 1.3rem; height: 1.3rem; }
.usecase-title { margin: .35rem 0 0; font-size: var(--fs-lg); }
.usecase-text { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
:root[lang="ar"] .usecase-text { font-size: var(--fs-base); }
.usecase .card-more { margin-block-start: auto; }

/* 8. Outcomes ----------------------------------------------------------------------------- */
.outcomes-layout { display: grid; gap: 2rem clamp(2rem, 1rem + 4vw, 5rem); }
@media (min-width: 64rem) { .outcomes-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } .outcomes-layout > .section-head { position: sticky; inset-block-start: calc(var(--header-h) + 2rem); } }
.outcome-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .outcome-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.outcome { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.25rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.outcome-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r-md); background: rgba(227, 179, 65, .14); color: var(--gold-ink); }
.outcome-icon .icon { width: 1.2rem; height: 1.2rem; }
.outcome-title { margin: 0 0 .3rem; font-size: var(--fs-md); }
.outcome-text { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
:root[lang="ar"] .outcome-text { font-size: var(--fs-base); }

/* 9. Pricing teaser ----------------------------------------------------------------------- */
.pricing-teaser { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 2rem; padding: clamp(1.75rem, 1rem + 3vw, 3.25rem); border-radius: var(--r-xl); background: linear-gradient(135deg, #fff 0%, var(--bg-tint) 100%); border: 1px solid var(--c-blue-100); }
.pricing-teaser::after { content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline-end: 0; width: 55%; background: url("../img/oman/lattice-tile.b8220d9e701a.svg") center / 96px 96px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
[dir="rtl"] .pricing-teaser::after { -webkit-mask-image: linear-gradient(270deg, transparent, #000 70%); mask-image: linear-gradient(270deg, transparent, #000 70%); }
@media (min-width: 64rem) { .pricing-teaser { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; } }
.pricing-teaser .section-head { margin-block-end: 1rem; }
.pricing-teaser-text { margin: 0; color: var(--text-muted); font-size: var(--fs-md); }
.pricing-teaser-side .checklist { margin-block-start: 0; }
.pricing-teaser-side .actions { margin-block-start: 1.5rem; }

/* 10. Trust page credentials --------------------------------------------------------------- */
.credential-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.credential { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; overflow-wrap: anywhere; gap: 1.25rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); scroll-margin-block-start: calc(var(--header-h) + 1.5rem); }
.credential:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-md); }
.credential-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.credential-titles { min-width: 0; flex: 1 1 14rem; }
.credential-kicker { margin: 0 0 .2rem; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--tracking-eyebrow); color: var(--accent-strong); }
html[lang="en"] .credential-kicker { text-transform: uppercase; }
.credential-title { margin: 0; font-size: var(--fs-xl); }
.credential-wording { margin: 0; padding: 1rem 1.25rem; border-inline-start: 3px solid var(--c-gold-400); border-start-end-radius: var(--r-md); border-end-end-radius: var(--r-md); background: var(--bg-subtle); }
.credential-wording p { margin: 0; font-size: var(--fs-md); font-weight: var(--fw-semibold); color: var(--ink); }
.credential-detail { margin: 0; color: var(--text); max-width: 60rem; }
.credential-facts { display: grid; gap: .25rem 2rem; margin: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .credential-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.credential-facts > div { display: grid; gap: .1rem; padding-block: .65rem; border-block-end: 1px solid var(--border); }
.credential-facts dt { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-subtle); }
.credential-facts dd { margin: 0; font-weight: var(--fw-semibold); color: var(--ink); overflow-wrap: anywhere; }
.credential-note { padding: 1rem 1.25rem; border-radius: var(--r-md); background: var(--bg-tint); }
.credential-note p { margin: 0; font-size: var(--fs-sm); color: var(--text); }
.credential-note .credential-note-title { margin-block-end: .25rem; font-weight: var(--fw-bold); color: var(--ink); }
.credential-limits { display: flex; gap: .55rem; align-items: flex-start; margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.credential-limits .glyph { flex: none; color: var(--accent-strong); margin-block-start: .15em; }
.credential-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.credential-actions .glyph { width: 1rem; height: 1rem; }
.trust-details .section-head::after, .trust-strip .section-head::after { content: ""; display: block; width: 10rem; height: 1.5rem; margin: .75rem auto 0; background: url("../img/oman/frankincense-divider.f2381b34c8dd.svg") center / contain no-repeat; }
.trust-details .section-head--start::after { margin-inline: 0; }

/* 11. Final CTA: the waterfront line, quietly ------------------------------------------- */
.page-home .cta-section:last-of-type .cta--banner::after { content: ""; position: absolute; z-index: -1; inset-inline: 0; inset-block-end: 0; height: 55%; background: url("../img/oman/muscat-waterfront.634f578e4f96.svg") center bottom / max(100%, 64rem) auto no-repeat; opacity: .45; pointer-events: none; }

@media print {
  .hero-skyline, .flow-pulse, .pv-tabs { display: none !important; }
  .pv-panel[hidden] { display: grid !important; }
  .anim-ready .ask * { opacity: 1 !important; }
}
.pv-frame .dg figcaption, .pv-frame figure.dg > figcaption { display: none; }

/* Rendering budget (lead, R2): below-the-fold sections — dark ones included — skip layout and
   paint until they approach the viewport. While skipped a section is sized by its placeholder
   (remembered once seen); it is never visible in that state, and renders at full size on screen.
   The hero and the trust strip always render. */
main > .section.section--dark { content-visibility: auto; contain-intrinsic-size: auto 900px; }
main > [data-section-key="hero"], main > [data-section-key="trust"] { content-visibility: visible; }
/* ---- css/article.css ---- */
/* Articles and listings (lane D, round 2).
   Loaded after site.css. Every article rule is scoped under .article-head / .article-shell so the
   generic blocks (CTA, sections, containers) keep their marketing-page behaviour elsewhere.
   Root causes fixed here are documented in docs/design/ARTICLE_LAYOUT_ROOT_CAUSE.md. */

/* 1. Tokens ---------------------------------------------------------------------------------- */
.page-article {
  --article-shell: 70rem;            /* 1120px content box on desktop */
  --article-shell-narrow: 48rem;     /* single-column tablet/phone box */
  --article-toc-w: minmax(220px, 260px);
  --article-gap: clamp(2.5rem, 1rem + 2.5vw, 4rem);
  /* Body measure. `ch` is the width of "0" in Cairo, which is ~1.3x the average glyph of running
     text, so 57ch ≈ 70–76 characters per line (measured; see the root-cause doc). */
  --article-measure: 57ch;
  --article-fs: 1.1875rem;
  --article-lh: 1.75;
  --article-sticky-top: calc(var(--header-h) + 1.5rem);
}
:root[lang="ar"] .page-article {
  --article-measure: 60ch;           /* Arabic measured with Cairo Arabic glyphs */
  --article-fs: 1.25rem;
  --article-lh: 1.95;
}

/* 2. Header ---------------------------------------------------------------------------------- */
.article-head { position: relative; max-width: calc(var(--article-shell-narrow) + 2 * var(--gutter)); }
.article-title { max-width: 24ch; }
:root[lang="ar"] .article-title { max-width: 28ch; }
.article-lede { max-width: 46rem; }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.5rem; list-style: none; margin: var(--sp-5) 0 0; padding: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.article-byline .byline-item { display: inline-flex; flex-wrap: wrap; gap: .3em; }
.article-byline .byline-value { color: var(--ink); font-weight: var(--fw-semibold); }
.article-byline .byline-reading .byline-value { color: var(--text-muted); font-weight: var(--fw-regular); }

/* 3. Shell / grid ---------------------------------------------------------------------------- */
.article-shell { max-width: calc(var(--article-shell-narrow) + 2 * var(--gutter)); padding-block: var(--sp-10) var(--section-y); }
.article-main { min-width: 0; }
.article-aside { min-width: 0; margin-block-end: var(--sp-8); }

@media (min-width: 1100px) {
  .article-head { max-width: calc(var(--article-shell) + 2 * var(--gutter)); }
  .article-shell { max-width: calc(var(--article-shell) + 2 * var(--gutter)); }
  .article-shell.has-toc { display: grid; grid-template-columns: minmax(0, 1fr) var(--article-toc-w); grid-template-areas: "main aside"; column-gap: var(--article-gap); align-items: start; }
  .article-shell.has-toc .article-main { grid-area: main; }
  .article-shell.has-toc .article-aside { grid-area: aside; margin: 0; align-self: stretch; }
}
/* Sticky only when there is room for it; long TOCs scroll inside themselves. */
@media (min-width: 1100px) and (min-height: 600px) {
  .article-shell.has-toc .article-toc { position: sticky; inset-block-start: var(--article-sticky-top); max-height: calc(100vh - var(--article-sticky-top) - 1.5rem); overflow-y: auto; overscroll-behavior: contain; }
}

/* 4. Table of contents (details/summary on every size; open on desktop via article.js) ------ */
.article-toc { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-subtle); font-size: var(--fs-sm); }
.article-toc-summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 3rem; padding: var(--sp-3) var(--sp-5); cursor: pointer; list-style: none; font-weight: var(--fw-bold); color: var(--ink); border-radius: inherit; }
.article-toc-summary::-webkit-details-marker { display: none; }
.article-toc-summary:focus-visible { box-shadow: var(--focus-ring); outline: none; }
.article-toc-chevron { display: inline-flex; color: var(--text-muted); transition: rotate var(--dur-base) var(--ease-out); }
.article-toc-chevron .glyph { width: 1.1rem; height: 1.1rem; }
.article-toc[open] .article-toc-chevron { rotate: 180deg; }
.article-toc-list { list-style: none; margin: 0; padding: 0 var(--sp-3) var(--sp-4); display: grid; gap: 2px; }
.article-toc-list a { display: block; padding: .5rem .65rem; border-radius: var(--r-xs); color: var(--text-muted); text-decoration: none; line-height: 1.5; border-inline-start: 2px solid transparent; overflow-wrap: anywhere; }
.article-toc-list a:hover { color: var(--ink); background: #fff; border-inline-start-color: var(--accent); }
.article-toc-list a[aria-current="true"] { color: var(--ink); font-weight: var(--fw-semibold); background: #fff; border-inline-start-color: var(--accent); }
:root[lang="ar"] .article-toc { font-size: var(--fs-base); }

/* 5. Hero visual ----------------------------------------------------------------------------- */
.article-hero { margin: 0 0 var(--sp-10); }
.article-hero .visual-frame { box-shadow: var(--shadow-md); }

/* 6. Body: readable measure for text, controlled breakout for media/tables/CTA ---------------- */
.article-shell .article-body { max-width: none; }
.article-shell .article-body > * + * { margin-block-start: var(--sp-10); }
.article-shell .article-body .prose { font-size: var(--article-fs); line-height: var(--article-lh); max-width: var(--article-measure); }
.article-shell .article-body .prose h2 { font-size: var(--fs-xl); line-height: var(--lh-snug); }
.article-shell .article-body .prose h3 { font-size: var(--fs-lg); line-height: var(--lh-snug); }
.article-shell .article-body .section-head,
.article-shell .article-body .answer-wrap,
.article-shell .article-body .callout-wrap,
.article-shell .article-body .download-wrap,
.article-shell .article-body .faq { max-width: var(--article-measure); }
.article-shell .article-body .callout-wrap, .article-shell .article-body .answer-wrap, .article-shell .article-body .download-wrap { margin-block: var(--sp-10) 0; }
.article-shell .article-body .answer-a { font-size: var(--article-fs); line-height: var(--article-lh); }
.article-shell .article-body .callout .prose { font-size: var(--fs-base); }
/* Wide elements use the whole main column (body + its gutter), never the TOC column. */
.article-shell .article-body .diagram-figure,
.article-shell .article-body .table-scroll,
.article-shell .article-body .cta { max-width: 100%; }
.article-shell .article-body .diagram-figure { margin-inline: 0; }
.article-shell .article-body .figure-caption { text-align: start; }
.article-shell .article-body .table-scroll { overscroll-behavior-x: contain; }
.article-shell .article-body .table { font-size: var(--fs-sm); }
:root[lang="ar"] .article-shell .article-body .table { font-size: var(--fs-base); }
/* Long URLs / code never widen the page. */
.article-shell .article-body .prose a { overflow-wrap: anywhere; }
.article-shell .article-body .prose code { overflow-wrap: anywhere; font-family: var(--font-mono); font-size: .9em; }
.article-shell .article-body .prose pre { max-width: 100%; overflow-x: auto; padding: var(--sp-4); border-radius: var(--r-sm); background: var(--bg-subtle); border: 1px solid var(--border); }
.article-shell .article-body .prose pre code { overflow-wrap: normal; }
.article-shell .article-body .prose img, .article-shell .article-body img { max-width: 100%; height: auto; }
/* Anchor targets clear the sticky header (header height + ≥16px). */
.article-shell [id], .article-head [id] { scroll-margin-top: calc(var(--header-h) + 2rem); }

/* 7. In-article CTA: single column, text always wraps -------------------------------------- */
.article-shell .article-body .cta-section { padding-block: 0; }
.article-shell .article-body .cta { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-lg); }
.article-shell .article-body .cta-copy { min-width: 0; }
.article-shell .article-body .cta-title { font-size: var(--fs-xl); line-height: var(--lh-snug); overflow-wrap: break-word; }
.article-shell .article-body .cta-text { max-width: 60ch; font-size: var(--fs-base); }
.article-shell .article-body .cta-actions { min-width: 0; margin: 0; flex-wrap: wrap; }
.article-shell .article-body .cta .btn { white-space: normal; text-align: center; max-width: 100%; }

/* 8. Article footer: share, prev/next -------------------------------------------------------- */
.article-shell .sources, .article-shell .tags, .article-shell .download { max-width: var(--article-measure); margin-block-start: var(--sp-10); }
.article-foot { margin-block-start: var(--sp-10); padding-block-start: var(--sp-6); border-block-start: 1px solid var(--border); }
.article-share-title { font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--ink); margin-block-end: var(--sp-3); }
.article-share-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.share-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .35rem 1rem; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-decoration: none; cursor: pointer; }
.share-btn:hover { border-color: var(--accent); color: var(--accent-strong); }
.share-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.share-btn .glyph { width: 1.1rem; height: 1.1rem; }
.share-btn[hidden] { display: none; }
.share-status { min-height: 1.5em; margin-block-start: var(--sp-2); font-size: var(--fs-sm); color: var(--success); }
.article-pn { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); margin-block-start: var(--sp-10); }
@media (min-width: 40rem) { .article-pn { grid-template-columns: repeat(2, minmax(0, 1fr)); } .article-pn-next { grid-column: 2; text-align: end; } .article-pn-next .article-pn-dir { justify-content: flex-end; } }
.article-pn-link { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-5); border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color var(--dur-base), box-shadow var(--dur-base); }
.article-pn-link:hover { border-color: var(--c-blue-100); box-shadow: var(--shadow-md); }
.article-pn-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.article-pn-dir { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-sm); color: var(--link); font-weight: var(--fw-semibold); }
.article-pn-dir .glyph { width: 1em; height: 1em; }
.article-pn-title { font-weight: var(--fw-bold); line-height: var(--lh-snug); overflow-wrap: anywhere; }

/* 9. Listings -------------------------------------------------------------------------------- */
.resource-grid > li { min-width: 0; }
.article-card { height: 100%; }
.article-card .card-title { line-height: var(--lh-snug); overflow-wrap: anywhere; }
.article-card .card-meta { color: var(--text-muted); }
.pagination { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.pagination .btn { white-space: normal; }
.pagination-status { text-align: center; }

/* 10. Print ---------------------------------------------------------------------------------- */
@media print {
  .article-aside, .article-share, .article-pn, .article-related { display: none !important; }
  .article-shell .article-body .prose { max-width: none; }
}

/* Rendering budget (lead, R2): later article sections skip layout/paint until they approach the
   viewport (anchors, find-in-page and the TOC highlighter keep working; sizes are remembered). */
.article-body > .section ~ .section,
.article-body > .section ~ .container,
.article-body > .sources {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}
@media print { .article-body > * { content-visibility: visible; } }
/* ---- css/brand.css ---- */
/* Brand logos and trust marks (lane E).
 *
 * Markup from branding/templatetags/branding_tags.py:
 *   <span|a class="brand-mark brand-mark--{light|dark-container|light-container} brand-mark--{placement} brand-mark--{role}">
 *     <img class="brand-mark__img" width height srcset="… 1x, … 2x">
 *   ClaimView.logo_img → <img class="trust-mark__img"> (wrap in .trust-mark).
 *
 * Rules: logos are never cropped, recoloured or filtered (no object-fit: cover, no filter);
 * the rendered height is fixed per placement and the width follows the artwork's aspect ratio.
 * Clear space around a mark is at least 25% of the mark's height on every side.
 */

.brand-mark {
  --mark-h: 2.5rem;                        /* header default: 40px */
  --mark-clear: calc(var(--mark-h) * .25); /* minimum clear space = 25% of mark height */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  max-inline-size: 100%;
  line-height: 0;
  text-decoration: none;
}
.brand-mark__img {
  display: block;
  block-size: var(--mark-h);
  inline-size: auto;
  max-inline-size: 100%;
  object-fit: contain;
}

/* Display height per placement (matches PLACEMENT_HEIGHT in branding_tags.py). */
.brand-mark--header        { --mark-h: 2.5rem; }
.brand-mark--mobile_header { --mark-h: 2rem; }
.brand-mark--hero          { --mark-h: 5.5rem; }
.brand-mark--footer        { --mark-h: 2.25rem; }
.brand-mark--about         { --mark-h: 3.5rem; }
.brand-mark--legal         { --mark-h: 2rem; }
.brand-mark--email         { --mark-h: 3rem; }
@media (max-width: 40em) {
  .brand-mark--hero  { --mark-h: 4rem; }
  .brand-mark--about { --mark-h: 3rem; }
}

/* Presentation containers. Clear space is padding, so neighbours can never eat it. */
.brand-mark--light { padding: 0; }
.brand-mark--dark-container,
.brand-mark--light-container {
  padding: var(--mark-clear);
  border-radius: var(--r-sm, 10px);
}
.brand-mark--dark-container {
  /* For light/white artwork (e.g. the Data Wave AI mark) on light pages. */
  background: var(--c-navy-900, #0b1040);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06);
}
.brand-mark--light-container {
  /* For dark artwork placed on dark sections. */
  background: var(--c-white, #fff);
  box-shadow: inset 0 0 0 1px var(--c-gray-200, #e1e6f0);
}
/* A dark container inside a dark section needs a visible edge. */
.theme-dark .brand-mark--dark-container,
.section--dark .brand-mark--dark-container { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); }

/* Linked logos: a visible focus ring around the container, not the image. */
a.brand-mark { border-radius: var(--r-sm, 10px); }
a.brand-mark:focus-visible {
  outline: 3px solid var(--c-blue-500, #3b82f6);
  outline-offset: 3px;
}

/* Trust-card marks (issuer marks of approved claims, e.g. Fawtara, Peppol AP Certified).
 * Fixed mark height, clear space = 25% of that height on every side, on a white plate so the
 * official artwork keeps its own colours in light and dark sections alike. */
.trust-mark {
  --mark-h: 3rem;
  --mark-clear: calc(var(--mark-h) * .25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: var(--mark-clear);
  min-block-size: calc(var(--mark-h) + 2 * var(--mark-clear));
  background: var(--c-white, #fff);
  border: 1px solid var(--c-gray-200, #e1e6f0);
  border-radius: var(--r-sm, 10px);
  line-height: 0;
}
.trust-mark--sm { --mark-h: 2.25rem; }
.trust-mark--lg { --mark-h: 4rem; }
.trust-mark__img,
.trust-mark img {
  display: block;
  block-size: var(--mark-h);
  inline-size: auto;
  max-inline-size: 12rem;
  object-fit: contain;
}

/* Text-only short label (claims without a supplied mark, e.g. ISO/IEC 27001:2022 — never the ISO logo). */
.trust-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2, .5rem);
  padding: .35rem .75rem;
  border-radius: var(--r-pill, 999px);
  border: 1px solid var(--c-gray-200, #e1e6f0);
  background: var(--c-gray-25, #fbfcfe);
  color: var(--ink, #0b1040);
  font-size: var(--fs-sm, .875rem);
  font-weight: 600;
  white-space: nowrap;
}

/* Forced colours / print must not wipe out an official mark or its container. */
@media (forced-colors: active) {
  .brand-mark--dark-container,
  .brand-mark--light-container,
  .trust-mark { forced-color-adjust: none; }
}
@media print {
  .brand-mark--dark-container { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Developer attribution on About (restrained, secondary). */
.dev-attribution__inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dev-attribution__inner img { max-height: 44px; width: auto; }
.dev-attribution__caption { margin: 0; color: var(--muted, #5b6478); font-size: .95rem; }

/* The official logo has a dark navy wordmark: on the dark footer it is presented on a light
   container (never recoloured). */
footer .brand-mark--primary.brand-mark--footer {
  display: inline-flex; align-items: center; background: #fff; border-radius: 12px;
  padding: .55rem .85rem; box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 8px 24px -12px rgba(0, 0, 0, .6);
}
footer .brand-mark--primary.brand-mark--footer img { display: block; }
/* ---- css/scenes.css ---- */
/* Page scenes and composition (R3 lane 3).
   Scenes are original vector artwork rendered to AVIF/WebP/PNG and served through Wagtail
   renditions in a <picture>. They carry no text, so contrast rules apply only to the copy around
   them, which keeps the existing token colours. Motion: transform/opacity only, and only when the
   visitor has not asked for reduced motion. */

/* Shared image behaviour */
.scene-img, .scene picture img, .visual-frame--scene img { display: block; width: 100%; height: auto; }
.scene picture, .visual-frame--scene picture { display: block; }

/* Hero visual (pricing and any hero with an image). The hero entrance animation is site.css's. */
.visual-frame--scene { padding: .375rem; overflow: hidden; }
.visual-frame--scene img { border-radius: calc(var(--r-xl) - .375rem); aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 64rem) {
  .hero--compact.hero--media .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}
@media (max-width: 63.99rem) {
  .hero-visual--scene { max-width: 36rem; margin-inline: auto; width: 100%; }
}
.hero .actions { flex-wrap: wrap; }

/* Lead-form pages (contact, request a demo): the form stays dominant and comes first.
   DOM and small-screen order: form → intro → what happens next → scene, so the form is above the
   fold on phones. From 64rem the aside sits in the start column beside the form. */
.form-layout--scene .form-aside { display: grid; gap: var(--sp-8); align-content: start; }
.form-layout--scene .form-aside .expectations { margin-block-start: 0; }
.form-layout--scene .form-intro { position: static; }
@media (min-width: 64rem) {
  .form-layout--scene { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .form-layout--scene .form-aside { grid-column: 1; grid-row: 1; }
  .form-layout--scene .form-card { grid-column: 2; grid-row: 1; }
}
.scene { margin: 0; }
.scene--form {
  border-radius: var(--r-xl);
  padding: .375rem;
  background: linear-gradient(180deg, #fff, var(--c-gray-50));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.scene--form img { border-radius: calc(var(--r-xl) - .375rem); aspect-ratio: 4 / 3; }
@media (max-width: 63.99rem) {
  .scene--form { max-width: 36rem; margin-inline: auto; width: 100%; }
}

/* Subtle entrance for the below-the-fold form scene: transform/opacity only. */
@media (prefers-reduced-motion: no-preference) {
  .scene--form { animation: scene-in .7s .1s var(--ease-out) both; }
  @keyframes scene-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

@media print {
  .scene--form { box-shadow: none; break-inside: avoid; }
}

/* Homepage assistant section illustration (optional block image). */
.assistant-scene { margin-block-start: 1.75rem; max-inline-size: 32rem; }
.assistant-scene img { display: block; inline-size: 100%; block-size: auto; border-radius: 16px; }

/* R4 lane 5: scenes inside split sections (lazy, below the fold) — same frame as the hero scene. */
.split-media--scene .visual-frame--scene { padding: .375rem; }
@media (max-width: 63.99rem) {
  .split-media--scene { max-width: 36rem; margin-inline: auto; width: 100%; }
}

/* R4 lane 5: "Pattern: Omani arches" — a restrained arcade band along the foot of page heroes that
   carry a scene. Decorative CSS background (aria-hidden parent), no layout impact, no motion. Blue
   lines on light/compact heroes, cyan lines on dark heroes. Symmetric, so no RTL flip is needed. */
.hero-arches {
  position: absolute; inset-inline: 0; inset-block-end: 0;
  block-size: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem);
  background: url("../img/scenes/pattern-arches-band-light.5b3ba65e0eb5.svg") repeat-x center bottom / auto 100%;
  opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.theme-dark .hero-arches { background-image: url("../img/scenes/pattern-arches-band-dark.54fdf188e0bd.svg"); opacity: 1; }
@media print { .hero-arches { display: none; } }
/* ---- css/whatsapp.css ---- */
/* Floating WhatsApp action (R3 lane 2, rebuilt R4 lane 1).
   Loaded before leads/leads.css, so selectors carry `body … [data-wa-widget]` to win over the
   older base rules. Bottom inline-end corner (right in LTR, left in RTL), safe-area aware,
   below the drawer. Fixed + transform only: it reserves no layout space and moving it (cookie
   banner lift via --wa-banner-offset, set by whatsapp.js) never shifts page content.
   Colours: WhatsApp brand green #25D366 disc with the white glyph (the brand mark); the pill /
   ring use WhatsApp dark teal #075E54 so the label text (7.4:1) and the control boundary
   (>3:1 against white) meet WCAG contrast. */

body .wa-widget[data-wa-widget] {
  --wa-green: #25d366;
  --wa-teal: #075e54;
  --wa-teal-hover: #054c44;
  --wa-gap: 1rem;
  --wa-focus: #1d4ed8;
  position: fixed; z-index: 60;
  inset-inline-end: max(var(--wa-gap), env(safe-area-inset-right));
  inset-inline-start: auto;
  bottom: max(var(--wa-gap), env(safe-area-inset-bottom));
  transform: translateY(calc(-1 * var(--wa-banner-offset, 0px)));
  display: flex; flex-direction: column; align-items: flex-end; gap: .6rem;
  max-width: calc(100vw - 2 * var(--wa-gap));
  pointer-events: none; /* only the controls take clicks */
  transition: transform .2s ease, opacity .15s ease, visibility .15s;
}
[dir=rtl] body .wa-widget[data-wa-widget] { inset-inline-end: max(var(--wa-gap), env(safe-area-inset-left)); align-items: flex-start; }
body .wa-widget[data-wa-widget] > * { pointer-events: auto; }
body .wa-widget[data-wa-widget] [hidden] { display: none !important; }

/* Step aside while covering a submit button / sticky CTA, and while the mobile drawer is open. */
body .wa-widget[data-wa-widget].wa-widget--yield,
html.drawer-open body .wa-widget[data-wa-widget] { opacity: 0; visibility: hidden; }
body .wa-widget[data-wa-widget].wa-widget--yield > *,
html.drawer-open body .wa-widget[data-wa-widget] > * { pointer-events: none; }

/* Row: [more][button] — flex follows the inline direction, so RTL mirrors automatically. */
body .wa-widget[data-wa-widget] .wa-cluster { position: relative; display: flex; align-items: center; gap: .5rem; }

body .wa-widget[data-wa-widget] .wa-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 56px; min-width: 56px; padding: 4px 1.2rem 4px 4px;
  border-radius: 999px; background: var(--wa-teal); color: #fff; text-decoration: none;
  font-weight: 700; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(11, 16, 64, .28);
  -webkit-tap-highlight-color: transparent;
}
[dir=rtl] body .wa-widget[data-wa-widget] .wa-button { padding: 4px 4px 4px 1.2rem; }
body .wa-widget[data-wa-widget] .wa-button:hover { background: var(--wa-teal-hover); color: #fff; }
body .wa-widget[data-wa-widget] .wa-button:focus-visible,
body .wa-widget[data-wa-widget] .wa-more:focus-visible,
body .wa-widget[data-wa-widget] .wa-panel__btn:focus-visible,
body .wa-widget[data-wa-widget] .wa-panel__close:focus-visible {
  outline: 3px solid var(--wa-focus); outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}
body .wa-widget[data-wa-widget] .wa-button__disc {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--wa-green); color: #fff;
}
body .wa-widget[data-wa-widget] .wa-glyph { width: 28px; height: 28px; }

/* "More options" toggle */
body .wa-widget[data-wa-widget] .wa-more {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--wa-teal); border-radius: 50%; background: #fff; color: var(--wa-teal);
  box-shadow: 0 4px 12px rgba(11, 16, 64, .2); cursor: pointer;
}
body .wa-widget[data-wa-widget] .wa-more:hover,
body .wa-widget[data-wa-widget] .wa-more[aria-expanded=true] { background: #e7f8ee; }

/* Tooltip: hover (real pointers only) or keyboard focus; never auto-opens; Esc hides it. */
body .wa-widget[data-wa-widget] .wa-tooltip {
  position: absolute; bottom: calc(100% + 10px); inset-inline-end: 0;
  max-width: min(16rem, calc(100vw - 2rem)); width: max-content; padding: .45rem .7rem;
  background: #101828; color: #fff; border-radius: 8px; font-size: .875rem; line-height: 1.35; font-weight: 600;
  white-space: normal; box-shadow: 0 6px 16px rgba(11, 16, 64, .25);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease, visibility .12s;
}
@media (hover: hover) {
  body .wa-widget[data-wa-widget] .wa-button:hover ~ .wa-tooltip,
  body .wa-widget[data-wa-widget] .wa-tooltip:hover { opacity: 1; visibility: visible; transform: none; }
}
body .wa-widget[data-wa-widget] .wa-button:focus-visible ~ .wa-tooltip { opacity: 1; visibility: visible; transform: none; }
/* R4-QA D1: while the options panel is open it must sit above the sticky header (--z-header 100)
   but below the drawer/consent banner; on short screens the panel scrolls instead of hiding under it. */
body .wa-widget[data-wa-widget].wa-widget--open { z-index: 150; }
body .wa-widget[data-wa-widget] .wa-panel { max-height: calc(100dvh - var(--wa-banner-offset, 0px) - 6rem); overflow-y: auto; }

body .wa-widget[data-wa-widget].wa-widget--tip-off .wa-tooltip,
body .wa-widget[data-wa-widget].wa-widget--open .wa-tooltip { opacity: 0 !important; visibility: hidden !important; }

/* Options panel (non-modal, opened only by the toggle) */
body .wa-widget[data-wa-widget] .wa-panel {
  width: min(19rem, calc(100vw - 2 * var(--wa-gap))); padding: .75rem .9rem .9rem;
  background: #fff; color: #101828; border: 1px solid #d0d5dd; border-radius: 14px;
  box-shadow: 0 10px 28px rgba(11, 16, 64, .22); font-size: .95rem; line-height: 1.45;
  animation: wa-in .18s ease-out;
}
body .wa-widget[data-wa-widget] .wa-panel__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
body .wa-widget[data-wa-widget] .wa-panel__title { margin: 0; font-weight: 700; }
body .wa-widget[data-wa-widget] .wa-panel__close {
  flex: none; width: 44px; height: 44px; margin-inline-end: -.5rem; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
}
body .wa-widget[data-wa-widget] .wa-panel__number { margin: .1rem 0 .6rem; font-size: 1.25rem; font-weight: 700; letter-spacing: .01em; }
body .wa-widget[data-wa-widget] .wa-panel__number bdi { unicode-bidi: isolate; direction: ltr; user-select: all; }
body .wa-widget[data-wa-widget] .wa-panel__actions { display: grid; gap: .5rem; }
body .wa-widget[data-wa-widget] .wa-panel__btn {
  display: flex; align-items: center; gap: .55rem; min-height: 48px; padding: .5rem .85rem;
  border: 2px solid var(--wa-teal); border-radius: 10px; background: #fff; color: var(--wa-teal);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: start;
}
body .wa-widget[data-wa-widget] .wa-panel__btn:hover { background: #e7f8ee; color: var(--wa-teal-hover); }
body .wa-widget[data-wa-widget] .wa-panel__btn svg { flex: none; }
body .wa-widget[data-wa-widget] .wa-panel__note { margin: .6rem 0 0; font-size: .85rem; color: #475467; }
body .wa-widget[data-wa-widget] .wa-panel__status { margin: .5rem 0 0; min-height: 1.2em; font-size: .875rem; font-weight: 600; color: var(--wa-teal); }
body .wa-widget[data-wa-widget] .wa-panel__status:empty { margin: 0; min-height: 0; }

/* Compact (icon-only) below 40rem — the accessible name stays on the link. */
@media (max-width: 40rem) {
  body .wa-widget[data-wa-widget] { --wa-gap: .75rem; }
  body .wa-widget[data-wa-widget] .wa-button,
  [dir=rtl] body .wa-widget[data-wa-widget] .wa-button { padding: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--wa-green); box-shadow: 0 0 0 2px var(--wa-teal), 0 6px 18px rgba(11, 16, 64, .28); }
  body .wa-widget[data-wa-widget] .wa-button__disc { width: 56px; height: 56px; }
  body .wa-widget[data-wa-widget] .wa-button__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Inline WhatsApp alternative (form success states, pricing CTAs) */
.wa-inline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 1rem 0 0; }
.wa-inline__btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; }
.wa-inline__icon { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #25d366; color: #fff; }
.wa-inline__icon .wa-glyph { width: 18px; height: 18px; }
.wa-inline__link { display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; font-weight: 600; }
.wa-inline__note { font-size: .875rem; color: #475467; }
.actions > .wa-inline { margin: 0; }

@keyframes wa-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  body .wa-widget[data-wa-widget], body .wa-widget[data-wa-widget] .wa-tooltip { transition: none; }
  body .wa-widget[data-wa-widget] .wa-panel { animation: none; }
}
@media print {
  body .wa-widget[data-wa-widget], .wa-inline { display: none; }
}
/* ---- consent/consent.css ---- */
/* Invoice And Tax — cookie consent banner and dialog. Non-modal banner at the bottom; the
   three choices share one style (equal prominence). */
.consent-banner {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 70;
  background: var(--color-surface, #fff); color: var(--color-text, #101828);
  border-top: 1px solid var(--color-border, #d0d5dd); box-shadow: 0 -6px 24px rgba(11, 16, 64, .12);
  padding: 1rem max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-right));
}
.consent-banner[hidden] { display: none; }
.consent-banner__inner { max-width: 72rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.consent-banner__copy { flex: 1 1 28rem; min-width: 0; }
.consent-banner__title { margin: 0 0 .25rem; font-size: 1.05rem; }
.consent-banner__text { margin: 0; }
.consent-banner__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.consent-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 9rem;
  padding: .55rem 1.1rem; border-radius: var(--radius-sm, 8px); font: inherit; font-weight: 600; cursor: pointer;
  border: 2px solid var(--color-brand-navy, #0b1040); background: var(--color-brand-navy, #0b1040); color: #fff; text-decoration: none;
}
.consent-btn:hover { background: var(--color-brand-blue, #1d4ed8); border-color: var(--color-brand-blue, #1d4ed8); }
.consent-btn:focus-visible, .consent-settings-link:focus-visible, .consent-dialog__close:focus-visible {
  outline: 3px solid var(--color-focus, #2563eb); outline-offset: 2px;
}
.consent-note { margin: .5rem 0 0; font-size: .9em; color: var(--color-muted, #475467); }
.consent-dialog {
  width: min(36rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto;
  border: 0; border-radius: 12px; padding: 1.25rem 1.5rem; color: var(--color-text, #101828); background: var(--color-surface, #fff);
}
.consent-dialog::backdrop { background: rgba(11, 16, 64, .55); }
.consent-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.consent-dialog__title { margin: 0; font-size: 1.2rem; }
.consent-dialog__title:focus { outline: none; }
.consent-dialog__close { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.consent-choices__set { border: 0; padding: 0; margin: 1rem 0; display: grid; gap: .9rem; }
.consent-cat { display: grid; grid-template-columns: auto 1fr; column-gap: .65rem; align-items: start; }
.consent-cat input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; }
.consent-cat__label { font-weight: 600; }
.consent-cat__badge { font-weight: 400; font-size: .85em; color: var(--color-muted, #475467); }
.consent-cat__text { grid-column: 2; margin: .15rem 0 0; font-size: .92em; color: var(--color-muted, #475467); }
.consent-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.consent-settings-link { color: inherit; text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.consent-withdraw { margin-top: 1rem; }
.consent-summary { padding-inline-start: 1.25rem; }
@media print { .consent-banner, .consent-dialog { display: none; } }
@media (prefers-reduced-motion: reduce) { .consent-dialog, .consent-banner { transition: none; animation: none; } }

/* Phones: keep the banner compact so it never hides most of the first screen.
   Equal prominence is preserved — the three choices stay the same size, side by side. */
@media (max-width: 40rem) {
  .consent-banner { padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); }
  .consent-banner__inner { gap: .6rem; }
  .consent-banner__copy { flex-basis: 100%; }
  .consent-banner__title { font-size: .95rem; margin-bottom: .15rem; }
  .consent-banner__text { font-size: .85rem; line-height: 1.5; }
  .consent-banner__actions { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
  .consent-banner__actions > * { min-height: 44px; min-width: 0; padding-inline: .4rem; font-size: .85rem; width: 100%; white-space: normal; text-align: center; }
}
:lang(ar) .consent-banner__text { line-height: 1.75; }
/* ---- leads/leads.css ---- */
/* Invoice And Tax — lead forms, newsletter and WhatsApp widget.
   Minimal component styles; colours come from the design tokens when present. */

.lf-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Honeypot: off-screen for people, still present for naive bots. */
.lf-hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

.lead-form, .newsletter { position: relative; }
.lead-form .form, .newsletter .form { display: grid; gap: 1rem; }
.lead-form .field, .newsletter .field { display: grid; gap: .35rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.lead-form .field__label, .newsletter .field__label { font-weight: 600; }
.lead-form .field__req, .newsletter .field__req { color: var(--color-danger, #b42318); }
.lead-form .field__help { margin: 0; font-size: .9em; color: var(--color-muted, #475467); }
.lead-form input[type=text], .lead-form input[type=email], .lead-form input[type=tel],
.lead-form select, .lead-form textarea, .newsletter input[type=email] {
  width: 100%; min-height: 44px; padding: .55rem .75rem; font: inherit;
  border: 1px solid var(--color-border-strong, #98a2b3); border-radius: var(--radius-sm, 8px);
  background: var(--color-surface, #fff); color: inherit;
}
.lead-form textarea { min-height: 8rem; resize: vertical; }
.lead-form input:focus-visible, .lead-form select:focus-visible, .lead-form textarea:focus-visible,
.newsletter input:focus-visible {
  outline: 3px solid var(--color-focus, #2563eb); outline-offset: 2px;
}
.lead-form [aria-invalid=true], .newsletter [aria-invalid=true] { border-color: var(--color-danger, #b42318); border-width: 2px; }
.field-error { margin: 0; color: var(--color-danger, #b42318); font-weight: 600; }
.field--checkbox { grid-template-columns: auto 1fr; align-items: start; column-gap: .6rem; }
.field--checkbox input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; }
.field--checkbox .field-error { grid-column: 1 / -1; }
.field__choices { display: grid; gap: .4rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.field__choice { display: flex; gap: .5rem; align-items: center; min-height: 32px; }
.field__choice input { width: 1.15rem; height: 1.15rem; flex: none; }
.form__note { margin: 0; font-size: .9em; color: var(--color-muted, #475467); }
.form__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.error-summary {
  border: 2px solid var(--color-danger, #b42318); border-radius: var(--radius-sm, 8px);
  padding: 1rem 1.25rem; margin-block-end: 1rem; background: var(--color-danger-soft, #fef3f2);
}
.error-summary:focus { outline: 3px solid var(--color-focus, #2563eb); outline-offset: 2px; }
.error-summary__title { margin: 0 0 .5rem; font-size: 1.05rem; }
.error-summary__list { margin: 0; padding-inline-start: 1.25rem; }
.error-summary__list a { color: var(--color-danger, #b42318); font-weight: 600; }

.form-success {
  border: 2px solid var(--color-success, #067647); border-radius: var(--radius-sm, 8px);
  padding: 1rem 1.25rem; background: var(--color-success-soft, #ecfdf3);
}
.form-success:focus { outline: 3px solid var(--color-focus, #2563eb); outline-offset: 2px; }
.form-success__title { margin: 0 0 .35rem; font-size: 1.15rem; }
.form-success__text { margin: 0; }

.lf-standalone { padding-block: 2.5rem 4rem; max-width: 46rem; }

/* WhatsApp widget: bottom inline-end, safe-area aware, above the consent banner. */
.wa-widget {
  --wa-banner-offset: 0px;
  position: fixed; z-index: 60;
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + var(--wa-banner-offset));
  display: flex; flex-direction: column; align-items: flex-end; gap: .6rem;
  transition: bottom .2s ease;
}
[dir=rtl] .wa-widget { inset-inline-end: max(1rem, env(safe-area-inset-left)); align-items: flex-start; }
.wa-button {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 52px; padding: .6rem 1.1rem;
  border-radius: 999px; background: #0b6b3a; color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 6px 18px rgba(11, 16, 64, .25);
}
.wa-button:hover { background: #095a31; }
.wa-button:focus-visible { outline: 3px solid var(--color-focus, #2563eb); outline-offset: 3px; }
.wa-bubble {
  position: relative; max-width: min(20rem, calc(100vw - 2rem)); padding: .85rem 2.4rem .85rem 1rem;
  background: #fff; color: #101828; border-radius: 12px; box-shadow: 0 8px 24px rgba(11, 16, 64, .2);
  animation: wa-in .25s ease-out;
}
[dir=rtl] .wa-bubble { padding: .85rem 1rem .85rem 2.4rem; }
.wa-bubble[hidden] { display: none; }
.wa-bubble__text { margin: 0; }
.wa-bubble__close {
  position: absolute; top: .35rem; inset-inline-end: .35rem; width: 32px; height: 32px;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
}
.wa-bubble__close:focus-visible { outline: 3px solid var(--color-focus, #2563eb); }
@keyframes wa-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 40rem) {
  .wa-button__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wa-button { padding: .7rem; min-width: 52px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-widget { transition: none; }
  .wa-bubble { animation: none; }
}
@media print { .wa-widget { display: none; } }
/* No-JS fallback: keep the button above a visible consent banner. */
.consent:has([data-consent-banner]) ~ .wa-widget { --wa-banner-offset: 9rem; }

/* R3: success reference, WhatsApp alternative, progressive disclosure */
.form-success__ref { margin: .75rem 0 0; }
.form-success__ref-value { font-variant-numeric: tabular-nums; letter-spacing: .02em; unicode-bidi: isolate; }
.form-success__hint { margin: .25rem 0 0; font-size: .9rem; opacity: .85; }
.form-success__wa { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid rgba(0, 0, 0, .08); }
.form-success__wa-lead { margin: 0 0 .5rem; font-weight: 600; }
.lead-form__more { margin: 1rem 0; padding: .75rem 1rem; border: 1px solid var(--line, #d7dce5); border-radius: var(--r-md, 8px); }
.lead-form__more-summary { cursor: pointer; font-weight: 600; padding: .25rem 0; }
.lead-form__more-summary:focus-visible { outline: 3px solid var(--color-focus, #2563eb); outline-offset: 2px; }
.lead-form__more[open] > .lead-form__more-summary { margin-bottom: .5rem; }
.lead-form__more-hint { margin-top: 0; }
