/* ==========================================================================
   POPS — popsers.com
   Brand colours come from the logo: navy #2d3256, lavender #7b7bb9, orange #ec6513.
   Every colour on the page comes from the theme tokens below, and every
   typeface from the font tokens, so a theme or font pairing is one attribute
   on <html>: data-theme="…" data-font="…" data-radius="…" (+ data-arfont on /ar).
   ========================================================================== */

/* ==========================================================================
   Themes. "pops" is the default.
   ========================================================================== */
:root, [data-theme="pops"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f6f6fb;
  --surface: #ffffff;
  --surface-2: #f2f2f9;
  --border: rgba(45, 50, 86, 0.1);
  --border-strong: rgba(45, 50, 86, 0.2);
  --text: #1b1f3b;
  --text-muted: #565b7a;
  --text-faint: #8a8fa8;
  --accent: #5753c9;
  --on-accent: #ffffff;
  --accent-2: #ec6513;
  --band-bg: #2d3256;
  --band-text: #ffffff;
  --band-muted: rgba(255, 255, 255, 0.72);
  --band-border: rgba(255, 255, 255, 0.12);
  --footer-bg: #171a33;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --logo-light: block;
  --logo-dark: none;
  --partner-filter: grayscale(1) opacity(0.6);
  --shadow-rgb: 27, 31, 59;
  --glow-opacity: 0.5;
}

/* Midnight: the brand navy as a full dark mode */
[data-theme="midnight"] {
  color-scheme: dark;
  --bg: #0d0f22;
  --bg-alt: #11142b;
  --surface: #151933;
  --surface-2: #1c2142;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0ff;
  --text-muted: #a6abcf;
  --text-faint: #7479a0;
  --accent: #8b87ff;
  --on-accent: #0d0f22;
  --accent-2: #ff7a33;
  --band-bg: #161a37;
  --band-text: #ffffff;
  --band-muted: rgba(255, 255, 255, 0.7);
  --band-border: rgba(255, 255, 255, 0.1);
  --footer-bg: #080a18;
  --nav-bg: rgba(13, 15, 34, 0.75);
  --logo-light: none;
  --logo-dark: block;
  --partner-filter: brightness(0) invert(1) opacity(0.65);
  --shadow-rgb: 0, 0, 0;
  --glow-opacity: 0.45;
}

/* Classic: the old Webflow site's blue, modernised */
[data-theme="classic"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f3f7fd;
  --surface: #ffffff;
  --surface-2: #eef4fd;
  --border: rgba(31, 41, 68, 0.1);
  --border-strong: rgba(31, 41, 68, 0.2);
  --text: #1f2944;
  --text-muted: #4f5b7a;
  --text-faint: #8590a8;
  --accent: #0965e6;
  --on-accent: #ffffff;
  --accent-2: #f5a524;
  --band-bg: #1f2944;
  --band-text: #ffffff;
  --band-muted: rgba(255, 255, 255, 0.72);
  --band-border: rgba(255, 255, 255, 0.12);
  --footer-bg: #141b30;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --logo-light: block;
  --logo-dark: none;
  --partner-filter: grayscale(1) opacity(0.6);
  --shadow-rgb: 31, 41, 68;
  --glow-opacity: 0.4;
}

/* Sunrise: warm cream, the logo orange leads */
[data-theme="sunrise"] {
  color-scheme: light;
  --bg: #fffaf4;
  --bg-alt: #fff1e4;
  --surface: #ffffff;
  --surface-2: #fff4ea;
  --border: rgba(66, 38, 18, 0.1);
  --border-strong: rgba(66, 38, 18, 0.2);
  --text: #2a1f1a;
  --text-muted: #6b5a4f;
  --text-faint: #a08f83;
  --accent: #d2520a;
  --on-accent: #ffffff;
  --accent-2: #5753c9;
  --band-bg: #2d3256;
  --band-text: #ffffff;
  --band-muted: rgba(255, 255, 255, 0.72);
  --band-border: rgba(255, 255, 255, 0.12);
  --footer-bg: #1e1814;
  --nav-bg: rgba(255, 250, 244, 0.82);
  --logo-light: block;
  --logo-dark: none;
  --partner-filter: grayscale(1) sepia(0.2) opacity(0.6);
  --shadow-rgb: 66, 38, 18;
  --glow-opacity: 0.45;
}

/* Lavender: soft lilac background, navy as the accent */
[data-theme="lavender"] {
  color-scheme: light;
  --bg: #f7f6ff;
  --bg-alt: #edebff;
  --surface: #ffffff;
  --surface-2: #f1efff;
  --border: rgba(45, 50, 86, 0.1);
  --border-strong: rgba(45, 50, 86, 0.2);
  --text: #1e2147;
  --text-muted: #555a82;
  --text-faint: #8d91b4;
  --accent: #2d3256;
  --on-accent: #ffffff;
  --accent-2: #ec6513;
  --band-bg: #2d3256;
  --band-text: #ffffff;
  --band-muted: rgba(255, 255, 255, 0.72);
  --band-border: rgba(255, 255, 255, 0.12);
  --footer-bg: #1c1f3f;
  --nav-bg: rgba(247, 246, 255, 0.82);
  --logo-light: block;
  --logo-dark: none;
  --partner-filter: grayscale(1) opacity(0.55);
  --shadow-rgb: 45, 50, 86;
  --glow-opacity: 0.55;
}

/* Mint: fresh, calm teal */
[data-theme="mint"] {
  color-scheme: light;
  --bg: #f6fbf9;
  --bg-alt: #e8f5f0;
  --surface: #ffffff;
  --surface-2: #eef8f4;
  --border: rgba(15, 42, 38, 0.1);
  --border-strong: rgba(15, 42, 38, 0.2);
  --text: #0f2a26;
  --text-muted: #4a645f;
  --text-faint: #83998f;
  --accent: #0b8466;
  --on-accent: #ffffff;
  --accent-2: #ec6513;
  --band-bg: #0f2a26;
  --band-text: #ffffff;
  --band-muted: rgba(255, 255, 255, 0.72);
  --band-border: rgba(255, 255, 255, 0.12);
  --footer-bg: #0a1e1b;
  --nav-bg: rgba(246, 251, 249, 0.82);
  --logo-light: block;
  --logo-dark: none;
  --partner-filter: grayscale(1) opacity(0.55);
  --shadow-rgb: 15, 42, 38;
  --glow-opacity: 0.4;
}

/* Mono: black and white, orange as the only colour */
[data-theme="mono"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --border: rgba(0, 0, 0, 0.09);
  --border-strong: rgba(0, 0, 0, 0.18);
  --text: #0b0b0c;
  --text-muted: #55565c;
  --text-faint: #8d8e94;
  --accent: #0b0b0c;
  --on-accent: #ffffff;
  --accent-2: #ec6513;
  --band-bg: #0b0b0c;
  --band-text: #ffffff;
  --band-muted: rgba(255, 255, 255, 0.7);
  --band-border: rgba(255, 255, 255, 0.12);
  --footer-bg: #000000;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --logo-light: block;
  --logo-dark: none;
  --partner-filter: grayscale(1) opacity(0.55);
  --shadow-rgb: 0, 0, 0;
  --glow-opacity: 0.3;
}

/* Ocean: deep blue dark mode, sky + amber */
[data-theme="ocean"] {
  color-scheme: dark;
  --bg: #061526;
  --bg-alt: #091c32;
  --surface: #0c2340;
  --surface-2: #11304f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8f3ff;
  --text-muted: #9db6cf;
  --text-faint: #6f8aa6;
  --accent: #38bdf8;
  --on-accent: #04121f;
  --accent-2: #fbbf24;
  --band-bg: #0c2340;
  --band-text: #ffffff;
  --band-muted: rgba(255, 255, 255, 0.7);
  --band-border: rgba(255, 255, 255, 0.1);
  --footer-bg: #030d19;
  --nav-bg: rgba(6, 21, 38, 0.78);
  --logo-light: none;
  --logo-dark: block;
  --partner-filter: brightness(0) invert(1) opacity(0.65);
  --shadow-rgb: 0, 0, 0;
  --glow-opacity: 0.4;
}

/* Graphite: neutral dark, orange accent */
[data-theme="graphite"] {
  color-scheme: dark;
  --bg: #111113;
  --bg-alt: #161618;
  --surface: #1a1a1d;
  --surface-2: #232327;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f2f3;
  --text-muted: #a1a1a8;
  --text-faint: #75757c;
  --accent: #ff7a2e;
  --on-accent: #111113;
  --accent-2: #a5a1ff;
  --band-bg: #1a1a1d;
  --band-text: #ffffff;
  --band-muted: rgba(255, 255, 255, 0.68);
  --band-border: rgba(255, 255, 255, 0.1);
  --footer-bg: #0a0a0b;
  --nav-bg: rgba(17, 17, 19, 0.78);
  --logo-light: none;
  --logo-dark: block;
  --partner-filter: brightness(0) invert(1) opacity(0.6);
  --shadow-rgb: 0, 0, 0;
  --glow-opacity: 0.35;
}

/* Forest: dark green, mint + gold */
[data-theme="forest"] {
  color-scheme: dark;
  --bg: #0c1a16;
  --bg-alt: #0f201b;
  --surface: #12261f;
  --surface-2: #183229;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ecf5f0;
  --text-muted: #9fbcae;
  --text-faint: #6f8d7f;
  --accent: #3ddc97;
  --on-accent: #06140f;
  --accent-2: #f5c451;
  --band-bg: #12261f;
  --band-text: #ffffff;
  --band-muted: rgba(255, 255, 255, 0.7);
  --band-border: rgba(255, 255, 255, 0.1);
  --footer-bg: #07110e;
  --nav-bg: rgba(12, 26, 22, 0.78);
  --logo-light: none;
  --logo-dark: block;
  --partner-filter: brightness(0) invert(1) opacity(0.6);
  --shadow-rgb: 0, 0, 0;
  --glow-opacity: 0.35;
}

/* Tokens derived from the theme (and from any custom accent set in the design panel) */
:root {
  --accent-soft: color-mix(in oklab, var(--accent) 12%, transparent);
  --accent-2-soft: color-mix(in oklab, var(--accent-2) 14%, transparent);
  --accent-hover: color-mix(in oklab, var(--accent) 86%, var(--text));
  --ring: color-mix(in oklab, var(--accent) 45%, transparent);
  --grad: linear-gradient(100deg, var(--accent) 5%, color-mix(in oklab, var(--accent) 50%, var(--accent-2)) 55%, var(--accent-2) 100%);
  --shadow-sm: 0 1px 2px rgba(var(--shadow-rgb), 0.06), 0 2px 8px -2px rgba(var(--shadow-rgb), 0.08);
  --shadow: 0 1px 2px rgba(var(--shadow-rgb), 0.05), 0 14px 36px -14px rgba(var(--shadow-rgb), 0.22);
  --shadow-lg: 0 2px 6px rgba(var(--shadow-rgb), 0.06), 0 40px 80px -30px rgba(var(--shadow-rgb), 0.35);
}

/* ==========================================================================
   Corner radius. "soft" is the default.
   ========================================================================== */
:root, [data-radius="soft"] { --r-sm: 8px; --r: 12px; --r-lg: 20px; --r-xl: 28px; --r-btn: 999px; }
[data-radius="sharp"] { --r-sm: 3px; --r: 4px; --r-lg: 6px; --r-xl: 8px; --r-btn: 4px; }
[data-radius="round"] { --r-sm: 12px; --r: 18px; --r-lg: 28px; --r-xl: 40px; --r-btn: 999px; }

/* ==========================================================================
   Font pairings. "jakarta" is the default (loaded in partials/head.html).
   Values are family names only; generic fallbacks are added where used,
   so the Arabic font (--font-arabic) can slot in for Arabic glyphs.
   ========================================================================== */
:root, [data-font="jakarta"] {
  --font-display: "Plus Jakarta Sans";
  --font-body: "Plus Jakarta Sans";
  --font-mono: "Geist Mono";
  --display-weight: 800;
  --display-tracking: -0.04em;
  --display-lh: 1.02;
  --h-weight: 750;
}
[data-font="inter"] {
  --font-display: "Inter Tight";
  --font-body: "Inter";
  --display-weight: 700;
  --display-tracking: -0.045em;
  --display-lh: 1;
  --h-weight: 700;
}
[data-font="geist"] {
  --font-display: "Geist";
  --font-body: "Geist";
  --display-weight: 700;
  --display-tracking: -0.05em;
  --display-lh: 1;
  --h-weight: 650;
}
[data-font="manrope"] {
  --font-display: "Manrope";
  --font-body: "Manrope";
  --display-weight: 800;
  --display-tracking: -0.045em;
  --display-lh: 1.02;
  --h-weight: 750;
}
[data-font="sora"] {
  --font-display: "Sora";
  --font-body: "Inter";
  --display-weight: 700;
  --display-tracking: -0.05em;
  --display-lh: 1.04;
  --h-weight: 650;
}
[data-font="outfit"] {
  --font-display: "Outfit";
  --font-body: "Outfit";
  --display-weight: 700;
  --display-tracking: -0.035em;
  --display-lh: 1.02;
  --h-weight: 650;
}
[data-font="onest"] {
  --font-display: "Onest";
  --font-body: "Onest";
  --display-weight: 750;
  --display-tracking: -0.04em;
  --display-lh: 1.02;
  --h-weight: 700;
}
[data-font="poppins"] {
  --font-display: "Poppins";
  --font-body: "Poppins";
  --display-weight: 700;
  --display-tracking: -0.035em;
  --display-lh: 1.08;
  --h-weight: 650;
}
[data-font="bricolage"] {
  --font-display: "Bricolage Grotesque";
  --font-body: "Inter";
  --display-weight: 800;
  --display-tracking: -0.045em;
  --display-lh: 0.98;
  --h-weight: 750;
}
[data-font="space"] {
  --font-display: "Space Grotesk";
  --font-body: "Inter";
  --display-weight: 700;
  --display-tracking: -0.045em;
  --display-lh: 1;
  --h-weight: 650;
}
[data-font="dmsans"] {
  --font-display: "DM Sans";
  --font-body: "DM Sans";
  --display-weight: 800;
  --display-tracking: -0.05em;
  --display-lh: 1;
  --h-weight: 700;
}
[data-font="fraunces"] {
  --font-display: "Fraunces";
  --font-body: "Inter";
  --display-weight: 650;
  --display-tracking: -0.03em;
  --display-lh: 1.02;
  --h-weight: 600;
}
[data-font="instrument"] {
  --font-display: "Instrument Serif";
  --font-body: "Geist";
  --display-weight: 400;
  --display-tracking: -0.02em;
  --display-lh: 0.98;
  --h-weight: 400;
}

/* Arabic typeface on /ar (Latin words keep the pairing above) */
:root, [data-arfont="plex"] { --font-arabic: "IBM Plex Sans Arabic"; }
[data-arfont="cairo"] { --font-arabic: "Cairo"; }
[data-arfont="tajawal"] { --font-arabic: "Tajawal"; }
[data-arfont="kufi"] { --font-arabic: "Noto Kufi Arabic"; }
[data-arfont="readex"] { --font-arabic: "Readex Pro"; }
[data-arfont="almarai"] { --font-arabic: "Almarai"; }
[data-arfont="alexandria"] { --font-arabic: "Alexandria"; }

:root {
  --ff-display: var(--font-display), var(--font-arabic), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-body: var(--font-body), var(--font-arabic), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: var(--font-mono), var(--font-arabic), ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 24px;
  --header-h: 72px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.i { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .i--flip { transform: scaleX(-1); }
.i--back { transform: scaleX(-1); }
[dir="rtl"] .i--back { transform: none; }

.sr-only {
  position: absolute; 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: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r);
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 760px); }

/* ---------- Type ---------- */
.display {
  font-family: var(--ff-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-lh);
  font-size: clamp(2.6rem, 1.3rem + 5.4vw, 5.6rem);
  text-wrap: balance;
}
.display--md { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); }
.h2 {
  font-family: var(--ff-display);
  font-weight: var(--h-weight);
  letter-spacing: calc(var(--display-tracking) * 0.75);
  line-height: 1.08;
  font-size: clamp(2rem, 1.35rem + 2.5vw, 3.25rem);
  text-wrap: balance;
}
.h3 {
  font-family: var(--ff-display);
  font-weight: var(--h-weight);
  letter-spacing: calc(var(--display-tracking) * 0.5);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  line-height: 1.2;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  /* keep descenders and italic overhangs from being clipped */
  padding-block-end: 0.08em; margin-block-end: -0.08em;
  padding-inline-end: 0.04em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px var(--accent-2-soft);
}
.eyebrow--on-dark { color: var(--band-text); opacity: 0.85; }

/* Arabic: no negative tracking, a little more leading */
:lang(ar) .display, :lang(ar) .h2, :lang(ar) .h3, :lang(ar) .card__title { letter-spacing: 0; line-height: 1.25; }
:lang(ar) .eyebrow { letter-spacing: 0; font-family: var(--ff-body); font-size: 0.9rem; text-transform: none; }
:lang(ar) body { line-height: 1.8; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.78em 1.35em;
  border-radius: var(--r-btn);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--ff-body);
  font-weight: 650; font-size: 0.97rem; line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  --btn-bg: var(--accent); --btn-fg: var(--on-accent); --btn-border: transparent;
  box-shadow: 0 8px 22px -10px color-mix(in oklab, var(--accent) 80%, transparent);
}
.btn--primary:hover { --btn-bg: var(--accent-hover); box-shadow: 0 12px 28px -10px color-mix(in oklab, var(--accent) 80%, transparent); }
.btn--ghost { --btn-bg: transparent; }
.btn--ghost:hover { --btn-bg: var(--surface-2); --btn-border: var(--border-strong); }
.btn--light { --btn-bg: #ffffff; --btn-fg: #15182f; --btn-border: transparent; }
.btn--light:hover { --btn-bg: #f0f0f6; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #ffffff; --btn-border: rgba(255, 255, 255, 0.35); }
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, 0.1); --btn-border: rgba(255, 255, 255, 0.6); }
.btn--sm { padding: 0.58em 1.05em; font-size: 0.9rem; }
.btn--lg { padding: 0.95em 1.6em; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   Announcement bar + header
   ========================================================================== */
.announce {
  background: var(--band-bg);
  color: var(--band-text);
  font-size: 0.85rem; font-weight: 500;
}
.announce__inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 6px 12px; min-height: 42px; padding-block: 6px; text-align: center;
}
.announce__logos { display: inline-flex; align-items: center; gap: 8px; }
.announce__chip {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  background: #ffffff; border-radius: 999px;
}
.announce__chip img { height: 15px; width: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(var(--shadow-rgb), 0.5); }
.site-header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.logo { height: 34px; width: auto; }
.logo--for-light { display: var(--logo-light); }
.logo--for-dark { display: var(--logo-dark); }

.nav { display: flex; align-items: center; flex: 1; gap: 24px; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav__links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 550; color: var(--text-muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__signin { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.nav__signin:hover { color: var(--accent); }

.langs {
  display: flex; padding: 3px; gap: 2px;
  border: 1px solid var(--border); border-radius: 999px;
  font-family: var(--ff-mono); font-size: 0.75rem; font-weight: 500;
}
.langs a { display: block; min-width: 32px; padding: 4px 8px; border-radius: 999px; text-align: center; color: var(--text-muted); }
.langs a:hover { color: var(--text); }
.langs a[aria-current] { background: var(--text); color: var(--bg); }
.langs a[lang="ar"] { font-family: var(--ff-body); font-size: 0.9rem; line-height: 1; }

.menu-toggle {
  display: none; margin-inline-start: auto;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  place-items: center;
}
.menu-toggle__bars { display: grid; gap: 5px; width: 18px; }
.menu-toggle__bars span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.25s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1020px) {
  .menu-toggle { display: grid; }
  .nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav__links { flex-direction: column; align-items: stretch; margin: 0; }
  .nav__links a { padding: 12px 8px; border-radius: var(--r-sm); font-size: 1.05rem; color: var(--text); }
  .nav__actions { flex-wrap: wrap; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); }
  .nav__actions .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; isolation: isolate; padding-block: clamp(56px, 8vw, 104px) 0; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: var(--glow-opacity);
}
.blob--1 { width: 620px; height: 520px; top: -220px; inset-inline-start: -160px; background: var(--accent); }
.blob--2 { width: 520px; height: 460px; top: -120px; inset-inline-end: -180px; background: var(--accent-2); opacity: calc(var(--glow-opacity) * 0.7); }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .display { max-width: 15ch; }
:lang(ar) .hero .display { max-width: 18ch; }
.hero__lead {
  margin-top: 24px; max-width: 620px;
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6;
  color: var(--text-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero__by { margin-top: 22px; font-size: 0.88rem; color: var(--text-faint); }
.hero__by a { font-weight: 650; color: var(--text-muted); border-bottom: 1px solid var(--border-strong); }
.hero__by a:hover { color: var(--accent); border-color: var(--accent); }

.hero__visual { position: relative; margin-top: clamp(40px, 6vw, 72px); max-width: 1100px; }
.hero__frame { position: relative; }
.hero__frame::before {
  content: ""; position: absolute; inset: 12% 8% 0; z-index: -1;
  background: var(--grad); filter: blur(70px); opacity: calc(var(--glow-opacity) * 0.7); border-radius: 50%;
}
.hero__frame img { width: 100%; margin-inline: auto; }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.88rem; font-weight: 600; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
[dir="rtl"] .chip { padding: 8px 8px 8px 16px; }
.chip__icon {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
}
.chip__icon .i { width: 16px; height: 16px; }
.chip__icon--ok { background: rgba(22, 163, 74, 0.14); color: #16a34a; }
.chip__icon--alt { background: var(--accent-2-soft); color: var(--accent-2); }
.chip--1 { top: 12%; inset-inline-start: 2%; }
.chip--2 { top: 4%; inset-inline-end: 6%; animation-delay: -2s; }
.chip--3 { bottom: 14%; inset-inline-end: 0; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 720px) {
  .chip { font-size: 0.75rem; padding: 5px 12px 5px 5px; gap: 7px; }
  .chip__icon { width: 24px; height: 24px; }
  .chip--1 { top: -6%; }
  .chip--2 { display: none; }
  .chip--3 { bottom: 2%; }
}

/* ==========================================================================
   Trusted by
   ========================================================================== */
.trusted { padding-block: clamp(48px, 6vw, 72px) 8px; }
.trusted__title { text-align: center; font-size: 0.95rem; color: var(--text-muted); }
.trusted__title strong { color: var(--text); font-weight: 700; }
.trusted__logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 20px clamp(28px, 5vw, 64px); margin-top: 28px;
}
.trusted__logos img {
  height: 34px; width: auto; max-width: 128px; object-fit: contain;
  filter: var(--partner-filter); transition: filter 0.3s ease;
  mix-blend-mode: multiply;
}
[data-theme="midnight"] .trusted__logos img, [data-theme="ocean"] .trusted__logos img,
[data-theme="graphite"] .trusted__logos img, [data-theme="forest"] .trusted__logos img { mix-blend-mode: screen; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding-block: clamp(72px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head__lead { margin-top: 18px; font-size: 1.12rem; color: var(--text-muted); }

/* ---------- Stats ---------- */
.stats { background: var(--bg-alt); }
.stats__inner { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.stats__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat {
  display: flex; flex-direction: column; gap: 8px;
  padding: 28px 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.stat__value {
  font-family: var(--ff-display); font-weight: var(--display-weight);
  font-size: clamp(2.6rem, 2rem + 2.4vw, 4rem); line-height: 1;
  letter-spacing: var(--display-tracking);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  direction: ltr; text-align: start;
  font-variant-numeric: tabular-nums;
}
[dir="rtl"] .stat__value { text-align: end; }
.stat__label { color: var(--text-muted); font-size: 0.95rem; }
@media (max-width: 900px) {
  .stats__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .stats__list { grid-template-columns: 1fr; }
  .stat { flex-direction: row; align-items: baseline; gap: 16px; padding: 20px; }
}

/* ---------- Feature bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--accent) 35%, var(--border)); box-shadow: var(--shadow); }
.card--triggers, .card--gps { grid-column: span 3; }
.card--small, .card--integrations { grid-column: span 2; }
.card__icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px;
  border-radius: var(--r); background: var(--accent-soft); color: var(--accent);
}
.card__icon .i { width: 22px; height: 22px; }
.card__title {
  font-family: var(--ff-display); font-weight: var(--h-weight);
  font-size: 1.22rem; line-height: 1.25; letter-spacing: calc(var(--display-tracking) * 0.35);
}
.card__text { margin-top: 8px; color: var(--text-muted); font-size: 0.98rem; }

.card--triggers {
  background:
    radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
}
.flow { margin-top: auto; padding-top: 32px; display: grid; gap: 0; justify-items: start; }
.flow__step { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow__label {
  min-width: 52px; font-family: var(--ff-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-faint);
}
:lang(ar) .flow__label { font-family: var(--ff-body); font-size: 0.85rem; letter-spacing: 0; }
.flow__pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-strong);
  font-size: 0.9rem; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.flow__pill .i { width: 16px; height: 16px; color: var(--accent); }
.flow__pill--accent { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.flow__pill--accent .i { color: currentColor; }
.flow__line {
  width: 2px; height: 26px; margin-inline-start: 82px;
  background: repeating-linear-gradient(to bottom, var(--accent) 0 4px, transparent 4px 8px);
  opacity: 0.6;
}

.card--gps { padding-bottom: 0; }
.card__media { margin: 24px -28px 0; margin-inline-start: 10%; flex: 1; display: flex; align-items: flex-end; }
.card__media img { width: 100%; filter: drop-shadow(0 18px 30px rgba(var(--shadow-rgb), 0.18)); }

.card--integrations {
  justify-content: center; gap: 20px;
  background: var(--bg-alt);
  border-style: dashed;
}
.card--integrations .card__title { font-size: 1.05rem; color: var(--text-muted); font-weight: 600; }
.integrations { display: flex; align-items: center; gap: 12px; }
.integrations__logo {
  display: grid; place-items: center; height: 56px; padding: 0 18px; flex: 1;
  border-radius: var(--r); background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.06);
}
.integrations__logo img { height: 24px; width: auto; }
.integrations__plus { color: var(--text-faint); font-weight: 600; }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--triggers, .card--gps { grid-column: span 2; }
  .card--small, .card--integrations { grid-column: span 1; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .card--triggers, .card--gps, .card--small, .card--integrations { grid-column: auto; }
  .card { padding: 22px; }
  .card__media { margin-inline: -22px; margin-inline-start: 4%; }
}

/* ---------- Dark band: benefits ---------- */
.band { background: var(--band-bg); color: var(--band-text); overflow: hidden; isolation: isolate; }
.band__glow {
  position: absolute; z-index: -1; inset: auto auto -30% -10%;
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); filter: blur(120px); opacity: 0.35;
}
[dir="rtl"] .band__glow { inset: auto -10% -30% auto; }
.band__inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.band .h2 { color: var(--band-text); }
.phone-stage { position: relative; display: grid; place-items: center; padding: 24px 0; }
.phone-stage img { position: relative; width: min(300px, 70vw); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.45)); }
.phone-stage__ring {
  position: absolute; width: min(440px, 92vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent-2) 40%, transparent), transparent 62%);
  border: 1px solid var(--band-border);
  box-shadow: 0 0 0 48px color-mix(in oklab, var(--band-text) 3%, transparent), 0 0 0 96px color-mix(in oklab, var(--band-text) 2%, transparent);
}
.benefits { margin-block: 36px 40px; display: grid; gap: 0; counter-reset: b; }
.benefits li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding-block: 22px; border-top: 1px solid var(--band-border); }
.benefits li:last-child { border-bottom: 1px solid var(--band-border); }
.benefits__num { font-family: var(--ff-mono); font-size: 0.85rem; color: var(--accent-2); padding-top: 4px; }
.benefits p { color: var(--band-muted); font-size: 1.05rem; }
@media (max-width: 900px) {
  .band__inner { grid-template-columns: 1fr; }
  .band__media { order: 2; }
}

/* ---------- Video ---------- */
.video__frame {
  position: relative; max-width: 1000px; margin-inline: auto;
  aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden;
  background: var(--band-bg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.video__frame img, .video__frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__play {
  position: absolute; inset: 0; margin: auto;
  width: 88px; height: 88px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 10px color-mix(in oklab, var(--accent) 25%, transparent), var(--shadow-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video__play .i { width: 30px; height: 30px; margin-inline-start: 4px; }
.video__frame:hover .video__play { transform: scale(1.06); box-shadow: 0 0 0 16px color-mix(in oklab, var(--accent) 22%, transparent), var(--shadow-lg); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-alt); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.quote blockquote p { font-size: 1rem; line-height: 1.65; color: var(--text); }
.quote--featured {
  grid-column: span 2; position: relative; overflow: hidden;
  background: var(--band-bg); color: var(--band-text); border-color: transparent;
}
.quote--featured::after {
  content: ""; position: absolute; inset: auto -20% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: var(--accent-2); filter: blur(100px); opacity: 0.25; pointer-events: none;
}
[dir="rtl"] .quote--featured::after { inset: auto auto -60% -20%; }
.quote--featured blockquote p { color: var(--band-text); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; font-weight: 500; }
.quote__mark { width: 40px; height: 40px; color: var(--accent-2); }
[dir="rtl"] .quote__mark { transform: scaleX(-1); }
.quote__who { display: flex; align-items: center; gap: 12px; }
.quote__who img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  background: #ffffff; border: 1px solid var(--border);
}
.quote--featured .quote__who img { width: 52px; height: 52px; border-color: transparent; }
.quote__who span { display: flex; flex-direction: column; line-height: 1.3; }
.quote__who strong { font-weight: 700; font-size: 0.98rem; }
.quote__who small { color: var(--text-faint); font-size: 0.85rem; }
@media (max-width: 980px) {
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .quote--featured { grid-column: span 2; }
}
@media (max-width: 640px) {
  .quotes { grid-template-columns: 1fr; }
  .quote--featured { grid-column: auto; }
}

/* ---------- Apps ---------- */
.apps__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1000px; margin-inline: auto; }
.app-card {
  display: flex; gap: 22px; align-items: flex-start;
  padding: 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.app-card__icon { width: 72px; height: 72px; border-radius: 18px; flex: none; box-shadow: var(--shadow); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: var(--r);
  background: var(--text); color: var(--bg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.store:hover { transform: translateY(-1px); opacity: 0.9; }
.store .i { width: 22px; height: 22px; }
.store span { display: flex; flex-direction: column; font-weight: 650; font-size: 0.95rem; line-height: 1.1; }
.store small { font-size: 0.66rem; font-weight: 500; opacity: 0.75; }
@media (max-width: 760px) {
  .apps__grid { grid-template-columns: 1fr; }
  .app-card { flex-direction: column; }
}

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card__img {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface-2); margin-bottom: 8px;
  border: 1px solid var(--border);
}
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__meta { font-family: var(--ff-mono); font-size: 0.76rem; letter-spacing: 0.03em; color: var(--text-faint); text-transform: uppercase; }
.post-card__title {
  font-family: var(--ff-display); font-weight: var(--h-weight);
  font-size: 1.2rem; line-height: 1.3; letter-spacing: calc(var(--display-tracking) * 0.3);
  transition: color 0.2s ease;
}
.post-card:hover .post-card__title { color: var(--accent); }
.post-card__excerpt { color: var(--text-muted); font-size: 0.96rem; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact__inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__list { display: grid; gap: 12px; margin-top: 32px; }
.contact__list a { display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.contact__list a:hover { color: var(--accent); }
.contact__list span { display: flex; flex-direction: column; line-height: 1.3; font-weight: 600; }
.contact__list small { font-weight: 500; font-size: 0.8rem; color: var(--text-faint); }
.contact__icon {
  display: grid !important; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: var(--r); background: var(--accent-soft); color: var(--accent);
}
[dir="rtl"] .contact__list [dir="ltr"] { text-align: right; }

.form {
  display: grid; gap: 18px;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 0.88rem; font-weight: 600; }
.field em { font-style: normal; font-weight: 500; color: var(--text-faint); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  border-radius: var(--r); border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.field.is-invalid input, .field.is-invalid select { border-color: #dc2626; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.form__status { font-size: 0.92rem; color: var(--text-muted); min-height: 1.4em; }
.form__status.is-error { color: #dc2626; }
.form__status.is-ok { color: #16a34a; }
/* Honeypot field: off-screen for people, still in the form for bots */
.form__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Turnstile bot check: invisible unless Cloudflare needs the visitor to click */
.form__turnstile:empty { display: none; }
.form [type="submit"][disabled] { opacity: 0.65; cursor: progress; }
@media (max-width: 900px) { .contact__inner { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { padding-block: 0 clamp(64px, 8vw, 104px); }
.cta-band__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(36px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: var(--band-bg); color: #ffffff;
}
.cta-band__glow {
  position: absolute; z-index: -1; inset: -40% -10% auto auto; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: var(--grad); filter: blur(90px); opacity: 0.55;
}
[dir="rtl"] .cta-band__glow { inset: -40% auto auto -10%; }
.cta-band__text p { margin-top: 10px; color: rgba(255, 255, 255, 0.75); font-size: 1.1rem; }
.cta-band__text .h2 { color: #ffffff; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, 0.72); padding-block: 72px 32px; font-size: 0.95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; }
.site-footer__brand img { height: 38px; width: auto; }
.site-footer__brand p { margin-top: 18px; max-width: 300px; }
.site-footer__title {
  margin-bottom: 16px; font-family: var(--ff-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45);
}
:lang(ar) .site-footer__title { font-family: var(--ff-body); letter-spacing: 0; font-size: 0.85rem; }
.site-footer__links { display: grid; gap: 10px; }
.site-footer__links a:hover { color: #ffffff; }
.site-footer__sub { display: block; color: #ffffff; font-weight: 600; }
.socials { display: flex; gap: 8px; margin-top: 24px; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07); color: #ffffff;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.socials a:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-2px); }
.socials .i { width: 18px; height: 18px; }
.site-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem; color: rgba(255, 255, 255, 0.5);
}
.site-footer__by strong { color: rgba(255, 255, 255, 0.85); }
.site-footer__by:hover strong { color: #ffffff; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp + cookie notice ---------- */
.wa-float {
  position: fixed; z-index: 40; bottom: 20px; right: calc(20px + var(--tp-offset, 0px));
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #ffffff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .i { width: 28px; height: 28px; }
[dir="rtl"] .wa-float { right: auto; left: 20px; }

.cookie {
  position: fixed; z-index: 45; bottom: 20px; left: 20px;
  display: flex; align-items: center; gap: 16px;
  max-width: min(460px, calc(100vw - 112px));
  padding: 14px 14px 14px 18px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  font-size: 0.85rem; color: var(--text-muted);
}
.cookie[hidden] { display: none; }
[dir="rtl"] .cookie { left: auto; right: calc(20px + var(--tp-offset, 0px)); padding: 14px 18px 14px 14px; }
@media (max-width: 560px) {
  .cookie { flex-direction: column; align-items: stretch; gap: 10px; }
}

/* ==========================================================================
   Blog
   ========================================================================== */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(56px, 8vw, 96px) clamp(16px, 3vw, 32px); }
.page-hero .hero__lead { margin-top: 18px; }
.page-hero--404 { padding-block: clamp(80px, 12vw, 160px); }
.page-hero--404 .hero__actions { justify-content: flex-start; }

.post-featured {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  margin-bottom: clamp(48px, 6vw, 72px);
  padding: 14px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.post-featured__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: calc(var(--r-xl) - 8px); }
.post-featured__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
.post-featured:hover .post-featured__img img { transform: scale(1.03); }
.post-featured__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 12px clamp(8px, 2vw, 24px) 12px 0; }
.post-featured__title {
  font-family: var(--ff-display); font-weight: var(--h-weight);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.15; letter-spacing: calc(var(--display-tracking) * 0.6);
}
.post-featured__excerpt { color: var(--text-muted); }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-2-soft); color: var(--accent-2);
  font-family: var(--ff-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
}
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--accent); }
.link-arrow .i { transition: transform 0.2s ease; }
.post-featured:hover .link-arrow .i { transform: translateX(4px); }
.post-grid--blog { gap: 44px 28px; }
@media (max-width: 860px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured__body { padding: 4px 8px 12px; }
}

/* ---------- Article ---------- */
.article { padding-top: clamp(40px, 6vw, 72px); }
.article__head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.article__back { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 600; color: var(--text-muted); }
.article__back:hover { color: var(--accent); }
.article__lead { font-size: 1.2rem; color: var(--text-muted); }
.article__hero { margin-block: clamp(32px, 5vw, 56px); max-width: 1080px; }
.article__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-xl); }

.prose { font-size: 1.1rem; line-height: 1.8; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--ff-display); font-weight: var(--h-weight);
  letter-spacing: calc(var(--display-tracking) * 0.4); line-height: 1.25;
  margin-top: 2em;
}
.prose h2 { font-size: 1.85rem; }
.prose h3 { font-size: 1.45rem; }
.prose h4 { font-size: 1.2rem; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose p { color: var(--text-muted); }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { display: grid; gap: 0.7em; padding-inline-start: 0; }
.prose ul li, .prose ol li { position: relative; padding-inline-start: 1.6em; color: var(--text-muted); }
.prose ul li::before {
  content: ""; position: absolute; inset-inline-start: 0.2em; top: 0.72em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent-2); transform: rotate(45deg);
}
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before { content: counter(li) "."; position: absolute; inset-inline-start: 0; font-weight: 700; color: var(--accent); }
.prose figure { margin-block: 2em; }
.prose figure img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--border); }
.prose blockquote { padding-inline-start: 1.2em; border-inline-start: 3px solid var(--accent); font-style: italic; }

.article__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 56px; padding: 28px; border-radius: var(--r-lg);
  background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
}
.article__cta-title { font-family: var(--ff-display); font-weight: var(--h-weight); font-size: 1.3rem; }
.article__cta p:not(.article__cta-title) { color: var(--text-muted); margin-top: 4px; }
.related { margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--border); }
.related .h3 { margin-bottom: 28px; }

/* ==========================================================================
   Motion
   ========================================================================== */
.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(.2, .7, .2, 1), transform 0.7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .chip { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .logo { height: 30px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .announce { font-size: 0.78rem; }
}
