/* ============================================================
   اقرأ عليَّ — Landing Page
   أسلوب مسطّح (Flat) مستمد من واجهة التطبيق:
   خطوط رفيعة، أسطح هادئة، بلا توهّج أو تدرّجات ثقيلة.
   الخط: IBM Plex Sans Arabic (مستضاف محليًا)
   الألوان: #AB9172 / #161616 / #FBFDFF / #EDEDED / #D9D9D9
   ============================================================ */

/* ---------- الخطوط ---------- */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-500-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-600-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- المتغيرات (هوية التطبيق) ---------- */
:root {
  --bg: #FBFDFF;
  --bg-soft: #EDEDED;
  --surface: #FFFFFF;
  --surface-2: #F5F6F7;
  --surface-card: #FFFFFF;
  --text: #161616;
  --muted: #5E5E5E;
  --faint: #6E6E6E;
  --line: #D9D9D9;
  --line-soft: #E7E8EA;
  --accent: #AB9172;
  --accent-deep: #7A6244;
  --accent-soft: #EFE6D9;
  --on-accent: #241C12;
  --badge-bg: rgba(255, 255, 255, .55);
  --radius: 16px;
  --container: 1140px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html[data-theme="dark"] {
  --bg: #121212;
  --bg-soft: #181818;
  --surface: #181818;
  --surface-2: #242424;
  --surface-card: #212121;
  --text: #F3F3F3;
  --muted: #B9B9B9;
  --faint: #A0A0A0;
  --line: #3B3B3B;
  --line-soft: #2A2A2A;
  --accent: #C9AF8D;
  --accent-deep: #DCC5A4;
  --accent-soft: #3B3023;
  --on-accent: #241C12;
  --badge-bg: rgba(0, 0, 0, .12);
}

/* ---------- الأساسيات ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1, h2, h3, p, figure, blockquote {
  margin-top: 0;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 8vw, 104px) 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ---------- الهيدر ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
}

.brand-tag {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-inline-start: auto;
}

.site-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 0;
  transition: color .2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--ease);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.theme-toggle .icon {
  width: 19px;
  height: 19px;
  grid-area: 1 / 1;
}

.theme-toggle .icon-sun { display: none; }

html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 15px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: transparent;
  color: var(--accent-deep);
  font-size: 13.5px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
}

.header-cta svg {
  width: 16px;
  height: 16px;
}

.header-cta:hover {
  background: var(--accent-soft);
}

/* ---------- الهيرو ---------- */
.hero {
  position: relative;
  padding: clamp(44px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  overflow: clip;
  border-bottom: 1px solid var(--line-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-deep);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex: 0 0 auto;
}

.hero h1 {
  margin: 0 0 12px;
  padding-bottom: .04em;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
}

.hero-tagline {
  margin: 0 0 14px;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.6;
  font-weight: 500;
  color: var(--text);
}

.hero-desc {
  max-width: 44ch;
  margin: 0 0 28px;
  font-size: clamp(15px, 1.35vw, 16.5px);
  line-height: 1.95;
  color: var(--muted);
}

/* صندوق التحميل */
.download-box {
  max-width: 400px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.version-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.version-pill,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.version-pill {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.meta-pill {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

.btn-download {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.btn-download > svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.btn-download:hover {
  filter: brightness(.96);
}

.btn-download:active {
  transform: translateY(1px);
}

.btn-download.is-pending {
  cursor: pointer;
}

.btn-badge {
  margin-inline-start: auto;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--badge-bg);
  color: inherit;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-download.is-shaking {
  animation: shake .5s ease;
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}

.mortakaz-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.mortakaz-link svg {
  width: 14px;
  height: 14px;
  color: var(--accent-deep);
}

.mortakaz-link:hover {
  color: var(--accent-deep);
  text-decoration-color: var(--accent);
}

.download-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

/* المشهد البصري */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 0;
}

.phone {
  position: relative;
  border: 6px solid #1B1B1B;
  border-radius: 26px;
  background: #1B1B1B;
  overflow: hidden;
}

.phone img {
  width: 100%;
  height: auto;
}

.phone-hero {
  width: min(256px, 58%);
}

.logo-card {
  order: -1;
  width: clamp(72px, 7.5vw, 88px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
}

.logo-card img {
  width: 100%;
  height: 100%;
}

.float-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-card);
}

.chip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  flex: 0 0 auto;
}

.chip-icon svg {
  width: 18px;
  height: 18px;
}

.chip-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.chip-copy strong {
  font-size: 12.5px;
  font-weight: 600;
}

.chip-copy small {
  font-size: 11px;
  color: var(--muted);
}

/* ---------- الوصف والمميزات ---------- */
.about {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  max-width: 740px;
  margin-bottom: clamp(30px, 4vw, 46px);
}

.section-head h2,
.features-head h2 {
  margin: 0 0 12px;
  font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

.section-lead {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 16.5px);
  line-height: 1.95;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .5fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}

.about-copy p {
  margin: 0 0 16px;
  font-size: clamp(15px, 1.35vw, 16px);
  line-height: 2;
  color: var(--muted);
}

.about-copy p strong {
  color: var(--text);
  font-weight: 600;
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
}

.tech-label {
  font-size: 12.5px;
  color: var(--faint);
  margin-inline-end: 2px;
}

.tech-chip {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.6;
}

.quote-card {
  position: relative;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-card);
}

.quote-card::before {
  content: "";
  position: absolute;
  inset-inline-start: -1px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.quote-mark {
  display: block;
  margin-bottom: -14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 54px;
  line-height: 1;
  color: var(--accent);
}

.quote-card blockquote {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--text);
}

.quote-source {
  font-size: 12.5px;
  color: var(--faint);
}

.features-head {
  max-width: 680px;
  margin-top: clamp(48px, 6vw, 76px);
  margin-bottom: clamp(24px, 3vw, 34px);
}

.features-head h2 {
  margin-bottom: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-card);
  transition: border-color .2s ease;
}

.feature-card:hover {
  border-color: var(--accent);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- الأسئلة الشائعة ---------- */
.faq {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-card);
  transition: border-color .2s ease;
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 14px;
}

.faq-chevron {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--accent-deep);
  transition: transform .2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 18px 16px;
}

.faq-answer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
}

/* ---------- لمحة من التطبيق ---------- */
.preview {
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.section-head.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  max-width: none;
}

.section-head.split > div {
  max-width: 620px;
}

.section-head.split .section-lead {
  max-width: 360px;
  margin-bottom: 4px;
  font-size: 14.5px;
}

.screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 28px);
  align-items: start;
}

.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.screen .phone {
  width: 100%;
  max-width: 232px;
  border-width: 5px;
  border-radius: 24px;
}

.screen figcaption {
  max-width: 230px;
  text-align: center;
}

.screen figcaption strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.screen figcaption span {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

.preview-note {
  margin: 26px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- التواصل ---------- */
.contact {
  background: var(--bg);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4.5vw, 56px);
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.contact-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.4;
  font-weight: 700;
}

.contact-intro > p {
  max-width: 36ch;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
}

.contact-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px !important;
  color: var(--faint) !important;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  transition: border-color .2s ease, background .2s ease;
}

.contact-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  flex: 0 0 auto;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.45;
}

.contact-label {
  font-size: 11.5px;
  color: var(--faint);
}

.contact-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.contact-value[dir="ltr"] {
  text-align: right;
}

.contact-sub {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

.contact-arrow {
  width: 17px;
  height: 17px;
  color: var(--faint);
  flex: 0 0 auto;
  transition: color .2s ease;
}

.contact-card:hover .contact-arrow {
  color: var(--accent-deep);
}

/* ---------- التذييل ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.footer-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.footer-brand strong {
  font-size: 14px;
  font-weight: 700;
}

.footer-brand small {
  font-size: 10.5px;
  color: var(--faint);
}

.footer-copy {
  margin: 0;
  font-size: 11.5px;
  color: var(--faint);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-links a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s ease;
}

.footer-links a:hover {
  color: var(--accent-deep);
}

/* ---------- صفحات الخصوصية والشروط ---------- */
.legal-page {
  padding: clamp(44px, 6vw, 78px) 0 clamp(58px, 8vw, 96px);
  background: var(--bg);
}

.legal-wrap {
  max-width: 780px;
}

.legal-head {
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}

.legal-head h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

.legal-updated {
  margin: 0;
  font-size: 12.5px;
  color: var(--faint);
}

.legal-body h2 {
  margin: 34px 0 10px;
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.6;
  font-weight: 700;
  color: var(--text);
}

.legal-body h3 {
  margin: 24px 0 8px;
  font-size: 15.5px;
  line-height: 1.7;
  font-weight: 600;
  color: var(--text);
}

.legal-body p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
}

.legal-body ul {
  margin: 0 0 16px;
  padding-inline-start: 22px;
}

.legal-body li {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.legal-body li::marker {
  color: var(--accent);
}

.legal-body strong {
  font-weight: 600;
  color: var(--text);
}

.legal-body a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-body a:hover {
  text-decoration-thickness: 2px;
}

.legal-note {
  margin: 28px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.legal-note p {
  margin: 0;
}

.legal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.legal-foot a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent-deep);
  text-decoration: none;
}

.legal-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- التنبيه ---------- */
.toast {
  position: fixed;
  z-index: 120;
  bottom: 20px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .25s var(--ease), visibility .2s;
}

.toast svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--accent);
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------- الظهور عند التمرير ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity .55s ease var(--d, 0ms),
    transform .6s var(--ease) var(--d, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- حركة دخول الهيرو ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise .6s var(--ease) both;
    animation-delay: var(--d, 0ms);
  }

  .hero-visual {
    animation: rise .7s var(--ease) both;
    animation-delay: var(--d, 0ms);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- الاستجابة ---------- */
@media (max-width: 1080px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .site-nav {
    display: none;
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .phone-hero {
    width: min(220px, 54%);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .quote-card {
    max-width: 540px;
  }

  .section-head.split {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-head.split .section-lead {
    max-width: 540px;
  }

  .screens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-intro > p {
    max-width: 50ch;
  }
}

@media (max-width: 700px) {
  :root {
    --header-h: 66px;
  }

  .container {
    width: min(100% - 36px, var(--container));
  }

  .brand-tag {
    display: none;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 62px);
  }

  .hero-desc {
    font-size: 14.5px;
  }

  .download-box {
    max-width: none;
  }

  .hero-visual {
    gap: 14px;
  }

  .phone-hero {
    width: min(198px, 58%);
  }

  .logo-card {
    width: 72px;
    border-radius: 16px;
  }

  .float-chip {
    padding: 9px 11px;
    gap: 9px;
  }

  .chip-icon {
    width: 32px;
    height: 32px;
  }

  .chip-copy strong {
    font-size: 12px;
  }

  .chip-copy small {
    font-size: 10px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .screens {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 16px;
    margin-inline: -18px;
    padding-inline: 18px;
    scrollbar-width: thin;
  }

  .screen {
    flex: 0 0 72%;
    scroll-snap-align: center;
  }

  .screen .phone {
    max-width: 220px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-links {
    gap: 16px;
  }
}

@media (max-width: 430px) {
  .version-row {
    gap: 6px;
  }

  .version-pill,
  .meta-pill {
    font-size: 11.5px;
    padding: 5px 9px;
  }

  .btn-download {
    font-size: 15.5px;
    padding: 14px 15px;
  }

  .btn-badge {
    font-size: 10.5px;
  }

  .contact-card {
    padding: 13px;
    gap: 10px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
  }

  .contact-value {
    font-size: 13px;
  }

  .contact-arrow {
    display: none;
  }

  .toast {
    font-size: 12.5px;
  }
}

/* ---------- تقليل الحركة ---------- */
@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 [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
