/* =========================================================
   MUBTKIR — Homepage styles
   Brand tokens come from the official palette sheet.
   ========================================================= */
@font-face { font-family: "MubtkirDigits"; font-weight: 100 500; src: local("Segoe UI"), local("Roboto"), local("SF Pro Text"), local("Helvetica Neue"), local("Arial"); unicode-range: U+0030-0039, U+0025, U+002B, U+002C, U+002E, U+002F; }
@font-face { font-family: "MubtkirDigits"; font-weight: 501 900; src: local("Segoe UI Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("SF Pro Text Bold"), local("HelveticaNeue-Bold"), local("Arial Bold"), local("Arial-BoldMT"); unicode-range: U+0030-0039, U+0025, U+002B, U+002C, U+002E, U+002F; }

:root {
  --primary:   #3867AE;
  --secondary: #0F84B5;
  --accent:    #0BA1B8;
  --purple:    #644DA6;
  --ink:       #243B63;   /* brand text */
  --navy:      #322E6B;   /* wordmark / dark pattern background */
  --border:    rgba(56, 103, 174, .22);
  --soft:      rgba(56, 103, 174, .07);

  --muted:  #586B8C;
  --bg:     #ffffff;
  --bg-alt: #F5F8FC;
  --wa:     #1FAF5A;

  --grad: linear-gradient(90deg, var(--purple), var(--primary) 35%, var(--secondary) 65%, var(--accent));
  --oct:  polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(36, 59, 99, .25);

  /* motion tokens: one animation language for the whole site */
  --motion-fast: .2s;
  --motion-normal: .3s;
  --motion-slow: .7s;
  --ease-premium: cubic-bezier(.22, 1, .36, 1);
  --hover-lift: -4px;
  --hover-lift-lg: -6px;
  --hover-scale: 1.05;

  --font-head: "MubtkirDigits", "Alexandria", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --font-body: "MubtkirDigits", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --header-h: 76px;
}

/* =====================================================================
   TABLET 90% SCALE — PERMANENT. DO NOT REMOVE, DO NOT MOVE.
   The user REQUESTED this 4 times (19 Sep, 20 Sep x3): on tablets the site
   only looks right when the browser is at 90%, so we bake that in.
   A previous version wrongly removed it believing the user rejected it — that was
   a misread. Any future edit must keep this block exactly as-is.
   IMPORTANT: CSS zoom does NOT change media-query widths. The desktop layout on
   tablets comes from the burger breakpoint being 960px (see "TABLET RULE").
   ===================================================================== */
@media (min-width: 641px) and (max-width: 1400px) {
  html { zoom: 0.9; }
}
@media (min-width: 1401px) and (max-width: 1600px) and (pointer: coarse) {
  html { zoom: 0.9; }
}


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-feature-settings: "locl" 0; font-variant-numeric: lining-nums;
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.45; margin: 0; color: var(--ink); }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.flip { transform: scaleX(-1); }

.container { width: min(1400px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- Shared pieces ---------- */
.pill {
  display: inline-block;
  font-size: 13px; font-weight: 500; color: var(--primary);
  background: var(--soft); border: 1px solid var(--border);
  padding: 4px 16px; border-radius: 999px;
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; display: inline-block; padding-block: .1em;
  font-style: normal;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  padding: 11px 24px; border-radius: 999px; border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 7px 18px; font-size: 13px; }
.btn--lg { padding: 14px 30px; font-size: 15px; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--secondary); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #17964c; }
.btn--outline { background: #fff; color: var(--primary); border-color: var(--border); }
.btn--outline:hover { border-color: var(--primary); }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: #EAF2FB; }

.more {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--primary);
}
.more .ico { transition: transform .2s; }
.more:hover { color: var(--secondary); }
.more:hover .ico { transform: translateX(-4px); }

/* Octagon tile — echoes the chamfered geometry of the MUBTKIR mark */
.oct {
  display: grid; place-items: center; flex: none;
  width: 56px; height: 56px; font-size: 22px;
  color: var(--secondary); background: rgba(15, 132, 181, .1);
  clip-path: var(--oct);
}
.oct--sm { width: 44px; height: 44px; font-size: 18px; }
.oct--grad { color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); width: 64px; height: 64px; font-size: 26px; }
.oct--accent { color: #fff; background: var(--accent); width: 46px; height: 46px; font-size: 20px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--primary); color: #fff; text-align: center;
  font-size: 13px; padding: 6px 16px; line-height: 1.6;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--border); box-shadow: 0 6px 24px -14px rgba(36, 59, 99, .35); }
.header__in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo img { height: 48px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav a:not(.btn) {
  font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 8px 12px; border-radius: 8px; position: relative;
}
.nav a:not(.btn):hover { color: var(--primary); background: var(--soft); }
.nav a.is-active { color: var(--primary); }
.nav a.is-active::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.nav__cta { display: none; }

.header__tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; font-size: 17px; color: var(--ink);
}
.icon-btn:hover { background: var(--soft); color: var(--primary); }
.lang {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  padding: 8px 10px; border-radius: 999px; margin-inline-end: 6px;
}
.lang:hover { background: var(--soft); color: var(--primary); }
.burger { display: none; }
.burger .ico--close { display: none; }
.burger[aria-expanded="true"] .ico--menu { display: none; }
.burger[aria-expanded="true"] .ico--close { display: block; }

/* ---------- Hero zone: hero + partners share one background that dissolves into Services ---------- */
.hero-zone { position: relative; isolation: isolate; background: #fff; }
.hero-zone::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: #F2F7FC url("assets/hero-bg.jpg") center bottom / cover no-repeat;
  /* slightly tilted fade = soft asymmetric edge, no visible line or wave */
  -webkit-mask-image: linear-gradient(177deg, #000 0%, #000 66%, rgba(0,0,0,.55) 84%, transparent 98%);
          mask-image: linear-gradient(177deg, #000 0%, #000 66%, rgba(0,0,0,.55) 84%, transparent 98%);
}
/* quiet veil behind the text so the skyline never competes with the copy */
.hero-zone::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(46% 56% at 80% 38%, rgba(255,255,255,.6), rgba(255,255,255,0) 72%);
}
.hero { position: relative; }
.hero__in {
  display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.26fr);
  gap: 32px; align-items: center; padding-block: 56px 48px;
}
.hero h1 { font-size: clamp(30px, 3.7vw, 47px); font-weight: 800; line-height: 1.5; margin-block: 18px 16px; }
.lead { color: var(--muted); font-size: 17px; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 28px 32px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero__points li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.hero__points .ico { color: var(--secondary); font-size: 18px; }

/* Product visual = ONE unit at every screen size: tablet (real screenshot) + phone + ZATCA tag.
   Everything inside is sized relative to the unit, so it scales down together instead of breaking apart. */
.hero__visual {
  container-type: inline-size; position: relative; display: flex; flex-direction: column; align-items: stretch;
  padding-bottom: 3%;
  margin-inline-end: calc(-1 * clamp(0px, (100vw - 1204px) / 2, 76px)); /* reach a little further left on wide screens */
}
.screen-frame {
  position: relative; margin: 0 0 0 9%; background: #0E1322;
  padding: 1.9%; padding-top: 2.3%; border-radius: clamp(10px, 3cqw, 22px);
  box-shadow: inset 0 0 0 1.5px #2A3350, 0 2px 4px rgba(14,19,34,.2), 0 34px 70px -34px rgba(14,19,34,.65);
}
.screen-frame::before { content: ""; position: absolute; top: 1.1%; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #2F3A5C; }
.screen-frame img { display: block; width: 100%; height: auto; border-radius: clamp(4px, 1.2cqw, 9px); }
.phone-mock {
  position: absolute; left: 0; bottom: 0; z-index: 2; width: 17.5%; overflow: hidden;
  aspect-ratio: 9 / 18.6; background: #fff; border: clamp(3px, .8cqw, 5px) solid #0E1322; border-radius: clamp(10px, 3.4cqw, 22px);
  padding: 16px 8px 8px; padding: 2.5cqw 1.2cqw 1cqw; box-shadow: 0 22px 44px -24px rgba(14,19,34,.6);
}
.phone-mock__notch { position: absolute; top: 2.4%; left: 50%; width: 34%; height: 2.2%; margin-left: -17%; border-radius: 5px; background: #0E1322; }
.phone-mock__head { display: flex; align-items: center; gap: .9cqw; padding-bottom: 7%; margin-bottom: 7%; border-bottom: 1px solid var(--soft); }
.phone-mock__head img { width: 2.6cqw; min-width: 8px; height: auto; }
.phone-mock__head b { font-family: var(--font-head); font-size: clamp(5px, 1.55cqw, 10.5px); white-space: nowrap; }
.phone-mock ul { display: grid; gap: clamp(2px, .8cqw, 6px); }
.phone-mock li {
  display: flex; align-items: center; gap: .8cqw; white-space: nowrap; font-weight: 600; line-height: 1.5;
  font-size: clamp(4.5px, 1.42cqw, 9.5px); padding: .6cqw .9cqw; border-radius: 1cqw; background: var(--bg-alt);
}
.phone-mock li .ico { font-size: 1.25em; color: var(--secondary); }
/* the compatibility tag hangs from the tablet's lower edge so the three read as one object */
.zatca {
  align-self: center; position: relative; z-index: 1; margin: -1.5% 0 0 9%;
  display: flex; align-items: center; gap: clamp(8px, 1.6cqw, 12px);
  background: #fff; border: 1px solid var(--border); border-radius: clamp(10px, 2cqw, 14px);
  padding: clamp(6px, 1.2cqw, 9px) clamp(10px, 2.2cqw, 18px); line-height: 1.55; box-shadow: 0 14px 28px -18px rgba(14,19,34,.55);
}
.zatca__logo { width: auto; height: clamp(30px, 6.4cqw, 44px); flex: none; }
.zatca b { display: block; font-family: var(--font-head); font-size: clamp(10px, 1.95cqw, 12.5px); font-weight: 600; }
.zatca small { display: block; font-size: clamp(8.5px, 1.6cqw, 11px); color: var(--muted); text-align: right; }

/* Hero entrance: label → headline → copy → CTAs → trust → product */
@keyframes rise   { from { opacity: 0; transform: translateY(18px); } }
@keyframes slide  { from { opacity: 0; transform: translateX(-14px); } }
@keyframes settle { from { opacity: 0; transform: scale(.97); } }
.hero__text > *, .page-hero .container > * { animation: rise var(--motion-slow) var(--ease-premium) both; }
.hero__text > :nth-child(2), .page-hero .container > :nth-child(2) { animation-delay: .08s; }
.hero__text > :nth-child(3), .page-hero .container > :nth-child(3) { animation-delay: .16s; }
.hero__text > :nth-child(4), .page-hero .container > :nth-child(4) { animation-delay: .24s; }
.hero__text > :nth-child(5), .page-hero .container > :nth-child(5) { animation-delay: .32s; }
.screen-frame { animation: rise .8s var(--ease-premium) .42s both; }
.phone-mock   { animation: slide .8s var(--ease-premium) .56s both; }
.zatca        { animation: settle .7s var(--ease-premium) .7s both; }

/* ---------- Partners: a quiet marquee floating inside the hero transition ---------- */
.tech { position: relative; }
.tech__in { display: flex; align-items: center; gap: 28px; padding-block: 14px 30px; }
.tech__label { font-size: 13px; font-weight: 600; line-height: 1.6; color: var(--ink); flex: none; }
.marquee {
  flex: 1; min-width: 0; overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.tech__list { display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; gap: 12px 0; }
.tech__list li {
  font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap;
  color: var(--ink); opacity: .72; display: inline-flex; align-items: center; gap: 10px; margin-inline: 30px;
  transition: opacity var(--motion-normal);
}
.tech__list li:hover { opacity: 1; }
.tech__list li::before { content: ""; width: 14px; height: 14px; background: var(--grad); clip-path: var(--oct); }
.marquee.is-ready .marquee__track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: marquee var(--marquee-dur, 40s) linear infinite; }
.marquee.is-ready:hover .marquee__track, .marquee.is-ready:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- Sections ---------- */
.section { padding-block: 60px; }
.hero-zone + .section { padding-top: 40px; }
.section--tight { padding-block: 0 60px; }
.section__head { text-align: center; margin-bottom: 32px; }
.section__head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-top: 10px; }
.section__head p { color: var(--muted); margin-top: 6px; }
.section__head--row { display: flex; align-items: end; justify-content: space-between; gap: 16px; text-align: start; margin-bottom: 28px; }
.section__head--row h2 { margin-top: 0; font-size: clamp(22px, 2.6vw, 28px); }

/* ---------- Services ---------- */
.svc-featured { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.svc:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.svc h3 { font-size: 16px; font-weight: 700; margin-top: 6px; }
.svc p { font-size: 14px; color: var(--muted); flex: 1; }
.svc .more { margin-top: 6px; font-size: 13px; }
.svc--lg { flex-direction: row; gap: 20px; padding: 28px; border-radius: var(--r-lg); }
.svc--lg h3 { font-size: 20px; margin: 0 0 8px; }
.svc--lg p { font-size: 15px; margin-bottom: 12px; }
.svc--teal { background: linear-gradient(135deg, rgba(11,161,184,.1), rgba(11,161,184,.02)); border-color: rgba(11,161,184,.28); }
.svc--blue { background: linear-gradient(135deg, rgba(56,103,174,.12), rgba(100,77,166,.04)); }

/* ---------- Why / About ---------- */
.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.why__card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; }
.why__card h2 { font-size: 24px; margin-bottom: 24px; }
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
.why__item h3 { font-size: 15px; margin-block: 12px 4px; }
.why__item p { font-size: 14px; color: var(--muted); }

/* Vision 2030 card: photo as background, brand-navy veil under the text side */
.saudi {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; min-height: 360px;
  border-radius: var(--r-lg); color: #fff; background: var(--navy);
}
.saudi__media { position: absolute; inset: 0; z-index: -2; margin: 0; }
.saudi__media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.saudi::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to left,
    rgba(40, 38, 98, .97) 0%, rgba(44, 52, 118, .94) 40%,
    rgba(56, 103, 174, .6) 58%, rgba(56, 103, 174, 0) 78%);
}
.saudi__text {
  width: 58%; padding: 36px 32px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.saudi__mark { display: none; }
.saudi__kicker {
  font-size: 13px; font-weight: 600; padding: 3px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
}
.saudi h2 { color: #fff; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.7; }
.saudi p { color: rgba(255,255,255,.9); font-size: 15px; }

/* ---------- Sectors ---------- */
.marquee--sectors { flex: none; padding-block: 6px 14px; }
.sectors { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-inline: 20px; }
.marquee.is-ready .sectors { gap: 0; padding-inline: 0; }
.sectors li {
  flex: none; width: 150px; direction: rtl; display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 1px solid var(--border); border-radius: var(--r-sm); background: #fff;
  padding: 20px 8px 18px; line-height: 1.5;
}
.marquee.is-ready .sectors li { margin-inline: 7px; }
.sectors li:hover { background: #F5F8FD; border-color: var(--primary); }
.sectors .ico { font-size: 26px; color: var(--primary); margin-bottom: 10px; stroke-width: 1.5; }
.sectors b { font-family: var(--font-head); font-size: 14px; font-weight: 600; }

/* ---------- Stats ---------- */
.stats {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: linear-gradient(100deg, var(--navy) 0%, var(--primary) 52%, var(--secondary) 100%);
}
/* colour only: two soft glows that breathe very slowly (no repeated logo) */
.stats::before {
  content: ""; position: absolute; inset: -40% -10%; z-index: -1;
  background:
    radial-gradient(38% 60% at 18% 40%, rgba(11,161,184,.55), transparent 70%),
    radial-gradient(34% 56% at 82% 62%, rgba(100,77,166,.6), transparent 70%);
  animation: glow 16s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate3d(4%, -6%, 0) scale(1.08); } }
.stats__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 36px; text-align: center; }
.stats b { display: block; font-family: var(--font-head); font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.3; direction: ltr; font-variant-numeric: tabular-nums; }
.stats span { font-size: 14px; color: rgba(255,255,255,.85); }

/* ---------- Testimonials ---------- */
.slider { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.slider__btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--primary); background: #fff; font-size: 16px;
}
.slider__btn:hover:not(:disabled) { background: var(--primary); color: #fff; }
.slider__btn:disabled { opacity: .35; cursor: default; }
.t-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 6px 2px 14px; border-radius: var(--r-md);
}
.t-track::-webkit-scrollbar { display: none; }
.t-card {
  flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; margin: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 6px 18px -14px rgba(36,59,99,.4);
}
.t-quote { font-size: 30px; color: var(--primary); }
.t-card blockquote { margin: 0; flex: 1; font-size: 15px; }
.t-card figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--soft); line-height: 1.5; }
.t-card figcaption b { display: block; font-family: var(--font-head); font-size: 14px; }
.t-card figcaption small { color: var(--muted); font-size: 13px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.dots button { width: 8px; height: 8px; border-radius: 8px; background: var(--border); transition: width .2s, background-color .2s; }
.dots button[aria-selected="true"] { width: 24px; background: var(--primary); }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post {
  position: relative; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column; background: #fff; transition: box-shadow .2s, border-color .2s;
}
.post:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.post__cover {
  position: relative; isolation: isolate; aspect-ratio: 16 / 8; display: grid; place-items: center;
  color: rgba(255,255,255,.9); font-size: 54px;
}
.post__cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 15% 10%, rgba(255,255,255,.22), transparent 70%); }
.post__cover .ico { stroke-width: 1.2; }
.post__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post__cover--a { background: linear-gradient(135deg, var(--primary), var(--purple)); }
.post__cover--b { background: linear-gradient(135deg, var(--secondary), var(--accent)); }
.post__cover--c { background: linear-gradient(135deg, var(--purple), var(--secondary)); }
.tag {
  align-self: flex-start; margin: -14px 20px 0; position: relative;
  background: #fff; color: var(--primary); border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; padding: 2px 14px; border-radius: 999px;
}
.post h3 { font-size: 16px; font-weight: 600; line-height: 1.8; padding: 12px 20px 0; flex: 1; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post h3 a:hover { color: var(--primary); }
.post time { font-size: 13px; color: var(--muted); padding: 10px 20px 18px; }

/* ---------- Plans ---------- */
.center { display: flex; justify-content: center; margin-top: 32px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px 28px 28px;
}
.plan h3 { font-size: 20px; font-weight: 700; }
.plan__for { font-size: 14px; color: var(--muted); }
.plan__price {
  font-family: var(--font-head); font-size: 15px; color: var(--ink);
  margin-block: 14px 6px; padding-block: 14px; border-block: 1px solid var(--soft);
}
.plan__price b { font-size: 30px; font-weight: 800; color: var(--primary); margin-inline-end: 6px; }
.plan__price span { color: var(--muted); font-size: 14px; }
.plan__price small { display: block; font-family: var(--font-body); font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.plan__price--text b { font-size: 24px; }
.center--stack { flex-direction: column; align-items: center; gap: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compare tr.grp th { text-align: start; font-family: var(--font-head); font-size: 13.5px; font-weight: 600; color: var(--primary); background: var(--soft); padding-block: 9px; }
.compare--open { margin-top: 40px; }
.plan ul { display: grid; gap: 10px; margin-block: 12px 24px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.7; }
.plan li .ico { color: var(--accent); margin-top: .3em; stroke-width: 2.4; font-size: 15px; }
.plan .btn { width: 100%; }
.plan--featured {
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  box-shadow: 0 24px 50px -28px rgba(56, 103, 174, .55);
}
.plan__badge {
  position: absolute; top: -14px; inset-inline-start: 28px;
  font-family: var(--font-head); font-size: 12px; font-weight: 600; color: #fff;
  background: var(--grad); padding: 3px 16px; border-radius: 999px;
}

.compare { margin-top: 28px; }
.compare__scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
.compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { position: relative; padding: 13px 18px; text-align: center; border-bottom: 1px solid var(--soft); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-family: var(--font-head); font-size: 15px; background: var(--bg-alt); }
.compare th[scope="row"], .compare thead th:first-child { text-align: start; font-weight: 500; }
.compare .is-featured { background: rgba(56, 103, 174, .06); }
.compare thead .is-featured { color: var(--primary); }
.compare td[data-v]::before {
  content: ""; display: inline-block; width: 20px; height: 20px; vertical-align: middle; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.compare td[data-v="1"] { color: var(--accent);
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.compare td[data-v="0"] { color: #B6C2D6;
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E"); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 48px; align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.faq__head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.faq__head p { color: var(--muted); margin-bottom: 8px; }
.faq__list { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--primary); box-shadow: 0 14px 30px -22px rgba(56, 103, 174, .6); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer;
  list-style: none; padding: 18px 22px; font-family: var(--font-head); font-weight: 600; font-size: 15.5px; line-height: 1.7;
  border-radius: var(--r-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--primary); transition: transform .25s; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq summary:hover { color: var(--primary); }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; max-width: 62ch; }

/* ---------- CTA ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-lg); padding: 56px 40px; border: 1px solid var(--border);
  background:
    radial-gradient(46% 90% at 8% 10%, rgba(100,77,166,.16), transparent 70%),
    radial-gradient(46% 90% at 92% 90%, rgba(11,161,184,.2), transparent 70%),
    linear-gradient(100deg, #E9F1FB, #EAF7FA);
}
.cta__kicker { font-size: 14px; font-weight: 600; color: var(--secondary); }
.cta h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 700; margin-block: 4px 8px; }
.cta p { color: var(--muted); }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* =========================================================
   Inner pages (About / Contact)
   ========================================================= */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; padding-block: 48px 64px;
  background: linear-gradient(180deg, #EAF2FB 0%, #F6FAFE 78%, #fff 100%);
}
/* same approved hero artwork, mirrored so the skyline sits on the free (left) side, fading into the page */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; transform: scaleX(-1);
  background: url("assets/hero-bg.jpg") center 74% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 90% at 82% 45%, rgba(255,255,255,.62), rgba(255,255,255,0) 72%);
}
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.55; margin-block: 14px 12px; max-width: 18em; }
.page-hero .lead { max-width: 42em; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--primary); font-weight: 500; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Story */
.story { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.story__text h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; margin-block: 14px 16px; }
.story__text p { color: var(--muted); margin-bottom: 14px; max-width: 60ch; }
.ticks { display: grid; gap: 10px; margin-top: 22px; }
.ticks li { display: flex; gap: 10px; font-weight: 500; }
.ticks .ico { color: var(--accent); stroke-width: 2.4; margin-top: .35em; font-size: 15px; }
.story__panel {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  border-radius: var(--r-lg); padding: 40px 32px;
  background: linear-gradient(160deg, var(--navy), var(--primary) 85%);
}
.story__panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 10% 0%, rgba(11,161,184,.4), transparent 70%), radial-gradient(60% 60% at 100% 100%, rgba(100,77,166,.45), transparent 70%); }
.story__panel img { width: 72px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.story__quote { font-family: var(--font-head); font-size: 18px; font-weight: 600; line-height: 1.9; margin-bottom: 24px; }
.story__panel dl { margin: 0; display: grid; gap: 12px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 20px; }
.story__panel dt { font-size: 13px; color: rgba(255,255,255,.7); }
.story__panel dd { margin: 0; font-weight: 500; }

/* Story panel with uploaded photo (v2.2.4): unified size on ALL pages — landscape 3:2 box, image fills it fully. */
.story__panel--img { padding: 0; min-height: 0; width: 100%; aspect-ratio: 3 / 2; align-self: center; }
.story__panel--img::before { display: none; }
.story__panel--img .story__panel-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; margin: 0; }


/* Map card (contact page) */
.map-wrap { margin-top: 28px; }
.map-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff;
  box-shadow: 0 24px 50px -32px rgba(36, 59, 99, .5);
}
.map-card iframe, .map-ph { display: block; width: 100%; height: 400px; border: 0; }
.map-card__bar {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; color: #fff; line-height: 1.5;
  background: linear-gradient(100deg, var(--navy), var(--primary));
}
.map-card__bar > div { flex: 1; min-width: 0; }
.map-card__bar b { display: block; font-family: var(--font-head); font-size: 15px; }
.map-card__bar small { font-size: 13px; color: rgba(255,255,255,.8); }
.map-card__bar .oct { background: rgba(255,255,255,.14); color: #fff; }
.map-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px; text-align: center; color: var(--muted);
  background:
    linear-gradient(rgba(56,103,174,.08) 2px, transparent 2px) 0 0 / 100% 64px,
    linear-gradient(90deg, rgba(56,103,174,.08) 2px, transparent 2px) 0 0 / 64px 100%,
    linear-gradient(135deg, #EAF1FA, #E6F5F7);
}
.map-ph__pin { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--primary); color: #fff; font-size: 24px; box-shadow: var(--shadow); }
.map-ph__pin .ico { transform: rotate(45deg); }
.map-ph small { max-width: 22em; font-size: 13px; }

/* Vision & mission */
.vm { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.vm__card {
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px;
  background: linear-gradient(135deg, rgba(56,103,174,.08), rgba(11,161,184,.03));
}
.vm__card h2 { font-size: 22px; margin-block: 18px 8px; }
.vm__card p { color: var(--muted); }

/* Values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px; }
.value h3 { font-size: 17px; margin-block: 14px 6px; }
.value p { font-size: 14.5px; color: var(--muted); }

/* Journey timeline */
.tl { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: tl; }
.tl li { position: relative; padding: 34px 20px 0 8px; }
.tl li::before { content: ""; position: absolute; top: 9px; inset-inline: 0; height: 2px; background: var(--border); }
.tl li:first-child::before { inset-inline-start: 10px; }
.tl li::after { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 20px; height: 20px; background: var(--grad); clip-path: var(--oct); }
.tl__when { font-size: 13px; font-weight: 600; color: var(--secondary); }
.tl h3 { font-size: 17px; margin-block: 4px 6px; }
.tl p { font-size: 14.5px; color: var(--muted); }

/* Method steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--bg-alt); border-radius: var(--r-md); padding: 26px 24px; }
.steps b {
  font-family: var(--font-head); font-size: 34px; font-weight: 800; line-height: 1.2; direction: ltr; display: inline-block;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { font-size: 17px; margin-block: 10px 6px; }
.steps p { font-size: 14.5px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.form-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 36px; background: #fff; box-shadow: 0 24px 50px -36px rgba(36,59,99,.45); }
.form-card h2 { font-size: 24px; }
.form-card__sub { color: var(--muted); font-size: 14px; margin-block: 4px 24px; }
.req { color: #C4513B; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14.5px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--border); border-radius: var(--r-sm); padding: 11px 14px; line-height: 1.6;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input[dir="ltr"] { text-align: right; }
.field ::placeholder { color: #9AA8C0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(56,103,174,.15);
}
.field.is-invalid input, .field.is-invalid select { border-color: #C4513B; }
.err { color: #B3412C; font-size: 13px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.form__note { font-size: 13px; color: var(--muted); }
.form__note a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.form__status { grid-column: 1 / -1; border-radius: var(--r-sm); padding: 14px 18px; font-weight: 500; }
.form__status.is-ok { background: rgba(31,175,90,.1); color: #12703A; border: 1px solid rgba(31,175,90,.35); }
.form__status.is-error { background: rgba(196,81,59,.08); color: #9C3421; border: 1px solid rgba(196,81,59,.35); }

.channels { display: grid; gap: 12px; }
.channel {
  display: flex; align-items: center; gap: 14px; line-height: 1.5;
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 18px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.channel > div { flex: 1; min-width: 0; }
.channel b { display: block; font-family: var(--font-head); font-size: 15px; }
.channel small { font-size: 13.5px; color: var(--muted); display: inline-block; }
.channel > .ico { color: var(--primary); transition: transform .2s; }
a.channel:hover { border-color: var(--primary); box-shadow: var(--shadow); }
a.channel:hover > .ico { transform: translateX(-4px); }
.channel--wa .oct { background: rgba(31,175,90,.12); color: var(--wa); }
.channel--wa { border-color: rgba(31,175,90,.4); }

/* Service & pricing pages */
.page-hero__icon { margin-bottom: 6px; }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-grid .svc p { flex: 0 1 auto; }
.incl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 24px; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px 32px; background: var(--bg-alt); }
.incl li { display: flex; gap: 10px; font-weight: 500; }
.incl .ico { color: var(--accent); stroke-width: 2.4; margin-top: .35em; font-size: 15px; }
.addons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.addon { border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.addon h3 { font-size: 16px; margin-top: 8px; }
.addon p { font-size: 14.5px; color: var(--muted); flex: 1; }
.addon small { font-size: 12.5px; font-weight: 600; color: var(--secondary); }
.story__panel h2 { color: #fff; font-size: 20px; margin-bottom: 16px; }
.story__panel .ticks { margin-top: 0; }
.story__panel .ticks li { font-weight: 400; color: rgba(255,255,255,.92); }
.story__panel .ticks .ico { color: #7FE3EE; }

/* Clients: service filter + logo wall */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--ink);
  background: #fff; border: 1.5px solid var(--border); border-radius: 999px; padding: 9px 18px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip span { font-family: var(--font-body); font-size: 12px; font-weight: 600; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--soft); color: var(--primary); text-align: center; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip[aria-pressed="true"] span { background: rgba(255,255,255,.22); color: #fff; }
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.client {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px 14px 18px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.client:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.client[hidden] { display: none; }
.client__logo { display: grid; place-items: center; width: 100%; height: 84px; }
.client__logo img { max-width: 100%; max-height: 84px; width: auto; height: auto; object-fit: contain; }
.client__logo--ph { border-radius: var(--r-sm); background: var(--bg-alt); color: #A9B7CE; font-size: 34px; }
.client__logo--ph .ico { stroke-width: 1.3; }
.client b { font-family: var(--font-head); font-size: 14px; font-weight: 600; line-height: 1.6; }
.filters__empty { text-align: center; color: var(--muted); padding: 24px; }
.admin-hint { border: 1.5px dashed var(--border); border-radius: var(--r-md); padding: 20px 24px; color: var(--muted); text-align: center; }

.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; background: #fff; }
.story-card .tag { margin: 0; position: static; display: inline-block; }
.story-card h3 { font-size: 19px; margin-block: 12px 4px; }
.story-card__body h2, .story-card__body h3, .story-card__body h4 { font-size: 13.5px; font-weight: 600; color: var(--secondary); margin-top: 16px; }
.story-card__body p { font-size: 14.5px; color: var(--muted); margin-top: 2px; }

/* Service pages: project photos + lightbox */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project {
  position: relative; display: flex; flex-direction: column; width: 100%; text-align: start; cursor: zoom-in;
  border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.project:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.project__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.project:hover .project__img img { transform: scale(1.04); }
.project__info { display: block; padding: 14px 18px 16px; line-height: 1.6; }
.project__info b { display: block; font-family: var(--font-head); font-size: 15.5px; font-weight: 600; }
.project__info small { font-size: 13.5px; color: var(--muted); }
.project__count {
  position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(36, 44, 99, .72); backdrop-filter: blur(6px);
  padding: 3px 10px; border-radius: 999px;
}
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(24, 26, 66, .94); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(24, 26, 66, .6); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(1100px, 100vw - 32px); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: var(--r-md); object-fit: contain; }
.lightbox figcaption { display: flex; align-items: center; gap: 14px; font-size: 14.5px; }
.lightbox figcaption b { font-family: var(--font-head); }
.lightbox figcaption span { color: rgba(255,255,255,.7); direction: ltr; }
.lightbox__btn {
  position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 20px; transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(255,255,255,.26); }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 18px; inset-inline-end: 18px; }
.lightbox__prev { top: 50%; right: 18px; margin-top: -24px; }
.lightbox__next { top: 50%; left: 18px; margin-top: -24px; }

/* Blog */
.container--narrow { width: min(800px, 100% - 40px); }
.posts--archive { row-gap: 28px; }
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  min-width: 42px; height: 42px; padding-inline: 14px; display: inline-grid; place-items: center;
  border: 1px solid var(--border); border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink);
}
.pagination a.page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-numbers.dots { border: 0; }
.page-hero--post { padding-bottom: 40px; }
.page-hero--post h1 { max-width: none; font-size: clamp(26px, 3.6vw, 40px); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: 14px; margin-top: 6px; }
.post-meta .tag { margin: 0; position: static; }
.section--post { padding-top: 8px; }
.post-cover { margin: 0 0 36px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 8; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 17.5px; line-height: 2.05; color: #33486E; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 26px; margin-top: 1.9em; }
.prose h3 { font-size: 21px; margin-top: 1.6em; }
.prose h4 { font-size: 18px; margin-top: 1.4em; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.prose a:hover { color: var(--secondary); }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--secondary); }
.prose blockquote { margin-inline: 0; padding: 18px 24px; border-inline-start: 4px solid var(--accent); background: var(--bg-alt); border-radius: var(--r-sm); font-family: var(--font-head); font-weight: 500; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose img, .prose video, .prose iframe { max-width: 100%; height: auto; border-radius: var(--r-md); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: start; }
.prose th { background: var(--bg-alt); font-family: var(--font-head); }
.prose pre { direction: ltr; text-align: left; overflow-x: auto; background: #1A2442; color: #E6ECF7; border-radius: var(--r-sm); padding: 16px 18px; font-size: 14px; line-height: 1.7; }
.prose code { direction: ltr; unicode-bidi: embed; background: var(--soft); border-radius: 5px; padding: 1px 6px; font-size: .9em; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin-block: 2em; }
.share { display: flex; align-items: center; gap: 6px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); }
.share b { font-family: var(--font-head); font-size: 14px; margin-inline-end: 8px; }
.share .icon-btn { border: 1px solid var(--border); }
.post-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.post-nav a { border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 20px; line-height: 1.7; }
.post-nav a:hover { border-color: var(--primary); }
.post-nav small { display: block; color: var(--muted); font-size: 13px; }
.post-nav b { font-family: var(--font-head); font-size: 15px; font-weight: 600; }
.post-nav .is-next { text-align: end; }

/* ---------- Footer ---------- */
.footer { position: relative; isolation: isolate; background: var(--navy); color: rgba(255,255,255,.8); font-size: 14px; }
.footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 12% 0%, rgba(56,103,174,.38), transparent 70%), radial-gradient(44% 70% at 92% 100%, rgba(100,77,166,.4), transparent 70%); }
.footer__in { display: grid; grid-template-columns: 1.6fr 0.9fr 1.1fr 0.9fr 1.3fr; gap: 28px; padding-block: 56px 40px; }
.footer__brand img { height: 52px; width: auto; margin-bottom: 16px; }
.footer__brand p { max-width: 26em; }
.footer h3 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer nav li + li, .contact li + li { margin-top: 6px; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.contact li { display: flex; align-items: center; gap: 10px; }
.contact .ico { color: var(--accent); font-size: 16px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 16px; }
.social a:hover { background: var(--accent); color: #fff; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; font-size: 13px;
}

.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; font-size: 24px; box-shadow: 0 10px 24px -8px rgba(31,175,90,.7);
}
.wa-float:hover { background: #17964c; }

/* ---------- Responsive ---------- */
@media (min-width: 901px) and (max-width: 1200px) {
  .nav a:not(.btn) { padding-inline: 9px; font-size: 14.5px; }
  .header__in { gap: 16px; }
}

@media (max-width: 960px) { /* TABLET RULE: 961px+ = desktop layout (user request). Keep in sync with Nav v2 block + script.js innerWidth check */
  .header__cta { display: none; }
  .burger { display: grid; }
  .nav {
    position: absolute; inset-inline: 0; top: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px 20px;
    box-shadow: 0 24px 40px -24px rgba(36,59,99,.4);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px; font-size: 16px; }
  .nav a.is-active::after { display: none; }
  .nav__cta { display: inline-flex; margin-top: 10px; }
  .header__tools { margin-inline-start: auto; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__in { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .saudi { min-height: 0; aspect-ratio: 2 / 1; }
  .saudi__media img { object-position: left top; }
  .hero__in { grid-template-columns: 1fr; gap: 40px; padding-block: 40px 56px; }
  .hero__visual { max-width: 680px; margin-inline: auto; width: 100%; }
  .why { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  /* plans keep natural order on mobile: basic → popular → last (user request) */
  .faq { grid-template-columns: 1fr; gap: 28px; }
  .story, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .map-card iframe, .map-ph { height: 320px; }
  .values, .steps, .feat-grid, .addons, .incl { grid-template-columns: repeat(2, 1fr); }
  .stories { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .tl { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .faq__head { position: static; }
  .t-card { flex-basis: calc((100% - 20px) / 2); }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .cta { padding: 36px 28px; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .logo img { height: 40px; }
  .lang span { display: none; }
  .section { padding-block: 44px; }
  .hero-zone + .section { padding-top: 28px; }
  .section--tight { padding-block: 0 44px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .tech__in { flex-direction: column; text-align: center; gap: 10px; }

  .tech__label br { display: none; }
  .svc-featured, .svc-grid { grid-template-columns: 1fr; }
  .svc--lg { flex-direction: column; gap: 12px; padding: 24px; }
  .why__card { padding: 24px; }
  .why__grid { grid-template-columns: 1fr; gap: 22px; }
  .why__item { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
  .why__item .oct { grid-row: span 2; }
  .why__item h3 { margin-top: 0; }
  /* phones: photo on top, text below (text over the photo would be unreadable) */
  .saudi { flex-direction: column; align-items: stretch; min-height: 0; aspect-ratio: auto;
    background: linear-gradient(150deg, var(--navy), var(--primary)); }
  .saudi::before { display: none; }
  .saudi__media { position: static; order: -1; }
  .saudi__media img { height: auto; aspect-ratio: 3 / 2; }
  .saudi__text { width: 100%; padding: 28px 24px 32px; }
  .center .btn { width: 100%; }
  .page-hero { padding-block: 32px 44px; }
  .vm, .values, .steps, .feat-grid, .addons, .incl { grid-template-columns: 1fr; }
  .incl { padding: 24px 20px; }
  .filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 2px 20px 8px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .clients { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .projects { grid-template-columns: 1fr; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; margin-top: 0; }
  .lightbox img { max-height: calc(100vh - 210px); }
  .prose { font-size: 16.5px; }
  .prose h2 { font-size: 22px; } .prose h3 { font-size: 19px; }
  .post-nav { grid-template-columns: 1fr; }
  .page-hero__cta .btn { flex: 1 1 100%; }
  .tl { grid-template-columns: 1fr; row-gap: 0; }
  .tl li { padding: 0 34px 28px 0; }
  .tl li::before { top: 10px; bottom: 0; inset-inline: 9px auto; width: 2px; height: auto; }
  .tl li:first-child::before { inset-inline-start: 9px; }
  .tl li:last-child::before { display: none; }
  .form-card { padding: 24px 20px; }
  .form { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
  .compare table { min-width: 540px; font-size: 13.5px; }
  .compare th, .compare td { padding: 11px 12px; }
  .compare th[scope="row"], .compare thead th:first-child {
    position: sticky; inset-inline-start: 0; z-index: 1; background: #fff;
    max-width: 150px; box-shadow: -1px 0 0 var(--soft);
  }
  .compare thead th:first-child { background: var(--bg-alt); }
  .faq summary { padding: 16px 18px; font-size: 15px; }
  .faq details p { padding: 0 18px 18px; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .sectors li { width: 128px; padding: 16px 6px 14px; }
  .stats__in { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .slider { grid-template-columns: minmax(0, 1fr); }
  .slider__btn { display: none; }
  .t-card { flex-basis: 88%; }
  .posts { grid-template-columns: 1fr; }
  .cta__btns .btn { flex: 1 1 100%; }
  .footer__in { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 28px; }
}


/* =========================================================
   Enhancement layer — interactions, reveals, signature transitions
   ========================================================= */

/* ---- Reveal on scroll (classes are added by script.js; without JS everything stays visible) ---- */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity var(--motion-slow) var(--ease-premium) var(--d, 0s), translate var(--motion-slow) var(--ease-premium) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---- Buttons & links ---- */
.btn { transition: background-color var(--motion-normal), color var(--motion-normal), border-color var(--motion-normal), box-shadow var(--motion-normal), transform var(--motion-fast); }
.btn .ico--arrow, .more .ico { transition: transform var(--motion-normal) var(--ease-premium); }
.btn--wa-outline { background: #fff; color: #118244; border-color: var(--wa); }
.btn--wa-outline:hover { background: var(--wa); border-color: var(--wa); color: #fff; }

/* ---- Header ---- */
.nav a:not(.btn) { transition: color var(--motion-normal), background-color var(--motion-normal); }
.nav a:not(.btn)::after { transition: opacity var(--motion-normal); }
.icon-btn, .lang { transition: background-color var(--motion-normal), color var(--motion-normal); }

/* ---- Living service icons: each moves in its own way, slowly ---- */
.ico--live .a-cell, .ico--live .a-pkt, .ico--live .a-core { fill: currentColor; stroke: none; }
.ico--live .a-ring { transform-box: fill-box; transform-origin: center; }
.ico--live .a-wrench, .ico--live .a-line { transform-box: fill-box; }
.live-erp .a-cell { opacity: 0; animation: cell 6s ease-in-out infinite; }
.live-erp .a-cell:nth-of-type(3) { animation-delay: 2s; } .live-erp .a-cell:nth-of-type(4) { animation-delay: 4s; }
.live-calc .a-dot { animation: tap 4.8s ease-in-out infinite; }
.live-calc .a-dot:nth-of-type(3) { animation-delay: .8s; } .live-calc .a-dot:nth-of-type(4) { animation-delay: 1.6s; }
.live-calc .a-dot:nth-of-type(5) { animation-delay: 2.4s; } .live-calc .a-dot:nth-of-type(6) { animation-delay: 3.2s; } .live-calc .a-dot:nth-of-type(7) { animation-delay: 4s; }
.live-ai .a-ring { animation: ring 3.6s ease-out infinite; }
.live-net .a-pkt { animation: packet 7s linear infinite; }
.live-tools .a-wrench { transform-origin: 30% 70%; animation: wrench 5s ease-in-out infinite; }
.live-web .a-line { transform-origin: right center; animation: typeline 5s ease-in-out infinite; }
.live-web .a-line:nth-of-type(3) { animation-delay: .6s; }
@keyframes cell { 0%, 100% { opacity: 0; } 18%, 34% { opacity: .38; } 52% { opacity: 0; } }
@keyframes tap { 0%, 100% { opacity: 1; } 8% { opacity: .25; } 16% { opacity: 1; } }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(3.1); opacity: 0; } }
@keyframes packet {
  0% { transform: translate(0, 0); opacity: 0; } 5% { opacity: 1; } 28% { transform: translate(-6.4px, 5.4px); opacity: 0; }
  34% { transform: translate(0, 0); opacity: 0; } 39% { opacity: 1; } 62% { transform: translate(6.4px, 5.4px); opacity: 0; }
  68% { transform: translate(0, 0); opacity: 0; } 73% { opacity: 1; } 94%, 100% { transform: translate(0, -7px); opacity: 0; }
}
@keyframes wrench { 0%, 100% { transform: rotate(0); } 12% { transform: rotate(-9deg); } 24% { transform: rotate(5deg); } 34% { transform: rotate(0); } }
@keyframes typeline { 0%, 100% { transform: scaleX(1); } 40% { transform: scaleX(.35); } 70% { transform: scaleX(1); } }

/* ---- Why MUBTKIR: the four advantages as one connected ecosystem ---- */
.why__grid { position: relative; }
.why__item { position: relative; z-index: 1; }
.eco { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.eco path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.eco .eco__line { stroke: var(--border); stroke-width: 1.5; }
.eco .eco__pulse { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 7 100; stroke-dashoffset: 8; animation: eco-pulse 12s linear infinite; animation-delay: calc(var(--i) * 3s); }
.eco__hub {
  position: absolute; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; background: #fff; border: 1.5px solid var(--border); box-shadow: 0 0 0 5px #fff; opacity: 0; transition: opacity var(--motion-slow);
}
.eco__hub img { width: 18px; height: auto; }
.why__grid.is-eco .eco__hub { opacity: 1; }
.why__grid:not(.is-eco) .eco { display: none; }
.why__item .oct { transition: transform var(--motion-normal) var(--ease-premium); animation: eco-focus 12s linear infinite; animation-delay: calc(var(--i, 0) * 3s); }
.why__item h3 { animation: eco-title 12s linear infinite; animation-delay: calc(var(--i, 0) * 3s); }
@keyframes eco-pulse { 0% { stroke-dashoffset: 8; } 22%, 100% { stroke-dashoffset: -101; } }
@keyframes eco-focus { 0%, 16%, 40%, 100% { transform: scale(1); background-color: rgba(15,132,181,.1); } 22%, 32% { transform: scale(1.06); background-color: rgba(11,161,184,.24); } }
@keyframes eco-title { 0%, 16%, 40%, 100% { color: var(--ink); } 22%, 32% { color: var(--primary); } }

/* ---- Statistics: the existing pattern drifts almost imperceptibly ---- */

/* ---- Pricing: restrained pointer depth. Cards are plain 2D at rest; a transform exists only while the pointer is over a card. ---- */
.plan { transition: transform var(--motion-slow) var(--ease-premium), box-shadow var(--motion-normal), border-color var(--motion-normal); }
.plan.is-tilting { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 90ms linear, box-shadow var(--motion-normal); box-shadow: 0 30px 60px -34px rgba(36,59,99,.55); }
.plan::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--motion-normal);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(56,103,174,.10), transparent 70%);
}
.plan--featured::after { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(11,161,184,.16), transparent 70%); }
.plan.is-tilting::after { opacity: 1; }

/* ---- Testimonials: the middle card leads, neighbours stay readable ---- */
.t-card { transition: transform var(--motion-slow) var(--ease-premium), opacity var(--motion-slow) var(--ease-premium), box-shadow var(--motion-slow); }
.t-card figcaption { transition: transform var(--motion-slow) var(--ease-premium); }
.slider.has-center .t-card { opacity: .72; transform: scale(.955); }
.slider.has-center .t-card.is-center { opacity: 1; transform: scale(1); box-shadow: 0 26px 50px -30px rgba(36,59,99,.55); border-color: rgba(56,103,174,.4); }
.slider.has-center .t-card:not(.is-center) figcaption { transform: translateY(4px); }
.t-track { scroll-behavior: smooth; }

/* ---- FAQ ---- */
.faq details > p { animation: faq-in var(--motion-slow) var(--ease-premium); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
.faq summary .ico { transition: transform var(--motion-normal) var(--ease-premium); }

/* ---- Final CTA → Footer: the page gradually becomes the footer ---- */
.footer { margin-top: 124px; }
.footer::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: 170px; margin-bottom: -1px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 170' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%230BA1B8' stroke-opacity='.26' stroke-width='1' vector-effect='non-scaling-stroke' d='M0 84C420 58 900 112 1440 70'/%3E%3Cpath fill='none' stroke='%233867AE' stroke-opacity='.2' stroke-width='1' vector-effect='non-scaling-stroke' d='M0 120C500 136 980 92 1440 116'/%3E%3Cpath fill='%23322E6B' fill-opacity='.22' d='M0 132C420 118 960 146 1440 122V170H0z'/%3E%3Cpath fill='%23322E6B' d='M0 154C460 142 980 162 1440 146V170H0z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat, linear-gradient(to bottom, rgba(50,46,107,0) 0%, rgba(50,46,107,.04) 45%, rgba(50,46,107,.16) 82%, rgba(50,46,107,.3) 100%);
}
main > :last-child { padding-bottom: 40px; }
.footer { color: rgba(255,255,255,.86); }
.footer__in { padding-block: 40px 32px; gap: 36px; }
.footer nav a, .contact a { display: inline-block; transition: color var(--motion-normal), transform var(--motion-normal) var(--ease-premium); }
.social a { transition: background-color var(--motion-normal), color var(--motion-normal), transform var(--motion-normal) var(--ease-premium); }
.footer__bottom { padding-block: 16px; color: rgba(255,255,255,.72); }

/* ---- Hover language (pointer devices only, so touch never gets a stuck hover) ---- */
@media (hover: hover) and (pointer: fine) {
  .btn:hover .ico--arrow { transform: translateX(-5px); }
  .btn--primary:hover, .btn--white:hover { box-shadow: 0 12px 24px -14px rgba(56,103,174,.7); }
  .svc, .post, .client, .project, .channel, .addon, .value, .story-card {
    transition: transform var(--motion-normal) var(--ease-premium), box-shadow var(--motion-normal), border-color var(--motion-normal), background-color var(--motion-normal);
  }
  .svc:hover, .post:hover, .client:hover, .project:hover, a.channel:hover, .addon:hover, .value:hover { transform: translateY(var(--hover-lift)); }
  .svc--lg:hover { transform: translateY(var(--hover-lift-lg)); }
  .svc .oct, .sectors .ico, .value .oct, .addon .oct { transition: transform var(--motion-normal) var(--ease-premium); }
  .svc:hover .oct, .value:hover .oct, .addon:hover .oct { transform: scale(var(--hover-scale)); }
  .sectors li:hover .ico { transform: translateY(-3px) scale(var(--hover-scale)); }
  .post__cover .ico, .post__cover img { transition: transform var(--motion-slow) var(--ease-premium); }
  .post:hover .post__cover img { transform: scale(1.04); }
  .post:hover .post__cover .ico { transform: scale(1.08); }
  .post h3 a { transition: color var(--motion-normal); }
  .post:hover h3 a { color: var(--primary); }
  .footer nav a:hover, .contact a:hover { transform: translateX(-3px); text-decoration: none; color: #fff; }
  .social a:hover { transform: translateY(-2px); }
  .wa-float { transition: transform var(--motion-normal) var(--ease-premium), background-color var(--motion-normal); }
  .wa-float:hover { transform: translateY(-3px); }
}
@media (hover: none) { .svc:active, .post:active, .plan:active { transform: scale(.99); } }

/* ---- Responsive behaviour of the enhanced parts ---- */
@media (max-width: 900px) {
  /* tablet + phone: the original artwork as ONE untouched image (no splitting).
     It is anchored toward the skyline side so the tall layout does not land on the empty middle. */
  .hero-zone::before { background-position: 84% bottom; }
  .hero-zone::after { display: none; }
  .hero__visual { margin-inline-end: 0; }
  .tech__in { padding-block: 8px 24px; }
}
@media (max-width: 640px) {
  /* order on phones: text → CTAs → screenshot → phone → ZATCA → trust points */
  .hero__in { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-block: 32px 28px; }
  .hero__text { display: contents; }
  .hero__text > .pill { align-self: flex-start; }
  .hero__cta { margin-block: 24px 28px; }
  .hero__visual { order: 5; max-width: none; padding-bottom: 5%; }
  .phone-mock { width: 19%; }
  .zatca { text-align: start; margin-top: -1.6%; margin-left: 16%; }
  .hero__points { order: 6; margin-top: 28px; justify-content: center; }
  /* ZATCA tag: compact on phones so it stays in proportion with the tablet */
  .zatca { max-width: 78%; gap: 7px; padding: 5px 9px; border-radius: 9px; }
  .zatca__logo { height: 24px; }
  .zatca b { font-size: 9.5px; line-height: 1.5; }
  .zatca small { display: none; }
  .tech__in { padding-block: 4px 18px; }
  .marquee { width: 100%; }
  .tech__list li { font-size: 15px; margin-inline: 20px; }
  .eco, .eco__hub { display: none; }
  .footer { margin-top: 70px; }
  .footer::after { height: 110px; }
  .footer__in { padding-block: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; translate: none; }
  .slider.has-center .t-card { opacity: 1; transform: none; }
  .ico--live .a-pkt, .ico--live .a-ring, .eco .eco__pulse { display: none; }

  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* v1.9.3: keep both hero CTA buttons side-by-side on tablet (641-1200px);
   avoids wrap when hero__text is narrower than the sum of both buttons. */
@media (min-width: 641px) and (max-width: 1200px) {
  .hero__cta { flex-wrap: nowrap; align-items: center; }
  .hero__cta .btn { white-space: nowrap; }
  .hero__cta .btn--lg { padding: 12px 20px; font-size: 14px; }
}

/* =========================================================
   v1.9.5 additions
   ========================================================= */

/* Hero H1 split (bulletproof: keeps the gradient text OUT of the H1
   so no HTML minifier can strip inline tags inside <h1>). */
.hero-h1 { margin-block: 18px 0; }
.hero-h1-sub {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(30px, 3.7vw, 47px);
  line-height: 1.5;
  margin-block: 0 16px;
  font-style: normal;
}
.page-hero .hero-h1 { margin-block: 14px 0; }
.page-hero .hero-h1-sub {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.55;
  margin-block: 0 12px;
  max-width: 18em;
}

/* (tablet zoom rule lives at the TOP of this file — see "TABLET 90% SCALE") */

/* =========================================================
   v1.9.7 additions — Daftra pricing / Accountants / Videos
   ========================================================= */

/* ---- Daftra pricing badges under hero ---- */
.dp-badges {
  display: flex; flex-wrap: wrap; gap: 14px 22px; padding: 0; margin: 18px 0 0;
  list-style: none; justify-content: center;
}
.dp-badges li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--muted);
}
.dp-badges .ico { width: 16px; height: 16px; color: var(--primary); }

/* ---- Billing toggle ---- */
.dp-billing {
  display: inline-flex; margin: 0 auto 32px; background: var(--bg-alt);
  border-radius: 999px; padding: 4px; gap: 4px;
  border: 1px solid var(--border);
}
.dp-billing__opt {
  padding: 10px 22px; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-weight: 600; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s ease;
}
.dp-billing__opt.is-active {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 12px -6px rgba(56, 103, 174, .5);
}
.dp-billing__save {
  font-size: 11px; padding: 2px 8px; background: rgba(255,255,255,.25);
  border-radius: 999px;
}
.dp-billing__opt:not(.is-active) .dp-billing__save {
  background: rgba(56, 103, 174, .1); color: var(--primary);
}

/* Center the toggle within the container */
#plans .container > .dp-billing { display: flex; }

/* ---- Daftra plan cards ---- */
.dp-plans {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-block: 0 40px;
}
.dp-plan {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px 24px; text-align: center;
  transition: transform .25s var(--ease-premium), box-shadow .25s var(--ease-premium);
}
.dp-plan:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(36,59,99,.25); }
.dp-plan--featured {
  border: 2px solid var(--primary); background: linear-gradient(180deg, rgba(56,103,174,.04), #fff 40%);
  transform: scale(1.03);
}
.dp-plan__tag {
  position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.dp-plan__name { font-size: 22px; margin: 0 0 20px; color: var(--ink); }
.dp-plan__price { margin-bottom: 24px; }
.dp-plan__price b { font-size: 44px; font-weight: 800; color: var(--ink); }
.dp-plan__price small { font-size: 20px; color: var(--muted); font-weight: 600; }
.dp-plan__price em {
  display: block; font-style: normal; font-size: 14px;
  color: var(--muted); margin-top: 4px;
}
.dp-plan__yearly small { display: block; font-size: 12px; margin-top: 2px; }
.dp-plan__cta { width: 100%; justify-content: center; }

/* ---- Compare table ---- */
.dp-compare {
  overflow-x: auto; border: 1px solid var(--border);
  border-radius: var(--r-lg); background: #fff;
}
.dp-table {
  width: 100%; min-width: 720px; border-collapse: collapse;
  font-size: 14px; text-align: start;
}
.dp-table th, .dp-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.dp-table thead th {
  background: var(--bg-alt); font-weight: 700;
  color: var(--ink); font-size: 15px;
  position: sticky; top: 0; z-index: 2;
}
.dp-table__feat { text-align: start; font-weight: 600; }
.dp-table__plan { text-align: center; }
.dp-table__plan.is-featured, .dp-table td.is-featured {
  background: rgba(56, 103, 174, .05);
}
.dp-table__section td {
  background: linear-gradient(90deg, rgba(56,103,174,.08), transparent);
  font-weight: 800; color: var(--primary); font-size: 15px;
  display: flex; align-items: center; gap: 10px;
}
.dp-table__section .ico { width: 20px; height: 20px; }
.dp-table td:not(.dp-table__feat) { text-align: center; }
.dp-yes { display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(34, 197, 94, .12); color: #16a34a;
}
.dp-yes .ico { width: 16px; height: 16px; }
.dp-no { color: #cbd5e1; font-size: 20px; font-weight: 300; }
.dp-txt { font-size: 13px; color: var(--muted); line-height: 1.5; }
.dp-new {
  display: inline-block; margin-inline-start: 6px;
  background: rgba(168, 85, 247, .12); color: #7c3aed;
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; vertical-align: middle;
}

@media (max-width: 900px) {
  .dp-plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .dp-plan--featured { transform: none; }
  .dp-table { font-size: 13px; }
  .dp-table th, .dp-table td { padding: 10px 12px; }
}

/* ---- Accountants ---- */
.acct-filters {
  display: flex; flex-wrap: wrap; gap: 12px 16px;
  padding: 20px; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  margin-bottom: 28px; align-items: flex-end;
}
.acct-filters label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  flex: 1 1 180px;
}
.acct-filters select {
  padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--r-sm); background: #fff;
  font: inherit; color: var(--ink); cursor: pointer;
}
.acct-filters select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

.accts {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.acct {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s, box-shadow .2s;
}
.acct:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -22px rgba(36,59,99,.25); }
.acct[hidden] { display: none; }
.acct__photo {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--bg-alt); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.acct__photo img { width: 100%; height: 100%; object-fit: cover; }
.acct__ph { color: var(--muted); }
.acct__ph .ico { width: 40px; height: 40px; }
.acct__name { margin: 0; font-size: 18px; color: var(--ink); }
.acct__spec { margin: 0; color: var(--muted); font-size: 14px; }
.acct__meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 13px; color: var(--muted);
}
.acct__meta li {
  display: inline-flex; align-items: center; gap: 4px;
}
.acct__meta .ico { width: 14px; height: 14px; color: var(--primary); }
.acct__progs { display: flex; flex-wrap: wrap; gap: 6px; }
.acct__progs .chip {
  padding: 3px 10px; font-size: 12px; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: 999px; color: var(--ink);
}
.acct__cta { display: flex; gap: 8px; margin-top: auto; }
.acct__cta .btn { flex: 1; justify-content: center; }

/* ---- Videos ---- */
.vtabs {
  display: flex; overflow-x: auto; gap: 6px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px; scrollbar-width: thin;
}
.vtabs__tab {
  padding: 12px 20px; border: 0; background: transparent;
  font: inherit; font-weight: 600; color: var(--muted);
  cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all .2s;
}
.vtabs__tab:hover { color: var(--ink); }
.vtabs__tab.is-active {
  color: var(--primary); border-bottom-color: var(--primary);
}
.vgrid-wrap[hidden] { display: none; }
.vgrid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.vcard {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.vcard:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -22px rgba(36,59,99,.25); }
.vcard--pinned { border-color: var(--primary); }
.vcard__thumb {
  position: relative; display: block; aspect-ratio: 16 / 9;
  background: var(--bg-alt); overflow: hidden;
}
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard__ph {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: var(--muted);
}
.vcard__ph .ico { width: 40px; height: 40px; }
.vcard__play {
  position: absolute; top: 50%; inset-inline-start: 50%;
  transform: translate(50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,.7); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: transform .2s;
}
.vcard:hover .vcard__play { transform: translate(50%, -50%) scale(1.1); }
.vcard__pin {
  position: absolute; top: 8px; inset-inline-end: 8px;
  background: var(--primary); color: #fff;
  font-size: 14px; padding: 4px 8px; border-radius: 999px;
}
.vcard__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vcard__title { margin: 0; font-size: 15px; line-height: 1.4; }
.vcard__title a { color: var(--ink); text-decoration: none; }
.vcard__title a:hover { color: var(--primary); }
.vcard__date { font-size: 12px; color: var(--muted); margin-top: auto; }

@media (max-width: 1100px) {
  .vgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .vgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .vgrid { grid-template-columns: 1fr; }
  .acct-filters label { flex: 1 1 100%; }
}

/* ---- v1.9.8: signup form ---- */
.field .label { display: block; font-weight: 600; margin-bottom: 8px; }
.seg { display: inline-flex; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 4px; }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; }
.seg__opt span { display: inline-block; padding: 8px 20px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: all .2s; }
.seg__opt input:checked + span { background: var(--primary); color: #fff; box-shadow: 0 4px 12px -6px rgba(56,103,174,.5); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.field input[type="file"] { padding: 9px 12px; background: var(--bg-alt); cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-inline-end: 12px; padding: 6px 14px; border: 0; border-radius: 999px;
  background: var(--primary); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.field .hint { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.form-thanks { text-align: center; padding: 24px 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.form-thanks[hidden] { display: none; }
.form-thanks h3 { margin: 4px 0 0; font-size: 22px; }
.form-thanks p { color: var(--muted); max-width: 40ch; margin: 0 0 8px; }



/* =========================================================
   v1.9.11 — Comparison pages
   ========================================================= */
.cmp-overview { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.cmp-card {
  flex: 0 1 340px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.cmp-card img { max-width: 80px; height: auto; border-radius: 8px; }
.cmp-card h3 { margin: 0; font-size: 22px; }
.cmp-card p { color: var(--muted); margin: 0; font-size: 14px; max-width: 32ch; }
.cmp-card--mubtkir { border-color: var(--primary); background: linear-gradient(180deg, rgba(56,103,174,.05), #fff 40%); }
.cmp-card__ph {
  width: 64px; height: 64px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 28px; font-weight: 800;
  background: var(--bg-alt); color: var(--primary);
}
.cmp-vs {
  font-size: 28px; font-weight: 900; color: var(--muted);
  background: var(--bg-alt); width: 56px; height: 56px;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}

.cmp-verdict__text { max-width: 80ch; margin: 0 auto 28px; color: var(--muted); text-align: center; }
.cmp-verdict__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cmp-verdict__col {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px;
}
.cmp-verdict__col--m { border-color: var(--primary); background: linear-gradient(180deg, rgba(56,103,174,.04), #fff 40%); }
.cmp-verdict__col h3 { margin: 0 0 16px; font-size: 18px; }
.cmp-verdict__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cmp-verdict__col li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.cmp-verdict__col .ico { width: 18px; height: 18px; color: #16a34a; flex-shrink: 0; margin-top: 3px; }

@media (max-width: 700px) {
  .cmp-overview { flex-direction: column; }
  .cmp-verdict__grid { grid-template-columns: 1fr; }
}









/* =========================================================
   v1.9.16 — Mubtkir ERP page (native components + mockup ideas)
   ========================================================= */
/* Trust cards inside the hero — one visual unit */
.etrust {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.etrust li {
  display: flex; align-items: center; gap: 12px; text-align: start;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 13px 15px; box-shadow: 0 14px 30px -24px rgba(36,59,99,.55);
}
.etrust__ico {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; background: var(--soft);
}
.etrust__ico .ico { width: 21px; height: 21px; color: var(--primary); }
.etrust li b { font-size: 12px; line-height: 1.6; color: var(--ink); font-weight: 700; }

/* One-platform chips + pill */
.eflow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px;
}
.eflow li {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 15px 6px 12px; text-align: center;
  transition: transform var(--motion-fast) var(--ease-premium), box-shadow var(--motion-fast);
}
.eflow li:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -20px rgba(56,103,174,.4); }
.eflow__ico {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; background: var(--soft);
}
.eflow__ico .ico { width: 22px; height: 22px; color: var(--primary); }
.eflow li:nth-child(even) .eflow__ico .ico { color: var(--secondary); }
.eflow b { font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.eflow small { font-size: 10.5px; color: var(--muted); }
.eflow__pill {
  width: fit-content; margin: 18px auto 0; padding: 9px 26px;
  background: var(--soft); border: 1px solid var(--border); border-radius: 999px;
  color: var(--primary); font-weight: 700; font-size: 14px; text-align: center;
}

/* Modules panel */
.epanel {
  background: linear-gradient(160deg, #F2F7FC, #F7FAFD);
  border: 1px solid var(--border); border-radius: 24px;
  padding: clamp(22px, 3vw, 40px);
}
.epanel .section__head { margin-bottom: 18px; }
.etabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.etabs__tab {
  border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 20px; background: #fff; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink); cursor: pointer;
  transition: background var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast);
}
.etabs__tab:hover { border-color: var(--secondary); color: var(--secondary); }
.etabs__tab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.epanel__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(22px, 3vw, 40px); align-items: center; }
.epanel__mslot[hidden] { display: none; }
.mod[hidden] { display: none; }
.mod h3 { font-size: clamp(19px, 2.1vw, 24px); margin: 0 0 8px; }
.mod > p { color: var(--muted); margin: 0 0 16px; max-width: 52ch; }
.mod .ticks { margin-bottom: 20px; }
.m-media {
  margin: 0; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 28px 55px -36px rgba(36,59,99,.5);
}
.m-media img, .m-media video, .m-media__v { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Duo: KSA + fit */
.eduo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: stretch; }
.eduo__col { padding: 28px; border-radius: 22px; }
.eduo__col h2 { font-size: clamp(19px, 2.2vw, 25px); margin: 0 0 6px; }
.eduo__col > p { color: var(--muted); margin: 0 0 18px; font-size: 14.5px; }
.eduo__col--soft { background: var(--bg-alt); border: 1px solid var(--border); }
.eduo__col--ksa {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; align-items: center;
  background:
    radial-gradient(70% 90% at 10% 90%, rgba(11,161,184,.10), transparent 65%),
    linear-gradient(150deg, #EDF4FB, #F2F9FB);
  border: 1px solid var(--border); overflow: hidden;
}
.eksa__img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: 14px; }
.ticks--sm { gap: 9px; }
.ticks--sm li { font-size: 13.5px; }
.efit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.efit__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 18px 10px; background: #fff; border: 1px solid var(--border);
  border-radius: 15px; text-align: center;
}
.efit__item .ico { width: 26px; height: 26px; color: var(--primary); }
.efit__item:nth-child(even) .ico { color: var(--secondary); }
.efit__item b { font-size: 13px; line-height: 1.4; }

/* 6-step implementation grid (site .steps base) */
.steps--6 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1200px) {
  .etrust { grid-template-columns: repeat(3, 1fr); }
  .eflow { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1100px) {
  .epanel__grid { grid-template-columns: 1fr; }
  .eduo { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .etrust { grid-template-columns: 1fr 1fr; }
  .eflow { grid-template-columns: repeat(3, 1fr); }
  .efit { grid-template-columns: 1fr 1fr; }
  .eduo__col--ksa { grid-template-columns: 1fr; }
  .eksa__img { min-height: 170px; }
  .steps--6 { grid-template-columns: 1fr; }
  .etabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .etabs__tab { flex-shrink: 0; }
}
.section--alt { background: var(--bg-alt); }


/* =========================================================
   Inline text editor v4 — auto-discovery, all backgrounds
   ========================================================= */
.mt-fab {
  position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 10001;
  padding: 12px 22px; border: none; border-radius: 999px; cursor: pointer;
  background: var(--primary); color: #fff; font: 700 14px/1.4 inherit;
  box-shadow: 0 8px 24px -8px rgba(36,59,99,.6);
  transition: transform .2s, background .2s;
}
.mt-fab:hover { background: var(--secondary); transform: scale(1.04); }

/* In edit mode: every text element shows a subtle dashed border on hover */
body.mt-editing h1, body.mt-editing h2, body.mt-editing h3, body.mt-editing h4,
body.mt-editing p, body.mt-editing span, body.mt-editing b, body.mt-editing small,
body.mt-editing li, body.mt-editing blockquote, body.mt-editing figcaption,
body.mt-editing label, body.mt-editing summary, body.mt-editing a,
body.mt-editing [data-mt] {
  cursor: text; border-radius: 4px;
  transition: outline-color .15s;
}
body.mt-editing h1:hover, body.mt-editing h2:hover, body.mt-editing h3:hover, body.mt-editing h4:hover,
body.mt-editing p:hover, body.mt-editing span:hover, body.mt-editing b:hover, body.mt-editing small:hover,
body.mt-editing li:hover, body.mt-editing blockquote:hover, body.mt-editing figcaption:hover,
body.mt-editing label:hover, body.mt-editing summary:hover, body.mt-editing a:hover,
body.mt-editing [data-mt]:hover {
  outline: 2px dashed rgba(56,103,174,.4); outline-offset: 3px;
}
body.mt-editing [contenteditable] {
  outline: 2px solid var(--primary) !important; outline-offset: 3px;
  background: rgba(56,103,174,.06);
}
body.mt-editing a:hover, body.mt-editing a[data-mt]:hover {
  outline-color: var(--purple); cursor: pointer;
}

/* Dark backgrounds: white borders */
body.mt-editing .story__panel h1:hover, body.mt-editing .story__panel h2:hover,
body.mt-editing .story__panel h3:hover, body.mt-editing .story__panel p:hover,
body.mt-editing .story__panel li:hover, body.mt-editing .story__panel b:hover,
body.mt-editing .story__panel a:hover,
body.mt-editing .saudi h2:hover, body.mt-editing .saudi p:hover,
body.mt-editing .saudi span:hover, body.mt-editing .saudi a:hover,
body.mt-editing .cta h2:hover, body.mt-editing .cta p:hover,
body.mt-editing .cta span:hover, body.mt-editing .cta a:hover,
body.mt-editing .stats b:hover, body.mt-editing .stats span:hover,
body.mt-editing .footer h3:hover, body.mt-editing .footer p:hover,
body.mt-editing .footer a:hover, body.mt-editing .footer small:hover,
body.mt-editing .footer li:hover {
  outline-color: rgba(255,255,255,.6) !important;
}
body.mt-editing .story__panel [contenteditable],
body.mt-editing .saudi [contenteditable],
body.mt-editing .cta [contenteditable],
body.mt-editing .stats [contenteditable],
body.mt-editing .footer [contenteditable] {
  outline-color: #fff !important; background: rgba(255,255,255,.1);
}

/* Toast & popup (unchanged) */
.mt-toast {
  position: fixed; bottom: 80px; inset-inline-start: 24px; z-index: 10002;
  padding: 10px 20px; border-radius: 12px; font: 600 14px/1.4 inherit;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; pointer-events: none;
}
.mt-toast--ok { opacity: 1; transform: translateY(0); background: #16a34a; color: #fff; }
.mt-toast--err { opacity: 1; transform: translateY(0); background: #dc2626; color: #fff; }
.mt-overlay {
  position: fixed; inset: 0; z-index: 10003; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.4); backdrop-filter: blur(4px);
}
.mt-popup {
  background: #fff; border-radius: 18px; padding: 28px; width: 90%; max-width: 440px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.4); direction: rtl;
}
.mt-popup h3 { margin: 0 0 16px; font-size: 18px; }
.mt-popup label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.mt-popup__input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 15px; margin-bottom: 16px; }
.mt-popup__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.mt-popup__save { padding: 10px 22px; border: none; border-radius: 10px; background: var(--primary); color: #fff; font: 700 14px/1 inherit; cursor: pointer; }
.mt-popup__del { padding: 10px 16px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: #dc2626; font: 600 13px/1 inherit; cursor: pointer; }
.mt-popup__cancel { padding: 10px 16px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--muted); font: 600 13px/1 inherit; cursor: pointer; }

/* =========================================================
   Cookie consent banner
   ========================================================= */
.ck-banner {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px;
  background: var(--ink); color: #fff;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
  font-size: 14px; line-height: 1.6;
}
.ck-banner[hidden] { display: none; }
.ck-banner p { margin: 0; flex: 1; }
.ck-banner__btns { display: flex; gap: 10px; flex-shrink: 0; }
.ck-banner .btn--sm { padding: 8px 20px; font-size: 13px; border-radius: 10px; }
.ck-banner .btn--primary { background: var(--accent); border-color: var(--accent); }
.ck-banner .btn--outline { border-color: rgba(255,255,255,.4); color: #fff; }
@media (max-width: 640px) {
  .ck-banner { flex-direction: column; text-align: center; padding: 18px 16px; }
  .ck-banner__btns { width: 100%; justify-content: center; }
}

/* =========================================================
   Header dropdown (sub-menu) support
   ========================================================= */
.nav li { position: relative; }
.nav .sub-menu {
  display: none; position: absolute; top: 100%; inset-inline-end: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 8px 0; min-width: 200px; z-index: 100;
  box-shadow: 0 12px 32px -12px rgba(36,59,99,.25);
  list-style: none; margin: 0;
}
.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu { display: block; }
.nav .sub-menu li { margin: 0; }
.nav .sub-menu a {
  display: block; padding: 10px 20px; font-size: 14px; font-weight: 500;
  color: var(--ink); white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav .sub-menu a:hover { background: var(--soft); color: var(--primary); }
/* Parent item indicator */
.nav > ul > li:has(.sub-menu) > a::after {
  content: ''; display: inline-block; width: 6px; height: 6px;
  border-inline-end: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-inline-start: 6px; vertical-align: middle; margin-top: -2px;
}
@media (max-width: 960px) {
  .nav .sub-menu {
    position: static; box-shadow: none; border: none; border-radius: 0;
    padding: 0 16px; background: var(--soft);
  }
}

/* Accountant popup */
.acct-popup { text-align: center; max-width: 480px; }
.acct-popup__photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: block; }
.acct-popup .acct__meta { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.acct-popup .acct__meta li { display: flex; align-items: center; gap: 5px; font-size: 14px; }
.acct-popup .acct__progs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.acct-popup .acct__cta { display: flex; gap: 12px; justify-content: center; }
.acct__city { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.acct__city .ico { width: 15px; height: 15px; }

/* Signup form grid: 6-column base so half (3) and third (2) both fit */
.form--signup { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px 20px; }
.form--signup .field { grid-column: span 3; }
.form--signup .field--third { grid-column: span 2; }
.form--signup .field--full { grid-column: 1 / -1; }
/* Tablet: form full-width, sidebar below, two fields per row */
@media (max-width: 1200px) {
  .mubtkir-page-signup .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .form--signup .field--third { grid-column: span 3; }
  .form--signup .seg { flex-wrap: wrap; }
  .form--signup .seg__opt span { white-space: nowrap; padding-inline: 16px; }
}
@media (max-width: 760px) {
  .form--signup { grid-template-columns: 1fr; }
  .form--signup .field, .form--signup .field--third, .form--signup .field--full { grid-column: 1 / -1; }
}
/* Marketing consent checkbox */
.check-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1.6; }
.check-label input[type="checkbox"] { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }

/* Accountant card: specialty + city ALWAYS on one line */
.acct__spec { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 8px; white-space: nowrap; overflow: hidden; margin: 0; }
.acct__spec-t { overflow: hidden; text-overflow: ellipsis; }
.acct__sep { color: var(--border); }
.acct__city { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; flex-shrink: 0; margin: 0; }
.acct__city .ico { width: 14px; height: 14px; }
/* Accountant popup v3 (inline script in inc/accountants.php) */
.acct-ov { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15,23,42,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.acct-pp { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 20px; padding: 32px 24px 24px; text-align: center; direction: rtl; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.acct-pp__photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: block; }
.acct-pp__ph { display: flex !important; align-items: center; justify-content: center; background: var(--soft); color: var(--muted); }
.acct-pp__ph .ico { width: 40px; height: 40px; }
.acct-pp__name { margin: 0 0 4px; font-size: 20px; color: var(--ink); }
.acct-pp__spec { margin: 0; color: var(--muted); font-size: 14px; }
.acct-pp__meta { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px; }
.acct-pp__meta li { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--ink); }
.acct-pp__meta .ico { width: 15px; height: 15px; color: var(--primary); }
.acct-pp__progs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.acct-pp__cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.acct-pp__close { position: absolute; top: 12px; inset-inline-start: 12px; width: 34px; height: 34px; border: none; border-radius: 50%; background: var(--soft); color: var(--ink); font-size: 16px; cursor: pointer; }
.acct-pp__close:hover { background: var(--border); }

/* =========================================================
   Comparison page table styling
   ========================================================= */
.dp-compare { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 40px; }
.dp-table {
  width: 100%; border-collapse: collapse; font-size: 15px;
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.dp-table th, .dp-table td {
  padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--border);
}
.dp-table th { background: var(--bg-alt); font-weight: 700; color: var(--ink); font-size: 16px; }
.dp-table__feat { text-align: start !important; font-weight: 600; color: var(--ink); }
.dp-table__section td {
  background: var(--soft); font-weight: 700; color: var(--primary);
  text-align: start !important; font-size: 14px; padding: 10px 18px;
  border-bottom: 2px solid var(--border);
}
.dp-table__plan { min-width: 160px; }
.dp-table__plan.is-featured { background: rgba(56,103,174,.04); }
.dp-table tbody tr:hover { background: rgba(56,103,174,.03); }
.dp-yes {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(11,161,184,.12); color: var(--accent);
}
.dp-yes .ico { width: 16px; height: 16px; }
.dp-no { color: #cbd5e1; font-size: 18px; }
.dp-txt { font-size: 14px; color: var(--ink); font-weight: 500; }
@media (max-width: 640px) {
  .dp-table th, .dp-table td { padding: 10px 12px; font-size: 13px; }
  .dp-table__plan { min-width: 100px; }
}


/* =========================================================
   Nav v2: supports both flat <a> and wp_nav_menu <ul><li><a>
   ========================================================= */
.nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: block; font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 8px 12px; border-radius: 8px; white-space: nowrap; text-decoration: none;
}
.nav > ul > li > a:hover { color: var(--primary); background: var(--soft); }
.nav > ul > li.current-menu-item > a,
.nav > ul > li.current-menu-ancestor > a,
.nav > ul > li.current_page_item > a { color: var(--primary); }
.nav > ul > li.menu-item-has-children > a::after {
  content: ''; display: inline-block; width: 5px; height: 5px;
  border-inline-end: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-inline-start: 6px; vertical-align: 2px;
}
.nav .sub-menu {
  display: none; position: absolute; top: calc(100% + 6px); inset-inline-end: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 8px 0; min-width: 210px; z-index: 100;
  box-shadow: 0 16px 40px -16px rgba(36,59,99,.3);
  list-style: none; margin: 0;
}
.nav > ul > li:hover > .sub-menu,
.nav > ul > li:focus-within > .sub-menu { display: block; }
.nav .sub-menu li { margin: 0; }
.nav .sub-menu a {
  display: block; padding: 10px 20px; font-size: 14px; font-weight: 500;
  color: var(--ink); white-space: nowrap; text-decoration: none;
}
.nav .sub-menu a:hover { background: var(--soft); color: var(--primary); }

@media (max-width: 960px) {
  .nav { max-height: calc(100vh - var(--header-h, 76px)); max-height: calc(100dvh - var(--header-h, 76px)); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .nav > ul { flex-direction: column; align-items: stretch; width: 100%; gap: 2px; }
  .nav > ul > li > a { padding: 12px; font-size: 16px; white-space: normal; }
  .nav > ul > li.menu-item-has-children > a::after { float: inline-end; margin-top: 8px; transition: transform .2s; }
  .nav > ul > li.menu-item-has-children.is-open > a::after { transform: rotate(-135deg); margin-top: 12px; }
  /* Sub-menus are CLOSED by default on mobile; open only on tap (like desktop click) */
  .nav .sub-menu,
  .nav > ul > li:hover > .sub-menu,
  .nav > ul > li:focus-within > .sub-menu {
    display: none; position: static; box-shadow: none; border: none; border-radius: 10px;
    padding: 4px 0; margin: 0 0 4px 12px; background: var(--soft); min-width: 0;
  }
  .nav > ul > li.is-open > .sub-menu { display: block; }
  .nav .sub-menu a { padding: 9px 16px; font-size: 15px; }
}
@media (min-width: 961px) and (max-width: 1200px) {
  .nav > ul > li > a { padding: 8px 8px; font-size: 14px; }
  .header__cta .btn { padding-inline: 16px; font-size: 14px; }
}
/* Legacy mobile dropdown block (≤1024) must not force-open sub-menus either */
@media (max-width: 960px) {
  .nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: none; }
  .nav li.is-open > .sub-menu { display: block; }
}
.acct-popup { position: relative; }
.acct-popup__close { position: absolute; top: 12px; inset-inline-start: 12px; width: 32px; height: 32px; border: none; border-radius: 50%; background: var(--soft); color: var(--ink); font-size: 16px; cursor: pointer; }
.acct-popup__close:hover { background: var(--border); }
