/* ============================================================
   HSEI.IO — home-interactive.css
   Interactive home sections (below hero, above footer).
   ============================================================ */

/* ---------- Formula strip ---------- */
.formula-strip[data-formula-strip] .fs-item {
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.formula-strip.fs-focus .fs-item.fs-dim {
  opacity: 0.38;
}
.formula-strip .fs-item.fs-active,
.formula-strip .fs-item.fs-spy-active {
  background: rgba(14, 207, 180, 0.06);
  box-shadow: 0 0 0 0.5px rgba(14, 207, 180, 0.22);
}
.formula-strip .fs-item.fs-spy-active .fs-brand {
  color: var(--teal-accent);
}
.formula-strip .fs-item:focus-visible {
  outline: 1px solid var(--teal-accent);
  outline-offset: 3px;
}

/* ---------- Stagger reveal children ---------- */
.reveal-stagger .reveal-child {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.reveal-stagger.revealed .reveal-child {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.revealed .reveal-child:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.revealed .reveal-child:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.revealed .reveal-child:nth-child(3) { transition-delay: 0.12s; }
.reveal-stagger.revealed .reveal-child:nth-child(4) { transition-delay: 0.16s; }
.reveal-stagger.revealed .reveal-child:nth-child(5) { transition-delay: 0.20s; }
.reveal-stagger.revealed .reveal-child:nth-child(6) { transition-delay: 0.24s; }

/* ---------- Profession carousel (single row) ---------- */
.prof-carousel {
  --prof-row-height: 14.5rem;
  --prof-dim-width: 2.75rem;
  --prof-active-width: min(26rem, 54vw);
  margin-top: 32px;
}
.prof-carousel .prof-grid--carousel {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  margin-top: 0;
  min-height: var(--prof-row-height);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.prof-carousel .prof-grid--carousel::-webkit-scrollbar {
  display: none;
}
.prof-carousel .prof-card {
  position: relative;
  box-sizing: border-box;
  height: var(--prof-row-height);
  min-height: var(--prof-row-height);
  max-height: var(--prof-row-height);
  min-width: 0;
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  transition:
    flex-basis 0.4s ease,
    width 0.4s ease,
    min-width 0.4s ease,
    max-width 0.4s ease,
    opacity 0.35s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.prof-carousel .prof-card.prof-dim {
  flex: 0 0 var(--prof-dim-width);
  width: var(--prof-dim-width);
  min-width: var(--prof-dim-width);
  max-width: var(--prof-dim-width);
  padding: 18px 6px;
  opacity: 0.42;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.prof-carousel .prof-card.prof-dim .pc-num {
  margin-bottom: 0;
  opacity: 0.85;
}
.prof-carousel .prof-card.prof-dim .pc-skill,
.prof-carousel .prof-card.prof-dim .pc-desc {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.prof-carousel .prof-card.prof-active {
  opacity: 1;
  flex: 0 0 var(--prof-active-width);
  width: var(--prof-active-width);
  min-width: var(--prof-active-width);
  max-width: var(--prof-active-width);
  padding: 16px 18px 14px;
  text-align: left;
  align-items: flex-start;
  justify-content: flex-start;
  border-color: var(--border-gold-md);
  background: var(--bg-surface-light);
  box-shadow:
    0 0 0 1px rgba(14, 207, 180, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.18);
}
.prof-carousel .prof-card.prof-active .pc-num {
  opacity: 1;
  color: var(--teal-accent);
  margin-bottom: 6px;
  flex-shrink: 0;
}
.prof-carousel .prof-card.prof-active .pc-skill {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 8px;
  flex-shrink: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.prof-carousel .prof-card.prof-active .pc-desc {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-wrap: anywhere;
}
.prof-carousel .prof-card.prof-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--teal-accent);
  transform-origin: left center;
  animation: prof-carousel-timer 4s linear forwards;
}
.prof-carousel.is-paused .prof-card.prof-active::after {
  animation-play-state: paused;
}
.prof-carousel .prof-card.prof-dim:hover {
  border-color: var(--border-neutral);
  background: var(--bg-surface);
}
.prof-carousel .prof-card.prof-active:hover {
  border-color: var(--border-gold-md);
  background: var(--bg-surface-light);
}
.prof-carousel .prof-card:focus-visible {
  outline: 1px solid var(--teal-accent);
  outline-offset: 2px;
}
@keyframes prof-carousel-timer {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 900px) {
  .prof-carousel {
    --prof-row-height: 15rem;
    --prof-dim-width: 2.5rem;
    --prof-active-width: min(20rem, 78vw);
  }
  .prof-carousel .prof-grid--carousel {
    justify-content: flex-start;
    gap: 5px;
  }
}

/* ---------- Problem mirror ---------- */
.prob-card[data-vector] {
  cursor: pointer;
  position: relative;
  padding-top: 36px;
}
.prob-card[data-vector] .pc-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 16px;
  height: 16px;
  border: 0.5px solid var(--border-neutral-md);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 10px;
  transition: all 0.2s ease;
}
.prob-card[data-vector].active {
  border-color: var(--border-gold-md);
  background: var(--bg-surface-light);
  box-shadow:
    0 0 0 1px rgba(14, 207, 180, 0.1),
    0 6px 24px rgba(14, 207, 180, 0.08);
}
.prob-card[data-vector].active .pc-check {
  background: var(--btn-bg);
  border-color: var(--teal-accent);
  color: var(--btn-fg);
}
.prob-card[data-vector].active .pc-check::before {
  content: "✓";
}
.prob-card.accent-card.accent-pulse {
  border-color: var(--teal-accent);
  box-shadow: 0 0 0 1px rgba(14, 207, 180, 0.2);
}
.problem-footer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.cards-hint {
  color: var(--teal-accent);
  margin-top: 20px;
  margin-bottom: 12px;
}
#problem-section .problem-row {
  margin-top: 0;
}
.problem-counter {
  color: var(--teal-accent);
}
.problem-reveal {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.problem-reveal.show {
  display: inline-flex;
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Vector tabs ---------- */
.vectors-stage {
  position: relative;
  margin-top: 28px;
}
.vectors-stage .vectors-grid {
  margin-top: 0;
}
.vectors-grid[data-vectors-grid] {
  position: relative;
  overflow: visible;
}
.vector-pseudo-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 65px;
  height: 69px;
  margin: 0;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  will-change: transform;
  transition: opacity 0.35s ease;
}
.vector-pseudo-cursor.is-visible {
  opacity: 1;
}
.vector-pseudo-cursor img {
  display: block;
  width: 65px;
  height: 69px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}
.vectors-stage.is-paused .vector-pseudo-cursor {
  opacity: 0.92;
}
.vector-card[data-vector-card] {
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}
.vector-card[data-vector-card]:hover {
  transform: translateY(-1px);
}
.vector-card.vector-active {
  border-color: var(--border-gold-md);
  background: var(--bg-surface-light);
  box-shadow:
    0 0 0 1px rgba(14, 207, 180, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.2);
}
.vector-card.vector-linked:not(.vector-active) {
  border-color: rgba(14, 207, 180, 0.45);
  box-shadow: 0 0 0 1px rgba(14, 207, 180, 0.08);
}
.vector-card[data-vector-card]:focus-visible {
  outline: 1px solid var(--teal-accent);
  outline-offset: 2px;
}
.vector-detail {
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--bg-surface);
  border: 0.5px solid var(--border-neutral);
  border-radius: 4px;
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.vector-detail.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.vector-detail-text {
  color: var(--text-muted);
  margin-bottom: 12px;
}
.vector-detail-cta {
  display: inline-flex;
}

/* ---------- For whom · Instagram Stories progress pills ---------- */
.whom-stories {
  margin-top: 8px;
}
.whom-stories__bars {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 8px;
  width: 15rem;
}
.whom-stories__bars .whom-story-bar {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 16px;
  min-height: 0;
  max-height: 16px;
  padding: 0;
  margin: 0;
  border: 0.5px solid var(--border-neutral);
  border-radius: 8px;
  background: var(--bg-surface);
  cursor: pointer;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  line-height: 0;
  font-size: 0;
  transition: border-color 0.18s ease;
}
.whom-story-bar__fill {
  position: absolute;
  inset: 0;
  background: var(--whom-story-fill, #0BCFB4);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  pointer-events: none;
}
.whom-story-bar.is-active {
  border-color: var(--teal-accent);
}
.whom-story-bar:hover {
  border-color: var(--border-gold);
}
.whom-story-bar:focus-visible {
  outline: 1px solid var(--teal-accent);
  outline-offset: 3px;
}

/* Card SVG icons */
.wc-icon-svg,
.card-icon-svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-icon-svg {
  width: 24px;
  height: 24px;
}
.accent-card .card-icon-svg {
  color: var(--gold);
}

.whom-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 168px;
}
.whom-card .wc-tag {
  display: block;
  color: var(--teal-accent);
  margin-bottom: 8px;
  letter-spacing: 0.12em;
}
.whom-card .wc-title {
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 6px;
  color: var(--text-main);
}
.whom-card .wc-desc {
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 0;
  color: var(--text-muted);
}
.whom-card[data-audience] {
  cursor: pointer;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.whom-card.whom-dim {
  opacity: 0.5;
}
.whom-card.whom-selected {
  border-color: var(--border-gold-md);
  background: var(--bg-surface-light);
  box-shadow: 0 0 0 1px rgba(14, 207, 180, 0.1);
}
.whom-panel {
  margin-top: 16px;
  padding: 18px 20px;
  background: var(--gold-dim2);
  border: 0.5px solid var(--border-gold-md);
  border-radius: 4px;
  display: none;
  overflow: hidden;
  transform: translateY(0);
  opacity: 1;
}
.whom-panel.show {
  display: block;
}
.whom-panel.is-exit {
  animation: whom-panel-out 0.32s ease forwards;
}
.whom-panel.is-enter {
  animation: whom-panel-in 0.32s ease forwards;
}
@keyframes whom-panel-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(24px);
  }
}
@keyframes whom-panel-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.whom-panel-title {
  color: var(--gold);
  margin-bottom: 8px;
}
.whom-panel-body {
  color: var(--text-muted);
  margin-bottom: 14px;
  max-width: 560px;
}

/* ---------- CTA badges ---------- */
.cta-badge[data-cta-badge] {
  cursor: pointer;
  transition: color 0.18s ease;
}
.cta-badge[data-cta-badge]:hover {
  color: var(--teal-accent);
}
.cta-badge[data-cta-badge]:focus-visible {
  outline: 1px solid var(--teal-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-stagger .reveal-child {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .vector-card[data-vector-card]:hover {
    transform: none;
  }
  .vector-pseudo-cursor {
    display: none;
  }
  .whom-card.whom-dim {
    transform: none;
  }
  .whom-story-bar__fill {
    transition: transform 0.15s linear;
  }
  .whom-panel.is-exit,
  .whom-panel.is-enter {
    animation: none;
  }
  .prof-carousel .prof-card.prof-active::after {
    animation: none;
    transform: scaleX(1);
  }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px var(--pad-desktop);
}
.trust-strip__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-surface-light);
  border-radius: var(--radius-card);
}
.trust-strip__photo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-gold);
}
.trust-strip__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trust-strip__tag {
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.trust-strip__body {
  color: var(--text-muted);
  margin-bottom: 8px;
}
.trust-strip__link {
  color: var(--teal-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.trust-strip__link:hover {
  color: var(--gold);
}

/* ---------- Cases preview ---------- */
.cases-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.cases-preview__card {
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-surface-light);
  border-radius: var(--radius-card);
}
.cases-preview__vec {
  color: var(--teal-accent);
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.cases-preview__title {
  color: var(--text-main);
  margin-bottom: 10px;
}
.cases-preview__after {
  color: var(--text-muted);
}

/* ---------- Ladder preview ---------- */
.home-ladder__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: start;
  margin: 24px 0;
}
.home-ladder__step {
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-surface-light);
  border-radius: var(--radius-card);
}
.home-ladder__num {
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.home-ladder__name {
  color: var(--text-main);
  margin-bottom: 8px;
}
.home-ladder__desc {
  color: var(--text-muted);
}
.home-ladder__arrow {
  color: var(--text-ghost);
  align-self: center;
  padding-top: 24px;
}

.objections-home-wrap {
  padding-bottom: 0;
}
.objections-home-wrap .objections {
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 991px) {
  .home-ladder__steps {
    grid-template-columns: 1fr;
  }
  .home-ladder__arrow {
    display: none;
  }
  .cases-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .trust-strip {
    padding: 24px var(--pad-mobile);
  }
  .trust-strip__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
