/* ==========================================================================
   Perform — July Athletic Challenge
   Event landing page built on the Perform design system.
   ========================================================================== */

html { overflow-x: hidden; }

.challenge-signup-link {
  white-space: nowrap;
}

.nav-actions .challenge-signup-link {
  white-space: nowrap;
}

.challenge-hero {
  display: flex;
  align-items: center;
  min-height: clamp(600px, 92vh, 940px);
  padding-bottom: clamp(7rem, 14vw, 11.5rem);
}

.challenge-hero .wrap {
  position: relative;
  z-index: 3;
}

.challenge-hero::after {
  z-index: 2;
}

.challenge-hero .hero-copy {
  max-width: 30rem;
}

.challenge-hero .display {
  font-size: clamp(2.65rem, 4.25vw, 4rem);
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      105deg,
      rgba(7, 20, 40, 0.97) 0%,
      rgba(8, 24, 47, 0.9) 34%,
      rgba(9, 28, 55, 0.62) 66%,
      rgba(11, 42, 82, 0.42) 100%
    ),
    linear-gradient(0deg, rgba(8, 24, 47, 0.72) 0%, rgba(8, 24, 47, 0) 30%);
}

.hero-tag {
  position: absolute;
  right: var(--pad);
  bottom: clamp(4rem, 10vw, 7rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1.05rem 0.72rem 0.85rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  box-shadow: 0 22px 36px -20px rgba(0, 0, 0, 0.6);
}

.hero-tag .slashes i {
  width: 0.85rem;
  height: 0.85rem;
}

@media (min-width: 768px) {
  .hero-bg-video {
    left: auto;
    width: 60%;
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 13%);
    mask-image: linear-gradient(to right, transparent 0, #000 13%);
  }
}

.challenge-hero__copy {
  margin-top: 1.05rem;
  max-width: 33rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--mist);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.intro-copy {
  padding-top: 0.45rem;
  color: var(--steel);
  font-size: clamp(1.03rem, 1.35vw, 1.18rem);
  font-weight: 500;
}

.intro-copy p + p {
  margin-top: 1rem;
}

.included {
  padding-top: clamp(3.8rem, 8vw, 7rem);
}

.challenge-grid {
  align-items: stretch;
}

.challenge-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 17.5rem;
  overflow: hidden;
  padding: clamp(1.55rem, 2.8vw, 2.45rem);
  clip-path: polygon(0 0, calc(100% - var(--bevel)) 0, 100% var(--bevel), 100% 100%, 0 100%);
  transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
}

.challenge-card:hover {
  transform: translateY(-8px);
}

@media (min-width: 921px) {
  .challenge-grid .challenge-card:nth-child(even) {
    margin-top: 3.6rem;
  }
}

.challenge-card--light {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 239, 245, 0.74)),
    var(--surface);
  filter: drop-shadow(0 20px 22px rgba(8, 24, 47, 0.13));
}

.challenge-card--light:hover {
  filter: drop-shadow(0 30px 30px rgba(8, 24, 47, 0.2));
}

.challenge-card--dark {
  color: #fff;
  background: linear-gradient(158deg, var(--navy) 0%, var(--navy-900) 100%);
  filter: drop-shadow(0 20px 24px rgba(8, 24, 47, 0.18));
}

.challenge-card--dark:hover {
  filter: drop-shadow(0 30px 30px rgba(8, 24, 47, 0.28));
}

.challenge-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  font-size: 1.35rem;
  background: var(--surface);
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  box-shadow: 0 18px 26px -22px rgba(8, 24, 47, 0.7);
}

.challenge-card--dark .challenge-card__icon {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--line-d);
}

.challenge-card .slashes {
  margin-top: 0.15rem;
}

.challenge-card h3 {
  max-width: 28rem;
  font-size: clamp(1.32rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.challenge-card p {
  max-width: 35rem;
  font-size: 1rem;
  color: var(--steel);
}

.challenge-card--dark p {
  color: #b9c6da;
}

.challenge-card__num {
  position: absolute;
  top: -0.35rem;
  right: 0.9rem;
  font-size: 6.4rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.055);
  pointer-events: none;
}

.app-access {
  margin-top: 0;
}

.app-access .spotlight-media img {
  object-position: top center;
}

.focus-section {
  padding-top: clamp(4rem, 8vw, 7rem);
}

.focus-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
}

.focus-panel {
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.3rem);
  clip-path: polygon(0 0, calc(100% - var(--bevel)) 0, 100% var(--bevel), 100% 100%, 0 100%);
}

.focus-panel--dark {
  color: #fff;
  background: linear-gradient(155deg, var(--navy) 0%, var(--ink) 100%);
  filter: drop-shadow(0 26px 30px rgba(8, 24, 47, 0.24));
}

.focus-panel--light {
  margin-top: 3.6rem;
  background: var(--surface);
  filter: drop-shadow(0 20px 22px rgba(8, 24, 47, 0.13));
}

.focus-panel h2 {
  margin-top: 1rem;
}

.focus-panel--dark h2 {
  color: #fff;
}

.focus-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.focus-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--steel);
  font-weight: 600;
}

.focus-panel--dark .focus-list li {
  color: #c6d2e6;
}

.focus-list li::before {
  content: "";
  flex: none;
  width: 1.15rem;
  height: 0.62rem;
  margin-top: 0.38rem;
  background: var(--blue);
  transform: skewX(var(--skew));
}

@media (max-width: 920px) {
  .challenge-signup-link {
    white-space: normal;
  }

  .intro-grid,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .focus-panel--light {
    margin-top: 0;
  }

  .challenge-card {
    min-height: auto;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  }

  .challenge-grid .challenge-card:nth-child(even) {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .challenge-hero .hero-cta {
    flex-direction: column;
  }

  .challenge-hero .hero-cta .btn {
    width: 100%;
  }

  .nav-actions .challenge-signup-link.btn--sm {
    padding-inline: 0.95rem;
    font-size: 0.78rem;
  }

  .challenge-card__num {
    font-size: 5.2rem;
  }

  .focus-panel {
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  }
}
