/* ============================================================
   MATH QUIZ APP - PUBLIC INFO PAGES STYLES
   ============================================================ */

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.pi-hero {
    background: linear-gradient(135deg, #0b5ed7 0%, #1a73e8 40%, #0d47a1 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.pi-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.pi-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.pi-hero-faq {
    background: linear-gradient(135deg, #00838f 0%, #006064 100%);
}

.pi-hero-howto {
    background: linear-gradient(135deg, #e65100 0%, #bf360c 100%);
}

.pi-hero-content {
    position: relative;
    z-index: 1;
}

.pi-hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    border: 2px solid rgba(255,255,255,0.2);
}

.pi-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.pi-hero p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* ------------------------------------------------------------
   SECTION
   ------------------------------------------------------------ */
.pi-section {
    padding: 60px 0;
}

.pi-section-alt {
    background: #f8fafc;
}

.pi-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.pi-section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.pi-section-header p {
    color: #6c757d;
    font-size: 1rem;
}

/* ------------------------------------------------------------
   CARDS (About)
   ------------------------------------------------------------ */
.pi-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    border: 1px solid #e9ecef;
    height: 100%;
    transition: all 0.2s ease;
}

.pi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.pi-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 18px;
}

.pi-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.pi-card p {
    color: #5a6475;
    font-size: 0.9rem;
    line-height: 1.7;
}

.pi-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pi-list li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: #5a6475;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.pi-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: 700;
}

/* ------------------------------------------------------------
   STORY (About - Latar Belakang)
   ------------------------------------------------------------ */
.pi-story-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.pi-story-item:last-child {
    margin-bottom: 0;
}

.pi-story-item:hover {
    border-color: #0b5ed7;
    box-shadow: 0 4px 18px rgba(11,94,215,0.06);
}

.pi-story-number {
    width: 52px;
    height: 52px;
    background: #0b5ed7;
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
}

.pi-story-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.pi-story-content p {
    color: #5a6475;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* ------------------------------------------------------------
   STATS GRID
   ------------------------------------------------------------ */
.pi-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pi-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.pi-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.pi-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0b5ed7;
    letter-spacing: -1px;
}

.pi-stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 4px;
}

/* ------------------------------------------------------------
   VALUES GRID
   ------------------------------------------------------------ */
.pi-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pi-value-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.2s ease;
}

.pi-value-card:hover {
    border-color: #0b5ed7;
}

.pi-value-card i {
    font-size: 2rem;
    color: #0b5ed7;
    margin-bottom: 14px;
}

.pi-value-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.pi-value-card p {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.pi-faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.pi-faq-category {
    margin-bottom: 36px;
}

.pi-faq-category h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 14px;
}

.pi-faq-item {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e9ecef;
    margin-bottom: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.pi-faq-item:hover {
    border-color: #0b5ed7;
}

.pi-faq-question {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.92rem;
    color: #1a1a2e;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
    transition: background 0.2s;
}

.pi-faq-question:hover {
    background: #f0f6ff;
}

.pi-faq-arrow {
    color: #0b5ed7;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.pi-faq-open .pi-faq-arrow {
    transform: rotate(180deg);
}

.pi-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 20px;
    font-size: 0.88rem;
    color: #495057;
    line-height: 1.8;
    border-top: 1px solid transparent;
}

.pi-faq-open .pi-faq-answer {
    max-height: 400px;
    padding: 16px 20px;
    border-top-color: #e9ecef;
}

.pi-faq-open {
    border-color: #0b5ed7;
    box-shadow: 0 2px 12px rgba(11,94,215,0.06);
}

/* ------------------------------------------------------------
   STEPS (How to Use)
   ------------------------------------------------------------ */
.pi-steps {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.pi-steps::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #0b5ed7, #4caf50, #ff9800);
    border-radius: 2px;
}

.pi-step {
    position: relative;
    margin-bottom: 36px;
}

.pi-step:last-child {
    margin-bottom: 0;
}

.pi-step-number {
    width: 52px;
    height: 52px;
    background: #0b5ed7;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    position: absolute;
    left: -40px;
    top: 0;
    border: 4px solid #e3f2fd;
    box-shadow: 0 2px 8px rgba(11,94,215,0.2);
    z-index: 1;
}

.pi-step-content {
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #e9ecef;
    margin-left: 12px;
}

.pi-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.pi-step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.pi-step-content p {
    color: #5a6475;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.pi-step-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fff8e1;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.pi-step-tip i {
    margin-top: 2px;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .pi-hero {
        padding: 40px 0;
    }

    .pi-hero h1 {
        font-size: 1.6rem;
    }

    .pi-hero-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .pi-section {
        padding: 40px 0;
    }

    .pi-section-header h2 {
        font-size: 1.4rem;
    }

    .pi-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pi-values-grid {
        grid-template-columns: 1fr;
    }

    .pi-story-item {
        flex-direction: column;
        gap: 12px;
        padding: 18px 20px;
    }

    .pi-steps {
        padding-left: 32px;
    }

    .pi-steps::before {
        left: 20px;
    }

    .pi-step-number {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        left: -32px;
        border-width: 3px;
    }

    .pi-step-content {
        padding: 18px;
        margin-left: 6px;
    }

    .pi-faq-question {
        font-size: 0.85rem;
        padding: 14px 16px;
    }
}

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

    .pi-hero h1 {
        font-size: 1.3rem;
    }
}

/* ------------------------------------------------------------
   FOOTER SALES PORTAL BUTTON
   ------------------------------------------------------------ */
.footer-sales-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-sales-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    text-decoration: none;
}