/* هوية الموقع كلها هنا: لما الهوية النهائية تجهز، بنغيّر القيم دي واللوجو في assets/logo.svg بس. */
:root {
  --primary: #0B8257;
  --primary-dark: #102A25;
  --primary-soft: #D9F5E9;
  --accent: #13B77A;
  --accent-deep: #0B8257;
  --accent-soft: #D9F5E9;
  --bg: #F4F4F4;
  --sand: #E9ECEB;
  --surface: #FFFFFF;
  --text: #102A25;
  --muted: #5E6E6A;
  --border: #E2E6E4;
  --danger: #C8403C;
  --success: #0B8257;
  --radius: 22px;
  --shadow: 0 16px 40px rgba(16, 42, 37, .08);
  --font: 'Cairo', system-ui, 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.ic {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 1.3em;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1160px, 100%); margin-inline: auto; padding-inline: 24px; }
.narrow { width: min(780px, 100%); }
.muted { color: var(--muted); }
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 50;
  background: var(--text);
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
}
.skip:focus { top: 12px; }

/* ---- الأزرار ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 26px;
  border-radius: 16px;
  border: 1.5px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-solid { background: var(--primary-dark); color: #fff; font-weight: 800; box-shadow: 0 10px 22px rgba(16, 42, 37, .24); }
.btn-solid:hover { background: #1A3F37; }
.btn-ghost { background: var(--surface); color: var(--primary-dark); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-sm { min-height: 44px; padding: 6px 18px; border-radius: 13px; font-size: 15px; }

/* ---- الشريط العلوي ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 244, 244, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--primary-dark); background: var(--primary-soft); }
.nav .btn { margin-inline-start: 10px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); cursor: pointer; }

/* ---- الواجهة ---- */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-deep); font-weight: 800; background: var(--primary-soft); padding: 4px 14px 4px 16px; border-radius: 999px; font-size: 15px; }
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.16; font-weight: 900; letter-spacing: -.5px; margin-top: 18px; }
h1 em { font-style: normal; color: var(--accent-deep); position: relative; white-space: nowrap; }
h1 em::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -.06em;
  height: .09em;
  background-image: radial-gradient(circle, var(--accent) 45%, transparent 48%);
  background-size: .22em .09em;
  background-repeat: repeat-x;
}
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 30px; color: var(--muted); font-weight: 700; font-size: 15px; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .ic { color: var(--primary); }

/* المسرح: تليفون فيه شاشة التتبع */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 40px 0;
  border-radius: 40px;
  background: linear-gradient(155deg, var(--primary) 0%, var(--accent) 100%);
  isolation: isolate;
}
.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, .13) 2px, transparent 2.5px);
  background-size: 26px 26px;
  z-index: -1;
}
.phone {
  width: min(300px, 76%);
  aspect-ratio: 300 / 600;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 9px solid #17211F;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(9, 40, 35, .4);
}
.phone-map { flex: 1; min-height: 0; }
.phone-map svg { width: 100%; height: 100%; }
.phone-sheet { background: var(--bg); border-radius: 24px 24px 0 0; margin-top: -22px; position: relative; padding: 8px 14px 16px; display: grid; gap: 9px; }
.sheet-grip { width: 38px; height: 4px; border-radius: 4px; background: var(--border); justify-self: center; }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; line-height: 1.5; }
.sheet-row strong { display: block; font-size: 17px; color: var(--primary); font-weight: 800; }
small { font-size: 12.5px; color: var(--muted); }
.eta { display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); width: 50px; height: 50px; border-radius: 15px; font-size: 18px; font-weight: 900; line-height: 1.1; }
.eta i { font-style: normal; font-size: 9.5px; font-weight: 700; }
.sheet-card { display: flex; align-items: center; gap: 9px; background: var(--surface); border-radius: 15px; padding: 8px 10px; line-height: 1.4; }
.sheet-card strong { display: block; font-size: 13.5px; }
.sheet-card > div { flex: 1; }
.sheet-card small { display: inline-flex; align-items: center; gap: 3px; }
.sheet-card small .ic { color: #FFB84D; font-size: 14px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; }
.round { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 12px; }
.sheet-code { display: flex; align-items: center; gap: 7px; background: var(--accent-soft); border-radius: 13px; padding: 7px 11px; color: var(--accent-deep); font-size: 13px; }
.sheet-code small { flex: 1; color: var(--text); }
.sheet-code b { font-size: 16px; font-weight: 900; color: var(--text); }
.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  line-height: 1.35;
  font-size: 14px;
  animation: drift 6s ease-in-out infinite;
}
.float strong { display: block; font-weight: 800; }
.float .ic { color: var(--primary); font-size: 22px; }
.float-a { top: 11%; inset-inline-start: -14px; }
.float-b { bottom: 13%; inset-inline-end: -14px; animation-delay: -3s; }
.float-b .ic { color: var(--success); }
@keyframes drift { 50% { transform: translateY(-9px); } }

/* ---- الأقسام ---- */
.section { padding: 84px 0; }
.sand { background: var(--sand); }
.head { max-width: 640px; margin-bottom: 40px; }
.head h2, .contact h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.3; font-weight: 900; }
.head p { color: var(--muted); margin-top: 8px; font-size: 18px; }
.head.light h2 { color: #fff; }
.head.light p { color: rgba(255, 255, 255, .84); }
h3 { font-size: 21px; font-weight: 800; line-height: 1.4; }

.cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.cats li { display: grid; justify-items: center; gap: 8px; text-align: center; font-weight: 700; font-size: 15px; }
.cat { display: grid; place-items: center; width: 100%; aspect-ratio: 1; max-width: 92px; border-radius: 26px; font-size: 24px; transition: transform .2s ease; }
.cats li:hover .cat { transform: translateY(-4px) rotate(-3deg); }
.c1 { background: #FDF0E2; color: #B96A1E; }
.c2 { background: #E2F3EA; color: #1F8A58; }
.c3 { background: #E5EEF8; color: #3468A8; }
.c4 { background: #D9F5E9; color: #102A25; }
.c5 { background: #F6EBE0; color: #94603A; }
.c6 { background: #FBE9F0; color: #B8527A; }
.c7 { background: #EFE7E1; color: #7A5C45; }
.c8 { background: #EFE8FA; color: #7A4FC2; }

.parcel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding: 30px 34px;
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.parcel h3 { font-size: 26px; }
.parcel p { color: var(--muted); max-width: 44em; margin-top: 4px; }
.parcel-mark { display: grid; place-items: center; flex: none; width: 84px; height: 84px; border-radius: 26px; background: var(--accent); color: var(--text); font-size: 30px; }

/* الخطوات: خط مسار بيربطهم */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 35px;
  inset-inline: 12% 12%;
  border-top: 3px dotted var(--primary);
  opacity: .45;
}
.steps li { position: relative; }
.step-ic {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 22px;
  margin-bottom: 16px;
  box-shadow: 0 0 0 8px var(--sand);
}
.steps p { color: var(--muted); margin-top: 4px; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.trust .ic { color: var(--primary); font-size: 30px; }
.trust h3 { margin-top: 10px; font-size: 19px; }
.trust p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }

.join { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.join-card { background: var(--surface); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; box-shadow: var(--shadow); }
.join-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; font-size: 22px; }
.join-ic.captain { background: var(--accent-soft); color: var(--accent-deep); }
.join-ic.partner { background: var(--primary-soft); color: var(--primary); }
.join-card h3 { font-size: 26px; margin-top: 6px; }
.join-card p { color: var(--muted); }
.join-card ul { display: grid; gap: 4px; margin: 8px 0 16px; }
.join-card li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.join-card li .ic { color: var(--primary); }
.join-card .btn { margin-top: auto; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 20px; font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.contact-list { display: grid; gap: 8px; margin-top: 18px; font-weight: 700; }
.contact-list li { display: flex; align-items: center; gap: 8px; }
.contact-list .ic { color: var(--primary); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--surface); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.full { grid-column: 1 / -1; }
.field { display: grid; gap: 4px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 13px;
}
.field input[dir='ltr'] { text-align: left; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; }
.form-note { min-height: 1.6em; margin: 0; font-weight: 700; color: var(--muted); font-size: 15px; }
.form-note.ok { color: var(--success); }
.form-note.err { color: var(--danger); }

/* ---- التطبيقات ---- */
.apps { padding: 84px 0; background: linear-gradient(160deg, var(--primary-dark), var(--primary)); }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.app-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: var(--surface); border-radius: var(--radius); padding: 28px; }
.app-ic { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); font-size: 22px; }
.app-card h3 { margin-top: 6px; font-size: 23px; }
.app-card > p { color: var(--muted); }
.store { margin-top: auto; padding-top: 16px; width: 100%; }
.play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 20px;
  border-radius: 14px;
  background: #101716;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  direction: ltr;
  transition: transform .18s ease;
}
.play span { direction: rtl; text-align: right; display: grid; }
.play small { color: rgba(255, 255, 255, .78); font-size: 12px; font-weight: 600; }
.play svg { width: 28px; height: 28px; flex: none; }
a.play:hover { transform: translateY(-2px); }
.play.soon { background: #3A4543; }
.store-links { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.store-links a { color: var(--primary-dark); font-weight: 700; }

/* ---- الفوتر ---- */
.foot { background: var(--primary-dark); color: rgba(255, 255, 255, .82); padding: 30px 0; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { font-weight: 600; font-size: 15px; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot small { color: rgba(255, 255, 255, .7); }

/* ---- الصفحات القانونية ---- */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 44px); margin: 0; }
.doc .updated { color: var(--muted); margin-top: 4px; }
.doc h2 { font-size: 24px; font-weight: 800; margin-top: 36px; color: var(--primary-dark); }
.doc h3 { font-size: 18px; margin-top: 20px; }
.doc p { color: #3B4948; margin-top: 4px; }
.doc ul.bullets { list-style: disc; padding-inline-start: 22px; color: #3B4948; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.toc a { padding: 4px 14px; background: var(--primary-soft); color: var(--primary-dark); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; }

.card-form { display: grid; gap: 14px; background: var(--surface); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 24px; }
.card-form[hidden] { display: none; }
.btn-danger { background: var(--danger); color: #fff; }

/* ---- الظهور ---- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 11px 12px; font-size: 16px; }
  .nav .btn { margin: 8px 0 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .stage { max-width: 520px; width: 100%; margin-inline: auto; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .app-grid, .join { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .hero { padding: 32px 0 48px; }
  .section, .apps { padding: 56px 0; }
  .head { margin-bottom: 28px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .float-a { inset-inline-start: 8px; top: 4%; }
  .float-b { display: none; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { top: 24px; bottom: 24px; inset-inline: 34px auto; border-top: 0; border-inline-start: 3px dotted var(--primary); }
  .steps li { padding-inline-start: 88px; min-height: 70px; }
  .step-ic { position: absolute; inset-inline-start: 0; top: 0; margin: 0; }
  .cats { gap: 14px 10px; }
  .cats li { font-size: 14px; }
  .cat { border-radius: 20px; }
  .trust { grid-template-columns: 1fr; }
  .parcel { flex-direction: column-reverse; align-items: flex-start; padding: 24px; }
  .form { grid-template-columns: 1fr; padding: 20px; }
  .join-card, .app-card { padding: 24px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
