/* KMG (kmg.zone): the company's page — what it makes (its products) and what it builds (its services), how it works,
   and how to reach it. The same identity as the Work App site (work.kmg.zone): Cairo, KMG blue, light and dark.
   Sections: tokens · base · header · hero · products · services · process · contact · footer · motion. */

/* ── Tokens ─────────────────────────────────────────────────────────────────── */
:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #eaf1fa;
  --ink: #0f1f36;
  --muted: #55657c;
  --line: #d6e0ec;
  --brand: #1a6be0;
  --brand-deep: #0d3672;
  --brand-soft: #e2edfc;
  --ok: #1d8a5a;
  --ok-soft: #e1f3ea;
  --warn: #b26b00;
  --warn-soft: #fbefd9;
  --bad: #c2352b;
  --bad-soft: #fbe5e2;
  --band: #0d2547;
  --band-ink: #e8f0fb;
  --band-muted: #9fb3cf;
  --side: #0d3672;
  --wa: #25d366;
  --shadow-sm: 0 1px 2px rgba(13, 37, 71, .06), 0 4px 14px -6px rgba(13, 37, 71, .12);
  --shadow: 0 24px 60px -28px rgba(13, 37, 71, .35);
  --shadow-lg: 0 40px 90px -36px rgba(13, 37, 71, .45);
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --sec: clamp(64px, 9vw, 104px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --f: "Cairo", "Segoe UI", Tahoma, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1424; --surface: #111e33; --surface-2: #17283f; --ink: #e6eefa; --muted: #9aabc3; --line: #24385a;
    --brand: #4d93f5; --brand-deep: #9cc4ff; --brand-soft: #16305a; --ok: #4cc08b; --ok-soft: #123629; --warn: #e6a640; --warn-soft: #3a2b10; --bad: #f07a6f; --bad-soft: #3d1a18;
    --band: #060e1b; --band-ink: #e6eefa; --band-muted: #8ea2c0; --side: #163a73;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px -6px rgba(0, 0, 0, .5);
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, .7); --shadow-lg: 0 40px 90px -36px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1424; --surface: #111e33; --surface-2: #17283f; --ink: #e6eefa; --muted: #9aabc3; --line: #24385a;
  --brand: #4d93f5; --brand-deep: #9cc4ff; --brand-soft: #16305a; --ok: #4cc08b; --ok-soft: #123629; --warn: #e6a640; --warn-soft: #3a2b10; --bad: #f07a6f; --bad-soft: #3d1a18;
  --band: #060e1b; --band-ink: #e6eefa; --band-muted: #8ea2c0; --side: #163a73;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px -6px rgba(0, 0, 0, .5);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .7); --shadow-lg: 0 40px 90px -36px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ── Base ───────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; transition: background-color .3s, color .3s; }
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f); text-wrap: balance; margin: 0; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1600px; margin: 0 auto; padding-left: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(16px, 4vw, 56px), env(safe-area-inset-right, 0px)); }

/* The logo in each theme: dark letters on light, white letters on dark. */
.logo-d { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-l { display: none; } :root:not([data-theme="light"]) .logo-d { display: block; } }
:root[data-theme="dark"] .logo-l { display: none; }
:root[data-theme="dark"] .logo-d { display: block; }

.eyebrow { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-size: 13px; font-weight: 700; line-height: 1.7; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.lead { color: var(--muted); font-size: 18px; max-width: 60ch; }
.sec { padding-block: var(--sec); }
.sec.flush { padding-top: 0; }
.sec-head { display: grid; gap: 14px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.01em; }
section { scroll-margin-top: 72px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 12px 26px -14px var(--brand); transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .2s; }
.cta:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 32px -14px var(--brand); }
.cta:active { transform: translateY(0); }
.cta-s { padding: 7px 16px; font-size: 14px; box-shadow: none; }
.cta-ghost { background: var(--surface); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: none; }
.cta-ghost:hover { box-shadow: var(--shadow-sm); }
.ti { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); flex: none; }
.ti svg { width: 22px; height: 22px; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 9; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background-color .3s; }
.top.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(13, 37, 71, .5); }
.top .wrap { display: flex; align-items: center; gap: 10px; padding-block: 14px; }
.mark { display: flex; align-items: center; text-decoration: none; flex: none; }
.mark img { height: 32px; width: auto; }
.nav { display: flex; gap: 6px; margin-inline: auto 14px; font-size: 15px; }
.nav a { position: relative; padding: 6px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.on { color: var(--brand); }
.nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav a.on::after { transform: none; }
.theme-btn, .lang-btn { all: unset; box-sizing: border-box; cursor: pointer; min-width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: color .2s, border-color .2s, transform .3s var(--ease); }
.lang-btn { padding: 0 10px; font-weight: 700; font-size: 14px; }
.theme-btn:hover, .lang-btn:hover { color: var(--brand); border-color: var(--brand); }
.theme-btn:active { transform: rotate(-20deg) scale(.95); }
.theme-btn:focus-visible, .lang-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.theme-btn svg { width: 19px; height: 19px; }
.theme-btn .sun { display: none; }
.is-dark .theme-btn .sun { display: block; }
.is-dark .theme-btn .moon { display: none; }
.scroll-bar { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: linear-gradient(to left, var(--brand), color-mix(in srgb, var(--brand) 40%, var(--ok))); transform-origin: right; transform: scaleX(var(--p, 0)); }
[dir="ltr"] .scroll-bar { transform-origin: left; background: linear-gradient(to right, var(--brand), color-mix(in srgb, var(--brand) 40%, var(--ok))); }
@media (max-width: 760px) {
  .nav, .top .cta-s { display: none; }
  .top .wrap > .lang-btn { margin-inline-start: auto; }
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 88px); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 18%, transparent), transparent); }
[dir="rtl"] .hero::before { inset: -20% auto auto -10%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 30% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 30% 40%, #000 20%, transparent 75%); }
[dir="rtl"] .hero::after { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000 20%, transparent 75%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.hero h1 span { background: linear-gradient(to left, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--ok))); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="ltr"] .hero h1 span { background-image: linear-gradient(to right, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--ok))); }

/* The stage: a business system KMG could build, its web dashboard in a browser and its phone app before the window's far
   side (the sidebar stays in view), and two notes floating over them. */
.stage { position: relative; min-width: 0; padding-bottom: 34px; }
.browser { position: relative; margin-inline-end: clamp(60px, 10%, 120px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dots i:nth-child(1) { background: #f26b5b; } .dots i:nth-child(2) { background: #f4bf4f; } .dots i:nth-child(3) { background: #3dc764; }
.url { flex: 1; text-align: center; font-size: 12px; color: var(--muted); background: var(--surface); border-radius: 6px; padding: 2px 10px; direction: ltr; margin-inline-end: 46px; }

/* The dashboard: a dark sidebar with the system's pages, the top bar, and the overview (the period, four figures with
   their change, the week's sales against the week before, the best sellers, the latest orders). Everything under .app,
   so the site's own cards keep their look. */
.app { display: grid; grid-template-columns: 158px minmax(0, 1fr); aspect-ratio: 16 / 10; font-family: "IBM Plex Sans Arabic", var(--f); font-size: 13px; background: var(--bg); text-align: start; }
.app .side { display: flex; flex-direction: column; min-width: 0; background: #0f1b2d; color: #fff; }
.app .sb-id { display: flex; align-items: center; gap: 9px; height: 52px; flex: none; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 13px; white-space: nowrap; }
.app .sb-id b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.app .mk { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, var(--brand), #7a5af8); }
.app .mk svg { width: 16px; height: 16px; }
.app .sb-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; align-content: start; flex: 1; padding: 8px; }
.app .sb-foot { padding: 8px; border-top: 1px solid rgba(255, 255, 255, .1); }
.app .ni { position: relative; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 7px; font-size: 12px; font-weight: 500; white-space: nowrap; color: rgba(255, 255, 255, .78); }
.app .ni > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.app .ni svg { width: 15px; height: 15px; flex: none; color: rgba(255, 255, 255, .6); }
.app .ni.on { background: color-mix(in srgb, var(--brand) 32%, transparent); color: #fff; font-weight: 600; }
.app .ni.on svg { color: #fff; }
.app .ni i { margin-inline-start: auto; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 18px; text-align: center; }
.app .main { display: grid; align-content: start; min-width: 0; overflow: hidden; container-type: inline-size; }
.app .tbar { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.app .tbar > b { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .jump { display: flex; align-items: center; gap: 5px; width: 130px; height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--muted); font-size: 11px; }
.app .jump > span { flex: 1; white-space: nowrap; overflow: hidden; }
.app .jump svg { width: 12px; height: 12px; flex: none; }
.app .tb-bell { position: relative; width: 28px; height: 28px; display: grid; place-items: center; flex: none; border-radius: 7px; color: var(--muted); }
.app .tb-bell svg { width: 16px; height: 16px; }
.app .tb-bell::after { content: ""; position: absolute; top: 5px; inset-inline-end: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--bad); }
.app .av { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.app .pg { padding: 14px 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.app .phead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app .phead b { display: block; font-size: 15px; }
.app .phead small { color: var(--muted); font-size: 10.5px; }
.app .sgm { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--surface-2); font-size: 10.5px; white-space: nowrap; }
.app .sgm span { padding: 2px 9px; border-radius: 6px; color: var(--muted); }
.app .sgm span.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(13, 37, 71, .12); }
.app .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.app .kpi { display: grid; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.app .kpi small { color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .kpi strong { font-size: 18px; line-height: 1.3; white-space: nowrap; }
.app .kpi strong em { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--muted); margin-inline-start: 3px; }
.app .dl { display: inline-flex; align-items: center; gap: 2px; width: max-content; padding: 0 6px; border-radius: 999px; font-size: 10px; font-weight: 700; direction: ltr; background: var(--ok-soft); color: var(--ok); }
.app .dl.down { background: var(--bad-soft); color: var(--bad); }
.app .panel { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 8px; min-width: 0; }
.app h5 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 600; }
.app .lg { display: flex; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 500; }
.app .lg span::before { content: ""; display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-inline-end: 4px; vertical-align: middle; background: var(--brand); }
.app .lg span + span::before { background: var(--line); }
.app .chart svg { display: block; width: 100%; height: 110px; overflow: visible; }
[dir="rtl"] .app .chart svg { transform: scaleX(-1); }
.app .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); color: var(--muted); font-size: 9.5px; text-align: center; }
.app .cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.app .best { display: grid; gap: 7px; }
.app .best div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; font-size: 11px; }
.app .best i { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: linear-gradient(to left, var(--brand) var(--w), var(--surface-2) var(--w)); }
[dir="ltr"] .app .best i { background: linear-gradient(to right, var(--brand) var(--w), var(--surface-2) var(--w)); }
.app table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.app th, .app td { text-align: start; padding: 6px 8px; border-top: 1px solid var(--line); white-space: nowrap; }
.app th { color: var(--muted); font-weight: 600; font-size: 10.5px; border-top: 0; }
.app .pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.app .p-ok, .screen .p-ok { background: var(--ok-soft); color: var(--ok); }
.app .p-warn, .screen .p-warn { background: var(--warn-soft); color: var(--warn); }
.app .p-info, .screen .p-info { background: var(--brand-soft); color: var(--brand-deep); }
/* A narrower window shows the chart without the best sellers beside it, and on a phone the figures in pairs. */
@container (max-width: 560px) {
  .app .cols { grid-template-columns: minmax(0, 1fr); }
  .app .best-panel { display: none; }
}
@container (max-width: 420px) { .app .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stage .phone { position: absolute; inset-block-end: 0; inset-inline-end: 0; z-index: 2; zoom: .66; }
.chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; white-space: nowrap; }
.chip b { font-weight: 700; }
.chip-a { inset-block-start: -22px; inset-inline-end: 36%; }
.chip-b { inset-block-end: 14px; inset-inline-start: -14px; }
.chip svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--ok); color: #fff; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ping 2.4s var(--ease) infinite; }
/* Between a tablet and a wide desktop the phone shrinks, so the window behind it stays in view. */
@media (min-width: 961px) and (max-width: 1240px) { .stage .phone { zoom: .6; } }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 680px; width: 100%; margin-inline: auto; }
}
@media (max-width: 560px) {
  .browser { margin-inline-end: 0; }
  .app { grid-template-columns: minmax(0, 1fr); aspect-ratio: auto; height: 360px; }
  .app .side { display: none; }
  .stage .phone { zoom: .5; }
  .chip { font-size: 12px; padding: 5px 11px; }
  .chip-b { inset-inline-start: 0; }
}

/* ── Products ───────────────────────────────────────────────────────────────── */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.product-copy { display: grid; gap: 18px; }
.product-name { display: flex; align-items: center; gap: 14px; }
.product-name img { width: 56px; height: 56px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.product-name h3 { font-size: 26px; font-weight: 800; }
.product-name span { color: var(--muted); font-size: 14px; }
.product-copy > p { color: var(--muted); font-size: 17px; max-width: 58ch; }
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 15px; line-height: 1.6; }
.ticks li::before { content: "✓"; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.fit { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); color: var(--ink); font-size: 14.5px; font-weight: 600; }
.price { color: var(--muted); font-size: 15px; }
.price b { color: var(--ink); font-size: 22px; font-weight: 800; }
.product-shot { display: grid; place-items: center; padding: 36px 16px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--brand-soft), var(--surface-2));
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--brand) 20%, transparent) 1px, transparent 0), linear-gradient(135deg, var(--brand-soft), var(--surface-2)); background-size: 18px 18px, auto; }
@media (max-width: 960px) { .product { grid-template-columns: minmax(0, 1fr); } }

/* ── The phones: the frame, and the app inside it as the app draws it ──────── */
.phone { position: relative; width: 268px; max-width: 100%; aspect-ratio: 9 / 19; padding: 9px; border-radius: 42px; background: linear-gradient(160deg, #1c2638, #070b14);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .08); }
/* The side buttons, and the camera island over the status bar. */
.phone::after { content: ""; position: absolute; inset-block-start: 22%; inset-inline-end: -3px; width: 3px; height: 13%; border-radius: 0 3px 3px 0; background: #1c2638; }
[dir="rtl"] .phone::after { border-radius: 3px 0 0 3px; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 31%; height: 19px; border-radius: 999px; background: #05070c; transform: translateX(-50%); z-index: 2; }
.screen { height: 100%; border-radius: 33px; background: var(--bg); overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; position: relative; container-type: inline-size;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; font-size: 12px; line-height: 1.55; color: var(--ink); }
.screen b { font-weight: 600; }
.sbar { display: flex; justify-content: space-between; align-items: center; padding: 11px 24px 4px; font-size: 11.5px; font-weight: 600; direction: ltr; }
.sig { display: flex; align-items: center; gap: 4px; }
.sig svg { height: 9px; width: auto; fill: currentColor; }
.sig svg:last-child { height: 10px; }
.pbody { padding: 8px 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; overflow: hidden; }
.tabs-b { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: var(--surface); padding: 6px 2px 16px; }
.tabs-b > span { display: grid; justify-items: center; gap: 2px; color: var(--muted); }
.tabs-b svg { width: 18px; height: 18px; }
.tabs-b > span.on { color: var(--ink); font-weight: 700; }
.tabs-b > span > span:last-child { white-space: nowrap; font-size: 8.5px; }
.tabs-b .ind { position: relative; width: 40px; height: 22px; border-radius: 999px; display: grid; place-items: center; }
.tabs-b .on .ind { background: var(--brand-soft); color: var(--brand-deep); }
.tabs-b .badge { position: absolute; top: -5px; inset-inline-end: 2px; background: var(--bad); color: #fff; font-size: 9px; font-style: normal; border-radius: 999px; padding: 0 5px; line-height: 15px; }
.num { font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.p-ok { background: var(--ok-soft); color: var(--ok); }
.ava { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; font-weight: 700; flex: none; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg span { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 10.5px; }
.seg span.on { background: var(--brand); color: #fff; border-color: var(--brand); }
/* The hero phone's orders app: the day, the day's sales on a card with its trend, the filters, the latest orders. */
.bhead { display: flex; align-items: center; gap: 8px; }
.bhead > div { flex: 1; line-height: 1.35; min-width: 0; }
.bhead small { display: block; color: var(--muted); font-size: 10.5px; }
.bhead b { font-size: 16px; font-weight: 700; }
.sales { position: relative; display: grid; gap: 2px; padding: 12px 13px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--brand), #7a5af8); overflow: hidden; }
.sales small { opacity: .85; font-size: 10.5px; }
.screen .sales b { font-size: 22px; font-weight: 800; line-height: 1.25; }
.sales b em { font-style: normal; font-size: 11px; font-weight: 600; opacity: .85; margin-inline-start: 4px; }
.sales .up { width: max-content; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 10px; font-weight: 700; direction: ltr; }
.sales svg { position: absolute; inset-inline-end: 12px; bottom: 12px; width: 40%; height: 38px; }
[dir="rtl"] .sales svg { transform: scaleX(-1); }
.ocard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 9px 11px; display: grid; gap: 3px; }
.orow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.orow b { font-size: 12px; }
.ocard small { color: var(--muted); font-size: 10px; }
/* The home: the greeting, the day card, the watch-face punch button. */
.greet { display: flex; align-items: center; gap: 8px; }
.greet > div { flex: 1; line-height: 1.4; min-width: 0; }
.greet .ava { width: 38px; height: 38px; font-size: 15px; }
.greet b { font-size: 14.5px; }
.greet small { color: var(--muted); }
.gl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 1px; }
.gl small { font-size: 10.5px; }
.clk { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); font-size: 10.5px; }
.clk svg { width: 11px; height: 11px; color: var(--muted); }
.greet .clk b { font-size: 10.5px; }
.bell { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; flex: none; }
.bell svg { width: 17px; height: 17px; }
.bell i { position: absolute; top: -2px; inset-inline-end: -2px; min-width: 15px; height: 15px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 9px; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px; display: grid; gap: 10px; }
.dh { display: flex; align-items: center; gap: 5px; }
.dh svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.dh small { flex: 1; color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh .num { direction: ltr; unicode-bidi: isolate; }
.tt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.t { min-width: 0; display: flex; align-items: center; gap: 7px; padding: 7px; border-radius: 10px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.t > span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); }
.t > span svg { width: 15px; height: 15px; }
.t small { display: block; color: var(--muted); font-size: 9.5px; line-height: 1.3; }
.t b { font-size: 12.5px; line-height: 1.3; }
.t.good { background: color-mix(in srgb, var(--ok-soft) 60%, transparent); }
.t.good > span { background: var(--ok-soft); color: var(--ok); }
.punch { display: grid; justify-items: center; gap: 7px; padding-top: 4px; }
.watch { position: relative; width: 74cqw; aspect-ratio: 1; display: grid; place-items: center; }
.watch > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.watch .glow { opacity: .2; animation: glow 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pbtn { position: relative; width: 73.5%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: .5cqw; color: #fff; text-align: center;
  background: linear-gradient(to bottom left, #ca564e, #962a22); border: 3px solid rgba(255, 255, 255, .18); animation: breathe 2.4s ease-in-out infinite; }
.pbtn svg { width: 9cqw; height: 9cqw; opacity: .9; }
.pbtn b { font-size: 8cqw; font-weight: 800; line-height: 1.1; direction: ltr; }
.pbtn small { font-size: 3.5cqw; opacity: .85; line-height: 1.25; max-width: 30cqw; }
.plabel { font-size: 13.5px; }
.zone { display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 10.5px; font-weight: 600; }
.zone svg { width: 12px; height: 12px; color: var(--brand); }
@media (max-width: 560px) { .ticks { grid-template-columns: minmax(0, 1fr); } }

/* ── Services ───────────────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cards > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.cards > div:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.cards .ti { grid-row: span 2; }
.cards h3 { font-size: 17px; font-weight: 700; }
.cards p { color: var(--muted); font-size: 15px; line-height: 1.65; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ── Process ────────────────────────────────────────────────────────────────── */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.flow li { counter-increment: s; position: relative; display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: var(--surface-2); }
.flow li::before { content: counter(s, arabic-indic); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 6px; border-radius: 50%; background: var(--surface); color: var(--brand); font-weight: 800; box-shadow: 0 0 0 1px var(--line); }
[dir="ltr"] .flow li::before { content: counter(s); }
.flow li:last-child::before { background: var(--brand); color: #fff; box-shadow: none; }
.flow b { font-size: 18px; font-weight: 700; }
.flow p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.aside { margin-top: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--muted); font-size: 15px;
  background: linear-gradient(to left, color-mix(in srgb, var(--brand-soft) 70%, var(--surface)), var(--surface)); }
[dir="ltr"] .aside { background: linear-gradient(to right, color-mix(in srgb, var(--brand-soft) 70%, var(--surface)), var(--surface)); }
@media (max-width: 960px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .flow { grid-template-columns: minmax(0, 1fr); } }

/* ── Contact ────────────────────────────────────────────────────────────────── */
.contact { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: var(--r-xl); background: linear-gradient(135deg, var(--band), color-mix(in srgb, var(--band) 70%, #1a6be0)); color: var(--band-ink); }
.contact::before { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; inset-block-start: -200px; inset-inline-end: -140px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(77, 147, 245, .35), transparent); }
.contact-copy { display: grid; gap: 14px; }
.contact .eyebrow { background: rgba(255, 255, 255, .1); color: #cfe1ff; }
.contact .eyebrow::before { background: #6ea8ff; }
.contact h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
.contact .lead { color: var(--band-muted); }
.ways { display: grid; gap: 12px; }
.way { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); text-decoration: none; color: #fff;
  transition: background-color .25s, transform .25s var(--ease); }
.way:hover { background: rgba(255, 255, 255, .13); transform: translateY(-2px); }
.way .ti { background: rgba(255, 255, 255, .12); color: #fff; }
.way-wa .ti { background: var(--wa); }
.way > span:last-child { display: grid; line-height: 1.5; }
.way small { color: var(--band-muted); font-size: 13px; }
.way b { font-size: 18px; font-weight: 700; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* The WhatsApp button floating at the page's corner. */
.wa { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px -10px rgba(18, 140, 70, .7); transition: transform .3s var(--ease); }
.wa::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--wa); z-index: -1; animation: ping 3.2s var(--ease) 2s infinite; }
.wa:hover { transform: scale(1.08); }
.wa:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.wa svg { width: 30px; height: 30px; }
@media (max-width: 560px) { .wa { width: 50px; height: 50px; bottom: 16px; inset-inline-end: 16px; } .wa svg { width: 26px; height: 26px; } }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
footer { padding-block: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer .mark img { height: 28px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a { text-decoration: none; transition: color .2s; }
footer nav a:hover { color: var(--brand); }

/* ── Motion ─────────────────────────────────────────────────────────────────── */
@keyframes rise { from { transform: translateY(18px); opacity: .001; } to { transform: none; opacity: 1; } }
@keyframes float { 50% { translate: 0 -8px; } }
@keyframes ping { 0% { transform: scale(1); opacity: .45; } 60%, 100% { transform: scale(1.8); opacity: 0; } }
@keyframes glow { 50% { opacity: .32; transform: scale(1.25); } }
@keyframes breathe { 0%, 100% { box-shadow: 0 8px 20px rgba(192, 54, 44, .28); } 50% { box-shadow: 0 8px 32px rgba(192, 54, 44, .42); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.stage .browser { animation: rise .9s var(--ease) .2s both; }
.stage .phone { animation: rise .9s var(--ease) .38s both, float 7s ease-in-out 1.4s infinite; }
.chip-a { animation: rise .7s var(--ease) .7s both; }
.chip-b { animation: rise .7s var(--ease) .9s both, float 6s ease-in-out 2s infinite; }
.wa { animation: pop .6s var(--ease) 1s both; }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
