/* wafforLY — الصفحة التعريفية.
   الألوان والاستدارات من تطبيق الزبون: أخضر «وفّر»، خلفية بيضاء دافئة،
   بطاقات بيضاء بظل خافت، ودائرة خصم خضراء. */

@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --green: #1F6B4F;
  --green-700: #154E3A;
  --green-900: #0E3527;
  --green-50: #E8F3EE;
  --mint: #A9EFD0;
  --amber: #F2A03D;
  --bg: #FAF8F3;
  --card: #FFFFFF;
  --ink: #16201B;
  --muted: #5F6A64;
  --line: #E7E2D8;
  --danger: #C3402F;
  --shadow: 0 14px 34px rgba(26, 43, 34, 0.10);
  --shadow-sm: 0 6px 18px rgba(26, 43, 34, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }

.sprite { position: absolute; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 32px); }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 100;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

/* ----------------------------------------------------------- الأزرار */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16.5px; line-height: 1.2;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(31, 107, 79, .25); }
.btn-primary:hover { background: var(--green-700); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); }
.btn-light { background: #fff; color: var(--green-900); }
.btn[aria-disabled="true"] { opacity: .8; cursor: default; transform: none; }

/* ----------------------------------------------------------- الترويسة */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, .86);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-color: var(--line); }

.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--green); color: #fff; font-weight: 800; font-size: 22px; line-height: 1;
}
/* الاسم لاتيني: يُكتب يسارًا ليمين وسط الصفحة العربية */
.brand-name { direction: ltr; font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.brand-name span { color: var(--green); }

.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a {
  text-decoration: none; font-weight: 600; color: var(--muted);
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { color: var(--ink); background: rgba(31, 107, 79, .08); }

.nav-toggle {
  display: none; margin-inline-start: auto;
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }

/* ----------------------------------------------------------- البداية */
.hero { position: relative; padding: 56px 0 88px; overflow: hidden; }
.hero::before, .hero::after {
  /* بقعتا لون خافتتان كما في تصميم صاحب المشروع */
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55;
}
.hero::before { width: 520px; height: 520px; background: #CFE9DC; inset-inline-end: -160px; top: -120px; }
.hero::after { width: 420px; height: 420px; background: #F6DDBF; inset-inline-start: -140px; bottom: -160px; opacity: .45; }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--green);
  margin-bottom: 22px;
}

.hero h1 { font-size: clamp(36px, 5.2vw, 60px); letter-spacing: -.01em; }
.hl {
  color: var(--green);
  background: linear-gradient(transparent 62%, rgba(169, 239, 208, .7) 62%);
  padding-inline: 4px;
}
.lead { margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: 15.5px; }
.hero-points .icon {
  width: 22px; height: 22px; padding: 4px; border-radius: 50%;
  background: var(--green-50); color: var(--green); stroke-width: 3;
}

/* ----------------------------------------------------------- الهاتف */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }

.phone {
  position: relative; width: 300px; height: 610px; border-radius: 46px; padding: 12px;
  background: #121815; box-shadow: 0 40px 80px rgba(14, 53, 39, .28), inset 0 0 0 2px #2A332E;
  transform: rotate(-3deg);
}
.phone-notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 24px; border-radius: 999px; background: #121815; z-index: 2;
}
.screen {
  height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg);
  padding: 54px 12px 0; display: flex; flex-direction: column; gap: 10px;
  font-size: 12.5px; line-height: 1.4;
}

.app-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.app-bar strong { font-size: 17px; }
.app-city { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 11.5px; }
.app-city .icon { width: 13px; height: 13px; }
.app-spacer { width: 46px; }

.app-search { display: flex; gap: 8px; align-items: center; }
.app-filter {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: #fff; flex: none;
}
.app-filter .icon { width: 16px; height: 16px; }
.app-field {
  flex: 1; height: 38px; border-radius: 999px; border: 1px solid #DAD6CC; background: #fff;
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: #7C847F; font-size: 11.5px;
}
.app-field .icon { width: 14px; height: 14px; }

.app-chips { display: flex; gap: 6px; overflow: hidden; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  padding: 5px 12px; border-radius: 999px; border: 1px solid #DAD6CC; background: #fff; font-weight: 700; font-size: 11.5px;
}
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.chip .icon { width: 12px; height: 12px; stroke-width: 3; }

.app-card {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px;
  padding: 8px; box-shadow: var(--shadow-sm);
}
.avatar {
  display: grid; place-items: center; width: 58px; height: 58px; flex: none;
  border-radius: 14px; background: var(--mint); color: var(--green-900); font-weight: 800; font-size: 24px;
}
.avatar.a2 { background: #F8E3C5; color: #7A4B12; }
.avatar.a3 { background: #CFE4F2; color: #1D4E6B; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.card-body b { font-size: 13.5px; }
.card-body small { color: var(--muted); font-size: 11px; }
.card-body i { font-style: normal; font-weight: 700; font-size: 10.5px; display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; }
.card-body i .icon { width: 12px; height: 12px; color: var(--muted); }
.disc {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800; font-size: 12px;
}

.app-nav {
  margin-top: auto; margin-inline: -12px; background: #fff; border-radius: 22px 22px 0 0;
  display: flex; justify-content: space-around; align-items: center; padding: 12px 8px 18px;
  box-shadow: 0 -6px 18px rgba(26, 43, 34, .06); font-weight: 800; font-size: 11.5px;
}
.app-nav span { padding: 6px 10px; border-radius: 999px; }
.app-nav .on { background: var(--green); color: #fff; }

.float-token, .float-done {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 20px; padding: 12px 16px; box-shadow: var(--shadow);
}
.float-token { inset-inline-start: -6px; bottom: 96px; transform: rotate(2deg); }
.float-token small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.float-token .code { display: block; direction: ltr; text-align: right; font-size: 17px; letter-spacing: .08em; font-weight: 800; }
.ring {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: conic-gradient(var(--green) var(--progress, 70%), var(--green-50) 0);
}
.ring b {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; font-size: 13px; direction: ltr;
}

/* فوق إطار الهاتف لا فوق محتواه: لا يغطي عنوان الشاشة */
.float-done { inset-inline-end: -18px; top: 6px; transform: rotate(-2deg); }
.float-done b { display: block; font-size: 15px; line-height: 1.2; }
.float-done small { display: block; color: var(--muted); font-size: 12.5px; }
.done-dot {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: #fff; flex: none;
}
.done-dot .icon { stroke-width: 3; }

/* ----------------------------------------------------------- الأقسام */
.section { padding: 88px 0; }
.section-tint { background: linear-gradient(180deg, #F3F0E8, #F6F3EC); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head p:not(.kicker) { color: var(--muted); margin-top: 12px; font-size: 18px; }
.kicker { color: var(--green); font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.kicker-light { color: var(--mint); }

/* أنواع الأماكن: بألوان بلاطات التطبيق نفسها */
.sectors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.sector {
  /* بلا ارتفاع أدنى: مع نسبة ثابتة يفرض عرضًا أدنى، فتخرج البلاطات عن الشاشة */
  aspect-ratio: 1 / 1.05;
  min-width: 0; border-radius: var(--radius); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; padding: 20px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.sector::after {
  content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255, 255, 255, .10); inset-inline-end: -40px; bottom: -50px;
}
.sector .icon { width: 44px; height: 44px; stroke-width: 1.8; }
.sector span { font-weight: 800; font-size: 19px; position: relative; z-index: 1; }
.s-rest { background: linear-gradient(135deg, #B5542B, #7A3519); }
.s-fast { background: linear-gradient(135deg, #D08A1E, #8E5B10); }
.s-cafe { background: linear-gradient(135deg, #6B4A35, #3F2A1E); }
.s-shisha { background: linear-gradient(135deg, #5B4B8A, #372C59); }
.s-gym { background: linear-gradient(135deg, #2B6E8C, #18465B); }
.s-more { background: var(--card); color: var(--green); box-shadow: none; border: 2px dashed #CFC8BA; }
.s-more::after { display: none; }

/* الخطوات */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step {
  position: relative; background: var(--card); border-radius: var(--radius); padding: 30px 26px 28px; box-shadow: var(--shadow);
}
.step-num {
  position: absolute; inset-inline-end: 22px; top: 18px;
  font-size: 54px; font-weight: 800; line-height: 1; color: var(--green-50);
}
.step-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: var(--green); color: #fff; margin-bottom: 20px;
}
.step-icon .icon { width: 26px; height: 26px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* المزايا */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid #EFEBE3; }
.f-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-50); color: var(--green); margin-bottom: 16px;
}
.f-icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 16px; }

/* الشركاء */
.partners {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  background: radial-gradient(120% 140% at 100% 0%, #24805E 0%, var(--green-700) 45%, var(--green-900) 100%);
  color: #fff; border-radius: 32px; padding: 56px;
  box-shadow: 0 30px 60px rgba(14, 53, 39, .25); overflow: hidden;
}
.partners h2 { font-size: clamp(28px, 3.4vw, 40px); }
.partners-lead { margin-top: 14px; color: rgba(255, 255, 255, .82); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .82); }
.checks .icon {
  width: 34px; height: 34px; padding: 7px; border-radius: 50%; margin-top: 2px;
  background: rgba(255, 255, 255, .12); color: var(--mint);
}
.checks b { display: block; color: #fff; font-size: 17.5px; }
.partners-actions { margin-top: 32px; }

.partners-visual { display: flex; justify-content: center; }
.scan-card {
  width: min(300px, 100%); background: #fff; color: var(--ink); border-radius: 26px; padding: 18px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .25); transform: rotate(2deg);
}
.scan-head { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #13566B; }
.scan-frame {
  margin: 16px 0; aspect-ratio: 1; border-radius: 18px; background: #0F1A20; position: relative; overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.scan-frame::before {
  content: ""; position: absolute; inset: 22%; border-radius: 16px;
  border: 3px solid rgba(255, 255, 255, .9);
  -webkit-mask: linear-gradient(#000 0 0) top left / 30% 30% no-repeat, linear-gradient(#000 0 0) top right / 30% 30% no-repeat,
                linear-gradient(#000 0 0) bottom left / 30% 30% no-repeat, linear-gradient(#000 0 0) bottom right / 30% 30% no-repeat;
          mask: linear-gradient(#000 0 0) top left / 30% 30% no-repeat, linear-gradient(#000 0 0) top right / 30% 30% no-repeat,
                linear-gradient(#000 0 0) bottom left / 30% 30% no-repeat, linear-gradient(#000 0 0) bottom right / 30% 30% no-repeat;
}
.scan-frame span {
  position: absolute; inset-inline: 24%; height: 3px; top: 50%; border-radius: 3px;
  background: var(--mint); box-shadow: 0 0 18px var(--mint);
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 26%; } 50% { top: 72%; } }
@media (prefers-reduced-motion: reduce) { .scan-frame span { animation: none; } }
.scan-result { display: flex; align-items: center; gap: 12px; background: var(--green-50); border-radius: 16px; padding: 12px; }
.scan-result b { display: block; line-height: 1.2; }
.scan-result small { color: var(--muted); }

/* الأسئلة */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--card); border-radius: 18px; padding: 4px 22px; box-shadow: var(--shadow-sm); border: 1px solid #EFEBE3;
}
.faq summary {
  cursor: pointer; list-style: none; font-weight: 800; font-size: 18px; padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-50); color: var(--green); font-size: 20px; line-height: 1; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* التحميل */
.download {
  text-align: center; background: var(--card); border-radius: 32px; padding: 56px 24px; box-shadow: var(--shadow);
}
.download h2 { font-size: clamp(26px, 3.2vw, 36px); }
.download p { color: var(--muted); margin-top: 10px; font-size: 18px; }
.stores { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 16px;
  background: #121815; color: #fff; font-weight: 800; font-size: 18px; line-height: 1.15; direction: ltr;
}
.store .icon { width: 26px; height: 26px; }
.store small { display: block; font-weight: 500; font-size: 12px; color: rgba(255, 255, 255, .7); direction: rtl; text-align: left; }

/* التذييل */
.site-footer { padding: 32px 0 40px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); }

/* ----------------------------------------------------------- الشاشات الضيقة */
@media (max-width: 1060px) {
  .sectors { grid-template-columns: repeat(3, 1fr); }
  /* ثلاثة أعمدة: بلاطة مربعة تصير أطول من حاجتها */
  .sector { aspect-ratio: 16 / 10; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero { padding: 32px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { text-align: center; }
  .eyebrow { margin-inline: auto; }
  .lead { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr; padding: 36px 24px; border-radius: 26px; }
  .partners-visual { order: -1; }
  .section { padding: 64px 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: absolute; inset-inline: 16px; top: 76px; flex-direction: column; gap: 2px;
    background: var(--card); border-radius: 18px; padding: 8px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; color: var(--ink); }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .sectors { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sector { padding: 16px; aspect-ratio: 1 / .82; }
  .sector .icon { width: 38px; height: 38px; }
  .sector span { font-size: 17px; }
  .features { grid-template-columns: 1fr; }
  .phone { width: 270px; height: 560px; transform: none; }
  .float-token { inset-inline-start: 0; bottom: 60px; padding: 10px 12px; }
  .float-token .code { font-size: 15px; }
  .float-done { inset-inline-end: 0; top: -6px; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
}
