/* rattilha.com — تصميم «سماء الوقت» (1.2.2)
   البطل سماء بتتلوّن مع وقت الصلاة (نفس قيم resources/css/sky.css في التطبيق)، والجسم ورق دافئ طالع فوقها.
   الهوية: كريمي #F7F1E3، ورقي #FDFAF2، أخضر #0F766E / #0B5A54، ذهبي #B8892F — خط Noto Kufi Arabic والآيات Amiri Quran.
   الصفحات بتتولّد من اللوحة (admin/resources/views/site-pages/*.blade.php) — الملف ده بيترفع بـ tools/site/deploy.py.
   اتجاه الصفحة: خصائص منطقية بس (inline-start/end) عشان العربي والإنجليزي يشتغلوا بنفس القواعد.
   الأداء: CSS + SVG صغير بس — مفيش صور خلفية ولا backdrop-filter ولا حركة متكررة. */
:root {
    --paper: #FDFAF2; --stone: #F7F1E3; --sand: #EFE6D1; --line: #E8DFC9;
    --ink: #1D2A28; --ink-2: #4A5754; --muted: #5F6B68; --head: #083F3B;
    --brand: #0F766E; --brand-d: #0B5A54; --brand-dd: #083F3B;
    --gold: #B8892F; --gold-d: #8A6420; --gold-text: #86621F; --gold-l: #F3E3B5; --goldsoft: #F6EBCF; --mint: #E6F1EE;
    --night: #0E2A3C; --night-2: #173E52; --deep: #08202E;
    --shadow: 0 1px 2px rgba(29, 42, 40, .05), 0 8px 24px -12px rgba(29, 42, 40, .18);
    --r: 22px; --hdr: 76px; --wrap: 74rem;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --paper: #132927; --stone: #0D1F1D; --sand: #18302D; --line: rgba(237, 230, 212, .12);
        --ink: #EDE6D4; --ink-2: #C9D1CC; --muted: #9AA9A4; --head: #F3EBD7;
        --brand: #3FB0A3; --brand-d: #2E9C90; --gold-text: #E2C27A; --gold-d: #E9CF8F;
        --mint: rgba(94, 184, 172, .14); --goldsoft: rgba(233, 207, 143, .14);
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -18px rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}

:root {
    --g-night: radial-gradient(120% 80% at 85% 0%, #2d5e78 0%, rgba(45, 94, 120, 0) 60%), linear-gradient(180deg, #0e2a3c 0%, #173e52 55%, #2c5b60 100%);
    --g-fajr: linear-gradient(180deg, #1f3b5c 0%, #4f6593 42%, #c99192 76%, #f0c49c 100%);
    --g-day: radial-gradient(90% 60% at 18% 8%, rgba(255, 246, 216, .55) 0%, rgba(255, 246, 216, 0) 60%), linear-gradient(180deg, #2f86b6 0%, #67b2d6 55%, #b9e0ec 100%);
    --g-asr: radial-gradient(90% 60% at 15% 45%, rgba(255, 228, 160, .6) 0%, rgba(255, 228, 160, 0) 60%), linear-gradient(180deg, #3a7ba0 0%, #93bfc6 50%, #eed6a2 100%);
    --g-maghrib: radial-gradient(70% 50% at 20% 85%, rgba(255, 199, 120, .75) 0%, rgba(255, 199, 120, 0) 70%), linear-gradient(180deg, #3b2a55 0%, #94506c 48%, #e48a5a 82%, #f4bb68 100%);
}
/* سماء الوقت — نفس قيم التطبيق. day/asr نص غامق، الباقي أبيض */
[data-sky="night"] { --sky-bg: var(--g-night); --sky-ink: #fff; --sky-soft: rgba(255, 255, 255, .84); --sky-hz: #0a2230; --sky-glass: rgba(255, 255, 255, .1); --sky-line: rgba(255, 255, 255, .22); --sky-stars: 1; --sky-on: #0e2a3c; }
[data-sky="fajr"] { --sky-bg: var(--g-fajr); --sky-ink: #fff; --sky-soft: rgba(255, 255, 255, .9); --sky-hz: #1c2c44; --sky-glass: rgba(255, 255, 255, .12); --sky-line: rgba(255, 255, 255, .26); --sky-stars: .55; --sky-on: #1f3b5c; }
[data-sky="day"] { --sky-bg: var(--g-day); --sky-ink: #0b2a3a; --sky-soft: rgba(11, 42, 58, .84); --sky-hz: #e8dcc2; --sky-glass: rgba(255, 255, 255, .42); --sky-line: rgba(255, 255, 255, .65); --sky-stars: 0; --sky-on: #fff; }
[data-sky="asr"] { --sky-bg: var(--g-asr); --sky-ink: #10293a; --sky-soft: rgba(16, 41, 58, .84); --sky-hz: #c8b185; --sky-glass: rgba(255, 255, 255, .38); --sky-line: rgba(255, 255, 255, .6); --sky-stars: 0; --sky-on: #fff; }
[data-sky="maghrib"] { --sky-bg: var(--g-maghrib); --sky-ink: #fff; --sky-soft: rgba(255, 255, 255, .92); --sky-hz: #34203c; --sky-glass: rgba(255, 255, 255, .14); --sky-line: rgba(255, 255, 255, .3); --sky-stars: .25; --sky-on: #3b2a55; }
/* الأزرار الممتلئة على سماء فاتحة (الضحى/العصر) بتبقى خضرا */
[data-sky="day"], [data-sky="asr"] { --sky-fill: #0B5A54; --sky-fill-ink: #fff; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
    margin: 0; background: var(--stone); color: var(--ink); line-height: 1.85; font-size: 1.0625rem;
    /* نفس خط التطبيق (resources/css/app.css ← --font-arabic) */
    font-family: "Noto Kufi Arabic", "Segoe UI", system-ui, sans-serif;
    text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.7; }
a { color: var(--brand-d); text-underline-offset: .2em; }
img { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 2rem; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 50; background: var(--brand-d); color: #fff; padding: .5rem 1rem; border-radius: 10px; }
.skip:focus { top: .75rem; }
svg { flex: none; }

/* ── الشريط العلوي: شفاف فوق السماء، ورقي بعد النزول (download.js بيضيف solid) ── */
.top { position: sticky; top: 0; z-index: 20; color: var(--sky-ink); transition: background .2s, box-shadow .2s, color .2s; }
html:not(.js) body > .top { position: absolute; inset-inline: 0; }
.top.solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.bar { display: flex; align-items: center; gap: 1.75rem; height: var(--hdr); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; font-size: 1.35rem; color: inherit; text-decoration: none; line-height: 1; }
.brand img { border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.nav { display: flex; gap: .25rem; margin-inline-start: .5rem; font-size: .95rem; font-weight: 500; }
.nav a, .lang { color: inherit; text-decoration: none; padding: .4rem .8rem; border-radius: 999px; transition: background .15s; }
.nav a:hover { background: var(--sky-glass); }
.top.solid .nav a:hover { background: var(--mint); color: var(--brand-d); }
.bar-end { display: flex; align-items: center; gap: .6rem; margin-inline-start: auto; font-size: .9rem; }
.lang { border: 1px solid var(--sky-line); font-weight: 500; }
.top.solid .lang { border-color: var(--line); }
.pill { background: var(--sky-fill, var(--sky-ink)); color: var(--sky-fill-ink, var(--sky-on)); text-decoration: none; padding: .55rem 1.25rem; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.top.solid .pill { background: var(--brand-d); color: #fff; }

/* ── البطل: سماء ── */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--sky-ink); background: var(--sky-bg); margin-top: calc(-1 * var(--hdr)); padding-top: var(--hdr); }
.stars { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: var(--sky-stars); pointer-events: none; }
.orb { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; width: 190px; height: 190px; inset-inline-end: 6%; bottom: 150px; background: radial-gradient(circle, #ffe0a3 0%, rgba(255, 200, 120, .55) 35%, rgba(255, 200, 120, 0) 70%); }
[data-sky="night"] .orb { width: 70px; height: 70px; top: 130px; bottom: auto; left: 46%; background: none; box-shadow: inset -16px 4px 0 0 #f3e3b5; transform: rotate(-20deg); }
[data-sky="day"] .orb { top: 130px; bottom: auto; background: radial-gradient(circle, #fff7dc 0%, rgba(255, 240, 200, .5) 40%, rgba(255, 240, 200, 0) 70%); }
[data-sky="fajr"] .orb { bottom: 110px; opacity: .8; }
.horizon { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 150px; z-index: -1; fill: var(--sky-hz); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 3rem; min-height: 700px; padding-block: 1.5rem 9.5rem; }
.eyebrow { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; font-size: .9rem; font-weight: 500; padding: .3rem 1rem; border-radius: 999px; background: var(--sky-glass); border: 1px solid var(--sky-line); }
.eyebrow b { font-weight: 700; }
.hero h1 { font-family: "Amiri Quran", "Noto Kufi Arabic", serif; font-weight: 400; font-size: clamp(2.9rem, 1.6rem + 3.6vw, 4.5rem); line-height: 1.75; margin: 1.1rem 0 1.9rem; letter-spacing: 0; }
html[lang="en"] .hero h1 { line-height: 1.3; font-size: clamp(2.2rem, 1.2rem + 3.3vw, 4rem); margin-block: 1.4rem 1.6rem; }
.lead { font-size: 1.15rem; line-height: 1.95; color: var(--sky-soft); max-width: 34em; margin: 0 0 2.1rem; }
html[lang="en"] .lead { line-height: 1.75; }
.lead strong { color: var(--sky-ink); }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 56px; padding: .8rem 1.5rem; border-radius: 14px; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.3; text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.btn svg { width: 21px; height: 21px; }
.btn-primary { background: var(--brand-d); color: #fff; box-shadow: 0 10px 24px -12px rgba(11, 90, 84, .7); }
.btn-primary:hover { background: var(--brand); transform: translateY(-1px); }
.btn-line { color: var(--brand-d); border: 1.5px solid color-mix(in srgb, var(--brand) 35%, transparent); background: var(--paper); }
.btn-line:hover { border-color: var(--brand); }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; box-shadow: none; }
/* داخل السماء: الأساسي بلون حبر السماء، والثانوي زجاجي */
.hero .btn-primary { background: var(--sky-fill, var(--sky-ink)); color: var(--sky-fill-ink, var(--sky-on)); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .55); }
.hero .btn-line { background: var(--sky-glass); border: 1px solid var(--sky-line); color: var(--sky-ink); }
.soon { display: inline-flex; align-items: center; gap: .6rem; min-height: 56px; padding: .45rem 1.1rem; border-radius: 14px; border: 1px dashed var(--sky-line); color: var(--sky-soft); line-height: 1.3; font-weight: 700; }
.soon svg { width: 22px; height: 22px; }
.soon small { display: block; font-size: .75rem; font-weight: 500; }
.play-badge { display: inline-block; border-radius: 12px; line-height: 0; transition: transform .15s, opacity .15s; }
.play-badge img { height: 58px; width: auto; display: block; }
.play-badge:hover { transform: translateY(-1px); opacity: .92; }
.hero .play-badge { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.trust { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 1.4rem 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--sky-soft); }
.trust li { display: inline-flex; align-items: center; gap: .45rem; }
.trust li::before { content: ""; width: 6px; height: 6px; background: currentColor; opacity: .75; transform: rotate(45deg); }
.phases { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 2rem; font-size: .82rem; font-weight: 500; }
.phases[hidden] { display: none; }
.phases span { color: var(--sky-soft); margin-inline-end: .2rem; }
.phases button { font: inherit; color: var(--sky-ink); background: transparent; border: 1px solid var(--sky-line); border-radius: 999px; padding: .3rem .9rem; min-height: 36px; cursor: pointer; }
.phases button[aria-pressed="true"] { background: var(--sky-fill, var(--sky-ink)); color: var(--sky-fill-ink, var(--sky-on)); border-color: transparent; }
.hero-art { display: flex; justify-content: center; }
.phone { position: relative; width: 300px; border-radius: 46px; padding: 10px; background: #141b1a; box-shadow: 0 40px 80px -30px rgba(10, 15, 30, .65), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.phone img { display: block; width: 100%; height: auto; border-radius: 36px; }

/* ── الورقة التي تصعد فوق السماء ── */
.sheet { position: relative; z-index: 2; margin-top: -56px; background: var(--stone); border-radius: 40px 40px 0 0; }

/* الآية — أصل الاسم: بخط المصحف كبير وذهبي، داخل قوس رفيع */
.verse-band { position: relative; overflow: hidden; text-align: center; padding: 4rem 0 1rem; }
.verse-band::before, .verse-band::after { content: ""; position: absolute; left: 50%; top: 2rem; width: min(760px, 92vw); height: 600px; transform: translateX(-50%); border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent); border-bottom: 0; border-radius: 380px 380px 0 0; pointer-events: none; }
.verse-band::after { top: 3.5rem; width: min(660px, 80vw); border-color: color-mix(in srgb, var(--gold) 16%, transparent); }
.verse { position: relative; margin: 0; display: grid; justify-items: center; gap: .1rem; }
.verse .q { font-family: "Amiri Quran", "Traditional Arabic", serif; font-size: clamp(2.6rem, 1.2rem + 4.6vw, 6.2rem); line-height: 1.9; color: var(--gold-text); white-space: nowrap; }
.verse .ref { font-size: .9rem; color: var(--muted); margin-top: .2rem; }
.waves { display: block; margin: .9rem auto 0; width: 120px; height: 34px; position: relative; }

/* ── الأقسام ── */
section.block { padding-block: 5.5rem; }
.head { max-width: 44rem; margin-bottom: 2.75rem; }
.kicker { margin: 0 0 .35rem; font-size: .9rem; font-weight: 700; color: var(--gold-text); }
.head h2 { margin: 0; color: var(--head); font-size: clamp(1.8rem, 1.2rem + 1.9vw, 2.6rem); line-height: 1.45; font-weight: 700; }
html[lang="en"] .head h2 { line-height: 1.2; letter-spacing: -.015em; }
.head > p:not(.kicker) { margin: .5rem 0 0; color: var(--muted); font-size: 1.05rem; }
.head .play-badge { margin-top: 1.5rem; }
#features { padding-top: 3.5rem; }

/* الفصول المرقّمة: نص + هواتف حقيقية متراكبة على مسرح بلون سماء */
.chapters { display: grid; gap: 1rem; }
.ch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4.5rem; align-items: center; padding-block: 1.5rem 3.5rem; }
.ch:nth-child(even) .ch-txt { order: 2; }
.num { display: block; font-family: "Amiri Quran", serif; font-size: 5rem; line-height: 1.1; margin-bottom: 1.1rem; color: var(--gold); }
html[lang="en"] .num { font-family: "Amiri Quran", Georgia, serif; }
.ch h3 { margin: 0 0 .75rem; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.5; color: var(--head); }
html[lang="en"] .ch h3 { line-height: 1.25; letter-spacing: -.01em; }
.ch-txt > p { margin: 0 0 1.4rem; color: var(--ink-2); font-size: 1.08rem; max-width: 32em; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.points li { display: flex; gap: .75rem; align-items: flex-start; font-size: 1rem; line-height: 1.75; color: var(--ink-2); }
.points li svg { width: 22px; height: 22px; color: var(--brand); margin-top: .2rem; }
.points strong { color: var(--ink); }
.stage { position: relative; height: 560px; border-radius: 36px; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #0E2A3C 0%, #173E52 100%); }
.ch-2 .stage { background: radial-gradient(70% 60% at 50% 100%, rgba(255, 199, 120, .55), rgba(255, 199, 120, 0) 70%), linear-gradient(180deg, #3b2a55 0%, #94506c 60%, #e48a5a 100%); }
.ch-3 .stage { background: linear-gradient(160deg, #0F766E 0%, #0B5A54 55%, #083F3B 100%); }
.stage::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -300px; width: 640px; height: 640px; transform: translateX(-50%); border-radius: 50%; border: 1px solid rgba(243, 227, 181, .2); }
.ph { position: absolute; border-radius: 34px; padding: 8px; background: #05141d; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06); }
.ph img { display: block; width: 100%; height: auto; border-radius: 27px; }
.ph-1 { width: 232px; left: 50%; top: 52px; transform: translateX(-50%); z-index: 3; }
.ph-2, .ph-3 { width: 196px; top: 112px; }
.ph-2 { left: calc(50% - 248px); transform: rotate(-6deg); z-index: 2; }
.ph-3 { left: calc(50% + 52px); transform: rotate(6deg); z-index: 1; }

/* بقية المميزات: بطاقات ورقية كما في التطبيق */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.feature { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.6rem; }
.feature .ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--mint); color: var(--brand-d); }
.feature:nth-child(3n+2) .ic { background: var(--goldsoft); color: var(--gold-d); }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { margin: .9rem 0 .3rem; font-size: 1.12rem; line-height: 1.5; color: var(--ink); }
.feature p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.85; }

/* الصور: لوح ليلي مستدير، شريط أفقي بهواتف حقيقية */
.screens { position: relative; margin-inline: 1rem; border-radius: 40px; padding: 4.5rem 0 3.5rem; background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #fff; }
.screens .head h2 { color: #fff; }
.screens .head > p:not(.kicker) { color: rgba(255, 255, 255, .8); }
.screens .kicker { color: var(--gold-l); }
.shots { display: flex; gap: 1.5rem; max-width: var(--wrap); margin-inline: auto; padding: .25rem 2rem 1.25rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2rem; scrollbar-width: thin; scrollbar-color: rgba(243, 227, 181, .4) transparent; }
.shots figure { flex: none; width: 220px; margin: 0; scroll-snap-align: start; text-align: center; }
.shots figure.wide { width: 746px; }
.shots .frame { border-radius: 34px; padding: 7px; background: #0a1418; box-shadow: 0 0 0 1px rgba(243, 227, 181, .16), 0 24px 40px -24px rgba(0, 0, 0, .8); }
.shots .frame img { display: block; width: 100%; height: auto; border-radius: 28px; }
.shots .wide .frame img { border-radius: 22px; }
.shots figcaption { margin-top: .85rem; font-size: .92rem; font-weight: 500; color: rgba(255, 255, 255, .88); }
/* نقط المعرض (download.js بيظهرها لما الصور أعرض من الشاشة) */
.shot-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: .1rem; margin-top: .5rem; padding-inline: 1.25rem; }
.shot-dots[hidden] { display: none; }
.shot-dots button { position: relative; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.shot-dots button::before { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-radius: 999px; background: rgba(243, 227, 181, .35); transition: width .2s, background .2s; }
.shot-dots button[aria-current="true"]::before { width: 22px; background: var(--gold-l); }

/* الأسئلة (1.3.0): عنوان ومساعدة ثابتان على جنب، والأسئلة مجموعات بعناوين — كل مجموعة بطاقة أكورديون (<details> بلا JS) */
#faq { padding-top: 1rem; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 3.5rem; align-items: start; }
.faq-side { position: sticky; top: calc(var(--hdr) + 1.25rem); }
.faq-side .head { margin-bottom: 1.4rem; }
.help { background: var(--mint); border-radius: var(--r); padding: 1.5rem 1.6rem; font-size: .95rem; color: var(--ink-2); }
.help b { display: block; font-size: 1.05rem; color: var(--head); margin-bottom: .2rem; }
.faq-groups { display: grid; gap: 1.75rem; }
.faq-g { display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; font-size: .95rem; font-weight: 700; color: var(--gold-text); }
.faq-g::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--gold); }
.faq { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.faq details { border-top: 1px solid var(--line); transition: background-color .2s; }
.faq details:first-child { border-top: 0; }
.faq details[open] { background: color-mix(in srgb, var(--mint) 55%, var(--paper)); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.5rem; min-height: 64px; font-weight: 700; color: var(--ink); line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
/* زر + يصير − عند الفتح: دائرة بخطّين (لا يتأثر بالاتجاه) */
.faq summary::after { content: ""; flex: none; margin-inline-start: auto; width: 30px; height: 30px; border-radius: 50%; background:
    linear-gradient(var(--brand-d), var(--brand-d)) center / 12px 2px no-repeat,
    linear-gradient(var(--brand-d), var(--brand-d)) center / 2px 12px no-repeat,
    var(--mint); transition: transform .2s, background-size .2s; }
.faq details[open] summary::after { background-size: 12px 2px, 2px 0, auto; transform: rotate(180deg); }
.faq summary:hover { color: var(--brand-d); }
.faq summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -4px; border-radius: 14px; }
.faq-a { padding: 0 1.5rem 1.35rem; }
.faq-a p { margin: -.25rem 0 0; max-width: 62ch; color: var(--ink-2); line-height: 1.95; }
html[lang="en"] .faq-a p { line-height: 1.75; }
.faq details p { margin: -.2rem 0 0; padding: 0 1.6rem 1.35rem; color: var(--ink-2); } /* محتوى قديم بلا .faq-a */
.faq .faq-a p { padding: 0; }

/* الدعوة الأخيرة: ليل الترتيل — العنوان بخط المصحف الكبير الذهبي داخل قوس */
.cta-band { position: relative; isolation: isolate; overflow: hidden; margin: 1.5rem 1rem 0; border-radius: 40px; padding: 6rem 0 6.5rem; text-align: center; color: #fff; background: radial-gradient(60% 50% at 50% 100%, rgba(217, 182, 106, .2) 0%, rgba(217, 182, 106, 0) 70%), linear-gradient(180deg, var(--deep) 0%, var(--night) 45%, var(--night-2) 100%); }
.cta-band .arch { position: absolute; z-index: -1; left: 50%; top: 3.5rem; width: min(560px, 86vw); height: 700px; transform: translateX(-50%); border: 1px solid rgba(243, 227, 181, .18); border-bottom: 0; border-radius: 280px 280px 0 0; }
.cta h2 { margin: 0; font-family: "Amiri Quran", serif; font-weight: 400; font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4rem); line-height: 1.7; color: var(--gold-l); }
html[lang="en"] .cta h2 { line-height: 1.35; margin-bottom: .5rem; }
.cta p { margin: 1rem auto 2rem; max-width: 34em; color: rgba(255, 255, 255, .85); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .9rem 1.25rem; }
.btn-gold { background: var(--gold-l); color: var(--night); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.btn-gold:hover { background: #F7EBC8; transform: translateY(-1px); }
.cta-apk { display: inline-flex; align-items: center; gap: .55rem; min-height: 58px; padding: .5rem 1.4rem; border-radius: 14px; border: 1px solid rgba(243, 227, 181, .45); color: var(--gold-l); font-weight: 700; text-decoration: none; }
.cta-apk svg { width: 21px; height: 21px; }
.cta-band .play-badge { box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }

/* آخر الصفحة (1.3.2): تذييل «سماء الليل» بأعمدة — نفس البنية في كل الصفحات (site/prayer/_core/Footer.php)
   ٤ أعمدة على الكمبيوتر، ٢ على اللوحي، عمود واحد على الهاتف (روابط ≥٤٤px). ليلي في الوضعين الفاتح والداكن */
.foot { margin-top: 3rem; background: linear-gradient(180deg, #0E2A3C, #08202E 70%); border-top: 3px solid var(--gold); color: rgba(237, 230, 212, .8); font-size: .94rem; line-height: 1.7; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-in { display: grid; grid-template-columns: 1.45fr 1.4fr 1fr 1fr; gap: 2.5rem 3rem; padding-block: 3.5rem 3rem; }
.foot .brand { min-height: 44px; color: #FDFAF2; font-size: 1.35rem; }
.foot .brand:hover { text-decoration: none; }
.foot .brand img { box-shadow: none; }
.foot-tag { margin: .9rem 0 1.4rem; max-width: 21em; }
.foot .foot-get { display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .5rem 1.15rem; border-radius: 12px; background: var(--gold-l); color: #0E2A3C; font-weight: 700; }
.foot .foot-get:hover { background: #F7EBC8; color: #0E2A3C; text-decoration: none; }
.foot-get svg { width: 19px; height: 19px; flex: none; }
.foot-social { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.foot-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(243, 227, 181, .3); color: var(--gold-l); }
.foot-social a:hover { background: rgba(243, 227, 181, .14); }
.foot-social svg { width: 19px; height: 19px; }
.foot-h { margin: 0 0 .8rem; color: #E2C27A; font-weight: 700; font-size: 1rem; }
.foot-col ul { display: grid; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.foot-cities ul { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.foot-col a { display: inline-flex; align-items: center; min-height: 36px; }
.foot .foot-all { gap: .4rem; margin-top: .4rem; color: var(--gold-l); font-weight: 700; }
.foot-bar { border-top: 1px solid rgba(237, 230, 212, .12); font-size: .87rem; }
.foot-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; padding-block: 1.25rem; }
.foot-bar p { margin: 0; }
.foot-trust { color: var(--gold-l); }
/* صفحات قديمة ما زالت في ذاكرة الـ CDN (حتى يوم) بتذييل السطر الواحد — شكل مقبول حتى تتجدد (احذفه بعد ١٤ أكتوبر ٢٠٢٦) */
.foot-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.25rem; padding-block: 2.5rem; }
.foot-grid .links { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.foot-grid p { margin: 0; }
@media (max-width: 980px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
    .foot-in { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.75rem 2.25rem; }
    .foot-col a { min-height: 44px; }
    .foot-tools ul, .foot-about ul { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
    .foot-about li:nth-child(3) { grid-column: 1 / -1; order: 1; }
    .foot-bar .wrap { flex-direction: column; }
}

/* ── صفحة الخصوصية (/privacy): رأس بسماء النهار، والجسم ورق هادئ للقراءة ── */
.doc-page { background: #FFFEFB; }
.doc-sky { position: relative; isolation: isolate; overflow: hidden; color: var(--sky-ink); background: var(--sky-bg); }
.doc-sky .top { position: relative; }
.doc-sky .brand img { box-shadow: none; }
.doc-title { padding-block: 2.5rem 4.75rem; }
.crumb { margin: 0; font-size: .88rem; color: var(--sky-soft); }
.crumb a, .updated a { color: inherit; font-weight: 700; }
.doc-title h1 { margin: .35rem 0 .2rem; font-family: "Amiri Quran", serif; font-weight: 400; font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); line-height: 1.7; }
.updated { margin: 0; font-size: .92rem; color: var(--sky-soft); display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.doc-sky .horizon { height: 70px; fill: #FFFEFB; }
.doc { max-width: 70rem; margin-inline: auto; padding: 2.25rem 2rem 5rem; }
.doc-sec { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0 3.5rem; align-items: start; line-height: 1.95; }
.doc-sec[lang="en"] { line-height: 1.75; border-top: 1px solid var(--line); margin-top: 3.5rem; padding-top: 3rem; }
.doc-head { grid-column: 1 / -1; margin-bottom: 1.75rem; }
.doc h1 { margin: 0 0 .25rem; color: var(--head); font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); line-height: 1.35; }
.doc h2 { margin: 2.25rem 0 .5rem; color: var(--brand-d); font-size: 1.25rem; line-height: 1.55; scroll-margin-top: 1.5rem; }
.doc-sec[id] { scroll-margin-top: 1rem; }
.doc .muted { margin: 0; color: var(--muted); font-size: .92rem; }
.doc p, .doc li { color: var(--ink-2); }
.doc-body > p { max-width: 44em; }
.doc ul { padding-inline-start: 1.25rem; }
.doc code { font-size: .86em; background: var(--sand); padding: .05rem .35rem; border-radius: 6px; word-break: break-word; }
.doc-jump { margin: .5rem 0 0; font-size: .92rem; }
.doc-jump a { font-weight: 700; }
.doc-summary { background: #F8F4EA; border-radius: var(--r); border-inline-start: 4px solid var(--gold); padding: 1.4rem 1.7rem; margin-bottom: 1.25rem; max-width: 46em; }
.doc-summary h2, .doc-toc h2 { margin: 0 0 .5rem; font-size: 1.05rem; color: var(--head); }
.doc-summary ul { margin: 0; display: grid; gap: .45rem; }
.doc-summary li::marker { color: var(--gold); }
/* الفهرس: ثابت بجانب النص على الشاشات الواسعة (.doc-toc-d)، ويُطوى على الهاتف (.doc-toc-m) */
.doc-toc { border: 1px solid var(--line); border-radius: 20px; padding: 1.1rem 1.25rem; font-size: .92rem; }
.doc-toc-d { position: sticky; top: 1.25rem; max-height: calc(100vh - 2.5rem); overflow-y: auto; }
.doc-toc-m { display: none; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.doc-toc a { display: flex; gap: .55rem; align-items: baseline; padding: .35rem .5rem; margin-inline: -.5rem; border-radius: 10px; text-decoration: none; color: var(--ink-2); line-height: 1.6; }
.doc-toc a:hover { color: var(--brand-d); background: var(--mint); }
.doc-toc .h-n { flex: none; min-width: 2.1em; font-weight: 700; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.doc-toc .h-dot { display: none; }
/* عناوين الأقسام برقم في شارة */
.doc-body h2[id] { display: flex; align-items: center; gap: .7rem; margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.doc-body h2[id] .h-n { flex: none; display: inline-grid; place-items: center; min-width: 2.3rem; height: 2.3rem; padding-inline: .45rem; border-radius: 12px; background: var(--mint); color: var(--brand-d); font-size: .95rem; font-variant-numeric: tabular-nums; }
.doc-body h2[id] .h-dot { display: none; }
/* الفقرة التي تبدأ بعنوان عريض («المساجد القريبة (اختياري):») = بند في بطاقة خفيفة */
.doc-body p.doc-item { max-width: 44em; padding: .9rem 1.15rem; border-radius: 14px; background: color-mix(in srgb, var(--sand) 45%, transparent); border-inline-start: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); }
.doc-body p.doc-item strong:first-child { color: var(--head); }
.doc-body ul { max-width: 44em; }
.doc-top { margin: 2.5rem 0 0; font-size: .9rem; }
.doc-top a { font-weight: 700; text-decoration: none; }
.doc-top a:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) {
    .doc-page { background: var(--stone); }
    .doc-sky .horizon { fill: var(--stone); }
    .doc-summary { background: var(--paper); }
    .doc-body p.doc-item { background: color-mix(in srgb, var(--paper) 80%, transparent); }
}

/* ── (1.3.1) حركة البطل: دخول مرة واحدة + سماء تدور ببطء بين الأطوار + هاتف يطفو وتتبدّل شاشته.
   transform/opacity فقط (stroke-dashoffset لموجتي الشعار مرة واحدة)، وتتوقف مع «تقليل الحركة» أو عند اختيار طور
   (html.sky-pin) أو حين يخرج البطل من الشاشة (.still من download.js). الطور الحالي هو خلفية البطل نفسها، والطبقات فوقه:
   الأطوار ذات النص الأبيض تدور فيما بينها (المغرب ← الليل ← الفجر)، والضحى ↔ العصر (نص داكن) — فلا يقلّ تباين النص أبدًا. */
.skies { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.sl { position: absolute; inset: 0; opacity: 0; }
.sl-fajr { background: var(--g-fajr); }
.sl-day { background: var(--g-day); }
.sl-asr { background: var(--g-asr); }
.sl-maghrib { background: var(--g-maghrib); }
/* نجوم الليل تظهر مع طبقته فقط */
.sl-night { background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, .9) 0 1.3px, transparent 2px),
    radial-gradient(circle at 31% 9%, rgba(255, 255, 255, .7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 47% 27%, rgba(255, 255, 255, .85) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 63% 12%, rgba(255, 255, 255, .7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, .9) 0 1.4px, transparent 2px),
    radial-gradient(circle at 90% 8%, rgba(255, 255, 255, .7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 22% 40%, rgba(255, 255, 255, .6) 0 1px, transparent 1.6px),
    var(--g-night); }
@keyframes skyA { 0%, 30% { opacity: 0; } 36%, 66% { opacity: 1; } 72%, 100% { opacity: 0; } }
@keyframes skyB { 0%, 60% { opacity: 0; } 66%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes skyC { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes orbAB { 0%, 30% { opacity: 1; } 36%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes orbC { 0%, 40% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
html.js:not(.sky-pin) .hero .sl { will-change: opacity; }
html.js:not(.sky-pin)[data-sky="maghrib"] .sl-night,
html.js:not(.sky-pin)[data-sky="night"] .sl-fajr,
html.js:not(.sky-pin)[data-sky="fajr"] .sl-maghrib { animation: skyA 54s linear infinite; }
html.js:not(.sky-pin)[data-sky="maghrib"] .sl-fajr,
html.js:not(.sky-pin)[data-sky="night"] .sl-maghrib,
html.js:not(.sky-pin)[data-sky="fajr"] .sl-night { animation: skyB 54s linear infinite; z-index: 1; }
html.js:not(.sky-pin)[data-sky="day"] .sl-asr,
html.js:not(.sky-pin)[data-sky="asr"] .sl-day { animation: skyC 54s linear infinite; }
html.js:not(.sky-pin):is([data-sky="maghrib"], [data-sky="night"], [data-sky="fajr"]) .orb { animation: orbAB 54s linear infinite; }
html.js:not(.sky-pin):is([data-sky="day"], [data-sky="asr"]) .orb { animation: orbC 54s linear infinite; }

/* النص الصغير أسفل البطل يقع على الجزء الفاتح من سماء الفجر/المغرب: ظل خفيف ثابت يحفظ وضوحه أثناء الدوران */
:is([data-sky="maghrib"], [data-sky="night"], [data-sky="fajr"]) :is(.trust, .phases > span, .soon, .lead) { text-shadow: 0 1px 3px rgba(20, 12, 30, .35); }

/* موجتا الشعار تحت العنوان: تُرسمان مرة واحدة */
.hero-waves { display: block; width: 96px; height: 27px; margin: -1.1rem 0 1.4rem; --wave-gold: #F3E3B5; }
[data-sky="day"] .hero-waves, [data-sky="asr"] .hero-waves { --wave-gold: #8A6420; }
.hero-waves path:first-child { stroke: currentColor; opacity: .9; }
.hero-waves path:last-child { stroke: var(--wave-gold); }
html[lang="en"] .hero-waves { margin-top: -.6rem; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes riseSoft { from { opacity: .2; transform: translateY(14px); } }
@keyframes phoneIn { from { transform: translateY(46px); } }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-9px); } }
.js .hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-copy > h1 { animation-name: riseSoft; animation-delay: .06s; }
.js .hero-copy > .lead { animation-delay: .3s; }
.js .hero-copy > .actions { animation-delay: .42s; }
.js .hero-copy > .trust { animation-delay: .54s; }
.js .hero-copy > .phases { animation-delay: .66s; }
.js .hero-copy > .hero-waves { animation: none; }
.js .hero-waves path { stroke-dasharray: 1; animation: draw 1.3s .35s cubic-bezier(.5, 0, .2, 1) both; }
.js .hero-waves path:last-child { animation-delay: .65s; }
.phone { --pp: 10px; }
.js .hero .phone { will-change: transform; animation: phoneIn 1s .1s cubic-bezier(.2, .7, .2, 1) both, float 7s 1.4s ease-in-out infinite alternate; }
/* شاشات الهاتف: الأولى ثابتة (LCP)، والباقي يُحمَّل بعد load ثم يتلاشى فوقها بالتناوب (24 ث) */
.phone .loop { position: absolute; top: var(--pp); left: var(--pp); width: calc(100% - 2 * var(--pp)); height: calc(100% - 2 * var(--pp)); object-fit: cover; opacity: 0; }
.phone .loop:not([src]) { display: none; }
@keyframes screen { 0% { opacity: 0; } 4%, 27% { opacity: 1; } 29%, 100% { opacity: 0; } }
.phone.looping .loop { animation: screen 24s linear infinite; }
.phone.looping .loop-1 { animation-delay: 5s; }
.phone.looping .loop-2 { animation-delay: 11s; }
.phone.looping .loop-3 { animation-delay: 17s; }
.hero.still .sl, .hero.still .orb, .hero.still .phone, .hero.still .loop { animation-play-state: paused; }

/* بقية المميزات (1.3.1): شرائح مضغوطة — الوصف لقارئات الشاشة وفي تلميح الفأرة */
.more-title { margin: 1.5rem 0 1.1rem; font-size: 1.2rem; color: var(--head); }
.features.chips { display: flex; flex-wrap: wrap; gap: .65rem; }
.chips .feature { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem; padding-inline-end: 1.15rem; border-radius: 999px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(29, 42, 40, .05); cursor: default; }
.chips .feature .ic { width: 38px; height: 38px; border-radius: 50%; }
.chips .feature .ic svg { width: 19px; height: 19px; }
.chips .feature h3 { margin: 0; font-size: .97rem; line-height: 1.4; font-weight: 700; white-space: nowrap; }
.chips .feature p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* الجديد (1.3.1): قائمة أقسام بجانب هاتف بلقطة حقيقية على مسرح ليلي */
.fresh { padding-top: 2rem; }
.new-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-inline-end: .5rem; vertical-align: .1em; box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent); }
.spot { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); background: var(--paper); border-radius: 32px; box-shadow: var(--shadow); overflow: hidden; }
.spot-list { display: grid; gap: .3rem; align-content: center; padding: 1.6rem; }
.spot-tab { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: .95rem; align-items: start; width: 100%; padding: .8rem 1rem; border: 0; border-radius: 18px; background: transparent; color: var(--ink); font: inherit; text-align: start; cursor: pointer; transition: background .15s; }
.spot-tab:hover { background: color-mix(in srgb, var(--mint) 70%, transparent); }
.spot-tab[aria-selected="true"] { background: var(--goldsoft); }
.spot-tab[aria-selected="true"]::before { content: ""; position: absolute; inset-inline-start: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--gold); }
.spot-tab .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--mint); color: var(--brand-d); transition: background .15s, color .15s; }
.spot-tab .ic svg { width: 22px; height: 22px; }
.spot-tab[aria-selected="true"] .ic { background: var(--brand-d); color: #fff; }
.spot-t { display: block; padding-top: .45rem; }
.spot-t b { display: block; font-size: 1.08rem; line-height: 1.5; color: var(--head); }
.spot-d { display: none; margin-top: .3rem; font-size: .94rem; line-height: 1.85; color: var(--ink-2); }
html[lang="en"] .spot-d { line-height: 1.65; }
.spot-tab[aria-selected="true"] .spot-d { display: block; }
.spot-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.spot-stage { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: 620px; padding: 3rem 1.5rem; background: radial-gradient(60% 45% at 50% 100%, rgba(217, 182, 106, .28), rgba(217, 182, 106, 0) 70%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.spot-stage::before, .spot-stage::after { content: ""; position: absolute; z-index: -1; left: 50%; border-radius: 50%; transform: translateX(-50%); border: 1px solid rgba(243, 227, 181, .18); }
.spot-stage::before { width: 520px; height: 520px; bottom: -250px; }
.spot-stage::after { width: 380px; height: 380px; bottom: -180px; border-color: rgba(243, 227, 181, .12); }
.spot-phone { width: 262px; border-radius: 40px; padding: 9px; background: #05141d; box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(243, 227, 181, .14); }
.spot-phone img { display: block; width: 100%; height: auto; border-radius: 31px; animation: spotIn .45s cubic-bezier(.2, .7, .2, 1) both; }
.spot-phone img[hidden], .spot-ph[hidden] { display: none; }
.spot-ph { display: grid; place-items: center; align-content: center; gap: .8rem; aspect-ratio: 540 / 1200; border-radius: 31px; background: var(--night-2); color: var(--gold-l); text-align: center; padding: 1rem; }
.spot-ph svg { width: 56px; height: 56px; }
@keyframes spotIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }

/* التنزيل (1.3.1): بطاقة Google Play (ليلية) + بطاقة APK (ورقية) بزر واحد، والتفاصيل في إفصاح */
.dl { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 1.25rem; align-items: stretch; }
.dl-play { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: 2.2rem 2.2rem 2.4rem; border-radius: 28px; color: #fff; background: radial-gradient(80% 60% at 100% 100%, rgba(217, 182, 106, .22), rgba(217, 182, 106, 0) 70%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.dl-play h3 { margin: .2rem 0 .4rem; font-size: 1.6rem; line-height: 1.3; color: #fff; }
.dl-play > p:not(.dl-state) { margin: 0; color: rgba(255, 255, 255, .84); font-size: .98rem; max-width: 26em; }
.dl-play .play-badge { margin-top: 1.4rem; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.dl-logo { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; margin-bottom: 1.4rem; background: rgba(243, 227, 181, .14); border: 1px solid rgba(243, 227, 181, .3); color: var(--gold-l); }
.dl-logo svg { width: 28px; height: 28px; }
.dl-wave { position: absolute; z-index: -1; width: 300px; height: 85px; inset-inline-end: -40px; bottom: 18px; opacity: .22; }
.dl-wave path:first-child { stroke: #5EB8AC; }
.dl-wave path:last-child { stroke: var(--gold-l); }
.dl-state { display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .2rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 700; line-height: 1.6; }
.dl-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dl-play .dl-state { background: rgba(243, 227, 181, .14); color: var(--gold-l); }
.dl-apk { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 2rem; align-items: center; padding: 2.2rem 2.4rem 1rem; border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.dl-apk .dl-state { background: var(--mint); color: var(--brand-d); }
.dl-main h3 { margin: .6rem 0 .3rem; font-size: 1.45rem; line-height: 1.4; color: var(--head); }
.dl-main > p:not(.dl-state) { margin: 0 0 1.4rem; color: var(--ink-2); font-size: .98rem; }
.dl-qr { display: grid; justify-items: center; gap: .55rem; width: 150px; text-align: center; }
.dl-qr .qr { width: 132px; height: 132px; padding: 8px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.dl-qr p { margin: 0; font-size: .8rem; line-height: 1.6; color: var(--muted); }
.dl-more { grid-column: 1 / -1; margin-top: 1.6rem; border-top: 1px solid var(--line); }
.dl-more summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .75rem; min-height: 52px; padding-block: .5rem; font-weight: 700; font-size: .95rem; color: var(--ink-2); }
.dl-more summary::-webkit-details-marker { display: none; }
.dl-more summary::after { content: ""; flex: none; margin-inline-start: auto; width: 26px; height: 26px; border-radius: 50%; background:
    linear-gradient(var(--brand-d), var(--brand-d)) center / 10px 2px no-repeat,
    linear-gradient(var(--brand-d), var(--brand-d)) center / 2px 10px no-repeat,
    var(--mint); transition: background-size .2s; }
.dl-more[open] summary::after { background-size: 10px 2px, 2px 0, auto; }
.dl-more summary:hover { color: var(--brand-d); }
.dl-more-body { padding: .25rem 0 1.25rem; display: grid; gap: 1rem; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.5rem; }
.steps li { counter-increment: s; display: flex; gap: .75rem; align-items: flex-start; font-size: .93rem; line-height: 1.75; color: var(--ink-2); }
.steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; margin-top: .1rem; border-radius: 50%; background: var(--mint); color: var(--brand-d); display: grid; place-items: center; font-weight: 700; font-size: .8rem; line-height: 1; }
html[lang="ar"] .steps li::before { content: counter(s, arabic-indic); }
.dl-note { margin: 0; padding: .75rem 1rem; border-radius: 14px; background: var(--sand); border-inline-start: 3px solid var(--gold); color: var(--ink-2); font-size: .88rem; line-height: 1.8; }
.dl-verify { font-size: .84rem; color: var(--muted); }
.dl-verify[hidden] { display: none; }
.dl-verify b { color: var(--ink-2); }
.dl-verify p { margin: .2rem 0 0; }
.dl-verify code { display: block; width: fit-content; max-width: 100%; margin-top: .2rem; font-size: .75rem; word-break: break-all; background: var(--sand); padding: .15rem .45rem; border-radius: 6px; }
/* بعد إتاحة Google Play: البطاقة الليلية هي الأساس (أعرض)، و APK ثانوي */
.dl-live { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dl-live .dl-apk { grid-template-columns: minmax(0, 1fr); }
.dl-live .dl-qr { display: none; }

/* شريط الثقة (1.3.1): لوح أخضر داكن — العنوان والوعد ورابط السياسة، وبجانبه ثلاثة وعود قصيرة */
.trust-band { position: relative; isolation: isolate; overflow: hidden; margin: 0 1rem; border-radius: 40px; padding: 5rem 0; color: #fff; background: radial-gradient(55% 70% at 0% 0%, rgba(243, 227, 181, .13), rgba(243, 227, 181, 0) 65%), linear-gradient(160deg, #0D6A63 0%, #0B5A54 40%, #083F3B 100%); }
.tb-waves { position: absolute; z-index: -1; width: 620px; height: 176px; inset-inline-start: -90px; bottom: -36px; }
.tb-waves path:first-child { stroke: rgba(255, 255, 255, .1); }
.tb-waves path:last-child { stroke: rgba(243, 227, 181, .2); }
.tb { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 4rem; align-items: center; }
.tb-badge { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; margin-bottom: 1.3rem; background: rgba(243, 227, 181, .14); border: 1px solid rgba(243, 227, 181, .3); color: var(--gold-l); }
.tb-badge svg { width: 28px; height: 28px; }
.trust-band .kicker { color: var(--gold-l); }
.trust-band h2 { margin: 0; color: #fff; font-size: clamp(1.8rem, 1.2rem + 1.9vw, 2.6rem); line-height: 1.45; }
html[lang="en"] .trust-band h2 { line-height: 1.2; letter-spacing: -.015em; }
.tb-text { margin: 1rem 0 1.75rem; max-width: 34em; color: rgba(255, 255, 255, .92); font-size: 1.02rem; }
.tb-text b { color: var(--gold-l); }
.tb-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 50px; padding: .6rem 1.3rem; border-radius: 14px; background: var(--gold-l); color: #083F3B; font-weight: 700; text-decoration: none; transition: transform .15s, background .15s; }
.tb-link:hover { background: #F7EBC8; transform: translateY(-1px); }
.tb-link svg { width: 19px; height: 19px; }
.tb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.tb-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; border-radius: 20px; background: rgba(0, 0, 0, .12); border: 1px solid rgba(243, 227, 181, .16); }
.tb-list .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(243, 227, 181, .14); color: var(--gold-l); }
.tb-list .ic svg { width: 23px; height: 23px; }
.tb-list h3 { margin: 0; font-size: 1.08rem; line-height: 1.5; color: #fff; }
.tb-list p { margin: .1rem 0 0; font-size: .93rem; line-height: 1.75; color: rgba(255, 255, 255, .9); }
.trust-band + #faq { padding-top: 5.5rem; }

@media (max-width: 1080px) {
    .tb { gap: 2.5rem; }
    .dl-apk { grid-template-columns: minmax(0, 1fr); }
    .dl-qr { display: none; }
}
@media (max-width: 900px) {
    .phone { --pp: 8px; }
    .spot { grid-template-columns: minmax(0, 1fr); border-radius: 26px; }
    .spot-stage { order: -1; min-height: 0; padding: 1.75rem 1rem 2rem; }
    .spot-stage::before { width: 360px; height: 360px; bottom: -190px; }
    .spot-stage::after { width: 250px; height: 250px; bottom: -130px; }
    .spot-phone { width: 168px; border-radius: 28px; padding: 6px; }
    .spot-phone img, .spot-ph { border-radius: 23px; }
    .spot-list { padding: .9rem .7rem 1rem; gap: .15rem; }
    .spot-tab { padding: .6rem .7rem; gap: .8rem; grid-template-columns: 40px minmax(0, 1fr); }
    .spot-tab .ic { width: 40px; height: 40px; border-radius: 12px; }
    .spot-t { padding-top: .35rem; }
    .spot-t b { font-size: 1rem; }
    .spot-d { font-size: .9rem; }
    .dl { grid-template-columns: minmax(0, 1fr); }
    .dl:not(.dl-live) .dl-play { order: 2; }
    .dl-play { padding: 1.6rem 1.4rem 1.75rem; border-radius: 24px; }
    .dl-logo { width: 50px; height: 50px; border-radius: 15px; margin-bottom: 1rem; }
    .dl-play h3 { font-size: 1.3rem; }
    .dl-apk { padding: 1.6rem 1.35rem .5rem; border-radius: 24px; }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .trust-band { margin-inline: .6rem; border-radius: 28px; padding: 3.5rem 0; }
    .tb { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .tb-waves { width: 420px; height: 120px; }
    .trust-band + #faq { padding-top: 4rem; }
}
@media (max-width: 560px) {
    /* على الهاتف: عمودان متساويان بدل شرائح متفاوتة الطول */
    .features.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
    .chips .feature { display: flex; border-radius: 16px; padding: .5rem; padding-inline-end: .7rem; gap: .55rem; }
    .chips .feature h3 { font-size: .88rem; line-height: 1.5; white-space: normal; }
    .chips .feature .ic { width: 34px; height: 34px; }
    .chips .feature .ic svg { width: 17px; height: 17px; }
    .dl-apk .btn { width: 100%; padding-inline: 1rem; font-size: .94rem; white-space: normal; }
    .dl-apk .btn span { text-wrap: balance; text-align: center; }
    .tb-link { width: 100%; justify-content: center; }
    .tb-list li { padding: .95rem 1rem; gap: .85rem; grid-template-columns: 44px minmax(0, 1fr); }
    .tb-list .ic { width: 44px; height: 44px; }
}

/* ── الشاشات الأصغر ── */
@media (max-width: 1080px) {
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ch { gap: 2.5rem; }
}
@media (max-width: 900px) {
    :root { --hdr: 64px; }
    body { font-size: 1rem; }
    .wrap { padding-inline: 1.25rem; }
    .nav { display: none; }
    .bar { gap: .75rem; }
    .brand { font-size: 1.2rem; }
    .brand img { width: 34px; height: 34px; }
    .bar-end { gap: .4rem; font-size: .86rem; }
    .lang { padding: .3rem .7rem; }
    .pill { padding: .45rem .95rem; }
    .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 2.25rem; padding-block: 1.75rem 7rem; }
    .hero h1 { margin: 1rem 0 1.1rem; }
    .lead { font-size: 1.03rem; margin-bottom: 1.6rem; }
    .phone { width: 240px; border-radius: 38px; padding: 8px; }
    .phone img { border-radius: 30px; }
    .orb { inset-inline-end: auto; inset-inline-start: 2%; bottom: 200px; width: 150px; height: 150px; }
    [data-sky="night"] .orb { top: 150px; bottom: auto; left: auto; inset-inline-start: auto; inset-inline-end: 7%; width: 44px; height: 44px; box-shadow: inset -10px 3px 0 0 #f3e3b5; }
    [data-sky="day"] .orb { top: 70px; }
    .horizon { height: 96px; }
    .sheet { margin-top: -40px; border-radius: 28px 28px 0 0; }
    .verse-band { padding-top: 3rem; }
    .verse-band::before { top: 1.5rem; border-radius: 999px 999px 0 0; }
    .verse-band::after { top: 2.5rem; border-radius: 999px 999px 0 0; }
    section.block { padding-block: 4rem; }
    #features { padding-top: 2.5rem; }
    .head { margin-bottom: 2rem; }
    .ch { grid-template-columns: 1fr; gap: 1.75rem; padding-block: .5rem 2.5rem; }
    .ch:nth-child(even) .ch-txt { order: 0; }
    .num { font-size: 3.6rem; }
    .stage { height: 430px; border-radius: 28px; }
    .ph { border-radius: 28px; padding: 6px; }
    .ph img { border-radius: 23px; }
    .ph-1 { width: 178px; top: 36px; }
    .ph-2, .ph-3 { width: 150px; top: 82px; }
    .ph-2 { left: calc(50% - 172px); }
    .ph-3 { left: calc(50% + 22px); }
    .faq-wrap { grid-template-columns: 1fr; gap: 1.5rem; }
    .screens, .cta-band { margin-inline: .6rem; border-radius: 28px; }
    .screens { padding: 3.5rem 0 2.75rem; }
    .shots { padding-inline: 1.25rem; scroll-padding-inline: 1.25rem; gap: 1rem; }
    .shots figure { width: 172px; }
    .shots figure.wide { width: 581px; }
    .shots .frame { border-radius: 28px; padding: 6px; }
    .shots .frame img { border-radius: 23px; }
    .cta-band { padding: 4.5rem 0 5rem; }
    .doc-sec { grid-template-columns: 1fr; }
    .doc-toc-d { display: none; }
    .doc-toc-m { display: block; margin: 0 0 1.5rem; padding: 0; background: var(--paper); }
    .doc-toc-m summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .6rem; min-height: 52px; padding: .75rem 1.15rem; font-weight: 700; color: var(--head); }
    .doc-toc-m summary::-webkit-details-marker { display: none; }
    .doc-toc-m summary small { color: var(--muted); font-weight: 500; }
    .doc-toc-m summary::after { content: ""; margin-inline-start: auto; width: 8px; height: 8px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform .2s; }
    .doc-toc-m[open] summary::after { transform: rotate(-135deg); }
    .doc-toc-m ol { padding: 0 1.15rem 1rem; }
    .faq-side { position: static; }
    .doc { padding: 1.5rem 1.25rem 4rem; }
    .doc-title { padding-block: 1.75rem 3.5rem; }
    .doc-sky .horizon { height: 44px; }
}
@media (max-width: 560px) {
    .eyebrow { font-size: .82rem; }
    .actions { flex-direction: column; align-items: stretch; }
    .actions > .btn, .actions > .soon { width: 100%; }
    .actions > .play-badge { align-self: flex-start; }
    .actions > .play-badge img { height: 56px; }
    .trust { gap: .2rem 1rem; font-size: .84rem; }
    .phases { margin-top: 1.5rem; gap: .35rem; }
    .phases span { display: none; }
    .phases button { padding: .25rem .75rem; }
    .verse .q { white-space: normal; }
    .features { grid-template-columns: 1fr; gap: .8rem; }
    .feature { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 1rem; align-items: start; padding: 1.25rem; }
    .feature .ic { grid-row: span 2; }
    .feature h3 { margin: .1rem 0 .2rem; }
    .feature p { grid-column: 2; }
    .faq summary { padding: 1rem 1.15rem; font-size: .98rem; }
    .faq details p { padding: 0 1.2rem 1.15rem; }
    .faq-a { padding: 0 1.15rem 1.15rem; }
    .doc-body h2[id] { margin-top: 2.25rem; padding-top: 1.25rem; }
    .doc-body p.doc-item { padding: .8rem .95rem; }
    .cta-actions { flex-direction: column; align-items: stretch; padding-inline: .5rem; }
    .cta-actions .play-badge img { margin-inline: auto; }
    .cta-actions .btn { white-space: normal; }
    .doc-summary { padding: 1.15rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
    /* حركة البطل والعرض: الحالة النهائية الثابتة */
    .sl, .orb, .hero-copy > *, .hero .phone, .phone .loop, .hero-waves path, .spot-phone img { animation: none !important; }
    .hero-waves path { stroke-dashoffset: 0; }
    .phone .loop { display: none; }
}
