/* Math facts practice landing page */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mfp-hero-cta {
    max-width: 360px;
}

.mfp-hero-cta .btn-hero-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.92);
    height: 56px;
    font-size: 1.25rem;
    box-shadow: none;
}

.mfp-hero-cta .btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: #ffffff;
}

/* Educational prose — topical depth for SEO */
.mfp-prose-section {
    padding: 5rem 1.5rem;
    background: #ffffff;
    color: #385880;
    position: relative;
    z-index: 1;
}

.mfp-prose {
    max-width: 44rem;
    margin: 0 auto;
}

.mfp-prose h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-align: center;
    line-height: 1.2;
}

.mfp-prose h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

.mfp-prose p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-weight: 500;
}

.mfp-prose strong {
    font-weight: 700;
}

/* Comparison table */
.mfp-compare {
    padding: 5rem 1.5rem 4rem;
    background: #f8f9fa;
    color: #385880;
    position: relative;
    z-index: 1;
}

.mfp-compare h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.mfp-compare-table-wrap,
.mfp-grades-table-wrap {
    max-width: 960px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    background: #ffffff;
}

.mfp-compare-table,
.mfp-grades-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    line-height: 1.5;
}

.mfp-compare-table th,
.mfp-compare-table td,
.mfp-grades-table th,
.mfp-grades-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--color-gray-300);
}

.mfp-compare-table thead th,
.mfp-grades-table thead th {
    background: rgba(48, 53, 129, 0.92);
    color: #ffffff;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
}

.mfp-compare-table thead th:last-child {
    background: #EF9F27;
    color: var(--color-cta-text);
}

.mfp-compare-table tbody th,
.mfp-grades-table tbody th {
    font-weight: 700;
    color: var(--color-gray-900);
    white-space: nowrap;
}

.mfp-compare-table tbody tr:last-child th,
.mfp-compare-table tbody tr:last-child td,
.mfp-grades-table tbody tr:last-child th,
.mfp-grades-table tbody tr:last-child td {
    border-bottom: none;
}

.mfp-compare-table tbody td:last-child {
    font-weight: 600;
    color: rgba(48, 53, 129, 1);
}

.mfp-compare-note,
.mfp-grades-more {
    max-width: 960px;
    margin: 1.25rem auto 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
}

.mfp-compare-note a,
.mfp-grades-more a,
.mfp-prose a,
.faq-answer a {
    color: var(--color-primary-dark);
    font-weight: 700;
}

/* Grade progression */
.mfp-grades {
    padding: 5rem 1.5rem 2rem;
    background: #ffffff;
    color: #385880;
    position: relative;
    z-index: 1;
}

.mfp-grades h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.mfp-grades-table tbody td a {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.mfp-steps {
    margin-top: 0;
    border-radius: 0;
    max-width: none;
}

.mfp-steps .steps-container {
    max-width: 900px;
}

/* Family / teacher split */
.mfp-audiences {
    padding: 5rem 1.5rem;
    background: #ffffff;
    color: #385880;
    position: relative;
    z-index: 1;
}

.mfp-audiences h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.mfp-audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.mfp-audience-card {
    background: #ffffff;
    border: 1px solid var(--color-gray-300);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mfp-audience-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: rgba(48, 53, 129, 1);
    margin: 0;
}

.mfp-audience-card p,
.mfp-audience-card li {
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 500;
}

.mfp-audience-card ul {
    margin: 0 0 0.5rem 1.15rem;
}

.mfp-audience-card .btn {
    width: 100%;
    max-width: none;
}

.mfp-audience-note {
    margin: 0;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #385880;
}

.mfp-store-badges {
    margin: 0.25rem 0 0;
    justify-content: center;
    flex-wrap: wrap;
}

.mfp-store-badges img {
    display: block;
    height: 44px;
    width: auto;
}

.faq-section .section-subtitle {
    margin-bottom: 2rem;
}

.faq-item.active .faq-answer {
    max-height: 640px;
}

/* Dual closing CTA */
.mfp-final-cta .mfp-final-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 720px;
}

.mfp-final-cta-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mfp-final-cta-col h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 1rem;
}

.mfp-final-cta-col .btn {
    max-width: 320px;
}

.mfp-final-cta-col .price {
    max-width: none;
}

@media screen and (max-width: 768px) {
    .mfp-prose h2,
    .mfp-compare h2,
    .mfp-grades h2,
    .mfp-audiences h2 {
        font-size: 2rem;
    }

    .mfp-prose-section,
    .mfp-compare,
    .mfp-grades,
    .mfp-audiences {
        padding: 3.5rem 1rem;
    }

    .mfp-compare-table tbody th,
    .mfp-grades-table tbody th {
        white-space: normal;
    }

    .mfp-audience-grid,
    .mfp-final-cta .mfp-final-cta-grid {
        grid-template-columns: 1fr;
    }

    .mfp-hero-cta .btn-hero-secondary {
        font-size: 1.15rem;
    }
}
