.product-hero {
  --product-hero-navy: #102a3d;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(1500px, calc(100% - 64px));
  min-height: clamp(420px, 39vw, 544px);
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--product-hero-navy);
  color: #fff;
  font-family: Inter, Arial, sans-serif;
}

.product-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 54px 18px 54px clamp(36px, 4.6vw, 74px);
}

.product-hero .product-hero-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.product-hero-label > span {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #df321f;
}

.product-hero h1 {
  max-width: 16ch;
  min-height: 2lh;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 4.1vw, 66px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.056em;
  text-wrap: balance;
}

.product-hero .product-hero-description {
  max-width: 42ch;
  min-height: 2lh;
  margin: 19px 0 26px;
  color: #e2eaf2;
  font-size: clamp(15px, 1.27vw, 18px);
  line-height: 1.55;
  text-wrap: pretty;
}

.product-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 17px;
  border: 0;
  border-radius: 8px;
  background: #df321f;
  color: #fff;
  font: 700 13px/1.3 Inter, Arial, sans-serif;
  cursor: pointer;
}

.product-hero-button:hover { background: #c82c1c; }
.product-hero-button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.product-hero-button > [aria-hidden] { font-size: 18px; line-height: 1; }

.product-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.product-hero-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--product-hero-navy) 34%, #102a3df0 42%, #102a3d49 66%, #102a3d38 100%);
  content: "";
}

.product-hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 69%;
  height: 100%;
  object-fit: cover;
  object-position: var(--product-photo-position, center 53%);
}

.product-hero-dashboard {
  position: absolute;
  z-index: 1;
  right: 3%;
  bottom: 2%;
  width: 34%;
  height: 54%;
  object-fit: contain;
  filter: drop-shadow(0 13px 18px rgba(11, 33, 49, .28));
}

.product-hero.hrms { --product-photo-position: 72% 42%; --product-mobile-photo-position: 76% 46%; }
.product-hero.payroll { --product-photo-position: center 43%; }
.product-hero.statutory { --product-photo-position: center 40%; }

@media (max-width: 900px) {
  .product-hero { width: calc(100% - 40px); min-height: 410px; }
  .product-hero-copy { padding: 36px 18px 36px 32px; }
  .product-hero .product-hero-description { min-height: 3lh; }
  .product-hero-dashboard { width: 39%; }
}

@media (max-width: 640px) {
  .product-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr 220px;
    width: calc(100% - 32px);
    min-height: 536px;
    margin-top: 16px;
    border-radius: 20px;
  }

  .product-hero-copy { justify-content: flex-start; padding: 29px 24px 22px; }
  .product-hero h1 { max-width: 15ch; font-size: clamp(34px, 8vw, 42px); }
  .product-hero .product-hero-label { margin-bottom: 12px; }
  .product-hero .product-hero-description { margin: 13px 0 19px; }
  .product-hero-art { position: relative; grid-row: 2; margin: 0 12px 12px; overflow: hidden; border-radius: 12px; }
  .product-hero-art::after { background: linear-gradient(19deg, #102a3dbd, transparent 70%); }
  .product-hero-photo { width: 100%; object-position: var(--product-mobile-photo-position, var(--product-photo-position, center 47%)); }
  .product-hero-dashboard { right: 2%; bottom: 0; width: 56%; height: 63%; }
}

@media (max-width: 360px) {
  .product-hero-copy { padding-inline: 20px; }
}
