/* LOB website — one stylesheet for every page.
   Colours, radii and spacing mirror packages/tamareen_core/lib/src/theme/theme.dart
   (TamareenColors, TamareenPalette.light/.dark, TamareenRadius, TamareenSpacing).
   Layout uses logical properties only, so the same rules serve RTL Arabic and LTR English. */

@font-face {
  font-family: "Cairo";
  src: url("../fonts/cairo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  /* Brand (fixed in both modes, as in TamareenColors) */
  --primary: #0b7a4b;
  --primary-dark: #075c39;
  --primary-light: #10915b;
  --primary-bright: #159b66;
  --primary-deep: #06482f;
  --gold: #f2b84b;
  --gold-ink: #7a5a05;
  --turf: #157a46;
  --turf-stripe: #126b3d;
  --danger: #c63b3b;
  /* Palette (TamareenPalette.light) */
  --canvas: #f6f9f7;
  --card: #ffffff;
  --ink: #101814;
  --slate: #56645d;
  --hairline: #e0e9e4;
  --outline: #c9dad1;
  --mint: #e9f7f0;
  --chip: #dff5e7;
  --chip-ink: #06482f;
  --link: #075c39;
  --brand-panel: #0b7a4b;
  --shadow-card: 0 8px 18px rgba(7, 92, 57, .10);
  --shadow-hero: 0 22px 50px rgba(7, 92, 57, .22);
  --shadow-phone: 0 40px 80px -20px rgba(6, 72, 47, .45), 0 18px 36px -18px rgba(0, 0, 0, .35);
  --header-bg: rgba(246, 249, 247, .82);
  --focus: #075c39;
  --grad-text: linear-gradient(120deg, #0b7a4b, #075c39 55%, #8a5d0c);
  --glow: rgba(21, 155, 102, .18);
  /* Radii (TamareenRadius) and spacing (TamareenSpacing) */
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-pill: 999px;
  --s-xs: 4px; --s-sm: 8px; --s-md: 12px; --s-lg: 18px; --s-xl: 24px; --s-xxl: 32px;
  --gutter: 16px;
  --container: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #0f1512;
    --card: #1a221e;
    --ink: #eaf2ed;
    --slate: #a9b9b1;
    --hairline: #263029;
    --outline: #3b4a43;
    --mint: #14352a;
    --chip: #10352a;
    --chip-ink: #b7f0d2;
    --link: #9be3c0;
    --brand-panel: #075232;
    --shadow-card: 0 8px 18px rgba(0, 0, 0, .35);
    --shadow-hero: 0 22px 50px rgba(0, 0, 0, .5);
    --shadow-phone: 0 40px 80px -20px rgba(0, 0, 0, .75), 0 18px 36px -18px rgba(0, 0, 0, .6);
    --header-bg: rgba(15, 21, 18, .8);
    --glow: rgba(47, 191, 126, .16);
    --focus: #f2b84b;
    --grad-text: linear-gradient(120deg, #6fd6a6, #9be3c0 50%, #f2b84b);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0f1512;
  --card: #1a221e;
  --ink: #eaf2ed;
  --slate: #a9b9b1;
  --hairline: #263029;
  --outline: #3b4a43;
  --mint: #14352a;
  --chip: #10352a;
  --chip-ink: #b7f0d2;
  --link: #9be3c0;
  --brand-panel: #075232;
  --shadow-card: 0 8px 18px rgba(0, 0, 0, .35);
  --shadow-hero: 0 22px 50px rgba(0, 0, 0, .5);
  --shadow-phone: 0 40px 80px -20px rgba(0, 0, 0, .75), 0 18px 36px -18px rgba(0, 0, 0, .6);
  --header-bg: rgba(15, 21, 18, .8);
  --glow: rgba(47, 191, 126, .16);
  --focus: #f2b84b;
  --grad-text: linear-gradient(120deg, #6fd6a6, #9be3c0 50%, #f2b84b);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.7; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 var(--s-md); font-weight: 800; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0 0 var(--s-lg); }
button { font: inherit; color: inherit; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: var(--primary); color: #fff; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); box-shadow: 0 6px 24px rgba(6, 72, 47, .06); }
.header-inner {
  display: flex; align-items: center; gap: var(--s-md);
  height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.5rem; line-height: 1;
  letter-spacing: .04em; flex-shrink: 0;
}
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; filter: drop-shadow(0 6px 12px rgba(11, 122, 75, .3)); }
.brand-word { font-family: "Cairo", system-ui, sans-serif; direction: ltr; }
.nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 8px 12px; border-radius: var(--r-pill);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { background: var(--mint); color: var(--chip-ink); }
.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: var(--r-pill); border: 1px solid var(--outline); background: var(--card);
  color: var(--ink); cursor: pointer; text-decoration: none; transition: background .2s, transform .2s;
}
.icon-btn:hover { background: var(--mint); }
.icon-btn svg { width: 20px; height: 20px; }
.lang-link {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding-inline: 14px;
  border-radius: var(--r-pill); border: 1px solid var(--outline); background: var(--card);
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem;
}
.lang-link:hover { background: var(--mint); }
.lang-link svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.btn.header-cta { display: none; }
.nav-toggle { display: none; }

@media (max-width: 959.98px) {
  .nav-toggle { display: inline-grid; }
  .nav {
    position: fixed; inset-inline: 0; top: var(--header-h); z-index: 49;
    margin: 0; padding: 12px var(--gutter) 24px;
    background: var(--canvas); border-bottom: 1px solid var(--hairline);
    box-shadow: 0 24px 40px rgba(6, 72, 47, .12);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 12px 14px; border-radius: var(--r-sm); font-size: 1.05rem; }
  .header-actions { margin-inline-start: auto; }
  .no-js .nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
}
@media (min-width: 960px) {
  .btn.header-cta { display: inline-flex; }
}
@media (max-width: 380px) {
  .lang-link span { display: none; }
  .lang-link { padding-inline: 0; width: 42px; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark) 60%, var(--primary-deep));
  color: #fff; box-shadow: 0 12px 26px -10px rgba(11, 122, 75, .7);
}
.btn--primary:hover { box-shadow: 0 16px 32px -10px rgba(11, 122, 75, .8); }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--outline); }
.btn--ghost:hover { background: var(--mint); }
.btn--light { background: #fff; color: var(--primary-deep); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-md); align-items: center; }

/* Neutral store buttons: drawn, not copied trademark badges */
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 18px;
  border-radius: var(--r-md); text-decoration: none; color: inherit;
  border: 1px solid var(--outline); background: var(--card);
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn__text { display: flex; flex-direction: column; line-height: 1.25; text-align: start; }
.store-btn__small { font-size: .75rem; color: var(--slate); font-weight: 600; }
.store-btn__big { font-size: 1.02rem; font-weight: 800; }
.store-btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark) 60%, var(--primary-deep));
  color: #fff; border-color: transparent; box-shadow: 0 14px 30px -12px rgba(11, 122, 75, .75);
}
.store-btn--primary .store-btn__small { color: #fff; }
.store-btn--soon { cursor: default; }
.store-btn--soon:hover { transform: none; box-shadow: none; }
.soon {
  display: inline-block; margin-inline-start: 6px; padding: 0 8px; border-radius: var(--r-pill);
  background: var(--chip); color: var(--chip-ink); font-size: .7rem; font-weight: 800; vertical-align: middle;
}

/* ---------- Generic section ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section--tint { background: linear-gradient(180deg, var(--mint), transparent 85%); }
.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--slate); font-size: 1.12rem; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--s-md);
  padding: 4px 14px; border-radius: var(--r-pill); background: var(--chip); color: var(--chip-ink);
  font-weight: 700; font-size: .88rem;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-bright); box-shadow: 0 0 0 4px rgba(21, 155, 102, .2); }
.h-display { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4rem); line-height: 1.2; }
html[lang="ar"] .h-display { line-height: 1.35; }
.h-section { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 85% 20%, var(--glow), transparent 70%),
    radial-gradient(45% 40% at 10% 85%, rgba(242, 184, 75, .14), transparent 70%);
}
.hero-bg svg { position: absolute; inset-inline-end: -10%; top: -6%; width: min(900px, 120vw); opacity: .5; color: var(--primary); }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero-copy .lead { font-size: clamp(1.08rem, 1rem + .5vw, 1.3rem); color: var(--slate); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-md); margin-block: var(--s-xl) var(--s-lg); }
.hero-note { font-size: .9rem; color: var(--slate); display: flex; align-items: center; gap: 8px; margin: 0; }
.hero-note svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-md);
  margin-top: var(--s-xxl); padding: 0; list-style: none; max-width: 560px;
}
.hero-stats li { padding: 14px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--hairline); box-shadow: var(--shadow-card); }
.hero-stats strong { display: block; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); color: var(--primary); line-height: 1.2; }
:root[data-theme="dark"] .hero-stats strong { color: #6fd6a6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-stats strong { color: #6fd6a6; } }
.hero-stats span { font-size: .84rem; color: var(--slate); line-height: 1.4; display: block; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 480px; perspective: 1400px; }
.hero-stage { position: relative; width: min(100%, 520px); aspect-ratio: 1 / 1.08; }
.hero-stage .phone { position: absolute; width: 50%; }
.hero-stage .phone--front { inset-inline-start: 6%; top: 4%; z-index: 2; animation: floatA 7s ease-in-out infinite; }
.hero-stage .phone--back { inset-inline-end: 4%; top: 14%; z-index: 1; animation: floatB 8s ease-in-out infinite; }
.hero-stage .phone--back .phone__frame { transform: rotate(6deg); }
.hero-stage .phone--front .phone__frame { transform: rotate(-4deg); }
html[dir="ltr"] .hero-stage .phone--back .phone__frame { transform: rotate(-6deg); }
html[dir="ltr"] .hero-stage .phone--front .phone__frame { transform: rotate(4deg); }
.hero-ring {
  position: absolute; inset: 12% 8% 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(21, 155, 102, .28), transparent 62%);
  filter: blur(6px);
}
.chip-float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-md); background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-hero); border: 1px solid var(--hairline); font-size: .86rem; line-height: 1.35;
  max-width: 220px;
}
.chip-float strong { display: block; font-size: .95rem; }
.chip-float .chip-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0; background: var(--chip); color: var(--primary); }
.chip-float .chip-ico svg { width: 20px; height: 20px; }
.chip-float--a { inset-inline-end: 0; top: 6%; animation: floatB 6s ease-in-out infinite; }
.chip-float--b { inset-inline-start: -2%; bottom: 12%; animation: floatA 6.5s ease-in-out infinite; }
.chip-float--b .chip-ico { background: rgba(242, 184, 75, .22); color: var(--gold-ink); }
:root[data-theme="dark"] .chip-float--b .chip-ico { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip-float--b .chip-ico { color: var(--gold); } }
@keyframes floatA { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes floatB { 0%, 100% { translate: 0 0; } 50% { translate: 0 10px; } }
@media (max-width: 520px) {
  .hero-visual { min-height: 0; }
  .chip-float { font-size: .78rem; padding: 8px 10px; max-width: 170px; }
  .chip-float .chip-ico { width: 30px; height: 30px; }
  .chip-float--b { inset-inline-start: 0; }
}

/* ---------- Phone mockup ---------- */
.phone { --bezel: 10px; --radius: 46px; position: relative; display: block; margin: 0; }
.phone__frame {
  position: relative; padding: var(--bezel); border-radius: var(--radius);
  background: linear-gradient(145deg, #2a332e, #0b100d 45%, #1b231f);
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px rgba(255, 255, 255, .12), inset 0 0 0 3px #050806;
  transition: transform .5s var(--ease);
}
.phone__frame::before { /* side buttons */
  content: ""; position: absolute; inset-inline-end: -3px; top: 22%; width: 3px; height: 12%;
  border-radius: 0 3px 3px 0; background: #1d2521;
  box-shadow: 0 0 0 0 transparent;
}
html[dir="rtl"] .phone__frame::before { border-radius: 3px 0 0 3px; }
.phone__frame::after {
  content: ""; position: absolute; inset-inline-start: -3px; top: 18%; width: 3px; height: 7%;
  background: #1d2521; box-shadow: 0 calc(var(--radius) * 1.6) 0 #1d2521;
}
.phone__screen {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) - var(--bezel));
  aspect-ratio: 390 / 888; background: var(--canvas);
  display: flex; flex-direction: column; isolation: isolate; container-type: inline-size;
}
.phone__screen img { display: block; width: 100%; height: auto; flex: none; }
.phone__status {
  flex: 0 0 4.955%; display: flex; align-items: center; justify-content: space-between;
  padding-inline: 9% 7%; direction: ltr; color: #111; font: 700 3.6cqw/1 "Cairo", system-ui, sans-serif;
}
.phone__status.is-dark { color: #fff; }
.phone__sys {
  width: 17cqw; height: 3cqw; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 12'%3E%3Crect x='0' y='8' width='3' height='4' rx='1'/%3E%3Crect x='5' y='6' width='3' height='6' rx='1'/%3E%3Crect x='10' y='3' width='3' height='9' rx='1'/%3E%3Crect x='15' y='0' width='3' height='12' rx='1'/%3E%3Cpath d='M30 3.5a10 10 0 0 1 13 0l-1.6 1.7a7.6 7.6 0 0 0-9.8 0zM33.2 7a5.2 5.2 0 0 1 6.6 0L36.5 10.6z'/%3E%3Crect x='48' y='1' width='17' height='10' rx='3' fill='none' stroke='black' stroke-width='1.4'/%3E%3Crect x='50' y='3' width='12' height='6' rx='1.5'/%3E%3Crect x='66' y='4' width='2' height='4' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 12'%3E%3Crect x='0' y='8' width='3' height='4' rx='1'/%3E%3Crect x='5' y='6' width='3' height='6' rx='1'/%3E%3Crect x='10' y='3' width='3' height='9' rx='1'/%3E%3Crect x='15' y='0' width='3' height='12' rx='1'/%3E%3Cpath d='M30 3.5a10 10 0 0 1 13 0l-1.6 1.7a7.6 7.6 0 0 0-9.8 0zM33.2 7a5.2 5.2 0 0 1 6.6 0L36.5 10.6z'/%3E%3Crect x='48' y='1' width='17' height='10' rx='3' fill='none' stroke='black' stroke-width='1.4'/%3E%3Crect x='50' y='3' width='12' height='6' rx='1.5'/%3E%3Crect x='66' y='4' width='2' height='4' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.phone__screen::before { /* dynamic island, inside the status bar */
  content: ""; position: absolute; top: .9%; left: 50%; translate: -50% 0; z-index: 2;
  width: 28%; height: 3.2%; border-radius: var(--r-pill); background: #050806;
}
.phone__screen::after { /* glass sheen */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .12), transparent 32%);
}
.phone--sm { --bezel: 7px; --radius: 34px; }
.phone figcaption { text-align: center; color: var(--slate); font-size: .92rem; margin-top: var(--s-md); line-height: 1.5; }

/* ---------- Feature cards ---------- */
.features { display: grid; gap: var(--s-lg); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.feature {
  position: relative; padding: var(--s-xl); border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--hairline); box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.feature::after {
  content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 120px; height: 120px;
  border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%); opacity: 0; transition: opacity .3s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--outline); }
.feature:hover::after { opacity: 1; }
.feature h3 { font-size: 1.18rem; margin-bottom: var(--s-sm); }
.feature p { color: var(--slate); margin: 0; font-size: .98rem; line-height: 1.75; }
.f-ico {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--s-lg);
  border-radius: 16px; color: #fff;
  background: linear-gradient(140deg, var(--primary-bright), var(--primary-deep));
  box-shadow: 0 10px 20px -8px rgba(11, 122, 75, .7);
}
.f-ico svg { width: 26px; height: 26px; }
.f-ico--gold { background: linear-gradient(140deg, #f7cd77, #d99a24); color: #3a2a00; box-shadow: 0 10px 20px -8px rgba(217, 154, 36, .7); }

/* ---------- How it works ---------- */
.how { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 960px) { .how { grid-template-columns: 1fr 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-md); counter-reset: step; }
.step {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: var(--s-lg);
  padding: var(--s-xl); border-radius: var(--r-lg); background: var(--card);
  border: 1px solid var(--hairline); text-align: start;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.step-btn { all: unset; cursor: pointer; font: inherit; color: inherit; }
.step-btn::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.step-btn:focus-visible { outline: none; }
.step-btn:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.step .tag { position: relative; z-index: 1; }
.step:hover { border-color: var(--outline); }
.step.is-active { border-color: var(--primary); box-shadow: 0 16px 36px -18px rgba(11, 122, 75, .6); }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--chip); color: var(--chip-ink); font-weight: 800; font-size: 1.15rem;
  transition: background .3s, color .3s;
}
.step.is-active .step-num { background: var(--primary); color: #fff; }
.step h3 { font-size: 1.15rem; margin: 2px 0 6px; }
.step p { margin: 0; color: var(--slate); font-size: .98rem; line-height: 1.75; }
.step-pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border-radius: var(--r-pill);
  background: var(--mint); color: var(--chip-ink); font-size: .82rem; font-weight: 700;
}
.tag svg { width: 14px; height: 14px; }
.how-visual { position: relative; display: grid; place-items: center; }
@media (min-width: 960px) { .how-visual { position: sticky; top: calc(var(--header-h) + 32px); } }
.how-visual .phone { width: min(300px, 74vw); }
.how-visual .phone__screen img { position: absolute; inset: auto 0 0 0; opacity: 0; transition: opacity .5s ease, transform .6s var(--ease); transform: scale(1.03); }
.how-visual .phone__screen img.is-active { opacity: 1; transform: none; }
.how-visual .phone__screen img:first-of-type { position: relative; inset: auto; }

/* ---------- Split spotlight ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split-visual { order: -1; }
}
.split-visual { display: flex; justify-content: center; gap: clamp(12px, 3vw, 28px); align-items: flex-end; }
.split-visual .phone { width: min(260px, 44vw); }
.split-visual .phone:nth-child(2) { margin-bottom: 40px; }
.checklist { list-style: none; padding: 0; margin: var(--s-xl) 0 0; display: grid; gap: var(--s-md); }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checklist li > svg { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--chip); color: var(--primary); }
:root[data-theme="dark"] .checklist li > svg { color: #6fd6a6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .checklist li > svg { color: #6fd6a6; } }
.checklist strong { display: block; }
.checklist span { color: var(--slate); font-size: .97rem; }

/* ---------- Deep (management) band ---------- */
.band-deep {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(21, 155, 102, .45), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(242, 184, 75, .18), transparent 60%),
    linear-gradient(160deg, #075c39, #06482f 60%, #04331f);
}
.band-deep::before { /* mown turf stripes */
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 60px, rgba(255, 255, 255, .5) 60px 120px);
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}
.band-deep .eyebrow { background: rgba(255, 255, 255, .12); color: #fff; }
.band-deep .section-head p, .band-deep .muted { color: rgba(255, 255, 255, .9); }
.admin-grid { display: grid; gap: var(--s-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: var(--s-xxl); }
.admin-card {
  padding: var(--s-lg) var(--s-xl); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.admin-card svg { width: 26px; height: 26px; color: var(--gold); margin-bottom: 10px; }
.admin-card h3 { font-size: 1.08rem; margin-bottom: 4px; }
.admin-card p { margin: 0; color: rgba(255, 255, 255, .88); font-size: .94rem; line-height: 1.7; }
.admin-phones { display: flex; justify-content: center; gap: clamp(12px, 3vw, 32px); margin-top: clamp(40px, 6vw, 64px); flex-wrap: nowrap; }
.admin-phones .phone { width: min(240px, 30vw); }
.admin-phones .phone:nth-child(2) { transform: translateY(-28px); }
@media (max-width: 600px) {
  .admin-phones .phone { width: 44vw; }
  .admin-phones .phone:nth-child(3) { display: none; }
}
.band-deep .phone figcaption { color: rgba(255, 255, 255, .9); }

/* ---------- Gallery / carousel ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--hairline); margin-bottom: var(--s-xl); }
.tab {
  border: 0; background: transparent; padding: 8px 20px; border-radius: var(--r-pill);
  font-weight: 700; cursor: pointer; color: var(--slate);
}
.tab[aria-selected="true"] { background: var(--primary); color: #fff; }
.gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-md); }
.carousel-controls { display: flex; gap: 8px; margin-bottom: var(--s-xl); }
.carousel-controls .icon-btn svg { width: 22px; height: 22px; }
html[dir="ltr"] .chev-prev, html[dir="rtl"] .chev-next, html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(250px, 66vw);
  gap: clamp(16px, 3vw, 32px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 12px var(--gutter) 40px; margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: var(--outline) transparent;
}
.carousel:focus-visible { outline-offset: -3px; }
.carousel > .phone { scroll-snap-align: center; }
.carousel[hidden] { display: none; }
.carousel .phone__frame { transition: transform .4s var(--ease); }
.carousel .phone:hover .phone__frame { transform: translateY(-6px); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: -16px; }
.dots span { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--outline); transition: width .3s, background .3s; }
.dots span.is-active { width: 24px; background: var(--primary); }

/* ---------- Showcase (themes & languages) ---------- */
.showcase { display: grid; gap: var(--s-xl); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items: end; }
.showcase .phone { width: min(230px, 100%); margin-inline: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: var(--s-md); }
.faq-item { border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--hairline); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq-item[open] { border-color: var(--outline); box-shadow: var(--shadow-card); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-lg);
  padding: var(--s-lg) var(--s-xl); font-weight: 700; font-size: 1.06rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--chip); color: var(--chip-ink); font-size: 1.35rem; font-weight: 800; line-height: 1;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: var(--r-lg); }
.faq-body { padding: 0 var(--s-xl) var(--s-lg); color: var(--slate); }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(32px, 6vw, 64px);
  color: #fff; display: grid; gap: var(--s-xl); align-items: center;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(242, 184, 75, .16), transparent 55%),
    linear-gradient(135deg, var(--primary), var(--primary-dark) 45%, var(--primary-deep));
  box-shadow: var(--shadow-hero);
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr 1fr; } }
.cta-band h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
.cta-band p { color: #fff; margin: 0; }
.cta-band .store-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }
.cta-band .store-btn .store-btn__small { color: #fff; }
.cta-band .store-btn--primary { background: #fff; color: var(--primary-deep); }
.cta-band .store-btn--primary .store-btn__small { color: var(--primary-dark); }
.cta-band .soon { background: rgba(255, 255, 255, .18); color: #fff; }
.cta-band .btn-row { justify-content: flex-start; }
@media (min-width: 900px) { .cta-band .btn-row { justify-content: flex-end; } }
.cta-ball { position: absolute; inset-inline-end: -40px; bottom: -60px; width: 220px; opacity: .12; color: #fff; pointer-events: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--s-lg); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.contact-card { padding: var(--s-xl); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--hairline); }
.contact-card svg { width: 28px; height: 28px; color: var(--primary); margin-bottom: 10px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-card p { color: var(--slate); margin: 0 0 6px; font-size: .97rem; }
.contact-card a { font-weight: 700; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(48px, 8vw, 96px); padding-block: 56px 28px; background: var(--card); border-top: 1px solid var(--hairline); font-size: .95rem; }
.footer-grid { display: grid; gap: var(--s-xxl); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-brand { grid-column: 1 / -1; max-width: 380px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.3fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--slate); margin-top: var(--s-md); }
.footer-col h2 { font-size: .95rem; color: var(--ink); margin-bottom: var(--s-md); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-col a { color: var(--slate); text-decoration: underline; text-decoration-color: var(--outline); text-underline-offset: .25em; }
.footer-col a:hover { color: var(--link); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-md); justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hairline); color: var(--slate); font-size: .9rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--link); font-weight: 700; }

/* ---------- Legal pages ---------- */
.legal-hero {
  position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 80px) clamp(32px, 5vw, 56px);
  background: linear-gradient(180deg, var(--mint), var(--canvas));
  border-bottom: 1px solid var(--hairline);
}
.legal-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); margin-bottom: var(--s-sm); }
.legal-hero .summary { color: var(--slate); font-size: 1.1rem; max-width: 760px; margin-bottom: var(--s-lg); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.legal-meta li { padding: 4px 14px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--hairline); font-size: .86rem; color: var(--slate); }
.legal-meta strong { color: var(--ink); }
.breadcrumb { font-size: .9rem; color: var(--slate); margin-bottom: var(--s-lg); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; color: var(--outline); }
.breadcrumb a { color: var(--slate); }
.legal-layout { display: grid; gap: clamp(24px, 4vw, 56px); padding-block: clamp(32px, 5vw, 56px); }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 270px minmax(0, 1fr); align-items: start; } }
.toc {
  border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--hairline); padding: var(--s-lg);
}
@media (min-width: 1000px) { .toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; } }
.toc h2 { font-size: .95rem; margin-bottom: var(--s-sm); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a {
  display: block; padding: 6px 10px; border-radius: var(--r-xs); color: var(--slate); text-decoration: none;
  font-size: .9rem; line-height: 1.5; border-inline-start: 3px solid transparent;
}
.toc a:hover { background: var(--mint); color: var(--ink); }
.toc a.is-active { color: var(--chip-ink); background: var(--chip); border-inline-start-color: var(--primary); font-weight: 700; }
.toc details > summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc details > summary::-webkit-details-marker { display: none; }
.toc details > summary::after { content: "▾"; color: var(--slate); transition: transform .2s; }
.toc details[open] > summary::after { transform: rotate(180deg); }
.toc details[open] > summary { margin-bottom: var(--s-sm); }
.legal-docs { margin-top: var(--s-lg); padding-top: var(--s-lg); border-top: 1px solid var(--hairline); }
.prose { max-width: 780px; font-size: 1.04rem; }
.prose section { padding-top: var(--s-sm); margin-bottom: var(--s-xxl); }
.prose h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); padding-bottom: var(--s-sm); border-bottom: 1px solid var(--hairline); margin-bottom: var(--s-lg); }
.prose h3 { font-size: 1.12rem; margin-top: var(--s-xl); }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 var(--s-lg); }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--primary); font-weight: 700; }
.key-points {
  margin-bottom: var(--s-xxl); padding: var(--s-xl); border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--chip), var(--card)); border: 1px solid var(--outline);
}
.key-points h2, .key-points .key-points__title { border: 0; padding: 0; font-size: 1.15rem; margin-bottom: var(--s-md); }
.key-points ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.key-points li { position: relative; padding-inline-start: 30px; margin: 0; }
.key-points li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.callout {
  margin: 0 0 var(--s-lg); padding: var(--s-lg) var(--s-xl); border-radius: var(--r-md);
  background: rgba(242, 184, 75, .14); border-inline-start: 4px solid var(--gold);
}
.callout p:last-child { margin-bottom: 0; }
.legal-table-wrap { overflow-x: auto; margin: 0 0 var(--s-lg); border: 1px solid var(--hairline); border-radius: var(--r-md); }
.legal-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.6; background: var(--card); }
.legal-table th, .legal-table td { padding: 10px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.legal-table thead th { background: var(--mint); color: var(--chip-ink); font-weight: 800; white-space: nowrap; }
.legal-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .legal-table thead { display: none; }
  .legal-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
  .legal-table td { display: block; border: 0; padding: 4px 14px; }
  .legal-table td::before { content: attr(data-label); display: block; font-weight: 800; color: var(--ink); font-size: .85rem; }
}
.ph { background: rgba(242, 184, 75, .3); color: var(--ink); padding: 0 6px; border-radius: 6px; font-weight: 700; white-space: nowrap; }
.legal-foot { margin-top: var(--s-xxl); padding: var(--s-xl); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--hairline); }
.legal-foot p { margin: 0 0 6px; color: var(--slate); }
.legal-foot p:last-child { margin: 0; }
.doc-cards { display: grid; gap: var(--s-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.doc-card { display: flex; gap: 12px; align-items: center; padding: var(--s-lg); border-radius: var(--r-md); background: var(--card); border: 1px solid var(--hairline); color: var(--ink); text-decoration: none; font-weight: 700; transition: border-color .2s, transform .2s; }
.doc-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.doc-card svg { width: 24px; height: 24px; color: var(--primary); flex-shrink: 0; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.notfound .code { font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 800; line-height: 1; margin-bottom: var(--s-md); }
.notfound p { color: var(--slate); max-width: 520px; margin-inline: auto; }
.notfound .btn-row { justify-content: center; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-stage .phone { animation: none; }
}

@media print {
  .site-header, .site-footer, .toc, .skip-link, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .legal-hero { background: none; padding: 0 0 12pt; }
  .legal-layout { display: block; padding: 0; }
  .prose { max-width: none; }
  a { color: #000; }
}
.prose .legal-docs h2 { border: 0; padding: 0; font-size: 1.15rem; }
.prose .legal-docs { margin-top: var(--s-xxl); }
.btn-row--center { justify-content: center; margin-top: var(--s-xxl); }
.section--flush { padding-top: 0; }
@media (max-width: 440px) {
  .hero-stats { gap: 8px; }
  .hero-stats li { padding: 10px; }
  .hero-stats strong { font-size: 1.15rem; }
  .hero-stats span { font-size: .76rem; }
}

/* Latin tokens (e-mail addresses) keep their own direction inside Arabic text. */
a[href^="mailto:"], bdi { unicode-bidi: isolate; }
a[href^="mailto:"] { direction: ltr; }
@media (forced-colors: active) { .text-grad { color: CanvasText; background: none; } }
@media (max-width: 400px) {
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; padding: 8px 10px; font-size: .92rem; }
  .gallery-head { flex-direction: column; align-items: stretch; }
  .carousel-controls { justify-content: center; }
}
.band-deep, .cta-band { --focus: #f2b84b; }
