/* محبوك — الصفحات النموذجية للموقع الجديد (2026-11-14)
   الرموز من موقع اليوم نفسه (frontend/site/site.module.css) ومن علامة الشركة: الذهبي فعل الوكيل،
   والرصاصي كل ما ليس فعله. كل المقاسات بـ rem على جذر يتبع حجم النافذة ضمن حدّين. */

:root {
  --night: #020101;
  --paper: rgb(18 16 14 / 0.78);
  --paper-solid: #12100e;
  --ink: #f5f0e8;
  --sand: #c4bcb0;
  --mute: #8f887c;
  --lead: #797d84;
  --lead-dim: #3a3834;
  --gold: #f2a93b;
  --glint: #ffc169;
  --line: rgb(255 214 150 / 0.13);
  --line-soft: rgb(255 255 255 / 0.07);
  --lit-edge: linear-gradient(90deg, transparent, rgb(255 222 168 / 0.6), transparent);
  --display: 'Alyamama', 'Readex Pro', serif;
  --text: 'Readex Pro', system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4.4vw, 4rem);
  --max: 76rem;
  --header: 4.25rem;
}

/* الجذر: يكبر مع النافذة عرضاً وارتفاعاً، بين 16 و24 بكسلاً */
html {
  font-size: clamp(16px, 0.5vw + 0.62vh + 5.2px, 24px);
  background: var(--night);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 860px) {
  html { font-size: clamp(15px, 2.2vw + 0.9vh, 18px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

/* (no background of its own: the desert's canvas lies behind it, over the root's black) */
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.75;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--glint); outline-offset: 3px; border-radius: 0.25rem; }

.site { position: relative; min-height: 100dvh; overflow-x: clip; }

/* اللوحات الثلاث: الصحراء خلف كل شيء، والعاصفة فوق الأجزاء، والغبار فوق الصفحة */
#backdrop, #storm-back, #storm-front, #dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
#backdrop { z-index: -1; background: var(--night); }
#storm-back { z-index: 0; }
#storm-front { z-index: 25; }
#dust { z-index: 30; }

/* ── الأزرار: شمبانيا بحروف سوداء للفعل، وهادئ لما سواه ── */
.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0 1.75rem;
  border: 0;
  border-radius: 0.75rem;
  font: 600 1rem/1 var(--text);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: translate 0.18s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.button.sm { min-height: 2.5rem; padding: 0 1rem; border-radius: 0.625rem; font-size: 0.875rem; }
.button.lg { min-height: 3.6rem; padding: 0 2.1rem; border-radius: 0.8rem; font-size: 1.06rem; }
.button.primary {
  color: #0f0e0c;
  background: linear-gradient(180deg, #ebdec6 0%, #cdb790 100%);
  box-shadow: inset 0 1px 0 rgb(255 250 238 / 0.75), inset 0 -1px 0 rgb(90 70 40 / 0.3), 0 1px 0 rgb(0 0 0 / 0.5), 0 1.1rem 2rem -1.25rem rgb(0 0 0 / 0.95);
}
.button.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgb(255 252 240 / 0.7) 46%, transparent 62%);
  translate: 110% 0;
  pointer-events: none;
}
.button.primary:hover { background: linear-gradient(180deg, #f1e6d1 0%, #d6c19b 100%); }
.button.primary:hover::after { animation: sweep 0.9s cubic-bezier(0.37, 0, 0.35, 1) both; }
.button.primary:active { translate: 0 1px; }
.button.quiet {
  color: var(--ink);
  background: rgb(22 20 17 / 0.85);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 222 168 / 0.12);
}
.button.quiet:hover { background: rgb(32 29 25 / 0.9); }
@keyframes sweep { from { translate: 110% 0; } to { translate: -110% 0; } }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.arrow-link::after { content: '←'; color: var(--gold); transition: translate 0.2s ease; }
.arrow-link.down::after { content: '↓'; }
.arrow-link:hover::after { translate: -0.25rem 0; }
.arrow-link.down:hover::after { translate: 0 0.2rem; }

/* ── الترويسة ── */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease;
}
.header[data-scrolled='true'], .menu-open .header { background: rgb(8 7 7); }
.header::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 205 140 / 0.24) 50%, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.header[data-scrolled='true']::after { opacity: 1; }
.header-in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.brand-mark { width: 1.9rem; height: 1.9rem; }
.brand-word { font: 700 1.35rem/1 var(--display); }
.brand-latin { color: var(--mute); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; translate: 0 0.12rem; }
.nav { display: flex; gap: 1.6rem; margin-inline-start: auto; }
.nav a { color: var(--sand); font-size: 0.94rem; text-decoration: none; padding-block: 0.5rem; transition: color 0.2s ease; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { box-shadow: inset 0 -1px 0 var(--gold); }
.actions { display: flex; align-items: center; gap: 1.1rem; margin-inline-start: 1rem; }
.sign-in { color: var(--sand); font-size: 0.9rem; text-decoration: none; }
.sign-in:hover { color: var(--ink); }
.menu-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  cursor: pointer;
}
.menu-button span { display: block; width: 1.25rem; height: 1.5px; margin: 0.36rem auto; background: var(--ink); transition: translate 0.25s ease, rotate 0.25s ease; }
.menu-button[aria-expanded='true'] span:first-child { translate: 0 0.21rem; rotate: 45deg; }
.menu-button[aria-expanded='true'] span:last-child { translate: 0 -0.21rem; rotate: -45deg; }

.menu {
  position: fixed;
  inset: var(--header) 0 0;
  z-index: 39;
  padding: 1rem var(--gutter) 2rem;
  background: rgb(8 7 7);
  overflow-y: auto;
}
.menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
}
.menu b { font: 700 1.5rem/1.3 var(--display); }
.menu span { color: var(--mute); font-size: 0.88rem; }

@media (max-width: 860px) {
  .nav, .sign-in { display: none; }
  .menu-button { display: block; }
  .actions { margin-inline-start: auto; gap: 0.35rem; }
  .brand-latin { display: none; }
}

/* ── خط المحطات على جانب الشاشة (الرئيسية، الشاشات الواسعة) ── */
.rail {
  position: fixed;
  inset-inline-start: 0.9rem;
  top: 50%;
  z-index: 35;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  translate: 0 -50%;
}
.rail a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 1.9rem;
  color: var(--mute);
  font-size: 0.72rem;
  text-decoration: none;
}
.rail i { width: 0.85rem; height: 1px; background: var(--lead); transition: width 0.3s ease, background 0.3s ease; }
.rail span { padding: 0.1rem 0.5rem; border-radius: 0.4rem; background: rgb(8 7 7 / 0.92); opacity: 0; transition: opacity 0.3s ease; }
.rail:hover span { opacity: 1; }
.rail a[data-on] { color: var(--ink); }
.rail a[data-on] i { width: 1.6rem; background: var(--gold); }
@media (min-width: 1180px) and (min-height: 600px) { .rail { display: flex; } }

/* ── مفتاح النموذج: يُري الصفحة بوجه كل جهاز (للعرض وحده، ليس من الموقع) ── */
.mock-switch {
  position: fixed;
  inset-inline-end: 0.75rem;
  bottom: 0.75rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem 0.5rem;
  border-radius: 2rem;
  background: rgb(10 9 8 / 0.92);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  color: var(--mute);
  font-size: 0.68rem;
}
.mock-switch a { padding: 0.3rem 0.5rem; border-radius: 1rem; color: var(--sand); text-decoration: none; }
.mock-switch a[data-on] { color: #0f0e0c; background: #cdb790; }
@media (max-width: 860px) { .mock-switch { display: none; } }

/* ── الأجزاء وبينها العاصفة (passage.module.css كما هو في الجذع) ── */
.part { --passage: 85svh; }
@media (max-width: 860px) { .part { --rest-scale: 0.5; } }
html.js .part + .part { margin-top: calc(-100svh - var(--passage)); }
.held { position: relative; }
.part + .part > .held { --hold-head: var(--passage); }
.part:has(+ .part) > .held { --hold-tail: var(--passage); }
.held::after {
  content: '';
  display: block;
  height: calc(var(--hold-head, 0svh) + var(--hold-rest, 0svh) * var(--rest-scale, 1) + var(--over, 0px) + var(--hold-tail, 0svh));
}
.pin {
  position: sticky;
  top: var(--pin-top, 0px);
  display: grid;
  align-content: center;
  min-height: 100svh;
}
.part + .part > .held section { scroll-margin-top: calc(-1 * var(--passage)); }
html.js [data-passages]:not([data-passages='ready']) .part + .part > .held > .pin { visibility: hidden; }
[data-passages='ready'] [data-part], [data-passages='ready'] [data-part] > * { pointer-events: none; }
[data-passages='ready'] [data-awake] { pointer-events: auto; }
[data-asleep], [data-asleep] * { pointer-events: none !important; }

/* عنوان يكتبه الغبار: لا يظهر حتى يُكتب، ثم يبرد من الذهبي إلى الأبيض، وما تحته يتبعه */
@media (prefers-reduced-motion: no-preference) {
  html.dust-ready [data-dust='title'] { opacity: 0; color: var(--glint); transition: opacity 0.25s ease, color 0s; }
  html.dust-ready [data-dust='title'][data-written='true'] { opacity: 1; color: var(--ink); transition: opacity 0.7s ease, color 1.8s ease 0.35s; }
  html.dust-ready [data-dust='title'] ~ * { transition: opacity 0.6s ease 0.45s; }
  html.dust-ready [data-dust='title']:not([data-written='true']) ~ * { opacity: 0; transition: opacity 0.2s ease; }
  html.dust-ready .follows-title { transition: opacity 0.6s ease 0.55s; }
  html.dust-ready :has(> .station-copy > [data-dust='title']:not([data-written='true'])) > .follows-title { opacity: 0; transition: opacity 0.2s ease; }
}

/* ── الافتتاح: الفجر ── */
.hero {
  --sun: min(30svh, 30vw, 20rem);
  position: relative;
  min-height: max(100svh, 40rem);
  padding: clamp(5.75rem, 12.5vh, 8.75rem) var(--gutter) 0;
  text-align: center;
}
.hero-copy { position: relative; z-index: 2; max-width: 62rem; margin-inline: auto; }
.kicker { display: block; margin-bottom: 1.1rem; color: var(--mute); font: 500 0.94rem/1.6 var(--text); }
.hero-line { display: block; font: 700 clamp(2.5rem, 2.1rem + 2.6vw, 4.6rem)/1.2 var(--display); }
.hero-line .word { display: inline-block; }
.gold {
  color: var(--gold);
  background:
    linear-gradient(104deg, transparent 44%, rgb(255 247 226 / 0.98) 50%, transparent 56%) -60% 0 / 220% 100% no-repeat,
    linear-gradient(180deg, #ffdc92 8%, #f4ae42 52%, #c98a2e 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead { max-width: 36em; margin: 1.2rem auto 0; color: var(--sand); font-size: 1.12rem; line-height: 1.8; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem 1.75rem; margin-top: 1.6rem; }
.hero-sun { position: absolute; left: 50%; top: calc(82.4% - var(--sun) * 0.97); width: var(--sun); aspect-ratio: 1; translate: -50% 0; touch-action: pan-y; }
.hero-dunes { position: absolute; inset-inline: 0; bottom: 0; height: 40%; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero .kicker, .hero .lead, .hero .ctas { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero .kicker { animation-delay: 0.3s; }
  .hero .lead { animation-delay: 1.2s; }
  .hero .ctas { animation-delay: 1.4s; }
  .hero-line .word { animation: word 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.5s + var(--i) * 0.14s); }
  .hero-line .gold { animation: word 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) calc(0.5s + var(--i) * 0.14s) both, glint 2.6s cubic-bezier(0.37, 0, 0.35, 1) 2.8s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.9rem); } }
@keyframes word { from { opacity: 0; filter: blur(10px); transform: translateY(0.9rem); } }
@keyframes glint { from { background-position: -60% 0, 0 0; } to { background-position: 160% 0, 0 0; } }

@media (max-width: 860px) {
  .hero { --sun: min(24svh, 56vw); min-height: max(100svh, 42rem); padding-top: 5.6rem; }
  .hero .lead { font-size: 1.04rem; }
  .hero .ctas { flex-direction: column; gap: 0.35rem; }
}

/* ── المحطة: منتج في شاشة ── */
.station {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding: calc(var(--header) + 1.5rem) var(--gutter) 2.5rem;
}
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; color: var(--mute); font-size: 0.86rem; font-weight: 500; }
.eyebrow::before { content: ''; width: 1.4rem; height: 1px; background: var(--gold); }
.station h2, .band-head h2, .closing h2 { font: 700 clamp(1.9rem, 1.5rem + 1.5vw, 2.9rem)/1.3 var(--display); }
.station .lead { margin: 1rem 0 0; max-width: 30em; font-size: 1.06rem; }
.does { display: grid; gap: 0.1rem; margin-top: 1.4rem; }
.does li { display: grid; grid-template-columns: 6.2rem 1fr; gap: 1rem; padding-block: 0.7rem; border-top: 1px solid var(--line-soft); font-size: 0.95rem; line-height: 1.65; }
.does b { color: var(--ink); font-weight: 600; }
.does span { color: var(--sand); }
.station .ctas { justify-content: flex-start; margin-top: 1.5rem; }
.soon { display: inline-block; margin-inline-start: 0.6rem; padding: 0.1rem 0.6rem; border-radius: 1rem; box-shadow: inset 0 0 0 1px var(--lead-dim); color: var(--lead); font: 500 0.72rem/1.8 var(--text); vertical-align: middle; }

@media (max-width: 960px) {
  .station { grid-template-columns: 1fr; gap: 1.5rem; padding-top: calc(var(--header) + 1rem); padding-bottom: 2rem; }
  .does li { grid-template-columns: 5.4rem 1fr; }
}

/* ── اللوحات: سطوح بسيطة للمحتوى، مضاءة من أعلاها ── */
.panel {
  position: relative;
  border-radius: 1rem;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), 0 2rem 4rem -2rem rgb(0 0 0 / 0.9);
}
.panel::before { content: ''; position: absolute; inset: 0 1.5rem auto; height: 1px; background: var(--lit-edge); }

.scene { position: relative; display: grid; gap: 1rem; }

/* مربع الطلب وبطاقة المهمة (همّام) */
.ask { padding: 1.1rem 1.4rem 1.2rem; }
.ask-top { display: flex; align-items: center; gap: 0.6rem; color: var(--mute); font-size: 0.8rem; }
.ask-top b { color: var(--gold); font-weight: 500; }
.ask-text { margin-top: 0.7rem; font: 300 1.3rem/1.6 var(--text); color: var(--ink); }
.task { padding: 1.2rem 1.4rem; }
.work { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-inline-end: 12%; }
.presence { flex: none; width: 3.1rem; aspect-ratio: 1; border-radius: 50%; }
.file { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--sand); font-size: 0.84rem; }
.file i { width: 1.5rem; aspect-ratio: 1; border-radius: 50%; }
.task-lines { display: grid; gap: 0.55rem; }
.task-lines li { display: flex; align-items: baseline; gap: 0.6rem; color: var(--sand); font-size: 0.92rem; }
.task-lines li::before { content: ''; flex: none; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--gold); translate: 0 -0.1rem; }
.task-lines li.now { color: var(--ink); }
.task-result { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line-soft); }
.task-result p { font-size: 0.98rem; }
.task-result .row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.chip { display: inline-flex; align-items: center; min-height: 2.1rem; padding: 0 0.9rem; border-radius: 0.55rem; box-shadow: inset 0 0 0 1px var(--line); color: var(--sand); font-size: 0.84rem; }
.chip.go { color: #0f0e0c; background: linear-gradient(180deg, #ebdec6, #cdb790); box-shadow: none; font-weight: 600; }
.where { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.where .chip { background: rgb(12 11 9 / 0.7); }

/* مكتب رسيق: المحادثات */
.desk { padding: 0.5rem 0; }
.desk-head { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 1.4rem 0.9rem; color: var(--mute); font-size: 0.8rem; }
.desk-head b { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.talk { display: grid; grid-template-columns: 2.4rem 1fr auto; gap: 0.2rem 0.9rem; padding: 0.95rem 1.4rem; border-top: 1px solid var(--line-soft); }
.who { grid-row: 1 / span 2; display: grid; place-items: center; width: 2.4rem; aspect-ratio: 1; border-radius: 50%; background: #23211e; color: var(--lead); font-size: 0.85rem; font-weight: 600; }
.said { color: var(--sand); font-size: 0.92rem; line-height: 1.65; }
.said b { display: block; color: var(--lead); font-size: 0.76rem; font-weight: 500; }
.reply { grid-column: 2 / -1; margin-top: 0.45rem; padding: 0.55rem 0.9rem; border-inline-start: 2px solid var(--gold); border-radius: 0.1rem 0.6rem 0.6rem 0.1rem; background: rgb(242 169 59 / 0.06); color: var(--ink); font-size: 0.92rem; line-height: 1.65; }
.state { align-self: start; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--mute); font-size: 0.74rem; white-space: nowrap; }
.state::before { content: ''; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--gold); }
.state.waits { color: var(--sand); }
.state.waits::before { background: var(--lead); }
.talk.waits .reply { border-inline-start-color: var(--lead); background: rgb(121 125 132 / 0.08); color: var(--sand); }

/* مكتب قنن: المصادر تغذّي المسودة */
.bench { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.sources { display: grid; gap: 1.6rem; }
.source { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 1.1rem; text-align: start; color: var(--sand); font-size: 0.84rem; line-height: 1.5; }
.source i { flex: none; width: 2.2rem; aspect-ratio: 1; border-radius: 50%; }
.source b { display: block; color: var(--lead); font-size: 0.72rem; font-weight: 500; }
.draft { padding: 1.3rem 1.5rem 1.4rem; }
.draft-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; color: var(--mute); font-size: 0.78rem; }
.draft-top b { color: var(--ink); font-size: 0.92rem; font-weight: 600; }
.draft p { color: var(--sand); font-size: 0.94rem; line-height: 1.95; }
.draft p + p { margin-top: 0.7rem; }
.draft mark { background: none; color: var(--ink); box-shadow: inset 0 -1px 0 rgb(242 169 59 / 0.35); }
.draft sup { color: var(--gold); font-size: 0.7em; margin-inline-start: 0.15em; }
@media (max-width: 560px) {
  .bench { grid-template-columns: 1fr; gap: 1.2rem; }
  .sources { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .source { flex-direction: column; text-align: center; gap: 0.4rem; font-size: 0.74rem; }
}

/* ── الأسعار ── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.plan { display: flex; flex-direction: column; padding: 1.5rem 1.5rem 1.6rem; }
.plan h3 { font: 700 1.35rem/1.3 var(--display); }
.plan .for { color: var(--mute); font-size: 0.82rem; }
.price { display: flex; align-items: baseline; gap: 0.5rem; margin: 1rem 0 0.2rem; font: 700 2.6rem/1.1 var(--display); }
.price small { color: var(--sand); font: 400 0.82rem/1.5 var(--text); }
.price .riyal { width: 0.62em; height: 0.7em; fill: currentColor; }
.plan .note { min-height: 1.6em; color: var(--gold); font-size: 0.82rem; }
.plan ul { display: grid; gap: 0.1rem; margin: 1rem 0 1.4rem; }
.plan li { padding-block: 0.55rem; border-top: 1px solid var(--line-soft); color: var(--sand); font-size: 0.9rem; line-height: 1.6; }
.plan .button, .plan .arrow-link { margin-top: auto; align-self: flex-start; }
.plan.lit { box-shadow: inset 0 0 0 1px rgb(255 214 150 / 0.3), 0 2rem 4rem -2rem rgb(0 0 0 / 0.9); }

.pricing { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding: calc(var(--header) + 1.5rem) var(--gutter) 2.5rem; }
.band-head { max-width: 44rem; margin-bottom: 2rem; }
.band-head.mid { margin-inline: auto; text-align: center; }
.band-head .lead { margin: 0.8rem 0 0; font-size: 1.04rem; }
.band-head.mid .lead { margin-inline: auto; }

/* ── الختام: الغروب ── */
.closing { position: relative; min-height: max(92svh, 34rem); padding: 16svh var(--gutter) 0; text-align: center; }
.closing .ctas { margin-top: 1.6rem; }
.dusk { position: absolute; inset-inline: 0; bottom: 0; height: 46%; pointer-events: none; }
.dusk-sun { position: absolute; left: 50%; top: 0; width: min(22svh, 34vw, 14rem); aspect-ratio: 1; translate: -50% 0; }
.horizon { width: min(100%, 70rem); height: 9rem; margin: 3rem auto 0; pointer-events: none; }
.closing.flat { min-height: 0; padding-block: 5rem 1rem; }

/* ── الصفحات الداخلية ── */
.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: calc(var(--max) + var(--gutter) * 2);
  min-height: min(92svh, 46rem);
  margin-inline: auto;
  padding: calc(var(--header) + 2.5rem) var(--gutter) 3rem;
}
.page-hero h1 { font: 700 clamp(2.3rem, 1.7rem + 2.4vw, 4rem)/1.22 var(--display); }
.page-hero .lead { margin: 1.1rem 0 0; }
.page-hero .ctas { justify-content: flex-start; }
.page-hero.solo { grid-template-columns: 1fr; min-height: 0; padding-bottom: 1.5rem; text-align: center; }
.page-hero.solo .lead { margin-inline: auto; }
.page-hero.solo .ctas { justify-content: center; }
.hero-mark { width: min(100%, 22rem); aspect-ratio: 1; margin-inline: auto; touch-action: pan-y; }
.facts { display: flex; flex-wrap: wrap; gap: 0.3rem 0; margin-top: 1.5rem; color: var(--mute); font-size: 0.86rem; font-weight: 500; }
.facts span + span::before { content: ''; display: inline-block; width: 3px; height: 3px; margin-inline: 0.75rem; border-radius: 50%; background: var(--gold); vertical-align: middle; translate: 0 -2px; }
.page-hero.solo .facts { justify-content: center; }

.band { max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding: clamp(3rem, 9vh, 6rem) var(--gutter); }
.band + .band { padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.split.flip > :first-child { order: 2; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.card { padding: 1.35rem 1.4rem 1.45rem; }
.card h3 { font: 700 1.2rem/1.4 var(--display); }
.card p { margin-top: 0.5rem; color: var(--sand); font-size: 0.93rem; line-height: 1.75; }
.card .tag { display: block; margin-bottom: 0.7rem; color: var(--mute); font-size: 0.76rem; font-weight: 500; }

.window { overflow: hidden; border-radius: 0.9rem; box-shadow: 0 0 0 1px var(--line), 0 2.5rem 5rem -2rem #000; }
.window img { width: 100%; height: auto; }
figcaption { margin-top: 0.7rem; color: var(--mute); font-size: 0.8rem; text-align: center; }

/* الجوال: إطار بسيط، محتواه محادثة همّام */
.phone { width: min(100%, 17.5rem); margin-inline: auto; padding: 0.55rem; border-radius: 2.3rem; background: #0b0a09; box-shadow: inset 0 0 0 1px rgb(255 214 150 / 0.2), 0 2.5rem 5rem -2rem #000; }
.phone-in { display: flex; flex-direction: column; gap: 0.7rem; min-height: 31rem; padding: 1.4rem 0.9rem 0.9rem; border-radius: 1.85rem; background: #12100e; font-size: 0.82rem; line-height: 1.7; }
.phone-top { display: flex; align-items: center; justify-content: space-between; color: var(--mute); font-size: 0.72rem; }
.phone-top b { color: var(--gold); font-weight: 500; font-size: 0.86rem; }
.me { align-self: flex-start; max-width: 86%; padding: 0.5rem 0.8rem; border-radius: 0.9rem 0.9rem 0.9rem 0.25rem; background: #23211e; color: var(--ink); }
.him { color: var(--sand); }
.him b { color: var(--ink); font-weight: 600; }
.cites { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.45rem; }
.cites span { padding: 0 0.5rem; border-radius: 0.4rem; box-shadow: inset 0 0 0 1px var(--line-soft); color: var(--mute); font-size: 0.68rem; }
.pc-card { margin-top: auto; padding: 0.7rem 0.8rem; border-radius: 0.8rem; box-shadow: inset 0 0 0 1px var(--line); }
.pc-card small { display: block; color: var(--mute); font-size: 0.68rem; }
.phone-field { display: flex; align-items: center; justify-content: space-between; min-height: 2.4rem; padding: 0 0.9rem; border-radius: 1.2rem; box-shadow: inset 0 0 0 1px var(--line-soft); color: var(--mute); }

/* المتاجر والرمز */
.stores { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 3.25rem; padding: 0.35rem 1.2rem; border-radius: 0.75rem; background: rgb(22 20 17 / 0.85); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; line-height: 1.3; }
.store small { color: var(--mute); font-size: 0.66rem; }
.store b { font-size: 0.98rem; font-weight: 600; }
.store:hover { background: rgb(32 29 25 / 0.9); }
.qr-row { display: flex; align-items: center; gap: 1.1rem; }
.qr { flex: none; width: 6.6rem; aspect-ratio: 1; }
.qr-row p { color: var(--sand); font-size: 0.9rem; max-width: 16em; }

/* الخطوات: تسلسل حقيقي، فله أرقام */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; counter-reset: step; }
.steps li { position: relative; padding: 1.2rem 1.3rem 1.3rem; counter-increment: step; }
.steps li::after { content: counter(step, arabic-indic); position: absolute; inset-inline-end: 1.2rem; top: 0.9rem; color: var(--lead); font: 700 1.5rem/1 var(--display); }
.steps h3 { padding-inline-end: 2rem; font: 700 1.1rem/1.5 var(--display); }
.steps p { margin-top: 0.4rem; color: var(--sand); font-size: 0.9rem; line-height: 1.7; }

/* وجها المسار: ما يخصّ جهاز الزائر أولاً */
html[data-face='computer'] .only-phone, html[data-face='phone'] .only-computer { display: none !important; }
html[data-device='ios'] .only-android, html[data-device='android'] .only-ios { display: none !important; }
.ways { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 1rem; align-items: stretch; }
.way { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.6rem 1.6rem 1.7rem; }
.way h2 { font: 700 1.6rem/1.35 var(--display); }
.way > p:not(.price) { color: var(--sand); font-size: 0.95rem; }
.way .needs { color: var(--mute); font-size: 0.8rem; }
.way.second h2 { font-size: 1.25rem; }
html[data-face='phone'] .way.computer { order: 2; }
html[data-face='phone'] .way.second h2 { font-size: 1.6rem; }
html[data-face='phone'] .way.computer h2 { font-size: 1.25rem; }
html[data-face='phone'] .store { color: #0f0e0c; background: linear-gradient(180deg, #ebdec6 0%, #cdb790 100%); box-shadow: inset 0 1px 0 rgb(255 250 238 / 0.75), 0 1.1rem 2rem -1.25rem rgb(0 0 0 / 0.95); }
html[data-face='phone'] .store small { color: #5a4a2c; }
html[data-face='phone'] .way.computer .button.primary { color: var(--ink); background: rgb(22 20 17 / 0.85); box-shadow: inset 0 0 0 1px var(--line); }
html[data-face='phone'] .way.computer .button.primary::after { display: none; }
.started { display: none; align-items: center; gap: 0.9rem; max-width: 40rem; margin: 0 auto 1.5rem; padding: 0.9rem 1.2rem; font-size: 0.95rem; }
.started i { flex: none; width: 2.2rem; aspect-ratio: 1; border-radius: 50%; }
html[data-started] .started { display: flex; }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }

/* الأسئلة */
.faq { max-width: 46rem; margin-inline: auto; }
.faq details { border-top: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.6rem; padding-block: 0.8rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; font-weight: 300; transition: rotate 0.25s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding-bottom: 1.1rem; color: var(--sand); font-size: 0.95rem; }

/* نموذج الاهتمام (قنن) */
.form { display: grid; gap: 0.8rem; max-width: 30rem; }
.form label { display: grid; gap: 0.35rem; color: var(--sand); font-size: 0.86rem; }
.form input, .form select { min-height: 3rem; padding: 0 1rem; border: 0; border-radius: 0.7rem; background: rgb(10 9 8 / 0.8); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 400 1rem var(--text); }
.form input:focus, .form select:focus { outline: 2px solid var(--glint); outline-offset: 1px; }
.form .button { justify-self: start; margin-top: 0.4rem; }

/* ── التذييل ── */
.footer { position: relative; z-index: 1; margin-top: 2rem; background: rgb(6 5 5 / 0.92); }
.footer::before { content: ''; position: absolute; inset: -1px 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgb(255 205 140 / 0.24) 50%, transparent); }
.footer-in { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding: 3rem var(--gutter) 2rem; }
.footer-brand p { margin-top: 0.9rem; max-width: 22em; color: var(--mute); font-size: 0.86rem; }
.footer nav { display: grid; align-content: start; gap: 0.15rem; }
.footer nav b { margin-bottom: 0.4rem; color: var(--ink); font-size: 0.86rem; font-weight: 600; }
.footer nav a { min-height: 2rem; color: var(--mute); font-size: 0.86rem; text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
.footer-base { display: flex; justify-content: space-between; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding: 1.1rem var(--gutter) 1.6rem; border-top: 1px solid var(--line-soft); color: var(--mute); font-size: 0.8rem; }
.footer-base a { text-decoration: none; }

@media (max-width: 860px) {
  .page-hero, .split { grid-template-columns: 1fr; }
  .page-hero { min-height: 0; padding-top: calc(var(--header) + 1.75rem); }
  .split.flip > :first-child { order: 0; }
  .hero-mark { width: min(62vw, 15rem); }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .closing { min-height: max(80svh, 30rem); padding-top: 12svh; }
}

/* للفحص وحده (settleDust): الحالة المستقرة بلا انتقال، حين لا تُرسم الصفحة إطاراً إطاراً */
html.still *, html.still *::before, html.still *::after { transition: none !important; animation-duration: 0s !important; animation-delay: 0s !important; }

/* ── قطع مشتركة بين التصاميم الخمسة ── */
.ctas.start { justify-content: flex-start; }
.plain { display: grid; }
.plain li { padding-block: 0.6rem; border-top: 1px solid var(--line-soft); color: var(--sand); font-size: 0.98rem; line-height: 1.6; }
.reply-acts { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.fact { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 0.8rem 1.4rem; border-top: 1px solid var(--line-soft); font-size: 0.9rem; line-height: 1.65; }
.fact b { color: var(--ink); font-weight: 600; }
.fact span { color: var(--sand); }
.fact.new b, .fact.new span { color: var(--lead); }
.steps.one { grid-template-columns: 1fr; }
.qr.big { width: 9rem; }
.way.mid { align-items: center; justify-content: center; text-align: center; }
.ending { max-width: 44rem; margin-inline: auto; text-align: center; }
.ending h2 { font: 700 clamp(1.9rem, 1.5rem + 1.5vw, 2.9rem)/1.3 var(--display); }
.ending .lead { margin-inline: auto; }
.ending .form { margin: 1.5rem auto 0; text-align: start; }
html.framed .mock-switch { display: none; }
@media (max-width: 560px) { .fact { grid-template-columns: 6.5rem 1fr; padding-inline: 1rem; } }

/* حيث لا يقف الغبار على المشهد، تبقى دوائره مرسومة: رصاصية للمصادر وحضور الوكيل، وذهبية لإشعار التنزيل */
.source i, .presence, .file i { box-shadow: inset 0 0 0 1px var(--lead-dim); background: rgb(121 125 132 / 0.08); }
.started i { box-shadow: inset 0 0 0 2px var(--gold); }
