/* Doctori — site design system v2 (2026-07-08).
   Language of the doctor/secretary dashboards: Tajawal, teal family,
   white rounded cards on soft gray, generous spacing. LIGHT ONLY —
   founder rule: no dark mode anywhere.
   RTL-first; bilingual via [lang] spans + html[data-lang]. */

:root {
  /* — palette (mirrors the dashboards' teal/gray tokens) — */
  --primary-900: #134e4a;
  --primary-800: #115e59;
  --primary-700: #0f766e;
  --primary-600: #0d9488;
  --primary-500: #14b8a6;
  --primary-200: #99f6e4;
  --primary-100: #ccfbf1;
  --primary-50:  #f0fdfa;
  --mint-50:     #ecfdf5;
  --mint-400:    #4fd1a5;
  --grad-a: #00796F;
  --grad-b: #00897B;
  --grad-c: #26A69A;

  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;

  --danger-700: #b91c1c;
  --warn-700: #b45309;

  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.07);
  --shadow-lg: 0 16px 48px rgba(15, 118, 110, 0.12);

  --maxw: 1120px;
  --font: "Tajawal", -apple-system, "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-900);
  background: #ffffff;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* bilingual visibility: html[data-lang] decides which [lang] spans show */
html[data-lang="ar"] [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="ar"] { display: none !important; }

a { color: var(--primary-700); text-decoration: none; }
a:hover { color: var(--primary-800); }
img, svg { max-width: 100%; height: auto; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; inset-inline-start: -999px; top: 8px;
  background: var(--primary-700); color: #fff; padding: 8px 16px;
  border-radius: 12px; z-index: 100;
}
.skip-link:focus { inset-inline-start: 8px; }

.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;
}

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.site-header .container {
  display: flex; align-items: center; gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 22px; letter-spacing: -0.01em;
  color: var(--gray-900);
}
.brand .cross { color: var(--primary-700); font-size: 22px; line-height: 1; }
.brand .word {
  background: linear-gradient(270deg, var(--grad-a), var(--grad-b), var(--grad-c));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-lang="en"] .brand .word { background: linear-gradient(90deg, var(--grad-a), var(--grad-b), var(--grad-c)); -webkit-background-clip: text; background-clip: text; }
.brand img.mark { height: 30px; width: auto; }

.nav { display: flex; gap: 4px; margin-inline-start: auto; flex-wrap: wrap; }
.nav a {
  padding: 8px 14px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 14.5px; color: var(--gray-600);
  transition: all .15s ease;
}
.nav a:hover { background: var(--primary-50); color: var(--primary-800); }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--gray-300);
  border-radius: var(--radius-full); overflow: hidden; flex: none;
}
.lang-toggle button {
  appearance: none; border: 0; background: #fff; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: 13px;
  color: var(--gray-500); padding: 7px 14px; transition: all .15s ease;
}
.lang-toggle button.active { background: var(--primary-700); color: #fff; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px; border-radius: 14px;
  background: var(--primary-700); color: #fff !important;
  font-weight: 800; font-size: 15.5px; border: 0; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: all .15s ease;
}
.btn:hover { background: var(--primary-800); transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn.secondary {
  background: #fff; color: var(--primary-800) !important;
  border: 1.5px solid var(--gray-300);
}
.btn.secondary:hover { border-color: var(--primary-600); background: var(--primary-50); }
.btn.ghost { background: var(--primary-50); color: var(--primary-800) !important; box-shadow: none; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px;
  align-items: center; padding: 72px 0 56px;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mint-50); color: var(--primary-800);
  border: 1px solid var(--primary-100);
  padding: 6px 14px; border-radius: var(--radius-full);
  font-weight: 800; font-size: 13px; margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 14px; font-size: clamp(34px, 5vw, 52px);
  font-weight: 900; line-height: 1.25; letter-spacing: -0.02em;
  color: var(--gray-900);
}
.hero h1 .hl { color: var(--primary-700); }
.hero .lead {
  margin: 0 0 28px; font-size: clamp(16px, 2vw, 19px);
  color: var(--gray-600); max-width: 34em; font-weight: 500;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  background: #fff;
}
.hero-art img { display: block; width: 100%; }

/* trust strip under hero */
.trust {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  padding: 10px 0 8px;
}
.trust .chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-full); padding: 8px 18px;
  font-weight: 700; font-size: 13.5px; color: var(--gray-700);
}
.trust .chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-500); }

/* ── Sections ───────────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section.alt { background: var(--gray-50); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head .kicker {
  color: var(--primary-700); font-weight: 800; font-size: 14px;
  letter-spacing: 0.02em; margin-bottom: 6px;
}
.section-head h2 {
  margin: 0 0 10px; font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 900; color: var(--gray-900); letter-spacing: -0.01em;
}
.section-head p { margin: 0; color: var(--gray-500); font-size: 16.5px; font-weight: 500; }

/* feature grid */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl); padding: 22px;
  transition: all .18s ease;
}
.feature:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--primary-200); }
.feature .art {
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px;
  background: var(--mint-50); aspect-ratio: 1.6 / 1;
}
.feature .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature h3 { margin: 0 0 6px; font-size: 18.5px; font-weight: 800; color: var(--gray-900); }
.feature p { margin: 0; color: var(--gray-500); font-size: 14.5px; }

/* split section (text + wide art) */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.split.reverse .split-art { order: 2; }
.split h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 32px); font-weight: 900; color: var(--gray-900); }
.split p { color: var(--gray-600); font-size: 16px; margin: 0 0 12px; font-weight: 500; }
.split ul { margin: 0 0 20px; padding: 0; list-style: none; }
.split ul li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 0; color: var(--gray-700); font-weight: 600; font-size: 15px;
}
.split ul li::before {
  content: "✓"; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint-50); color: var(--primary-700);
  font-weight: 900; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.split-art {
  border-radius: var(--radius-2xl); overflow: hidden;
  border: 1px solid var(--gray-100); box-shadow: var(--shadow-md);
  background: #fff;
}
.split-art img { display: block; width: 100%; }

/* stats band */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 22px; text-align: center;
}
.stat .num { font-size: 30px; font-weight: 900; color: var(--primary-700); }
.stat .lbl { font-size: 13.5px; color: var(--gray-500); font-weight: 700; }

/* download band */
.download-band {
  background: linear-gradient(135deg, var(--grad-a), var(--grad-c));
  border-radius: var(--radius-2xl);
  padding: 48px 40px; text-align: center; color: #fff;
  box-shadow: var(--shadow-lg);
}
.download-band h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); font-weight: 900; color: #fff; }
.download-band p { margin: 0 0 24px; color: rgba(255,255,255,.85); font-weight: 600; }
.store-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--gray-900) !important;
  border-radius: 14px; padding: 12px 22px;
  font-weight: 800; font-size: 15px;
  box-shadow: var(--shadow-sm); transition: all .15s ease;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.store-badge svg { color: var(--primary-700); }
.store-badge .soon {
  font-size: 11px; font-weight: 800; color: var(--warn-700);
  background: #fef3c7; border-radius: var(--radius-full); padding: 2px 10px;
}

/* ── Prose shell (legal/support pages) ──────────────────────────── */
.page-hero {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 44px 0 36px; margin-bottom: 36px;
}
.page-hero h1 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 36px); font-weight: 900; color: var(--gray-900); }
.page-hero p { margin: 0; color: var(--gray-500); font-weight: 600; }

.prose { max-width: 820px; margin: 0 auto; padding-bottom: 64px; }
.prose h2 {
  margin: 36px 0 12px; font-size: 22px; font-weight: 800; color: var(--primary-900);
  padding-inline-start: 12px; border-inline-start: 4px solid var(--primary-500);
}
.prose h3 { margin: 22px 0 8px; font-size: 17.5px; font-weight: 800; color: var(--gray-900); }
.prose p, .prose li { color: var(--gray-700); font-size: 15.5px; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose blockquote {
  margin: 16px 0; padding: 14px 18px;
  background: var(--primary-50); border-inline-start: 4px solid var(--primary-500);
  border-radius: 12px; color: var(--primary-900); font-weight: 600;
}
.prose table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px;
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--gray-200);
}
.prose thead th {
  background: var(--primary-50); color: var(--primary-900);
  text-align: start; font-weight: 800; padding: 10px 14px;
  border-bottom: 1px solid var(--gray-200);
}
.prose tbody td { padding: 9px 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose .updated {
  display: inline-block; background: var(--gray-100); color: var(--gray-500);
  border-radius: var(--radius-full); font-size: 12.5px; font-weight: 700;
  padding: 4px 14px; margin-bottom: 10px;
}
.card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 22px; margin: 16px 0;
  box-shadow: var(--shadow-sm);
}

/* forms (delete-account / support) */
.field { margin: 14px 0; }
.field label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; color: var(--gray-700); }
.field .helper { font-size: 12.5px; color: var(--gray-400); margin-top: 5px; }
.field input, .field textarea, .field select {
  width: 100%; height: 48px; border: 1.5px solid var(--gray-300);
  border-radius: 12px; padding: 0 14px; font-family: var(--font);
  font-size: 15px; color: var(--gray-900); background: #fff;
  transition: border-color .15s ease;
}
.field textarea { height: auto; padding: 12px 14px; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary-600);
  box-shadow: 0 0 0 4px var(--primary-100);
}

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
  padding: 40px 0 32px; margin-top: 48px;
}
.footer .container { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; align-items: start; }
.footer .brand { font-size: 19px; }
.footer .tagline { color: var(--gray-500); font-size: 13.5px; margin: 10px 0 0; font-weight: 600; }
.footer nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 20px; }
.footer nav a { font-size: 13.5px; font-weight: 700; color: var(--gray-600); padding: 4px 0; }
.footer nav a:hover { color: var(--primary-700); }
.footer .legal {
  grid-column: 1 / -1; border-top: 1px solid var(--gray-200);
  padding-top: 18px; margin-top: 8px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  color: var(--gray-400); font-size: 12.5px; font-weight: 600;
}

/* ── «دكتوري المجاني» band — distinct mint gradient-framed section ── */
.free-band {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 2px; /* gradient frame thickness */
  background: linear-gradient(135deg, var(--mint-400), var(--grad-a));
  box-shadow: var(--shadow-lg);
}
.free-band .inner {
  border-radius: calc(var(--radius-2xl) - 2px);
  background: linear-gradient(180deg, #ffffff, var(--mint-50));
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px;
  align-items: center; padding: 36px 40px;
  overflow: hidden;
}
.free-band .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-700); color: #fff;
  border-radius: var(--radius-full); padding: 7px 18px;
  font-weight: 800; font-size: 13px; margin-bottom: 14px;
}
.free-band h2 { margin: 0 0 10px; font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; color: var(--primary-900); }
.free-band p { margin: 0 0 18px; color: var(--gray-600); font-weight: 600; font-size: 16px; }
.free-band .art { border-radius: var(--radius-xl); overflow: hidden; }
.free-band .art img { display: block; width: 100%; }
@media (max-width: 900px) {
  .free-band .inner { grid-template-columns: 1fr; padding: 26px 22px; gap: 20px; }
  .free-band .art { order: -1; margin: -26px -22px 0; border-radius: 0; }
}

/* ── join form (doctor onboarding) ── */
.join-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.join-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl); padding: 26px;
  box-shadow: var(--shadow-md);
}
.join-side { position: sticky; top: 92px; }
.join-side .art { border-radius: var(--radius-2xl); overflow: hidden; border: 1px solid var(--gray-100); box-shadow: var(--shadow-md); margin-bottom: 18px; }
.join-side .art img { display: block; width: 100%; }
.field .field-error { display: none; color: var(--danger-700); font-size: 12.5px; font-weight: 700; margin-top: 5px; }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: var(--danger-700); }
.join-card .btn { width: 100%; margin-top: 6px; }
.wa-note {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-top: 12px; color: var(--gray-400); font-size: 12.5px; font-weight: 700;
}
@media (max-width: 900px) {
  .join-grid { grid-template-columns: 1fr; }
  .join-side { position: static; }
}

/* ── «لماذا دكتوري؟» before/after comparison ── */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.compare-card {
  border-radius: var(--radius-2xl); padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.compare-card.before {
  background: var(--gray-50); border: 1px solid var(--gray-200);
}
.compare-card.after {
  background: linear-gradient(180deg, #ffffff, var(--mint-50));
  border: 2px solid var(--primary-200);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.compare-card .c-head { display: flex; align-items: center; gap: 12px; }
.compare-card .c-head .c-art { width: 74px; height: 74px; border-radius: 18px; overflow: hidden; flex: none; }
.compare-card .c-head .c-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.compare-card h3 { margin: 0; font-size: 20px; font-weight: 900; }
.compare-card.before h3 { color: var(--gray-500); }
.compare-card.after h3 { color: var(--primary-800); }
.compare-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.compare-card li { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; font-size: 14.5px; }
.compare-card.before li { color: var(--gray-500); }
.compare-card.after li { color: var(--gray-700); }
.compare-card li .mark {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; margin-top: 1px;
}
.compare-card.before li .mark { background: var(--gray-200); color: var(--gray-500); }
.compare-card.after li .mark { background: var(--primary-100); color: var(--primary-800); }
.compare-card.after .c-tag {
  position: absolute; top: -13px; inset-inline-end: 20px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-c)); color: #fff;
  border-radius: var(--radius-full); padding: 5px 16px;
  font-weight: 800; font-size: 12.5px; box-shadow: var(--shadow-sm);
}
@media (max-width: 780px) { .compare { grid-template-columns: 1fr; } }

/* ── /free page hero band ── */
.free-hero {
  border-radius: var(--radius-2xl); overflow: hidden;
  border: 1px solid var(--gray-100); box-shadow: var(--shadow-lg);
  margin-bottom: 36px;
}
.free-hero img { display: block; width: 100%; }

/* ── FAQ accordion cards (native <details>, zero JS) ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); overflow: hidden;
  transition: all .18s ease;
}
.faq-item[open] { border-color: var(--primary-200); box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px;
  font-weight: 800; font-size: 15.5px; color: var(--gray-900);
  transition: background .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--primary-50); }
.faq-item summary .chev {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--gray-100); color: var(--gray-500);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
  transition: all .2s ease;
}
.faq-item[open] summary .chev { transform: rotate(180deg); background: var(--primary-100); color: var(--primary-800); }
.faq-item .faq-body {
  padding: 0 20px 16px; color: var(--gray-600);
  font-size: 14.5px; font-weight: 500; line-height: 1.8;
}
.faq-item .faq-body a { font-weight: 700; }

/* ── How it works — numbered steps ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.step {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl); padding: 20px; text-align: center;
  transition: all .18s ease; position: relative;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-200); }
.step .num {
  position: absolute; top: -14px; inset-inline-start: 18px;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-c)); color: #fff;
  font-weight: 900; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.step .icon { width: 88px; height: 88px; border-radius: 22px; overflow: hidden; margin: 6px auto 12px; background: var(--mint-50); }
.step .icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; color: var(--gray-900); }
.step p { margin: 0; color: var(--gray-500); font-size: 13px; font-weight: 600; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; } }
@media (max-width: 400px) { .steps { grid-template-columns: 1fr; } }

/* ── store badges v2 (generated icons + two-line label) ── */
.store-badge { padding: 10px 18px; }
.store-badge .s-icon { width: 42px; height: 42px; border-radius: 11px; overflow: hidden; flex: none; }
.store-badge .s-icon img { width: 100%; height: 100%; display: block; }
.store-badge .s-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.store-badge .s-txt small { font-size: 10.5px; font-weight: 700; color: var(--gray-400); }
.store-badge .s-txt b { font-size: 15.5px; font-weight: 800; color: var(--gray-900); }


/* ── support contact cards ── */
.support-hero-band { border-radius: var(--radius-2xl); overflow: hidden; border: 1px solid var(--gray-100); box-shadow: var(--shadow-md); margin-bottom: 24px; }
.support-hero-band img { display: block; width: 100%; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 28px; }
.contact-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-2xl);
  padding: 22px; text-align: center; transition: all .18s ease;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-200); }
.contact-card .tile { width: 74px; height: 74px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.contact-card .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-card h3 { margin: 2px 0 0; font-size: 17.5px; font-weight: 800; color: var(--gray-900); }
.contact-card p { margin: 0; color: var(--gray-500); font-size: 13.5px; font-weight: 600; }
.contact-card .btn { width: 100%; margin-top: 6px; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── prose section icons (terms/privacy explainers) ── */
.prose h2.has-icon { display: flex; align-items: center; gap: 12px; }
.prose h2 .sec-icon {
  width: 52px; height: 52px; border-radius: 14px; overflow: hidden; flex: none;
  border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm);
  padding-inline-start: 0; border-inline-start: none;
}
.prose h2 .sec-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* «تم الإنشاء بواسطة: فريق برو» — soft credit, logo + link to proirq.com */
.made-by {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--gray-400); font-size: 12.5px; font-weight: 700;
  opacity: .85; transition: all .15s ease;
}
.made-by img { height: 18px; width: auto; display: block; }
.made-by b { color: var(--gray-500); font-weight: 800; }
.made-by:hover { opacity: 1; color: var(--gray-600); }
.made-by:hover b { color: var(--primary-700); }

/* ── Motion system (R1703) ──────────────────────────────────────── */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes floatY2 {
  0%, 100% { transform: translateY(-6px); }
  50% { transform: translateY(6px); }
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: .65; }
}
@keyframes marqueeRTL {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
@keyframes marqueeLTR {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* scroll-reveal: reveal.js adds .in when the element enters view */
html.rvl .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}
html.rvl .reveal.in { opacity: 1; transform: none; }
html.rvl [data-stagger] > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1);
}
html.rvl [data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(1) { transition-delay: .05s; }
[data-stagger].in > *:nth-child(2) { transition-delay: .13s; }
[data-stagger].in > *:nth-child(3) { transition-delay: .21s; }
[data-stagger].in > *:nth-child(4) { transition-delay: .29s; }
[data-stagger].in > *:nth-child(5) { transition-delay: .37s; }
[data-stagger].in > *:nth-child(6) { transition-delay: .45s; }

/* hero stage: layered floating app chips over the illustration */
.hero-stage { position: relative; }
.hero-float {
  position: absolute; display: block;
  background: #fff; border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.18);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  animation: floatY 6s ease-in-out infinite;
}
.hero-float img { display: block; width: 100%; height: auto; }
.hero-float.f-doctor { width: clamp(150px, 15vw, 210px); top: -22px; inset-inline-start: -18px; animation-duration: 7s; }
.hero-float.f-notify { width: clamp(140px, 13vw, 190px); bottom: -20px; inset-inline-start: 8%; animation: floatY2 6s ease-in-out infinite; }
.hero-float.f-queue { width: clamp(84px, 8vw, 116px); top: -26px; inset-inline-end: -10px; border-radius: 50%; animation-duration: 8s; }

/* trust dots pulse */
.trust .chip .dot { animation: pulseDot 2.6s ease-in-out infinite; }

/* specialties marquee */
.marquee {
  overflow: hidden; position: relative;
  padding: 18px 0 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee .track {
  display: inline-flex; gap: 12px; white-space: nowrap; will-change: transform;
}
html[dir="rtl"] .marquee .track { animation: marqueeRTL 36s linear infinite; }
html[dir="ltr"] .marquee .track { animation: marqueeLTR 36s linear infinite; }
.marquee .m-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-full); padding: 9px 20px;
  font-weight: 800; font-size: 14px; color: var(--primary-800);
  box-shadow: var(--shadow-sm);
}
.marquee .m-chip::before { content: "✚"; color: var(--primary-500); font-size: 12px; }

/* stat cards hover life */
.stat { transition: all .18s ease; }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-200); }

/* respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  .hero-float, .trust .chip .dot, .marquee .track { animation: none !important; }
  .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Mobile nav drawer (slide-in side menu) ─────────────────────── */
.menu-btn {
  display: none; appearance: none; border: 1.5px solid var(--gray-300);
  background: #fff; border-radius: 12px; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  color: var(--gray-700); flex: none; transition: all .15s ease;
}
.menu-btn:hover { border-color: var(--primary-600); color: var(--primary-700); }
.menu-btn svg { width: 22px; height: 22px; }

.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.drawer-overlay {
  position: absolute; inset: 0; background: rgba(17, 24, 39, 0.45);
  opacity: 0; transition: opacity .25s ease;
}
.drawer-panel {
  position: absolute; top: 0; bottom: 0; inset-inline-start: 0;
  width: min(320px, 85vw); background: #fff;
  box-shadow: var(--shadow-lg);
  border-inline-end: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
  padding: 18px 20px 24px;
  transition: transform .28s cubic-bezier(.2, .8, .25, 1);
  overflow-y: auto;
}
html[dir="rtl"] .drawer-panel { transform: translateX(100%); }
html[dir="ltr"] .drawer-panel { transform: translateX(-100%); }
.drawer[data-open] { pointer-events: auto; }
.drawer[data-open] .drawer-overlay { opacity: 1; }
.drawer[data-open] .drawer-panel { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; border-bottom: 1px solid var(--gray-100);
  margin-bottom: 10px;
}
.drawer-close {
  appearance: none; border: 0; background: var(--gray-100);
  border-radius: 10px; width: 38px; height: 38px; cursor: pointer;
  font-size: 18px; color: var(--gray-600); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.drawer-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.drawer-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; border-radius: 14px;
  font-weight: 800; font-size: 15.5px; color: var(--gray-700);
  transition: all .15s ease;
}
.drawer-nav a:hover { background: var(--primary-50); color: var(--primary-800); }
.drawer-cta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--gray-100); }
.drawer-cta .btn { width: 100%; }
.drawer .lang-toggle { margin: 12px 0 0; align-self: stretch; justify-content: center; }
.drawer .lang-toggle button { flex: 1; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 34px 0 26px; gap: 30px; }
  /* image (stage) first on mobile, with breathing room for the floats */
  .hero-stage { order: -1; margin: 14px 10px 10px; }
  .hero-float.f-doctor { width: clamp(118px, 33vw, 150px); top: -14px; inset-inline-start: -8px; }
  .hero-float.f-notify { width: clamp(108px, 30vw, 140px); bottom: -14px; inset-inline-start: 6%; }
  .hero-float.f-queue { width: clamp(58px, 17vw, 84px); top: -18px; inset-inline-end: -6px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 24px; }
  .split.reverse .split-art { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer .container { grid-template-columns: 1fr; }
  .footer nav { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .site-header .lang-toggle { display: none; }
  .menu-btn { display: inline-flex; margin-inline-start: auto; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .download-band { padding: 36px 20px; }
}
