/* Modulab Hero V3.3: above-the-fold copy + safe composite mockup.
   Loaded after the V3.0 and V3.2 styles. */

.ml-hero {
  overflow: clip;
  padding-block: clamp(18px, 2.4vw, 34px) 48px;
  background: var(--bg-color, #FAF9F6);
}
.ml-hero__container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.ml-hero__content {
  grid-area: auto;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.ml-hero__intro,
.ml-hero__details {
  display: block;
  min-width: 0;
  grid-area: auto;
}
.ml-hero__eyebrow {
  margin: 0 0 10px;
  line-height: 1.4;
}
.ml-hero__title {
  margin: 0;
  font-size: clamp(32px, 5.5vw, 62px);
  line-height: 1.09;
  letter-spacing: -.052em;
}
.ml-hero__details .ml-hero__description {
  margin: 15px 0 0;
  line-height: 1.55;
  font-size: clamp(14px, 1.12vw, 16px);
}
.ml-hero__microcopy {
  margin: 9px 0 0;
  line-height: 1.45;
  font-size: 12px;
}
.ml-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin-top: 18px;
}
.ml-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  padding: 11px 16px;
  font-size: 13px;
  line-height: 1.3;
}
.ml-hero__visual {
  grid-area: auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: visible;
  align-self: center;
  isolation: isolate;
}
.ml-hero__device-combo {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 720px;
  min-width: 0;
  margin-inline: auto;
  padding: 9px clamp(30px, 8%, 64px) clamp(26px, 8%, 60px) 7px;
  overflow: visible;
}
.ml-hero__desktop {
  position: relative;
  min-width: 0;
  border-radius: 14px;
}
.ml-hero__desktop-picture {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.ml-hero__desktop-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.ml-hero__phone {
  box-sizing: border-box;
  position: absolute;
  z-index: 2;
  right: clamp(7px, 1.5%, 14px);
  bottom: clamp(7px, 1.5%, 14px);
  width: clamp(92px, 25%, 172px);
  min-width: 0;
  aspect-ratio: 9 / 18;
  height: auto;
  padding: 4px;
  border: 4px solid #151B27;
  border-radius: clamp(18px, 3vw, 28px);
  overflow: hidden;
  background: #151B27;
  box-shadow: 0 16px 34px rgb(16 24 40 / 20%);
  transform: rotate(2deg);
  transform-origin: center;
  pointer-events: none;
}
.ml-hero__phone-picture {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: clamp(10px, 2vw, 18px);
}
.ml-hero__phone-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 1023px) {
  .ml-hero__container {
    grid-template-areas: none;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .ml-hero__content { order: 1; }
  .ml-hero__visual { order: 2; }
  .ml-hero__actions { flex-direction: column; }
  .ml-hero__button { width: 100%; }
}

@media (max-width: 659px) {
  .ml-hero { padding-block: 16px 36px; }
  .ml-hero__container {
    width: calc(100% - 32px);
    gap: 18px;
  }
  .ml-hero__eyebrow {
    margin-bottom: 8px;
    font-size: 9px;
    gap: 8px;
  }
  .ml-hero__title {
    font-size: clamp(30px, 7.7vw, 39px);
    line-height: 1.08;
  }
  .ml-hero__details .ml-hero__description {
    margin-top: 11px;
    font-size: 14px;
    line-height: 1.46;
  }
  .ml-hero__microcopy {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.4;
  }
  .ml-hero__actions {
    margin-top: 14px;
    gap: 8px;
  }
  .ml-hero__button {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
  }
  .ml-hero__device-combo {
    padding: 5px 32px 32px 5px;
  }
  .ml-hero__desktop { border-radius: 10px; }
  .ml-hero__browser-bar { height: 23px; }
  .ml-hero__phone {
    width: clamp(76px, 25%, 112px);
    right: 6px;
    bottom: 6px;
    border-width: 3px;
    border-radius: 17px;
    padding: 3px;
    transform: rotate(2deg);
  }
  .ml-hero__phone-notch {
    top: 5px;
    height: 6px;
  }
}

@media (min-width: 1024px) {
  .ml-hero {
    padding-block: clamp(20px, 2.7vw, 40px) clamp(36px, 3vw, 56px);
  }
  .ml-hero__container {
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    grid-template-areas: none;
    column-gap: clamp(28px, 3vw, 52px);
    row-gap: 0;
    align-items: center;
  }
  .ml-hero__content { grid-column: 1; grid-row: 1; }
  .ml-hero__visual { grid-column: 2; grid-row: 1; }
  .ml-hero__eyebrow { margin-bottom: 12px; }
  .ml-hero__title {
    font-size: clamp(41px, 3.55vw, 58px);
    line-height: 1.075;
  }
  .ml-hero__details .ml-hero__description { margin-top: 17px; }
  .ml-hero__microcopy { margin-top: 10px; }
  .ml-hero__actions {
    margin-top: 20px;
    flex-direction: row;
    gap: 10px;
  }
  .ml-hero__button { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ml-hero__button,
  .ml-hero__phone { animation: none; transition: none; }
}

/* Short mobile screens: keep the primary conversion action inside the first viewport. */
@media (max-width: 659px) and (max-height: 650px) {
  .ml-hero { padding-top: 10px; }
  .ml-hero__eyebrow { margin-bottom: 5px; }
  .ml-hero__title {
    font-size: clamp(27px, 7.35vw, 36px);
    line-height: 1.065;
  }
  .ml-hero__details .ml-hero__description {
    margin-top: 8px;
    line-height: 1.4;
  }
  .ml-hero__microcopy { margin-top: 6px; }
  .ml-hero__actions { margin-top: 10px; gap: 7px; }
  .ml-hero__button { min-height: 44px; }
}
