/* ===== Mobile UX — marketing site (loads last in footer, ≤767px) ===== */

@media (max-width: 47.9375rem) {
  /* Fixed header + body offset */
  body.homepage,
  body.landingPage {
    margin-top: 4.3125rem !important;
  }
  .menuHeader {
    height: 4.3125rem !important;
  }
  .menuHeader .menuHeader-row.row {
    margin-inline: 0;
    justify-content: space-between;
    width: 100%;
  }
  .menuHeader .menuHeader-row.row > .menuHeader-logo,
  .menuHeader .menuHeader-row.row > .menuHeader-mobile {
    padding-inline: 0;
    flex: 0 0 auto;
  }
  .menuHeader .menuHeader-mobile {
    display: flex !important;
    align-items: center;
    margin-inline-start: 0;
  }
  .homepage .menuHeader.homepageMenuTransparent {
    background-color: #fff !important;
    border-bottom: 1px solid #f5f5f5;
  }

  /* Mobile menu toggle + drawer close */
  .mobileMenu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    margin: 0;
    border: 1px solid var(--s123-border, #d5d9de);
    border-radius: var(--s123-radius, 0.5rem);
    background: #fff;
    color: var(--s123-navy, #010b40);
    cursor: pointer;
    transition: background-color 0.15s linear, border-color 0.15s linear, color 0.15s linear, box-shadow 0.15s linear;
    box-shadow: 0 0.0625rem 0.125rem rgba(1, 11, 64, 0.05);
  }
  .mobileMenu svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  .mobileMenu:hover,
  .mobileMenu:focus-visible {
    background: #f4f8ff;
    border-color: rgba(5, 131, 242, 0.28);
    color: var(--s123-primary, #0583f2);
    outline: none;
  }
  .insidePage:not(.homepage) .menuHeader .mobileMenu {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    backdrop-filter: blur(0.375rem);
    -webkit-backdrop-filter: blur(0.375rem);
    box-shadow: none;
  }
  .insidePage:not(.homepage) .menuHeader .mobileMenu:hover,
  .insidePage:not(.homepage) .menuHeader .mobileMenu:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
  }
  .mobileMenuClose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--s123-border, #d5d9de);
    border-radius: var(--s123-radius, 0.5rem);
    background: #fff;
    color: var(--s123-navy, #010b40);
    transition: background-color 0.15s linear, border-color 0.15s linear, color 0.15s linear;
  }
  .mobileMenuClose svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  .mobileMenuClose:hover,
  .mobileMenuClose:focus-visible {
    background: #f4f8ff;
    border-color: rgba(5, 131, 242, 0.28);
    color: var(--s123-primary, #0583f2);
    outline: none;
  }

  /* Drawer */
  .mobileMenuFromSide {
    z-index: 100;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition-duration: 0.3s;
  }
  .mobileMenuFromSide ul {
    gap: 1.25rem;
  }
  .mobileMenuFromSide .mobile-menu-main-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .mobileMenuFromSide .mobile-menu-main-btns > .btn {
    flex-basis: auto;
    width: 100%;
  }

  /* Global section rhythm */
  .s123-section:not(.s123-section--compact) {
    padding-top: 3.25rem !important;
    padding-bottom: 3.25rem !important;
  }

  /* Section headings — larger on small screens */
  .s123-section-header {
    margin-bottom: 2rem !important;
  }
  .s123-section-header h3,
  .s123-section-header .s123-heading-lg {
    font-size: clamp(1.875rem, 6.5vw, 2.375rem) !important;
    line-height: 1.15;
  }

  /* Homepage + meta landing hero — text centered, visual below */
  .start-section,
  #homepageGeneratorLandingPage.start-section {
    padding-top: 2.75rem !important;
    padding-bottom: 3.5rem !important;
    background-image: none !important;
    background-color: #fff;
  }
  .start-section .site123-container > .flex,
  .start-section .site123-container > .row,
  #homepageGeneratorLandingPage .site123-container > .flex,
  #homepageGeneratorLandingPage .site123-container > .row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 2.75rem !important;
  }
  .start-section .site123-container > .flex > div:first-child,
  .start-section .site123-container > .row > div:first-child,
  #homepageGeneratorLandingPage .site123-container > .flex > div:first-child,
  #homepageGeneratorLandingPage .site123-container > .row > div:first-child {
    order: 1;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
  .start-section .site123-container > .flex > div:last-child,
  .start-section .site123-container > .row > div:last-child,
  #homepageGeneratorLandingPage .site123-container > .flex > div:last-child,
  #homepageGeneratorLandingPage .site123-container > .row > div:last-child {
    order: 2;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
  .start-section .start-content {
    margin-top: 0 !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .start-section .s123-heading-xl,
  .start-section .huge-header {
    font-size: clamp(2.125rem, 8.5vw, 2.875rem) !important;
    line-height: 1.12;
    margin-bottom: 1rem;
    text-align: center;
  }
  .start-section .start-content .s123-body,
  .start-section .start-content p {
    font-size: 1.1875rem !important;
    line-height: 1.5;
    text-align: center;
    max-width: 26rem;
    margin-inline: auto;
  }
  .start-section .start-content .btn,
  .start-section .start-content a.openLink {
    margin-top: 1.75rem;
    margin-inline: auto;
  }

  /* Feature / promo blocks */
  .oneFeature .s123-heading-md {
    font-size: clamp(1.5rem, 5vw, 1.875rem) !important;
    line-height: 1.2;
  }
  .oneFeature .s123-body,
  .oneFeature .text {
    font-size: 1.0625rem !important;
    line-height: 1.55;
  }
  .start-section .start-img,
  .start-section .start-img-ai-builder,
  #homepageGeneratorLandingPage .start-img,
  #homepageGeneratorLandingPage .start-img-ai-builder {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 0 !important;
    margin-top: 0;
    padding-top: 0;
  }
  .start-section .start-img-ai-builder .ai-app-builder-hero,
  .start-section .start-img-ai-builder svg.ai-app-builder-hero,
  #homepageGeneratorLandingPage .start-img-ai-builder .ai-app-builder-hero,
  #homepageGeneratorLandingPage .start-img-ai-builder svg.ai-app-builder-hero {
    display: block;
    width: 100%;
    max-width: min(100%, 22rem);
    height: auto;
    margin-inline: auto;
  }
  .start-section .start-img > img,
  #homepageGeneratorLandingPage .start-img > img {
    float: none !important;
    display: block;
    max-width: min(100%, 20rem);
    width: auto;
    height: auto;
    margin-inline: auto;
  }
  .start-section .mainSectionTemplateImage,
  #homepageGeneratorLandingPage .mainSectionTemplateImage {
    position: relative !important;
    top: auto !important;
    inset-inline-end: auto !important;
    width: min(100%, 18rem) !important;
    margin-inline: auto;
  }
  .start-section .mainSectionTemplateImage_1,
  .start-section .mainSectionTemplateImage_2,
  #homepageGeneratorLandingPage .mainSectionTemplateImage_1,
  #homepageGeneratorLandingPage .mainSectionTemplateImage_2 {
    display: none !important;
  }

  /* Inner-page hero */
  .landing_bigTempImage.clean,
  .s123-page-hero.clean {
    min-height: 0 !important;
    padding-top: 4rem !important;
    padding-bottom: 2.5rem !important;
    box-shadow: none !important;
  }
  .landing_bigTempImage.clean .tempText,
  .landing_bigTempImage.clean .s123-page-hero-inner,
  .s123-page-hero.clean .tempText,
  .s123-page-hero.clean .s123-page-hero-inner {
    text-align: center;
    padding-inline: 0.5rem;
  }
  .landing_bigTempImage.clean .tempText h1,
  .s123-page-hero.clean .tempText h1 {
    font-size: clamp(1.875rem, 7vw, 2.75rem) !important;
    line-height: 1.15;
  }
  .landing_bigTempImage.clean .tempText h2,
  .s123-page-hero.clean .tempText h2 {
    font-size: 0.9375rem !important;
    margin-top: 0.75rem;
    line-height: 1.5;
  }
  .landing_bigTempImage.clean + section.s123-section {
    padding-top: 2rem !important;
  }

  /* Pricing cards */
  .pricing .s123-pricing-grid > div {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    width: 100% !important;
  }
  .s123-pricing-card--popular {
    transform: none !important;
  }
  .s123-pricing-card__head {
    padding: 1.25rem 1.25rem 0.75rem;
  }
  .s123-pricing-card__price {
    padding: 1rem;
    font-size: 2.75rem !important;
  }
  .s123-pricing-card--popular .s123-pricing-card__price {
    font-size: 2.75rem !important;
    min-height: 0 !important;
  }
  .s123-pricing-card__features {
    padding: 0 1.25rem;
  }
  .s123-pricing-card__features li {
    padding: 0.375rem 0;
  }
  .s123-pricing-card__action {
    padding: 0 1.25rem 1.5rem;
  }

  /* Reviews listing (legacy allReviews grid) */
  .reviews .allReviews > div {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Template cards */
  .s123-template-card__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .s123-template-card__actions .btn {
    width: 100%;
  }

  /* SEO links */
  .s123-seo-links,
  .s123-seo-links.cloudLinks {
    columns: 1;
  }

  /* Reviews aggregate */
  .s123-reviews-aggregate {
    flex-direction: column;
    text-align: center;
  }

  /* Page intro */
  .s123-page-intro {
    padding: 1rem 1.25rem;
  }
}
