/* ==========================================================================
   Typography consistency layer (loaded last, after style.css / style-desktop.css)

   One type system for the whole page:
   - Titles (h1/h2):   Sarabun 800   desktop 42px  / mobile 28px  (hero h1: 32px mobile)
   - Row titles (h3):  Inter 700     desktop 28px  / mobile 24px  (the "Where Better Sleep..." style)
   - Card titles:      Inter 700     desktop 22px  / mobile 18px
   - Badges/eyebrows:  Inter 700 uppercase, 13px desktop / 12px mobile
   - Body & lists:     Inter 400, 16px
   Everything else (buttons, labels, quotes) inherits Inter.
   Font Awesome icons (<i>) are excluded so icons keep working.
   ========================================================================== */

/* 1. One body family everywhere */
html body *:not(i):not(svg) {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

/* 2. Titles: Sarabun 800 */
html body h1:not(i),
html body h2:not([class*="accordion"]):not(i),
html body .ref-faq-title,
html body .comfort-healing-title,
html body .comfort-healing-title *,
html body .main-title,
html body .main-title *,
html body .limited-offer-title,
html body .limited-offer-title * {
    font-family: "Sarabun", "Inter", sans-serif !important;
    font-weight: 800 !important;
    line-height: 1.15;
}

@media (min-width: 576px) {
    html body h1:not(i),
    html body h2:not([class*="accordion"]):not(i),
    html body .main-title,
    html body .limited-offer-title,
    html body .comfort-healing-title {
        font-size: 42px !important;
    }

    html body .ref-faq-title {
        font-size: 36px !important; /* narrow left column */
    }
}

@media (max-width: 575px) {
    html body h1:not(i),
    html body h2:not([class*="accordion"]):not(i) {
        font-size: 28px !important;
    }

    html body h1.hero-title {
        font-size: 32px !important;
    }
}

/* 3. Row titles (big h3 next to a picture) */
html body .superior-subtitle {
    font-family: "Inter", sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

@media (min-width: 576px) {
    html body .superior-subtitle { font-size: 28px !important; }
}

@media (max-width: 575px) {
    html body .superior-subtitle,
    html body .d-sm-none .features .feature-content h3,
    html body .d-sm-none .features h3 {
        font-family: "Inter", sans-serif !important;
        font-weight: 700 !important;
        font-size: 24px !important;
        line-height: 1.25;
    }
}

/* 4. Card titles: same family, weight and size everywhere */
html body .secFeat h3,
html body .comfort-feature-card-v3 h3,
html body .clinical-step-text h4,
html body .expect-box-title,
html body .comfort-healing-section h3,
html body .engineering-hero-section h4,
html body .timeline-heading {
    font-family: "Inter", sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.3;
}

@media (min-width: 576px) {
    html body .secFeat h3,
    html body .comfort-feature-card-v3 h3,
    html body .clinical-step-text h4,
    html body .expect-box-title {
        font-size: 22px !important;
    }
}

@media (max-width: 575px) {
    html body .comfort-healing-section h3,
    html body .engineering-hero-section h4,
    html body .timeline-heading,
    html body .clinical-step-text h4,
    html body .expect-box-title {
        font-size: 18px !important;
    }
}

/* 5. Eyebrow badges above titles */
html body .section-badge,
html body .superior-badge,
html body .results-badge,
html body .badge-steps,
html body .journey-badge,
html body .doctor-badge,
html body .reviews-badge {
    font-family: "Inter", sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em !important;
    font-size: 13px !important;
}

@media (max-width: 575px) {
    html body .section-badge,
    html body .superior-badge,
    html body .results-badge,
    html body .badge-steps,
    html body .journey-badge,
    html body .doctor-badge,
    html body .reviews-badge {
        font-size: 12px !important;
    }
}

/* 6. Body copy and bullet lists */
html body .superior-desc,
html body .results-subtext,
html body .comfort-healing-subtitle,
html body .journey-sub,
html body .section-description,
html body .comparison-desc,
html body .step-description,
html body .review-text,
html body .ref-faq-text,
html body .clinical-step-text p {
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.6;
}

html body .comfort-feature-card-v3 p,
html body .comfort-healing-section .card-content p {
    font-size: 15px !important;
    font-weight: 400 !important;
}

@media (max-width: 575px) {
    html body .d-sm-none .superior-list-item,
    html body .d-sm-none .features .feature-list li,
    html body .d-sm-none .step-list-item,
    html body .d-sm-none .whats-included-section li,
    html body .d-sm-none .journey-timeline-section li,
    html body .d-sm-none .features li {
        font-size: 16px !important;
        font-weight: 400 !important;
        line-height: 1.5;
    }
}
