/*
 * صفحتا «حمّل التطبيق» و«تثبيت الآيفون» (app.html / install-iphone.html) — 2026-11-02
 * بلا Tailwind ولا أي مكتبة: ملف واحد صغير يُخزَّن بالمتصفح، فالصفحة سريعة على الهاتف (زوّارها من الإعلانات غالبًا).
 * الألوان من هوية تاج برنت: زيتوني + كريمي، والأصفر (#FFD600) لمسة صغيرة فقط.
 */
:root {
    --olive: #556B2F;
    --olive-deep: #3E5019;
    --olive-tint: #E8EDD8;
    --cream: #F3F4F6;
    --paper: #FFFFFF;
    --ink: #25261E;
    --muted: #66675A;
    --line: #E5E7EB;
    --gold: #FFD600;
    --radius: 20px;
    --shadow: 0 18px 50px rgba(62, 80, 25, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ───── الشريط العلوي ───── */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 253, 247, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.toplink { font-weight: 700; font-size: .95rem; color: var(--olive-deep); text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.toplink:hover { background: var(--olive-tint); }

/* ───── القسم الأول ───── */
.hero {
    position: relative; overflow: hidden; padding: 34px 0 54px;
    background:
        radial-gradient(900px 520px at 88% -8%, rgba(85, 107, 47, .20), transparent 60%),
        radial-gradient(700px 480px at 0% 105%, rgba(255, 214, 0, .17), transparent 60%),
        var(--cream);
}
.hero-grid { display: grid; gap: 38px; align-items: center; }
@media (min-width: 900px) {
    .hero { padding: 64px 0 80px; }
    .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }
}
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--olive-tint); color: var(--olive-deep); font-weight: 700; font-size: .9rem; padding: 4px 14px; border-radius: 999px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--olive); }
h1 { font-size: clamp(2rem, 6.4vw, 3.15rem); line-height: 1.28; font-weight: 800; margin: 14px 0 14px; }
h1 em { font-style: normal; color: var(--olive); display: block; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 33em; margin-bottom: 22px; }
.pick { font-weight: 800; margin-bottom: 10px; }

/* أزرار التحميل الثلاثة */
.dl-list { display: grid; gap: 12px; max-width: 470px; }
.dl {
    --tile: var(--olive);
    display: flex; align-items: center; gap: 14px; padding: 13px 16px;
    background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-radius: 18px;
    text-decoration: none; box-shadow: 0 4px 14px rgba(62, 80, 25, .07);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dl:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(62, 80, 25, .16); border-color: var(--olive); }
.dl:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.dl-ico { flex: 0 0 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--tile); color: #fff; }
.dl-ico svg { width: 26px; height: 26px; }
.dl-txt { display: flex; flex-direction: column; line-height: 1.4; flex: 1; min-width: 0; }
.dl-txt b { font-size: 1.08rem; font-weight: 800; }
.dl-txt small { font-size: .86rem; color: var(--muted); font-weight: 500; }
.dl-go { width: 22px; height: 22px; opacity: .5; }
.dl-android { --tile: #01875F; background: var(--olive-deep); border-color: var(--olive-deep); color: #fff; }
.dl-android .dl-txt small { color: rgba(255, 255, 255, .8); }
.dl-android .dl-ico { background: #fff; color: #01875F; }
.dl-android:hover { border-color: var(--gold); }
.dl-telegram { --tile: #229ED9; }
.dl-ios { --tile: #1D1D1F; }

.trust { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; color: var(--olive); }

/* الهاتف والعناصر الطافية */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 430px; padding: 10px 0; }
.glow { position: absolute; inset: 4% 6%; border-radius: 50%; background: radial-gradient(circle, rgba(85, 107, 47, .30), transparent 68%); filter: blur(8px); }
.dots { position: absolute; bottom: 2%; inset-inline-end: 3%; width: 120px; height: 120px; background-image: radial-gradient(var(--olive) 1.6px, transparent 1.9px); background-size: 14px 14px; opacity: .3; }
.phone { position: relative; width: min(250px, 62vw); padding: 17px 9px 13px; background: #1d1f15; border-radius: 42px; box-shadow: var(--shadow), inset 0 0 0 2px #34372a; }
.phone::before { content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 46px; height: 5px; border-radius: 9px; background: #3c4030; }
.phone img { width: 100%; aspect-ratio: 540 / 1055; object-fit: cover; border-radius: 30px; background: #fff; }
.chip {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; max-width: 215px;
    background: #fff; border-radius: 16px; padding: 10px 14px; line-height: 1.45;
    box-shadow: 0 12px 30px rgba(38, 40, 25, .17); font-weight: 700; font-size: .9rem;
}
.chip svg { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--olive-tint); color: var(--olive-deep); }
.chip-a { top: 12%; inset-inline-start: -2%; }
.chip-b { bottom: 13%; inset-inline-end: -2%; }
@media (max-width: 480px) {
    .chip { font-size: .78rem; padding: 8px 10px; max-width: 160px; gap: 8px; }
    .chip svg { width: 30px; height: 30px; padding: 6px; }
    .chip-a { inset-inline-start: 0; }
    .chip-b { inset-inline-end: 0; }
}

/* ───── الأقسام ───── */
.sec { padding: 58px 0; }
.sec-alt { background: var(--paper); border-block: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.eyebrow { color: var(--olive); font-weight: 800; font-size: .95rem; }
h2 { font-size: clamp(1.55rem, 4.6vw, 2.2rem); line-height: 1.35; font-weight: 800; margin: 2px 0 8px; }
.sec-head p { color: var(--muted); }
.fine { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 26px; }

.feat { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .feat { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; }
.card .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--olive-tint); color: var(--olive-deep); display: grid; place-items: center; margin-bottom: 12px; }
.card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.card p { color: var(--muted); font-size: .93rem; line-height: 1.65; }

.steps { display: grid; gap: 38px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step { text-align: center; }
.step .phone { width: min(215px, 58vw); margin: 0 auto 20px; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--olive-deep); color: var(--gold); font-weight: 800; margin-bottom: 8px; }
.step h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.step p { margin: 0 auto; color: var(--muted); max-width: 19em; font-size: .95rem; }

.show { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .show { grid-template-columns: 1fr 1fr; gap: 56px; } }
.show-img { border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; background: #fff; border: 1px solid var(--line); max-width: 480px; margin: 0 auto; width: 100%; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.checks svg { width: 22px; height: 22px; color: var(--olive); margin-top: 4px; stroke-width: 2.4; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 15px 0; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--olive); font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--muted); padding-bottom: 16px; }
.faq a { color: var(--olive-deep); font-weight: 700; }

.cta { background: var(--olive-deep); color: #fff; border-radius: 28px; padding: 38px 20px; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 0, .22), transparent 70%); }
.cta h2 { color: #fff; position: relative; }
.cta p { color: rgba(255, 255, 255, .85); position: relative; }
.cta .dl-list { margin: 24px auto 0; position: relative; text-align: right; }
.cta .dl-android { background: #fff; color: var(--ink); border-color: #fff; }
.cta .dl-android .dl-txt small { color: var(--muted); }
.cta .dl-android .dl-ico { background: #01875F; color: #fff; }

footer { padding: 34px 0 42px; text-align: center; color: var(--muted); font-size: .92rem; }
.footer-sites, .footer-pages { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.footer-sites .lbl { font-weight: 700; color: #4a4a4a; }
.footer-sites a, .footer-pages a { text-decoration: none; color: inherit; }
.footer-sites a:hover, .footer-pages a:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.footer-sites [aria-current] { font-weight: 700; color: var(--olive); }

/* ───── صفحة تثبيت الآيفون ───── */
.guide-hero { padding: 34px 0 8px; text-align: center; }
.guide-hero h1 { font-size: clamp(1.8rem, 5.6vw, 2.7rem); }
.guide-hero .lead { margin: 0 auto; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--olive-deep); font-weight: 700; text-decoration: none; margin-bottom: 8px; }
.back:hover { text-decoration: underline; text-underline-offset: 3px; }
.back svg { width: 18px; height: 18px; transform: scaleX(-1); }
.note { display: flex; gap: 12px; align-items: flex-start; max-width: 760px; margin: 22px auto 0; padding: 14px 16px; text-align: right; background: #FFF8D6; border: 1px solid #F0DE7A; border-radius: 16px; line-height: 1.7; }
.note svg { width: 24px; height: 24px; color: #8A6D00; margin-top: 3px; }
.gsteps { display: grid; gap: 20px; max-width: 900px; margin: 0 auto; }
.gstep { display: grid; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 22px 20px; }
@media (min-width: 720px) { .gstep { grid-template-columns: 250px 1fr; gap: 36px; padding: 24px 32px; } }
.gstep .shot { width: min(230px, 62vw); margin: 0 auto; }
.gstep .shot svg { width: 100%; height: auto; filter: drop-shadow(0 14px 22px rgba(38, 40, 25, .18)); }
/* نصوص الرسوم عربية داخل صفحة RTL: اتجاه LTR يجعل text-anchor="end" يعني الحافة اليمنى كما نرسمها */
.gstep .shot svg text { direction: ltr; }
.gstep h3 { font-size: 1.28rem; font-weight: 800; margin: 6px 0; }
.gstep p { color: var(--muted); }
.gstep .num { margin-bottom: 4px; }
.en { direction: ltr; unicode-bidi: isolate; display: inline-block; font-weight: 700; color: var(--olive-deep); background: var(--olive-tint); border-radius: 8px; padding: 0 8px; line-height: 1.6; }
.after { max-width: 900px; margin: 22px auto 0; background: var(--olive-deep); color: #fff; border-radius: 26px; padding: 26px 24px; }
.after h2 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.after p { color: rgba(255, 255, 255, .88); }
.after a { color: var(--gold); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 16px; font-weight: 800; text-decoration: none; border: 2px solid var(--olive-deep); }
.btn-solid { background: var(--olive-deep); color: #fff; }
.btn-solid:hover { background: var(--olive); border-color: var(--olive); }
.btn-line { background: transparent; color: var(--olive-deep); }
.btn-line:hover { background: var(--olive-tint); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .dl, .dl:hover { transition: none; transform: none; }
    .pulse { animation: none !important; }
}
.pulse { animation: pulse 1.8s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .9; transform: scale(1.12); } }
