.hb-home-pathway-stack {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 14px;
}

.hb-home-pathway-heading {
  margin: 0;
  color: #97c15a;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.hb-home-pathway-heading-cycle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 190px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hb-home-bundle-flow .hb-home-bundle-trigger img {
  animation: hbHomeBundlePathwayPulse 10s ease-in-out infinite both;
  transform-origin: center;
}

.hb-home-bundle-flow .hb-home-bundle-node:nth-of-type(1) .hb-home-bundle-trigger img { animation-delay: 0s; }
.hb-home-bundle-flow .hb-home-bundle-node:nth-of-type(2) .hb-home-bundle-trigger img { animation-delay: 2s; }
.hb-home-bundle-flow .hb-home-bundle-node:nth-of-type(3) .hb-home-bundle-trigger img { animation-delay: 4s; }
.hb-home-bundle-flow .hb-home-bundle-node:nth-of-type(4) .hb-home-bundle-trigger img { animation-delay: 6s; }
.hb-home-bundle-flow .hb-home-bundle-node:nth-of-type(5) .hb-home-bundle-trigger img { animation-delay: 8s; }

.hb-home-lesson-trigger img {
  animation: hbHomeLessonPathwayPulse 14s ease-in-out infinite both;
  transform-origin: center;
}

.hb-home-lesson-step-1 img { animation-delay: 0s; }
.hb-home-lesson-step-2 img { animation-delay: 2s; }
.hb-home-lesson-step-3 img { animation-delay: 4s; }
.hb-home-lesson-step-4 img { animation-delay: 6s; }
.hb-home-lesson-step-5 img { animation-delay: 8s; }
.hb-home-lesson-step-6 img { animation-delay: 10s; }
.hb-home-lesson-step-7 img { animation-delay: 12s; }

.hb-home-bundle-trigger:hover img,
.hb-home-bundle-trigger:focus-visible img,
.hb-home-bundle-trigger:focus img {
  animation-play-state: paused;
}

@keyframes hbHomeBundlePathwayPulse {
  0%, 20%, 100% {
    filter: brightness(1) saturate(1);
    transform: scale(1);
  }
  5%, 15% {
    filter: brightness(1.06) saturate(1.12);
    transform: scale(1.075);
  }
  10% {
    filter: brightness(1.03) saturate(1.06);
    transform: scale(1.025);
  }
}

@keyframes hbHomeLessonPathwayPulse {
  0%, 14.285%, 100% {
    filter: brightness(1) saturate(1);
    transform: scale(1);
  }
  3.57%, 10.71% {
    filter: brightness(1.06) saturate(1.12);
    transform: scale(1.075);
  }
  7.14% {
    filter: brightness(1.03) saturate(1.06);
    transform: scale(1.025);
  }
}

.hb-home-presenter-preview {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 320px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(151, 193, 90, 0.34);
  border-radius: 18px;
  background: #ffffff;
}

.hb-home-presenter-preview::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("/assets/marketing/photos/teens-learning-square.png") center / cover no-repeat;
  content: "";
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 86% 82% at center, #000 48%, rgba(0, 0, 0, 0.78) 68%, transparent 100%);
  mask-image: radial-gradient(ellipse 86% 82% at center, #000 48%, rgba(0, 0, 0, 0.78) 68%, transparent 100%);
}

.hb-home-presenter-preview::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  content: "";
}

.hb-home-presenter-actions {
  display: grid;
  width: min(292px, calc(100% - 44px));
  gap: 14px;
}

.hb-home-presenter-link {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid rgba(73, 133, 89, 0.76);
  border-radius: 8px;
  color: #124f4f;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 9px 22px rgba(17, 77, 77, 0.2);
  transition: filter 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.hb-home-presenter-link-primary {
  background: linear-gradient(180deg, #b7dc88, #97c15a);
}

.hb-home-presenter-link-secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 223, 0.96));
}

.hb-home-presenter-link:hover,
.hb-home-presenter-link:focus-visible {
  color: #0f4545;
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(17, 77, 77, 0.26);
}

.hb-home-presenter-link:focus-visible {
  outline: 3px solid rgba(73, 133, 89, 0.4);
  outline-offset: 3px;
}

/* Activity Library Level 3 card */
.hb-home-feature-activity {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(280px, 0.88fr) minmax(390px, 1.12fr);
  overflow: hidden;
}

.hb-home-feature-activity::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 42%;
  background: url("/assets/marketing/photos/singing_in_class.png") center 42% / cover no-repeat;
  content: "";
  opacity: 0.24;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 88%, transparent 100%);
}

.hb-home-activity-action {
  display: grid;
  min-height: 300px;
  place-items: center;
}

.hb-home-library-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid rgba(73, 133, 89, 0.78);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(183, 220, 136, 0.98), rgba(151, 193, 90, 0.98));
  color: #114d4d;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(17, 77, 77, 0.22);
  transition: filter 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.hb-home-library-button:hover,
.hb-home-library-button:focus-visible {
  color: #0d4545;
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(17, 77, 77, 0.28);
}

.hb-home-library-button:focus-visible {
  outline: 3px solid rgba(73, 133, 89, 0.4);
  outline-offset: 3px;
}

/* Organisation Tools Level 3 card */
.hb-home-feature-org {
  position: relative;
  grid-template-columns: minmax(290px, 0.72fr) minmax(500px, 1.28fr);
  align-items: center;
  gap: clamp(24px, 3vw, 38px);
}

.hb-home-org-features {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  align-items: start;
  gap: 10px;
  transition: padding-bottom 180ms ease;
}

.hb-home-org-features:has(.hb-home-org-feature[open]) {
  padding-bottom: 218px;
}

.hb-home-org-feature {
  position: static;
  margin: 0;
  border: 1px solid rgba(255, 159, 90, 0.48);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(17, 77, 77, 0.1);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.hb-home-org-feature:hover,
.hb-home-org-feature:focus-within,
.hb-home-org-feature[open] {
  border-color: rgba(255, 159, 90, 0.88);
  box-shadow: 0 12px 26px rgba(17, 77, 77, 0.15);
}

.hb-home-org-feature summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  background: linear-gradient(180deg, rgba(255, 248, 242, 0.98), rgba(255, 238, 225, 0.98));
  color: #114d4d;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  list-style: none;
  text-align: center;
  cursor: pointer;
}

.hb-home-org-feature summary::-webkit-details-marker {
  display: none;
}

.hb-home-org-feature summary::after {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-left: 7px;
  border: 1px solid rgba(255, 159, 90, 0.72);
  border-radius: 50%;
  color: #c65e25;
  content: "+";
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  place-items: center;
  transition: transform 160ms ease;
}

.hb-home-org-feature[open] summary::after {
  transform: rotate(45deg);
}

.hb-home-org-feature summary:focus-visible {
  outline: 3px solid rgba(255, 159, 90, 0.45);
  outline-offset: -3px;
}

.hb-home-org-feature-body {
  position: absolute;
  top: 70px;
  left: 0;
  z-index: 6;
  display: grid;
  width: 100%;
  min-height: 188px;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 14px 18px 16px;
  border: 1px solid rgba(255, 159, 90, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 30px rgba(17, 77, 77, 0.14);
  animation: hbHomeOrgFeatureIn 170ms ease both;
}

.hb-home-org-feature-icon {
  display: grid;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(73, 133, 89, 0.34);
  border-radius: 50%;
  background: #eef5e7;
  color: #498559;
  place-items: center;
}

.hb-home-org-feature-icon svg {
  width: 27px;
  height: 27px;
}

.hb-home-org-feature ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: #315f5f;
  list-style: none;
}

.hb-home-org-feature li {
  position: relative;
  padding-left: 16px;
  line-height: 1.35;
}

.hb-home-org-feature li::before {
  position: absolute;
  left: 1px;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #97c15a;
  content: "";
}

@keyframes hbHomeOrgFeatureIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hb-home-pathway-stack {
    margin-top: 12px;
  }

  .hb-home-feature-org {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .hb-home-feature-activity {
    grid-template-columns: 1fr;
  }

  .hb-home-feature-activity::before {
    inset: 42% 0 0;
    opacity: 0.16;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 90%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 90%, transparent 100%);
  }

  .hb-home-activity-action {
    min-height: 250px;
  }
}

@media (max-width: 680px) {
  .hb-home-org-features {
    grid-template-columns: 1fr;
    padding-bottom: 0 !important;
  }

  .hb-home-org-feature {
    position: relative;
    overflow: hidden;
  }

  .hb-home-org-feature summary {
    min-height: 50px;
    padding: 10px 13px;
    justify-content: space-between;
    text-align: left;
  }

  .hb-home-org-feature-body {
    position: static;
    width: auto;
    min-height: 0;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    padding: 13px;
    border: 0;
    border-top: 1px solid rgba(255, 159, 90, 0.28);
    border-radius: 0;
    box-shadow: none;
  }

  .hb-home-org-feature-icon {
    width: 40px;
    height: 40px;
  }

  .hb-home-org-feature-icon svg {
    width: 23px;
    height: 23px;
  }
}

@media (max-width: 560px) {
  .hb-home-pathway-heading {
    font-size: 1rem;
  }

  .hb-home-pathway-heading-cycle {
    width: 112px;
    font-size: 0.8rem;
  }

  .hb-home-presenter-preview {
    min-height: 270px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb-home-bundle-flow .hb-home-bundle-trigger img,
  .hb-home-lesson-trigger img {
    animation: none !important;
  }

  .hb-home-org-feature-body {
    animation: none;
  }
}
