/* ============================================================
   MOBILE RESPONSIVE STYLES
   Matches the Figma mobile design. The base style.css has no
   media queries at all (fixed desktop px widths everywhere),
   so everything below re-flows those sections for small screens.
   ============================================================ */

/* Elements that only exist for the mobile layout are hidden on
   desktop by default. */
.mobile-only {
  display: none;
}
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 900px) {

  /* ---------- global safety net ---------- */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  .homepage {
    overflow-x: hidden;
    width: 100%;
  }
  .homepage img {
    max-width: 100%;
  }

  /* ================= HEADER ================= */
  .homepage .frame {
    padding: 14px 20px;
  }
  .homepage .frame-wrapper {
    height: auto;
  }
  .homepage .div {
    position: relative;
  }
  .homepage .screenshot {
    width: 90px;
    height: 47px;
  }
  /* hide the full desktop nav links */
  .homepage .frame-2 {
    display: none;
  }
  /* hide sign in / start free, show hamburger instead */
  .homepage .frame-4 {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    width: 26px;
    height: 20px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000000;
    border-radius: 2px;
  }

  /* ================= HERO ================= */
  .homepage .group {
    height: auto;
  }
  .homepage .frame-6 {
    padding: 40px 20px 60px;
    gap: 24px;
  }
  .homepage .frame-7 {
    width: 100%;
    text-align: left;
  }
  .homepage .frame-8 {
    width: auto;
    max-width: 100%;
    height: auto;
    padding: 10px 16px;
align-self: flex-start;
     box-sizing: border-box;
  }
  .homepage .p {
    width: auto;
    height: auto;
    font-size: 13px;
    text-align: left;
  }
  .homepage .text-wrapper-5 {
    width: 100%;
    font-weight: 600;
    font-size: 34px;
    line-height: 46px;
    text-align: left;
    letter-spacing: 0;
  }
  .homepage .text-wrapper-6 {
    width: 100%;
    font-size: 18px;
    text-align: left;
    line-height: 1.5;
    padding: 0 4px;
    box-sizing: border-box;
  }
  .homepage .frame-9 {
    width: 100%;
    box-sizing: border-box;
    padding: 0 4px;
  }
  .homepage .frame-10 {
    height: auto;
    min-height: 60px;
    padding: 8px 8px 8px 14px;
  }
  .homepage .frame-11 {
    width: 100%;
    min-width: 0;
  }
  .homepage .text-wrapper-7 {
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .homepage .arrow-up-wrapper {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
  }
  .homepage .arrow-up {
    width: 28px;
    height: 28px;
    top: 4px;
    left: 4px;
  }
  /* pill row under hero search (Market Research / Identify Buyers / ...) */
  .homepage .frame-6 .frame-12 {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
    padding: 0 4px;
  }
  .homepage .frame-6 .frame-13 {
    width: calc(50% - 6px);
    box-sizing: border-box;
  }

  /* ================= STATS BAR ================= */
  .homepage .frame-14 {
    height: auto;
  }
  .homepage .frame-15 {
    position: static;
    transform: none;
    top: auto;
    left: auto;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 40px 24px;
    box-sizing: border-box;
  }
  .homepage .frame-16,
  .homepage .frame-15 .frame-12,
  .homepage .frame-20 {
    width: 100%;
    margin-right: 0;
  }
  .homepage .frame-17,
  .homepage .frame-18,
  .homepage .frame-19,
  .homepage .frame-21 {
    width: 100%;
    height: auto;
  }
  .homepage .text-wrapper-9 {
    font-size: 40px;
    line-height: 1.2;
  }

  /* ================= "THE PLATFORM" INTRO ================= */
  .homepage .frame-22 {
    height: auto;
    padding: 56px 24px 32px;
    align-items: left;
  }
  .homepage .frame-23 {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
  }
  .homepage .text-wrapper-12 {
    font-size: 22px;
    white-space: normal;
    line-height: 1.4;
    
  }
  .homepage .text-wrapper-13 {
    width: 100%;
    height: auto;
    font-size: 15px;
    line-height: 1.5;
  }
  .homepage .rectangle {
    height: auto;
    min-height: 260px;
  }
  .homepage .frame-25 {
    padding: 32px 24px 56px;
  }
  .homepage .text-wrapper-14 {
    font-size: 22px;
    white-space: normal;
    line-height: 1.4;
  }
  .homepage .stop-switching {
    width: 100%;
    font-size: 15px;
    line-height: 1.5;
  }

  /* ================= INTELLIGENCE TABS + PANELS ================= */
  .homepage .frame-27 {
    flex-direction: column;
    padding: 32px 0 0;
    gap: 0;
  }
  .homepage .frame-28 {
    width: 100%;
    height: auto;
    padding: 0 20px 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .homepage .frame-29 {
    width: max-content;
    gap: 10px;
  }
  .homepage .frame-30 {
    flex-direction: row;
    width: max-content;
    gap: 10px;
  }
  .homepage .frame-31,
  .homepage .frame-32,
  .homepage .frame-33 {
    width: max-content;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 40px;
  }
  .homepage .frame-33 {
    display: inline-flex;
  }
  .homepage .text-wrapper-15,
  .homepage .text-wrapper-16 {
    white-space: nowrap;
    font-size: 14px;
  }

  .homepage .frame-34 {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    gap: 48px;
  }

  /* every feature block wrapper */
  .homepage .element,
  .homepage .element-2,
  .homepage .group-wrapper {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-sizing: border-box;
  }
  .homepage .frame-35,
  .homepage .frame-46,
  .homepage .frame-53,
  .homepage .group-4 {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    padding: 24px 16px;
    box-sizing: border-box;
  }
  /* blocks whose DOM order is already text-then-image */
  .homepage .frame-36,
  .homepage .frame-40,
  .homepage .frame-41 {
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 24px;
  }
  /* blocks whose DOM order is image-then-text (desktop alternates
     image left/right) -- reverse so text shows first on mobile */
  .homepage .frame-47,
  .homepage .frame-54 {
    flex-direction: column-reverse;
    width: 100%;
    height: auto;
    gap: 24px;
  }
  /* Performance Intelligence block: DOM order is text, image, bullets
     but the mobile design wants text, bullets, image -- reorder via
     flex order instead of direction */
  .homepage .frame-49 {
    width: 100%;
    height: auto;
  }
  .homepage .frame-50 {
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 24px;
  }
  .homepage .frame-52 {
    order: 1;
  }
  .homepage .image-2 {
    order: 2;
  }
  .homepage .frame-42 {
    width: 100%;
    height: auto;
    margin-top: 0;
    gap: 24px;
  }
  .homepage .frame-37,
  .homepage .frame-43,
  .homepage .frame-51 {
    width: 100%;
    height: auto;
    gap: 20px;
  }
  .homepage .frame-38,
  .homepage .frame-44,
  .homepage .know-what-s-working-wrapper {
    width: 100%;
    height: auto;
    gap: 12px;
  }
  .homepage .text-wrapper-17,
  .homepage .text-wrapper-21,
  .homepage .know-what-s-working {
    font-size: 24px;
    line-height: 1.3;
  }
  .homepage .text-wrapper-18,
  .homepage .text-wrapper-22,
  .homepage .connect-market,
  .homepage .text-wrapper-25 {
    width: 100%;
    height: auto;
    font-size: 14px;
    line-height: 1.5;
  }
  .homepage .frame-39,
  .homepage .frame-45,
  .homepage .frame-52 {
    width: 100%;
    height: auto;
    gap: 24px;
  }
  .homepage .group-2,
  .homepage .group-3,
  .homepage .group-5,
  .homepage .group-6,
  .homepage .group-7,
  .homepage .group-8,
  .homepage .group-9 {
    width: 100%;
    height: auto;
    margin-right: 0;
  }
  .homepage .text-wrapper-19,
  .homepage .text-wrapper-20,
  .homepage .text-wrapper-23,
  .homepage .text-wrapper-24 {
    position: static;
    width: 100%;
    height: auto;
    font-size: 13px;
    line-height: 1.5;
  }
  .homepage .line-2,
  .homepage .line-3 {
    position: static;
    display: block;
    width: 100%;
    margin-bottom: 12px;
  }
  .homepage .chatgpt-image-jul,
  .homepage .image,
  .homepage .image-2 {
    width: 100%;
    height: auto;
  }

  /* ================= "SEE WHERE YOUR BD PROCESS STANDS" ================= */
  .homepage .frame-56 {
    height: auto;
    padding: 56px 24px 0;
  }
  .homepage .frame-57 {
    height: auto;
  }
  .homepage .text-wrapper-26 {
    font-size: 22px;
    line-height: 1.35;
  }
  .homepage .text-wrapper-27,
  .homepage .text-wrapper-38 {
    width: 100%;
    font-size: 15px;
    line-height: 1.5;
  }

  /* ================= SCORECARD SECTION ================= */
  .homepage .frame-58 {
    width: 100%;
    height: auto;
    flex-direction: column;
    padding: 32px 20px 56px;
    box-sizing: border-box;
  }
  .homepage .frame-59 {
    flex-direction: column;
    height: auto;
    width: 100%;
    gap: 40px;
  }
  .homepage .frame-60,
  .homepage .frame-61 {
    width: 100%;
    height: auto;
  }
  .homepage .frame-61 {
    gap: 24px;
  }
  .homepage .frame-64,
  .homepage .frame-72 {
    width: 100%;
    height: auto;
  }
  .homepage .frame-66 {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 4px;
    max-width: 100%;
  }
  .homepage .frame-67 {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
  }

  /* sidebar: 30% BD scorecard card + inputs */
  .homepage .group-10 {
    width: 100%;
    height: auto;
  }
  .homepage .frame-76 {
    position: static;
    width: 100%;
    height: auto;
    gap: 20px;
  }
  .homepage .frame-77,
  .homepage .frame-79 {
    height: auto;
  }
  .homepage .group-12,
  .homepage .group-13 {
    height: 48px;
  }
  .homepage .rectangle-3,
  .homepage .rectangle-4 {
    width: 100%;
    height: 100%;
  }
  .homepage .frame-73 {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 28px;
  }
  .homepage .group-11 {
    position: static;
    width: 100%;
    height: auto;
    padding: 32px 24px;
    box-sizing: border-box;
    display: block;
  }
  .homepage .frame-74 {
    width: 100%;
    height: auto;
    margin: 0;
  }
  .homepage .frame-75 {
    width: 100%;
    height: auto;
  }
  .homepage .text-wrapper-32 {
    font-size: 40px;
    height: auto;
  }
  .homepage .text-wrapper-33 {
    font-size: 24px;
  }
  .homepage .text-wrapper-34 {
    max-height: none;
    font-size: 15px;
  }
  .homepage .rectangle-2 {
    position: static;
    width: 100%;
    margin-top: 24px;
    box-sizing: border-box;
  }
  .homepage .text-wrapper-35 {
    position: static;
    display: block;
    text-align: center;
    padding: 18px 0;
  }

  /* ================= MATURITY MATRIX ================= */
  /* the desktop version is a hardcoded absolutely-positioned
     1310px-wide grid -- swap it for stacked cards on mobile */
  .homepage .frame-81 {
    display: none;
  }
  .mobile-matrix.mobile-only {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 20px 48px;
    box-sizing: border-box;
    width: 100%;
  }
  .mobile-matrix-item {
    background-color: #fafafa;
    border-radius: 8px;
    overflow: hidden;
  }
  .mobile-matrix-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
  }
  .mobile-matrix-num {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,204,0,1) 0%, rgba(153,122,0,1) 100%);
    color: #ffffff;
    font-family: "Outfit", Helvetica;
    font-weight: 600;
    font-size: 14px;
  }
  .mobile-matrix-title {
    flex: 1;
    font-family: "Outfit", Helvetica;
    font-weight: 600;
    font-size: 16px;
    color: #000000;
  }
  .mobile-matrix-chevron {
    width: 10px;
    height: 10px;
  }
  .mobile-matrix-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 16px;
  }
  .mobile-matrix-question {
    font-family: "Plus Jakarta Sans", Helvetica;
    font-size: 14px;
    color: #000000;
    margin: 0 0 4px;
  }
  .mobile-matrix-tier {
    padding: 16px;
    border-radius: 8px;
  }
  .mobile-matrix-tier p {
    margin: 8px 0 0;
    font-family: "Plus Jakarta Sans", Helvetica;
    font-size: 14px;
    line-height: 1.45;
    color: #000000;
  }
  .mobile-matrix-tier--manual { background-color: #fdf1ef; }
  .mobile-matrix-tier--growing { background-color: #fff8ea; }
  .mobile-matrix-tier--ai { background-color: #eefaf1; }
  .mobile-matrix-tag {
    display: inline-block;
    font-family: "Plus Jakarta Sans", Helvetica;
    font-weight: 500;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
  }
  .mobile-matrix-tag--manual { background-color: #f9d3cd; color: #b3261e; }
  .mobile-matrix-tag--growing { background-color: #fbe6b5; color: #8a6600; }
  .mobile-matrix-tag--ai { background-color: #c2ecd0; color: #1c6b3c; }

  /* ================= QUOTE / AWARD BANNER ================= */
  .homepage .frame-90 {
    padding: 40px 24px 0;
    gap: 32px;
  }
  .homepage .text-wrapper-62 {
    width: 100%;
    font-size: 16px;
    line-height: 1.5;
  }

  /* ================= FAQ ================= */
  .homepage .FAQ {
    height: auto;
    padding: 48px 20px;
  }
  .homepage .content {
    width: 100%;
  }
  .homepage .questions {
    padding: 0;
  }
  .homepage .divider-wrapper,
  .homepage .divider-2,
  .homepage .divider-4,
  .homepage .divider-6 {
    width: 100%;
  }
  .homepage .block-title,
  .homepage .block-title-2 {
    font-size: 15px;
    line-height: 1.4;
  }

  /* ================= FOOTER ================= */
  .homepage .frame-91 {
    height: auto;
    padding: 0;
  }
  .homepage .footer-wrapper {
    width: 100%;
    height: auto;
  }
  .homepage .footer {
    position: static;
    left: auto;
    width: 100%;
    padding: 48px 20px;
    gap: 40px;
    box-sizing: border-box;
  }
  .homepage .frame-92 {
    gap: 40px;
  }
  .homepage .subscribe-newsletter {
    width: 100%;
    margin-right: 0;
  }
  .homepage .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .homepage .text-input-field-box {
    width: 100%;
  }
  .homepage .input-field {
    width: 100%;
    box-sizing: border-box;
  }
  .homepage .button {
    width: 100%;
    justify-content: center;
  }
  .homepage .logo-links {
    width: 100%;
    margin-right: 0;
    flex-direction: column;
    gap: 32px;
  }
  .homepage .logo-socials {
    width: 100%;
  }
  .homepage .sections {
    flex-wrap: wrap;
    row-gap: 32px;
    column-gap: 24px;
  }
  .homepage .section {
    flex: 1 1 40%;
  }
  .homepage .copyright-bottom {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 380px) {
  .homepage .text-wrapper-5 {
    font-size: 30px;
    line-height: 41px;
  }
}
