/* ==========================================================================
 *  LANDING MOBILE OVERFLOW FIX  (v3 — hero root-cause)
 *  Σε κινητό η αρχική κόβεται δεξιά: το hero grid διευρύνεται από το lp-dash mock
 *  (min-width:auto στα grid children) + τα CTA κουμπιά (nowrap + min-width 180px).
 *  Scoped στη landing (.auth--home). Φορτώνεται ΤΕΛΕΥΤΑΙΟ.
 * ========================================================================== */

/* 1) Global guard — τίποτα δεν σπρώχνει τη σελίδα οριζόντια */
html, body { max-width: 100%; overflow-x: clip; }
.auth--home { max-width: 100%; overflow-x: clip; }
.lp--v3 { max-width: 100%; overflow-x: clip; }

/* 2) Κανένα παιδί της landing δεν ξεπερνά το πλάτος — εκτός controlled mocks */
.auth--home *:not(.lp-dash):not(.lp-dash *):not(.lp-logomark):not(.lp-logomark *) { max-width: 100%; }
.auth--home img:not(.lp-nav__logoMark img), .auth--home svg:not(.lp-dash svg) { height: auto; }
.auth--home .lp-logomark { max-width: none; }
.auth--home .lp-hero-video__frame { max-width: 100%; }

/* 3) Hero — root cause: grid children δεν συρρικνώνονται κάτω από το mock */
.lp-v3-hero__inner,
.lp-v3-hero__copy,
.lp-v3-hero__visual {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.lp-v3-hero__title,
.lp-v3-hero__sub,
.lp-v3-hero__badge {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.lp-v3-hero__sub {
  margin-left: auto;
  margin-right: auto;
}

/* 4) CTA — στοιβαγμένα, πλήρες πλάτος, χωρίς nowrap overflow */
@media (max-width: 640px) {
  .lp-v3-hero__cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .lp--v3 .lp-v3-hero__cta .ds-btn {
    min-width: 0 !important;
    width: 100%;
    white-space: normal;
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
  }
  .lp-v3-hero__title {
    font-size: clamp(26px, 7.5vw, 36px) !important;
    line-height: 1.12;
    letter-spacing: -.03em;
  }
  .lp-v3-hero__sub {
    font-size: 15px;
    line-height: 1.55;
  }
  .lp-v3-hero__metricCards {
    max-width: 100%;
    width: 100%;
  }
}

/* 5) Hero browser mock — responsive ώστε να μην διευρύνει το grid */
@media (max-width: 959px) {
  .lp-v3-hero__visual {
    max-width: 100%;
    overflow: hidden;
  }
  .lp-v3-hero__visual .lp-v3-browser--hero,
  .lp-v3-hero__visual .lp-hero-visual,
  .lp-v3-hero__visual .lp-dash {
    max-width: 100%;
    width: 100%;
  }
  .lp-v3-hero__visual .lp-dash__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .lp-v3-hero__visual .lp-dash__body {
    grid-template-columns: 1fr !important;
  }
  .lp-v3-hero__visual .lp-dash__side {
    display: none;
  }
  .lp-v3-hero__visual .lp-dash__cols {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .lp-v3-hero__visual {
    display: none;
  }
}

/* 6) Στενές οθόνες: grids templates/orgs → 1 στήλη */
@media (max-width: 640px) {
  .auth--home *:has(> [class*="tcard"]),
  .auth--home *:has(> [class*="tpl"]),
  .auth--home *:has(> [class*="vert"]),
  .auth--home [style*="grid-template-columns"]:not(.lp-v3-hero__metricCards):not(.lp-dash__stats):not(.lp-dash__cols) {
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
  }

  .auth--home [class*="tcard"],
  .auth--home [class*="tpl"] {
    min-width: 0 !important;
    width: 100% !important;
  }

  .auth--home h1, .auth--home h2 {
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .auth--home .authbar,
  .auth--home nav,
  .auth--home [class*="nav"] { flex-wrap: wrap; }
}
