#website-packages #packages {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

#website-packages .homepage-includes-panel {
  margin-top: 2rem;
  padding: 0;
  overflow: hidden;
  max-width: 100%;
  border: 1px solid rgba(0, 123, 255, 0.22);
  background: linear-gradient(135deg, #050508 0%, #0a1424 42%, #050508 100%);
  box-shadow:
    0 0 0 1px rgba(0, 210, 255, 0.06) inset,
    0 18px 48px rgba(0, 0, 0, 0.45);
}

#website-packages .homepage-includes-panel__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10.5rem, 36%);
  align-items: center;
  gap: 0;
  min-width: 0;
}

#website-packages .homepage-includes-panel .starter-included-panel__content {
  padding: 1.25rem 1.35rem 1.35rem;
}

#website-packages .homepage-includes-panel h4 {
  color: #7ec8ff;
  text-align: left;
  margin-bottom: 0.75rem;
}

#website-packages .homepage-includes-panel .starter-included-panel__list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300D2FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

#website-packages .homepage-includes-panel .starter-included-panel__cta {
  margin: 1.1rem 0 0;
  text-align: left;
}

#website-packages .homepage-includes-panel__visual {
  min-height: 12.5rem;
  min-width: 10.5rem;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-left: 1px solid rgba(0, 123, 255, 0.14);
}

#website-packages .homepage-includes-panel__visual svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  max-width: 100%;
}

/* Inclusion chip loop — JS adds .is-armed then .is-live via IntersectionObserver */
.hip-inclusion-flow {
  --hip-cyan: #00d2ff;
  --hip-blue: #007bff;
  --hip-loop: 10s;
}

.hip-inclusion-flow .hip-chip {
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hip-inclusion-flow .hip-chip > rect:first-of-type {
  transition: stroke-opacity 0.35s ease, stroke-width 0.35s ease;
}

.hip-inclusion-flow.is-armed .hip-chip {
  opacity: 0;
  transform: translateX(-10px);
}

.hip-inclusion-flow.is-live .hip-chip {
  opacity: 0.32;
  transform: translateX(0);
}

/* 10s loop: each chip spotlights for 2s (20% window) — indices 1→5 in DOM order */
.hip-inclusion-flow.is-live .hip-spine-pulse {
  animation: hip-spine-travel var(--hip-loop) ease-in-out infinite;
}

.hip-inclusion-flow.is-live .hip-chip-1 { animation: hip-chip-spot-1 var(--hip-loop) ease-in-out infinite; }
.hip-inclusion-flow.is-live .hip-chip-2 { animation: hip-chip-spot-2 var(--hip-loop) ease-in-out infinite; }
.hip-inclusion-flow.is-live .hip-chip-3 { animation: hip-chip-spot-3 var(--hip-loop) ease-in-out infinite; }
.hip-inclusion-flow.is-live .hip-chip-4 { animation: hip-chip-spot-4 var(--hip-loop) ease-in-out infinite; }
.hip-inclusion-flow.is-live .hip-chip-5 { animation: hip-chip-spot-5 var(--hip-loop) ease-in-out infinite; }

@keyframes hip-chip-spot-1 {
  0%, 11%, 21%, 100% { opacity: 0.32; transform: translateX(0) scale(1); filter: none; }
  2%, 10% { opacity: 1; transform: translateX(6px) scale(1.045); filter: drop-shadow(0 0 6px rgba(0, 210, 255, 0.55)) drop-shadow(0 0 14px rgba(0, 123, 255, 0.35)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)); }
}

@keyframes hip-chip-spot-2 {
  0%, 21%, 31%, 100% { opacity: 0.32; transform: translateX(0) scale(1); filter: none; }
  22%, 30% { opacity: 1; transform: translateX(6px) scale(1.045); filter: drop-shadow(0 0 6px rgba(0, 210, 255, 0.55)) drop-shadow(0 0 14px rgba(0, 123, 255, 0.35)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)); }
}

@keyframes hip-chip-spot-3 {
  0%, 41%, 51%, 100% { opacity: 0.32; transform: translateX(0) scale(1); filter: none; }
  42%, 50% { opacity: 1; transform: translateX(6px) scale(1.045); filter: drop-shadow(0 0 6px rgba(0, 210, 255, 0.55)) drop-shadow(0 0 14px rgba(0, 123, 255, 0.35)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)); }
}

@keyframes hip-chip-spot-4 {
  0%, 61%, 71%, 100% { opacity: 0.32; transform: translateX(0) scale(1); filter: none; }
  62%, 70% { opacity: 1; transform: translateX(6px) scale(1.045); filter: drop-shadow(0 0 6px rgba(0, 210, 255, 0.55)) drop-shadow(0 0 14px rgba(0, 123, 255, 0.35)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)); }
}

@keyframes hip-chip-spot-5 {
  0%, 81%, 91%, 100% { opacity: 0.32; transform: translateX(0) scale(1); filter: none; }
  82%, 90% { opacity: 1; transform: translateX(6px) scale(1.045); filter: drop-shadow(0 0 6px rgba(0, 210, 255, 0.55)) drop-shadow(0 0 14px rgba(0, 123, 255, 0.35)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)); }
}

/* Spine pulse — same 20% windows as chip spotlights (chip N at translateY (N-1)*40px) */
@keyframes hip-spine-travel {
  0%, 11%, 21%, 100% { transform: translateY(0); opacity: 0.35; }
  2%, 10% { transform: translateY(0); opacity: 1; }

  21%, 31% { transform: translateY(40px); opacity: 0.35; }
  22%, 30% { transform: translateY(40px); opacity: 1; }

  41%, 51% { transform: translateY(80px); opacity: 0.35; }
  42%, 50% { transform: translateY(80px); opacity: 1; }

  61%, 71% { transform: translateY(120px); opacity: 0.35; }
  62%, 70% { transform: translateY(120px); opacity: 1; }

  81%, 91% { transform: translateY(160px); opacity: 0.35; }
  82%, 90% { transform: translateY(160px); opacity: 1; }
}

.hip-inclusion-flow.is-live .hip-chip-1 > rect:first-of-type { animation: hip-chip-border-1 var(--hip-loop) ease-in-out infinite; }
.hip-inclusion-flow.is-live .hip-chip-2 > rect:first-of-type { animation: hip-chip-border-2 var(--hip-loop) ease-in-out infinite; }
.hip-inclusion-flow.is-live .hip-chip-3 > rect:first-of-type { animation: hip-chip-border-3 var(--hip-loop) ease-in-out infinite; }
.hip-inclusion-flow.is-live .hip-chip-4 > rect:first-of-type { animation: hip-chip-border-4 var(--hip-loop) ease-in-out infinite; }
.hip-inclusion-flow.is-live .hip-chip-5 > rect:first-of-type { animation: hip-chip-border-5 var(--hip-loop) ease-in-out infinite; }

@keyframes hip-chip-border-1 {
  0%, 11%, 21%, 100% { stroke-opacity: 0.4; stroke-width: 1; }
  2%, 10% { stroke-opacity: 1; stroke-width: 1.6; stroke: #00d2ff; }
}

@keyframes hip-chip-border-2 {
  0%, 21%, 31%, 100% { stroke-opacity: 0.4; stroke-width: 1; }
  22%, 30% { stroke-opacity: 1; stroke-width: 1.6; stroke: #00d2ff; }
}

@keyframes hip-chip-border-3 {
  0%, 41%, 51%, 100% { stroke-opacity: 0.4; stroke-width: 1; }
  42%, 50% { stroke-opacity: 1; stroke-width: 1.6; stroke: #00d2ff; }
}

@keyframes hip-chip-border-4 {
  0%, 61%, 71%, 100% { stroke-opacity: 0.4; stroke-width: 1; }
  62%, 70% { stroke-opacity: 1; stroke-width: 1.6; stroke: #00d2ff; }
}

@keyframes hip-chip-border-5 {
  0%, 81%, 91%, 100% { stroke-opacity: 0.4; stroke-width: 1; }
  82%, 90% { stroke-opacity: 1; stroke-width: 1.6; stroke: #00d2ff; }
}

@media (prefers-reduced-motion: reduce) {
  .hip-inclusion-flow .hip-chip,
  .hip-inclusion-flow .hip-chip > rect:first-of-type,
  .hip-inclusion-flow .hip-spine-pulse {
    animation: none !important;
    opacity: 0.85 !important;
    transform: none !important;
    filter: none !important;
    stroke-opacity: 0.6 !important;
    stroke-width: 1 !important;
  }
}

/* Narrow mobile only: stack copy above centred chip animation */
@media (max-width: 640px) {
  #website-packages .homepage-includes-panel__layout {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  #website-packages .homepage-includes-panel .starter-included-panel__content {
    padding: 1rem 1rem 0.85rem;
  }

  #website-packages .homepage-includes-panel .starter-included-panel__cta {
    margin-top: 0.85rem;
  }

  #website-packages .homepage-includes-panel__visual {
    width: 100%;
    max-width: min(18rem, 92%);
    min-width: 0;
    margin: 0 auto;
    min-height: 9.5rem;
    border-left: none;
    border-top: 1px solid rgba(0, 123, 255, 0.14);
  }

  #website-packages .homepage-includes-panel__visual svg {
    min-height: 9.5rem;
    max-height: 11rem;
  }
}
