/* ==========================================================================
   SmartFamilyEye - Morning Digital Briefing & Healthy Compass Stylesheet
   Theme: Morning Sky & Amber Sunrise Pedagogical Glassmorphism
   ========================================================================== */

/* 1. Page Intro & Hero Section */
.mdb-hero-section {
    position: relative;
    padding: 75px 0 70px;
    background: linear-gradient(135deg, #070d18 0%, #0d1a30 50%, #152744 100%);
    color: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mdb-hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 680px;
    height: 680px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.22) 0%, rgba(56, 189, 248, 0.16) 45%, transparent 70%);
    filter: blur(65px);
    pointer-events: none;
    z-index: 1;
}

.mdb-hero-section::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
    filter: blur(55px);
    pointer-events: none;
    z-index: 1;
}

.mdb-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

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

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

.mdb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 999px;
    color: #fde047;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.mdb-hero-title {
    font-size: clamp(2rem, 3.8vw, 2.8rem);
    font-weight: 800;
    line-height: 1.18;
    color: #ffffff;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.mdb-hero-subtitle {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #cbd5e1;
    margin-bottom: 26px;
    max-width: 580px;
}

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

.mdb-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.84rem;
    font-weight: 500;
}

.mdb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.mdb-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.28);
    transition: all 0.2s ease;
}

.mdb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.38);
    color: #ffffff;
}

.mdb-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mdb-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* 2. Phone Simulation Mockup */
.mdb-mockup-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mdb-phone-frame {
    width: 100%;
    max-width: 390px;
    background: #0f172a;
    border-radius: 40px;
    padding: 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
    position: relative;
}

.mdb-phone-notch {
    width: 120px;
    height: 18px;
    background: #000;
    border-radius: 0 0 12px 12px;
    margin: 0 auto 12px;
}

.mdb-dialog-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 26px;
    padding: 22px 18px;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    max-height: 520px;
    overflow-y: auto;
}

.mdb-dialog-header {
    text-align: center;
    margin-bottom: 16px;
}

.mdb-dialog-badge {
    font-size: 2rem;
    margin-bottom: 6px;
    display: inline-block;
}

.mdb-dialog-card-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.mdb-dialog-greeting {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fde047;
    margin-bottom: 4px;
}

.mdb-dialog-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
}

.mdb-dialog-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.mdb-dialog-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.mdb-dialog-item-icon {
    font-size: 1.15rem;
    line-height: 1;
    margin-top: 2px;
}

.mdb-dialog-item-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.mdb-dialog-item-desc {
    font-size: 0.79rem;
    color: #e2e8f0;
    line-height: 1.35;
}

.mdb-family-note {
    background: rgba(245, 158, 11, 0.1);
    border: 1px dashed rgba(245, 158, 11, 0.35);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 0.78rem;
    color: #fef08a;
    line-height: 1.4;
}

.mdb-family-note-title {
    font-size: 0.68rem;
    font-weight: 800;
    color: #fbbf24;
    text-transform: uppercase;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mdb-dismiss-btn {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: default;
    text-align: center;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    margin-bottom: 10px;
}

.mdb-timer-row {
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mdb-progress-line {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.mdb-progress-fill {
    width: 70%;
    height: 100%;
    background: #f59e0b;
    border-radius: 2px;
    animation: mdbPulse 30s linear infinite;
}

@keyframes mdbPulse {
    0% { width: 100%; }
    100% { width: 0%; }
}

/* 3. Stats Strip */
.mdb-stats-section {
    padding: 40px 0;
    background: #0b1220;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

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

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

.mdb-stat-card {
    text-align: center;
    padding: 18px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mdb-stat-val {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #38bdf8;
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.mdb-stat-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.mdb-stat-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* 4. Deep Dive Psychological Benefits */
.mdb-deep-dive {
    padding: 80px 0;
    background: #ffffff;
    color: #0f172a;
}

.mdb-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.mdb-section-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #0284c7;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.mdb-section-title {
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.mdb-section-subtitle {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
}

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

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

.mdb-benefit-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 32px 26px;
    transition: all 0.25s ease;
}

.mdb-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.07);
    border-color: #cbd5e1;
}

.mdb-benefit-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 999px;
    margin-bottom: 16px;
}

.mdb-benefit-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.mdb-benefit-desc {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 18px;
}

.mdb-benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mdb-benefit-list li {
    font-size: 0.86rem;
    color: #334155;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
}

.mdb-benefit-list li::before {
    content: '✓';
    color: #0284c7;
    font-weight: 700;
}

/* 5. Rules & Elements Section */
.mdb-rules-section {
    padding: 80px 0;
    background: #f1f5f9;
}

.mdb-rules-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1199px) {
    .mdb-rules-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .mdb-rules-grid {
        grid-template-columns: 1fr;
    }
}

.mdb-rule-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.2s ease;
}

.mdb-rule-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.mdb-rule-emoji {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: inline-block;
}

.mdb-rule-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.mdb-rule-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}

/* 6. Comparison Section */
.mdb-comparison-section {
    padding: 80px 0;
    background: #ffffff;
}

.mdb-comparison-table-wrap {
    overflow-x: auto;
    margin-top: 30px;
}

.mdb-comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.mdb-comparison-table th {
    padding: 18px 24px;
    font-weight: 700;
    font-size: 0.98rem;
    text-align: left;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.mdb-comparison-table th.highlight {
    background: #f0f9ff;
    color: #0284c7;
    border-bottom: 2px solid #38bdf8;
}

.mdb-comparison-table td {
    padding: 16px 24px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    line-height: 1.5;
}

.mdb-comparison-table tr:last-child td {
    border-bottom: none;
}

.mdb-comparison-table td.highlight {
    background: #f8fcff;
    font-weight: 600;
    color: #0f172a;
}

/* 7. FAQ Section */
.mdb-faq-section {
    padding: 80px 0;
    background: #f8fafc;
}

.mdb-faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mdb-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.mdb-faq-summary {
    padding: 20px 24px;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
}

.mdb-faq-summary::-webkit-details-marker {
    display: none;
}

.mdb-faq-summary::after {
    content: '+';
    font-size: 1.4rem;
    color: #0284c7;
    font-weight: 400;
    transition: transform 0.2s ease;
}

details[open] .mdb-faq-summary::after {
    transform: rotate(45deg);
}

.mdb-faq-content {
    padding: 0 24px 20px;
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.65;
}

/* 8. CTA Section */
.mdb-cta-section {
    padding: 75px 0;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    text-align: center;
}

.mdb-cta-title {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.mdb-cta-subtitle {
    font-size: 1.1rem;
    color: #e0f2fe;
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.mdb-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 34px;
    background: #ffffff;
    color: #0369a1;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.mdb-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
    color: #0284c7;
}
