/* PRINTORA — Hero mobile: teks kiri, gambar kanan */
@media (max-width: 580px) {
  .hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr) !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 22px 4% 18px !important;
    min-height: 0 !important;
    border-radius: 0 0 28px 28px !important;
  }
  .hero-copy {
    min-width: 0 !important;
    max-width: none !important;
  }
  .hero .eyebrow {
    font-size: 9px !important;
    line-height: 1.25 !important;
    padding: 6px 8px !important;
    gap: 4px !important;
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(21px, 6.1vw, 29px) !important;
    line-height: 1.08 !important;
    letter-spacing: -1px !important;
    overflow-wrap: anywhere;
    margin: 12px 0 10px !important;
  }
  .hero-copy > p {
    font-size: 11px !important;
    line-height: 1.45 !important;
    margin: 10px 0 13px !important;
  }
  .hero-actions {
    gap: 7px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .hero-actions .button {
    width: 100% !important;
    min-width: 0 !important;
    padding: 10px 7px !important;
    font-size: 10px !important;
    gap: 4px !important;
    white-space: normal !important;
    text-align: center;
  }
  .hero-points {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
    margin-top: 13px !important;
  }
  .hero-art {
    min-width: 0 !important;
    width: 100% !important;
    align-self: center !important;
  }
  .hero-art img {
    width: 100% !important;
    height: auto !important;
    max-height: 280px !important;
    object-fit: contain !important;
    mix-blend-mode: normal !important;
  }
  .hero-art .floating-tag {
    left: 0 !important;
    right: 0 !important;
    bottom: 2% !important;
    padding: 6px 5px !important;
    border-radius: 9px !important;
    font-size: 8px !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }
}
@media (max-width: 360px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .78fr) !important; }
  .hero h1 { font-size: 21px !important; }
  .hero-copy > p { font-size: 10px !important; }
  .hero .eyebrow { font-size: 8px !important; }
}


/* PRINTORA mobile heading: keep the first headline phrase on one line */
@media (max-width: 580px) {
  .hero h1 {
    font-size: clamp(15px, 3.8vw, 17px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.55px !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  .hero h1:first-line { white-space: nowrap; }
}


/* Compact, controlled two-line hero heading for narrow mobile layouts */
@media (max-width: 580px) {
  .hero h1.hero-heading-compact {
    font-size: clamp(11px, 2.75vw, 13px) !important;
    line-height: 1.18 !important;
    letter-spacing: -.25px !important;
    margin: 9px 0 8px !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  .hero h1.hero-heading-compact .hero-heading-line {
    display: block !important;
    width: max-content;
    max-width: none;
    white-space: nowrap !important;
  }
  .hero h1.hero-heading-compact .hero-heading-line-second {
    color: #3b82f6;
  }
}
@media (max-width: 360px) {
  .hero h1.hero-heading-compact { font-size: 11px !important; letter-spacing: -.3px !important; }
}


/* PRINTORA hero heading: admin-configurable mobile size, original gradient accent */
@media (max-width: 580px) {
  .hero h1.hero-heading-compact {
    font-size: var(--hero-mobile-heading-size, 14px) !important;
    line-height: 1.18 !important;
    letter-spacing: -.25px !important;
  }
  .hero h1.hero-heading-compact .hero-heading-line {
    display: block !important;
    white-space: nowrap !important;
    width: max-content !important;
    max-width: none !important;
  }
  .hero h1.hero-heading-compact .hero-heading-line-first {
    color: #f8fafc !important;
  }
  .hero h1.hero-heading-compact .hero-heading-line-second {
    background: linear-gradient(90deg, #7c3aed 0%, #4f46e5 48%, #168bff 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
  }
}
@media (max-width: 360px) {
  .hero h1.hero-heading-compact { font-size: min(var(--hero-mobile-heading-size, 14px), 12px) !important; }
}


/* PRINTORA desktop hero heading: preserve mobile styles, restore spacing and gradient */
@media (min-width: 581px) {
  .hero h1.hero-heading-compact {
    font-size: clamp(32px, 3.6vw, 48px) !important;
    line-height: 1.08 !important;
    letter-spacing: -1.6px !important;
    margin: 18px 0 16px !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .hero h1.hero-heading-compact .hero-heading-line {
    display: block !important;
    width: auto;
    max-width: 100%;
    white-space: normal !important;
  }

  .hero h1.hero-heading-compact .hero-heading-line-first {
    color: #f1f3ff !important;
    -webkit-text-fill-color: #f1f3ff !important;
    background: none !important;
  }

  .hero h1.hero-heading-compact .hero-heading-line-second {
    background: linear-gradient(90deg, #7c3aed 0%, #4f46e5 48%, #168bff 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
  }
}


/* PRINTORA targeted fix: make the first hero heading readable in light mode only.
   Dark mode and the second gradient heading remain unchanged. */
html:not([data-theme="dark"]) body:not(.admin-body):not(.login-body) .hero h1.hero-heading-compact .hero-heading-line-first {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  background: none !important;
  opacity: 1 !important;
}
