/* Al-Mizan site — one stylesheet, RTL + LTR via logical properties. */
:root {
  --navy: #0b1d36;
  --navy-2: #12305a;
  --blue: #2b7bc0;
  --gold: #c99a2e;
  --gold-2: #e2b852;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --ink: #142033;
  --muted: #55657a;
  --line: #dbe3ec;
  --on-dark: #eaf1fa;
  --on-dark-muted: #a9bbd2;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 29, 54, .06), 0 10px 30px rgba(11, 29, 54, .07);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1424;
    --surface: #101e33;
    --surface-2: #0d192b;
    --ink: #e6eef8;
    --muted: #9db0c8;
    --line: #1f324c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 1.0625rem; line-height: 1.75; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: #1a1200; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.ic-xl { width: 64px; height: 64px; }
.muted { color: var(--muted); }
.mt { margin-top: 2.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.25em; border-radius: 12px; font: inherit; font-weight: 600; font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .85em 1.5em; font-size: 1.05rem; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1d1404; }
.btn-gold:hover { background: var(--gold-2); }
.btn-line { border-color: rgba(234, 241, 250, .45); color: var(--on-dark); }
.btn-line:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, .06); }
.btn-line-dark { border-color: var(--line); color: var(--ink); }
.btn-line-dark:hover { border-color: var(--blue); }
.btn-ghost { color: var(--on-dark); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-dark { background: var(--navy); color: #fff; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(11, 29, 54, .94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none !important; flex: none; }
.brand img { width: 64px; height: auto; filter: drop-shadow(0 0 10px rgba(226, 184, 82, .25)); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand-txt b { font-size: 1.2rem; }
.brand-txt small { color: var(--gold-2); font-size: .78rem; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav a { color: var(--on-dark-muted); padding: .45em .7em; border-radius: 8px; font-size: .95rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .07); text-decoration: none; }
.nav .nav-lang { color: var(--gold-2); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; background: none; border: 0; color: var(--on-dark); padding: 8px; border-radius: 8px; cursor: pointer; }
.menu-btn .ic { width: 28px; height: 28px; }

@media (max-width: 1240px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 16px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: none; margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8em .6em; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .top-actions { margin-inline-start: auto; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .brand-txt small { display: none; }
  .brand img { width: 52px; }
  .top-actions .btn-gold { padding: .55em .9em; font-size: .92rem; }
}

/* Hero */
.hero {
  background: radial-gradient(1000px 500px at 85% -10%, rgba(43, 123, 192, .35), transparent 60%),
              radial-gradient(700px 400px at 0% 110%, rgba(201, 154, 46, .16), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--on-dark); padding: 64px 0 40px;
}
.hero a:not(.btn) { color: var(--gold-2); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { color: var(--on-dark-muted); font-size: 1.2rem; max-width: 40em; }
.hero-saudi { display: flex; gap: .45em; align-items: flex-start; margin: -.35rem 0 .9rem; color: var(--gold-2); font-weight: 600; font-size: 1.02rem; }
.hero-saudi svg { flex: none; width: 1.15em; height: 1.15em; margin-top: .2em; }
a.badge { text-decoration: none; }
a.badge:hover { background: rgba(226, 184, 82, .2); }
.badge { display: inline-flex; align-items: center; gap: .5em; background: rgba(226, 184, 82, .12); color: var(--gold-2); border: 1px solid rgba(226, 184, 82, .35); padding: .3em .9em; border-radius: 999px; font-size: .92rem; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.stats { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.stats li { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius); padding: 16px 18px; }
.stats b { display: block; font-size: 1.7rem; color: var(--gold-2); line-height: 1.2; }
.stats span { color: var(--on-dark-muted); font-size: .95rem; }
.stats-light li { background: var(--surface); border-color: var(--line); }
.stats-light span { color: var(--muted); }
.hero-sm { padding: 44px 0 36px; }
.crumb { color: var(--on-dark-muted); font-size: .92rem; }
.sector-head { display: flex; align-items: center; gap: 18px; }
.sector-head h1 { margin-bottom: .2em; }
.sector-head .lead { margin: 0; }
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero-in { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Sections */
.sec { padding: 64px 0; }
.sec-alt { background: var(--surface-2); }
.sec-lead { color: var(--muted); font-size: 1.1rem; max-width: 46em; margin-bottom: 28px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card, .quote, .plan, .side-box, .form-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}
.card p, .plan p { color: var(--muted); margin: 0; }
.card-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(43, 123, 192, .1); color: var(--blue); margin-bottom: 12px; }
.card-ic .ic { width: 24px; height: 24px; }
@media (max-width: 960px) { .cards3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards3 { grid-template-columns: 1fr; } .sec { padding: 48px 0; } }

/* Sector picker */
.pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pick-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.pick-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.pick-card b { font-size: 1.02rem; }
.pick-card small { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.pick-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: var(--gold-2); }
.pick-ic .ic { width: 26px; height: 26px; }
.pick-ic-lg { width: 72px; height: 72px; border-radius: 18px; flex: none; border: 1px solid rgba(226, 184, 82, .35); }
.pick-ic-lg .ic { width: 38px; height: 38px; }
@media (max-width: 1100px) { .pick { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .pick { grid-template-columns: repeat(2, 1fr); } .pick-card small { display: none; } .pick-card { padding: 14px; } }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.08rem; }
.ticks .ic { color: #1f9d6b; margin-top: .3em; width: 1.2em; height: 1.2em; }
.ticks-sm li { font-size: 1rem; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: .45em; padding: .5em .95em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .95rem; }
.chip .ic { color: var(--gold); }
a.chip:hover { border-color: var(--gold); text-decoration: none; }

/* Quotes, FAQ */
.quote { margin: 0; }
.quote blockquote { margin: 0 0 14px; color: var(--ink); }
.quote blockquote::before { content: "”"; display: block; color: var(--gold); font-size: 2.6rem; line-height: .6; margin-bottom: 8px; }
.quote figcaption { color: var(--muted); font-weight: 600; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 0 0 16px; }

/* Steps, plans, prose */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; padding-inline-start: 74px; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 20px; top: 20px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); font-weight: 700; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.plan { display: flex; flex-direction: column; gap: 14px; }
.plan .btn { align-self: flex-start; margin-top: auto; }
.plan-main { border-color: var(--gold); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.prose p { font-size: 1.12rem; }
.side-box h3 { margin-bottom: 14px; }

/* Phone mock */
.phone-mock { width: 240px; aspect-ratio: 9 / 18; margin-inline: auto; border-radius: 34px; padding: 12px; background: linear-gradient(160deg, #1b2b45, #0a1426); box-shadow: var(--shadow); }
.phone-screen { height: 100%; border-radius: 24px; background: linear-gradient(160deg, var(--navy), var(--navy-2)); display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--gold-2); }
.phone-screen b { color: #fff; font-size: 1.3rem; }

/* CTA + form */
.cta { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--on-dark); }
.cta h2 { color: #fff; }
.cta .sec-lead { color: var(--on-dark-muted); }
.cta-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .cta-in { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list .ic { color: var(--gold-2); }
.contact-list a { color: var(--on-dark); }
.cta .map { display: block; width: 100%; height: 260px; margin-top: 24px; border: 0; border-radius: 12px; background: rgba(255,255,255,.06); }
.form-box { color: var(--ink); }
.lead-form { display: grid; gap: 14px; }
.lead-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .lead-form .grid2 { grid-template-columns: 1fr; } }
.lead-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.lead-form input, .lead-form select, .lead-form textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 10px; padding: .65em .8em; width: 100%;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 123, 192, .18); }
.lead-form [aria-invalid="true"] { border-color: #d24a3a; }
.lead-form .btn { justify-self: start; }
.form-note { color: var(--muted); font-size: .85rem; margin: 0; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: #1f9d6b; }
.form-status.err { color: #d24a3a; }

/* Footer */
.foot { background: #071326; color: var(--on-dark-muted); padding: 48px 0 0; font-size: .95rem; }
.foot h3 { color: #fff; font-size: 1rem; }
.foot a { color: var(--on-dark); }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr 1fr; gap: 28px; }
.foot-grid img { width: 96px; filter: drop-shadow(0 0 12px rgba(226, 184, 82, .2)); margin-bottom: 10px; }
.slogan { color: #fff; font-weight: 600; }
.slogan span { color: var(--gold-2); font-weight: 500; }
.phones { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-start; }
html[dir="rtl"] .phones { justify-content: flex-end; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 32px; padding: 18px 0 90px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* WhatsApp float */
.wa-float { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
/* reCAPTCHA v3: its floating badge would cover the WhatsApp button; Google allows hiding it when the form shows the notice (.rc-note) */
.grecaptcha-badge { visibility: hidden; }
.rc-note a { color: inherit; text-decoration: underline; }
.wa-float .ic { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.05); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Screens gallery */
.sec-dark { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--on-dark); }
.sec-dark h2 { color: #fff; }
.sec-dark .sec-lead { color: var(--on-dark-muted); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shot { margin: 0; }
.shot img { border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); background: #fff; }
.shot figcaption { color: var(--on-dark-muted); font-size: .92rem; margin-top: 8px; text-align: center; }
.shot-wide { grid-column: 1 / -1; }
.shot-single { max-width: 1000px; margin-inline: auto; }

/* Home: one large screen with tabs (without JavaScript every screen shows, one under the other) */
.tour { max-width: 1060px; margin-inline: auto; }
.tour-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0 auto 18px; width: fit-content; max-width: 100%;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; }
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tabs button { flex: none; font: inherit; font-size: .95rem; font-weight: 600; color: var(--on-dark-muted); background: none; border: 0;
  padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.tour-tabs button:hover { color: #fff; }
.tour-tabs button[aria-selected="true"] { background: var(--gold); color: #0b1d36; }
.tour-tabs button:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.tour.is-js .tour-pane:not(.on) { display: none; }
.tour:not(.is-js) .tour-tabs { display: none; }
.tour:not(.is-js) .tour-pane + .tour-pane { margin-top: 28px; }
.tour-frame { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); background: #1b2330; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.tour-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #11161e; }
.tour-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.tour-bar b { margin-inline: auto; font-weight: 500; font-size: .78rem; color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); padding: 3px 14px; border-radius: 6px; }
.tour .shot img, .tour-frame img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; background: #1b2330; }
.tour figcaption { text-align: center; margin-top: 14px; color: var(--on-dark-muted); }
.tour figcaption b { color: #fff; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .tour.is-js .tour-pane.on .tour-frame { animation: tour-in .35s ease both; } @keyframes tour-in { from { opacity: .4; } } }
@media (max-width: 600px) { .tour-tabs { width: auto; border-radius: 14px; } .tour-tabs button { padding: 8px 14px; font-size: .9rem; } .tour-bar b { display: none; } }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .shots { grid-template-columns: 1fr; } }
.countries { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--on-dark-muted); }
.countries .ic { color: var(--gold-2); }
.countries span { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; padding: .1em .8em; color: var(--on-dark); }

/* Login */
.show-sm { display: none !important; }
@media (max-width: 640px) { .nav .show-sm { display: block !important; } }
.login-form { display: grid; gap: 12px; margin-bottom: 14px; }
.login-form label { display: grid; gap: 8px; font-weight: 600; }
.tenant-input { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.tenant-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 123, 192, .18); }
.tenant-input .pre, .tenant-input .post { display: flex; align-items: center; padding: 0 .7em; color: var(--muted); background: var(--surface-2); font-weight: 400; white-space: nowrap; }
.tenant-input input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink); padding: .7em .6em; }
.tenant-input input:focus { outline: none; }
@media (max-width: 420px) { .tenant-input .pre { display: none; } }
.shots .shot:not(.shot-wide) img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.tenant-input input::placeholder { color: var(--muted); font-weight: 400; opacity: .6; }
.login-alert { display: grid; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--gold); border-radius: 10px; background: var(--surface-2); }
.login-alert[hidden] { display: none; }
.login-alert p { margin: 0; font-weight: 600; color: var(--ink); }
.login-alert-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.login-alert-actions .btn { white-space: normal; }

/* Trust badges + legal list */
.trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.trust-item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: var(--on-dark) !important; text-decoration: none !important; line-height: 1.4; }
.trust-item .ic { color: var(--gold-2); width: 22px; height: 22px; }
.trust-item small { display: block; color: var(--on-dark-muted); font-size: .8rem; }
.trust-item b { color: #fff; }
a.trust-item:hover { border-color: var(--gold); }
.legal { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.legal div { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.legal div:last-child { border-bottom: 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; font-weight: 600; }
html[dir="rtl"] .legal dd[dir="ltr"] { text-align: right; }
@media (max-width: 560px) { .legal div { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats-light { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .stats-light { grid-template-columns: repeat(2, 1fr); } }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; position: relative; }
.timeline li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; border-top: 4px solid var(--gold); }
.timeline h3 { font-size: 1.02rem; margin: 6px 0 4px; }
.timeline p { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.6; }
.tl-year { display: inline-block; font-weight: 700; color: var(--navy-2); background: rgba(201, 154, 46, .16); border-radius: 999px; padding: .05em .7em; font-size: .92rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tl-year { color: var(--gold-2); } }
@media (max-width: 1100px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .timeline { grid-template-columns: 1fr; } }
.timeline-col { grid-template-columns: 1fr; }
.timeline-col li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; border-top: 1px solid var(--line); border-inline-start: 4px solid var(--gold); }
@media (max-width: 480px) { .timeline-col li { grid-template-columns: 1fr; } }
html[dir="rtl"] .stats b { text-align: right; } html[dir="rtl"] .tl-year { direction: ltr; }
.stats b.stat-word { font-size: 1.2rem; padding-block: .25em; }

/* Legal pages + footer legal links */
.legal-doc h2 { font-size: 1.2rem; margin: 1.6em 0 .4em; }
.legal-doc p, .legal-doc li { font-size: 1rem; line-height: 1.85; }
.legal-doc ul { padding-inline-start: 1.3em; }
.legal-other { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line, #e4e7ec); text-align: left; }
.legal-other h1 { font-size: 1.6rem; }
.legal-links a { white-space: nowrap; }
.foot-legal a { white-space: nowrap; }

/* Honeypot: hidden from people, filled by bots */
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.quote-src { color: var(--muted, #667085); font-weight: 400; }
.quote-src .stars { color: #c99a2e; letter-spacing: 1px; }

/* Screenshot pop-up */
.shot a { cursor: zoom-in; display: block; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1600px, 96vw); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 12, 24, .86); }
.lightbox img { display: block; max-width: 100%; max-height: 86vh; width: auto; height: auto; margin: 0 auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.lb-cap { color: #fff; text-align: center; margin: .6rem 0 0; font-weight: 600; }
.lb-close { position: fixed; top: 12px; inset-inline-end: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.15); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-close:hover, .lb-close:focus-visible { background: rgba(255,255,255,.3); }

/* ---------- Hero stage: the system's screen + a tax receipt printing out of it ---------- */
.stage { display: grid; align-items: start; }
.stage > * { grid-area: 1 / 1; }
.device { position: relative; margin-inline-start: 14%; border-radius: 14px; padding: 8px; background: #050d19;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 70px rgba(0, 0, 0, .45); }
.device img { display: block; width: 100%; height: auto; border-radius: 8px; }
.device::after { /* the printer slot the receipt comes out of */
  content: ""; position: absolute; inset-inline-start: 4%; bottom: -7px; width: 46%; height: 10px; border-radius: 0 0 6px 6px;
  background: linear-gradient(#0e1b2e, #050d19); box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }

.receipt { position: relative; z-index: 2; margin-top: 30%; width: min(44%, 236px); }
/* the top edge is the printer slot: the paper is hidden above it and slides down. Room on the sides and bottom for the shadow. */
.rc-clip { overflow: hidden; padding: 0 34px 48px; margin: 0 -34px -48px; }
.rc-feed { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .38)); }
.rc-paper { background: #fbfaf5; color: #142033; padding: 16px 16px 14px; font-size: .78rem; line-height: 1.5;
  font-variant-numeric: tabular-nums;
  /* torn thermal-paper bottom edge */
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 7px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 7px repeat-x;
          mask: linear-gradient(#000, #000) top / 100% calc(100% - 7px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 7px repeat-x; }
.rc-shop { margin: 0; text-align: center; font-weight: 700; font-size: .95rem; }
.rc-kind { margin: 0 0 6px; text-align: center; color: #55657a; }
.rc-meta { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding-block-end: 6px; color: #55657a;
  border-block-end: 1px dashed #b9c3cf; }
.rc-rows { list-style: none; margin: 0; padding: 6px 0; border-block-end: 1px dashed #b9c3cf; }
.rc-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 2px 0; }
.rc-rows small { display: block; color: #6b7a8d; font-size: .7rem; }
.rc-rows b { font-weight: 600; }
.rc-sum { margin: 0; padding: 6px 0 4px; }
.rc-sum div { display: flex; justify-content: space-between; gap: 10px; }
.rc-sum dt { color: #55657a; } .rc-sum dd { margin: 0; }
.rc-total { margin-top: 4px; padding-top: 5px; border-top: 1.5px solid #142033; font-weight: 700; font-size: .9rem; }
.rc-total dt { color: #142033; } .rc-total small { font-weight: 500; font-size: .7rem; }
.rc-qr { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.rc-qr svg { width: 62px; height: 62px; flex: none; fill: #142033; }
.rc-qr span { display: inline-flex; align-items: center; gap: 4px; color: #0b6b3a; font-weight: 600; font-size: .72rem; }
.rc-qr .ic { width: 14px; height: 14px; }

/* One load sequence: the screen settles, then the receipt prints line by line. */
@media (prefers-reduced-motion: no-preference) {
  .device { animation: dev-in .7s cubic-bezier(.2, .7, .2, 1) both; }
  /* transform only (no clip-path / re-masking per frame): smooth in Firefox too, even without graphics acceleration */
  .rc-feed { animation: rc-feed 1.9s cubic-bezier(.35, .1, .25, 1) .55s both; will-change: transform; }
  .rc-qr svg { animation: rc-stamp .45s cubic-bezier(.2, 1.4, .4, 1) 2.35s both; }
  .rc-qr span { animation: rc-fade .4s ease 2.6s both; }
  @keyframes dev-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
  /* the paper grows downward out of the slot, as a printer feeds it */
  @keyframes rc-feed { from { transform: translateY(-101%); } to { transform: none; } }
  @keyframes rc-stamp { from { opacity: 0; transform: scale(.6); } }
  @keyframes rc-fade { from { opacity: 0; } }
}

/* Stats: numbers keep their width while counting */
.stats b[dir="ltr"] { font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .stage { order: 2; margin-top: 8px; }
  .device { margin-inline-start: 10%; }
  .receipt { width: min(52%, 220px); margin-top: 26%; }
}
@media (max-width: 420px) {
  .rc-paper { font-size: .7rem; padding: 12px 12px 10px; }
  .rc-qr svg { width: 48px; height: 48px; }
}

/* App page: real phone screens */
.phone { margin: 0 auto; width: min(300px, 78vw); padding: 10px; border-radius: 38px; background: #050d19;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 24px 60px rgba(11, 29, 54, .35); }
.phone img { display: block; width: 100%; height: auto; border-radius: 29px; }
.phone a { display: block; }
.app-strip { contain: inline-size; max-width: 100%; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 22px; overflow-x: auto;
  padding: 6px 4px 18px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.app-strip:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 12px; }
.phone-sm { width: auto; padding: 7px; border-radius: 28px; scroll-snap-align: start; }
.phone-sm img { border-radius: 22px; }
.phone-sm figcaption { text-align: center; padding: 10px 4px 2px; color: var(--on-dark, #eaf1fa); font-weight: 600; font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Compare page */
.cmp-wrap { position: relative; contain: inline-size; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cmp-wrap:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.cmp { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .95rem; }
.cmp th, .cmp td { padding: 14px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { background: var(--surface-2); font-size: .9rem; color: var(--muted); font-weight: 600; }
.cmp thead th.cmp-us { background: var(--navy); color: var(--gold-2); font-size: 1rem; }
.cmp tbody th { font-weight: 700; color: var(--ink); width: 18%; position: sticky; inset-inline-start: 0; background: var(--surface); z-index: 1; }
.cmp td.cmp-us { background: color-mix(in srgb, var(--gold) 9%, var(--surface)); font-weight: 600; color: var(--ink); }
.cmp td { color: var(--muted); }
.mk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; margin-inline-end: 8px; vertical-align: -5px; }
.mk .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.mk-yes .mk { background: #dff3e7; color: #0b6b3a; }
.mk-part .mk { background: #fdf0d3; color: #8a5a00; }
.mk-no .mk { background: #fbe2e0; color: #a3261b; }
.cmp-note { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fit-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); }
.fit-item h3 { margin: 0 0 6px; font-size: 1.05rem; }
.fit-item p { margin: 0; color: var(--muted); }
.fit-us { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, var(--surface)); }
.fit-us p { color: var(--ink); }
@media (max-width: 700px) { .fit { grid-template-columns: 1fr; } }

/* Compare: coming from an international ERP */
.switch-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.switch-list { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--gold); }
.switch-list > div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.switch-list dt { font-weight: 700; }
.switch-list dd { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .switch-in { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 520px) { .switch-list > div { grid-template-columns: 1fr; gap: 4px; } }

/* Mid-size screens: a little tighter so the full menu fits */
@media (min-width: 1241px) and (max-width: 1360px) { .nav a { padding: .45em .5em; font-size: .9rem; } }

/* Compare page closing statement */
.closing-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.closing h2 { color: #fff; }
.closing-body { color: var(--on-dark); font-size: 1.15rem; line-height: 1.9; max-width: 36em; margin: 0 0 22px; }
.closing-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.closing-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-dark); font-weight: 600;
  padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.closing-points .ic { color: var(--gold-2); flex: none; margin-top: 3px; }
@media (max-width: 900px) { .closing-in { grid-template-columns: 1fr; gap: 24px; } }


/* ZATCA page: link to ZATCA's list of solution providers */
.proof { display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin-bottom: 28px; border-radius: var(--radius);
  border: 1px solid var(--gold); background: color-mix(in srgb, var(--gold) 8%, var(--surface)); color: var(--ink); text-decoration: none; }
.proof .ic { width: 28px; height: 28px; color: var(--gold); flex: none; }
.proof b { display: block; }
.proof small { color: var(--muted); }
.proof:hover b { text-decoration: underline; }

/* Integrations: ask your data (sample chat) */
.ask-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: start; }
.ask-h { color: #fff; font-size: 1rem; margin: 22px 0 10px; }
.ask-q { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ask-q li { padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); color: var(--on-dark); background: rgba(255, 255, 255, .04); }
.ask-note { color: var(--gold-2); font-weight: 600; margin: 16px 0 0; }
.chat { margin: 0; padding: 20px; border-radius: 16px; background: #0f1724; border: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 14px; }
.chat figcaption { color: var(--on-dark-muted); font-size: .85rem; }
.msg { margin: 0; padding: 12px 16px; border-radius: 14px; line-height: 1.8; }
.msg-me { justify-self: end; max-width: 85%; background: var(--gold); color: #0b1d36; font-weight: 600; border-end-end-radius: 4px; }
.msg-ai { display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 255, 255, .07); color: var(--on-dark); border-end-start-radius: 4px; }
.msg-ai .ic { color: var(--gold-2); flex: none; margin-top: 4px; }
.msg-ai p { margin: 0 0 6px; } .msg-ai p:last-child { margin: 0; }
@media (max-width: 900px) { .ask-in { grid-template-columns: 1fr; gap: 24px; } }

/* Home: demo video above the screen tabs */
.demo-video { max-width: 1060px; margin: 0 auto; }
.tour.vids { margin-bottom: 44px; }
.demo-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; background: #11161e;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.demo-video figcaption { text-align: center; margin-top: 14px; color: var(--on-dark-muted); }
.demo-video figcaption b { color: #fff; font-weight: 600; }

/* ---------- Promo videos: a link that opens a pop-up player (without JS it opens the .mp4) ---------- */
.btn-text { background: none; border-color: transparent; color: var(--gold-2); padding-inline: 8px; }
.btn-text:hover { color: #fff; }
.btn-text small { font-weight: 500; opacity: .8; margin-inline-start: 2px; }
.btn .ic { flex: none; }
.vid-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.vid-in .btn { gap: 8px; }
.vid-thumb { position: relative; display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(11, 29, 54, .25); cursor: pointer; }
.vid-thumb img { display: block; width: 100%; height: auto; }
.vid-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 55%, rgba(5, 12, 24, .35)); }
.vid-play .ic { width: 76px; height: 76px; color: #fff; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45)); transition: transform .2s; }
.vid-thumb:hover .vid-play .ic, .vid-thumb:focus-visible .vid-play .ic { transform: scale(1.08); }
@media (max-width: 900px) { .vid-in { grid-template-columns: 1fr; gap: 20px; } }
.vbox { border: 0; padding: 0; background: transparent; overflow: visible; max-width: 96vw; max-height: 96vh; }
.vbox::backdrop { background: rgba(5, 12, 24, .9); }
.vbox video { display: block; width: min(1180px, 94vw); max-height: 86vh; border-radius: 12px; background: #07222a; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); }
.vbox.tall video { width: auto; height: min(86vh, 1280px); max-width: 94vw; }
.vbox .lb-cap { color: #fff; }

/* Pricing: what's in your package */
.incl { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px 40px; align-items: start; margin-top: 44px; padding: 28px;
  border-radius: var(--radius); border: 1px solid var(--gold); background: color-mix(in srgb, var(--gold) 6%, var(--surface)); }
.incl h2 { margin-top: 0; }
.incl .ticks { margin: 0; }
.incl-note { grid-column: 1 / -1; margin: 6px 0 0; }
@media (max-width: 860px) { .incl { grid-template-columns: 1fr; padding: 20px; } }

/* Pricing: packages (no prices) */
.pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pkg { position: relative; }
.pkg-pop { border-color: var(--gold); box-shadow: 0 14px 40px color-mix(in srgb, var(--gold) 22%, transparent); }
.pkg-tag { position: absolute; top: -12px; inset-inline-start: 20px; background: var(--gold); color: #0b1d36; font-weight: 700; font-size: .82rem;
  padding: 3px 12px; border-radius: 999px; }
.pkg-more { margin: 16px 0 0; }
@media (max-width: 900px) { .pkgs { grid-template-columns: 1fr; } }

/* Cookie bar */
.cookie-bar { position: fixed; z-index: 60; inset-inline: 16px; bottom: 16px; max-width: 760px; margin-inline: auto; display: flex; gap: 14px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px; background: var(--navy, #0b1d36); color: #fff; box-shadow: 0 12px 36px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .12); }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; flex: 1 1 320px; font-size: .95rem; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.cookie-bar a { color: var(--gold-2); }
.cookie-btns { display: flex; gap: 10px; }
.cookie-btns .btn { padding: .55em 1.3em; }
.cookie-bar .btn { font: inherit; font-weight: 600; cursor: pointer; }
.cookie-bar .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.has-cookie-bar .wa-float { bottom: calc(18px + var(--cookie-h, 96px)); }
@media (max-width: 560px) { .has-cookie-bar .wa-float { bottom: calc(18px + var(--cookie-h, 150px)); } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
