/* =====================================================================================================================
   Theme v4 "Atlas" (owner 2026-11-01: change the whole design 180 degrees, professional, exact spacing, no template look).
   Loaded last: it re-skins every page (type, colour, header, cards, buttons, badges, footer) without touching the markup.
   Light only. Arabic first: IBM Plex Sans Arabic for Arabic, Plus Jakarta Sans for Latin. One 8px grid; radii 14 / 20 / 28 / pill.
   ===================================================================================================================== */
:root {
  --v4-ink: #0b1730; --v4-ink-2: #2a3a55; --v4-dim: #55657e; --v4-line: #e2e8f2; --v4-line-2: #edf1f7;
  --v4-paper: #f6f8fc; --v4-card: #ffffff; --v4-brand: #0a8f73; --v4-brand-d: #087560; --v4-brand-hi: #14b58f;
  --v4-tint: #e9f7f2; --v4-azure: #2f6bff; --v4-azure-t: #e8efff; --v4-sun: #ffb020; --v4-sun-t: #fff4dc;
  --v4-r-s: 14px; --v4-r-m: 20px; --v4-r-l: 28px;
  --v4-sh-1: 0 1px 2px rgb(11 23 48 / .05), 0 10px 24px -16px rgb(11 23 48 / .22);
  --v4-sh-2: 0 1px 2px rgb(11 23 48 / .06), 0 26px 48px -26px rgb(11 23 48 / .34);
  --v4-sec: clamp(56px, 7.5vw, 104px);
  --soft-brand: var(--v4-brand); --soft-brand-hi: var(--v4-brand-hi); --soft-ink: var(--v4-ink); --soft-line: var(--v4-line); --soft-canvas: var(--v4-paper);
  --font-inter-tight: "Plus Jakarta Sans", "Inter Tight", "IBM Plex Sans Arabic", system-ui, sans-serif;
}
html[lang="ar"], html[lang="ur"] { --font-inter-tight: "IBM Plex Sans Arabic", "Plus Jakarta Sans", "Cairo", system-ui, sans-serif; }

/* ---- type ---- */
html body { font-family: var(--font-inter-tight); color: var(--v4-ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "ss01", "cv11"; }
html body h1, html body h2, html body h3, html body h4 { font-family: var(--font-inter-tight); color: var(--v4-ink); font-weight: 700; text-wrap: balance; }
html[lang="ar"] body h1, html[lang="ar"] body h2, html[lang="ar"] body h3, html[lang="ar"] body h4 { letter-spacing: 0; line-height: 1.28; font-weight: 700; }
html:not([lang="ar"]) body h1, html:not([lang="ar"]) body h2 { letter-spacing: -.028em; }
/* paragraphs keep the colour their container gives them (bubbles, dark bands); only section intros are set here */
html body .x-sec-head p, html body .d-head p, html body .h3-head p { color: var(--v4-dim); }
html body .x-sec-head h2, html body .d-head h2 { font-weight: 700; font-size: clamp(1.8rem, 3.3vw, 2.7rem); line-height: 1.2; }
html[lang="ar"] .hx h1, html[lang="ar"] .hx-h1 { font-weight: 700; line-height: 1.22; letter-spacing: 0; }

/* ---- page canvas: a quiet mesh, the WhatsApp wallpaper stays but fainter ---- */
html body::before { opacity: .5; }
html body::after { content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none; background: radial-gradient(900px 520px at 85% -8%, rgb(47 107 255 / .09), transparent 70%), radial-gradient(820px 520px at 8% 6%, rgb(20 181 143 / .12), transparent 70%), radial-gradient(700px 480px at 50% 110%, rgb(255 176 32 / .07), transparent 70%); }

/* ---- header: a floating glass capsule ---- */
html .header-one { border: 1px solid rgb(255 255 255 / .8) !important; background: rgb(255 255 255 / .72) !important; box-shadow: 0 1px 0 rgb(255 255 255 / .9) inset, 0 18px 44px -24px rgb(11 23 48 / .4) !important; }
html .header-one nav a, html .header-one nav button { font-weight: 600; color: var(--v4-ink-2); }
html .header-one nav a:hover, html .header-one nav button:hover { color: var(--v4-brand); }

/* ---- buttons: capsules ---- */
html body .btn, html body .hx-btn, html body .h3-btn { border-radius: 999px; font-weight: 700; letter-spacing: 0; }
html body .btn-primary, html body .hx-btn-main { background: linear-gradient(135deg, var(--v4-brand-hi), var(--v4-brand)) !important; color: #fff !important; box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, 0 16px 28px -16px rgb(10 143 115 / .9); border: 0; }
html body .btn-primary:hover, html body .hx-btn-main:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, 0 22px 34px -16px rgb(10 143 115 / .95); }
html body .btn-secondary, html body .btn-white, html body .hx-btn-ghost { background: #fff !important; color: var(--v4-ink) !important; border: 1px solid var(--v4-line) !important; box-shadow: var(--v4-sh-1); }
html body .btn-secondary:hover, html body .btn-white:hover, html body .hx-btn-ghost:hover { border-color: #9bd8c8 !important; transform: translateY(-2px); }

/* ---- badges ---- */
html body .badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: var(--v4-tint) !important; border: 1px solid #cfeae1 !important; color: var(--v4-brand-d) !important; font-weight: 700; font-size: .8rem; letter-spacing: .01em; }

/* ---- inner-page hero (pageHero + specPage): centred, calm, with a faint grid ---- */
html body section[class*="pt-32"][class*="xl:pt-[180px]"] { position: relative; padding-bottom: clamp(36px, 5vw, 64px); isolation: isolate; }
html body section[class*="pt-32"][class*="xl:pt-[180px]"]::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 0%, rgb(20 181 143 / .14), transparent 70%); }
html body section[class*="pt-32"][class*="xl:pt-[180px]"]::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgb(11 23 48 / .09) 1px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(60% 80% at 50% 10%, #000, transparent 75%); mask-image: radial-gradient(60% 80% at 50% 10%, #000, transparent 75%); }
html body section[class*="pt-32"][class*="xl:pt-[180px]"] h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.16; font-weight: 700; }
html body section[class*="pt-32"][class*="xl:pt-[180px]"] p { font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.85; }

/* ---- cards ---- */
html body [class*="rounded-[20px]"].bg-white, html body .x-trust, html body .x-tile, html body .accordion-item { border-radius: var(--v4-r-l) !important; border: 1px solid var(--v4-line); background: #fff !important; box-shadow: var(--v4-sh-1); transition: transform .24s, box-shadow .24s, border-color .24s; }
html body [class*="rounded-[20px]"].bg-white:hover, html body .x-trust:hover { transform: translateY(-4px); box-shadow: var(--v4-sh-2); border-color: #bfe6da; }
html body .accordion-item { padding-inline: clamp(20px, 3vw, 32px); }
html body .mk-nic, html body .x-tile-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: linear-gradient(145deg, #eefaf6, #dff3ec); color: var(--v4-brand-d); border: 1px solid #cfeae1; }
html body .mk-nic svg, html body .x-tile-ic svg { width: 26px; height: 26px; }
html body [class*="bg-background-2"] { background: linear-gradient(180deg, rgb(255 255 255 / .85), rgb(233 247 242 / .55)) !important; border-block: 1px solid var(--v4-line-2); }
html body .mk-tag { background: var(--v4-sun-t); color: #8a5a00; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
html body .mk-tag.alt { background: var(--v4-azure-t); color: #1d49b8; }

/* ---- section rhythm (one grid) ---- */
html body .x-sec, html body .d-sec { padding-block: var(--v4-sec); }
html body .x-sec-head, html body .d-head { margin-bottom: clamp(28px, 4vw, 48px); }

/* ---- footer ---- */
html footer.ez-foot { background: #fff !important; border-top: 1px solid var(--v4-line) !important; padding-bottom: 104px !important; }
html footer.ez-foot::before { height: 4px; background: linear-gradient(90deg, var(--v4-brand), var(--v4-brand-hi) 50%, var(--v4-azure)); }
.ez-foot .ez-col-h { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--v4-ink); margin-bottom: 14px; }
html[lang="ar"] .ez-foot .ez-col-h { letter-spacing: 0; text-transform: none; font-size: .92rem; }
.ez-foot .ez-col a { color: var(--v4-dim); font-weight: 500; transition: color .2s; } .ez-foot .ez-col a:hover { color: var(--v4-brand); }
.ez-socs { display: flex; gap: 10px; margin-top: 18px; }
.ez-soc { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--v4-tint); border: 1px solid #cfeae1; }
.ez-soc img { filter: brightness(0) saturate(100%) invert(37%) sepia(52%) saturate(1105%) hue-rotate(123deg) brightness(88%); }
.ez-foot-bar ul { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 14px 0 0; list-style: none; }
.ez-foot-bar ul a { font-size: .82rem; color: var(--v4-dim); }
.ez-foot-note { max-width: 760px; font-size: .78rem; line-height: 1.7; color: var(--v4-dim); }

@media (prefers-reduced-motion: reduce) { html body [class*="rounded-[20px]"].bg-white, html body .btn { transition: none; } }

/* ---- hero channel switch: seven channels in two even rows (4 + 3), label under the icon so nothing collides ---- */
.hx-ch { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; border-radius: 24px; background: #eef3f9; border-color: var(--v4-line); }
.hx-chb { flex-direction: column; gap: 4px; height: 56px; padding: 6px 2px; border-radius: 18px; font-size: .72rem; line-height: 1.15; }
.hx-chb:nth-child(-n+4) { grid-column: span 3; }
.hx-chb:nth-child(n+5) { grid-column: span 4; }
.hx-chb svg { width: 18px; height: 18px; }
.hx-chb[aria-selected="true"] { color: var(--v4-brand-d); }
.hx .x-tab { height: auto; min-height: 38px; white-space: normal; line-height: 1.25; padding: 6px 12px; text-align: center; }

/* ---- honeypot field: clipped in place (an off-screen offset made the form pages scroll sideways in right-to-left) ---- */
.hp { position: absolute !important; inset-inline-start: 0 !important; top: 0; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* ---- every demo phone has the same real-handset proportion (iPhone 15: 393 x 852) whatever the conversation inside ---- */
.hx .wa-phone .wa-screen { aspect-ratio: 393 / 852; height: auto; overflow: hidden; }
.hx .wa-phone .wa-chat, .hx .wa-phone .sm-chat { min-height: 0; }
.hx .wa-phone .sm-chat, .hx .wa-phone .wa-chat { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px); mask-image: linear-gradient(to bottom, transparent 0, #000 22px); }
/* the template gives every <p> a grey; a bubble's text must follow its own bubble (white on the sent ones) */
.sm-b p, .sm-dl, .sm-chip { color: inherit; }
.sm-out p { color: #fff; }

/* ---- the email demo reads as a mailbox: full-width message cards, "Re:" on our replies ---- */
.sm-email .sm-b { max-width: 100%; width: 100%; align-self: stretch; border-radius: 12px; background: #fff; color: var(--v4-ink); border: 1px solid #dfe6f3; border-inline-start-width: 3px; border-inline-start-color: #cfd8ea; box-shadow: 0 8px 16px -14px rgb(11 23 48 / .5); padding: 9px 12px; font-weight: 500; }
.sm-email .sm-out { border-inline-start-color: #2f6bff; }
.sm-email .sm-out p { color: var(--v4-ink); }
.sm-email .sm-out p::before { content: "Re:"; display: block; margin-bottom: 3px; font-size: .66rem; font-weight: 800; letter-spacing: .04em; color: #2f6bff; direction: ltr; text-align: start; }
.sm-email .sm-in { background: #fff; }

/* ---- spec-page hero (.x-phero): the same calm mesh as the home, a bolder title, and an even 8px rhythm ---- */
html body .x-phero { background: transparent; padding: clamp(116px, 11vw, 148px) 0 clamp(40px, 5vw, 64px); isolation: isolate; }
html body .x-phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 0%, rgb(20 181 143 / .15), transparent 70%), radial-gradient(40% 60% at 92% 20%, rgb(47 107 255 / .08), transparent 70%); }
html body .x-phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgb(11 23 48 / .08) 1px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(70% 90% at 50% 10%, #000, transparent 78%); mask-image: radial-gradient(70% 90% at 50% 10%, #000, transparent 78%); }
html body .x-phero h1 { font-weight: 700; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.16; letter-spacing: -.028em; color: var(--v4-ink); }
html[lang="ar"] body .x-phero h1 { letter-spacing: 0; line-height: 1.32; }
html body .x-phero-txt > p { color: var(--v4-dim); line-height: 1.85; }
html body .x-phero-in.has-vis { gap: clamp(28px, 5vw, 72px); align-items: center; }
html body .x-phero-vis { display: flex; justify-content: center; }
.ch-only { display: grid; justify-items: center; gap: 14px; width: 100%; }
.hx.ch-only { padding: 0 !important; margin: 0; min-height: 0; background: none; }
.ch-only-cap { margin: 0; min-height: 24px; text-align: center; font-size: .88rem; font-weight: 600; color: var(--v4-dim); }
