/* ==========================================================================
   SmartFamilyEye - Pedagogical Pre-Alerts & Gentle Reminders Stylesheet
   Version: 20261102-v1 (Modern Soft Amber & Emerald Pedagogical Theme)
   ========================================================================== */

/* 1. Page Intro & Hero Section */
.ppa-hero-section {
    position: relative;
    padding: 70px 0 65px;
    background: linear-gradient(135deg, #090e17 0%, #111a2e 50%, #1e263d 100%);
    color: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ppa-hero-section::before {
    content: '';
    position: absolute;
    top: -25%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(16, 185, 129, 0.15) 50%, transparent 70%);
    filter: blur(65px);
    pointer-events: none;
    z-index: 1;
}

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

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

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

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

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

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

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

.ppa-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;
    font-size: 0.8125rem;
    color: #e2e8f0;
    font-weight: 500;
}

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

.ppa-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.9375rem;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);
    transition: all 0.25s ease;
}

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

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

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

/* Mockup Card (Phone Simulation with 10s countdown alert) */
.ppa-mockup-wrap {
    position: relative;
}

.ppa-phone-frame {
    background: #0f172a;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 36px;
    padding: 18px 16px 24px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
    max-width: 380px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.ppa-phone-notch {
    width: 120px;
    height: 18px;
    background: #1e293b;
    border-radius: 0 0 14px 14px;
    margin: 0 auto 16px;
}

.ppa-dialog-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 22px 18px;
    color: #1e293b;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(245, 158, 11, 0.4);
    text-align: center;
}

.ppa-badge-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35);
}

.ppa-dialog-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.ppa-dialog-greeting {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 6px;
}

.ppa-dialog-body {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 14px;
}

.ppa-timer-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 14px;
    border: 1px solid #e2e8f0;
}

.ppa-timer-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 6px;
}

.ppa-progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.ppa-progress-fill {
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    border-radius: 3px;
    animation: ppaCountdown 10s linear infinite;
}

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

.ppa-dismiss-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #ea580c;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.ppa-phone-note {
    margin-top: 14px;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
    text-align: center;
}

/* 2. Stats Section */
.ppa-stats-section {
    padding: 40px 0;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

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

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

.ppa-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
}

.ppa-stat-val {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fbbf24;
    line-height: 1;
    margin-bottom: 8px;
}

.ppa-stat-label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.ppa-stat-desc {
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0;
}

/* 3. Deep Dive Section */
.ppa-features-section {
    padding: 80px 0;
    background: #f8fafc;
}

.ppa-sec-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.ppa-sec-header .ppa-eyebrow {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #d97706;
}

.ppa-sec-title {
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.ppa-sec-subtitle {
    font-size: 1.0625rem;
    color: #64748b;
    line-height: 1.6;
}

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

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

.ppa-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
}

.ppa-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
}

.ppa-feat-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #fef3c7;
    border-radius: 6px;
    color: #b45309;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.ppa-feat-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.ppa-feat-desc {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ppa-feat-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
}

.ppa-feat-bullets li {
    position: relative;
    padding-left: 22px;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.45;
}

.ppa-feat-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 800;
}

/* 4. Rules Showcase Grid */
.ppa-rules-section {
    padding: 80px 0;
    background: #ffffff;
}

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

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

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

.ppa-rule-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 18px;
    text-align: center;
    transition: all 0.2s ease;
}

.ppa-rule-card:hover {
    background: #ffffff;
    border-color: #f59e0b;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.15);
}

.ppa-rule-emoji {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

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

.ppa-rule-desc {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

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

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

.ppa-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.ppa-faq-item.is-open {
    border-color: #f59e0b;
}

.ppa-faq-btn {
    width: 100%;
    padding: 18px 22px;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
}

.ppa-faq-btn svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

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

.ppa-faq-answer {
    padding: 0 22px 20px;
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.6;
    display: none;
}

.ppa-faq-item.is-open .ppa-faq-answer {
    display: block;
}

/* 6. CTA Conversion Banner */
.ppa-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #090e17 0%, #17223b 100%);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ppa-cta-card {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.ppa-cta-title {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: #ffffff;
}

.ppa-cta-sub {
    font-size: 1.0625rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 30px;
}

.ppa-cta-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

