/* =====================================================================
   Holostik Digital Labs — Home hero solution slides (v6 upgrade)
   Phone demo + step callouts, recreated from the approved Claude reference.
   Loaded after hdl.css on index.html only. All classes are prefixed "hs-"
   so nothing here touches other sections of the site.
   ===================================================================== */

.hs-stage {
  --hs-navy: #0A2A5C;
  --hs-text: #33415C;
  --hs-muted: #4E586B;
  --hs-line: #E6ECF5;
  --hs-soft: #F1F5FB;
  --hs-ok: #1E7B34;
  --hs-ok-bg: #E5F6E8;
  --hs-warn: #B45309;
  --hs-warn-bg: #FEF3E2;
  --hs-warn-ink: #7A3A06;
  --hs-warn-pill: #92400E;
  --hs-phone: #0B1220;
  --hs-k: 1;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center
}

/* Stack every slide in one grid cell: the hero keeps the height of the
   tallest slide, so switching slides never makes the page jump. */
.hero[data-slider] .slides {
  display: grid
}

.hero[data-slider] .slide {
  grid-area: 1 / 1;
  position: relative;
  inset: auto
}

@media (min-width: 961px) {
  .hero[data-slider] .slide {
    grid-template-columns: minmax(0, 1fr) minmax(0, 580px);
    gap: 1.5rem
  }
}

/* ---------- Scaled 640 × 640 design canvas ---------- */
.hs-canvas {
  position: relative;
  width: calc(640px * var(--hs-k));
  height: calc(640px * var(--hs-k))
}

.hs-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 640px;
  height: 640px;
  transform: scale(var(--hs-k));
  transform-origin: 0 0
}

/* ---------- Phone ---------- */
.hs-phone {
  position: absolute;
  left: 170px;
  top: 10px;
  z-index: 1;
  width: 300px;
  height: 620px;
  box-sizing: border-box;
  border-radius: 46px;
  background: var(--hs-phone);
  padding: 10px;
  font-family: 'Poppins', system-ui, sans-serif;
  line-height: normal;
  box-shadow: 0 30px 60px rgba(3, 20, 60, .45)
}

.hs-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: #FFFFFF;
  color: var(--hs-navy);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left
}

.hs-island {
  position: absolute;
  top: 10px;
  left: 50%;
  margin-left: -45px;
  width: 90px;
  height: 24px;
  border-radius: 12px;
  background: var(--hs-phone)
}

.hs-app {
  padding: 46px 20px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--hs-line);
  font-size: 13px;
  font-weight: 600;
  color: #0A3A7A
}

.hs-app svg {
  color: var(--brand)
}

/* Only the active screen is rendered. Showing a screen restarts its
   scan line / spinner / pop animation, exactly like the reference. */
.hs-state {
  flex: 1;
  display: none;
  flex-direction: column;
  min-height: 0
}

.hs-state.is-on {
  display: flex
}

.hs-s-dark {
  background: #1A2232;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px
}

.hs-s-center {
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center
}

.hs-s-result {
  align-items: center;
  gap: 12px;
  padding: 22px 18px
}

.hs-s-alert {
  align-items: center;
  gap: 12px;
  padding: 26px 18px;
  text-align: center
}

.hs-s-list {
  gap: 12px;
  padding: 18px 16px
}

.hs-s-form {
  gap: 8px;
  padding: 14px 16px
}

/* Pack / carton / panel being scanned */
.hs-pack {
  width: 200px;
  height: 250px;
  border-radius: 14px;
  background: #EFE7DA;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px;
  box-sizing: border-box;
  gap: 12px;
  position: relative
}

.hs-pack-t {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #5E4E38
}

.hs-pack-s {
  font-size: 10px;
  color: #5E4E38
}

.hs-carton {
  width: 200px;
  height: 220px;
  border-radius: 10px;
  background: #D9C7A6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative
}

.hs-panel {
  width: 210px;
  height: 240px;
  border-radius: 12px;
  background: #2B3445;
  border: 1px solid #3E4A60;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative
}

.hs-panel-t {
  font-size: 10px;
  color: #B7C2D3;
  letter-spacing: .1em
}

.hs-label {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12)
}

.hs-label.col {
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px
}

.hs-label.tag {
  border-radius: 6px;
  box-shadow: none
}

.hs-label-t {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em
}

.hs-qr {
  width: 84px;
  height: 84px;
  display: block;
  background: #FFFFFF
}

.hs-holo {
  background: conic-gradient(from 30deg, #ff9ad5, #ffd36e, #9bf0a5, #7fd3ff, #c39bff, #ff9ad5)
}

.hs-scanline {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 52px;
  height: 2px;
  background: #9BE15D;
  box-shadow: 0 0 12px #9BE15D;
  animation: hs-scan 1.6s ease-in-out infinite alternate
}

@keyframes hs-scan {
  from {
    top: 52px
  }

  to {
    top: 200px
  }
}

.hs-hint {
  font-size: 12px;
  color: #E6ECF5;
  text-align: center
}

.hs-spin {
  width: 64px;
  height: 64px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 5px solid #E3ECF8;
  border-top-color: var(--brand);
  animation: hs-spin .9s linear infinite
}

@keyframes hs-spin {
  to {
    transform: rotate(360deg)
  }
}

.hs-pop {
  animation: hs-pop .5s cubic-bezier(.22, 1, .36, 1)
}

@keyframes hs-pop {
  0% {
    transform: scale(.6);
    opacity: 0
  }

  70% {
    transform: scale(1.08);
    opacity: 1
  }

  100% {
    transform: scale(1)
  }
}

.hs-h17 {
  font-size: 17px;
  font-weight: 600;
  color: var(--hs-navy)
}

.hs-code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  color: var(--hs-text);
  background: var(--hs-soft);
  padding: 6px 10px;
  border-radius: 6px
}

.hs-small {
  font-size: 12px;
  color: var(--hs-muted);
  max-width: 200px
}

.hs-ic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.hs-ic.ok {
  background: var(--hs-ok-bg)
}

.hs-ic.warn {
  background: var(--hs-warn-bg)
}

.hs-ok-t {
  font-size: 20px;
  font-weight: 700;
  color: var(--hs-ok)
}

.hs-warn-t {
  font-size: 18px;
  font-weight: 700;
  color: var(--hs-warn-ink);
  line-height: 1.3
}

.hs-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--hs-warn-pill);
  background: var(--hs-warn-bg);
  padding: 6px 14px;
  border-radius: 999px
}

.hs-p {
  font-size: 12px;
  color: var(--hs-text);
  line-height: 1.5
}

.hs-p13 {
  font-size: 13px;
  color: var(--hs-text);
  line-height: 1.5
}

.hs-p13 b {
  font-weight: 700
}

.hs-box {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--hs-line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px
}

.hs-box.warm {
  border-color: #F3DEC0;
  background: #FFFAF2;
  gap: 8px;
  text-align: left
}

.hs-box.blue {
  border: 2px solid var(--brand);
  gap: 10px
}

.hs-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px
}

.hs-row>span {
  color: var(--hs-muted)
}

.hs-row>b {
  color: var(--hs-navy);
  font-weight: 500;
  text-align: right
}

.hs-row>b.ok {
  color: var(--hs-ok);
  font-weight: 600
}

.hs-row>b.warn {
  color: var(--hs-warn-pill);
  font-weight: 600
}

.hs-prod {
  display: flex;
  gap: 10px;
  align-items: center
}

.hs-prod-ic {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #EFE7DA;
  display: flex;
  align-items: center;
  justify-content: center
}

.hs-prod b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--hs-navy)
}

.hs-prod span {
  display: block;
  font-size: 12px;
  color: var(--hs-muted)
}

.hs-tip {
  width: 100%;
  box-sizing: border-box;
  background: var(--hs-soft);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11.5px;
  color: var(--hs-text);
  line-height: 1.4
}

.hs-btn {
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  border-radius: 10px;
  background: var(--brand);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.hs-btn.amber {
  background: var(--hs-warn)
}

.hs-btn.h44 {
  height: 44px
}

.hs-btn.outline {
  background: #FFFFFF;
  color: var(--brand);
  border: 1px solid var(--brand)
}

.hs-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  color: var(--brand);
  font-weight: 500
}

.hs-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--hs-muted)
}

.hs-badge {
  font-size: 11px;
  font-weight: 700;
  color: #0B2A45;
  background: #9BE15D;
  padding: 3px 8px;
  border-radius: 999px
}

.hs-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px
}

.hs-tiles span {
  height: 34px;
  border-radius: 6px;
  background: #E3ECF8;
  border: 1px solid #C5D6EC;
  box-sizing: border-box
}

.hs-tiles span.more {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center
}

.hs-caption {
  font-size: 12px;
  color: var(--hs-muted);
  text-align: center
}

.hs-foot {
  margin-top: auto;
  font-size: 12px;
  color: var(--hs-text);
  background: var(--hs-soft);
  padding: 10px 12px;
  border-radius: 10px
}

/* Track & Trace timeline */
.hs-trail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-left: 4px
}

.hs-trail::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #C9E7AE
}

.hs-stop {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start
}

.hs-stop i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2F7A12;
  flex-shrink: 0;
  margin-top: 1px;
  box-sizing: border-box
}

.hs-stop.last i {
  background: #9BE15D;
  border: 3px solid #2F7A12
}

.hs-stop b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--hs-navy)
}

.hs-stop span {
  display: block;
  font-size: 12px;
  color: var(--hs-muted)
}

/* Warranty registration form */
.hs-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--hs-text)
}

.hs-input {
  height: 34px;
  box-sizing: border-box;
  border: 1px solid #D5DFEE;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 12px;
  color: var(--hs-navy);
  display: flex;
  align-items: center;
  justify-content: space-between
}

.hs-input.file {
  border: 1px dashed #8CC63F;
  background: #F6FBEF
}

.hs-input.file b {
  color: var(--hs-ok);
  font-weight: 600
}

.hs-saved {
  font-size: 11.5px;
  color: var(--hs-text);
  background: var(--hs-soft);
  padding: 6px 10px;
  border-radius: 8px;
  text-align: center
}

.hs-btns {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px
}

/* Reward amount */
.hs-amount {
  font-size: 34px;
  font-weight: 800;
  color: var(--hs-navy);
  line-height: 1
}

.hs-amount small {
  font-size: 16px;
  font-weight: 600
}

.hs-unlock {
  font-size: 14px;
  font-weight: 600;
  color: var(--hs-ok)
}

/* SmartStock (inventory) screen */
.hs-kpis {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px
}

.hs-kpis div {
  background: var(--hs-soft);
  border-radius: 8px;
  padding: 7px 6px;
  text-align: center
}

.hs-kpis span {
  display: block;
  font-size: 10px;
  color: var(--hs-muted)
}

.hs-kpis b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--hs-navy)
}

.hs-stock {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: center;
  font-size: 11.5px;
  color: var(--hs-text)
}

.hs-stock b {
  text-align: right;
  font-weight: 600;
  color: var(--hs-navy)
}

.hs-stock .bar-t {
  height: 6px;
  border-radius: 3px;
  background: #E3ECF8;
  overflow: hidden
}

.hs-stock .bar-t i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 3px;
  background: var(--brand);
  transform-origin: 0 50%;
  animation: hs-fill .9s cubic-bezier(.22, 1, .36, 1) both
}

.hs-stock.low .bar-t i {
  background: var(--hs-warn)
}

.hs-stock.low b {
  color: var(--hs-warn-pill)
}

@keyframes hs-fill {
  from {
    transform: scaleX(0)
  }

  to {
    transform: scaleX(1)
  }
}

/* ---------- Desktop / tablet step callouts ---------- */
.hs-chip {
  position: absolute;
  z-index: 2;
  width: 156px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .30);
  background: rgba(255, 255, 255, .10);
  color: #E3EEFF;
  font-family: 'Poppins', system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(3, 20, 60, .25)
}

.hs-chip.is-on {
  background: #FFFFFF;
  color: var(--hs-navy);
  border-color: #FFFFFF
}

.hs-chip:focus-visible,
.hs-card:focus-visible,
.hs-pause:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px
}

.hs-n {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1
}

.hs-c3 .hs-n {
  font-size: 13px
}

.hs-chip.is-on .hs-n {
  background: var(--lime);
  color: #062A5C
}

.hs-chip.hs-c3.is-on .hs-n {
  background: var(--hs-warn);
  color: #FFFFFF
}

.hs-chip-t {
  display: flex;
  flex-direction: column;
  min-width: 0
}

.hs-chip-t b {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3
}

.hs-chip-t span {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.35;
  opacity: .85
}

.hs-c0 {
  left: 0;
  top: 110px
}

.hs-c1 {
  left: 484px;
  top: 230px
}

.hs-c2 {
  left: 0;
  top: 400px
}

.hs-c3 {
  left: 484px;
  top: 470px
}

/* Floating notification shown on one step of each slide */
.hs-note {
  position: absolute;
  left: 484px;
  top: 40px;
  z-index: 2;
  width: 156px;
  box-sizing: border-box;
  background: #FFFFFF;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 14px 30px rgba(3, 20, 60, .3);
  display: none;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
  line-height: normal
}

.hs-stage.show-note .hs-note {
  display: flex
}

.hs-note>i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D97706;
  margin-top: 5px;
  flex-shrink: 0
}

.hs-note.green>i {
  background: #2F7A12
}

.hs-note span {
  display: block;
  font-size: 11px;
  color: var(--hs-muted);
  font-weight: 500
}

.hs-note b {
  display: block;
  font-size: 12.5px;
  color: var(--hs-navy);
  font-weight: 600;
  line-height: 1.35
}

/* ---------- Mobile step cards (2 × 2 under the phone) ---------- */
.hs-cards {
  display: none
}

.hs-card {
  cursor: pointer;
  transition: opacity .5s ease, transform .5s cubic-bezier(.22, 1, .36, 1), border-color .4s ease;
  opacity: .35;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  margin: 0;
  padding: 10px;
  border-radius: 12px;
  background: #FFFFFF;
  text-align: left;
  font-family: 'Poppins', system-ui, sans-serif;
  box-shadow: 0 18px 36px -18px rgba(3, 20, 60, .55);
  box-sizing: border-box;
  width: 100%
}

.hs-k0 {
  transform: translateX(-8px)
}

.hs-k1 {
  transform: translateX(8px)
}

.hs-k2,
.hs-k3 {
  transform: translateY(8px)
}

.hs-card.is-done {
  opacity: .6;
  transform: none
}

.hs-card.is-on {
  opacity: 1;
  transform: none;
  border-color: var(--lime)
}

.hs-card.hs-k3.is-on {
  border-color: #F59E0B
}

.hs-card-ic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #E3ECF8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.hs-card-ic.ok {
  background: var(--hs-ok-bg)
}

.hs-card-ic.warn {
  background: var(--hs-warn-bg)
}

.hs-card-t {
  display: flex;
  flex-direction: column;
  line-height: 1.4
}

.hs-card-t b {
  font-size: 13px;
  font-weight: 600;
  color: var(--hs-navy)
}

.hs-card-t span {
  font-size: 11px;
  color: var(--hs-muted)
}

/* ---------- Pause / Play control in the slider bar ---------- */
.hs-pause {
  height: 44px;
  padding: 0 16px;
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .4);
  background: transparent;
  color: #FFFFFF;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: background .3s, color .3s
}

.hs-pause:hover {
  background: #FFFFFF;
  color: var(--brand)
}

/* Inactive slides: freeze their looping animations (performance).
   Pause/Play only stops the step timer — the scan line and spinner keep
   running, exactly as in the reference. */
.slide:not(.active) .hs-stage .hs-scanline,
.slide:not(.active) .hs-stage .hs-spin {
  animation-play-state: paused
}

.hero[data-slider] .slide>* {
  min-width: 0
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .hero[data-slider] .slide {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem
  }
}

/* ---------- Mobile (matches the 390px reference) ---------- */
@media (max-width: 620px) {
  .hero[data-slider] .slide {
    gap: 2.1rem;
    align-content: start
  }

  .hs-canvas {
    width: calc(300px * var(--hs-k));
    height: calc(620px * var(--hs-k))
  }

  .hs-inner {
    width: 300px;
    height: 620px
  }

  .hs-phone {
    left: 0;
    top: 0
  }

  .hs-chip,
  .hs-stage.show-note .hs-note,
  .hs-note {
    display: none
  }

  .hs-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 22px
  }

  .hs-pause {
    height: 40px;
    padding: 0 14px;
    font-size: 12px
  }

  .hero[data-slider] .hero-pag .container {
    gap: .8rem;
    padding-right: 72px
  }
}

@media (max-width: 360px) {
  .hs-card {
    gap: 8px;
    padding: 8px
  }

  .hs-card-t b {
    font-size: 12px
  }

  .hs-card-t span {
    font-size: 10.5px
  }
}

@media (prefers-reduced-motion: reduce) {

  .hs-scanline,
  .hs-spin,
  .hs-pop,
  .hs-stock .bar-t i {
    animation: none
  }

  .hs-card {
    transition: none
  }
}

/* ---------- Solution pages: same phone demo in the top section ---------- */
.sol-hero>* {
  min-width: 0
}

.hs-solo-pause {
  margin: 14px auto 0;
  height: 40px;
  font-size: 12.5px
}

@media (max-width: 620px) {
  .hs-solo-pause {
    margin-top: 16px
  }
}
