/* Mobile scale measured against webinar.gg at 390px. Keep desktop branding intact.
   ID + :where() beats saved desktop styles; explicit builder breakpoint styles win. */
@media (max-width: 767px) {
    #site-navbar > div > div { gap: 8px; }
    #site-navbar img { max-height: 36px; max-width: min(140px, 34vw) !important; }
    #site-navbar summary { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
    #site-navbar details:not([open]) > div { display: none; }
    #site-navbar details a { min-height: 44px; display: flex; align-items: center; }
    #site-navbar a.text-center { font-size: 13px; line-height: 20px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; }

    #page-builder-body :where([data-pb-section]) { min-width: 0; }
    #page-builder-body :where([data-pb-section="features"], [data-pb-section="how-it-works"], [data-pb-section="pricing"], [data-pb-section="cta"], .social-proof) {
        padding-top: 56px !important;
        padding-bottom: 56px !important;
    }
    #page-builder-body :where([data-pb-section="hero"]) { padding-top: 32px !important; padding-bottom: 56px !important; }
    #page-builder-body :where([data-pb-section="hero"]:has(+ .showcase)) { padding-bottom: 112px !important; }
    #page-builder-body :where([data-pb-section="hero"] + .showcase) { margin-top: -64px !important; padding-top: 0 !important; padding-bottom: 32px !important; }
    #page-builder-body :where(.showcase__laptop) { width: calc(100% - 32px) !important; }

    #page-builder-body :where(h1) { font-size: 30px !important; line-height: 1.1 !important; margin-bottom: 24px !important; }
    #page-builder-body :where(h2) { font-size: 36px !important; line-height: 1.25 !important; }
    #page-builder-body :where([data-pb-section="pricing"] h2) { line-height: 40px !important; }
    #page-builder-body :where([data-pb-section="trusted"] h2) { font-size: 30px !important; line-height: 1.25 !important; }
    #page-builder-body :where(h3) { font-size: 20px !important; line-height: 28px !important; }
    #page-builder-body :where(h1 span, h1 strong, h1 em, h2 span, h2 strong, h2 em, h3 span, h3 strong, h3 em) {
        font-size: inherit !important;
        line-height: inherit !important;
    }
    #page-builder-body :where([data-pb-hide-empty="subheading"], .social-proof__description, .app-promo__description) {
        font-size: 16px !important;
        line-height: 26px !important;
    }
    #page-builder-body :where([data-pb-hide-empty="subheading"] span, .social-proof__description span, .app-promo__description span) {
        font-size: inherit !important;
        line-height: inherit !important;
    }
    #page-builder-body :where([data-pb-section="hero"] p) { font-size: 14px !important; line-height: 22.75px !important; padding-top: 0 !important; margin-bottom: 28px !important; }
    #page-builder-body :where([data-pb-section="hero"] p span) { font-size: inherit !important; line-height: inherit !important; }
    #page-builder-body :where([data-pb-hide-empty="eyebrow"]) { font-size: 12px !important; padding: 6px 14px !important; margin-bottom: 20px !important; }
    #page-builder-body :where(.mb-16) { margin-bottom: 32px !important; }
    #page-builder-body :where(.social-proof__description) { margin-bottom: 32px !important; }

    #page-builder-body :where([data-mobile-actions]) { flex-direction: row !important; flex-wrap: wrap; justify-content: center; gap: 8px !important; }
    #page-builder-body :where([data-mobile-actions] > a) { width: auto !important; min-height: 44px; max-width: 100%; padding: 12px 20px !important; font-size: 12px !important; line-height: 18px !important; }
    #page-builder-body :where([data-pb-section="hero"] [data-mobile-actions] > a) { font-size: 10px !important; line-height: 15px !important; }
    #page-builder-body :where([data-mobile-actions] > a span) { font-size: inherit !important; line-height: inherit !important; }
    #page-builder-body :where([data-pb-section="hero"] .mt-8.text-sm) { margin-top: 20px !important; font-size: 11px !important; line-height: 16.5px !important; }
    #page-builder-body :where([data-pb-section="hero"] .mt-8.text-sm span) { font-size: inherit !important; line-height: inherit !important; }
    #page-builder-body :where([data-pb-key="backing-mark"], [data-pb-key="backing-mark"] img) { height: 22px !important; }

    #page-builder-body :where(.feature-card) { padding: 24px !important; }
    #page-builder-body :where(.feature-card p, [data-pb-section="how-it-works"] .grid p) { font-size: 14px !important; line-height: 22.75px !important; }
    #page-builder-body :where([data-pb-section="how-it-works"] .grid) { gap: 28px !important; }
    #page-builder-body :where([data-pb-section="how-it-works"] .grid > div > div:first-child) { width: 64px !important; height: 64px !important; margin-bottom: 16px !important; }
    #page-builder-body :where([data-pb-section="how-it-works"] .grid > div > div:first-child span) { font-size: 24px !important; line-height: 32px !important; }
    #page-builder-body :where(.pricing-card) { padding: 24px !important; }
    #page-builder-body :where(.pricing-card .text-5xl) { font-size: 40px !important; line-height: 44px !important; }
    #page-builder-body :where(.pricing-card > a) { min-height: 48px; font-size: 14px !important; line-height: 20px !important; padding: 14px 24px !important; }
    #page-builder-body :where(.pricing-card > a span) { font-size: inherit !important; line-height: inherit !important; }
    #page-builder-body :where(.social-proof__review) { width: 300px !important; flex-basis: 300px !important; max-width: 85vw; padding: 24px !important; }
    #page-builder-body :where(.social-proof__quote) { font-size: 16px !important; line-height: 26px !important; }
    #page-builder-body :where(.social-proof__name) { font-size: 14px !important; line-height: 20px !important; }
    #page-builder-body :where(.social-proof__role) { font-size: 12px !important; line-height: 18px !important; }
    #page-builder-body :where(.app-promo) { padding-top: 56px !important; padding-bottom: 40px !important; }
    #page-builder-body :where(.app-promo__panel) { width: calc(100% - 32px) !important; padding: 32px 20px 0 !important; }
    #page-builder-body :where(.app-promo__heading) { font-size: 30px !important; line-height: 36px !important; }
    #page-builder-body :where(.app-promo__phone) { margin-top: 28px !important; }

    #site-footer .footer-layout { gap: 28px; }
    #site-footer .footer-heading { margin-bottom: 16px; }
    #site-footer .footer-links a { min-height: 44px; }

    .marketplace-catalog { padding: 24px 16px 48px; gap: 0; }
    .marketplace-catalog > .marketplace-sidebar { display: none; }
    .marketplace-catalog .marketplace-mobile-title { display: block; font-size: 24px; line-height: 32px; margin: 0 0 8px; }
    .marketplace-catalog .marketplace-controls { display: grid; grid-template-columns: 48px minmax(0, 1fr) 100px; gap: 12px; }
    .marketplace-catalog .marketplace-mobile-control { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; border: 0; border-radius: 8px; background: #f0f1f6; color: #172033; font-size: 14px; }
    .marketplace-catalog #marketplace-search-toggle { order: 1; }
    .marketplace-catalog #marketplace-filter-toggle { order: 3; }
    .marketplace-catalog .marketplace-controls input,
    .marketplace-catalog .marketplace-controls select { font-size: 16px; min-height: 48px; }
    .marketplace-catalog #marketplace-search { display: none; width: 100%; order: 4; grid-column: 1 / -1; }
    .marketplace-catalog #marketplace-search.marketplace-search--open { display: block; }
    .marketplace-catalog .marketplace-sort-label { order: 2; margin: 0; width: 100%; justify-content: center; }
    .marketplace-catalog .marketplace-sort-caption { display: none; }
    .marketplace-catalog .marketplace-sort-label select { width: 100%; border: 0; background: transparent; padding: 8px; }
    .marketplace-catalog .marketplace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .marketplace-catalog .marketplace-card-image { position: relative; height: auto; flex: 0 0 auto; aspect-ratio: 4 / 3; }
    .marketplace-catalog .marketplace-card-image img { position: absolute; inset: 0; }
    .marketplace-catalog .marketplace-card .product-card-title { font-size: 14px !important; line-height: 20px !important; }
    .marketplace-catalog .marketplace-card .product-card-description { font-size: 12px !important; line-height: 18px !important; }
    .marketplace-catalog .marketplace-card .product-card-price,
    .marketplace-catalog .marketplace-card .product-card-price strong { font-size: 13px !important; }
    .marketplace-catalog .marketplace-price { flex-wrap: wrap; white-space: normal; }
    .marketplace-catalog .marketplace-card .product-card-unit { font-size: 10px !important; }
    .marketplace-catalog .marketplace-card .store-product-card-btn { display: none; }
    .marketplace-catalog .marketplace-card-body { padding: 10px; gap: 6px; }
    .marketplace-filter-dialog { position: fixed; inset: 0 0 0 auto; width: min(360px, calc(100% - 32px)); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; background: #fff; color: #172033; }
    .marketplace-filter-dialog .marketplace-sidebar { display: block; position: static; width: 100%; padding: 0 24px 24px; }
    .marketplace-filter-dialog .marketplace-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 -24px 8px; padding: 12px 16px 12px 24px; background: #f0f1f6; }
    .marketplace-filter-dialog .marketplace-filter-heading h2 { margin: 0; font-size: 18px; }
    .marketplace-filter-dialog .marketplace-sidebar .marketplace-filter-close { display: grid; place-items: center; width: 44px; min-height: 44px; margin: 0; padding: 0; font-size: 28px; color: #172033; }
    .marketplace-filter-dialog .marketplace-sidebar > button { display: block; min-height: 44px; margin: 0; padding: 8px 0; font-size: 16px; }
    .marketplace-filter-dialog button:focus-visible { outline: 2px solid #24558a; outline-offset: 3px; }
    body:has(.marketplace-filter-dialog[open]) { overflow: hidden; }
}
