/* =============================================
   Marble-inspired elements (test)
   1. Hero stat with student faces
   2. Journey trail (real learn.hawkacademy.co course path)
   3. Scrolling testimonial marquee
   ============================================= */

/* ---- 1. Hero stat faces ---- */
.hero__faces {
  display: flex;
  flex-shrink: 0;
}

.hero__faces img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-black);
  margin-left: -10px;
}

.hero__faces img:first-child {
  margin-left: 0;
}

/* ---- 2. Journey trail ---- */
.journey-trail {
  background: var(--color-black);
  padding: 60px 0 100px;
}

.journey-trail h2 {
  color: var(--color-white);
  text-align: center;
  margin-bottom: 16px;
}

.journey-trail__subtitle {
  color: var(--color-light-body);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.6;
}

.journey-trail__legend {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: var(--color-light-body);
}

.journey-trail__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.jt-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-block;
}

.jt-dot--done {
  background: var(--color-cyan);
}

.jt-dot--next {
  background: transparent;
  border: 2.5px solid var(--color-cyan);
  box-shadow: 0 0 0 3px rgba(1, 255, 255, 0.18);
}

.jt-dot--later {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.journey-trail__box {
  overflow-x: auto;
  scrollbar-width: none;
}

.journey-trail__box::-webkit-scrollbar {
  display: none;
}

.journey-trail__svg {
  display: block;
  min-width: 900px;
  width: 100%;
  height: auto;
}

.journey-trail__svg .jt-link {
  fill: none;
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 2;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
}

.jt-node {
  cursor: pointer;
}

.jt-node circle.c {
  stroke-width: 2;
  transition: fill 0.25s ease, stroke 0.25s ease, r 0.2s ease;
}

.jt-node text.n {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  transition: fill 0.25s ease;
}

.jt-node text.t {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  text-anchor: middle;
  fill: rgba(255, 255, 255, 0.6);
  transition: fill 0.25s ease;
}

.jt-node:hover text.t {
  fill: var(--color-white);
}

.jt-node:hover circle.c {
  r: 19;
}

.jt-node--done circle.c {
  fill: var(--strand);
  stroke: var(--strand);
}

.jt-node--done text.n {
  fill: #000;
}

.jt-node--next circle.c {
  fill: var(--color-black);
  stroke: var(--color-cyan);
  animation: jtPulse 2.2s ease-out infinite;
}

.jt-node--next text.n {
  fill: var(--color-cyan);
}

.jt-node--later circle.c {
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.35);
}

.jt-node--later text.n {
  fill: rgba(255, 255, 255, 0.5);
}

.jt-node--sel circle.c {
  fill: var(--color-cyan);
  stroke: var(--color-cyan);
}

.jt-node--sel text.n {
  fill: #000;
}

.jt-node--sel text.t {
  fill: var(--color-white);
}

@keyframes jtPulse {
  0% { filter: drop-shadow(0 0 0 rgba(1, 255, 255, 0.6)); }
  70% { filter: drop-shadow(0 0 9px rgba(1, 255, 255, 0)); }
  100% { filter: drop-shadow(0 0 0 rgba(1, 255, 255, 0)); }
}

.journey-trail__card {
  max-width: 640px;
  margin: 18px auto 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px 36px;
  text-align: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.journey-trail__card.swap {
  opacity: 0;
  transform: translateY(8px);
}

.journey-trail__strand {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #000;
  background: var(--sc, var(--color-cyan));
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.journey-trail__card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  color: var(--color-white);
  margin-bottom: 8px;
}

.journey-trail__card p {
  color: var(--color-light-body);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 14px;
}

.journey-trail__meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ---- 3. Testimonial marquee ---- */
.tmarquee {
  overflow: hidden;
  position: relative;
  padding-bottom: 80px;
}

.tmarquee::before,
.tmarquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.tmarquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-black), transparent);
}

.tmarquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--color-black), transparent);
}

.tmarquee__row {
  display: flex;
  gap: 20px;
  width: max-content;
  margin-bottom: 20px;
  animation: tmScroll 48s linear infinite;
}

.tmarquee__row--reverse {
  animation: tmScrollReverse 56s linear infinite;
}

.tmarquee__row:hover {
  animation-play-state: paused;
}

@keyframes tmScroll {
  to { transform: translateX(-33.3333%); }
}

@keyframes tmScrollReverse {
  from { transform: translateX(-33.3333%); }
  to { transform: translateX(0); }
}

.tmarquee .tcard {
  width: 400px;
  flex-shrink: 0;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .tmarquee .tcard {
    width: 310px;
  }

  .tmarquee .tcard p {
    font-size: 14px;
  }

  .journey-trail__card {
    padding: 24px 22px;
  }

  /* swipeable review rows instead of the auto-marquee */
  .tmarquee__row {
    animation: none;
    width: auto;
    overflow-x: auto;
    padding: 0 20px 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tmarquee__row::-webkit-scrollbar {
    display: none;
  }

  .tmarquee__row [aria-hidden="true"] {
    display: none;
  }

  .tmarquee .tcard {
    scroll-snap-align: center;
  }

  .tmarquee::before,
  .tmarquee::after {
    width: 36px;
  }
}

/* ---- 4. Mobile trail affordances ---- */
.journey-trail__scrollwrap {
  position: relative;
}

.journey-trail__scrollwrap::before,
.journey-trail__scrollwrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 46px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.journey-trail__scrollwrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-black), transparent);
}

.journey-trail__scrollwrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--color-black), transparent);
}

.journey-trail__scrollwrap.jt-fade-l::before {
  opacity: 1;
}

.journey-trail__scrollwrap.jt-fade-r::after {
  opacity: 1;
}

.journey-trail__hint {
  display: none;
}

@media (max-width: 768px) {
  .journey-trail__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin: 10px 0 2px;
    transition: opacity 0.6s ease;
  }

  .journey-trail__hint.dismissed {
    opacity: 0;
  }

  .jt-chev {
    color: var(--color-cyan);
    font-size: 15px;
  }

  .jt-chev--r {
    animation: jtNudgeR 1.6s ease-in-out infinite;
  }

  .jt-chev--l {
    animation: jtNudgeL 1.6s ease-in-out infinite;
  }
}

@keyframes jtNudgeR {
  50% { transform: translateX(5px); }
}

@keyframes jtNudgeL {
  50% { transform: translateX(-5px); }
}

/* ---- 5. Marble comparison cards ---- */
.mcompare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: stretch;
  margin-top: 56px;
}

.mcard {
  background: #111111;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 42px 40px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.mcard--them {
  transform: rotate(-1.2deg);
}

.mcard--us {
  transform: rotate(1.2deg);
  background: linear-gradient(160deg, rgba(173, 186, 255, 0.1) 0%, rgba(1, 255, 255, 0.04) 100%);
  border: 1px solid rgba(173, 186, 255, 0.25);
  box-shadow: 0 0 60px rgba(173, 186, 255, 0.06), 0 0 120px rgba(1, 255, 255, 0.03);
  position: relative;
}

.mcard--them:hover,
.mcard--us:hover {
  transform: rotate(0) translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.mcard--us:hover {
  border-color: rgba(173, 186, 255, 0.4);
}

.mcard__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-lavender);
  margin-bottom: 14px;
}

.mcard__price {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(38px, 4.4vw, 54px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.mcard--us .mcard__price {
  color: var(--color-cyan);
}

.mcard__sub {
  color: var(--color-light-body);
  font-size: 15px;
  margin-bottom: 28px;
}

.mcard ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mcard li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.mcard .mk {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.mcard .mk--x {
  background: rgba(255, 255, 255, 0.06);
  color: #8a8a8a;
}

.mcard .mk--c {
  background: rgba(1, 255, 255, 0.1);
  color: var(--color-cyan);
}

.mcard__sticker {
  position: absolute;
  top: -17px;
  right: 26px;
  background: var(--color-cyan);
  color: #000;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  transform: rotate(3deg) scale(0);
}

.reveal.visible .mcard__sticker {
  animation: mSticker 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s forwards;
}

@keyframes mSticker {
  from { transform: rotate(3deg) scale(0); }
  to { transform: rotate(3deg) scale(1); }
}

@media (max-width: 860px) {
  .mcompare {
    grid-template-columns: 1fr;
  }

  .mcard--them,
  .mcard--us {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tmarquee__row,
  .jt-node--next circle.c,
  .jt-chev--l,
  .jt-chev--r {
    animation: none;
  }

  .mcard__sticker,
  .reveal.visible .mcard__sticker {
    animation: none;
    transform: rotate(3deg) scale(1);
  }
}
