/* ─────────────────────────────────────────────────────────────────────────────
   El7areef marketing site — design tokens mirror the apps' AppColors
   (kBg / kSurface / kCard / kBorder / kGreen / kTextSub). RTL-first, logical
   properties only, no framework, no build step.
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  --bg: #0A0E1A;
  --surface: #141829;
  --card: #1C2235;
  --border: #252D40;
  --border-hi: #34405C;
  --green: #00D562;
  --green-dark: #009B48;
  --green-soft: rgba(0, 213, 98, 0.12);
  --green-glow: rgba(0, 213, 98, 0.35);
  --text: #FFFFFF;
  --text-2: #D7DCE5;
  --sub: #8892A4;
  --wa: #25D366;

  --font-display: "Changa", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, -apple-system, system-ui, sans-serif;

  --container: 1120px;
  --gutter: 20px;
  --radius: 20px;
  --radius-sm: 14px;
  --nav-h: 66px;
  --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--green); color: var(--bg); }

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

/* Numbers / Latin fragments inside Arabic copy stay LTR and don't flip */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.55rem); font-weight: 800; line-height: 1.15; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text-2); }
.muted { color: var(--sub); }

.accent {
  background: linear-gradient(90deg, #00D562 0%, #7CFFB9 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--green); border-radius: 2px;
}

.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head p { margin-top: 12px; font-size: 1.1rem; color: var(--sub); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow::before { display: none; }

/* ── Buttons & chips ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green); color: var(--bg);
  box-shadow: 0 10px 30px -12px var(--green-glow);
}
.btn-primary:hover { background: #17E775; transform: translateY(-2px); box-shadow: 0 16px 34px -12px var(--green-glow); }
.btn-ghost {
  background: rgba(255,255,255,0.03); color: var(--text);
  border-color: var(--border-hi);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #06210F; box-shadow: 0 10px 30px -12px rgba(37,211,102,.45); }
.btn-wa:hover { background: #3AE07A; transform: translateY(-2px); }
.btn-sm { padding: 11px 18px; font-size: 0.95rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid rgba(0, 213, 98, 0.25);
  color: var(--green);
  font-weight: 600;
  font-size: 0.92rem;
}
.pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(0,213,98,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,213,98,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(0,213,98,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,213,98,0); }
}

/* Store badges (official artwork, heights matched visually) */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store { display: inline-flex; border-radius: 9px; transition: transform .18s ease, filter .18s ease; }
.store:hover { transform: translateY(-2px); filter: brightness(1.12); }
.store img { height: 52px; width: auto; }
.store.play img { height: 76px; margin: -12px; } /* Google's PNG carries its own transparent margin */
.store-soon {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 16px;
  border-radius: 9px;
  border: 1px dashed var(--border-hi);
  color: var(--sub);
  font-size: 0.92rem;
  font-weight: 500;
}
.store-soon svg { width: 22px; height: 22px; opacity: .7; }
.store-soon b { color: var(--text-2); font-weight: 600; }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(10, 14, 26, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(37, 45, 64, 0.8);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand svg { width: 34px; height: 34px; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--text); padding-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: 0.98rem; position: relative; padding: 6px 0; transition: color .18s ease; }
.nav-links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: var(--green); border-radius: 2px; transform: scaleX(0); transition: transform .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
@media (max-width: 880px) { .nav-links { display: none; } }

/* ── Decorative background ──────────────────────────────────────────────── */
.glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(70px); opacity: .55;
}
.pitch-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 56px); overflow: clip; }
.hero .glow-a { width: 720px; height: 720px; inset-inline-start: -260px; top: -300px; background: var(--green); opacity: .16; }
.hero .glow-b { width: 560px; height: 560px; inset-inline-end: -200px; top: 120px; background: #2B4CFF; opacity: .16; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(24px, 4vw, 56px); }
.hero-copy .pill { margin-bottom: 26px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-2); max-width: 540px; margin-bottom: 30px; }
.hero-note { margin-top: 18px; color: var(--sub); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 16px; height: 16px; color: var(--green); }

.hero-visual { position: relative; height: 640px; }
.hero-visual .phone { position: absolute; bottom: 0; }
.phone-main { --w: 290px; left: 50%; transform: translateX(-50%); z-index: 3; }
.phone-l { --w: 214px; left: 0; bottom: 48px !important; transform: rotate(-8deg); z-index: 2; opacity: .96; }
.phone-r { --w: 214px; right: 0; bottom: 48px !important; transform: rotate(8deg); z-index: 2; opacity: .96; }
.hero-visual::after {
  /* floor shadow / floodlight pool */
  content: ""; position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%);
  width: 90%; height: 120px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,213,98,.28), transparent 70%);
  filter: blur(18px); z-index: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .phone-main { animation: float 7s ease-in-out infinite; }
  .phone-l, .phone-r { animation: floatSide 8s ease-in-out infinite; }
  .phone-r { animation-delay: -4s; }
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-10px); }
}
@keyframes floatSide {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}

/* ── Phone frame (CSS only; screenshots are 1320×2868) ──────────────────── */
.phone {
  --w: 260px;
  width: var(--w);
  aspect-ratio: 1320 / 2868;
  padding: calc(var(--w) * 0.032);
  background: #0B0F1C;
  border-radius: calc(var(--w) * 0.165);
  box-shadow:
    0 0 0 1px #2C3550,
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 40px 80px -30px rgba(0,0,0,0.85),
    0 0 90px -30px var(--green-glow);
  position: relative;
  flex: none;
}
.phone img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: calc(var(--w) * 0.135);
  background: var(--bg);
}
.phone::before { /* dynamic island */
  content: ""; position: absolute; z-index: 2;
  top: calc(var(--w) * 0.056); left: 50%; transform: translateX(-50%);
  width: calc(var(--w) * 0.27); height: calc(var(--w) * 0.078);
  background: #000; border-radius: 999px;
}
.phone::after { /* side button */
  content: ""; position: absolute;
  right: calc(var(--w) * -0.012); top: 24%;
  width: calc(var(--w) * 0.012); height: 10%;
  background: #2C3550; border-radius: 2px;
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { position: relative; padding-block: var(--section); }
.section-alt {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px 26px;
  transition: transform .2s ease, border-color .2s ease;
}
.step:hover { transform: translateY(-3px); border-color: var(--border-hi); }
.step-num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1;
  color: var(--green); opacity: .9; margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.step-num::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--green-soft), transparent); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--sub); font-size: 1rem; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(0,213,98,.45); box-shadow: 0 24px 50px -30px var(--green-glow); }
.icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 6px; font-size: 1.2rem; }
.feature p { color: var(--sub); font-size: 1rem; }
.feature .tag { display: inline-block; margin-top: 14px; font-size: .85rem; color: var(--green); font-weight: 600; }

/* Screens gallery */
.gallery { overflow: clip; }
.strip {
  display: flex; gap: 26px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
  padding-bottom: 18px;
  scrollbar-width: thin; scrollbar-color: var(--border-hi) transparent;
}
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 3px; }
.shot { scroll-snap-align: start; flex: none; text-align: center; }
.shot .phone { --w: 224px; margin-inline: auto; }
.shot figcaption { margin-top: 16px; color: var(--text-2); font-weight: 500; font-size: .98rem; }
.shot figcaption small { display: block; color: var(--sub); font-weight: 400; font-size: .85rem; }

/* Owners */
.owners-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.checks { display: grid; gap: 14px; margin: 26px 0 30px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checks svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 4px; }
.checks b { color: var(--text); font-weight: 600; }
.owner-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.owner-visual { position: relative; height: 600px; }
.owner-visual .phone { position: absolute; bottom: 0; }
.owner-visual .p1 { --w: 270px; right: 8%; z-index: 2; }
.owner-visual .p2 { --w: 236px; left: 4%; bottom: 36px; transform: rotate(-7deg); opacity: .95; }
.owner-visual .glow { width: 480px; height: 480px; left: 50%; top: 50%; translate: -50% -50%; background: var(--green); opacity: .14; }

.join {
  margin-top: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 22px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 180% at 100% 0%, rgba(37,211,102,.14), transparent 55%),
    var(--card);
  border: 1px solid var(--border);
}
.join h3 { margin-bottom: 6px; font-size: 1.35rem; }
.join p { color: var(--sub); }
.join-ctas { display: grid; justify-items: center; gap: 10px; }
.join-ask { display: inline-flex; align-items: center; gap: 8px; color: var(--sub); font-size: .95rem; font-weight: 500; transition: color .18s ease; }
.join-ask svg { width: 16px; height: 16px; color: var(--wa); }
.join-ask:hover { color: var(--text); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--border-hi); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border-hi); display: grid; place-items: center;
  color: var(--green); transition: transform .25s ease, background .2s ease;
}
.faq summary .plus svg { width: 14px; height: 14px; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--green-soft); }
.faq .answer { padding: 0 22px 20px; color: var(--sub); }
.faq .answer a { color: var(--green); }

/* CTA band */
.cta-band {
  position: relative; overflow: clip;
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(0,213,98,.28), transparent 60%),
    linear-gradient(180deg, #141C31 0%, #0F1424 100%);
  border: 1px solid rgba(0,213,98,.22);
}
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 12px; }
.cta-band p { color: var(--text-2); font-size: 1.15rem; margin-bottom: 30px; }
.cta-band .stores { justify-content: center; }
.cta-band .pitch-lines { opacity: .9; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding-block: 56px 28px; background: #080B15; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand span { font-size: 1.6rem; }
.footer .about { margin-top: 14px; color: var(--sub); max-width: 320px; font-size: .98rem; }
.footer h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; margin-bottom: 14px; color: var(--text); }
.footer li { margin-bottom: 10px; }
.footer li a { color: var(--sub); transition: color .18s ease; font-size: .98rem; display: inline-flex; align-items: center; gap: 8px; }
.footer li a svg { width: 16px; height: 16px; }
.footer li a:hover { color: var(--green); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px;
  color: var(--sub); font-size: .9rem;
}
.footer-bottom .en { direction: ltr; }

/* ── Scroll reveal (progressive: only when JS is present) ───────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s 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; }
.js .reveal:nth-child(5) { transition-delay: .32s; }
.js .reveal:nth-child(6) { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-copy .stores, .hero-note { justify-content: center; }
  .hero-visual { height: 560px; max-width: 560px; margin-inline: auto; width: 100%; }
  .phone-main { --w: 250px; }
  .phone-l, .phone-r { --w: 196px; }
  .phone-l { left: -2%; } .phone-r { right: -2%; }
  .steps { grid-template-columns: 1fr; }
  .owners-grid { grid-template-columns: 1fr; }
  .owner-visual { height: 520px; max-width: 520px; margin-inline: auto; width: 100%; }
  .owner-visual .p1 { --w: 240px; right: 10%; }
  .owner-visual .p2 { --w: 200px; left: 2%; }
  .join { grid-template-columns: 1fr; }
  .join-ctas { justify-items: start; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand span { font-size: 1.35rem; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { height: 480px; }
  .phone-main { --w: 216px; }
  .phone-l, .phone-r { --w: 164px; bottom: 60px !important; }
  .phone-l { left: -6%; } .phone-r { right: -6%; }
  .store img { height: 48px; }
  .store.play img { height: 70px; margin: -11px; }
  .cta-band .store img { height: 44px; }
  .cta-band .store.play img { height: 64px; margin: -10px; }
  .store-soon { height: 48px; }
  .strip { gap: 18px; }
  .shot .phone { --w: 200px; }
  .owner-visual { height: 460px; }
  .owner-visual .p1 { --w: 210px; right: 6%; }
  .owner-visual .p2 { --w: 176px; left: 0; }
  .faq summary { padding: 16px 18px; font-size: 1rem; }
  .faq .answer { padding: 0 18px 18px; }
}
