/* ═══════════════════════════════════════════════════════════
   عيادة السند — صفحة هبوط تطبيق المراجعين (Static Landing Page)
   هوية الألوان مطابقة تماماً لتطبيق Android: Emerald Teal & Ocean Blue
   ═══════════════════════════════════════════════════════════ */

:root {
    --primary: #0F766E;
    --primary-dark: #0A5751;
    --primary-light: #D6F5EE;
    --secondary: #0284C7;
    --secondary-light: #E0F2FE;
    --accent: #0D9488;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-soft: #E6F4F1;
    --text: #0F172A;
    --text-muted: #475569;
    --border: #E2E8F0;
    --danger: #DC2626;
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 32px rgba(15, 118, 110, 0.10);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
}

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

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

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── خلفية زخرفية ناعمة ────────────────────────────────── */
.bg-blobs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.blob-1 {
    width: 460px;
    height: 460px;
    background: #CCFBF1;
    top: -140px;
    right: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #E0F2FE;
    top: 260px;
    left: -120px;
}

/* ── شريط التنقل العلوي ─────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 16px;
}

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

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--surface);
    padding: 4px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.brand-text strong {
    display: block;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.brand-text span {
    display: block;
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
}

/* ── الأزرار العامة ─────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.88rem;
    border-radius: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #FFFFFF;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.36);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ── القسم الرئيسي (Hero) ──────────────────────────────── */
.hero {
    padding: 56px 0 72px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 18px;
    border: 1px solid rgba(15, 118, 110, 0.18);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.05rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 18px;
}

.hero h1 .highlight {
    color: var(--primary);
    position: relative;
}

.hero-desc {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 28px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.78);
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-weight: 600;
}

.meta-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* ── نموذج الهاتف التوضيحي (Phone Mockup) ───────────────── */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-frame {
    width: 100%;
    max-width: 325px;
    background: #0F172A;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 3px solid #1E293B;
}

.phone-notch {
    width: 110px;
    height: 22px;
    background: #0F172A;
    border-radius: 0 0 16px 16px;
    margin: 0 auto 6px;
    position: relative;
    z-index: 2;
}

.phone-screen {
    background: var(--bg);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 515px;
}

.app-topbar {
    background: var(--surface-soft);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.app-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}

.mock-card {
    background: var(--surface);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.mock-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.mock-day-pill {
    display: inline-block;
    background: #CCFBF1;
    color: #115E59;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 5px;
}

.mock-status-chip {
    background: var(--secondary-light);
    color: #0369A1;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.mock-date {
    font-weight: 700;
    font-size: 0.92rem;
}

.mock-therapist {
    font-size: 0.83rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 6px;
}

.mock-time {
    font-size: 0.84rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 14px;
}

.mock-btn {
    width: 100%;
    background: var(--primary);
    color: #FFFFFF;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.mock-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mock-btn-outline {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 7px 6px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.mock-btn-outline.danger {
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.25);
}

.mock-chat-preview {
    background: var(--primary-light);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mock-chat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    position: relative;
}

.mock-red-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #E53935;
    border: 1.5px solid #FFFFFF;
    position: absolute;
    top: -2px;
    left: -2px;
}

.mock-chat-preview strong {
    display: block;
    font-size: 0.8rem;
    color: var(--primary-dark);
}

.mock-chat-preview span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.app-bottomnav {
    background: var(--surface-soft);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 10px 6px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    border-top: 1px solid rgba(15, 118, 110, 0.12);
}

.app-bottomnav .active {
    color: var(--primary);
}

/* ── عناوين الأقسام ─────────────────────────────────────── */
.section {
    padding: 72px 0;
}

.section-alt {
    background: rgba(255, 255, 255, 0.72);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 44px;
}

.section-kicker {
    display: inline-block;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-light);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ── بطاقات المميزات ────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.icon-box.blue {
    background: var(--secondary-light);
    color: var(--secondary);
}

.feature-card h3 {
    font-size: 1.06rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ── قسم فيديو الشرح ────────────────────────────────────── */
.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.video-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, #0B131E 0%, #0F3D39 55%, #0C4A6E 100%);
}

.video-stage video,
.video-stage iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #F8FAFC;
    gap: 14px;
}

.play-circle {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 2px solid rgba(255, 255, 255, 0.45);
    display: grid;
    place-items: center;
    color: #FFFFFF;
    backdrop-filter: blur(8px);
}

.video-placeholder h3 {
    font-size: 1.3rem;
    font-weight: 800;
}

.video-placeholder p {
    font-size: 0.95rem;
    color: #CBD5E1;
    max-width: 520px;
}

.video-chapters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.chapter-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #E2E8F0;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.video-caption-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 8px 4px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ── خطوات التثبيت وخطوات الاستخدام ─────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.step-num {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1rem;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

.step-card h3 {
    font-size: 1.04rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.security-note {
    margin-top: 26px;
    background: var(--secondary-light);
    border: 1px solid rgba(2, 132, 199, 0.22);
    color: #034A6E;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.94rem;
    font-weight: 600;
}

.security-note svg {
    flex-shrink: 0;
    margin-top: 3px;
}

/* ── الأسئلة الشائعة (Accordion) ────────────────────────── */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    text-align: right;
}

.faq-question svg {
    flex-shrink: 0;
    color: var(--primary);
    transition: transform 0.25s ease;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
}

.faq-answer p {
    padding: 0 20px 18px;
    color: var(--text-muted);
    font-size: 0.94rem;
}

/* ── صندوق التنزيل النهائي (Bottom CTA) ──────────────────── */
.cta-banner {
    background: linear-gradient(135deg, #0F766E 0%, #0284C7 100%);
    color: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 44px 32px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.cta-banner p {
    color: #E0F2FE;
    max-width: 560px;
    margin: 0 auto 24px;
    font-size: 1rem;
}

.btn-white {
    background: #FFFFFF;
    color: var(--primary-dark);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.btn-white:hover {
    transform: translateY(-2px);
    background: #F8FAFC;
}

/* ── التذييل ────────────────────────────────────────────── */
.footer {
    padding: 36px 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ── إشعار مساعد بعد النقر على التحميل ───────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: #0F172A;
    color: #FFFFFF;
    padding: 13px 20px;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    max-width: calc(100vw - 32px);
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ── التجاوب مع الشاشات الصغيرة ─────────────────────────── */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta,
    .hero-meta {
        justify-content: center;
    }

    .features-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 74px;
        right: 0;
        left: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 16px 20px 20px;
        gap: 14px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        display: flex;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-actions .btn-sm {
        display: none;
    }

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

    .hero {
        padding: 36px 0 54px;
    }

    .section {
        padding: 52px 0;
    }
}
