/* ==========================================================================
   SmartFamilyEye - Screen Time Limits Dedicated Stylesheet
   Version: 20261015-v2 (High-Contrast Clean Brand Theme)
   ========================================================================== */

/* 1. Page Intro & Full-Bleed Dark Hero */
.st-hero-section {
    position: relative;
    padding: 70px 0 65px;
    background: linear-gradient(135deg, #0a1926 0%, #102536 50%, #0d1e2d 100%);
    color: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.st-hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(16, 185, 129, 0.08) 50%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}

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

.st-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) {
    .st-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

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

.st-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;
}

.st-hero-section .st-eyebrow {
    background: rgba(37, 99, 235, 0.22);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #93c5fd;
}

.st-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) {
    .st-hero-title {
        font-size: 2.15rem;
    }
}

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

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

.st-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;
}

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

.st-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;
}

.st-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);
}

.st-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;
}

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

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

.st-mockup-card {
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65), 0 0 40px -10px rgba(14, 165, 233, 0.25);
    color: #f8fafc;
}

.st-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;
}

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

.st-mockup-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
}

/* Gauge area */
.st-gauge-box {
    text-align: center;
    padding: 10px 0 20px;
}

.st-gauge-time {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ffffff 40%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.st-gauge-sub {
    font-size: 0.92rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.st-progress-rail {
    background: rgba(255, 255, 255, 0.1);
    height: 12px;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.st-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8 0%, #10b981 100%);
    border-radius: 9999px;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
    transition: width 0.8s ease;
}

.st-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 600;
}

.st-progress-labels .remaining {
    color: #38bdf8;
    font-weight: 700;
}

/* Mockup App List */
.st-mockup-apps-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 22px 0 12px;
}

.st-app-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.st-app-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.st-app-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
}

.st-app-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #f1f5f9;
}

.st-app-time {
    font-size: 0.8rem;
    color: #94a3b8;
}

.st-app-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
}

.st-app-tag.badge-yellow {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.st-app-tag.badge-red {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.st-app-tag.badge-green {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Floating Notification Toast */
.st-notif-toast {
    margin-top: 18px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(14, 165, 233, 0.4);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.45);
    border-radius: 14px;
    padding: 14px 16px;
    backdrop-filter: blur(12px);
}

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

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

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

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

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

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

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

.st-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;
}

.st-stat-card:hover {
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.st-stat-val {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0284c7;
    line-height: 1.1;
    margin-bottom: 8px;
}

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

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

/* ==========================================================================
   SHARED SECTION HEADERS (High-Contrast Clean Brand Typography)
   ========================================================================== */
.st-sec-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.st-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) {
    .st-sec-title {
        font-size: 1.85rem;
    }
}

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

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

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

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

.st-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;
}

.st-feature-card:hover {
    border-color: #0284c7;
    box-shadow: 0 18px 40px rgba(2, 132, 199, 0.12);
    transform: translateY(-5px);
}

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

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

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

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

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

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

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

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

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

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

.st-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;
}

.st-pedagogy-card:hover {
    border-color: #0284c7;
    box-shadow: 0 16px 36px rgba(2, 132, 199, 0.1);
    transform: translateY(-4px);
}

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

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

.st-pedagogy-stage {
    font-size: 0.85rem;
    color: #0284c7;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.st-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;
}

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

.st-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 HABIT-BUILDING SECTION (High-Contrast & Beautiful Cards)
   ========================================================================== */
.st-autopilot-section {
    padding: 85px 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

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

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

.st-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;
}

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

.st-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;
}

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

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

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

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

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

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

.st-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);
}

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

.st-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;
}

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

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

.st-block-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0284c7;
    letter-spacing: 0.04em;
}

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

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

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

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

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

.st-block-status.indigo {
    background: #e0e7ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

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

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

.st-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;
}

.st-faq-item.is-open {
    border-color: #0284c7;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
}

.st-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;
}

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

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

.st-faq-item.is-open .st-faq-icon {
    transform: rotate(45deg);
    color: #0369a1;
}

.st-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;
}

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

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

.st-cta-box {
    background: linear-gradient(135deg, #0a1926 0%, #102536 50%, #0d1e2d 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(10, 25, 38, 0.45);
    color: #ffffff;
}

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

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

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

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

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

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

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

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

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

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