/* Hianma commercial page — Why Hianma aligned with the approved Features composition.
   Presentation-only refinement: copy, artwork, routes, translations and product logic are untouched.
   Desktop goal: same visual rhythm as #features — copy left, artwork right, cards below —
   while keeping the complete Why Hianma section inside one useful viewport. */

body .hm-marketing #why-hianma {
  position: relative;
  z-index: 1;
  border-top: 0 !important;
  padding: 0 !important;
  min-height: calc(100svh - var(--commercial-fixed-header-height, 110px));
  background: #fff !important;
  scroll-margin-top: -18px !important;
  box-shadow: 0 -36px 0 #fff;
}

body .hm-marketing #why-hianma::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -54px;
  height: 56px;
  background: #fff;
  pointer-events: none;
  z-index: 0;
}

body .hm-marketing #why-hianma > .hm-container {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - var(--commercial-fixed-header-height, 110px));
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  row-gap: clamp(20px, 2.7vh, 28px);
  padding-top: clamp(22px, 3vh, 34px);
  padding-bottom: clamp(22px, 3vh, 34px);
}

/* Same top-band logic as Features: text on the left, approved artwork on the right. */
body .hm-marketing #why-hianma .hm-final-heading {
  width: min(1180px, 100%);
  min-height: 0 !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, .98fr) minmax(360px, 1.02fr) !important;
  grid-template-rows: auto auto auto !important;
  column-gap: clamp(48px, 6vw, 82px) !important;
  row-gap: 0 !important;
  align-items: center !important;
  align-content: center !important;
  text-align: left !important;
}

body .hm-marketing #why-hianma .hm-final-heading > .hm-final-eyebrow,
body .hm-marketing #why-hianma .hm-final-heading > h2,
body .hm-marketing #why-hianma .hm-final-heading > p {
  grid-column: 1 !important;
  max-width: 650px;
}

body .hm-marketing #why-hianma .hm-final-heading > .hm-final-eyebrow {
  margin: 0 0 4px !important;
}

body .hm-marketing #why-hianma .hm-final-heading > h2 {
  margin: 8px 0 12px !important;
  font-size: clamp(38px, 3.25vw, 50px) !important;
  line-height: 1.06 !important;
}

body .hm-marketing #why-hianma .hm-final-heading > p {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.48 !important;
}

body .hm-marketing #why-hianma .hm-final-heading::after {
  grid-column: 2 !important;
  grid-row: 1 / 4 !important;
  align-self: center !important;
  justify-self: center !important;
  width: min(100%, 400px) !important;
  margin: 0 !important;
}

/* Five cards use the same lower-band idea as Features, adapted to a balanced 3 + 2 layout. */
body .hm-marketing #why-hianma .hm-final-why-grid {
  width: min(1180px, 100%);
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

body .hm-marketing #why-hianma .hm-final-why-grid > article {
  grid-column: span 2 !important;
  min-width: 0 !important;
  min-height: 112px !important;
  padding: 14px 16px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 11px !important;
}

body .hm-marketing #why-hianma .hm-final-why-grid > article:nth-child(4) {
  grid-column: 2 / span 2 !important;
}

body .hm-marketing #why-hianma .hm-final-why-grid > article:nth-child(5) {
  grid-column: 4 / span 2 !important;
}

body .hm-marketing #why-hianma .hm-final-why-grid .hm-final-icon {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  margin: 0 !important;
  border-radius: 11px !important;
}

body .hm-marketing #why-hianma .hm-final-why-grid .hm-final-icon svg {
  width: 18px !important;
  height: 18px !important;
}

body .hm-marketing #why-hianma .hm-final-why-grid > article h3 {
  margin: 0 0 5px !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}

body .hm-marketing #why-hianma .hm-final-why-grid > article p {
  margin: 0 !important;
  font-size: 12.8px !important;
  line-height: 1.35 !important;
}

/* Short desktop/laptop screens: preserve the same composition and fit the full section. */
@media (min-width: 1121px) and (max-height: 850px) {
  body .hm-marketing #why-hianma {
    scroll-margin-top: -20px !important;
    box-shadow: 0 -42px 0 #fff;
  }

  body .hm-marketing #why-hianma::before {
    top: -62px;
    height: 64px;
  }

  body .hm-marketing #why-hianma > .hm-container {
    row-gap: 13px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  body .hm-marketing #why-hianma .hm-final-heading {
    width: min(1120px, 100%);
    grid-template-columns: minmax(0, .99fr) minmax(320px, 1.01fr) !important;
    column-gap: 42px !important;
  }

  body .hm-marketing #why-hianma .hm-final-heading > h2 {
    margin: 5px 0 8px !important;
    font-size: clamp(33px, 2.65vw, 41px) !important;
    line-height: 1.05 !important;
  }

  body .hm-marketing #why-hianma .hm-final-heading > p {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  body .hm-marketing #why-hianma .hm-final-heading::after {
    width: min(100%, 325px) !important;
  }

  body .hm-marketing #why-hianma .hm-final-why-grid {
    width: min(1120px, 100%);
    gap: 9px 11px !important;
  }

  body .hm-marketing #why-hianma .hm-final-why-grid > article {
    min-height: 100px !important;
    padding: 10px 12px !important;
    gap: 9px !important;
  }

  body .hm-marketing #why-hianma .hm-final-why-grid .hm-final-icon {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
  }

  body .hm-marketing #why-hianma .hm-final-why-grid .hm-final-icon svg {
    width: 16px !important;
    height: 16px !important;
  }

  body .hm-marketing #why-hianma .hm-final-why-grid > article h3 {
    margin-bottom: 3px !important;
    font-size: 14px !important;
  }

  body .hm-marketing #why-hianma .hm-final-why-grid > article p {
    font-size: 12px !important;
    line-height: 1.28 !important;
  }
}

@media (min-width: 900px) and (max-width: 1120px) {
  body .hm-marketing #why-hianma {
    min-height: calc(100svh - var(--commercial-fixed-header-height, 92px));
    box-shadow: 0 -28px 0 #fff;
  }

  body .hm-marketing #why-hianma::before {
    top: -40px;
    height: 42px;
  }

  body .hm-marketing #why-hianma > .hm-container {
    min-height: calc(100svh - var(--commercial-fixed-header-height, 92px));
    row-gap: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  body .hm-marketing #why-hianma .hm-final-heading {
    width: min(960px, 100%);
    grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr) !important;
    column-gap: 30px !important;
  }

  body .hm-marketing #why-hianma .hm-final-heading::after {
    width: min(100%, 300px) !important;
  }

  body .hm-marketing #why-hianma .hm-final-heading > h2 {
    font-size: clamp(31px, 3.7vw, 39px) !important;
  }

  body .hm-marketing #why-hianma .hm-final-why-grid {
    width: min(960px, 100%);
    gap: 10px !important;
  }

  body .hm-marketing #why-hianma .hm-final-why-grid > article {
    padding: 11px 12px !important;
  }
}

@media (min-width: 761px) and (max-width: 899px) {
  body .hm-marketing #why-hianma {
    min-height: calc(100svh - var(--commercial-fixed-header-height, 86px));
    box-shadow: 0 -22px 0 #fff;
  }

  body .hm-marketing #why-hianma::before {
    top: -32px;
    height: 34px;
  }

  body .hm-marketing #why-hianma > .hm-container {
    min-height: calc(100svh - var(--commercial-fixed-header-height, 86px));
    row-gap: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  body .hm-marketing #why-hianma .hm-final-heading {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(245px, .86fr) !important;
    column-gap: 24px !important;
  }

  body .hm-marketing #why-hianma .hm-final-heading::after {
    width: min(100%, 270px) !important;
  }

  body .hm-marketing #why-hianma .hm-final-why-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 12px !important;
  }

  body .hm-marketing #why-hianma .hm-final-why-grid > article,
  body .hm-marketing #why-hianma .hm-final-why-grid > article:nth-child(4) {
    grid-column: auto !important;
    min-height: 0 !important;
    padding: 11px 13px !important;
  }

  body .hm-marketing #why-hianma .hm-final-why-grid > article:nth-child(5) {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 760px) {
  body .hm-marketing #why-hianma {
    min-height: calc(100svh - var(--commercial-fixed-header-height, 70px));
    padding-top: 28px !important;
    padding-bottom: 66px !important;
    box-shadow: 0 -16px 0 #fff;
    scroll-margin-top: -8px !important;
  }

  body .hm-marketing #why-hianma::before {
    top: -22px;
    height: 24px;
  }

  body .hm-marketing #why-hianma > .hm-container {
    min-height: 0;
    display: block;
    padding-top: 0;
    padding-bottom: 0;
  }

  body .hm-marketing #why-hianma .hm-final-heading {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr !important;
    row-gap: 13px !important;
    margin-bottom: 22px !important;
  }

  body .hm-marketing #why-hianma .hm-final-heading > .hm-final-eyebrow,
  body .hm-marketing #why-hianma .hm-final-heading > h2,
  body .hm-marketing #why-hianma .hm-final-heading > p {
    grid-column: 1 !important;
    max-width: 100%;
  }

  body .hm-marketing #why-hianma .hm-final-heading > h2 {
    font-size: clamp(29px, 8vw, 37px) !important;
  }

  body .hm-marketing #why-hianma .hm-final-heading > p {
    font-size: 14px !important;
    line-height: 1.46 !important;
  }

  body .hm-marketing #why-hianma .hm-final-heading::after {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: min(90%, 320px) !important;
    margin: 3px auto 0 !important;
  }

  body .hm-marketing #why-hianma .hm-final-why-grid {
    width: 100%;
    grid-template-columns: 1fr !important;
    gap: 11px !important;
  }

  body .hm-marketing #why-hianma .hm-final-why-grid > article,
  body .hm-marketing #why-hianma .hm-final-why-grid > article:nth-child(4),
  body .hm-marketing #why-hianma .hm-final-why-grid > article:nth-child(5) {
    grid-column: 1 !important;
    min-height: 0 !important;
    padding: 13px 15px !important;
  }

  body .hm-marketing #why-hianma .hm-final-why-grid > article h3 {
    font-size: 15px !important;
  }

  body .hm-marketing #why-hianma .hm-final-why-grid > article p {
    font-size: 13px !important;
    line-height: 1.36 !important;
  }
}

body .hm-marketing:has(#why-hianma:target) .hm-header {
  border-bottom-color: transparent !important;
}
