/* =========================================================
   Dr. Ramy Abdelrahman — landing page
   Layout language modelled on the Makro Framer template.
   All directional styles use logical properties so the page
   mirrors cleanly between Arabic (RTL) and English (LTR).
   ========================================================= */

:root {
  --ink: #182b52;
  --ink-2: #3a4a6b;
  --muted: #6c7894;
  --muted-2: #9ea8bd;
  --bg: #ebeff5;
  --bg-2: #f4f6fa;
  --white: #fff;
  --line: #e3e6ee;
  --dark: #1d3563;
  --dark-2: #162a50;
  --dark-3: #2b4677;
  --lime: #3d68b4; /* accent: poster blue (was lime) */
  --lime-ink: #fff;
  --olive: #3d68b4;
  --brand-blue: #597aa8;
  --brand-blue-soft: #dfe8f3;
  --radius: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --nav-h: 72px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter: 24px;
  --maxw: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, monospace;
  --track-xl: -0.055em;
  --track-l: -0.04em;
  --track-m: -0.025em;
}
[lang="ar"] {
  /* Letter-spacing breaks Arabic joining — keep it at 0. */
  --track-xl: 0;
  --track-l: 0;
  --track-m: 0;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + var(--safe-t) + 16px);
  overflow-x: hidden;
}
@supports (overflow: clip) { html { overflow-x: clip; } }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
/* Lenis (desktop smooth wheel) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
[lang="ar"] body { font-family: var(--font-ar); }
html.pending-en body { opacity: 0; animation: reveal-anyway 0s 1.5s forwards; }
@keyframes reveal-anyway { to { opacity: 1; } }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
mark { background: none; color: inherit; }
:focus-visible { outline: 2px solid #6f9be8; outline-offset: 3px; border-radius: 8px; }

.ic {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
[dir="rtl"] .flip { transform: scaleX(-1); }

.skip {
  position: fixed; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px;
}
.skip:focus { top: calc(16px + var(--safe-t)); }

.container {
  width: min(var(--maxw), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.container--narrow { width: min(900px, 100% - var(--gutter) * 2); }
.center { display: flex; justify-content: center; }
.muted { color: var(--muted); }

/* ---------- chips / buttons ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 16px 4px 4px;
  padding-inline: 4px 16px;
  border-radius: 999px;
  background: #fff;
  font-size: 16px; line-height: 1;
  white-space: nowrap;
  letter-spacing: var(--track-m);
}
.chip__ic {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); font-size: 16px;
}
.chip > span:last-child { padding-block: 6px; }
.chip--soft { background: var(--bg); }
.chip--soft .chip__ic { background: #fff; }
.chip--white { background: #fff; }
.chip--dark { background: rgba(255, 255, 255, .12); color: #fff; }
.chip--dark .chip__ic { background: #fff; color: var(--ink); }
.chip--glass { background: rgba(255, 255, 255, .22); color: #fff; }
.chip--glass .chip__ic { background: #fff; color: var(--ink); }
.chip--light { background: #eef1f6; }
.chip--light .chip__ic { background: #fff; }

.sq-ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; flex: none;
  background: var(--lime); color: var(--lime-ink); font-size: 22px;
}
.sq-ic--lg { width: 60px; height: 60px; border-radius: 14px; font-size: 28px; }
.sq-ic--sm { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }

.btn {
  --h: 56px;
  display: inline-flex; align-items: center; gap: 16px;
  height: var(--h);
  padding: 4px; padding-inline-end: 28px;
  border-radius: 18px;
  font-weight: 500; font-size: 17px;
  letter-spacing: var(--track-m);
  white-space: nowrap;
  transition: transform .4s var(--ease), background-color .3s, box-shadow .3s;
  -webkit-user-select: none; user-select: none;
}
.btn__ic {
  height: 100%; aspect-ratio: 1; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--lime); color: var(--lime-ink); font-size: 22px;
  transition: transform .4s var(--ease);
}
.btn:hover .btn__ic { transform: translateX(3px); }
[dir="rtl"] .btn:hover .btn__ic { transform: translateX(-3px); }
.btn:active { transform: scale(.97); }
.btn--lg { --h: 80px; border-radius: 22px; font-size: 21px; padding: 6px; padding-inline-end: 34px; gap: 22px; }
.btn--lg .btn__ic { border-radius: 17px; font-size: 26px; }
.btn--dark { background: var(--dark); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.2); }
.btn--dark:hover { background: #152a50; }
.btn--lime { background: var(--lime); color: #fff; }
.btn--lime .btn__ic { background: #fff; color: var(--lime); }
.btn--ghost { background: var(--bg); color: var(--ink); justify-content: center; padding-inline: 28px; }
.btn--ghost:hover { background: #e2e7ef; }
.btn--block { width: 100%; justify-content: flex-start; }
.btn--block.btn--ghost { justify-content: center; }
.btn--block > span:last-child { flex: 1; text-align: center; margin-inline-end: calc(var(--h) - 28px); }
.btn--ghost.btn--block > span:last-child { margin: 0; }

.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding-inline: 12px;
  border-radius: 12px; font-size: 15px; font-weight: 500;
  background: var(--bg);
  transition: background-color .3s;
}
.lang-btn .ic { font-size: 18px; }
.lang-btn:hover { background: #e0e5ee; }
.lang-btn--lg { height: 56px; padding-inline: 20px; border-radius: 16px; font-size: 17px; background: #fff; }

/* ---------- reveal & split ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.w { display: inline-block; }
.js [data-split] .w {
  opacity: 0;
  transform: translate3d(0, .45em, 0);
  transition: opacity .8s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--wi) * 55ms + var(--d, 0s));
}
.js [data-split].in .w { opacity: 1; transform: none; }
.line { display: block; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 60;
  padding-top: var(--safe-t);
  pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  width: min(var(--maxw), 100% - var(--gutter) * 2);
  margin: 8px auto 0;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding-inline: 12px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0);
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease), color .45s, margin .45s var(--ease);
}
.nav.is-scrolled .nav__bar { background: #fff; box-shadow: 0 1px 2px rgba(20, 20, 45, .04), 0 8px 24px rgba(20, 20, 45, .06); }
.nav.is-dark .nav__bar { background: rgba(29, 53, 99, .92); color: #fff; box-shadow: none; }
.nav__logo { color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; transition: color .3s; }
.brand__mark { display: grid; place-items: center; flex: none; }
.nav__logo svg { width: 42px; height: 28px; }
.brand__name { display: none; flex-direction: column; line-height: 1.05; letter-spacing: var(--track-m); }
.brand__name b { font-size: 15px; font-weight: 600; }
.brand__name small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
[lang="ar"] .brand__name small { letter-spacing: 0; }
.nav.is-dark .nav__logo { color: #fff; }
.nav.is-dark .brand__name small { color: rgba(255,255,255,.56); }
.nav__links { display: none; gap: 40px; font-size: 16px; letter-spacing: var(--track-m); }
.nav__links a { color: var(--ink-2); transition: color .25s; position: relative; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav.is-dark .nav__links a { color: rgba(255,255,255,.62); }
.nav.is-dark .nav__links a:hover, .nav.is-dark .nav__links a.is-active { color: #fff; }
.nav__end { display: flex; align-items: center; gap: 8px; }
.nav__cta {
  display: none; align-items: center; gap: 14px;
  height: 44px; padding: 4px; padding-inline-end: 16px;
  border-radius: 14px;
  font-size: 16px; font-weight: 500; letter-spacing: var(--track-m);
  transition: background-color .3s;
}
.nav__cta-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); font-size: 18px; transition: background-color .3s, color .3s; }
.nav__cta:hover .nav__cta-ic { background: var(--lime); color: #fff; }
.nav.is-dark .nav__cta { background: rgba(255,255,255,.1); }
.nav.is-dark .nav__cta-ic { background: #fff; color: var(--ink); }
.nav.is-dark .lang-btn { background: rgba(255,255,255,.1); }
.nav__burger { width: 44px; height: 44px; display: grid; place-items: center; font-size: 26px; border-radius: 12px; }
.nav.is-dark .nav__burger { color: #fff; }

.mnav {
  position: fixed; inset: 0; z-index: 55;
  background: var(--bg);
  padding: calc(var(--nav-h) + var(--safe-t) + 24px) var(--gutter) calc(24px + var(--safe-b));
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s .4s;
}
.mnav[hidden] { display: flex; }
.mnav.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.mnav__links { display: flex; flex-direction: column; gap: 6px; }
.mnav__links a {
  font-size: 36px; font-weight: 500; letter-spacing: var(--track-l);
  padding-block: 6px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.mnav.is-open .mnav__links a { opacity: 1; transform: none; }
.mnav.is-open .mnav__links a:nth-child(2) { transition-delay: .04s; }
.mnav.is-open .mnav__links a:nth-child(3) { transition-delay: .08s; }
.mnav.is-open .mnav__links a:nth-child(4) { transition-delay: .12s; }
.mnav.is-open .mnav__links a:nth-child(5) { transition-delay: .16s; }
.mnav.is-open .mnav__links a:nth-child(6) { transition-delay: .2s; }
.mnav__foot { display: grid; gap: 12px; }
html.menu-open { overflow: hidden; }
html.menu-open .nav__bar { background: transparent; box-shadow: none; }

@media (min-width: 1024px) {
  .nav__bar { height: 64px; margin-top: 8px; padding-inline: 16px 10px; border-radius: 22px; }
  .brand__name { display: flex; }
  .nav:not(.is-scrolled) .nav__bar { margin-top: 20px; }
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger, .mnav { display: none !important; }
}
@media (min-width: 700px) and (max-width: 1023px) { .nav__cta { display: inline-flex; } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--safe-t) + 24px);
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 62%, #fff 100%);
}
.hero__grid { position: relative; z-index: 3; }
.hero__copy {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 22px;
  padding-top: 24px;
}
.hero__title {
  font-size: clamp(42px, 11.4vw, 108px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: var(--track-xl);
  text-wrap: balance;
}
[lang="ar"] .hero__title { line-height: 1.3; font-size: clamp(40px, 10.6vw, 100px); }
.hero__sub { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: var(--ink-2); letter-spacing: var(--track-m); }
.hero__actions { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 12px; }
.hero__promise { display: flex; align-items: center; gap: 13px; max-width: 430px; margin-top: 2px; color: var(--ink-2); text-align: start; }
.hero__promise-line { width: 34px; height: 1px; flex: none; background: var(--brand-blue); }
.hero__promise p { display: flex; flex-direction: column; font-size: 12px; line-height: 1.45; }
.hero__promise strong { color: var(--ink); font-size: 13px; font-weight: 600; }
.hero__signature { color: var(--brand-blue); font-family: "Segoe Script", "Bradley Hand", cursive; font-size: 25px; line-height: 1; transform: rotate(-7deg); }
[dir="rtl"] .hero__signature { transform: rotate(7deg); }
.trust { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.avatars { display: flex; }
.avatars img {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--bg);
  margin-inline-start: -8px;
}
.avatars img:first-child { margin-inline-start: 0; }
.trust__txt { color: var(--muted); font-size: 15px; letter-spacing: var(--track-m); }

.hero__visual { position: relative; margin-top: 28px; margin-inline: calc(var(--gutter) * -1); }
/* The cutout is square and its right edge crops through his arm, so show the
   whole image (no cover-cropping) and fade that edge plus the bottom. */
.hero__photo {
  position: relative; z-index: 1;
  width: min(440px, 88%);
  margin-inline: auto;
  aspect-ratio: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 99%), linear-gradient(to left, transparent 0, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 70%, transparent 99%), linear-gradient(to left, transparent 0, #000 16%);
  mask-composite: intersect;
  will-change: opacity, transform;
}
.hero__photo img, .hero__photo picture { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.hero__visual .stat--float { display: none; }

@media (min-width: 1024px) {
  .hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: min(820px, calc(100svh - var(--nav-h) - 24px)); }
  .hero__copy { align-items: flex-start; text-align: start; padding-top: 0; padding-bottom: 60px; gap: 28px; }
  .hero__promise { margin-top: -6px; }
  .hero__title { font-size: clamp(60px, 6.5vw, 96px); white-space: nowrap; }
  [lang="ar"] .hero__title { font-size: clamp(58px, 6.6vw, 96px); }
  .hero__actions { flex-direction: row; gap: 24px; margin-top: 28px; }
  .trust { align-items: flex-start; }
  .hero__visual { position: absolute; inset-block: calc((var(--nav-h) + 24px) * -1) 0; inset-inline-end: min(0px, (100% - 100vw) / 2); width: 60%; margin: 0; pointer-events: none; }
  /* Smaller portrait, anchored to the bottom of the hero and centred in its column. */
  .hero__photo { position: absolute; inset: auto 0 0; margin-inline: auto; width: min(600px, 40vw); aspect-ratio: 1; }
  .hero__visual .stat--float {
    display: flex;
    position: absolute; z-index: 5;
    width: 270px;
    transform-origin: 0 0;
    will-change: transform;
  }
  /* Shadow on its own layer so it can fade (opacity) as the card lands. */
  .fly-shadow { position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 30px 60px -20px rgba(40, 45, 70, .25); pointer-events: none; z-index: -1; will-change: opacity; }
  .stat--float[data-fly="c1"] { inset-inline-end: 10%; bottom: 13%; transform: perspective(1000px) rotateX(10deg) rotateY(-16deg) rotate(8deg); }
  .stat--float[data-fly="c2"] { inset-inline-start: 12%; bottom: -3%; transform: perspective(1000px) rotateX(12deg) rotateY(14deg) rotate(-7deg); }
  .has-flight .dash [data-slot] { opacity: 0; transition: none; }
  .has-flight .dash [data-slot].landed { opacity: 1; }
}

/* =========================================================
   STAT / CARD primitives (used in dashboards and visuals)
   ========================================================= */
.stat, .card {
  background: #fff;
  border-radius: 16px;
  padding: 26px 28px;
}
.stat {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 230px;
  gap: 16px;
}
.stat__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.stat__t { font-size: 20px; font-weight: 500; letter-spacing: var(--track-m); color: var(--ink-2); line-height: 1.3; }
.stat__s { font-size: 15px; color: var(--muted); margin-top: 4px; }
.delta {
  font-size: 14px; font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
  background: #f0f2f6; color: var(--olive);
  white-space: nowrap; direction: ltr; unicode-bidi: isolate;
}
.delta--dark { background: var(--ink); color: #fff; }
.stat__foot { display: flex; align-items: flex-end; justify-content: space-between; }
.stat__num { font-size: 52px; line-height: 1; letter-spacing: var(--track-l); font-weight: 400; }
.stat__num i { font-style: normal; color: var(--muted-2); font-weight: 300; margin-inline-start: 4px; font-size: .78em; }
.tri { width: 0; height: 0; border-inline: 8px solid transparent; border-bottom: 10px solid var(--olive); margin-bottom: 8px; }
.tri--down { transform: rotate(180deg); }
.days { display: flex; gap: 8px; }
.days span { display: grid; justify-items: center; gap: 2px; padding: 10px 14px; border-radius: 10px; color: var(--muted); font-size: 14px; }
.days b { font-weight: 500; color: var(--ink-2); font-size: 16px; }
.days em { font-style: normal; }
.days .is-on { background: var(--bg); }
.days span:last-child { opacity: .6; }
.bignum { font-size: 44px; line-height: 1.1; letter-spacing: var(--track-l); margin-top: 6px; }
.bignum small { font-size: .4em; color: var(--muted); letter-spacing: 0; }

/* =========================================================
   DASHBOARD (fixed 1200px design, scaled to fit)
   ========================================================= */
.dash-wrap { position: relative; margin-top: 24px; perspective: 1600px; }
.dash-tilt { transform-origin: 50% 0; will-change: transform; }
.dash-scaler { width: 1200px; transform-origin: 0 0; position: relative; }
[dir="rtl"] .dash-scaler { transform-origin: 100% 0; margin-inline-start: 0; }
.dash {
  position: relative;
  width: 1200px; height: 1040px;
  display: grid; grid-template-columns: 116px 1fr;
  background: #fff;
  border-radius: 34px;
  padding: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .55), 0 40px 80px -40px rgba(40, 45, 70, .2);
  font-size: 16px;
  color: var(--ink);
}
.dash::after { content: ""; position: absolute; inset: auto 0 0; height: 240px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%); pointer-events: none; }
.dash__side { display: flex; flex-direction: column; align-items: center; padding: 50px 0 40px; }
.dash__blob { position: relative; width: 46px; height: 46px; }
.dash__blob::before, .dash__blob::after { content: ""; position: absolute; border-radius: 50%; }
.dash__blob::before { inset: 8px 8px 0 0; background: #7d7f86; }
.dash__blob::after { width: 26px; height: 26px; inset-inline-end: 0; top: 0; background: #c9ccd3; border: 3px solid #fff; }
.dash__icons { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 220px; color: var(--muted-2); font-size: 26px; }
.dash__icons span { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; }
.dash__icons .is-on { background: var(--lime); color: #fff; font-size: 30px; }
.dash__me { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 10%; background: #e3e7ee; margin-top: auto; }
.dash__main { background: var(--bg); border-radius: 24px; padding: 52px 52px 0; min-width: 0; }
.dash__top { display: flex; justify-content: space-between; align-items: flex-start; }
.dash__title { font-size: 54px; line-height: 1.1; letter-spacing: var(--track-l); font-weight: 500; }
[lang="ar"] .dash__title { font-size: 48px; }
.dash__status { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 21px; margin-top: 8px; }
.dash__status i { width: 18px; height: 18px; border-radius: 50%; background: #9a9ca4; }
.dash__ctrls { display: flex; align-items: center; gap: 22px; }
.select { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; width: 270px; height: 58px; padding-inline: 30px 22px; background: #fff; border-radius: 999px; font-size: 17px; }
.select .ic { font-size: 22px; color: var(--ink-2); }
.dash__share { font-size: 26px; color: var(--ink-2); margin-inline-start: 50px; }
.dash__plus { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--dark); color: #fff; font-size: 26px; }
.dash__grid {
  display: grid; margin-top: 48px; gap: 20px;
  grid-template-columns: 1.95fr 1fr 1fr;
  grid-template-areas: "chart c2 c1" "chart src src" "year year year";
}
.dash__grid .card--chart { grid-area: chart; }
.dash__grid [data-slot="c2"] { grid-area: c2; }
.dash__grid [data-slot="c1"] { grid-area: c1; }
.dash__grid .card--sources { grid-area: src; }
.dash__grid .card--year { grid-area: year; }
.dash [data-slot] { transition: opacity .25s; }

.card--chart { display: flex; flex-direction: column; padding: 30px 28px 26px; }
.chart { background: var(--bg); border-radius: 12px; margin: 24px -12px 0; padding: 30px 26px 14px; }
.chart__svg { width: 100%; height: 300px; overflow: visible; }
.chart__bars line { stroke: #1d3563; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__line { fill: none; stroke: var(--ink); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.chart__x { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; margin-top: 12px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
.kpis > div { display: grid; gap: 4px; padding-inline: 18px; border-inline-start: 1px solid var(--line); }
.kpis > div:first-child { border: 0; padding-inline-start: 4px; }
.kpis span { color: var(--muted); font-size: 16px; }
.kpis b { font-weight: 500; font-size: 24px; letter-spacing: var(--track-m); }

.segbar { display: flex; gap: 6px; padding: 12px 14px; margin: 18px -12px 10px; background: var(--bg); border-radius: 10px; }
.segbar i { height: 8px; border-radius: 99px; width: var(--w); background: var(--c); }
.srcs li { display: grid; grid-template-columns: 1fr auto 90px; gap: 16px; align-items: center; padding-block: 11px; font-size: 16px; color: var(--muted); }
.srcs li::before { content: ""; position: absolute; }
.srcs li span { display: flex; align-items: center; gap: 12px; }
.srcs li span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.srcs li em { font-style: normal; color: var(--muted-2); }
.srcs li b { text-align: end; font-weight: 500; color: var(--ink-2); }
.card--sources .srcs li:nth-child(4) { opacity: .55; }
.card--sources .srcs li:nth-child(5) { opacity: .25; }
.card--year { min-height: 150px; }
.months { display: flex; justify-content: space-between; margin-top: 14px; color: var(--muted-2); font-size: 14px; letter-spacing: .04em; }

/* Second dashboard */
.dash__grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.dash__grid4 .stat { min-height: 210px; }
.dash__grid4 .card--chart2 { grid-column: span 2; grid-row: span 2; }
.dash__grid4 .card--meds { grid-column: span 2; }
.card--chart2 .chart__svg { height: 250px; }

/* =========================================================
   TRUSTED
   ========================================================= */
.trusted { padding-top: 64px; }
.trusted__row { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; margin-bottom: 28px; }
.trusted__row p { font-size: clamp(17px, 1.7vw, 22px); color: var(--ink-2); letter-spacing: var(--track-m); }
.trusted__case { display: inline-flex; align-items: center; gap: 14px; font-size: 17px; }
.trusted__case .sq-ic { width: 40px; height: 40px; font-size: 20px; }
.logos {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 12px;
  padding: 44px 20px; background: var(--bg); border-radius: var(--radius);
}
.logo-item { display: flex; align-items: center; justify-content: center; gap: 10px; color: #b3b6c0; font-weight: 600; font-size: 18px; letter-spacing: -.02em; direction: ltr; white-space: nowrap; }
.logo-item svg { height: 32px; width: auto; }
.logo-item:first-child svg { height: 28px; }
@media (min-width: 768px) {
  .trusted__row { flex-direction: row; justify-content: space-between; text-align: start; }
  .logos { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .trusted { padding-top: 40px; }
  .logos { grid-template-columns: repeat(6, 1fr); padding: 72px 40px; }
}

/* =========================================================
   ABOUT STATEMENT
   ========================================================= */
.about { padding: 120px 0 80px; }
.statement {
  font-size: clamp(28px, 3.5vw, 50px);
  line-height: 1.22; font-weight: 500; text-align: center;
  letter-spacing: var(--track-l);
  text-wrap: balance;
}
[lang="ar"] .statement { line-height: 1.55; font-size: clamp(26px, 3.2vw, 46px); }
.statement .w { color: #cfd2da; transition: color .35s; }
.statement .w.on { color: var(--ink); }
.rule { border: 0; height: 1px; background: var(--line); margin: 56px 0 48px; }
.feats { display: grid; gap: 28px; }
.feat { display: flex; align-items: center; gap: 18px; }
.feat h3 { font-size: 22px; font-weight: 500; letter-spacing: var(--track-m); }
.feat p { color: var(--muted); font-size: 17px; }
@media (min-width: 768px) {
  .feats { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .about .container--narrow { width: min(1130px, 100% - var(--gutter) * 2); }
  .statement { max-width: 820px; margin-inline: auto; }
}
@media (min-width: 1024px) { .about { padding: 200px 0 110px; } }

/* =========================================================
   STACKED CARDS
   ========================================================= */
.stack-sec { padding-bottom: 80px; }
.stack { display: grid; gap: 32px; }
.scard {
  position: -webkit-sticky; position: sticky;
  top: calc(var(--nav-h) + var(--safe-t) + 8px);
  height: max(600px, calc(100svh - var(--nav-h) - var(--safe-t) - 24px));
  display: grid; grid-template-rows: auto 1fr;
  padding: 8px;
  border-radius: var(--radius);
  background: #dcdde6;
  overflow: hidden;
  transform-origin: 50% 0;
  will-change: transform;
}
@supports not (height: 100svh) { .scard { height: max(600px, calc(100vh - var(--nav-h) - 24px)); } }
.scard__dim { position: absolute; inset: 0; background: transparent; opacity: 0; pointer-events: none; border-radius: inherit; z-index: 3; }
.scard__text {
  position: relative; z-index: 2;
  background: #fff; border-radius: var(--radius-md);
  padding: 26px 24px 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.scard__title { font-size: clamp(26px, 3vw, 44px); font-weight: 400; line-height: 1.18; letter-spacing: var(--track-l); max-width: 460px; }
[lang="ar"] .scard__title { line-height: 1.45; font-weight: 500; }
.scard__p { color: var(--ink-2); font-size: 16px; max-width: 360px; line-height: 1.6; }
.scard__check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.scard__check .ic { font-size: 24px; color: var(--muted); stroke-width: 1.3; }
.scard__vis { position: relative; display: grid; place-items: center; padding: 20px; overflow: hidden; border-radius: var(--radius-md); }
.scard__vis--a { background: radial-gradient(90% 60% at 80% 100%, #8fa9d6 0%, rgba(143,169,214,0) 70%), radial-gradient(70% 60% at 10% 90%, #6e8193 0%, rgba(110,129,147,0) 70%), linear-gradient(170deg, #d5d8e0 0%, #c7ccd6 60%, #b3bfd4 100%); }
.scard__vis--b { background: radial-gradient(70% 70% at 20% 100%, #24406f 0%, rgba(36,64,111,0) 70%), radial-gradient(60% 70% at 70% 90%, #6d8fc9 0%, rgba(109,143,201,0) 70%), linear-gradient(170deg, #dde3ee 0%, #c5cfe0 100%); }
.scard__vis--c { background: radial-gradient(80% 70% at 30% 100%, #a6b4c6 0%, rgba(166,180,198,0) 70%), radial-gradient(60% 60% at 90% 80%, #9fb6dc 0%, rgba(159,182,220,0) 70%), linear-gradient(170deg, #dfe2ea 0%, #c9cfdb 100%); }
.scard__vis--d { background: radial-gradient(80% 70% at 70% 100%, #2b4677 0%, rgba(43,70,119,0) 70%), radial-gradient(60% 70% at 10% 90%, #6f90c8 0%, rgba(111,144,200,0) 70%), linear-gradient(170deg, #dde2ec 0%, #c7d0e0 100%); }
.mini { width: min(440px, 100%); box-shadow: 0 30px 60px -24px rgba(30, 30, 50, .35); }
.mini--ecg { padding: 22px; }
.ecg { position: relative; background: var(--bg); border-radius: 12px; margin: 18px -8px 0; padding: 14px 10px; overflow: hidden; }
.ecg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(235,239,245,0), var(--bg) 18px); transform: translate3d(0, 0, 0); animation: ecg-sweep 3.2s cubic-bezier(.45, 0, .55, 1) infinite; will-change: transform; }
[dir="rtl"] .ecg svg { transform: scaleX(-1); }
.ecg svg { width: 100%; height: 110px; }
.ecg__grid { stroke: #d5dae4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ecg__line { fill: none; stroke: var(--ink); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
@keyframes ecg-sweep { 0% { transform: translate3d(-18px, 0, 0); } 75%, 100% { transform: translate3d(100%, 0, 0); } }
[dir="rtl"] .ecg::after { background: linear-gradient(to left, rgba(235,239,245,0), var(--bg) 18px); animation-name: ecg-sweep-rtl; }
@keyframes ecg-sweep-rtl { 0% { transform: translate3d(18px, 0, 0); } 75%, 100% { transform: translate3d(-100%, 0, 0); } }
@keyframes ecg { 0% { stroke-dashoffset: 1400; } 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.kpis--sm { margin-top: 18px; }
.kpis--sm span { font-size: 13px; }
.kpis--sm b { font-size: 18px; }
.scard__vis--b { perspective: 1000px; }
.mini--tilt1, .mini--tilt2 { position: absolute; width: min(250px, 58%); min-height: 210px; }
.mini--tilt1 { inset-inline-start: 10%; top: 12%; transform: rotate(-4deg); opacity: .92; }
.mini--tilt2 { inset-inline-end: 8%; bottom: 10%; transform: rotate(3deg); }
.mini--risk { padding: 24px; }
.mini--year { padding: 24px; }
.ybars { display: flex; align-items: flex-end; gap: 6px; height: 170px; margin-top: 22px; background: var(--bg); border-radius: 12px; padding: 14px; }
.ybars i { flex: 1; height: var(--h); border-radius: 6px; background: #c8ccd6; transform-origin: bottom; }
.ybars i.is-on { background: var(--lime); }
.js .ybars i { transform: scaleY(.1); transition: transform 1s var(--ease); }
.js .in .ybars i, .js .ybars.in i { transform: none; }
.ybars i:nth-child(n) { transition-delay: calc(var(--k, 0) * 40ms); }
.months--sm { font-size: 12px; margin-top: 10px; }

@media (min-width: 768px) {
  .scard { grid-template-rows: none; grid-template-columns: 1fr 1fr; height: min(720px, calc(100svh - var(--nav-h) - 40px)); min-height: 560px; }
  .scard--rev .scard__text { order: 2; }
  .scard__text { padding: 56px 48px 48px; gap: 22px; }
  .scard__check { margin-top: auto; }
  .scard__p { font-size: 17px; }
}
@media (min-width: 1024px) {
  .scard__text { padding: 64px 60px 52px; }
  .stack { gap: 48px; }
}

/* =========================================================
   DARK SERVICES
   ========================================================= */
.dark-sec { padding: 110px 0 120px; transition: color .7s var(--ease); }
.dark-sec.is-dark { color: #fff; }
body::before {
  content: ""; position: fixed; z-index: 0; pointer-events: none;
  inset: -15vh 0; background: var(--dark);
  opacity: 0; transition: opacity .5s var(--ease); will-change: opacity;
}
html.page-dark body::before { opacity: 1; }
html.page-dark, html.page-dark body { background-color: var(--dark); }
/* Content layer above the dark backdrop (the backdrop shows only where sections have no background). */
main, .foot { position: relative; z-index: 1; }
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-bottom: 48px; }
.sec-head--gap { margin-top: 140px; }
.sec-title { font-size: clamp(34px, 5.2vw, 72px); font-weight: 500; line-height: 1.1; letter-spacing: var(--track-xl); text-wrap: balance; }
[lang="ar"] .sec-title { line-height: 1.35; font-size: clamp(32px, 4.8vw, 64px); }
.sec-title--start, .sec-sub--start { text-align: start; }
.sec-sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); line-height: 1.6; letter-spacing: var(--track-m); }
.dark-sec .sec-sub { color: #a7a9b1; }
.dark-sec:not(.is-dark) .sec-sub { color: var(--ink-2); }
.dark-sec .chip--dark { transition: background-color .7s, color .7s; }
.dark-sec:not(.is-dark) .chip--dark { background: var(--bg); color: var(--ink); }
.hl { display: inline-block; background: var(--lime); color: #fff; border-radius: .18em; padding: 0 .14em .04em; line-height: 1.15; }

.bento { display: grid; gap: 20px; grid-template-columns: 1fr; }
.bcard {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md);
  padding: 28px 22px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: 440px;
  isolation: isolate;
}
.bcard__t { font-size: clamp(28px, 2.6vw, 38px); font-weight: 400; letter-spacing: var(--track-l); margin-top: 22px; line-height: 1.15; }
[lang="ar"] .bcard__t { font-weight: 500; line-height: 1.35; }
.bcard__p { font-size: 15px; line-height: 1.5; margin-top: 10px; opacity: .8; }
.bcard--blue { background: linear-gradient(180deg, #2c4c85 0%, #6a8bc3 42%, #d7dde8 80%, #eceff5 100%); color: #fff; }
.bcard--blue .bcard__p { opacity: .9; }
.bcard--white { background: linear-gradient(180deg, #fff 0%, #f1f3f8 100%); color: var(--ink); }
.bcard--rose { background: linear-gradient(180deg, #fbefec 0%, #f3f4f9 100%); color: var(--ink); }

/* falling pills */
.pills { position: absolute; inset: auto 0 0; height: 62%; }
.pill {
  position: absolute; bottom: var(--b, 0); inset-inline-start: var(--x);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 16px; padding-inline: 16px 24px;
  border-radius: 999px;
  background: #1d3563; color: #fff;
  font-size: 22px; letter-spacing: var(--track-m);
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 10px 20px -10px rgba(0,0,0,.35);
  transform: rotate(var(--r));
}
.pill .ic { font-size: 22px; opacity: .85; }
@media (max-width: 1023px) { .pill { font-size: 18px; padding-block: 10px; } .pill .ic { font-size: 18px; } }
.js .pill { transform: translate3d(0, -520px, 0) rotate(0deg); opacity: 0; }
.js .drop .pill {
  opacity: 1;
  transform: rotate(var(--r));
  transition: transform 1.1s cubic-bezier(.34, 1.36, .54, 1), opacity .3s;
  transition-delay: calc(var(--i) * 110ms + .1s);
}

/* booking notification */
.notif { position: relative; width: min(330px, 100%); margin-top: 26px; }
.notif__back { position: absolute; inset: -12px 18px auto; height: 40px; border-radius: 16px 16px 0 0; background: #c9ccd4; opacity: .8; }
.notif__card { position: relative; background: var(--dark-2); border-radius: 18px; padding: 6px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); }
.notif__top { display: flex; justify-content: space-between; align-items: center; color: #fff; padding: 10px 12px 12px; font-size: 15px; }
.notif__top > span { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.notif__top i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); }
.notif__top i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--lime); animation: pulse 2s ease-out infinite; will-change: transform, opacity; }
.notif__top em { font-style: normal; opacity: .7; font-size: 13px; }
.notif__body { background: #fff; border-radius: 13px; padding: 22px 18px; }
.notif__big { display: block; font-size: 30px; letter-spacing: var(--track-l); color: var(--ink-2); border-bottom: 1.5px solid var(--line); padding-bottom: 12px; }
.notif__big b { font-weight: 600; color: var(--ink); font-family: var(--font-en); }
.notif__big small { font-size: .6em; color: var(--muted); }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

/* orbit */
.orbit { position: absolute; inset: 44% 0 0; }
.orbit__ring {
  position: absolute; left: 50%; top: 20px;
  width: 560px; height: 560px; margin-left: -280px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,.75);
  animation: spin 40s linear infinite;
}
.orbit__ring span {
  position: absolute; left: 50%; top: 50%;
  width: 64px; height: 64px; margin: -32px;
  border-radius: 50%;
  background: #fff; color: var(--ink-2);
  display: grid; place-items: center; font-size: 24px;
  box-shadow: 0 10px 24px -10px rgba(40,50,80,.35);
  transform: rotate(var(--a)) translateY(-280px) rotate(calc(var(--a) * -1));
}
.orbit__ring span .ic { animation: spin 40s linear infinite reverse; }
.orbit__num { position: absolute; inset: auto 0 34px; display: grid; justify-items: center; color: var(--ink-2); }
.orbit__num b { font-size: 88px; font-weight: 400; line-height: 1; letter-spacing: var(--track-xl); color: var(--ink); font-family: var(--font-en); }
.orbit__num span { font-size: 17px; margin-top: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit__ring span .ic { transform-origin: 50% 50%; }

/* vertical marquee */
.vmarq {
  position: relative; width: min(340px, 100%); flex: 1 1 0; margin-top: 26px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  min-height: 220px;
}
@media (max-width: 1023px) { .vmarq { flex: none; height: 280px; } }
.vmarq__track { display: grid; gap: 10px; animation: vscroll 18s linear infinite; }
.res { background: #fff; border-radius: 14px; padding: 14px 16px; text-align: start; display: grid; gap: 2px; box-shadow: 0 1px 2px rgba(20,20,45,.05); }
.res__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.res__top em { font-style: normal; color: var(--muted-2); font-size: 13px; font-family: var(--font-mono); }
.res b { font-weight: 500; font-size: 16px; }
.res > span { color: var(--muted); font-size: 14px; }
.tag { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 99px; }
.tag--ok { background: #eefbd0; color: #6f8a1b; }
.tag--warn { background: #fde7e1; color: #c0573b; }
.tag--pend { background: #fcf2d4; color: #a5821b; }
@keyframes vscroll { to { transform: translate3d(0, calc(-50% - 5px), 0); } }

/* horizontal marquee */
.hmarq {
  width: calc(100% + 44px); margin-top: auto; overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.hmarq__track { display: flex; gap: 10px; width: max-content; animation: hscroll 22s linear infinite; }
[dir="rtl"] .hmarq__track { animation-direction: reverse; }
.slot { display: grid; gap: 2px; padding: 14px 18px; min-width: 150px; border-radius: 16px; background: rgba(255,255,255,.9); color: var(--ink); text-align: start; }
[dir="rtl"] .slot { direction: rtl; }
.slot b { font-size: 22px; font-weight: 500; letter-spacing: var(--track-m); }
.slot em { font-style: normal; font-size: 13px; color: var(--muted); }
@keyframes hscroll { to { transform: translate3d(calc(-50% - 5px), 0, 0); } }

/* urgent alert */
.alert { width: min(330px, 100%); margin-top: auto; background: #fff; border-radius: 18px; padding: 18px; text-align: start; box-shadow: 0 20px 40px -24px rgba(90,40,40,.3); }
.alert__top { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.alert__top b { font-weight: 500; }
.alert__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fde7e1; color: #c0573b; font-size: 18px; }
.alert__vals { display: flex; gap: 18px; color: var(--muted); font-size: 14px; margin: 14px 0; }
.alert__vals b { color: var(--ink); font-weight: 500; font-family: var(--font-en); }
.alert__btn { display: block; text-align: center; padding: 12px; border-radius: 12px; background: var(--dark); color: #fff; font-size: 15px; font-weight: 500; }

@media (min-width: 700px) {
  .bento { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
    gap: 24px;
  }
  .bcard { min-height: 0; padding: 36px 30px; }
  .bento > :nth-child(1) { grid-column: 1; grid-row: 1 / span 3; }
  .bento > :nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
  .bento > :nth-child(3) { grid-column: 3; grid-row: 1 / span 3; }
  .bento > :nth-child(4) { grid-column: 2; grid-row: 3 / span 3; }
  .bento > :nth-child(5) { grid-column: 1; grid-row: 4 / span 2; }
  .bento > :nth-child(6) { grid-column: 3; grid-row: 4 / span 2; }
  .bento > :nth-child(5) .bcard__t, .bento > :nth-child(6) .bcard__t { font-size: 32px; }
}

/* showcase */
.showcase {
  border-radius: var(--radius);
  padding: 20px;
  background: radial-gradient(70% 60% at 15% 100%, #1d3563 0%, rgba(29,53,99,0) 70%), radial-gradient(60% 60% at 85% 100%, #5f82bf 0%, rgba(95,130,191,0) 70%), linear-gradient(180deg, #d6dded 0%, #b2bfd8 45%, #34507f 100%);
  overflow: hidden;
}
.showcase .dash-wrap { margin: 0; perspective: none; }
.showcase .dash { height: 900px; box-shadow: none; }
.showcase .dash::after { background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.95)); }
@media (min-width: 1024px) { .showcase { padding: 48px 64px 0; } .showcase .dash { border-radius: 30px 30px 0 0; } }

.pillars { display: grid; gap: 28px; margin: 64px 0 56px; }
.pillar h4 { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 500; letter-spacing: var(--track-m); }
.pillar p { color: #a7a9b1; margin-top: 12px; font-size: 16px; max-width: 320px; }
.dark-sec:not(.is-dark) .pillar p { color: var(--muted); }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   ACHIEVEMENTS
   ========================================================= */
.achv { padding: 130px 0 40px; }
.counters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 20px; }
.counter { background: var(--bg); border-radius: var(--radius-md); padding: 28px 22px; display: grid; gap: 6px; }
.counter b { font-size: clamp(40px, 4.8vw, 68px); font-weight: 400; line-height: 1; letter-spacing: var(--track-xl); font-family: var(--font-en); }
[lang="ar"] .counter b { font-family: var(--font-ar); }
.counter > span { color: var(--muted); font-size: 16px; }
@media (min-width: 900px) { .counters { grid-template-columns: repeat(4, 1fr); } .counter { padding: 36px 32px; } }

.tabs { background: var(--bg); border-radius: var(--radius); padding: 8px; display: grid; gap: 8px; }
.tabs__list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list button {
  flex: none; padding: 14px 20px; border-radius: 16px;
  font-size: 17px; color: var(--muted); text-align: start;
  transition: background-color .3s, color .3s;
}
.tabs__list button[aria-selected="true"] { background: #fff; color: var(--ink); }
.tabs__panel { display: none; gap: 8px; }
.tabs__panel.is-on { display: grid; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tl { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: start; background: #fff; border-radius: 20px; padding: 22px; }
.tl__y { font-family: var(--font-mono); font-size: 15px; color: var(--muted); background: var(--bg); padding: 6px 10px; border-radius: 10px; }
[lang="ar"] .tl__y { font-family: var(--font-ar); }
.tl h4 { font-size: 19px; font-weight: 500; letter-spacing: var(--track-m); line-height: 1.4; }
.tl p { color: var(--muted); margin-top: 4px; }
.tl__ic { display: none; }
@media (min-width: 900px) {
  .tabs { grid-template-columns: 290px 1fr; }
  .tabs__list { flex-direction: column; padding: 0; }
  .tabs__list button { padding: 24px 24px; font-size: 18px; border-radius: 20px; }
  .tl { grid-template-columns: 90px 1fr auto; padding: 30px 32px; align-items: center; }
  .tl__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--bg); font-size: 22px; color: var(--ink-2); }
  .tl h4 { font-size: 22px; }
}

/* =========================================================
   PRICING
   ========================================================= */
.pricing { padding: 120px 0 110px; }
.plans { position: relative; }
.toggle {
  position: relative; z-index: 1;
  display: flex; width: fit-content; margin: 0 auto -1px;
  padding: 6px; gap: 4px;
  background: var(--bg); border-radius: 22px 22px 0 0;
}
.toggle button { padding: 12px 34px; border-radius: 16px; font-size: 16px; color: var(--muted); transition: background-color .3s, color .3s; }
.toggle button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.plans__grid { display: grid; gap: 8px; background: var(--bg); padding: 8px; border-radius: var(--radius); }
.plan { background: #fff; border-radius: var(--radius-md); padding: 32px 26px; display: flex; flex-direction: column; gap: 18px; }
.plan h3 { font-size: 26px; font-weight: 400; letter-spacing: var(--track-l); }
[lang="ar"] .plan h3 { font-weight: 500; }
.plan__d { color: var(--muted); font-size: 16px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-block: 8px 4px; }
.plan__price b { font-size: 60px; font-weight: 400; letter-spacing: var(--track-xl); line-height: 1; font-variant-numeric: tabular-nums; }
.plan__price span { font-size: 20px; }
.plan__price em { font-style: normal; color: var(--muted); font-size: 15px; }
.plan__list { display: grid; gap: 14px; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.plan__list li { display: flex; gap: 12px; align-items: center; font-size: 16px; color: var(--ink-2); }
.plan__list li::before {
  content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan--feat { box-shadow: inset 0 0 0 2px var(--lime); }
.ent {
  margin-top: 8px;
  display: flex; flex-direction: column; gap: 24px; align-items: flex-start;
  border-radius: var(--radius); padding: 32px 26px;
  background: linear-gradient(135deg, #eef0f7 0%, #d9deec 100%);
  box-shadow: inset 0 0 0 8px var(--bg), 0 0 0 1px #c9d0e4;
}
.ent h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 400; letter-spacing: var(--track-l); margin-top: 16px; }
[lang="ar"] .ent h3 { font-weight: 500; }
.ent p { color: var(--ink-2); margin-top: 10px; max-width: 520px; }
@media (min-width: 900px) {
  .plans__grid { grid-template-columns: repeat(3, 1fr); }
  .plan { padding: 44px 36px; }
  .ent { flex-direction: row; align-items: center; justify-content: space-between; padding: 44px 44px; }
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.stories { padding: 0 8px; }
.stories__inner { background: var(--dark); color: #fff; border-radius: 36px; padding: 90px 0 60px; }
.stories .sec-sub { color: #a7a9b1; }
.car__track {
  display: flex; gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: max(var(--gutter), (100% - var(--maxw)) / 2);
  scroll-padding-inline: max(var(--gutter), (100% - var(--maxw)) / 2);
  -webkit-overflow-scrolling: touch;
}
.car__track::-webkit-scrollbar { display: none; }
.car__track.dragging { scroll-snap-type: none; cursor: grabbing; }
.tcard {
  flex: 0 0 min(940px, calc(100vw - var(--gutter) * 2 - 16px));
  scroll-snap-align: start;
  background: var(--bg); color: var(--ink);
  border-radius: var(--radius-md);
  padding: 26px;
  display: grid; gap: 24px;
}
.tcard__main { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.tcard__q { font-size: 90px; line-height: .7; font-family: Georgia, serif; opacity: .35; height: 40px; }
.tcard h3 { font-size: 30px; font-weight: 400; letter-spacing: var(--track-l); margin-bottom: 14px; }
[lang="ar"] .tcard h3 { font-weight: 500; }
.tcard p { font-size: 18px; line-height: 1.6; color: rgba(36,36,38,.86); }
.tcard__side { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
.tcard__side img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; }
.tcard dl > div { padding-block: 8px; border-bottom: 1px solid rgba(36,36,38,.12); }
.tcard dl > div:last-child { border: 0; }
.tcard dt { font-size: 13px; color: rgba(36,36,38,.55); }
.tcard dd { font-weight: 500; font-size: 16px; }
.car__ctrl { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.car__btns { display: flex; gap: 10px; }
.car__btn { width: 48px; height: 48px; border-radius: 14px; background: var(--dark-3); color: #fff; display: grid; place-items: center; font-size: 20px; transition: background-color .3s, color .3s; }
.car__btn:hover { background: var(--lime); color: #fff; }
.car__prog { width: 60px; height: 3px; border-radius: 3px; background: var(--dark-3); overflow: hidden; }
.car__prog i { display: block; height: 100%; width: 25%; background: var(--lime); border-radius: 3px; transform-origin: 0 0; }
[dir="rtl"] .car__prog i { margin-inline-start: 0; }
@media (min-width: 900px) {
  .stories { padding: 0 16px; }
  .stories__inner { border-radius: 40px; padding: 120px 0 36px; }
  .tcard { grid-template-columns: 1fr 265px; gap: 60px; padding: 48px; min-height: 660px; }
  .tcard__main { justify-content: flex-end; }
  .tcard__q { position: absolute; }
  .tcard { position: relative; }
  .tcard h3 { font-size: 34px; }
  .tcard p { font-size: 21px; }
  .tcard__side { grid-template-columns: 1fr; gap: 60px; }
  .tcard__side img { width: 100%; height: auto; aspect-ratio: 1; }
  .tcard dt { font-size: 14px; }
  .tcard dd { font-size: 18px; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: 140px 0 100px; }
.qa { background: #fff; border-radius: 20px; }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 22px;
  font-size: 18px; letter-spacing: var(--track-m); color: var(--ink-2);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; width: 18px; height: 18px; flex: none; transition: transform .4s var(--ease); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--muted); border-radius: 2px; }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i { transform: rotate(135deg); }
.qa__a { padding: 0 22px 24px; color: var(--ink-2); font-size: 16px; line-height: 1.7; max-width: 640px; }
.qa[open] .qa__a { animation: fadeUp .45s var(--ease); }
.connect { margin-top: 20px; background: var(--bg); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.connect h3 { font-size: 28px; font-weight: 400; letter-spacing: var(--track-l); }
[lang="ar"] .connect h3 { font-weight: 500; }
.connect p { color: var(--muted); margin-top: 4px; }
@media (min-width: 900px) {
  .qa summary { padding: 30px 36px; font-size: 22px; }
  .qa__a { padding: 0 36px 30px; font-size: 17px; }
  .connect { flex-direction: row; justify-content: space-between; align-items: center; padding: 36px 40px; }
}

/* =========================================================
   TIPS
   ========================================================= */
.tips { background: linear-gradient(to bottom, #fff 0%, var(--bg) 40%); padding: 80px 0 110px; }
.tips__head { margin-bottom: 36px; }
.tips__head .sec-title { margin-top: 16px; }
.tips__head .sec-sub { margin-top: 10px; }
.posts { display: grid; gap: 16px; }
.post { position: relative; background: #fff; border-radius: var(--radius-md); padding: 8px; display: flex; flex-direction: column; transition: transform .5s var(--ease); cursor: pointer; }
.post:hover { transform: translateY(-4px); }
.post__img { height: 220px; border-radius: 18px; display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 72px; }
.post__img .ic { stroke-width: 1.2; }
.post__img img { width: 148px; height: 148px; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(28, 35, 52, .18)); }
.post__img--1 { background: radial-gradient(70% 80% at 30% 100%, #5f82bf, transparent 70%), linear-gradient(160deg, #5d7592, #aab6c8); }
.post__img--2 { background: radial-gradient(70% 80% at 80% 100%, #1d3563, transparent 70%), linear-gradient(160deg, #c5cfe0, #3d68b4); }
.post__img--3 { background: radial-gradient(70% 80% at 20% 100%, #3d68b4, transparent 70%), linear-gradient(160deg, #6f9be8, #c9d4f0); }
.post__body { padding: 20px 16px 10px; }
.post__meta { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 14px; }
.post__tag { background: var(--bg); color: var(--ink-2); padding: 4px 10px; border-radius: 8px; }
.post h3 { font-size: 21px; font-weight: 400; letter-spacing: var(--track-m); line-height: 1.35; margin-top: 12px; }
[lang="ar"] .post h3 { font-weight: 500; line-height: 1.55; }
.post__foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 8px 0 16px; padding-inline: 16px 0; margin-top: auto; color: var(--muted); font-size: 15px; }
.post__go { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--lime); color: #fff; font-size: 20px; box-shadow: 0 0 0 8px #f1f3f8; transition: transform .4s var(--ease); }
.post:hover .post__go { transform: rotate(-45deg); }
[dir="rtl"] .post:hover .post__go { transform: rotate(45deg); }
@media (min-width: 900px) { .posts { grid-template-columns: repeat(3, 1fr); } .post__img { height: 260px; } }

/* ---------- article reader ---------- */
.article-modal {
  width: min(820px, calc(100% - 24px)); max-height: min(900px, calc(100dvh - 24px));
  padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--ink);
  box-shadow: 0 30px 100px rgba(20, 24, 38, .25); overflow: hidden;
}
.article-modal::backdrop { background: rgba(28, 30, 35, .62); backdrop-filter: blur(10px); }
.article-modal__bar { min-height: 68px; padding: 12px 14px 12px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.article-modal__bar button { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--bg); font-size: 20px; transition: background-color .25s, transform .25s; }
.article-modal__bar button:hover { background: var(--lime); transform: rotate(4deg); }
.article-modal__scroll { max-height: calc(100dvh - 116px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.article-copy { padding: clamp(30px, 6vw, 68px); }
.article-copy--en { display: none; }
[lang="en"] .article-copy--ar { display: none; }
[lang="en"] .article-copy--en { display: block; }
.article-copy__eyebrow { color: var(--brand-blue); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
[dir="rtl"].article-copy .article-copy__eyebrow { letter-spacing: 0; }
.article-copy h2 { margin-top: 14px; font-size: clamp(32px, 5vw, 54px); line-height: 1.15; letter-spacing: var(--track-l); }
[dir="rtl"].article-copy h2 { line-height: 1.35; }
.article-copy__lead { margin: 24px 0 34px; color: var(--ink-2); font-size: 20px !important; line-height: 1.75 !important; }
.article-copy h3 { margin: 30px 0 9px; font-size: 22px; font-weight: 600; }
.article-copy p { color: var(--ink-2); font-size: 17px; line-height: 1.85; }
.article-copy aside { margin: 36px 0 24px; padding: 22px 24px; display: grid; gap: 6px; border-radius: 18px; background: var(--bg); border-inline-start: 4px solid var(--lime); }
.article-copy aside strong { font-size: 17px; }
.article-copy aside span { color: var(--ink-2); line-height: 1.7; }
.article-copy__note { padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted) !important; font-size: 14px !important; }
html.article-open { overflow: hidden; }
@media (max-width: 599px) {
  .article-modal { width: 100%; max-width: none; max-height: calc(100dvh - 8px); margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .article-modal__scroll { max-height: calc(100dvh - 76px); }
  .article-copy { padding: 30px 22px 48px; }
}

/* =========================================================
   BOOK / CONTACT
   ========================================================= */
.book { padding: 0 8px; background: var(--bg); }
.book__inner { background: var(--dark); color: #fff; border-radius: 36px; padding: 90px 0 40px; }
.book__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; margin-bottom: 56px; }
.book__logo { width: 60px; height: 38px; color: #e3e5ea; }
.book__title { font-size: clamp(38px, 6vw, 84px); font-weight: 500; line-height: 1.1; letter-spacing: var(--track-xl); text-wrap: balance; max-width: 900px; }
[lang="ar"] .book__title { line-height: 1.35; }
.book .sec-sub { color: #c3c5cc; }
.book__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.bform { min-width: 0; background: #fff; color: var(--ink); border-radius: var(--radius-md); padding: 26px 22px; display: grid; gap: 16px; }
.bform h3 { font-size: 26px; font-weight: 400; letter-spacing: var(--track-l); margin-bottom: 4px; }
[lang="ar"] .bform h3 { font-weight: 500; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0;
  font-size: 16px; /* >=16px prevents iOS zoom on focus */
  height: 54px; padding: 0 16px;
  border: 1px solid transparent; border-radius: 14px;
  background: var(--bg);
  outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color .25s, background-color .25s;
}
.field textarea { height: auto; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.field input[type="date"] { display: block; line-height: 54px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #b8bfd0; background: #fff; }
.field .is-bad, .field input.is-bad { border-color: #e08a74; }
.field-row { display: grid; gap: 16px; }
.sel { position: relative; }
.sel .ic { position: absolute; inset-inline-end: 16px; top: 50%; margin-top: -9px; font-size: 18px; pointer-events: none; color: var(--muted); }
.sel select { padding-inline-end: 44px; cursor: pointer; }
.bform__err { color: #c0573b; font-size: 14px; }
.cinfo { display: grid; gap: 12px; align-content: start; }
.ccard { display: flex; gap: 16px; align-items: flex-start; background: var(--dark-3); border-radius: 20px; padding: 22px; }
.ccard h4 { font-size: 19px; font-weight: 500; }
.ccard p { color: #d3d5db; font-size: 15px; margin-top: 4px; }
.ccard .muted { color: #9ea1aa; }
.ccard > div { flex: 1; }
.ccard__go { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 18px; transition: background-color .3s, color .3s; }
.ccard__go:hover { background: var(--lime); color: #fff; }
.cquick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 480px) { .cquick { grid-template-columns: 1fr 1fr; } }
.cq { display: flex; gap: 12px; align-items: center; background: var(--dark-3); border-radius: 18px; padding: 16px; min-width: 0; transition: background-color .3s; }
.cq:hover { background: #505158; }
.cq > .ic { font-size: 22px; color: #a9c4ef; }
.cq span { display: grid; min-width: 0; }
.cq em { font-style: normal; font-size: 13px; color: #9ea1aa; }
.cq b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cq--wide { grid-column: 1 / -1; }
@media (max-width: 599px) {
  .book { padding: 0; background: var(--dark); }
  .book__inner { overflow: hidden; border-radius: 0; padding-top: calc(72px + var(--safe-t)); padding-bottom: calc(40px + var(--safe-b)); }
  .book .container { width: calc(100% - 16px); }
  .book__head { margin-bottom: 36px; padding-inline: 10px; }
  .book__grid, .bform, .cinfo, .field-row, .field, .sel { width: 100%; min-width: 0; max-width: 100%; }
  .bform { padding: 24px 18px; gap: 13px; overflow: hidden; }
  .bform h3 { font-size: 25px; overflow-wrap: anywhere; }
  .field { gap: 6px; overflow: hidden; }
  .field label { line-height: 1.45; overflow-wrap: anywhere; }
  .field input, .field select, .field textarea {
    display: block; width: 100%; max-width: 100%; min-inline-size: 0;
    padding-inline: 14px; overflow: hidden; text-overflow: ellipsis;
  }
  .field input[type="date"] { inline-size: 100%; min-inline-size: 0; line-height: normal; }
  .field input[type="date"]::-webkit-date-and-time-value { min-width: 0; text-align: start; }
  .sel select { padding-inline-end: 42px; }
  .ccard { min-width: 0; padding: 18px; gap: 12px; }
  .ccard > div, .ccard p, .ccard h4 { min-width: 0; overflow-wrap: anywhere; }
  .cq { padding: 14px; }
  .cq b { white-space: normal; overflow-wrap: anywhere; }
}

@media (max-width: 699px) {
  html, body { min-height: 100%; min-height: 100dvh; }
  body { padding-bottom: var(--safe-b); }
  .hero { margin-top: calc(var(--safe-t) * -1); padding-top: calc(var(--nav-h) + var(--safe-t) * 2 + 24px); }
  .foot { padding-bottom: var(--safe-b); }
  .foot__copy { border-radius: 0; }
}
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .book { padding: 0 16px; }
  .book__inner { border-radius: 40px; padding: 130px 0 64px; }
  .book__grid { grid-template-columns: 1.1fr .9fr; gap: 20px; }
  .bform { padding: 40px; }
  .cq b { font-size: 16px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.foot { background: var(--bg); padding: 80px 0 0; overflow: hidden; }
.foot__top { display: grid; gap: 48px; }
.foot__brand { display: flex; align-items: center; align-self: start; gap: 14px; }
.foot__logo { width: 58px; height: 38px; color: var(--ink-2); }
.foot__brand .brand__name { display: flex; }
.foot__brand .brand__name b { font-size: 20px; }
.foot__brand .brand__name small { font-size: 10px; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 20px; }
.foot__cols h5 { font-size: 18px; font-weight: 500; margin-bottom: 14px; color: var(--ink-2); }
.foot__cols a { display: block; color: var(--ink-2); font-size: 15px; padding-block: 5px; transition: color .25s; }
.foot__cols a:hover { color: var(--ink); }
.foot__bottom { position: relative; margin-top: 70px; display: flex; flex-direction: column-reverse; }
.foot__copy { background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; text-align: center; padding: 18px 20px calc(18px + var(--safe-b)); border-radius: 20px 20px 0 0; margin-inline: calc(var(--gutter) * -1); }
.foot__word {
  font-size: clamp(110px, 30vw, 330px);
  font-weight: 600; letter-spacing: -.06em; line-height: .78;
  color: var(--ink);
  white-space: nowrap;
  margin-bottom: -.02em;
  overflow: hidden;
  padding-top: .08em;
}
[lang="ar"] .foot__word { letter-spacing: 0; line-height: 1.05; font-size: clamp(96px, 26vw, 300px); }
@media (min-width: 900px) { [lang="ar"] .foot__word { margin-bottom: -.22em; } }
@media (min-width: 900px) {
  .foot { padding-top: 120px; }
  .foot__top { grid-template-columns: 1fr 2fr; }
  .foot__cols { grid-template-columns: repeat(4, 1fr); }
  .foot__bottom { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-top: 90px; }
  .foot__copy { margin: 0; flex: none; width: 34%; padding: 20px 24px calc(20px + var(--safe-b)); border-radius: 20px 20px 0 0; }
  /* Sized so the full English name fits beside the copyright bar (the Arabic rule below overrides). */
  .foot__word { font-size: clamp(110px, 12.5vw, 190px); }
  [lang="ar"] .foot__word { font-size: clamp(110px, 15vw, 250px); }
}

/* ---------- floating WhatsApp ---------- */
.fab {
  position: fixed; z-index: 40;
  inset-inline-end: 16px; bottom: calc(16px + var(--safe-b));
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--lime); color: #fff; font-size: 26px;
  box-shadow: 0 12px 30px -10px rgba(20, 20, 45, .35), 0 0 0 1px rgba(36,36,38,.06);
  transform: translateY(calc(100% + 32px + var(--safe-b)));
  transition: transform .5s var(--ease);
}
.fab.is-on { transform: none; }

/* ---------- pause offscreen animation ---------- */
.js .pausable:not(.onscreen) .orbit__ring,
.js .pausable:not(.onscreen) .orbit__ring .ic,
.js .pausable:not(.onscreen) .vmarq__track,
.js .pausable:not(.onscreen) .hmarq__track,
.js .pausable:not(.onscreen) .ecg::after,
.js .pausable:not(.onscreen) .notif__top i::after { animation-play-state: paused; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-split] .w, .js .pill { opacity: 1 !important; transform: none !important; }
  .js .pill { transform: rotate(var(--r)) !important; }
  .ecg::after { display: none; }
}

/* =========================================================
   INTERACTIVE HERO DASHBOARD (views, period menu, share)
   Same visual design as before — these rules only restore the
   original look for the new buttons and add the extra views.
   ========================================================= */
.dash [hidden] { display: none !important; }
.dash button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
.dash__icons button { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; color: var(--muted-2); font-size: 26px; cursor: pointer; transition: background-color .25s, color .25s; }
.dash__icons button:hover { background: #eef1f6; color: var(--ink-2); }
.dash__icons button.is-on { background: var(--lime); color: #fff; font-size: 30px; }
.dash__me-btn { margin-top: auto; border-radius: 50%; cursor: pointer; transition: box-shadow .25s; }
.dash__me-btn .dash__me { margin: 0; }
.dash__me-btn:hover { box-shadow: 0 0 0 4px #eef1f6; }

.dash__ctrls { position: relative; }
.select-wrap { position: relative; }
button.select { cursor: pointer; transition: box-shadow .25s; }
button.select:hover { box-shadow: 0 0 0 2px #dfe4ec; }
.select__menu { position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 5; background: #fff; border-radius: 18px; padding: 6px; box-shadow: 0 20px 40px -12px rgba(20, 20, 45, .18), 0 0 0 1px rgba(20, 20, 45, .04); animation: fadeUp .25s var(--ease); }
.select__menu button { width: 100%; text-align: start; padding: 12px 18px; border-radius: 12px; font-size: 17px; cursor: pointer; }
.select__menu button:hover, .select__menu button[aria-selected="true"] { background: var(--bg); }
.select__menu button[aria-selected="true"] { font-weight: 600; }
.dash__share { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; transition: background-color .25s; }
.dash__share:hover { background: #fff; }
.dash__plus { transition: transform .35s var(--ease); }
.dash__plus:hover { transform: rotate(90deg); }
.dash__toast { position: absolute; top: calc(100% + 12px); inset-inline-end: 0; z-index: 6; background: var(--ink); color: #fff; font-size: 15px; padding: 8px 14px; border-radius: 10px; white-space: nowrap; opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.dash__toast.is-on { opacity: 1; transform: none; }
.dash__status.is-open i { background: #7bb342; box-shadow: 0 0 0 5px rgba(123, 179, 66, .2); }

/* Stage: the overview keeps its layout (so the hero cards can land in it); other views sit on top. */
.dash__stage { position: relative; margin-top: 48px; }
.dash__stage .dash__grid { margin-top: 0; transition: opacity .3s var(--ease); }
.dash__grid.is-away { opacity: 0; visibility: hidden; }
.dview { position: absolute; inset: 0 0 auto; display: grid; gap: 20px; align-content: start; animation: fadeUp .35s var(--ease); }

/* chart: two periods stacked, crossfade */
.chart { position: relative; }
.chart__set { transition: opacity .45s var(--ease); }
.chart__set:not(.is-on) { position: absolute; top: 30px; left: 26px; width: calc(100% - 52px); opacity: 0; pointer-events: none; }

/* shared bits */
.dbtn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 14px; background: var(--bg); color: var(--ink); font-size: 16px; font-weight: 500; justify-self: start; transition: background-color .25s; }
.dbtn:hover { background: #e2e7ef; }
.dbtn--dark { background: var(--dark); color: #fff; }
.dbtn--dark:hover { background: #152a50; }
.dlink { display: inline-flex; margin-top: 18px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.dchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dchips li { padding: 8px 14px; border-radius: 999px; background: var(--bg); font-size: 15px; }

/* services & fees */
.dview--fees { grid-template-columns: 1.95fr 1fr 1fr; }
.dview--fees > .dfees { grid-column: 1; grid-row: 1 / span 2; }
.dview--fees > .dpay { grid-column: 2 / span 2; }
.dfees__list { margin-top: 10px; }
.dfees__list li { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.dfees__list li > span { display: grid; gap: 2px; }
.dfees__list b { font-size: 19px; font-weight: 500; }
.dfees__list em { font-style: normal; color: var(--muted); font-size: 15px; }
.dfees__list strong { font-size: 28px; font-weight: 500; white-space: nowrap; }
.dfees__list small { font-size: .55em; color: var(--muted); }

/* clinic hours */
.dview--schedule { grid-template-columns: 1fr 1fr; }
.dweek { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.dday { position: relative; background: #fff; border-radius: 16px; padding: 22px 16px; min-height: 170px; display: flex; flex-direction: column; gap: 6px; }
.dday b { font-size: 19px; font-weight: 500; }
.dday em { font-style: normal; color: var(--muted); font-size: 15px; }
.dday__h { margin-top: auto; font-size: 17px; color: var(--ink-2); }
.dday.is-closed { background: transparent; box-shadow: inset 0 0 0 1.5px #dde2ea; color: var(--muted); }
.dday.is-today { box-shadow: inset 0 0 0 2px var(--ink); }
.dday__today { align-self: flex-start; font-size: 13px; font-weight: 600; background: var(--lime); color: #fff; padding: 2px 10px; border-radius: 99px; }
.dnext, .dnote { display: flex; flex-direction: column; gap: 12px; }
.dnext__when { font-size: 34px; font-weight: 500; line-height: 1.25; }
.dnext__when small { display: block; font-size: 17px; font-weight: 400; color: var(--muted); margin-top: 6px; }
.dnote p { color: var(--ink-2); font-size: 17px; line-height: 1.6; }

/* clinics */
.dview--clinics { grid-template-columns: 1fr 1fr; }
.dclinic { display: flex; flex-direction: column; gap: 16px; }
.dclinic__map { position: relative; height: 240px; margin-inline: -12px; border-radius: 12px; background-color: #e3e8f0;
  background-image: linear-gradient(90deg, rgba(255,255,255,.95) 0 12px, transparent 12px), linear-gradient(0deg, rgba(255,255,255,.95) 0 9px, transparent 9px), linear-gradient(32deg, transparent 47%, #fff 47% 51%, transparent 51%);
  background-size: 130px 100%, 100% 95px, 100% 100%; }
.dclinic__map--2 { background-position: 50px 0, 0 40px, 0 0; }
.dclinic__pin { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -34px 0 0 -15px; border-radius: 50% 50% 50% 0; background: var(--ink); transform: rotate(-45deg); box-shadow: 0 10px 18px -8px rgba(0,0,0,.45); }
.dclinic__pin::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.dclinic__hours { font-size: 20px; color: var(--ink-2); }
.dclinic__acts { display: flex; gap: 10px; }

/* about the doctor */
.dview--doctor { grid-template-columns: 1.95fr 1fr; align-items: start; }
.ddoc { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.ddoc__img { width: 220px; height: 220px; border-radius: 16px; object-fit: cover; object-position: 50% 10%; background: var(--bg); }
.ddoc__body { display: flex; flex-direction: column; gap: 6px; }
.ddoc__body > .stat__t { font-size: 26px; color: var(--ink); }
.ddoc__bio { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin-top: 8px; }
.ddoc .dbtn { margin-top: 12px; }
.dfocus .srcs li { grid-template-columns: 1fr; }

/* the hero's flying cards step aside while another view is open */
.hero__visual .stat--float { transition: opacity .3s var(--ease); }
html.dash-alt .hero__visual .stat--float { opacity: 0; }

/* ---------- real hospital logos (affiliations strip) ---------- */
.logos--4 { grid-template-columns: repeat(2, 1fr); align-items: center; }
@media (min-width: 768px) { .logos--4 { grid-template-columns: repeat(4, 1fr); } }
.logo-item--img { margin: 0; }
.logo-item--img img { height: 44px; width: auto; max-width: 100%; object-fit: contain; }
.logo-item--tall img { height: 60px; }
@media (min-width: 1024px) { .logo-item--img img { height: 56px; } .logo-item--tall img { height: 76px; } }
/* Muted like the template on desktop, full colour on hover; always in colour on touch screens. */
@media (hover: hover) {
  .logo-item--img img { filter: grayscale(1); opacity: .6; transition: filter .35s var(--ease), opacity .35s var(--ease); }
  .logo-item--img:hover img { filter: none; opacity: 1; }
}

/* ---------- question form: custom dropdowns + date picker ---------- */
.cfield { position: relative; }
.cfield__native { position: absolute !important; inset: 0; opacity: 0; pointer-events: none; }
.cfield__btn {
  width: 100%; min-width: 0; height: 54px; padding: 0 16px; padding-inline-end: 46px;
  display: flex; align-items: center; text-align: start;
  font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid transparent; border-radius: 14px; cursor: pointer;
  transition: border-color .25s, background-color .25s;
}
.cfield__val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfield__btn:hover { background: #e3e8f1; }
.cfield__btn:focus-visible, .cfield.is-open .cfield__btn { border-color: #b8c5de; background: #fff; outline: none; }
.cfield__btn.is-bad { border-color: #e08a74; }
.cfield__ic { position: absolute; inset-inline-end: 16px; top: 50%; margin-top: -9px; font-size: 18px; color: var(--muted); pointer-events: none; transition: transform .3s var(--ease), color .2s; }
.cfield.is-open .cfield__ic { color: var(--dark); }
.cfield.is-open .cfield__ic:not(.cfield__ic--cal) { transform: rotate(180deg); }

.cpop {
  position: absolute; z-index: 50; top: 0; left: 0;
  background: #fff; color: var(--ink); border-radius: 18px; padding: 6px;
  box-shadow: 0 24px 60px -18px rgba(24, 43, 82, .35), 0 0 0 1px rgba(24, 43, 82, .06);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center;
  transition: opacity .18s var(--ease), transform .25s var(--ease);
}
.cpop.is-up { transform: translateY(6px) scale(.98); transform-origin: bottom center; }
.cpop.is-open { opacity: 1; transform: none; }
[lang="ar"] .cpop { font-family: var(--font-ar); }

.copt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px; font-size: 16px; cursor: pointer; outline: none; }
.copt .ic { font-size: 18px; color: var(--lime); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--ease); }
.copt.is-active { background: var(--bg); }
.copt.is-sel { color: var(--dark); font-weight: 500; }
.copt.is-sel .ic { opacity: 1; transform: none; }

.cpop--cal { padding: 14px; }
.ccal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ccal__title { font-size: 17px; font-weight: 500; color: var(--ink); }
.ccal__nav { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); color: var(--ink); font-size: 18px; transition: background-color .2s, color .2s; }
.ccal__nav:hover:not(:disabled) { background: var(--dark); color: #fff; }
.ccal__nav:disabled { opacity: .35; cursor: default; }
.ccal__dow, .ccal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ccal__dow span { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0 6px; white-space: nowrap; }
.ccal__dow .is-off { color: var(--muted-2); }
.cday { aspect-ratio: 1; min-height: 36px; border-radius: 12px; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; transition: background-color .15s, color .15s; outline: none; }
.cday:hover:not(:disabled) { background: var(--bg); }
.cday:focus-visible { box-shadow: inset 0 0 0 2px var(--lime); }
.cday.is-today { box-shadow: inset 0 0 0 1.5px #b8c5de; }
.cday.is-sel, .cday.is-sel:hover { background: var(--dark); color: #fff; box-shadow: none; }
.cday.is-sel:focus-visible { box-shadow: 0 0 0 2px #fff inset, 0 0 0 2px var(--lime); }
.cday:disabled { color: var(--muted-2); cursor: default; }
.ccal__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.ccal__quicks { display: flex; gap: 6px; flex: none; }
.ccal__quick { padding: 6px 12px; border-radius: 99px; background: var(--bg); color: var(--dark); font-size: 13px; font-weight: 500; transition: background-color .2s, color .2s; }
.ccal__quick:hover { background: var(--dark); color: #fff; }
@media (prefers-reduced-motion: reduce) { .cpop, .cfield__ic, .copt .ic { transition: none; } }

/* Achievements header sits right after the dark section: keep it readable while the
   dark backdrop is still showing, and fade back to navy with the backdrop. */
.achv .sec-title, .achv .sec-sub { transition: color .5s var(--ease); }
html.page-dark .achv .sec-title { color: #fff; }
html.page-dark .achv .sec-sub { color: #a9b6cf; }

/* Services breakdown shows percentages only. */
.card--sources .srcs li { grid-template-columns: 1fr auto; }
.bignum[data-p="delta"] { width: fit-content; direction: ltr; unicode-bidi: isolate; } /* "+18%" reads like the delta badges */
