/* موقع ظلع — هوية الأسود والذهبي (Night · Racing Gold · Sand) */
:root {
  --night: #0A0907;
  --coal: #15130F;
  --coal-2: #1D1A15;
  --coal-3: #262219;
  --line: #2E2920;
  --line-2: #3B3428;
  --gold: #C8A15A;
  --gold-hi: #E4C88A;
  --gold-lo: #8C6D35;
  --sand: #EEE7DA;
  --dust: #A1978A;
  --dust-2: #6F675C;
  --ember: #FF6A3D;
  --ok: #E4C88A;
  --bad: #FF8A6E;
  --radius: 18px;
  --display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0; background: var(--night); color: var(--sand);
  font: 17px/1.75 var(--body);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.3; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(32px, 5.4vw, 58px); font-weight: 400; letter-spacing: -.01em; }
h1 em { font-style: normal; color: var(--gold-hi); }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 500; text-align: center; margin-bottom: 1em; }
h3 { font-size: 19px; font-weight: 500; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--dust); }
.small { font-size: 14px; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--dust); }
.eyebrow { font: 500 13px var(--display); letter-spacing: .06em; color: var(--gold); margin-bottom: 14px; }
.link { color: var(--gold-hi); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.error { color: var(--bad); }
.ok { color: var(--ok); }
section { padding: clamp(48px, 8vw, 88px) 0; }
section.alt { background: var(--coal); border-block: 1px solid var(--line); }
.card { background: var(--coal); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.notice { background: var(--coal-2); border: 1px solid var(--line-2); border-inline-start: 3px solid var(--gold-lo); border-radius: 14px; padding: 14px 18px; }
.notice.error { border-inline-start-color: var(--bad); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

/* الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--line-2);
  background: transparent; color: var(--sand); font: 500 16px var(--display); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--gold-lo); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn.primary { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); border-color: transparent; color: #17110A; font-weight: 600; }

/* الرأس */
.top { position: sticky; top: 0; z-index: 20; background: rgb(10 9 7 / 86%); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 20px var(--display); }
.logo img { border-radius: 9px; width: 36px; height: 36px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 15px; color: var(--dust); }
.nav a:hover { color: var(--sand); background: var(--coal-2); }
.nav a[aria-current] { color: var(--gold-hi); }
.nav .lang { border: 1px solid var(--line-2); margin-inline-start: 6px; color: var(--sand); }
.menu { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 44px; height: 40px; font-size: 20px; color: var(--sand); cursor: pointer; }
@media (max-width: 900px) {
  .menu { display: block; }
  .nav { position: absolute; inset-inline: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--night); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav-open .nav { display: flex; }
  .nav a { padding: 12px; font-size: 17px; }
  .nav .lang { margin: 8px 0 0; text-align: center; }
}

/* الواجهة: العنوان على الأسود، والصورة بعرض الصفحة كاملة دون قص الجانبين */
.hero { padding: clamp(40px, 6vw, 72px) 0 0; }
.hero-copy { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 48px; row-gap: 18px; align-items: end; padding-bottom: 28px; }
.hero-copy h1 { margin: 0; }
.hero-side .lead { margin-bottom: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
@media (max-width: 860px) { .hero-copy { grid-template-columns: 1fr; } }
.hero-img { position: relative; margin: 0; line-height: 0; }
.hero-img img { width: 100%; height: auto; aspect-ratio: 1904 / 826; object-fit: cover; }
.hero-img::before, .hero-img::after { content: ""; position: absolute; inset-inline: 0; pointer-events: none; }
.hero-img::before { top: 0; height: 22%; background: linear-gradient(180deg, var(--night), rgb(10 9 7 / 0%)); }
.hero-img::after { bottom: 0; height: 14%; background: linear-gradient(0deg, var(--night), rgb(10 9 7 / 0%)); }

.message { padding: clamp(36px, 6vw, 64px) 0; }
.message p { font: 300 clamp(24px, 3.6vw, 38px)/1.4 var(--display); color: var(--gold-hi); margin: 0; }
.band { padding: 28px 0; border-block: 1px solid var(--line); }
.band p { font: 400 clamp(19px, 2.6vw, 24px) var(--display); color: var(--gold-hi); margin: 0; }

.video-sec video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 16 / 9; }

/* الخطوات والمزايا */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.steps li { padding: 26px; border-inline-end: 1px solid var(--line); background: var(--coal); }
.steps li:last-child { border-inline-end: 0; }
.steps .num { display: block; font: 500 12px var(--mono); color: var(--gold); letter-spacing: .06em; margin-bottom: 10px; direction: ltr; text-align: start; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature { background: var(--night); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.feature .ico { font-size: 22px; display: block; margin-bottom: 10px; color: var(--gold); }
.feature p, .steps p { color: var(--dust); margin: 0; font-size: 15.5px; }

/* العدادات */
.counters { background: var(--coal); border-block: 1px solid var(--line); }
.counter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; }
.counter-grid b { display: block; font: 500 clamp(36px, 6vw, 56px)/1.1 var(--mono); color: var(--gold-hi); }
.counter-grid span { color: var(--dust); }

/* الآراء */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.quote { margin: 0; background: var(--coal); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.quote blockquote { margin: 8px 0 12px; }
.quote figcaption { color: var(--dust); font-size: 13px; }
.stars { color: var(--gold); letter-spacing: 2px; }
.stars .off { color: var(--line-2); }

/* الأسعار */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.price { background: var(--night); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.price.feat { border-color: var(--gold); box-shadow: inset 0 0 0 1px rgb(200 161 90 / 25%); }
.price.selected { border-color: var(--gold-hi); box-shadow: 0 0 0 3px rgb(200 161 90 / 20%); }
.price .amount { font: 500 32px var(--mono); color: var(--gold-hi); }
.price .amount .cur { font: 500 12px var(--mono); color: var(--dust); letter-spacing: .08em; }
.price .btn { margin-top: auto; }
.buy-form { max-width: 520px; margin: 22px auto 0; display: grid; gap: 12px; }
.plain { list-style: none; padding: 0; margin: 0 0 12px; }
.plain li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.plain b { font: 500 16px var(--mono); color: var(--gold-hi); }
.info { margin-top: 32px; }

/* الأسئلة */
.faq details { background: var(--coal); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--dust); }

/* النماذج */
label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
input, textarea { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--night); color: var(--sand); width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.contact { display: grid; gap: 14px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* القصص والمدونة */
.stories { display: grid; gap: 20px; }
.story { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.story img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 700px) { .story { grid-template-columns: 1fr; } }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.post-card { text-decoration: none; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card > div { padding: 18px 20px; }
.post-card p { color: var(--dust); font-size: 15px; }
.post { padding: 40px 0 80px; }
.post .cover { border-radius: var(--radius); margin-bottom: 16px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prose h2 { text-align: start; font-size: 24px; margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul { padding-inline-start: 1.3em; }
.prose a { color: var(--gold-hi); }

.page-head { padding: clamp(40px, 6vw, 72px) 0 8px; text-align: center; }
.page-head + section { padding-top: 32px; }

.code-box { background: var(--coal); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 24px; margin: 20px 0; }
.code-box code { display: block; font: 600 clamp(24px, 6vw, 36px) var(--mono); color: var(--gold-hi); letter-spacing: 2px; margin: 8px 0 14px; }

.cta-band { background: linear-gradient(160deg, #221B11, #120F0B); border-top: 1px solid var(--gold-lo); text-align: center; }
.cta-band h2 { color: var(--gold-hi); font-weight: 300; }

/* التذييل */
.foot { border-top: 1px solid var(--line); padding: 40px 0 24px; background: var(--night); }
.grid-foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.grid-foot nav { display: grid; gap: 8px; align-content: start; }
.grid-foot nav a { text-decoration: none; color: var(--dust); }
.grid-foot nav a:hover { color: var(--sand); }
@media (max-width: 700px) { .grid-foot { grid-template-columns: 1fr 1fr; } .grid-foot > div { grid-column: 1 / -1; } }
.disclaimer { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 8px; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--coal-2); color: var(--sand); }
.social a:hover { background: var(--gold); color: #17110A; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social.big a { width: 48px; height: 48px; }

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

/* مقدمة كشف عرج الهجن (محتوى نصي لمحركات البحث) */
.seo-intro h2 { text-align: start; }
.seo-intro p { color: var(--dust); line-height: 1.9; }
.guide h2 { margin-top: 1.6em; }
.method li { padding: 6px 0; color: var(--sand); }
.nav a[hidden] { display: none; }

/* وضع «داخل التطبيق»: الصفحة تُعرض للقراءة فقط، بلا قوائم ولا شراء ولا روابط للأسعار */
.in-app .top .nav, .in-app .top .menu, .in-app .foot nav, .in-app .foot .social,
.in-app [data-appstore], .in-app [data-buy], .in-app [data-buy-form], .in-app .cta, .in-app .cta-band,
.in-app a[href*="pricing"] { display: none !important; }
.in-app .logo { pointer-events: none; }

/* ═════════ هوية 2026: ليل الصحراء، ذهب السباق، وإيقاع الخطوات ═════════
   العنصر المميّز واحد: شريط إيقاع الخطوات في الواجهة (ما يحلّله ظلع فعلاً).
   الباقي هادئ: خط كوفي للعناوين، مسافات واسعة، بلا بطاقات متكررة. */
:root {
  --night: #120F0B;
  --coal: #1A1610;
  --coal-2: #221D15;
  --coal-3: #2B251B;
  --line: #2F281D;
  --line-2: #42392A;
  --gold: #C9963B;
  --gold-hi: #E7C27A;
  --gold-lo: #8E6A2C;
  --sand: #EFE5D2;
  --dust: #AC9F88;
  --ember: #E8643A;
  --act: #2F8F5B;      /* الأخضر: زر الإجراء الأساسي فقط */
  --act-hi: #39A86C;
  --display: "Noto Kufi Arabic", "Readex Pro", system-ui, sans-serif;
  --radius: 14px;
}
html[lang="en"], html[lang="tr"] { --display: "Readex Pro", "Noto Kufi Arabic", system-ui, sans-serif; }
body { font-size: 17.5px; }
h1 { font-weight: 800; letter-spacing: 0; line-height: 1.25; font-size: clamp(36px, 6vw, 68px); }
h1 em { color: var(--gold-hi); font-weight: 500; }
h2 { font-weight: 700; text-align: start; font-size: clamp(25px, 3.2vw, 36px); }
h3 { font-weight: 700; font-size: 19px; }
.center h2, h2.center { text-align: center; }

/* زر التحميل: الإجراء الأساسي الوحيد، بالأخضر */
.btn.primary { background: var(--act); color: #fff; border-color: transparent; font-weight: 700; }
.btn.primary:hover { background: var(--act-hi); border-color: transparent; }
.eyebrow { font: 600 14px var(--display); letter-spacing: 0; color: var(--gold); }

/* الواجهة */
.hero { padding-top: clamp(44px, 7vw, 96px); }
.hero-copy { align-items: start; padding-bottom: 8px; }
.hero-copy h1 { max-width: 12ch; }

.hero-img { margin-top: 36px; }

/* الرسالة والشريط: سطر واحد هادئ بدل الإطارات */
.message p { font: 500 clamp(22px, 3.2vw, 34px)/1.5 var(--display); color: var(--sand); }
.band { border: 0; background: var(--coal); }
.band p { font-weight: 500; color: var(--sand); }

/* الخطوات: تسلسل حقيقي، بأرقام كبيرة بلا صناديق */
.steps { border: 0; border-radius: 0; gap: clamp(20px, 4vw, 48px); overflow: visible; counter-reset: step; }
.steps li { background: none; border: 0; padding: 0; border-top: 2px solid var(--gold-lo); padding-top: 18px; }
.steps .num { display: none; }
.steps li::before { counter-increment: step; content: counter(step, arabic-indic); display: block; font: 800 44px/1 var(--display); color: var(--gold); margin-bottom: 12px; }
html[lang="en"] .steps li::before, html[lang="tr"] .steps li::before { content: counter(step); }

/* المزايا: قائمة من عمودين بدل شبكة بطاقات */
section.alt { background: var(--coal); }
.features { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 clamp(24px, 5vw, 64px); }
.feature { background: none; border: 0; border-radius: 0; padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.feature .ico { grid-row: span 2; font-size: 22px; margin: 2px 0 0; color: var(--gold); }
.feature h3 { margin-bottom: 4px; }

/* الأسئلة */
.faq details { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; margin: 0; }
.faq summary { padding: 18px 0; }

.cta-band { background: var(--coal); border-top: 0; }
.cta-band h2 { color: var(--sand); font-weight: 700; text-align: center; }
.seo-intro h2 { text-align: start; }

/* مبدّل اللغات الثلاث */
.nav .langs { display: inline-flex; gap: 6px; margin-inline-start: 6px; }
.nav .langs .lang { margin: 0; }
@media (max-width: 900px) {
  .nav .langs { display: flex; gap: 8px; margin: 8px 0 0; }
  .nav .langs .lang { flex: 1; margin: 0; }
}
