/* ==========================================================================
   BITPRO — Design System v2
   One stylesheet for the redesigned site. Tokens first, then components.
   Light theme by default, dark theme from system setting or user toggle.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand (from the Bitpro logo navy-blue) */
  --brand: #0E56A4;
  --brand-strong: #0A447F;
  --brand-bright: #2F7BEA;
  --brand-soft: #EAF2FC;
  --accent: #0E9F74;            /* compliance / success */
  --accent-soft: #E5F6EF;
  --accent-text: #066A4B;
  --warn: #C27803;

  /* Fixed navy surfaces (same in both themes) */
  --navy: #061528;
  --navy-2: #0A2140;
  --navy-3: #10305A;
  --on-navy: #EAF0F8;
  --on-navy-2: #A3B3C9;
  --navy-border: rgba(255,255,255,.10);

  /* Neutral surfaces */
  --bg: #FFFFFF;
  --bg-soft: #F5F8FC;
  --surface: #FFFFFF;
  --surface-2: #F7F9FC;
  --text: #0B1526;
  --text-2: #3C4A5E;
  --text-3: #56667C;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --grad-text: linear-gradient(92deg, #0E56A4 0%, #2F7BEA 55%, #0E9F74 100%);
  --shadow-sm: 0 1px 2px rgba(11,21,38,.06), 0 1px 3px rgba(11,21,38,.05);
  --shadow-md: 0 4px 12px rgba(11,21,38,.06), 0 12px 32px rgba(11,21,38,.07);
  --shadow-lg: 0 24px 64px rgba(11,21,38,.14);
  --ring: 0 0 0 3px rgba(47,123,234,.35);

  /* Type & layout */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Inter', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #3B82F6; --brand-strong: #1E6AD6; --brand-bright: #6AA6FF;
    --brand-soft: rgba(59,130,246,.14); --accent: #2BC48F; --accent-soft: rgba(43,196,143,.13); --accent-text: #3DD9A4;
    --bg: #060E1A; --bg-soft: #0A1524; --surface: #0D1A2C; --surface-2: #101F35;
    --text: #EEF3FA; --text-2: #B3C0D2; --text-3: #8091A9;
    --border: #1A2A41; --border-strong: #273A56;
    --grad-text: linear-gradient(92deg, #6AA6FF 0%, #8FC1FF 45%, #3DD9A4 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-md: 0 10px 30px rgba(0,0,0,.35);
    --shadow-lg: 0 30px 70px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #3B82F6; --brand-strong: #1E6AD6; --brand-bright: #6AA6FF;
  --brand-soft: rgba(59,130,246,.14); --accent: #2BC48F; --accent-soft: rgba(43,196,143,.13); --accent-text: #3DD9A4;
  --bg: #060E1A; --bg-soft: #0A1524; --surface: #0D1A2C; --surface-2: #101F35;
  --text: #EEF3FA; --text-2: #B3C0D2; --text-3: #8091A9;
  --border: #1A2A41; --border-strong: #273A56;
  --grad-text: linear-gradient(92deg, #6AA6FF 0%, #8FC1FF 45%, #3DD9A4 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-md: 0 10px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.5);
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font); font-size: 1rem; line-height: 1.65;
  color: var(--text-2); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[dir="rtl"] body { font-family: var(--font-ar); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.15; letter-spacing: -.022em; font-weight: 800; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: 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; left: 16px; top: -60px; z-index: 300; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-soft { background: var(--bg-soft); }

/* ---------- 3. Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .02em;
  color: var(--brand); background: var(--brand-soft);
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.875rem, 3.6vw, 2.75rem); margin-top: 16px; }
.section-lead { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--text-2); margin-top: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
[dir="rtl"] .link-arrow .icon, [dir="rtl"] .btn .icon-arrow { transform: scaleX(-1); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; font-size: .9375rem; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -6px rgba(14,86,164,.55); }
.btn-primary:hover { background: var(--brand-strong); box-shadow: 0 10px 24px -8px rgba(14,86,164,.6); }
.btn-primary:hover .icon-arrow { transform: translateX(3px); }
.btn-primary .icon-arrow { transition: transform .25s var(--ease); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: #0A2140; }
.btn-light:hover { background: #EAF2FC; }
.btn-outline-light { color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .875rem; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- 5. Splash loader ---------- */
.splash { display: none; }
html.splash-on .splash {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 400;
  background: radial-gradient(ellipse at 50% 40%, #0B2A52 0%, var(--navy) 70%);
  transition: opacity .5s var(--ease), visibility .5s;
  animation: splash-failsafe .4s 2.2s forwards;
}
html.splash-done .splash { opacity: 0; visibility: hidden; }
.splash-inner { display: grid; justify-items: center; gap: 22px; }
.splash-mark { width: 64px; height: 64px; animation: splash-pop .7s var(--ease) both; }
.splash-mark .m-sq { transform-origin: 34% 69%; animation: splash-sq .6s .25s var(--ease) both; }
.splash-word { color: #fff; font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; animation: splash-up .6s .15s var(--ease) both; }
.splash-bar { width: 140px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.splash-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #2F7BEA, #3DD9A4); transform-origin: left; animation: splash-fill .9s .1s var(--ease) both; }
@keyframes splash-pop { from { transform: scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes splash-sq { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes splash-up { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes splash-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes splash-failsafe { to { opacity: 0; visibility: hidden; } }

/* ---------- 6. Announcement + header ---------- */
.topbar { background: var(--navy); color: var(--on-navy-2); font-size: .8125rem; }
.topbar .container { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; flex-wrap: wrap; padding-block: 6px; text-align: center; }
.topbar img { height: 22px; width: auto; background: #fff; border-radius: 4px; padding: 2px 5px; }
.topbar a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.header.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(11,21,38,.35); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: .9375rem; font-weight: 500; color: var(--text-2); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--text-2); border: 1px solid var(--border); background: var(--surface); transition: color .2s, border-color .2s; }
.icon-btn:hover { color: var(--brand); border-color: var(--border-strong); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}
.menu-btn { display: none; }

.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; overflow: hidden; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(6,21,40,.5); opacity: 0; transition: opacity .3s; }
.drawer-panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(360px, 88vw);
  background: var(--bg); padding: 20px; display: flex; flex-direction: column; gap: 8px;
  transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto;
}
[dir="rtl"] .drawer-panel { transform: translateX(-100%); }
.drawer.open { visibility: visible; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-nav a { display: block; padding: 14px 8px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); }
.drawer-cta { display: grid; gap: 10px; margin-top: 20px; }

@media (max-width: 1024px) {
  .nav, .header-actions .btn-download { display: none; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 520px) {
  .header-actions .btn-demo { display: none; }
}

/* ---------- 7. Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px) clamp(64px, 8vw, 112px); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.blob-1 { width: 520px; height: 520px; background: #2F7BEA; top: -180px; inset-inline-end: -120px; opacity: .22; animation: drift 18s ease-in-out infinite alternate; }
.blob-2 { width: 420px; height: 420px; background: #10B981; bottom: -200px; inset-inline-start: -140px; opacity: .14; animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-60px,40px,0) scale(1.12); } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-copy > * + * { margin-top: 22px; }
.hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.4rem); letter-spacing: -.035em; line-height: 1.05; }
.hero h1 .line2 { display: block; }
.hero-sub { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); max-width: 560px; color: var(--text-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .875rem; color: var(--text-3); padding-top: 4px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .icon { width: 16px; height: 16px; color: var(--accent); stroke-width: 2.4; }

/* hero entrance (transform-only on the heading to protect LCP) */
.rise { animation: rise .8s var(--ease) both; }
.rise-fade { animation: rise-fade .8s var(--ease) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; } .d4 { animation-delay: .35s; } .d5 { animation-delay: .5s; }
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
@keyframes rise-fade { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Product illustration: realistic desktop monitor (ERP) + POS terminal.
   Screens use container-query units, so their contents scale like a real display. */
.devices { position: relative; padding-top: 60px; perspective: 1600px; }
.hero-grid { grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: clamp(32px, 4vw, 56px); }

/* Monitor: 16:9 panel, thin bezel, slim aluminium stand */
.monitor { position: relative; margin-inline-start: 48px; animation: mock-in 1.1s .2s var(--ease) both; transform-origin: 50% 100%; }
@keyframes mock-in { from { transform: rotateX(10deg) translateY(36px) scale(.96); } to { transform: none; } }
.monitor-bezel { position: relative; padding: 1.3% 1.3% 0; border-radius: 12px 12px 8px 8px; background: #0A0D13; box-shadow: inset 0 0 0 1px #2A3140, 0 40px 80px -30px rgba(11,21,38,.55), 0 18px 36px -18px rgba(11,21,38,.35); }
.screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: var(--bg-soft); container-type: inline-size; }
.glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 36%); }
.chin { height: 20px; display: flex; align-items: center; justify-content: flex-end; padding-inline-end: 18px; }
.chin::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #3BD48F; box-shadow: 0 0 6px #3BD48F; }
.monitor-stand { display: grid; justify-items: center; }
.monitor-neck { width: 12%; aspect-ratio: 1 / 1.35; background: linear-gradient(90deg, #8E99A9, #E9EDF3 42%, #C9D0DA 58%, #8E99A9); clip-path: polygon(24% 0, 76% 0, 86% 100%, 14% 100%); }
.monitor-base { width: 36%; height: 13px; border-radius: 7px 7px 14px 14px; background: linear-gradient(#F1F4F8, #AEB8C5); box-shadow: 0 18px 26px -12px rgba(11,21,38,.5); }

/* Bitpro ERP dashboard inside the monitor (recreated from the real app; em units scale with the screen) */
.mock { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); font-size: 1.38cqw; line-height: 1.3; color: var(--text-2); background: var(--bg-soft); }
.bp-top { display: flex; align-items: center; gap: .9em; height: 3em; padding: 0 1.1em; background: #0B1A30; color: #fff; }
.bp-brand { display: inline-flex; align-items: center; gap: .45em; font-size: 1.35em; font-weight: 700; letter-spacing: -.01em; }
.bp-brand .logo-mark { width: 1.25em; height: 1.25em; }
.bp-admin { margin-inline-start: auto; display: inline-flex; align-items: center; gap: .5em; padding: .25em .8em .25em .3em; border-radius: 999px; background: rgba(255,255,255,.08); font-weight: 600; }
.bp-admin i { width: 1.6em; height: 1.6em; border-radius: 50%; display: grid; place-items: center; background: #2F7BEA; font-style: normal; font-size: .85em; }
.bp-top > .icon { width: 1.3em; height: 1.3em; color: #A3B3C9; }
.bp-body { display: grid; grid-template-columns: 10.5em minmax(0, 1fr); min-height: 0; }
.bp-side { display: flex; flex-direction: column; gap: .15em; padding: .7em .5em; background: #10213A; }
.bp-nav { display: flex; align-items: center; gap: .55em; padding: .42em .6em; border-radius: .45em; color: #DCE6F3; font-size: .92em; font-weight: 500; white-space: nowrap; }
.bp-nav .icon { width: 1.15em; height: 1.15em; flex: none; }
.bp-nav.on { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 #F5A524; }
[dir="rtl"] .bp-nav.on { box-shadow: inset -3px 0 0 #F5A524; }
.bp-nav.gap { margin-top: .5em; }
.bp-nav.out { margin-top: auto; color: #F87171; }
.bp-main { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: .65em; padding: .75em .85em; min-height: 0; min-width: 0; }
.bp-card { min-width: 0; min-height: 0; padding: .65em .8em; border-radius: .6em; border: 1px solid var(--border); background: var(--surface); }
.bp-filter { display: flex; align-items: flex-end; gap: .9em; flex-wrap: nowrap; }
.bp-filter small { display: block; font-size: .78em; color: var(--text-2); margin-bottom: .25em; white-space: nowrap; }
.bp-pills { display: flex; padding: .15em; border-radius: .45em; background: var(--surface-2); }
.bp-pills span { padding: .3em .65em; border-radius: .35em; font-size: .85em; white-space: nowrap; color: var(--text-2); }
.bp-pills span.on { background: #1677C8; color: #fff; font-weight: 600; }
.bp-select span { display: flex; justify-content: space-between; gap: 1.2em; padding: .3em .55em; border-radius: .35em; border: 1px solid var(--border-strong); font-size: .85em; white-space: nowrap; color: var(--text); }
.bp-apply { padding: .35em .9em; border-radius: .35em; background: #1677C8; color: #fff; font-size: .85em; font-weight: 600; }
.bp-filter em { margin-inline-start: auto; font-style: normal; font-size: .75em; color: var(--text-3); white-space: nowrap; align-self: flex-end; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65em; }
.kpi { position: relative; min-width: 0; padding: .65em .8em; border-radius: .6em; border: 1px solid var(--border); background: var(--surface); }
.kpi small { display: block; font-size: .78em; color: var(--text-2); padding-inline-end: 2.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi strong { display: block; margin-top: .25em; font-size: 1.55em; font-weight: 700; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi em { display: block; margin-top: .15em; font-style: normal; font-size: .74em; color: var(--text-3); white-space: nowrap; }
.kpi em b { color: var(--accent-text); font-weight: 600; }
.kpi strong.bump { animation: bump .6s var(--ease); }
@keyframes bump { 0% { color: var(--accent-text); transform: scale(1.06); } 100% { transform: none; } }
.kpi .k-ico { position: absolute; top: .55em; inset-inline-end: .6em; width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center; }
.kpi .k-ico .icon { width: 1em; height: 1em; }
.k-blue { background: rgba(22,119,200,.14); color: #1677C8; } .k-green { background: rgba(22,163,74,.14); color: #16A34A; } .k-purple { background: rgba(124,58,237,.14); color: #7C3AED; } .k-orange { background: rgba(234,88,12,.14); color: #EA580C; }
.bp-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: .65em; min-height: 0; }
.bp-card-h { display: flex; justify-content: space-between; align-items: center; gap: .5em; padding-inline-start: .5em; border-inline-start: 2px solid #1677C8; font-size: .9em; font-weight: 600; color: var(--text); white-space: nowrap; }
.bp-card-h span { font-size: .85em; font-weight: 500; padding: .1em .5em; border-radius: .3em; border: 1px solid var(--border-strong); color: var(--text-2); }
.trend { display: flex; flex-direction: column; }
.bp-big { margin-top: .4em; font-size: 1.45em; font-weight: 700; color: var(--text); }
.bp-big small { font-size: .55em; font-weight: 500; color: var(--text-3); margin-inline-start: .5em; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 4%; margin-top: .5em; padding-bottom: .2em; border-bottom: 1px solid var(--border); min-height: 0; }
.bars i { flex: 1; height: var(--h); border-radius: .2em .2em 0 0; background: linear-gradient(#1677C8, #5BB0EE); transform-origin: bottom; animation: bar-up .9s var(--ease) both; animation-delay: calc(var(--n) * 50ms + .6s); }
@keyframes bar-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.cat { display: flex; flex-direction: column; gap: .5em; }
.cat-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .2em .6em; font-size: .8em; align-items: baseline; }
.cat-row span:first-child { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-row b { color: var(--text); font-weight: 600; }
.cat-row em { font-style: normal; color: var(--text-3); }
.cat-row i { grid-column: 1 / -1; height: .35em; border-radius: 1em; background: linear-gradient(90deg, #1677C8 var(--w), var(--surface-2) var(--w)); }
.pay { display: flex; flex-direction: column; }
.donut { position: relative; width: 52%; margin: .5em auto .4em; }
.donut svg { width: 100%; height: auto; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 7; }
.donut div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: .75em; color: var(--text-3); }
.donut div b { display: block; font-size: 1.5em; color: var(--text); }
.legend { display: grid; gap: .2em; font-size: .72em; }
.legend span { display: flex; align-items: center; gap: .4em; color: var(--text); white-space: nowrap; }
.legend span::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--c); flex: none; }
.legend span em { margin-inline-start: auto; font-style: normal; color: var(--text-3); }

/* POS terminal: 15" landscape touchscreen on a dark base with printer */
.pos { position: absolute; z-index: 3; inset-inline-start: -20px; bottom: 0; width: 46%; animation: rise-fade .8s .6s var(--ease) both; }
.pos-unit { position: relative; }
.pos-screen { position: relative; z-index: 1; padding: 2.4%; border-radius: 12px; background: #0A0D13; box-shadow: inset 0 0 0 1px #2A3140, 0 30px 50px -18px rgba(11,21,38,.6); }
.pos-display { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; container-type: inline-size; }
.pos-ui { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; font-size: 3.1cqw; line-height: 1.3; color: var(--text-2); background: var(--surface); }
.pos-tiles { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: .45em; padding: .6em; background: var(--surface-2); }
.pos-tile { display: flex; flex-direction: column; justify-content: flex-end; padding: .4em .45em; border-radius: .5em; color: #fff; font-size: .8em; font-weight: 600; line-height: 1.2; overflow: hidden; }
.pos-tile small { font-size: .85em; font-weight: 500; }
.pos-tile:nth-child(1) { background: #0E56A4; } .pos-tile:nth-child(2) { background: #047857; } .pos-tile:nth-child(3) { background: #B45309; }
.pos-tile:nth-child(4) { background: #6D28D9; } .pos-tile:nth-child(5) { background: #BE185D; } .pos-tile:nth-child(6) { background: #0E7490; }
.pos-cart { display: flex; flex-direction: column; gap: .4em; min-width: 0; padding: .6em .65em; border-inline-start: 1px solid var(--border); }
.pos-head { display: flex; justify-content: space-between; align-items: center; gap: .4em; font-size: .85em; white-space: nowrap; }
.pos-head b { color: var(--text); font-weight: 700; }
.pos-head em { font-style: normal; font-weight: 600; color: var(--accent-text); display: inline-flex; align-items: center; gap: .3em; }
.pos-head em::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--accent); }
.pos-lines { display: grid; gap: .3em; flex: 1; align-content: start; min-height: 0; }
.pos-line { display: flex; justify-content: space-between; gap: .4em; padding: .28em .4em; border-radius: .35em; background: var(--surface-2); font-size: .78em; white-space: nowrap; }
.pos-line span:first-child { overflow: hidden; text-overflow: ellipsis; }
.pos-line span:last-child { color: var(--text); font-weight: 600; }
.pos-line.new { animation: row-in .5s var(--ease) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(-8px) scale(.98); background: var(--brand-soft); } to { opacity: 1; transform: none; } }
.pos-total { display: flex; justify-content: space-between; align-items: baseline; gap: .4em; padding-top: .35em; border-top: 1px dashed var(--border-strong); font-size: .78em; white-space: nowrap; }
.pos-total strong { color: var(--text); font-size: 1.4em; font-weight: 800; }
.pos-pay { padding: .45em; border-radius: .45em; text-align: center; font-size: .85em; font-weight: 700; color: #fff; background: var(--brand); transition: background-color .3s; white-space: nowrap; }
.pos-pay.is-paid { background: var(--accent); }
.pos-neck { width: 15%; aspect-ratio: 1 / .9; margin: 0 auto; background: linear-gradient(90deg, #2A3140, #4A5568 45%, #2A3140); clip-path: polygon(20% 0, 80% 0, 90% 100%, 10% 100%); }
.pos-base { width: 56%; height: 18px; margin: 0 auto; border-radius: 6px 6px 10px 10px; background: linear-gradient(#2F3747, #0E1219); box-shadow: 0 14px 22px -10px rgba(11,21,38,.55); }
.receipt { position: absolute; z-index: 0; inset-inline-end: 12%; top: 0; width: 21%; padding: 6px 6px 8px; border-radius: 3px 3px 0 0; background: #fff; color: #1F2A3C; box-shadow: 0 8px 18px -6px rgba(11,21,38,.3); display: grid; gap: 4px; justify-items: center; transform: translateY(-46%); }
.receipt b { font-size: 9px; color: #0B1526; }
.receipt span { font-size: 7px; color: #66768C; text-align: center; line-height: 1.2; }
.receipt i { display: block; width: 100%; height: 3px; border-radius: 2px; background: #E2E8F0; }
.receipt i:nth-of-type(2) { width: 70%; }
.receipt svg { width: 46%; height: auto; aspect-ratio: 1; margin-top: 2px; }
.receipt.print { animation: print 1.4s var(--ease) both; }
@keyframes print { from { transform: translateY(0); } to { transform: translateY(-46%); } }

/* Floating status cards */
.float-card {
  position: absolute; z-index: 4; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-md); padding: 12px 14px; display: flex; gap: 10px; align-items: center;
  font-size: .8125rem; animation: rise-fade .8s var(--ease) both, bob 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--text); font-size: .875rem; }
.float-card small { color: var(--text-3); }
.float-card .fc-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.fc-zatca { inset-inline-start: 0; top: -6px; animation-delay: .9s, 1.7s; }
.fc-zatca .fc-ico { background: var(--accent-soft); color: var(--accent); }
.fc-sync { inset-inline-end: -20px; top: -6px; animation-delay: 1.1s, 1.9s; }
.fc-sync .fc-ico { background: var(--brand-soft); color: var(--brand); }
.pulse { position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 12px; border: 2px solid var(--accent); opacity: 0; animation: pulse 2.6s 2s ease-out infinite; }
@keyframes pulse { 0% { opacity: .6; transform: scale(.9); } 70%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }

:root[data-theme="dark"] .monitor-neck { background: linear-gradient(90deg, #3A4558, #6B778B 45%, #4A5568 58%, #3A4558); }
:root[data-theme="dark"] .monitor-base { background: linear-gradient(#5B677B, #2C3647); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .monitor-neck { background: linear-gradient(90deg, #3A4558, #6B778B 45%, #4A5568 58%, #3A4558); }
  :root:not([data-theme="light"]) .monitor-base { background: linear-gradient(#5B677B, #2C3647); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas, .hero-meta { justify-content: center; }
  .mock-wrap { max-width: 680px; margin-inline: auto; width: 100%; }
}
@media (max-width: 640px) {
  .float-card { display: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .devices { padding-top: 48px; }
  .monitor { margin-inline-start: 32px; }
  .monitor-bezel { border-radius: 8px 8px 6px 6px; }
  .chin { height: 12px; }
  .monitor-base { height: 9px; }
  .pos { inset-inline-start: 0; width: 48%; }
  .pos-screen { border-radius: 8px; }
  .pos-base { height: 11px; }
  .receipt { padding: 4px 5px 6px; gap: 2px; }
  .receipt b { font-size: 6px; } .receipt span { font-size: 5px; } .receipt i { height: 2px; }
}

/* ---------- 8. Proof band ---------- */
.proof { border-block: 1px solid var(--border); background: var(--bg-soft); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: center; gap: 24px; padding-block: 32px; }
.stat strong { display: block; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; color: var(--text); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .875rem; color: var(--text-3); }
.proof-zatca { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.proof-zatca img { height: 30px; width: auto; }
.proof-zatca span { font-size: .8125rem; font-weight: 600; color: var(--text); line-height: 1.3; }
@media (max-width: 900px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-zatca { grid-column: 1 / -1; justify-content: center; }
}

/* ---------- 9. Cards / modules ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; transition: background-color .3s, color .3s; }
.card-ico .icon { width: 22px; height: 22px; }
a.card:hover .card-ico { background: var(--brand); color: #fff; }
.card h3 { font-size: 1.125rem; letter-spacing: -.01em; }
.card p { margin-top: 8px; font-size: .9375rem; color: var(--text-2); }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: .875rem; font-weight: 600; color: var(--brand); }
.card .more .icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }
a.card:hover .more .icon { transform: translateX(3px); }
.note { margin-top: 32px; text-align: center; color: var(--text-3); font-size: .9375rem; }

/* ---------- 10. ZATCA band ---------- */
.band-dark { background: var(--navy); color: var(--on-navy-2); position: relative; overflow: hidden; isolation: isolate; }
.band-dark::before { content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(47,123,234,.28), transparent 65%); top: -300px; inset-inline-end: -200px; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .eyebrow { background: rgba(255,255,255,.08); color: #BFD6F6; }
.band-dark .section-lead { color: var(--on-navy-2); }
.zatca-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 28px; margin-top: 36px; }
.check { display: flex; gap: 12px; }
.check .ck { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; background: rgba(43,196,143,.14); color: #3DD9A4; margin-top: 2px; }
.check .ck .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.check strong { display: block; color: #fff; font-size: .9875rem; font-weight: 600; }
.check span { font-size: .875rem; }
.zatca-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Invoice card (ZATCA section) */
.inv-stage { position: relative; max-width: 440px; width: 100%; margin: 0 auto; }
.inv-stage::before { content: ""; position: absolute; inset: 22px -16px 40px 22px; border-radius: 24px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); transform: rotate(3deg); }
.invoice { position: relative; background: #fff; color: #1F2A3C; border-radius: 22px; padding: 26px; overflow: hidden; box-shadow: 0 40px 80px -24px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06); }
.invoice::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #0E56A4, #2F7BEA, #0E9F74); }
.inv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inv-seller { display: flex; align-items: center; gap: 10px; min-width: 0; }
.inv-logo { width: 34px; height: 34px; flex: none; }
.inv-seller strong { display: block; color: #0B1526; font-size: .875rem; line-height: 1.3; }
.inv-seller small { display: block; color: #66768C; font-size: .7rem; font-variant-numeric: tabular-nums; }
.inv-status { display: grid; flex: none; }
.inv-status > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.s-pend { background: #FFF5E1; color: #A15C00; opacity: 0; }
.s-pend i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; }
.s-ok { background: #E5F6EF; color: #0E7A5A; }
.s-ok .icon { width: 13px; height: 13px; stroke-width: 3; }
.inv-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 20px 0 16px; border-bottom: 1px dashed #D8E0EA; }
.inv-title h3 { color: #0B1526; font-size: 1.3rem; letter-spacing: -.02em; }
.inv-title p { font-family: var(--font-ar); color: #66768C; font-size: .95rem; margin-top: 2px; text-align: left; }
[dir="rtl"] .inv-title p { text-align: right; }
.inv-title dl { display: grid; gap: 6px; text-align: end; margin: 0; }
.inv-title dt { font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #66768C; }
.inv-title dd { margin: 0; font-size: .78rem; font-weight: 600; color: #0B1526; font-variant-numeric: tabular-nums; }
.inv-items { width: 100%; border-collapse: collapse; font-size: .8rem; margin-top: 4px; }
.inv-items th { font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #66768C; text-align: start; padding: 12px 0 6px; }
.inv-items td { padding: 9px 0; border-bottom: 1px solid #EEF2F7; color: #1F2A3C; }
.inv-items th:nth-child(2), .inv-items td:nth-child(2) { text-align: center; width: 44px; }
.inv-items th:last-child, .inv-items td:last-child { text-align: end; font-variant-numeric: tabular-nums; font-weight: 600; }
.inv-sum { display: grid; gap: 6px; padding-top: 12px; }
.inv-sum > div { display: flex; justify-content: space-between; font-size: .82rem; color: #66768C; }
.inv-sum > div span:last-child { color: #1F2A3C; font-weight: 600; font-variant-numeric: tabular-nums; }
.inv-sum .inv-total { margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: #F3F7FC; align-items: center; }
.inv-sum .inv-total span:first-child { color: #0B1526; font-weight: 700; }
.inv-sum .inv-total span:last-child { color: #0B1526; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.inv-verify { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 12px; border: 1px solid #E2E8F0; border-radius: 14px; }
.qr-box { position: relative; width: 96px; height: 96px; flex: none; padding: 6px; background: #fff; border-radius: 8px; box-shadow: inset 0 0 0 1px #E2E8F0; overflow: hidden; }
.qr-box svg { width: 100%; height: 100%; }
.scan { position: absolute; left: 4px; right: 4px; top: 6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #2F7BEA 20%, #2F7BEA 80%, transparent); box-shadow: 0 0 10px 2px rgba(47,123,234,.45); animation: scan 2.6s ease-in-out infinite alternate; }
@keyframes scan { to { transform: translateY(82px); } }
.inv-verify-txt strong { display: block; color: #0B1526; font-size: .85rem; }
.inv-verify-txt small { display: block; color: #66768C; font-size: .72rem; line-height: 1.45; margin-top: 2px; }
.inv-verify-txt img { height: 26px; width: auto; margin-top: 8px; }
.inv-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.inv-steps li { position: relative; display: grid; justify-items: center; gap: 6px; font-size: .68rem; font-weight: 600; color: #1F2A3C; text-align: center; }
.inv-steps li + li::before, .inv-steps li + li::after { content: ""; position: absolute; top: 12px; right: 50%; width: 100%; height: 2px; background: #E2E8F0; z-index: 0; }
.inv-steps li + li::after { background: #0E9F74; transform-origin: left; }
.st-dot { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #0E9F74; border: 2px solid #0E9F74; color: #fff; }
.st-dot .icon { width: 13px; height: 13px; stroke-width: 3; }
.inv-caption { margin-top: 26px; text-align: center; font-size: .75rem; color: var(--on-navy-2); opacity: .8; }

/* Invoice animation: pending until revealed, then generate, sign, clear */
html.js .inv-stage:not(.is-in) .s-ok { opacity: 0; }
html.js .inv-stage:not(.is-in) .s-pend { opacity: 1; }
html.js .inv-stage.is-in .s-pend { animation: swap-out .3s 2s both; }
html.js .inv-stage.is-in .s-ok { animation: swap-in .4s 2s var(--ease) both; }
html.js .inv-stage:not(.is-in) .st-dot { background: #fff; border-color: #D8E0EA; color: transparent; }
html.js .inv-stage:not(.is-in) .inv-steps li + li::after { transform: scaleX(0); }
html.js .inv-stage.is-in .inv-steps li:nth-child(1) .st-dot { animation: step-on .4s .5s var(--ease) both; }
html.js .inv-stage.is-in .inv-steps li:nth-child(2)::after { animation: line-fill .45s .8s var(--ease) both; }
html.js .inv-stage.is-in .inv-steps li:nth-child(2) .st-dot { animation: step-on .4s 1.2s var(--ease) both; }
html.js .inv-stage.is-in .inv-steps li:nth-child(3)::after { animation: line-fill .45s 1.5s var(--ease) both; }
html.js .inv-stage.is-in .inv-steps li:nth-child(3) .st-dot { animation: step-on .4s 1.9s var(--ease) both; }
@keyframes step-on { from { background: #fff; border-color: #D8E0EA; color: transparent; transform: scale(.85); } 60% { transform: scale(1.12); } to { transform: none; } }
@keyframes line-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes swap-out { to { opacity: 0; transform: scale(.9); } }
@keyframes swap-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  .invoice { padding: 20px; }
  .inv-title { flex-direction: column; align-items: flex-start; }
  .inv-title dl { text-align: start; grid-auto-flow: column; gap: 20px; }
  .qr-box { width: 84px; height: 84px; }
  .scan { animation-name: scan-sm; }
}
@keyframes scan-sm { to { transform: translateY(70px); } }
@media (max-width: 900px) { .zatca-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }

/* ---------- 11. Industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ind {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
  font-weight: 600; color: var(--text); font-size: .9375rem; line-height: 1.3;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.ind .icon { width: 22px; height: 22px; color: var(--brand); }
.ind:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
@media (max-width: 1024px) { .ind-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 12. Comparison ---------- */
.compare-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 520px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: start; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); background: var(--surface-2); font-weight: 600; }
.cmp thead th.us { color: var(--brand); }
.cmp td:first-child { color: var(--text); font-weight: 600; }
.cmp td.us { background: color-mix(in srgb, var(--brand-soft) 60%, transparent); color: var(--text); font-weight: 600; }
.cmp .yes, .cmp .part { display: inline-flex; align-items: center; gap: 6px; }
.cmp .yes .icon { color: var(--accent); width: 17px; height: 17px; stroke-width: 2.6; }
.cmp .part { color: var(--text-3); font-weight: 500; }
@media (max-width: 640px) {
  .table-scroll { overflow: visible; border: 0; background: none; border-radius: 0; }
  .cmp { min-width: 0; display: block; }
  .cmp thead { display: none; }
  .cmp tbody { display: grid; gap: 12px; }
  .cmp tr { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
  .cmp td { display: block; border: 0; padding: 12px 14px; font-size: .875rem; }
  .cmp td:first-child { grid-column: 1 / -1; padding: 14px 14px 10px; font-size: .95rem; border-bottom: 1px solid var(--border); }
  .cmp td[data-label]::before { content: attr(data-label); display: block; font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 4px; }
  .cmp td.us[data-label]::before { color: var(--brand); }
}
.reasons { display: grid; gap: 14px; }
.reason { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.reason .card-ico { margin: 0; flex: none; width: 42px; height: 42px; }
.reason h3 { font-size: 1rem; }
.reason p { font-size: .9rem; margin-top: 4px; }
@media (max-width: 960px) { .compare-wrap { grid-template-columns: 1fr; } }

/* ---------- 13. Testimonials ---------- */
.quote { display: flex; flex-direction: column; }
.stars { display: flex; gap: 2px; color: #F5A524; margin-bottom: 14px; }
.stars .icon { width: 16px; height: 16px; }
.quote blockquote { color: var(--text); font-size: 1rem; line-height: 1.65; flex: 1; }
.who { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8125rem; color: #fff; background: linear-gradient(135deg, #0E56A4, #2F7BEA); flex: none; }
.who strong { display: block; color: var(--text); font-size: .9375rem; }
.who span { font-size: .8125rem; color: var(--text-3); }

/* ---------- 14. FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; color: var(--text); font-size: 1.03rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { flex: 1; min-width: 0; }
.faq summary .plus { width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; transition: transform .3s var(--ease); }
.faq summary .plus .icon { width: 16px; height: 16px; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .ans { padding: 0 22px 20px; color: var(--text-2); }

/* ---------- 15. Demo / form ---------- */
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.demo-list { display: grid; gap: 14px; margin-top: 28px; }
.demo-list li { display: flex; gap: 12px; color: var(--text); }
.demo-list .ck { width: 24px; height: 24px; flex: none; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.demo-list .ck .icon { width: 14px; height: 14px; stroke-width: 2.8; }
.contact-box { margin-top: 32px; padding: 20px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); display: grid; gap: 10px; }
.contact-box a, .contact-box p { display: flex; align-items: center; gap: 10px; font-size: .9375rem; color: var(--text); font-weight: 500; }
.contact-box .icon { width: 18px; height: 18px; color: var(--brand); }
.contact-box a:hover { color: var(--brand); }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); }
.form-card h3 { font-size: 1.375rem; }
.form-card > p { font-size: .9375rem; margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8125rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--text);
  transition: border-color .2s, box-shadow .2s; font-size: 1rem;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-bright); box-shadow: var(--ring); }
.hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; opacity: 0; }
.form-submit { margin-top: 20px; }
.form-legal { margin-top: 12px; font-size: .8125rem; color: var(--text-3); text-align: center; }
.form-legal .icon { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-inline-end: 4px; }
.form-legal a { text-decoration: underline; text-underline-offset: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- 16. Footer ---------- */
.footer { background: var(--navy); color: var(--on-navy-2); padding-top: 56px; font-size: .9375rem; position: relative; overflow: hidden; isolation: isolate; }
.footer::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 500px; left: 50%; top: -260px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(47,123,234,.22), transparent 65%); }
.footer-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding: clamp(28px, 4vw, 44px); margin-bottom: 64px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, #0E56A4 0%, #10305A 60%, #0B2545 100%);
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.footer-cta h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.footer-cta p { margin-top: 8px; color: #C9D8EC; max-width: 560px; }
.footer-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--navy-border); background: rgba(255,255,255,.04); color: var(--on-navy); transition: background-color .2s, border-color .2s, transform .2s var(--ease); }
.footer-social a:hover { background: #2F7BEA; border-color: #2F7BEA; color: #fff; transform: translateY(-2px); }
.footer-social .icon { width: 18px; height: 18px; }
.footer-zatca { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 14px 10px 10px; border-radius: 12px; border: 1px solid var(--navy-border); background: rgba(255,255,255,.04); }
.footer-zatca img { height: 32px; width: auto; background: #fff; border-radius: 6px; padding: 3px 6px; }
.footer-zatca span { font-size: .75rem; line-height: 1.35; }
.footer-zatca strong { display: block; color: #fff; font-size: .8125rem; }
.footer a { transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { margin-top: 16px; max-width: 320px; font-size: .9rem; }
.footer h3 { color: #fff; font-size: .8125rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 16px; font-weight: 700; }
.footer li + li { margin-top: 10px; }
.footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 16px; height: 16px; margin-top: 4px; color: #6AA6FF; }
.footer-bottom { margin-top: 56px; padding-block: 24px; border-top: 1px solid var(--navy-border); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: .8125rem; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-badges { display: flex; align-items: center; gap: 10px; }
.footer-badges img { height: 22px; width: auto; background: #fff; border-radius: 4px; padding: 2px 4px; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 17. Floating WhatsApp ---------- */
.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 90; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 10px 26px -6px rgba(37,211,102,.6);
  transition: transform .25s var(--ease); animation: rise-fade .6s 1.4s var(--ease) both;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float .icon { width: 26px; height: 26px; }

/* ---------- 18. Scroll reveal ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .75s var(--ease), transform .75s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 17b. Inner pages ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(48px, 7vw, 96px) clamp(44px, 6vw, 80px); text-align: center; }
.page-hero .container { max-width: 920px; }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; font-size: .8125rem; color: var(--text-3); margin-bottom: 18px; }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-hidden] { opacity: .6; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -.03em; line-height: 1.08; margin-top: 16px; }
.page-hero .lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--text-2); max-width: 680px; margin: 20px auto 0; }
.page-hero .hero-ctas { justify-content: center; margin-top: 28px; }
.page-hero .hero-meta { justify-content: center; margin-top: 18px; }
[dir="rtl"] .page-hero h1 { letter-spacing: 0; line-height: 1.35; }

.subnav { position: sticky; top: var(--header-h); z-index: 60; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block: 1px solid var(--border); }
.subnav .container { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 7px 14px; border-radius: 999px; font-size: .875rem; font-weight: 600; color: var(--text-2); border: 1px solid var(--border); background: var(--surface); white-space: nowrap; transition: color .2s, border-color .2s, background-color .2s; }
.subnav a:hover, .subnav a.on { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }

.fblock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--border); scroll-margin-top: 36px; }
.fblock:first-child { border-top: 0; }
.fblock h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); margin-top: 14px; }
.fblock p { margin-top: 14px; }
.fblock .more { margin-top: 22px; }
.panel { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel h3 { font-size: 1rem; margin-bottom: 16px; }
.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; color: var(--text); line-height: 1.5; }
.checklist .ck { width: 24px; height: 24px; flex: none; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-top: 1px; }
.checklist .ck .icon { width: 14px; height: 14px; stroke-width: 2.8; }
.checklist.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
@media (max-width: 900px) { .fblock { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .checklist.two { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; }
.steps li { position: relative; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.steps h3 { font-size: 1.0625rem; margin-top: 16px; }
.steps p { margin-top: 8px; font-size: .9375rem; }
.step-n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-bright)); box-shadow: 0 8px 18px -8px rgba(14,86,164,.6); }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.callout { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--border)); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); }
.callout .icon { width: 22px; height: 22px; color: var(--warn); flex: none; margin-top: 2px; }
.callout strong { display: block; color: var(--text); }
.callout p { margin-top: 4px; font-size: .9375rem; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags span { padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); }

.timeline { list-style: none; position: relative; display: grid; gap: 18px; max-width: 760px; margin-inline: auto; padding-inline-start: 28px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--accent)); opacity: .35; border-radius: 2px; }
.timeline li { position: relative; padding: 16px 20px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -27px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.timeline b { display: inline-block; font-size: .8125rem; font-weight: 800; color: var(--brand); background: var(--brand-soft); padding: 2px 10px; border-radius: 999px; margin-bottom: 6px; }
.timeline p { color: var(--text); }

.prose { max-width: 760px; margin-inline: auto; }
.prose .updated { color: var(--text-3); font-size: .9375rem; }
.prose h2 { font-size: 1.375rem; margin-top: 40px; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose p, .prose ul { margin-top: 12px; }
.prose ul { list-style: disc; padding-inline-start: 1.3em; display: grid; gap: 8px; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose .note { text-align: start; margin-top: 28px; padding: 14px 18px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); font-size: .9rem; }

.video-lite { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #0A0D13 center / cover no-repeat; box-shadow: var(--shadow-lg); cursor: pointer; }
.video-lite::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(6,21,40,.55)); }
.video-lite .play { position: absolute; z-index: 1; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: #0E56A4; box-shadow: 0 12px 30px rgba(0,0,0,.35); transition: transform .25s var(--ease); }
.video-lite:hover .play { transform: scale(1.08); }
.video-lite .play .icon { width: 30px; height: 30px; margin-inline-start: 4px; }
.video-lite span.cap { position: absolute; z-index: 1; inset-inline-start: 20px; bottom: 16px; color: #fff; font-weight: 600; }
.video-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.dl-card { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; max-width: 760px; margin: 32px auto 0; padding: 20px 24px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-md); text-align: start; }
.dl-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-bright)); }
.dl-ico .icon { width: 26px; height: 26px; }
.dl-card strong { display: block; color: var(--text); font-size: 1.0625rem; }
.dl-card small { color: var(--text-3); }
@media (max-width: 640px) { .dl-card { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

.disclaimer { max-width: 820px; margin: 28px auto 0; font-size: .8125rem; color: var(--text-3); text-align: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin-inline: auto; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.cmp-wide { min-width: 640px; }
@media (max-width: 640px) { .cmp.cmp-wide { min-width: 0; } }
.cmp-wide td.them { color: var(--text-2); }
.pill-soft { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- 17c. Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.post-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--brand-soft); }
.post-thumb-empty { background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft)); }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.1875rem; letter-spacing: -.015em; line-height: 1.35; margin-top: 8px; }
.post-card:hover h3 { color: var(--brand); }
.post-body p { margin-top: 10px; font-size: .9375rem; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: .8125rem; color: var(--text-3); }
.empty-state { text-align: center; padding: 56px 24px; color: var(--text-3); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface); }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--r-md); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.article-head { max-width: 860px; text-align: center; padding-block: clamp(40px, 6vw, 72px) 28px; }
.article-head h1 { font-size: clamp(1.875rem, 4.2vw, 3rem); letter-spacing: -.03em; line-height: 1.12; }
.article-lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--text-2); max-width: 720px; margin: 18px auto 0; }
.article-head .post-meta { margin-top: 18px; }
.article-body-wrap { max-width: 800px; padding-bottom: clamp(48px, 7vw, 88px); }
.article-cover { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); margin-bottom: 36px; background: var(--surface-2); }
.article-body { font-size: 1.125rem; line-height: 1.85; color: var(--text-2); overflow-wrap: anywhere; }
.article-body h1, .article-body h2, .article-body h3 { color: var(--text); margin: 2.2rem 0 .8rem; letter-spacing: -.02em; }
.article-body h2 { font-size: 1.625rem; } .article-body h3 { font-size: 1.3rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--r-md); margin: 1.5rem 0; border: 1px solid var(--border); }
.article-body ul, .article-body ol { padding-inline-start: 1.5rem; margin-bottom: 1.25rem; list-style: revert; }
.article-body li { margin-bottom: .45rem; }
.article-body a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { border-inline-start: 3px solid var(--brand); padding-inline-start: 1.1rem; color: var(--text-3); margin: 1.5rem 0; font-style: italic; }
.article-body pre, .article-body code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: .12rem .4rem; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .9em; color: var(--text); }
.article-body pre { padding: 1rem; overflow-x: auto; margin-bottom: 1.25rem; }
.article-body pre code { border: 0; padding: 0; background: none; }
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; font-size: .95rem; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: start; }
.article-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-md); }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-top: 48px; padding: clamp(22px, 4vw, 32px); border-radius: var(--r-lg); background: linear-gradient(135deg, #0E56A4 0%, #10305A 70%); color: #fff; }
.article-cta h2 { color: #fff; font-size: 1.375rem; }
.article-cta p { color: #C9D8EC; margin-top: 6px; max-width: 460px; }
.article-cta .btn-primary { background: #fff; color: #0A2140; box-shadow: none; }
.article-cta .btn-primary:hover { background: #EAF2FC; }

/* ---------- 18b. Arabic / right-to-left ---------- */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.4; font-weight: 700; }
[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.3; font-size: clamp(2.1rem, 4.4vw, 3.25rem); }
[dir="rtl"] .eyebrow, [dir="rtl"] .footer h3, [dir="rtl"] .cmp thead th { letter-spacing: 0; }
[dir="rtl"] body { line-height: 1.8; }
[dir="rtl"] .section-lead, [dir="rtl"] .hero-sub { line-height: 1.85; }
/* Arrows point the reading direction */
[dir="rtl"] .card .more .icon, [dir="rtl"] .topbar .icon { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover .icon, [dir="rtl"] a.card:hover .more .icon, [dir="rtl"] .btn-primary:hover .icon-arrow { transform: scaleX(-1) translateX(3px); }
/* Invoice progress line runs right-to-left */
[dir="rtl"] .inv-steps li + li::before, [dir="rtl"] .inv-steps li + li::after { right: auto; left: 50%; }
[dir="rtl"] .inv-steps li + li::after { transform-origin: right; }
/* Keep Latin codes, numbers and phone numbers readable inside Arabic text */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
/* Language switch */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .875rem; font-weight: 600; transition: color .2s, border-color .2s; }
.lang-switch:hover { color: var(--brand); border-color: var(--border-strong); }
.lang-switch .icon { width: 16px; height: 16px; }
.lang-switch[lang="ar"] { font-family: 'Segoe UI', Tahoma, 'Geeza Pro', sans-serif; font-size: .95rem; }
@media (max-width: 400px) { .lang-switch span { display: none; } .lang-switch { padding: 0; width: 40px; justify-content: center; } }
/* "View in Arabic?" suggestion bar */
.lang-suggest { position: fixed; z-index: 120; inset-inline: 16px; bottom: 16px; max-width: 460px; margin-inline: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-family: var(--font-ar); color: var(--text); animation: rise-fade .5s var(--ease) both; }
.lang-suggest p { flex: 1 1 180px; font-weight: 600; }
.lang-suggest .btn { min-height: 38px; padding: 0 14px; font-size: .9rem; }

/* ---------- 19. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .chart .line { stroke-dashoffset: 0; }
}

/* ---------- 20. Print ---------- */
@media print {
  .topbar, .header, .wa-float, .splash, .hero-bg, .drawer { display: none !important; }
  body { color: #000; background: #fff; }
}
