/*
SERPIFAI Research & Insights — Heading Scale and SEO Refinement V1.0.1

Purpose:
- Bring Insights typography closer to the established commercial-site scale.
- Improve scanning, line length and mobile readability.
- Keep one clear H1 per page.
- Prevent oversized editorial headings from dominating the viewport.
*/

.insights-page .ri-display {
    max-width: 18ch;
    font-size: clamp(2.55rem, 5vw, 4.8rem) !important;
    line-height: 1.01 !important;
    letter-spacing: -0.052em !important;
}

.insights-page .ri-section-title {
    max-width: 27ch;
    font-size: clamp(1.9rem, 3.25vw, 3rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.04em !important;
}

.insights-page .ri-card-title {
    max-width: 34ch;
    font-size: clamp(1.12rem, 1.55vw, 1.46rem) !important;
    line-height: 1.24 !important;
    letter-spacing: -0.022em !important;
}

.insights-page .ri-feature__copy .ri-card-title {
    max-width: 24ch;
    font-size: clamp(1.7rem, 2.7vw, 2.65rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.04em !important;
}

.insights-page .ri-article-title {
    max-width: 22ch;
    font-size: clamp(2.35rem, 4.7vw, 4.45rem) !important;
    line-height: 1.03 !important;
    letter-spacing: -0.052em !important;
}

.insights-page .ri-article h2 {
    max-width: 31ch;
    font-size: clamp(1.72rem, 2.65vw, 2.38rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.034em !important;
}

.insights-page .ri-article h3 {
    max-width: 38ch;
    font-size: clamp(1.14rem, 1.7vw, 1.42rem) !important;
    line-height: 1.24 !important;
    letter-spacing: -0.018em !important;
}

.serpifai-home-insights .ri-section-title {
    max-width: 25ch;
    font-size: clamp(1.85rem, 3vw, 2.75rem) !important;
    line-height: 1.1 !important;
}

.serpifai-home-insights .ri-card-title {
    font-size: clamp(1.08rem, 1.45vw, 1.34rem) !important;
}

@media (max-width: 760px) {
    .insights-page .ri-display {
        max-width: 20ch;
        font-size: clamp(2.35rem, 11vw, 3.35rem) !important;
    }

    .insights-page .ri-article-title {
        max-width: 23ch;
        font-size: clamp(2.15rem, 10vw, 3.25rem) !important;
    }

    .insights-page .ri-section-title,
    .serpifai-home-insights .ri-section-title {
        max-width: 28ch;
        font-size: clamp(1.72rem, 7.2vw, 2.25rem) !important;
    }

    .insights-page .ri-feature__copy .ri-card-title {
        font-size: clamp(1.55rem, 7vw, 2.05rem) !important;
    }

    .insights-page .ri-article h2 {
        max-width: 34ch;
        font-size: clamp(1.55rem, 6.8vw, 2rem) !important;
    }
}
