/*
 * Hook statistics block (wpta/hook-stats): the "Did you know?" card in the Home hero, on the darkest teal.
 *
 * The cards sit on top of each other in one place, so the card space keeps the height of the tallest. The one on
 * show is .is-active; the next slides in from the right as the last fades out. Reduced motion swaps them with no
 * movement at all.
 */

.hook-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px;
  border-radius: 20px;
  background: #0d3d39;
  color: #f4f3ee;
}

.hook-stats__eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The cards, stacked in one grid cell */

.hook-stats__track {
  display: grid;
}

.hook-stats__card {
  display: flex;
  flex-direction: column;
  grid-area: 1 / 1;
  gap: 14px;
  visibility: hidden;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.9s ease, transform 0.9s ease, visibility 0s linear 0.9s;
}

.hook-stats__card.is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease, transform 0.9s ease, visibility 0s;
}

.hook-stats__figure {
  margin: 0;
  color: #ffffff;
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1;
}

.hook-stats__line {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
}

.hook-stats__detail {
  margin: 0;
  color: var(--teal-light);
  font-size: 15px;
  line-height: 1.5;
}

.hook-stats__source {
  margin: 0;
  color: var(--teal-light);
  font-size: 12px;
}

/* Dots: one per card, the card on show filled in */

.hook-stats__dots {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.hook-stats__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.hook-stats__dot[aria-pressed="true"] {
  background: var(--teal);
}

.hook-stats__dot:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Reduced motion: the cards change in place, with nothing sliding or fading */

@media (prefers-reduced-motion: reduce) {
  .hook-stats__card,
  .hook-stats__card.is-active {
    transform: none;
    transition: none;
  }
}

/* Phones */

@media (max-width: 700px) {
  .hook-stats {
    padding: 28px 24px;
  }
}
