/**
 * SmartFamilyEye - One-Tap Instant Pause (Family Time) Stylesheet
 * High-Contrast, Brand-Compliant, Fully Responsive & RTL Ready
 */

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.ip-hero-section {
    background: linear-gradient(135deg, #13141f 0%, #1c1829 50%, #281d2a 100%);
    color: #ffffff;
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}

.ip-hero-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(19, 20, 31, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ip-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.ip-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

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

.ip-hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #cbd5e1 !important;
    margin-bottom: 30px;
    max-width: 580px;
}

.ip-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.ip-hero-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #f1f5f9;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

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

.ip-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #079f70;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(7, 159, 112, 0.4);
}

.ip-btn-primary:hover {
    background: #068860;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(7, 159, 112, 0.5);
    color: #ffffff !important;
}

.ip-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.ip-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* ==========================================================================
   2. HERO VISUAL MOCKUP CARD (Parent Remote & Child Screen)
   ========================================================================== */
.ip-mockup-wrap {
    perspective: 1000px;
}

.ip-mockup-card {
    background: rgba(26, 22, 38, 0.96);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ip-parent-control-box {
    background: rgba(18, 15, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
}

.ip-mockup-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ip-mockup-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f1f5f9;
}

.ip-mockup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
}

.pulse-dot-red {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: ip-pulse-red 2s infinite;
}

@keyframes ip-pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.ip-btn-unpause {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #10b981;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.ip-active-msg-preview {
    font-size: 0.82rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
}

.ip-active-msg-preview strong {
    color: #fbbf24;
}

.ip-child-screen-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.ip-child-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.ip-child-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.ip-child-message {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #e2e8f0;
    margin-bottom: 14px;
}

.ip-child-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
}

/* ==========================================================================
   3. STATS STRIP SECTION
   ========================================================================== */
.ip-stats-section {
    background: #ffffff;
    padding: 55px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.ip-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ip-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.ip-stat-val {
    font-size: 2.3rem;
    font-weight: 800;
    color: #d97706;
    line-height: 1.1;
    margin-bottom: 8px;
}

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

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

/* ==========================================================================
   4. DEEP DIVE FEATURE SHOWCASES
   ========================================================================== */
.ip-features-section {
    background: #f8fafc;
    padding: 85px 0;
}

.ip-sec-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 55px;
}

.ip-sec-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #18394b !important;
    margin-bottom: 16px;
    line-height: 1.25;
}

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

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

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

.ip-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.ip-feat-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.ip-feat-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #18394b !important;
    margin-bottom: 12px;
    line-height: 1.3;
}

.ip-feat-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #53627c !important;
    margin-bottom: 22px;
}

.ip-feat-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.ip-feat-bullets li {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
}

.ip-feat-bullets li:last-child {
    margin-bottom: 0;
}

.ip-feat-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #d97706;
    font-weight: 800;
}

/* ==========================================================================
   5. PEDAGOGY & FAMILY PSYCHOLOGY
   ========================================================================== */
.ip-pedagogy-section {
    background: #ffffff;
    padding: 85px 0;
}

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

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

.ip-pedagogy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.09);
    border-color: #cbd5e1;
}

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

.ip-pedagogy-age {
    font-size: 1.6rem;
    font-weight: 800;
    color: #18394b;
    margin-bottom: 2px;
}

.ip-pedagogy-stage {
    font-size: 0.88rem;
    color: #d97706;
    font-weight: 700;
    margin-bottom: 10px;
}

.ip-pedagogy-focus {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #53627c;
    margin-bottom: 18px;
    flex-grow: 1;
}

.ip-pedagogy-rule {
    background: #f8fafc;
    border-left: 3px solid #d97706;
    padding: 10px 12px;
    border-radius: 0 8px 8px 0;
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.45;
    font-weight: 600;
}

/* ==========================================================================
   6. AUTOPILOT 3 STEPS
   ========================================================================== */
.ip-autopilot-section {
    background: #f8fafc;
    padding: 85px 0;
}

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

.ip-autopilot-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 26px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    position: relative;
    transition: all 0.25s ease;
}

.ip-autopilot-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.09);
}

.ip-autopilot-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.ip-autopilot-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #18394b !important;
    margin-bottom: 12px;
}

.ip-autopilot-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #53627c !important;
    margin: 0;
}

/* ==========================================================================
   7. REAL LIFE SCENARIOS
   ========================================================================== */
.ip-schedule-section {
    background: #ffffff;
    padding: 85px 0;
}

.ip-scenarios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.ip-scenario-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.ip-scenario-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.ip-scenario-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
}

.ip-scenario-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #18394b;
    margin-bottom: 8px;
}

.ip-scenario-desc {
    font-size: 0.88rem;
    color: #53627c;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.ip-scenario-badge {
    display: inline-block;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #b45309;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

/* ==========================================================================
   8. FAQ ACCORDION SECTION
   ========================================================================== */
.ip-faq-section {
    background: #f8fafc;
    padding: 85px 0;
}

.ip-faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ip-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.ip-faq-item.is-open {
    border-color: #d97706;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.1);
}

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

.ip-faq-btn:hover {
    color: #d97706;
}

.ip-faq-icon {
    font-size: 1.3rem;
    font-weight: 400;
    color: #64748b;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.ip-faq-item.is-open .ip-faq-icon {
    transform: rotate(45deg);
    color: #d97706;
}

.ip-faq-body {
    display: none;
    padding: 0 24px 22px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #53627c;
}

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

.ip-faq-body p {
    margin: 0;
}

/* ==========================================================================
   9. BOTTOM CALL TO ACTION
   ========================================================================== */
.ip-bottom-cta {
    background: #ffffff;
    padding: 80px 0;
}

.ip-cta-box {
    background: linear-gradient(135deg, #13141f 0%, #1c1829 50%, #281d2a 100%);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(19, 20, 31, 0.25);
}

.ip-cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff !important;
    margin: 16px auto 14px;
    max-width: 680px;
    line-height: 1.25;
}

.ip-cta-sub {
    font-size: 1.1rem;
    color: #cbd5e1 !important;
    margin: 0 auto 30px;
    max-width: 620px;
    line-height: 1.6;
}

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

.ip-cta-note {
    font-size: 0.85rem;
    color: #94a3b8 !important;
    margin: 0;
}

/* ==========================================================================
   10. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .ip-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .ip-features-grid,
    .ip-pedagogy-grid,
    .ip-autopilot-grid,
    .ip-scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ip-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ip-hero-section {
        padding: 50px 0 60px;
    }
    .ip-hero-title {
        font-size: 2.1rem;
    }
    .ip-sec-title {
        font-size: 1.75rem;
    }
    .ip-features-grid,
    .ip-pedagogy-grid,
    .ip-autopilot-grid,
    .ip-scenarios-grid,
    .ip-stats-grid {
        grid-template-columns: 1fr;
    }
    .ip-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .ip-btn-primary, .ip-btn-ghost {
        width: 100%;
        text-align: center;
    }
    .ip-cta-box {
        padding: 40px 20px;
    }
    .ip-cta-title {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   11. RTL (ARABIC) SUPPORT
   ========================================================================== */
[dir="rtl"] .ip-feat-bullets li {
    padding-left: 0;
    padding-right: 22px;
}

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

[dir="rtl"] .ip-pedagogy-rule {
    border-left: none;
    border-right: 3px solid #d97706;
    border-radius: 8px 0 0 8px;
}

[dir="rtl"] .ip-faq-btn {
    text-align: right;
}

[dir="rtl"] .ip-faq-icon {
    margin-left: 0;
    margin-right: 12px;
}
