/* generated by tools/fonts.py: do not edit by hand */
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk.7358fe8e.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+2713,U+FEFF,U+FFFD; }
@font-face { font-family: "Almarai"; src: url("/assets/fonts/almarai-400.97d1253e.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+0020-0040,U+005B-0060,U+007B-007E,U+00A0,U+00AB,U+00BB,U+00B7,U+2010-2027,U+2030-203A,U+2060; }
@font-face { font-family: "Almarai"; src: url("/assets/fonts/almarai-700.5d4a1511.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+0020-0040,U+005B-0060,U+007B-007E,U+00A0,U+00AB,U+00BB,U+00B7,U+2010-2027,U+2030-203A,U+2060; }
@font-face { font-family: "Almarai"; src: url("/assets/fonts/almarai-800.cc6dd5b4.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; unicode-range: U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+0020-0040,U+005B-0060,U+007B-007E,U+00A0,U+00AB,U+00BB,U+00B7,U+2010-2027,U+2030-203A,U+2060; }
/* fallback faces: Arial sized to the web fonts' metrics, so the swap moves no line */
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 126.64%; ascent-override: 77.70%; descent-override: 23.06%; line-gap-override: 0.00%; }
@font-face { font-family: "Almarai Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 138.65%; ascent-override: 65.27%; descent-override: 15.22%; line-gap-override: 0.00%; }

/* MelioTech website: one shared stylesheet for every page (en/ltr and ar/rtl). Logical properties throughout, so the
   Arabic pages mirror themselves. Motion is CSS only, transform/opacity only (no layout animation), and everything
   stands still under prefers-reduced-motion. fonts.css (generated by tools/fonts.py) is prepended by the build. */

:root {
  color-scheme: dark;
  --navy: #0A1630;
  --navy-2: #0E1B3F;
  --blue: #2F6BFF;
  --deep: #1D4ED8;
  --cyan: #22D3EE;
  --violet: #7C3AED;
  --indigo: #6366F1;
  --t1: #FFFFFF;
  --t2: #C7D2FE;
  --t3: #A5B4FC;
  --t4: #8EA0C8;
  --t5: #94A3B8;
  --line: rgba(199, 210, 254, .14);
  --line-2: rgba(199, 210, 254, .26);
  --card: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  --card-flat: rgba(255, 255, 255, .045);
  /* text gradient: the posts' cyan → blue → violet, lifted so every stop keeps AA contrast on navy */
  --grad: linear-gradient(90deg, #22D3EE 0%, #4F8DFF 48%, #A78BFA 100%);
  --grad-edge: linear-gradient(135deg, #22D3EE, #2F6BFF 45%, #7C3AED);
  --grad-btn: linear-gradient(135deg, #2F6BFF 0%, #2457E6 55%, #1D4ED8 100%);
  --wa: #15803D;
  --font-en: "Space Grotesk", "Space Grotesk Fallback", Arial, sans-serif;
  --font-ar: "Almarai", "Almarai Fallback", "Space Grotesk", Arial, sans-serif;
  --font: var(--font-en);
  --wrap: 1160px;
  --gutter: 16px;
  --head-h: 64px;
  --r: 20px;
  --r-s: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --cycle: 18s;
}
:root[lang="ar"] { --font: var(--font-ar); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-block-start: calc(var(--head-h) + 12px); }
body {
  margin: 0; background: var(--navy); color: var(--t2); font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100vh;
}
:root[lang="ar"] body { line-height: 1.85; }
[lang="ar"] { font-family: var(--font-ar); }
[lang="en"] { font-family: var(--font-en); }
h1, h2, h3, h4 { color: var(--t1); margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
:root[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.35; }
:root[lang="ar"] :is(h1, h2) { font-weight: 800; }
p, figure, dl, dd { margin: 0; }
p, li, dd, dt, figcaption, summary { text-wrap: pretty; }   /* no lone word on the last line (WebKit + Chromium) */
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
em { font-style: normal; }
strong { color: var(--t1); font-weight: 700; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.grad, h1 em, h2 em, .kicker em {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  padding-block-end: .06em;             /* Almarai descenders are tall; keep the clip from cutting them */
}
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { text-align: center; }

/* ---------- focus + skip ---------- */
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .pill:focus-visible { outline-offset: 4px; }
.skip {
  position: absolute; inset-inline-start: 12px; inset-block-start: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--t1); color: var(--navy); font-weight: 700; text-decoration: none;
}
.skip:focus { inset-block-start: 12px; }

/* ---------- background: navy, two drifting glows, dot grid ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--navy); }
.bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(199, 210, 254, .10) 1px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 100%);
}
.glow { position: absolute; border-radius: 50%; will-change: transform; }
.glow-a { width: 72vmax; height: 72vmax; inset-inline-start: -28vmax; inset-block-start: -34vmax; background: radial-gradient(closest-side, rgba(47, 107, 255, .36), rgba(47, 107, 255, .10) 45%, rgba(47, 107, 255, 0) 72%); animation: drift-a 26s ease-in-out infinite alternate; }
.glow-b { width: 70vmax; height: 70vmax; inset-inline-end: -30vmax; inset-block-end: -36vmax; background: radial-gradient(closest-side, rgba(124, 58, 237, .32), rgba(124, 58, 237, .10) 45%, rgba(124, 58, 237, 0) 72%); animation: drift-b 32s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(6vmax, 5vmax, 0); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-6vmax, -5vmax, 0); } }
/* the giant faint M of the posts */
.wm-m { position: absolute; z-index: 0; pointer-events: none; color: #C7D2FE; opacity: .085; width: min(78vw, 560px); height: auto; aspect-ratio: 1; inset-inline-end: -16vw; inset-block-end: -10vw; }
/* in the hero the M fades out before the hero's bottom edge, so the next section never cuts it with a hard line */
.hero .wm-m { -webkit-mask-image: linear-gradient(to bottom, #000 22%, transparent 58%); mask-image: linear-gradient(to bottom, #000 22%, transparent 58%); }

/* ---------- header ---------- */
.site-head { position: sticky; inset-block-start: 0; z-index: 50; background: rgba(10, 22, 48, .96); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-block-end: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 10px; min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--t1); margin-inline-end: auto; }
.brand .mark { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.wm { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.wm-en { font-family: var(--font-en); font-weight: 700; font-size: 1.22rem; letter-spacing: -.02em; color: var(--t1); }
.wm-en em { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.wm-ar { font-family: var(--font-ar); font-weight: 400; font-size: .7rem; color: var(--t3); margin-block-start: 4px; }
.nav { display: none; gap: 4px; }
.nav a { color: var(--t2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 10px; border-radius: 10px; white-space: nowrap; transition: color .2s, background-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--t1); background: rgba(255, 255, 255, .06); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--t1); text-decoration: none; font-size: .92rem; font-weight: 700; line-height: 1; white-space: nowrap; transition: border-color .2s, background-color .2s; }
.lang:hover { border-color: var(--t3); background: rgba(255, 255, 255, .06); }
.site-head .head-cta { display: none; }
.head-cta .long, .cta-bar .long { display: none; }
/* mobile menu: a <details>, so it works without JS */
.menu { position: static; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px 6px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--t1); font-weight: 700; font-size: .92rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu .menu-close, .menu[open] .menu-open { display: none; }
.menu[open] .menu-close { display: inline-flex; }
/* the open panel is solid navy and covers the whole screen under the header, so nothing shows through it */
.menu-panel { position: absolute; inset-inline: 0; inset-block-start: 100%; height: calc(100vh - var(--head-h) - 1px); height: calc(100dvh - var(--head-h) - 1px); overflow-y: auto; background: var(--navy); padding: 10px var(--gutter) 24px; }
body:has(details.menu[open]) .cta-bar { display: none; }   /* the sticky bar would float over the panel's own button */
.menu-panel nav { display: grid; }
.menu-panel nav a { color: var(--t1); text-decoration: none; font-weight: 600; font-size: 1.05rem; padding: 13px 10px; border-radius: 10px; border-block-end: 1px solid var(--line); }
.menu-panel nav a:hover, .menu-panel nav a[aria-current="page"] { background: rgba(255, 255, 255, .06); }
.menu-panel nav a:last-child { border: 0; }
.menu-cta { display: grid; gap: 10px; margin-block-start: 14px; }
.menu-panel .btn { width: 100%; }

/* ---------- buttons, pills, numbers ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 30px -8px rgba(47, 107, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -10px rgba(47, 107, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--t1); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--t3); }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.btn-sm svg { width: 18px; height: 18px; }
.btn-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 4px; color: var(--t2); text-decoration: none; font-weight: 600; border-radius: 8px; }
.btn-link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn-link:hover { color: var(--t1); }
.btn-link:hover svg { transform: translateY(2px); }
.more-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--t1); font-weight: 700; text-decoration: none; border-block-end: 1px solid var(--line-2); padding-block: 2px; }
.more-link:hover { border-color: var(--cyan); }
.more-link .arrow { width: 18px; height: 18px; }
:root[dir="rtl"] .more-link .arrow { transform: scaleX(-1); }
.pill {
  display: inline-flex; align-items: center; gap: .55em; padding: .45em .95em; border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, .55); background: rgba(99, 102, 241, .13); color: var(--t2); font-size: .9rem; font-weight: 500; line-height: 1.3;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); flex: none; }
.pill .sep { color: var(--t4); }
.pill [lang] { font-weight: 700; }
.pill-soft { border-color: var(--line-2); background: rgba(10, 22, 48, .5); color: var(--t2); }
.pill-soft::before { background: var(--t3); box-shadow: none; width: 5px; height: 5px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.n {
  display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff;
  font-family: var(--font-en); font-weight: 700; font-size: .85rem; line-height: 1; box-shadow: 0 0 0 5px rgba(47, 107, 255, .16), 0 6px 14px rgba(0, 0, 0, .3);
}
.kicker { display: inline-flex; align-items: center; gap: .55em; padding: .45em .95em; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 22, 48, .5); color: var(--t2); font-size: .9rem; font-weight: 600; line-height: 1.3; }
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); flex: none; }
.fine { color: var(--t4); font-size: .95rem; }
/* the Instagram handle inside a fine line: Space Grotesk sits visibly taller than Almarai at the same size */
:root[lang="ar"] :is(.fine, .hero-fine) > bdi[lang="en"] { font-size: .92em; }
.lead { color: var(--t3); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); max-width: 60ch; }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(56px, 8vw, 100px); }
.section.band { background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)); border-block: 1px solid rgba(199, 210, 254, .08); }
.sec-head { max-width: 760px; margin-block-end: clamp(26px, 4vw, 44px); }
.sec-head h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.7rem); margin-block-start: 16px; }
.sec-head .lead { margin-block-start: 14px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-block-start: 24px; }
.cta-row .btn-primary, .cta-row .btn-wa { width: 100%; }
.cta-row .cta-lead { flex: 1 1 100%; margin: 0 0 -2px; color: var(--t1); font-weight: 700; font-size: 1.02rem; }
.note-line { margin-block-start: 18px; padding: 16px 18px; border-radius: var(--r-s); border: 1px solid rgba(34, 211, 238, .28); background: rgba(34, 211, 238, .06); color: var(--t2); display: flex; gap: 12px; align-items: flex-start; }
.note-line svg { width: 22px; height: 22px; flex: none; color: var(--cyan); margin-block-start: 3px; }
.more-row { margin-block-start: 22px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 28px 48px; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.hero-copy { max-width: 640px; }
.hero h1 { font-size: clamp(2.15rem, 1.15rem + 4.4vw, 3.6rem); line-height: 1.06; margin-block-start: 18px; }
:root[lang="ar"] .hero h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.2rem); line-height: 1.3; }
/* the one line in the other language sits flush with the h1: the page's inline start, whatever the line's own direction */
.other-line { margin-block-start: 12px; font-size: clamp(1.1rem, 1rem + .8vw, 1.45rem); font-weight: 700; color: var(--t2); line-height: 1.45; text-align: left; }
:root[dir="rtl"] .other-line { font-weight: 600; letter-spacing: -.01em; text-align: right; }
.price-note { margin-block-start: 12px; color: var(--t3); font-size: 1rem; }
.hero .lead { margin-block-start: 14px; }
.hero .cta-row { margin-block-start: 22px; }
.hero-fine { margin-block-start: 14px; color: var(--t4); font-size: .92rem; }
/* the two hook cards (price, free demo): pill tags + gradient edges */
.hooks { display: grid; gap: 10px; margin-block-start: 20px; }
.hook { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; border-radius: var(--r-s); background: var(--card-flat); }
.hook::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--grad-edge); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; }
.hook .tag { display: inline-flex; align-items: center; gap: .5em; font-size: .8rem; font-weight: 700; color: var(--t3); padding: .3em .75em; border-radius: 999px; border: 1px solid var(--line-2); }
.hook .tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
.hook .big { font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: var(--t1); text-wrap: balance; }
.hook .big.price { font-size: 1.75rem; }
:root[lang="ar"] .hook .big.price { font-size: 1.5rem; }
.hook .fine { color: var(--t3); font-size: .9rem; line-height: 1.45; }
.hook-price { display: none; }                /* on phones the h1 and its note already carry the price */
.price { display: inline-block; font-weight: 700; white-space: nowrap; background: linear-gradient(90deg, #22D3EE 0%, #4F8DFF 30%, #A78BFA 55%, #4F8DFF 80%, #22D3EE 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; padding-block-end: .06em; animation: shimmer 9s linear infinite; }
h1 em, .closing .kicker em { background-size: 250% 100%; background-image: linear-gradient(90deg, #22D3EE 0%, #4F8DFF 30%, #A78BFA 55%, #4F8DFF 80%, #22D3EE 100%); animation: shimmer 9s linear infinite; }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 250% 50%; } }
.crumbs { margin-block-end: 14px; font-size: .9rem; color: var(--t4); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--t5); }
.crumbs a { color: var(--t3); text-decoration: none; }
.crumbs a:hover { color: var(--t1); }
.hero-solo .hero-copy { max-width: 760px; }
/* service pages: no band line and a shorter gap between the hero and its first section */
.hero-page + .section.band { border-block-start: 0; }
.hero-page + .section { padding-block-start: clamp(40px, 5vw, 64px); }
.nf .lead + .lead { margin-block-start: 10px; }
.nf h1 .sep { display: none; }                                            /* the other language's heading is its own line */
.nf h1 [lang] { display: block; font-size: .72em; margin-block-start: .2em; color: var(--t2); }
.nf [lang] { text-align: left; }                                          /* both languages share the page's start edge */
:root[dir="rtl"] .nf [lang] { text-align: right; }

/* ---------- phone mock-up ---------- */
.hero-visual { position: relative; display: grid; justify-items: center; gap: 16px; }
.stage-head { display: flex; justify-content: center; }
.stage { position: relative; width: 272px; }
.phone { position: relative; width: 272px; height: 560px; border-radius: 44px; background: #0B1226; border: 1px solid rgba(199, 210, 254, .22); padding: 11px; box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 0 0 7px #141F42, inset 0 0 0 8px rgba(255, 255, 255, .05), 0 0 80px -20px rgba(47, 107, 255, .5); }
.phone::before { content: ""; position: absolute; inset-block-start: 16px; inset-inline-start: 50%; transform: translateX(-50%); width: 80px; height: 22px; border-radius: 999px; background: #05080F; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #F3F6FC; color: #0A1630; }
.screen .status { position: absolute; inset-inline: 0; inset-block-start: 0; height: 44px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 22px 6px; }
.status i { display: block; height: 6px; border-radius: 3px; background: #0F172A; opacity: .8; }
.status .l { width: 24px; }
.status .r { display: flex; gap: 4px; }
.status .r i { width: 9px; }
.status .r i:last-child { width: 15px; border-radius: 2px; }
.layer { position: absolute; inset: 44px 0 0; padding: 4px 12px 12px; font-size: 11px; line-height: 1.3; }
.layer-en { font-family: var(--font-en); }
.layer-ar { font-family: var(--font-ar); opacity: 0; }
.topbar { display: flex; align-items: center; gap: 7px; padding: 4px 2px 10px; }
.topbar .dot { width: 18px; height: 18px; border-radius: 6px; background: var(--grad-btn); flex: none; }
.topbar .nm { font-weight: 700; font-size: 11.5px; flex: 1; }
.chip { display: inline-flex; border: 1px solid #CBD5E1; border-radius: 999px; padding: 2px; font-size: 9px; font-weight: 700; line-height: 1; }
.chip span { padding: 4px 7px; border-radius: 999px; color: #475569; }
.chip .on { background: #0F172A; color: #fff; }
.mhero { border-radius: 14px; padding: 14px 12px 12px; color: #fff; background: linear-gradient(135deg, #1D4ED8 0%, #2F6BFF 70%, #3B82F6 100%); box-shadow: 0 10px 24px rgba(29, 78, 216, .35); }
.mhero .t { font-weight: 700; font-size: 14px; line-height: 1.2; margin-block-end: 8px; }
.mhero .bar { display: block; height: 6px; width: 78%; border-radius: 4px; background: rgba(255, 255, 255, .55); margin-block-end: 5px; }
.mhero .bar.w { width: 56%; }
.mhero .wa { display: inline-flex; align-items: center; gap: 5px; margin-block-start: 8px; background: var(--wa); color: #fff; font-weight: 700; font-size: 9.5px; padding: 6px 9px; border-radius: 999px; }
.mhero .wa svg { width: 11px; height: 11px; }
.mttl { font-weight: 700; font-size: 11px; color: #0A1630; margin: 12px 2px 7px; }
.mrow { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #E4E9F5; border-radius: 10px; padding: 7px 8px; margin-block-end: 6px; }
.mrow .ph { width: 22px; height: 22px; border-radius: 7px; flex: none; background: linear-gradient(135deg, #FDE68A, #F59E0B); }
.mrow .p2 { background: linear-gradient(135deg, #C7D2FE, #6366F1); }
.mrow .p3 { background: linear-gradient(135deg, #FBCFE8, #DB2777); }
.mrow .tx { flex: 1; display: grid; gap: 4px; }
.mrow .tx b { font-size: 10px; font-weight: 700; color: #0F172A; }
.mrow .tx i { display: block; height: 4px; width: 55%; border-radius: 3px; background: #E2E8F0; }
.mcards { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-block-start: 4px; }
.mcard { background: #fff; border: 1px solid #E4E9F5; border-radius: 10px; padding: 8px; min-height: 64px; }
.mcard b { display: block; font-size: 9.5px; margin-block-end: 6px; color: #0F172A; }
.mcard i { display: block; height: 4px; border-radius: 3px; background: #E2E8F0; margin-block-end: 5px; }
.mcard i:nth-child(2) { width: 85%; } .mcard i:nth-child(3) { width: 65%; } .mcard i:nth-child(4) { width: 75%; }
.map { position: relative; height: 34px; border-radius: 7px; background-color: #EDF1FA; background-image: linear-gradient(rgba(47, 107, 255, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 107, 255, .14) 1px, transparent 1px); background-size: 9px 9px; }
.map::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -9px 0 0 -5px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--blue); box-shadow: 0 0 0 3px rgba(47, 107, 255, .25); }
.fab { position: absolute; inset-inline-end: 12px; inset-block-end: 12px; width: 36px; height: 36px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(37, 211, 102, .4); color: #fff; }
.fab svg { width: 20px; height: 20px; }
.marker { position: absolute; z-index: 4; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-en); font-weight: 700; font-size: 11px; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(10, 22, 48, .9), 0 0 0 5px rgba(47, 107, 255, .55); }
.marker.m1 { inset-block-start: 56px; inset-inline-end: -6px; }     /* language toggle: Arabic + English */
.marker.m2 { inset-block-start: 128px; inset-inline-start: -8px; }  /* hero card: made for phones */
.marker.m3 { inset-block-start: 404px; inset-inline-end: -8px; }    /* hours + map card: set up for Google */
.marker.m4 { inset-block-end: 2px; inset-inline-end: -12px; }       /* WhatsApp button */
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 360px; }
.legend li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(10, 22, 48, .5); color: var(--t2); font-size: .86rem; font-weight: 600; box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
.legend .n { width: 22px; height: 22px; font-size: .74rem; box-shadow: none; }

/* the build-up (html.js only; without JS or with reduced motion the finished English screen stands still).
   timeline (% of --cycle): finished 0-6 · clear 8 · top bar 10-13 · hero card 14-19 · menu 20-28 · hours + map 29-34
   · WhatsApp 36-40 · hold · Arabic layer 60-65 · hold · back to English 94-100 */
.js .layer-en, .js .layer-ar, .js .s1, .js .s2, .js .s3, .js .s4, .js .s5, .js .marker, .js .legend li { animation-duration: var(--cycle); animation-iteration-count: infinite; animation-timing-function: ease-out; animation-fill-mode: both; }
.js .layer-en { animation-name: layer-en; }
.js .layer-ar { animation-name: layer-ar; }
.js .layer-en .s1 { animation-name: in-1; }
.js .layer-en .s2 { animation-name: in-2; }
.js .layer-en .s3 { animation-name: in-3; }
.js .layer-en .s4 { animation-name: in-4; }
.js .layer-en .s5 { animation-name: in-5; animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
.js .marker.m1 { animation-name: mk1; } .js .marker.m2 { animation-name: mk2; } .js .marker.m3 { animation-name: mk3; } .js .marker.m4 { animation-name: mk4; }
.js .legend .l1 { animation-name: lg1; } .js .legend .l2 { animation-name: lg2; } .js .legend .l3 { animation-name: lg3; } .js .legend .l4 { animation-name: lg4; }
@keyframes layer-en { 0%, 60% { opacity: 1; } 65%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes layer-ar { 0%, 60% { opacity: 0; } 65%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes in-1 { 0%, 6% { opacity: 1; transform: none; } 8%, 10% { opacity: 0; transform: translateY(-8px); } 13%, 100% { opacity: 1; transform: none; } }
@keyframes in-2 { 0%, 6% { opacity: 1; transform: none; } 8%, 14% { opacity: 0; transform: translateY(14px) scale(.98); } 19%, 100% { opacity: 1; transform: none; } }
@keyframes in-3 { 0%, 6% { opacity: 1; transform: none; } 8%, 20% { opacity: 0; transform: translateX(-12px); } 28%, 100% { opacity: 1; transform: none; } }
@keyframes in-4 { 0%, 6% { opacity: 1; transform: none; } 8%, 29% { opacity: 0; transform: translateY(12px); } 34%, 100% { opacity: 1; transform: none; } }
@keyframes in-5 { 0%, 6% { opacity: 1; transform: scale(1); } 8%, 36% { opacity: 0; transform: scale(.2); } 40%, 100% { opacity: 1; transform: scale(1); } }
@keyframes mk1 { 0%, 6% { opacity: 1; transform: scale(1); } 8%, 12% { opacity: 0; transform: scale(.4); } 15%, 100% { opacity: 1; transform: scale(1); } }
@keyframes mk2 { 0%, 6% { opacity: 1; transform: scale(1); } 8%, 18% { opacity: 0; transform: scale(.4); } 21%, 100% { opacity: 1; transform: scale(1); } }
@keyframes mk3 { 0%, 6% { opacity: 1; transform: scale(1); } 8%, 33% { opacity: 0; transform: scale(.4); } 36%, 100% { opacity: 1; transform: scale(1); } }
@keyframes mk4 { 0%, 6% { opacity: 1; transform: scale(1); } 8%, 40% { opacity: 0; transform: scale(.4); } 43%, 100% { opacity: 1; transform: scale(1); } }
/* the legend chips keep full contrast at all times; the chip of the stage being built gets a cyan ring instead
   (border-color + box-shadow: paint only, no layout) while its marker pops in */
@keyframes lg1 { 0%, 11% { border-color: var(--line); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } 13%, 17% { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .22); } 21%, 100% { border-color: var(--line); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
@keyframes lg2 { 0%, 17% { border-color: var(--line); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } 19%, 23% { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .22); } 27%, 100% { border-color: var(--line); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
@keyframes lg3 { 0%, 32% { border-color: var(--line); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } 34%, 38% { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .22); } 42%, 100% { border-color: var(--line); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
@keyframes lg4 { 0%, 39% { border-color: var(--line); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } 41%, 45% { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .22); } 49%, 100% { border-color: var(--line); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }

/* ---------- story strip ("Do you have a website?") ---------- */
.story-grid { display: grid; gap: 14px; }
.story-card { position: relative; padding: 22px 20px 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.story-card .step { display: inline-flex; align-items: center; gap: 10px; color: var(--t3); font-size: .92rem; font-weight: 600; }
.story-card .step .n { width: 26px; height: 26px; box-shadow: none; }
.bubbles { display: flex; flex-direction: column; gap: 8px; margin-block-start: 4px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .975rem; line-height: 1.45; }
.bubble.them { align-self: flex-start; background: #E9EEF8; color: #0A1630; border-end-start-radius: 4px; }
.bubble.you { align-self: flex-end; background: var(--grad-btn); color: #fff; border-end-end-radius: 4px; }
.bubble.empty { align-self: flex-end; background: transparent; border: 1px dashed var(--line-2); color: var(--t3); border-end-end-radius: 4px; }
.bubble.card { align-self: flex-end; background: #fff; color: #0A1630; padding: 10px; width: 88%; border-end-end-radius: 4px; }
.bubble.card .mini { border-radius: 10px; overflow: hidden; border: 1px solid #E2E8F0; background: #F4F7FD; }
.bubble.card .mini .mh { height: 34px; background: linear-gradient(135deg, #1D4ED8, #2F6BFF 70%, #3B82F6); }
.bubble.card .mini .mb { padding: 8px 10px; display: grid; gap: 5px; }
.bubble.card .mini .mb b { display: block; height: 5px; border-radius: 3px; background: #CBD5E1; }
.bubble.card .mini .mb b:nth-child(2) { width: 70%; } .bubble.card .mini .mb b:nth-child(3) { width: 50%; }
.bubble.card .cap { font-size: .8rem; color: #334155; margin-block-start: 6px; display: flex; justify-content: space-between; gap: 8px; }
.bubble.card .cap em { color: var(--deep); font-weight: 700; }
.story-card .out { margin-block-start: auto; color: var(--t2); font-size: 1rem; }
.story-card.hi { border-color: rgba(34, 211, 238, .35); box-shadow: 0 0 60px -30px rgba(34, 211, 238, .6); }
.demo-pic { position: relative; align-self: flex-end; width: 46%; aspect-ratio: 9 / 11; border-radius: 14px; overflow: hidden; border: 1px solid #E2E8F0; background: #F4F7FD; }
.demo-pic .dh { height: 34%; background: linear-gradient(135deg, #1D4ED8, #2F6BFF 70%, #3B82F6); }
.demo-pic .db { padding: 8px; display: grid; gap: 6px; }
.demo-pic .db b { display: block; height: 6px; border-radius: 3px; background: #CBD5E1; }
.demo-pic .db b:nth-child(2) { width: 70%; } .demo-pic .db b:nth-child(3) { width: 45%; }
.demo-pic .stamp { position: absolute; inset: 0; display: grid; place-items: center; }
.demo-pic .stamp span { transform: rotate(-18deg); border: 2px solid rgba(29, 78, 216, .7); color: #1D4ED8; font-weight: 800; font-size: 1rem; padding: 2px 12px; border-radius: 8px; letter-spacing: .08em; background: rgba(255, 255, 255, .8); font-family: var(--font); white-space: nowrap; }
:root[dir="rtl"] .demo-pic .stamp span { transform: rotate(18deg); letter-spacing: 0; }

/* ---------- feature cards ---------- */
.cards { display: grid; gap: 14px; }
.card { position: relative; padding: 24px 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(47, 107, 255, .28), rgba(124, 58, 237, .22)); border: 1px solid rgba(199, 210, 254, .2); color: var(--cyan); margin-block-end: 16px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; line-height: 1.25; }
.card p { color: var(--t3); margin-block-start: 8px; font-size: .975rem; }
.card > .n { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; box-shadow: none; }

/* ---------- free demo: steps + Instagram-DM card ---------- */
.demo-grid { display: grid; gap: 28px; align-items: start; }
.demo-steps { display: grid; gap: 12px; }
.demo-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 18px; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); }
.demo-steps .n { width: 40px; height: 40px; font-size: 1rem; background: var(--grad-btn); box-shadow: 0 8px 20px -10px rgba(47, 107, 255, .9); }
.demo-steps h3 { font-size: 1.1rem; }
.demo-steps p { color: var(--t3); margin-block-start: 4px; font-size: .975rem; }
.demo-grid .fine { margin-block-start: 12px; }
.chat { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 24px; background: #0F1D48; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.chat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block-end: 12px; border-block-end: 1px solid var(--line); }
.chat-head .mark { width: 32px; height: 32px; }
.chat-head .avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(47, 107, 255, .2); color: var(--cyan); }
.chat-head .avatar svg { width: 18px; height: 18px; }
.chat-head .who { font-weight: 700; color: var(--t1); font-size: .95rem; line-height: 1.1; }
.chat-head .what { font-size: .8rem; color: var(--t4); }
.chat-head .pill-soft { margin-inline-start: auto; font-size: .8rem; }
.bub { max-width: 86%; padding: 11px 15px; border-radius: 20px; font-size: .95rem; line-height: 1.5; }
.bub.me { align-self: flex-end; background: var(--grad-btn); color: #fff; border-end-end-radius: 7px; }
.bub.mt { align-self: flex-start; background: rgba(255, 255, 255, .08); color: var(--t2); border-end-start-radius: 7px; }
.bub.mt.preview { display: flex; gap: 14px; align-items: center; padding: 12px; max-width: 100%; }
.shots { display: flex; gap: 8px; flex: none; }
.shots img { width: 66px; height: auto; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); }
.shots.big { justify-content: center; gap: 16px; }
.shots.big img { width: min(44%, 220px); border-radius: 16px; }
.preview .txt { font-size: .92rem; }
.preview .txt strong { display: block; }
.bot-chat .bub[lang="en"] { font-family: var(--font-en); }
.bot-chat .bub[lang="ar"] { font-family: var(--font-ar); }
.bot-chat .bub.me[dir="rtl"] { align-self: flex-end; }
.bot-chat .bub.mt[dir="rtl"] { align-self: flex-start; }

/* ---------- numbered steps (how we work) ---------- */
.steps { display: grid; gap: 0; }
.steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-block-end: 26px; }
.steps li:last-child { padding-block-end: 0; }
.steps li::before { content: ""; position: absolute; inset-inline-start: 21px; inset-block-start: 44px; inset-block-end: 0; width: 2px; background: linear-gradient(180deg, rgba(47, 107, 255, .7), rgba(124, 58, 237, .3)); }
.steps li:last-child::before { display: none; }
.steps .n { width: 44px; height: 44px; font-size: 1.05rem; }
.steps h3 { font-size: 1.18rem; padding-block-start: 8px; }
.steps p { color: var(--t3); margin-block-start: 6px; font-size: .975rem; max-width: 52ch; }

/* ---------- services teasers / lists ---------- */
.two { display: grid; gap: 14px; }
.svc { padding: 26px 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.svc h3 { font-size: 1.3rem; display: flex; align-items: center; gap: 12px; }
.svc h3 .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(47, 107, 255, .18); color: var(--cyan); flex: none; }
.svc h3 .ico svg { width: 22px; height: 22px; }
.svc ul { margin-block: 14px 18px; display: grid; gap: 10px; }
.svc li, .compare li { position: relative; padding-inline-start: 24px; color: var(--t2); font-size: .975rem; }
.svc li::before, .compare li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .55em; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.svc .more-link { margin-block-start: auto; align-self: flex-start; }
.compare { display: grid; gap: 14px; }
.compare .col { padding: 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.compare h3 { font-size: 1.15rem; }
.compare ul { margin-block-start: 12px; display: grid; gap: 8px; }
.compare .col.more { border-color: rgba(124, 58, 237, .45); }
.compare .col.more li::before { background: linear-gradient(135deg, var(--indigo), var(--violet)); }
.quote-box { margin-block-start: 18px; padding: 22px; border-radius: var(--r); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); display: grid; gap: 16px; }
.quote-box p { color: var(--t2); }
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--t2); font-size: .975rem; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--cyan); margin-block-start: 3px; }
.demo-detail { display: grid; gap: 28px; align-items: center; }
.demo-figure figcaption { margin-block-start: 12px; text-align: center; color: var(--t4); font-size: .9rem; }
.hosting { max-width: 820px; display: grid; gap: 18px; }
.hosting .intro { color: var(--t1); font-weight: 600; font-size: 1.1rem; }
.terms { display: grid; gap: 10px; }
.terms div { padding: 14px 16px; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); }
.terms dt { color: var(--t1); font-weight: 700; }
.terms dd { color: var(--t3); font-size: .975rem; margin-block-start: 4px; }
.example-grid { display: grid; gap: 28px; align-items: center; }
.mini-dash { width: min(100%, 420px); padding: 16px; border-radius: 20px; background: rgba(10, 22, 48, .7); border: 1px solid var(--line); display: grid; gap: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.mini-dash .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-dash .tile { border-radius: 12px; padding: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); display: grid; gap: 8px; }
.mini-dash .tile i { display: block; height: 6px; border-radius: 3px; background: rgba(199, 210, 254, .35); }
.mini-dash .tile b { display: block; height: 12px; border-radius: 3px; width: 55%; background: var(--grad); }
.mini-dash .tile b.w2 { width: 70%; } .mini-dash .tile b.w3 { width: 45%; }
.mini-dash .bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; padding: 0 2px; }
.mini-dash .bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, rgba(79, 141, 255, .9), rgba(79, 141, 255, .25)); }
.mini-dash .bars i:nth-child(odd) { background: linear-gradient(180deg, rgba(167, 139, 250, .9), rgba(167, 139, 250, .25)); }
.mini-dash .bars .h4 { height: 40%; } .mini-dash .bars .h5 { height: 50%; } .mini-dash .bars .h6 { height: 62%; } .mini-dash .bars .h7 { height: 72%; } .mini-dash .bars .h8 { height: 84%; } .mini-dash .bars .h9 { height: 96%; }
.mini-dash .rows { display: grid; gap: 8px; }
.mini-dash .rows i { display: block; height: 8px; border-radius: 4px; background: rgba(199, 210, 254, .18); }
.mini-dash .rows i:nth-child(2) { width: 80%; } .mini-dash .rows i:nth-child(3) { width: 60%; }
.hero-visual .fine { margin-block-start: -4px; }
.hero-visual .bot-chat { width: min(100%, 460px); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border-radius: var(--r-s); border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; font-weight: 600; font-size: 1.05rem; line-height: 1.35; color: var(--t1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--t2); transition: transform .3s var(--ease), background-color .3s; }
.faq summary .plus svg { width: 14px; height: 14px; }
.faq details[open] summary .plus { transform: rotate(45deg); background: rgba(47, 107, 255, .25); }
.faq .a { padding: 0 20px 20px; color: var(--t3); font-size: .975rem; }
.faq .a p + p { margin-block-start: 10px; }
.faq .a strong { color: var(--t2); }

/* ---------- closing CTA ---------- */
.closing { overflow: hidden; }
.close-box { position: relative; overflow: hidden; padding: 44px 24px; border-radius: 28px; border: 1px solid rgba(199, 210, 254, .2); background: linear-gradient(160deg, rgba(47, 107, 255, .22), rgba(10, 22, 48, .4) 50%, rgba(124, 58, 237, .2)); text-align: center; }
.close-box > * { position: relative; z-index: 1; }
.close-box .wm-close { position: absolute; z-index: 0; inset-inline-end: -14%; inset-block-end: -34%; width: min(70vw, 520px); opacity: .09; }
.close-box h2 { margin-block-start: 16px; font-size: clamp(1.8rem, 1.2rem + 3vw, 3rem); }
.close-box .lead { margin: 14px auto 0; }
.close-box .cta-row { justify-content: center; margin-block-start: 26px; }
.close-box .btn { width: 100%; }
.close-box .fine { margin-block-start: 14px; color: var(--t3); }

/* ---------- footer ---------- */
.site-foot { border-block-start: 1px solid var(--line); padding-block: 44px 110px; color: var(--t4); font-size: .95rem; }
.foot-grid { display: grid; gap: 28px; }
.foot-about .brand { margin-inline-end: 0; margin-block-end: 14px; }
.foot-about p { max-width: 44ch; color: var(--t3); }
.foot-links { display: grid; gap: 8px; align-content: start; }
.foot-links h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--t4); font-weight: 700; margin-block-end: 4px; }
:root[lang="ar"] .foot-links h2 { letter-spacing: 0; font-size: .9rem; }
.foot-links a { color: var(--t2); text-decoration: none; padding-block: 4px; width: fit-content; }
.foot-links a:hover { color: var(--t1); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; margin-block-start: 32px; padding-block-start: 18px; border-block-start: 1px solid var(--line); font-size: .9rem; color: var(--t4); }

/* ---------- mobile sticky CTA bar (CSS only; JS hides it while the hero button is on screen) ---------- */
.cta-bar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 60; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 22, 48, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-block-start: 1px solid rgba(199, 210, 254, .12); transition: transform .35s var(--ease); }
.cta-bar { display: flex; gap: 8px; }
.cta-bar .btn { flex: 1 1 0; min-width: 0; min-height: 50px; padding-inline: 10px; font-size: 1rem; }
.js .cta-bar { transform: translateY(110%); }
.js .cta-bar.show { transform: none; }

/* ---------- reveal on scroll (only once JS has run; everything is visible without it) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .08s; }
.js .reveal:nth-child(3) { transition-delay: .16s; }
.js .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- breakpoints ---------- */
@media (min-width: 560px) {
  :root { --gutter: 24px; }
  .cta-row .btn-primary, .cta-row .btn-wa, .close-box .btn { width: auto; }
  .cta-bar .long { display: inline; }
  .cta-bar .short { display: none; }
  .hooks { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cards.four, .cards.two-col, .cards.three { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: repeat(3, 1fr); }
  .two, .compare { grid-template-columns: 1fr 1fr; }
  .terms { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .close-box { padding: 56px 40px; }
  .quote-box { padding: 28px 32px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-copy { max-width: none; }               /* one column: the copy and the two hook cards fill the width */
}
@media (min-width: 768px) {
  :root { --head-h: 68px; }
  .hero { padding-block: 44px 64px; }
  .hook-price { display: flex; }
  .site-head .head-cta { display: inline-flex; }
  .cta-bar { display: none; }
  .site-foot { padding-block: 56px 40px; }
  .demo-grid { grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
  .demo-detail { grid-template-columns: 1.1fr .9fr; }
  .example-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps li { grid-template-columns: 1fr; gap: 14px; padding-block-end: 0; align-content: start; }
  .steps li::before { inset-inline-start: 50px; inset-inline-end: -24px; inset-block: 21px auto; width: auto; height: 2px; background: linear-gradient(90deg, rgba(47, 107, 255, .7), rgba(124, 58, 237, .3)); }
  :root[dir="rtl"] .steps li::before { background: linear-gradient(270deg, rgba(47, 107, 255, .7), rgba(124, 58, 237, .3)); }
  .steps h3 { padding-block-start: 0; }
  .legend { grid-template-columns: repeat(4, auto); max-width: none; justify-content: center; }
  .legend li { font-size: .84rem; padding: 7px 10px; }
}
/* the full menu only where it fits on one line in both languages (Arabic with Careers ≈ 1,190 px, 17 Nov 2026);
   narrower screens keep the Menu button, which lists the same links */
@media (min-width: 1240px) {
  .nav { display: flex; }
  .menu { display: none; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
  .head-cta .long { display: inline; }
  .head-cta .short { display: none; }
  .hero { padding-block: 40px 56px; }
  .hero-page { padding-block-end: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; }
  .hero-solo .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.6rem, 1.5rem + 2.6vw, 3.4rem); }
  :root[lang="ar"] .hero h1 { font-size: clamp(2.3rem, 1.3rem + 2.3vw, 3rem); }
  .hero-visual { gap: 14px; }
  .stage, .phone { width: 250px; }
  .phone { height: 515px; }
  .layer { font-size: 10.5px; }
  .marker.m3 { inset-block-start: 372px; }
  .legend { grid-template-columns: repeat(2, auto); gap: 6px 8px; }
  .legend li { font-size: .82rem; padding: 6px 10px; gap: 6px; white-space: nowrap; }
  .cards.four { grid-template-columns: repeat(4, 1fr); }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .wm-m { width: min(42vw, 640px); inset-inline-end: -6vw; inset-block-end: -18vw; }
  .close-box { padding: 72px 64px; }
  .close-box .wm-close { inset-block-end: -40%; }
}
@media (min-width: 1440px) {
  .hero { padding-block: 56px 72px; }
  .hero-grid { gap: 48px; }
  .stage, .phone { width: 272px; }
  .phone { height: 560px; }
  .layer { font-size: 11px; }
  .marker.m3 { inset-block-start: 404px; }
  .legend li { font-size: .86rem; padding: 7px 11px; }
}
@media (max-width: 400px) {
  .stage, .phone { width: 250px; }
  .phone { height: 515px; }
  .layer { font-size: 10.5px; }
  .marker.m3 { inset-block-start: 372px; }
}
@media (max-width: 767px) {
  body { padding-block-end: 84px; }
  .site-foot { padding-block-end: 40px; }
}

/* ---------- motion preferences: finished states, no transitions ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .layer-ar { opacity: 0; }
  .legend li, .marker, .s1, .s2, .s3, .s4, .s5 { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .btn-primary:hover { transform: none; }
}

/* ---------- round 2: WhatsApp route, contact block, guides ---------- */
/* WhatsApp brand green on the WhatsApp button only; navy text and icon keep AA contrast (white on #25D366 would not) */
.btn-wa { background: #25D366; color: var(--navy); box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-wa:hover { background: #3DDC78; transform: translateY(-1px); box-shadow: 0 16px 36px -10px rgba(37, 211, 102, .75), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-wa svg { color: var(--navy); }
.btn-wa:focus-visible { outline-color: #fff; }
/* contact block: the closing section of the home pages */
.contact-block { display: grid; gap: 8px; margin: 22px auto 0; max-width: 620px; text-align: start; }
.contact-block li a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-s); border: 1px solid var(--line); background: rgba(10, 22, 48, .45); color: var(--t2); text-decoration: none; transition: border-color .2s, background-color .2s; }
.contact-block li a:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .05); }
.contact-block svg { width: 22px; height: 22px; flex: none; color: var(--cyan); }
.contact-block .cl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-block .k { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--t4); }
:root[lang="ar"] .contact-block .k { letter-spacing: 0; font-size: .84rem; }
.contact-block .v { font-family: var(--font-en); font-weight: 700; color: var(--t1); font-size: 1rem; overflow-wrap: anywhere; }
/* footer contact column */
.foot-contact a { display: inline-flex; flex-wrap: wrap; gap: 0 6px; align-items: baseline; }
.foot-contact bdi { font-family: var(--font-en); }
.foot-contact .role { color: var(--t4); font-size: .85rem; }
/* guide cards: index groups, home teaser, "read next" on the service pages */
.guide-cards { display: grid; gap: 14px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--t2); text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.guide-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.guide-card h3 { font-size: 1.12rem; line-height: 1.3; }
.guide-card p { color: var(--t3); font-size: .95rem; }
.guide-card .read { margin-block-start: auto; padding-block-start: 6px; display: inline-flex; align-items: center; gap: 8px; color: var(--t1); font-weight: 700; font-size: .92rem; }
.guide-card .read svg { width: 16px; height: 16px; }
:root[dir="rtl"] .guide-card .read svg { transform: scaleX(-1); }
.group-title { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); margin-block-end: 18px; }
.box-title { font-size: 1.3rem; margin-block-end: 10px; }
.quote-box .more-row { margin: 0; }
/* guide article */
.guide-grid { display: grid; gap: 36px; align-items: start; }
.article { max-width: 72ch; }
.article h2 { font-size: clamp(1.4rem, 1.15rem + 1.2vw, 1.9rem); margin-block: 36px 12px; }
.article > section:first-child h2 { margin-block-start: 0; }
.article p { color: var(--t2); margin-block-start: 12px; }
.article h2 + p, .article h2 + ul { margin-block-start: 0; }
.article ul.dots { margin-block-start: 12px; display: grid; gap: 10px; }
.article ul.dots + p { margin-block-start: 16px; }
.dots li { position: relative; padding-inline-start: 24px; color: var(--t2); }
.dots li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .6em; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.article a { color: var(--t1); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article a:hover { text-decoration-color: var(--cyan); }
.price-box { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-block: 16px 20px; padding: 18px 20px; border-radius: var(--r-s); background: var(--card-flat); }
.price-box::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--grad-edge); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; }
.price-box .tag { display: inline-flex; align-items: center; gap: .5em; font-size: .8rem; font-weight: 700; color: var(--t3); padding: .3em .75em; border-radius: 999px; border: 1px solid var(--line-2); margin: 0; }
.price-box .tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
.price-box .big { font-size: 1.75rem; font-weight: 700; line-height: 1.2; margin: 0; }
:root[lang="ar"] .price-box .big { font-size: 1.5rem; }
.price-box .fine { margin: 0; color: var(--t3); font-size: .92rem; }
.guide-aside { display: grid; gap: 14px; }
.aside-box { padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.aside-box h2 { font-size: 1.05rem; margin-block-end: 10px; }
.aside-box ul { display: grid; margin-block-end: 12px; }
.aside-box li a { color: var(--t2); text-decoration: none; display: block; padding: 8px 0; border-block-end: 1px solid var(--line); font-size: .95rem; }
.aside-box li:last-child a { border: 0; }
.aside-box li a:hover { color: var(--t1); }
.aside-box p { color: var(--t3); font-size: .95rem; margin-block-end: 12px; }
@media (min-width: 560px) {
  .guide-cards { grid-template-columns: 1fr 1fr; }
  .contact-block { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .guide-cards.three { grid-template-columns: repeat(3, 1fr); }
  .guide-cards.four { grid-template-columns: repeat(4, 1fr); }
  .guide-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
  .guide-aside { position: sticky; inset-block-start: calc(var(--head-h) + 16px); }
}

/* contact page (15 Nov 2026): the form + the other routes */
.contact-grid { display: grid; gap: 20px; align-items: start; }
.form-box { padding: 22px; border-radius: var(--r); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.form-box .box-title { margin-block-end: 18px; }
.contact-form { display: grid; gap: 16px; }
.contact-form .hp { display: none; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; color: var(--t1); font-size: .95rem; }
.field .opt { font-weight: 500; color: var(--t4); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; font-size: 1rem; color: var(--t1); background: rgba(10, 22, 48, .7); border: 1px solid var(--line-2); border-radius: var(--r-s); color-scheme: dark; transition: border-color .2s; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(199, 210, 254, .35); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-color: transparent; }
:root[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field .hint { margin: 0; font-size: .86rem; color: var(--t3); }
.contact-form .btn { width: 100%; }
.contact-form .fine { margin: 0; }
.contact-side { padding: 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.contact-side h2 { font-size: 1.15rem; margin-block-end: 6px; }
.contact-side > p { color: var(--t3); font-size: .95rem; }
.contact-side .contact-block { margin: 16px 0; max-width: none; grid-template-columns: 1fr; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer; }
.select-wrap svg { position: absolute; inset-inline-end: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--t3); pointer-events: none; }
@media (min-width: 640px) { .contact-form .btn { width: auto; justify-self: start; } .form-box { padding: 28px 32px; } }
/* careers (17 Nov 2026): job cards, a job page (text + application form), the CV field and the consent box */
.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.job-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--t2); text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.job-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.job-card h3 { font-size: 1.2rem; line-height: 1.3; color: var(--t1); }
.job-card p { margin: 0; color: var(--t3); }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.job-tags span { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--t2); font-size: .88rem; }
.job-card .read { margin-block-start: auto; padding-block-start: 6px; display: inline-flex; align-items: center; gap: 8px; color: var(--t1); font-weight: 700; font-size: .95rem; }
.job-card .read svg { width: 16px; height: 16px; }
:root[dir="rtl"] .job-card .read svg { transform: scaleX(-1); }
.job-dates { margin: 14px 0 0; color: var(--t3); font-size: .95rem; }
.job-dates .sep { margin-inline: 10px; color: var(--t4); }
.job-cta { margin: 22px 0 0; }
.job-cta .btn svg { width: 18px; height: 18px; }
.job-grid { display: grid; gap: 28px; align-items: start; }
.job-text { display: grid; gap: 28px; max-width: 70ch; }
.job-sec h2 { font-size: 1.3rem; margin-block-end: 12px; }
.job-sec p { margin: 0 0 12px; color: var(--t2); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--t2); }
.ticks svg { width: 20px; height: 20px; margin-block-start: 3px; color: var(--cyan); }
/* the native file control: the same size on both languages (the Arabic pages' larger type made WebKit cut its text) */
.field input[type="file"] { padding: 9px 10px; cursor: pointer; font-family: var(--font-en, inherit); font-size: 15px; }
.field input[type="file"]::file-selector-button { margin-inline-end: 12px; padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--t1); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.field input[aria-invalid="true"] { border-color: #F87171; }
.field-error { margin: 0; font-size: .9rem; font-weight: 700; color: #FCA5A5; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); cursor: pointer; }
.check label { color: var(--t2); font-size: .95rem; cursor: pointer; }
.apply-form .fine a { color: var(--t1); }
:root[lang="ar"] :is(.job-sec, .job-card, .apply-form .hint, .hero-copy h1, .hero-copy .lead) bdi[lang="en"] { font-size: .86em; }
@media (min-width: 760px) { .job-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .job-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; } }
/* service pages, seo-wording 21 Nov 2026: the chatbot page's trade cards, icon lists (check / x), sub-titles inside a
   section, and a three-step row for the hand-over steps */
.list-cards { display: grid; gap: 14px; }
.list-cards .svc h3 { font-size: 1.18rem; line-height: 1.25; }
.list-cards .svc ul { margin-block-end: 0; }
.icon-list { max-width: 820px; }
.icon-list li { font-size: 1rem; }
.sub-title { font-size: 1.2rem; margin-block: 34px 14px; }
@media (min-width: 560px) { .list-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .steps-three .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .list-cards { grid-template-columns: repeat(3, 1fr); } }
