/* Homepage phone layout: keep animated desktop treatments from becoming overflow or repeated content. */
@media (max-width: 620px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  /* Attendance triggers belong to their sections on phones; none may cover the viewport. */
  body.home .attendance-launch {
    position: static !important;
    inset: auto !important;
    transform: none !important;
  }

  .salient-hero-frame {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 24px 16px 0 !important;
  }

  .admin-bar .salient-hero-frame {
    height: auto !important;
  }

  .salient-hero-copy .os-kicker {
    margin-bottom: 12px !important;
    font-size: 8px !important;
    letter-spacing: .12em !important;
  }

  .salient-hero-copy h1 {
    max-width: 370px;
    font-size: clamp(38px, 11vw, 50px) !important;
    line-height: .96 !important;
    letter-spacing: -.058em !important;
  }

  .salient-hero-aside > p {
    max-width: 360px;
    margin-top: 14px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .salient-hero-actions {
    width: min(100%, 380px) !important;
    margin-top: 18px !important;
    gap: 10px !important;
    flex-direction: column !important;
  }

  .hero-primary,
  .hero-secondary {
    width: 100% !important;
    min-height: 48px !important;
    padding: 0 18px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }

  .salient-product {
    width: calc(100% + 16px) !important;
    max-width: none !important;
    margin: 28px -8px 0 !important;
    transform: none !important;
    animation: hajiriMobileProductIn .7s .18s cubic-bezier(.16,1,.3,1) both !important;
    will-change: auto !important;
  }

  .salient-product.motion-ready,
  .salient-product:hover {
    transform: none !important;
  }

  .salient-product .os-product,
  .salient-product .hr-product {
    animation: none !important;
    transform: none !important;
  }

  .salient-product .os-window {
    min-width: 0 !important;
    min-height: 350px !important;
    margin: 0 !important;
    transform: none !important;
    border-radius: 14px 14px 0 0 !important;
  }

  .salient-product .os-window > header {
    height: 50px !important;
    padding: 0 14px !important;
  }

  .salient-product .os-window > section {
    min-height: 290px !important;
    padding: 14px 12px !important;
  }

  .salient-product .os-window-title h2 {
    font-size: 20px !important;
  }

  .salient-product .os-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .salient-product .os-flow article {
    min-width: 0 !important;
    padding: 14px 12px !important;
  }

  .salient-product .os-flow article:nth-child(3) {
    display: none !important;
  }

  .salient-product .os-board {
    margin-top: 8px !important;
  }

  .hajiri-brand-particles span:nth-child(2),
  .hajiri-brand-particles span:nth-child(4) {
    display: none !important;
  }

  .hajiri-brand-particles span:nth-child(1) {
    left: -120px !important;
    width: 220px !important;
    height: 220px !important;
  }

  .hajiri-brand-particles span:nth-child(3) {
    right: -115px !important;
    width: 205px !important;
    height: 205px !important;
  }

  .customer-proof {
    padding: 28px 0 30px !important;
    overflow: hidden !important;
  }

  .customer-proof .wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  .customer-proof .customer-proof-copy,
  .customer-proof .customer-logo-slider,
  .customer-proof .customer-logo-track,
  .customer-proof .customer-logo-set,
  .customer-proof .customer-logo {
    margin-top: 0 !important;
  }

  .customer-proof .customer-logo-slider {
    width: calc(100% + 16px) !important;
    min-width: 0 !important;
    margin-right: -16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 16px 8px 0 !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
  }

  .customer-proof .customer-logo-slider::-webkit-scrollbar {
    display: none;
  }

  .customer-proof .customer-logo-track {
    display: block !important;
    width: max-content !important;
    animation: none !important;
    transform: none !important;
  }

  .customer-proof .customer-logo-set {
    display: flex !important;
    width: max-content !important;
    gap: 10px !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
  }

  .customer-proof .customer-logo-set[aria-hidden="true"] {
    display: none !important;
  }

  .customer-proof .customer-logo {
    width: 142px !important;
    min-width: 142px !important;
    min-height: 52px !important;
    padding: 10px 12px !important;
    flex-wrap: nowrap !important;
    scroll-snap-align: start;
  }

  .customer-proof-note {
    max-width: 360px;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .live-attendance-ribbon {
    padding: 54px 0 !important;
    overflow: hidden !important;
  }

  .live-attendance-ribbon .wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  .live-attendance-ribbon h2 {
    max-width: 360px;
    margin: 12px 0 10px !important;
    font-size: clamp(34px, 10vw, 46px) !important;
    line-height: 1 !important;
  }

  .live-attendance-ribbon p {
    max-width: 360px;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .live-demo-cta {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    grid-template-columns: 42px minmax(0, 1fr) 22px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 390px !important;
    min-height: 70px !important;
    margin: 0 !important;
    padding: 11px 13px !important;
    border-radius: 15px !important;
    column-gap: 11px !important;
    transform: none !important;
    box-shadow: 0 14px 32px rgba(0,0,0,.24) !important;
  }

  .live-demo-cta .mini-liquid-mark {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
  }

  .live-demo-cta .mini-liquid-mark img {
    width: 34px !important;
  }

  .live-demo-cta b {
    font-size: 14px !important;
  }

  .live-demo-cta small {
    font-size: 10px !important;
  }

  .live-demo-cta em {
    font-size: 19px !important;
  }
}

@keyframes hajiriMobileProductIn {
  from { opacity: 0; translate: 0 28px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 380px) {
  .salient-hero-frame {
    padding-inline: 12px !important;
  }

  .salient-product {
    width: calc(100% + 8px) !important;
    margin-inline: -4px !important;
  }

  .salient-product .os-flow article {
    padding: 12px 9px !important;
  }
}

@media (min-width: 621px) and (max-width: 900px) {
  .salient-hero-frame {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
  }

  .salient-product {
    width: min(88vw, 760px) !important;
  }

  .customer-proof .customer-logo-set[aria-hidden="true"] {
    display: none !important;
  }

  .customer-proof .customer-logo-track {
    width: 100% !important;
    animation: none !important;
  }

  .customer-proof .customer-logo-set {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .salient-product {
    animation: none !important;
  }
}
