/**
 * SCREEN 1 — Exact mobile reference match (iPhone 12 / ~390px)
 * Header · Hero · WhatsApp CTA · How It Works
 * Does NOT restyle Screen 2–4.
 */

@media (max-width: 767px) {
  /* ========== HEADER — compact like reference ========== */
  body.page-home.public-home-v2 .hp-header.pub-header {
    background: #fff !important;
    border-bottom: 1px solid rgba(15, 45, 75, 0.06) !important;
    box-shadow: none !important;
  }

  body.page-home.public-home-v2 .hp-header__inner {
    min-height: 50px !important;
    padding-block: 5px !important;
    padding-inline: 12px !important;
    gap: 6px !important;
  }

  body.page-home.public-home-v2 .hp-brand__logo {
    max-height: 38px !important;
    max-width: min(150px, 44vw) !important;
  }

  body.page-home.public-home-v2 .hp-icon-btn,
  body.page-home.public-home-v2 .pub-header .hp-icon-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }

  body.page-home.public-home-v2 .hp-icon-btn--phone {
    background: #e8f1fc !important;
    color: #0b2f5b !important;
  }

  body.page-home.public-home-v2 .hp-icon-btn--wa {
    background: #25d366 !important;
    color: #fff !important;
  }

  body.page-home.public-home-v2 .hp-lang__btn {
    min-height: 30px !important;
    padding: 3px 9px !important;
    background: #fff !important;
    border: 1px solid #d7e3f2 !important;
    color: #0b2f5b !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
  }

  /* ========== HERO — reference composition ========== */
  body.page-home.public-home-v2 .hp-hero.hp-hero--s1ref {
    padding: 0.2rem 0 0.45rem !important;
    background:
      radial-gradient(ellipse 70% 40% at 88% 12%, rgba(186, 214, 245, 0.55) 0%, transparent 70%),
      linear-gradient(180deg, #f4f8fd 0%, #ffffff 52%, #ffffff 100%) !important;
    overflow: hidden !important;
  }

  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.55rem !important;
    padding: 0.45rem 1rem 0 !important;
    min-height: 0 !important;
  }

  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__badge,
  body.page-home.public-home-v2 .hp-hero--s1ref .pub-hero__metric,
  body.page-home.public-home-v2 .hp-hero--s1ref .pub-hero__actions,
  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__nav,
  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__dots,
  body.page-home.public-home-v2 .hp-hero--s1ref .swiper-pagination.hp-hero__dots {
    display: none !important;
  }

  /* Master mobile copy on; CMS specialty titles for desktop only */
  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__title--cms,
  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__subtitle--cms {
    display: none !important;
  }

  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__title--master,
  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__subtitle--master {
    display: block !important;
  }

  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__trust-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    margin: 0 0 0.4rem !important;
    padding: 0.28rem 0.65rem !important;
    background: #e8faf0 !important;
    color: #15803d !important;
    border: 1px solid #b7efd0 !important;
    border-radius: 999px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
  }

  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__trust-badge-ico {
    width: 14px !important;
    height: 14px !important;
    color: #16a34a !important;
  }

  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__title {
    margin: 0 0 0.35rem !important;
    font-size: clamp(1.42rem, 5.8vw, 1.68rem) !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    color: #0b2f5b !important;
    letter-spacing: -0.025em !important;
  }

  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__title-main {
    display: block !important;
    color: #0b2f5b !important;
  }

  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__title-accent,
  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__hl {
    display: block !important;
    margin-top: 0.12rem !important;
    color: #1d4ed8 !important;
    font-size: 0.92em !important;
    font-weight: 800 !important;
  }

  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__subtitle--master {
    margin: 0 0 0.15rem !important;
    max-width: 34ch !important;
    font-size: 0.88rem !important;
    line-height: 1.4 !important;
    color: #64748b !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Trust items — compact icon + label (not tall cards) */
  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__trust-pills {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.35rem !important;
    list-style: none !important;
    margin: 0.15rem 0 0 !important;
    padding: 0 !important;
    order: 0 !important;
  }

  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__trust-pill {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.28rem !important;
    text-align: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0.15rem 0.1rem !important;
    min-height: 0 !important;
  }

  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__trust-pill-ico {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: #eef5ff !important;
    color: #1d4ed8 !important;
    display: grid !important;
    place-items: center !important;
  }

  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__trust-pill-ico svg {
    width: 18px !important;
    height: 18px !important;
  }

  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__trust-pill span:last-child {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #0b2f5b !important;
  }

  /* Hero visual — soft blend, compact height, faces protected */
  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__visual,
  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__visual--photo,
  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__visual--s1ref {
    position: relative !important;
    width: 100% !important;
    height: 178px !important;
    max-height: 190px !important;
    min-height: 160px !important;
    margin: 0.1rem 0 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }

  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__visual::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 42% !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 88%) !important;
    pointer-events: none !important;
    z-index: 2;
  }

  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__visual picture,
  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__visual .hp-hero__img,
  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__visual img,
  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__visual picture img,
  body.page-home.public-home-v2 .pub-hero.hp-hero--s1ref .hp-hero__visual.hp-hero__visual--photo .hp-hero__img,
  body.page-home.public-home-v2 .pub-hero.hp-hero--s1ref .hp-hero__visual.hp-hero__visual--photo img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center 22% !important;
    margin: 0 !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  /* WhatsApp hero CTA removed — keep hidden if cached markup remains */
  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__wa-band,
  body.page-home.public-home-v2 .hp-hero .hp-hero__wa-band,
  body.page-home.public-home-v2 .hp-hero__wa-card {
    display: none !important;
  }

  /* ========== HOW IT WORKS — exact 4-step horizontal ========== */
  body.page-home.public-home-v2 .hp-journey.pub-p2 {
    background: #fff !important;
    padding: 0.85rem 0 1.05rem !important;
  }

  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__inner {
    padding-inline: 0.7rem !important;
  }

  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__head {
    text-align: center !important;
    margin-bottom: 0.7rem !important;
  }

  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__heading-text {
    font-size: clamp(1.28rem, 4.8vw, 1.48rem) !important;
    font-weight: 800 !important;
    color: #0b2f5b !important;
  }

  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__sub {
    margin: 0.2rem auto 0 !important;
    max-width: 24rem !important;
    text-align: center !important;
    font-size: 0.86rem !important;
    line-height: 1.35 !important;
    color: #64748b !important;
  }

  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__underline,
  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__sparkles,
  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__desc,
  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__accent,
  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__support,
  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__dots {
    display: none !important;
  }

  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__panel {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.15rem !important;
    align-items: start !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0.35rem 0 0 !important;
  }

  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__step {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0.15rem 0.1rem 0.2rem !important;
    min-height: 0 !important;
  }

  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__icon {
    position: relative !important;
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    min-height: 68px !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    margin: 0.2rem auto 0.4rem !important;
    color: #fff !important;
    box-shadow:
      0 0 0 8px rgba(29, 78, 216, 0.1),
      0 8px 16px rgba(11, 47, 91, 0.12) !important;
  }

  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__step--blue .hp-journey__icon {
    background: linear-gradient(160deg, #3b82f6, #1d4ed8) !important;
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.14), 0 8px 16px rgba(29, 78, 216, 0.18) !important;
  }
  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__step--mint .hp-journey__icon {
    background: linear-gradient(160deg, #34d399, #059669) !important;
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.14), 0 8px 16px rgba(5, 150, 105, 0.18) !important;
  }
  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__step--purple .hp-journey__icon {
    background: linear-gradient(160deg, #a78bfa, #7c3aed) !important;
    box-shadow: 0 0 0 8px rgba(124, 58, 237, 0.12), 0 8px 16px rgba(124, 58, 237, 0.16) !important;
  }
  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__step--orange .hp-journey__icon,
  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__step--sky .hp-journey__icon {
    background: linear-gradient(160deg, #fb923c, #ea580c) !important;
    box-shadow: 0 0 0 8px rgba(234, 88, 12, 0.12), 0 8px 16px rgba(234, 88, 12, 0.16) !important;
  }

  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__icon svg {
    width: 34px !important;
    height: 34px !important;
    color: #fff !important;
  }

  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__icon svg [stroke] {
    stroke: #fff !important;
  }

  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__num {
    position: absolute !important;
    top: -2px !important;
    inset-inline-start: 50% !important;
    transform: translate(-50%, -30%) !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    display: grid !important;
    place-items: center !important;
    z-index: 3 !important;
    border: 2px solid #fff !important;
    box-shadow: 0 2px 6px rgba(11, 47, 91, 0.18) !important;
  }

  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__step--blue .hp-journey__num { background: #1d4ed8 !important; }
  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__step--mint .hp-journey__num { background: #059669 !important; }
  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__step--purple .hp-journey__num { background: #7c3aed !important; }
  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__step--orange .hp-journey__num,
  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__step--sky .hp-journey__num { background: #ea580c !important; }

  [dir="rtl"] body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__num {
    transform: translate(50%, -30%) !important;
  }

  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__label {
    font-size: 0.74rem !important;
    font-weight: 750 !important;
    line-height: 1.22 !important;
    color: #0b2f5b !important;
    margin: 0 !important;
    max-width: 11ch !important;
  }

  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__conn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 30px !important;
    inset-inline-end: -20% !important;
    width: 40% !important;
    color: #94a3b8 !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }

  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__conn i {
    display: none !important;
  }

  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__conn svg {
    width: 14px !important;
    height: 14px !important;
    opacity: 0.85 !important;
  }

  [dir="rtl"] body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__conn svg {
    transform: scaleX(-1);
  }

  body.page-home.public-home-v2 .hp-journey.pub-p2 .hp-journey__step:last-child .hp-journey__conn {
    display: none !important;
  }
}

/* Desktop: keep CMS specialty titles / images */
@media (min-width: 768px) {
  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__title--master,
  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__subtitle--master {
    display: none !important;
  }

  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__title--cms,
  body.page-home.public-home-v2 .hp-hero--s1ref .hp-hero__subtitle--cms {
    display: block !important;
  }
}
