/* Mobile reading flow for marketing sections authored on 1440px reference artboards. */
@media (max-width: 767px) {
  html,
  body,
  #main-content {
    width: 100%;
    max-width: 100%;
    overflow-x: clip !important;
  }

  #main-content .crewelo-section:not([data-section^="business-landing-"]) {
    min-height: 0 !important;
    height: auto !important;
    padding: 24px 20px 28px !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #main-content .crewelo-section:not([data-section^="business-landing-"]) > :has(h1, h2) {
    order: -1 !important;
  }

  #main-content .crewelo-section:not([data-section^="business-landing-"]) * {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  #main-content .crewelo-section:has([style*="width: 1440px"], [style*="width: 1354px"], [style*="width: 1505px"]) {
    width: 100%;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 20px 28px !important;
    overflow: visible !important;
    box-sizing: border-box;
  }

  #main-content .crewelo-section :is([style*="width: 1440px"], [style*="width: 1354px"], [style*="width: 1505px"]) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 24px 0 0 !important;
    overflow: visible !important;
    box-sizing: border-box;
  }

  #main-content .crewelo-section [style*="position: absolute"] {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 16px !important;
    transform: none !important;
    box-sizing: border-box;
  }

  #main-content .crewelo-section [style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  #main-content .crewelo-section :is(h1, h2) {
    width: auto !important;
    max-width: 100% !important;
    font-size: clamp(32px, 9vw, 42px) !important;
    line-height: 1.04 !important;
    margin: 0 0 16px !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  #main-content .crewelo-section h3 {
    max-width: 100% !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  #main-content .crewelo-section p {
    max-width: 100% !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  #main-content .crewelo-section :is(img, video, svg) {
    max-width: 100% !important;
    height: auto !important;
  }

  #main-content .crewelo-section img[alt=""][src*="/transparent/"] {
    display: none !important;
  }

  #main-content .crewelo-section :is(a, button, input, select, textarea) {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  #main-content .crewelo-section :is(a, button) {
    min-height: 44px;
    white-space: normal !important;
  }

  #main-content .crewelo-section [style*="white-space: nowrap"] {
    white-space: normal !important;
  }

  #main-content .crewelo-section > :is([style*="width: 1440px"], [style*="width: 1354px"], [style*="width: 1505px"]) {
    display: flex !important;
    flex-direction: column !important;
  }

  #main-content .crewelo-section > :is([style*="width: 1440px"], [style*="width: 1354px"]) > :has(h1, h2) {
    order: -1 !important;
  }

  #main-content .crewelo-section:has([style*="width: 1440px"], [style*="width: 1354px"], [style*="width: 1505px"]) > *,
  #main-content .crewelo-section:has([style*="width: 1440px"], [style*="width: 1354px"], [style*="width: 1505px"]) * {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

@media (min-width: 768px) and (max-width: 1439px) {
  #main-content [data-section^="home-"] {
    min-height: 0 !important;
    height: auto !important;
  }

  #main-content [data-section^="home-"] > [data-role="home-artboard"] {
    zoom: calc(100vw / 1440px);
  }

  #main-content .crewelo-section:has(> [style*="width: 1440px"], > [style*="width: 1354px"], > [style*="width: 1505px"]) {
    min-height: 0 !important;
    height: auto !important;
  }

  #main-content .crewelo-section > :is([style*="width: 1440px"], [style*="width: 1354px"]) {
    zoom: calc(100vw / 1440px);
  }

  #main-content .crewelo-section > [style*="width: 1505px"] {
    zoom: calc(100vw / 1505px);
  }

  .lg-footer {
    height: auto !important;
    min-height: 0 !important;
    padding: 24px !important;
  }

  .crewelo-footer-card {
    width: 100% !important;
    max-width: 1426px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 22px 28px 18px !important;
    gap: 28px;
  }

  .crewelo-footer-card [data-role="footer-links"] {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px 20px !important;
  }

  .crewelo-footer-card [data-role="footer-brand"] {
    grid-column: span 2;
  }

  .crewelo-footer-card [data-role="footer-legal"] {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
}

@media (max-width: 767px) {
  #main-content .business-pricing-artboard {
    width: 100% !important;
    padding: 4px 0 0 !important;
  }

  #main-content .business-pricing-header {
    display: block;
    min-height: 0;
    padding-bottom: 18px;
  }

  #main-content .business-pricing-header__copy {
    padding: 0 !important;
    text-align: left;
  }

  #main-content .business-pricing-header h1 {
    margin: 0 0 12px !important;
    font-size: clamp(32px, 9vw, 42px) !important;
    line-height: 1.04 !important;
  }

  #main-content .business-pricing-intro {
    margin: 0 !important;
    font-size: 14px !important;
  }

  #main-content .business-pricing-note {
    position: relative;
    inset: auto;
    margin: 16px 0 0 auto;
    transform: none;
    font-size: 14px !important;
  }

  #main-content .business-pricing-plan-grid,
  #main-content .business-pricing-category-pills,
  #main-content .business-pricing-category-photos {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #main-content .business-pricing-plan { min-height: 0; padding: 20px; }
  #main-content .business-pricing-plan h2,
  #main-content .business-pricing-category-heading h2 { font-size: 23px !important; }
  #main-content .business-pricing-plan__description { min-height: 0; margin: 0 !important; font-size: 13px !important; }
  #main-content .business-pricing-plan ul { font-size: 13px; }
  #main-content .business-pricing-plan__price { min-height: 42px; }
  #main-content .business-pricing-marketplace-note { margin: 10px 0 18px; padding: 13px 0; align-items: flex-start; font-size: 12px !important; text-align: left; }
  #main-content .business-pricing-category-heading { align-items: flex-start; flex-direction: column; padding: 12px 0 8px; }
  #main-content .business-pricing-category-pills { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 7px; }
  #main-content .business-pricing-category-pills > span { justify-content: flex-start; padding-inline: 10px; font-size: 13px; }
  #main-content .business-pricing-category-photos { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
  #main-content .business-pricing-category-photos img { height: 120px !important; }

  #main-content .marketplace-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
  #main-content .marketplace-category-grid a { min-height: 52px; flex-direction: row; justify-content: flex-start; font-size: 11px !important; }
  #main-content .marketplace-listings-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 12px; }
  #main-content .marketplace-listing-card { width: 100%; }
  #main-content .marketplace-listing-card__photo { height: 190px !important; }
  #main-content .marketplace-listing-card__body { padding: 14px; }

  #main-content .template-gallery-content { width: 100% !important; }
  #main-content .template-gallery-row-heading { align-items: flex-start; flex-wrap: wrap; gap: 7px 10px; min-height: 0; }
  #main-content .template-gallery-row-heading h3 { width: 100%; font-size: 20px !important; }
  #main-content .template-gallery-row-heading > span { font-size: 9px !important; }
  #main-content .template-gallery-row-heading a { margin-left: auto; font-size: 11px !important; }
  #main-content .template-gallery-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 12px; }
  #main-content .template-gallery-card__preview { height: 190px; }
  #main-content .template-gallery-card__details { min-height: 78px; }

  #main-content .templates-cta-artboard { width: 100% !important; height: auto !important; padding: 0 !important; }
  #main-content .templates-cta-panel {
    position: relative;
    inset: auto;
    height: auto;
    padding: 28px 22px;
    overflow: hidden;
    border-radius: 18px;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px;
  }
  #main-content .templates-cta-copy { padding-bottom: 0; }
  #main-content .templates-cta-copy h2 { font-size: 42px !important; }
  #main-content .templates-cta-copy > p:not(.templates-cta-eyebrow) { font-size: 14px !important; }
  #main-content .templates-cta-primary { min-width: 0; width: 100%; justify-content: center; }
  #main-content .templates-cta-benefits { grid-template-columns: minmax(0, 1fr) !important; gap: 14px; margin-top: 22px; padding-top: 0; }
  #main-content .templates-cta-previews { position: relative; inset: auto; top: auto; right: auto; width: 100%; height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-height: 0; }
  #main-content .templates-cta-preview { position: relative; inset: auto; width: auto; padding-bottom: 30px; transform: none; }
  #main-content .templates-cta-preview img { height: auto !important; aspect-ratio: 1.15; }
  #main-content .templates-cta-preview span { inset: auto 5px 5px; min-height: 28px; padding: 0 7px; font-size: 9px !important; }
}
