/*
 * Heylth illustrative voices marquee
 * Standalone and intentionally scoped. Safe to load after the existing site CSS.
 */

.heylth-voices {
  --voices-ink: #17131f;
  --voices-copy: #615b6e;
  --voices-muted: #8d8799;
  --voices-violet: #765fe8;
  --voices-blue: #667ff4;
  --voices-line: rgba(89, 73, 151, 0.1);
  --voices-card: rgba(255, 255, 255, 0.68);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(52px, 7vw, 84px) 0 clamp(58px, 7vw, 88px);
  background:
    radial-gradient(circle at 14% 30%, rgba(113, 137, 247, 0.12), transparent 33%),
    radial-gradient(circle at 85% 58%, rgba(151, 105, 234, 0.12), transparent 34%),
    linear-gradient(180deg,
      rgba(250, 249, 253, 0) 0%,
      rgba(250, 249, 253, 0.76) 9%,
      rgba(248, 247, 252, 0.94) 26%,
      rgba(246, 244, 252, 0.9) 78%,
      rgba(248, 247, 251, 0.82) 91%,
      rgb(248, 247, 251) 100%);
  color: var(--voices-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  font-optical-sizing: auto;
}

.heylth-voices,
.heylth-voices * {
  box-sizing: border-box;
}

.heylth-voices::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(91, 75, 153, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 75, 153, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 78%, transparent);
}

.heylth-voices__header {
  display: grid;
  width: min(1420px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  margin: 0 auto clamp(28px, 4vw, 46px);
  text-align: center;
}

.heylth-voices__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #67617b;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.heylth-voices__eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--voices-blue), var(--voices-violet));
  box-shadow: 0 0 0 6px rgba(111, 98, 229, 0.08);
  content: "";
}

.heylth-voices h2 {
  max-width: 780px;
  margin: 0;
  color: var(--voices-ink);
  font-size: clamp(36px, 4.2vw, 66px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.heylth-voices h2 em {
  color: #7662c4;
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.heylth-voices__intro {
  display: grid;
  gap: 14px;
  padding-bottom: 3px;
}

.heylth-voices__intro p {
  margin: 0;
  color: var(--voices-copy);
  font-size: 14px;
  line-height: 1.65;
}

.heylth-voices__demo-note {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(112, 94, 201, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: #776e8f;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.85);
}

.heylth-voices__demo-note::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8b73e8;
  content: "";
}

.heylth-logo-marquee,
.heylth-voices__marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.heylth-logo-marquee--platforms {
  margin-bottom: 16px;
}

.heylth-logo-marquee--care {
  margin-top: 16px;
}

.heylth-logo-marquee__track,
.heylth-voices__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.heylth-logo-marquee__track {
  gap: 12px;
  animation: heylth-logo-scroll 150s linear infinite;
}

.heylth-logo-marquee--care .heylth-logo-marquee__track {
  animation-duration: 162s;
  animation-direction: reverse;
}

.heylth-logo-marquee__set,
.heylth-voices__set {
  display: flex;
  flex: none;
}

.heylth-logo-marquee__set {
  gap: 12px;
}

.heylth-logo-chip {
  display: grid;
  width: 184px;
  height: 64px;
  place-items: center;
  flex: none;
  padding: 10px 18px;
  overflow: hidden;
  border: 1px solid rgba(94, 79, 158, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow:
    0 2px 10px rgba(51, 41, 91, 0.018),
    inset 0 1px rgba(255, 255, 255, 0.72);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.heylth-logo-chip:hover {
  border-color: rgba(120, 98, 211, 0.16);
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.heylth-vendor-logo {
  --logo-scale: 1;
  display: block;
  width: 146px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(47%) sepia(10%) saturate(560%) hue-rotate(211deg) brightness(91%) contrast(88%);
  mix-blend-mode: multiply;
  opacity: 0.78;
  transform: scale(var(--logo-scale));
  transform-origin: center;
  transition: filter 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.heylth-logo-chip:hover .heylth-vendor-logo {
  filter: brightness(0) saturate(100%) invert(40%) sepia(12%) saturate(620%) hue-rotate(211deg) brightness(88%) contrast(91%);
  opacity: 0.9;
}

.heylth-vendor-logo--transcarent,
.heylth-vendor-logo--included,
.heylth-vendor-logo--personify,
.heylth-vendor-logo--carrot,
.heylth-vendor-logo--maven,
.heylth-vendor-logo--spring,
.heylth-vendor-logo--wellhub,
.heylth-vendor-logo--headspace {
  --logo-scale: 1.1;
}

.heylth-vendor-logo--hinge,
.heylth-vendor-logo--cleo,
.heylth-vendor-logo--lyra {
  --logo-scale: 0.94;
}

/* Kindbody's supplied JPG has a white canvas, so preserve the canvas as white. */
.heylth-vendor-logo--kindbody,
.heylth-logo-chip:hover .heylth-vendor-logo--kindbody {
  filter: grayscale(1) contrast(0.72) brightness(1.15);
  mix-blend-mode: multiply;
  opacity: 0.78;
}

.heylth-voices__rows {
  display: grid;
  gap: 14px;
}

.heylth-voices__track {
  gap: 14px;
  animation: heylth-voices-scroll 94s linear infinite;
}

.heylth-voices__marquee--reverse .heylth-voices__track {
  animation-duration: 101s;
  animation-direction: reverse;
}

.heylth-voices__set {
  gap: 14px;
}

.heylth-voice {
  position: relative;
  display: grid;
  width: clamp(380px, 31vw, 470px);
  min-height: 224px;
  grid-template-rows: auto 1fr auto;
  flex: none;
  gap: 10px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  background:
    radial-gradient(circle at 94% 6%, var(--voice-tint, rgba(115, 101, 230, 0.12)), transparent 34%),
    var(--voices-card);
  box-shadow:
    0 4px 14px rgba(48, 38, 86, 0.028),
    inset 0 1px rgba(255, 255, 255, 0.82);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.heylth-voice:nth-child(3n + 2) {
  --voice-tint: rgba(102, 138, 241, 0.12);
}

.heylth-voice:nth-child(3n) {
  --voice-tint: rgba(193, 126, 221, 0.11);
}

.heylth-voice::after {
  position: absolute;
  right: -50px;
  bottom: -88px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(111, 90, 209, 0.08);
  border-radius: 50%;
  content: "";
}

.heylth-voice:hover,
.heylth-voice:focus-within {
  z-index: 1;
  border-color: rgba(133, 112, 219, 0.2);
  box-shadow:
    0 8px 22px rgba(51, 41, 91, 0.045),
    inset 0 1px rgba(255, 255, 255, 0.88);
  transform: translateY(-2px);
}

.heylth-voice__person {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.heylth-voice__avatar {
  display: block;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 3px 9px rgba(55, 46, 91, 0.055);
}

.heylth-voice__identity {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.heylth-voice__identity strong {
  color: #312c3a;
  font-size: 13px;
  font-weight: 760;
}

.heylth-voice__identity small {
  overflow: hidden;
  color: var(--voices-muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heylth-voice__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #857c98;
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.heylth-voice__status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--voices-blue), var(--voices-violet));
  content: "";
}

.heylth-voice blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #4f4959;
  font-size: 12.5px;
  font-weight: 520;
  line-height: 1.5;
}

.heylth-voice blockquote::before {
  display: inline;
  margin-right: 2px;
  color: #7d68d1;
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 0;
  content: "“";
}

.heylth-voice__path {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8b8495;
  font-size: 8px;
  font-weight: 710;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.heylth-voice__path i {
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--voices-blue), var(--voices-violet));
}

.heylth-logo-marquee:hover .heylth-logo-marquee__track,
.heylth-logo-marquee:focus .heylth-logo-marquee__track,
.heylth-logo-marquee:focus-within .heylth-logo-marquee__track,
.heylth-voices__marquee:hover .heylth-voices__track,
.heylth-voices__marquee:focus .heylth-voices__track,
.heylth-voices__marquee:focus-within .heylth-voices__track {
  animation-play-state: paused;
}

@keyframes heylth-logo-scroll {
  to { transform: translateX(calc(-50% - 6px)); }
}

@keyframes heylth-voices-scroll {
  to { transform: translateX(calc(-50% - 7px)); }
}

@media (max-width: 760px) {
  .heylth-voices {
    padding: 48px 0 56px;
  }

  .heylth-voices__header {
    width: min(100% - 32px, 620px);
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  .heylth-voices h2 {
    font-size: clamp(36px, 11vw, 51px);
  }

  .heylth-voices__intro {
    gap: 12px;
  }

  .heylth-voices__rows {
    gap: 12px;
  }

  .heylth-logo-marquee,
  .heylth-voices__marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  }

  .heylth-voice {
    width: min(86vw, 368px);
    min-height: 268px;
    border-radius: 22px;
  }

  .heylth-voice__person {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .heylth-voice__status {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .heylth-logo-marquee,
  .heylth-voices__marquee {
    overflow-x: auto;
    padding: 0 16px 8px;
    scroll-padding-inline: 16px;
    scroll-snap-type: x proximity;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .heylth-logo-marquee__track,
  .heylth-voices__track {
    animation: none;
  }

  .heylth-logo-marquee__set[aria-hidden="true"],
  .heylth-voices__set[aria-hidden="true"] {
    display: none;
  }

  .heylth-voice {
    scroll-snap-align: start;
    transition: none;
  }
}

/* Standalone preview shell only; these selectors are not needed after integration. */
.heylth-voices-preview {
  min-width: 320px;
  margin: 0;
  background: #f7f6fb;
}

.heylth-voices-preview__bar {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1420px) / 2));
  border-bottom: 1px solid rgba(88, 74, 142, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: #221e2a;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  backdrop-filter: blur(20px);
}

.heylth-voices-preview__bar strong {
  font-size: 17px;
  letter-spacing: -0.025em;
}

.heylth-voices-preview__bar span {
  color: #7a7484;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
