/* ==========================================================================
   SmartFamilyEye - Bedtime & Sleep Mode Automatic Lock Stylesheet
   Version: 20261015-v1 (High-Contrast Professional Brand Theme)
   ========================================================================== */

/* 1. Page Intro & Full-Bleed Midnight Hero */
.bm-hero-section {
    position: relative;
    padding: 70px 0 65px;
    background: linear-gradient(135deg, #070b14 0%, #0c1424 50%, #151a36 100%);
    color: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bm-hero-section::before {
    content: '';
    position: absolute;
    top: -25%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, rgba(37, 99, 235, 0.12) 50%, transparent 70%);
    filter: blur(65px);
    pointer-events: none;
    z-index: 1;
}

.bm-hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    filter: blur(55px);
    pointer-events: none;
    z-index: 1;
}

.bm-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 991px) {
    .bm-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.bm-hero-content {
    position: relative;
    z-index: 2;
}

.bm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0284c7;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 20px;
}

.bm-hero-section .bm-eyebrow {
    background: rgba(124, 58, 237, 0.25);
    border: 1px solid rgba(167, 139, 250, 0.45);
    color: #c4b5fd;
}

.bm-hero-title {
    font-size: 2.85rem;
    line-height: 1.18;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: -0.025em;
    margin-bottom: 22px;
}

@media (max-width: 768px) {
    .bm-hero-title {
        font-size: 2.15rem;
    }
}

.bm-hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.65;
    color: #cbd5e1 !important;
    margin-bottom: 28px;
    max-width: 620px;
}

.bm-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 32px;
}

.bm-hero-pill {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
}

.bm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.bm-btn-primary {
    background: linear-gradient(135deg, #079f70 0%, #057a55 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 10px 24px -4px rgba(7, 159, 112, 0.45);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bm-btn-primary:hover {
    background: linear-gradient(135deg, #08ab78 0%, #06885f 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -4px rgba(7, 159, 112, 0.6);
}

.bm-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.bm-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff !important;
}

/* Hero Night Visual Mockup */
.bm-mockup-wrap {
    position: relative;
    z-index: 2;
}

.bm-mockup-card {
    background: linear-gradient(160deg, #161e31 0%, #0c1220 100%);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 45px -10px rgba(124, 58, 237, 0.3);
    color: #f8fafc;
}

.bm-mockup-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 22px;
}

.bm-mockup-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #94a3b8;
    text-transform: uppercase;
}

.bm-mockup-badge {
    background: rgba(124, 58, 237, 0.25);
    color: #c4b5fd;
    border: 1px solid rgba(167, 139, 250, 0.45);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bm-clock-box {
    text-align: center;
    padding: 12px 0 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    margin-bottom: 20px;
}

.bm-moon-icon {
    font-size: 2.2rem;
    margin-bottom: 6px;
    display: inline-block;
}

.bm-clock-time {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ffffff 40%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bm-clock-label {
    font-size: 0.88rem;
    color: #94a3b8;
    font-weight: 600;
}

.bm-lock-screen-box {
    background: rgba(30, 41, 59, 0.5);
    border: 1px dashed rgba(167, 139, 250, 0.35);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
}

.bm-lock-state {
    font-size: 0.82rem;
    font-weight: 700;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.bm-lock-message {
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

/* Emergency & Alarm status */
.bm-mockup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.bm-emergency-btn {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bm-alarm-pill {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    text-align: center;
}

/* Floating Wind-Down Toast */
.bm-notif-toast {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(167, 139, 250, 0.4);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.45);
    border-radius: 14px;
    padding: 14px 16px;
    backdrop-filter: blur(12px);
}

.bm-notif-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #c4b5fd;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.bm-notif-header .pulse-dot {
    width: 8px;
    height: 8px;
    background: #a78bfa;
    border-radius: 50%;
    box-shadow: 0 0 8px #a78bfa;
}

.bm-notif-body {
    font-size: 0.88rem;
    color: #e2e8f0;
    line-height: 1.45;
    margin: 0;
}

/* ==========================================================================
   2. STATS STRIP (Clean Light Theme)
   ========================================================================== */
.bm-stats-section {
    padding: 60px 0;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.bm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .bm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .bm-stats-grid {
        grid-template-columns: 1fr;
    }
}

.bm-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px 22px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.bm-stat-card:hover {
    transform: translateY(-4px);
    border-color: #a78bfa;
    box-shadow: 0 16px 36px rgba(124, 58, 237, 0.08);
}

.bm-stat-val {
    font-size: 2.6rem;
    font-weight: 800;
    color: #7c3aed;
    line-height: 1.1;
    margin-bottom: 8px;
}

.bm-stat-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #18394b;
    margin-bottom: 6px;
}

.bm-stat-desc {
    font-size: 0.88rem;
    color: #53627c;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   SHARED SECTION HEADERS
   ========================================================================== */
.bm-sec-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.bm-sec-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: #18394b !important;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 14px 0;
}

@media (max-width: 768px) {
    .bm-sec-title {
        font-size: 1.85rem;
    }
}

.bm-sec-subtitle {
    font-size: 1.1rem;
    color: #53627c !important;
    line-height: 1.65;
    margin: 0;
}

/* ==========================================================================
   3. DEEP DIVE FEATURE SHOWCASES
   ========================================================================== */
.bm-features-section {
    padding: 85px 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.bm-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {
    .bm-features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.bm-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 6px 24px rgba(24, 54, 71, 0.06);
    transition: all 0.3s ease;
}

.bm-feature-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.12);
    transform: translateY(-5px);
}

.bm-feat-badge {
    align-self: flex-start;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    color: #7c3aed;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.bm-feat-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #18394b;
    margin-bottom: 12px;
    line-height: 1.35;
}

.bm-feat-desc {
    font-size: 0.95rem;
    color: #53627c;
    line-height: 1.65;
    margin-bottom: 22px;
}

.bm-feat-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bm-feat-bullets li {
    position: relative;
    padding-left: 26px;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.55;
    margin-bottom: 10px;
    font-weight: 500;
}

.bm-feat-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #059669;
    font-weight: 800;
    font-size: 1rem;
}

/* ==========================================================================
   4. PEDAGOGICAL AGE MATRIX
   ========================================================================== */
.bm-pedagogy-section {
    padding: 85px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.bm-pedagogy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1199px) {
    .bm-pedagogy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .bm-pedagogy-grid {
        grid-template-columns: 1fr;
    }
}

.bm-pedagogy-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
}

.bm-pedagogy-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 16px 36px rgba(124, 58, 237, 0.1);
    transform: translateY(-4px);
}

.bm-pedagogy-top {
    margin-bottom: 16px;
}

.bm-pedagogy-age {
    font-size: 1.55rem;
    font-weight: 800;
    color: #18394b;
    margin-bottom: 4px;
}

.bm-pedagogy-stage {
    font-size: 0.85rem;
    color: #7c3aed;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bm-pedagogy-badge {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    margin: 12px 0 16px;
    display: inline-block;
}

.bm-pedagogy-focus {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.bm-pedagogy-rule {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.5;
    font-weight: 500;
}

/* ==========================================================================
   5. AUTOPILOT CONFLICT-FREE SECTION
   ========================================================================== */
.bm-autopilot-section {
    padding: 85px 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.bm-autopilot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 991px) {
    .bm-autopilot-grid {
        grid-template-columns: 1fr;
    }
}

.bm-autopilot-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 34px 28px;
    position: relative;
    box-shadow: 0 6px 24px rgba(24, 54, 71, 0.06);
    transition: all 0.25s ease;
}

.bm-autopilot-card:hover {
    border-color: #079f70;
    box-shadow: 0 16px 36px rgba(7, 159, 112, 0.12);
    transform: translateY(-4px);
}

.bm-autopilot-step {
    font-size: 3.2rem;
    font-weight: 900;
    color: #e2e8f0;
    line-height: 1;
    position: absolute;
    top: 22px;
    right: 26px;
    user-select: none;
    transition: color 0.25s ease;
}

.bm-autopilot-card:hover .bm-autopilot-step {
    color: rgba(7, 159, 112, 0.25);
}

.bm-autopilot-title {
    font-size: 1.28rem;
    font-weight: 700;
    color: #18394b;
    margin-bottom: 12px;
    padding-right: 48px;
    line-height: 1.35;
}

.bm-autopilot-desc {
    font-size: 0.95rem;
    color: #53627c;
    line-height: 1.65;
    margin: 0;
}

/* ==========================================================================
   6. WEEKLY SCHEDULE BLUEPRINT
   ========================================================================== */
.bm-schedule-section {
    padding: 85px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.bm-schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 991px) {
    .bm-schedule-grid {
        grid-template-columns: 1fr;
    }
}

.bm-schedule-day {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 26px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.bm-schedule-label {
    font-size: 1.25rem;
    font-weight: 800;
    color: #18394b;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
}

.bm-time-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.bm-time-block:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.bm-block-info {
    display: flex;
    flex-direction: column;
}

.bm-block-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: #7c3aed;
    letter-spacing: 0.04em;
}

.bm-block-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #18394b;
}

.bm-block-status {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 9999px;
}

.bm-block-status.blue {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.bm-block-status.green {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.bm-block-status.purple {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

/* ==========================================================================
   7. FAQ ACCORDION (Light Clean Cards)
   ========================================================================== */
.bm-faq-section {
    padding: 85px 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.bm-faq-list {
    max-width: 860px;
    margin: 0 auto;
}

.bm-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bm-faq-item.is-open {
    border-color: #7c3aed;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.08);
}

.bm-faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: none;
    padding: 22px 26px;
    color: #18394b;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease;
}

.bm-faq-btn:hover {
    background: #f8fafc;
}

.bm-faq-icon {
    font-size: 1.5rem;
    color: #7c3aed;
    line-height: 1;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.bm-faq-item.is-open .bm-faq-icon {
    transform: rotate(45deg);
    color: #6d28d9;
}

.bm-faq-body {
    display: none;
    padding: 18px 26px 24px;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #475569;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.bm-faq-item.is-open .bm-faq-body {
    display: block;
}

/* ==========================================================================
   8. BOTTOM CALL TO ACTION
   ========================================================================== */
.bm-bottom-cta {
    padding: 85px 0 95px;
    background: #f8fafc;
}

.bm-cta-box {
    background: linear-gradient(135deg, #070b14 0%, #0c1424 50%, #151a36 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 56px 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(7, 11, 20, 0.5);
    color: #ffffff;
}

.bm-cta-box .bm-eyebrow {
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
}

.bm-cta-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.bm-cta-sub {
    font-size: 1.1rem;
    color: #cbd5e1 !important;
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto 32px;
}

.bm-cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.bm-cta-note {
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 0;
}

/* ==========================================================================
   RTL SUPPORT FOR ARABIC
   ========================================================================== */
[dir="rtl"] .bm-hero-title,
[dir="rtl"] .bm-hero-subtitle,
[dir="rtl"] .bm-sec-header,
[dir="rtl"] .bm-feat-title,
[dir="rtl"] .bm-feat-desc,
[dir="rtl"] .bm-stat-card,
[dir="rtl"] .bm-pedagogy-card,
[dir="rtl"] .bm-autopilot-card,
[dir="rtl"] .bm-faq-btn {
    text-align: right;
}

[dir="rtl"] .bm-feat-bullets li {
    padding-left: 0;
    padding-right: 26px;
}

[dir="rtl"] .bm-feat-bullets li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .bm-autopilot-step {
    right: auto;
    left: 26px;
}

[dir="rtl"] .bm-autopilot-title {
    padding-right: 0;
    padding-left: 48px;
}
