/* ============================================================
   Explore pages — shared system (PlayerCam, Analytics, AI Reels,
   MultiCam, Trace iD). Scroll-driven storytelling, interactive
   demos, big kinetic type. Light Trace look; tokens come from
   traceup.webflow.css :root. Prefix: xp-
   Content must be fully readable with zero JS — explore.js only
   ADDS motion (it sets the initial hidden states itself).
   ============================================================ */

/* ---- Section shell ------------------------------------------ */
.xp-section {
  width: 100%;
  padding: 110px 10vw;
  position: relative;
}
.xp-section.is-white { background-color: var(--white); }
.xp-section.is-mint { background-color: var(--teal-10); }
.xp-section.is-tight { padding-top: 70px; padding-bottom: 70px; }

/* Question-formatted headline + answer-first lede (AEO) */
.xp-h2 {
  color: var(--teal-50);
  font-family: Atak, sans-serif;
  font-weight: 500;
  font-size: clamp(38px, 4.6vw, 64px);
  letter-spacing: -.035em;
  line-height: .95;
  margin: 0;
}
.xp-lede {
  color: var(--teal-40);
  font-family: Atak, sans-serif;
  font-weight: 400;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.35;
  letter-spacing: -.01em;
  max-width: 720px;
  margin-top: 22px;
}
.xp-head { max-width: 900px; margin-bottom: 60px; }
.xp-head.is-centered { margin-left: auto; margin-right: auto; text-align: center; }
.xp-head.is-centered .xp-lede { margin-left: auto; margin-right: auto; }

/* ---- Hero ---------------------------------------------------- */
.xp-hero {
  background-color: var(--teal-10);
  padding: 170px 10vw 60px;
  text-align: center;
}
.xp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 100px;
  padding: 8px 18px 8px 10px;
}
.xp-hero-eyebrow img { width: 26px; height: 26px; }
.xp-hero-eyebrow-text {
  color: var(--teal-50);
  font-family: Atak, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -.01em;
}
.xp-hero-title {
  color: var(--teal-50);
  font-family: Atak, sans-serif;
  font-weight: 500;
  /* huge — the wow starts with the type */
  font-size: clamp(64px, 10vw, 148px);
  letter-spacing: -.045em;
  line-height: .92;
  margin: 26px 0 0;
}
/* long product names (e.g. PlayerFocus Analytics) need a step down
   so single words still fit a phone screen */
.xp-hero-title.is-long { font-size: clamp(44px, 8.5vw, 118px); }
.xp-hero-title .xp-word { display: inline-block; }
.xp-hero-sub {
  color: var(--teal-40);
  font-family: Atak, sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: -.015em;
  line-height: 1.3;
  max-width: 680px;
  margin: 26px auto 0;
}
.xp-hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* ---- Signature zoom stage ------------------------------------ */
.xp-zoom {
  background-color: var(--teal-10);
  padding: 30px 4vw 110px;
}
.xp-zoom-stage {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 86vh;
  margin: 0 auto;
  background: var(--teal-50);
}
.xp-zoom-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
  /* transform-origin is set per page onto the tracked player */
}
.xp-zoom-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .92);
  border-radius: 100px;
  padding: 9px 16px;
  color: var(--teal-50);
  font-family: Atak, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -.01em;
  pointer-events: none;
}
.xp-zoom-tag img { width: 18px; height: 18px; }
.xp-zoom-tag.is-corner { top: 22px; left: 22px; }
.xp-zoom-tag.is-player { bottom: 26px; left: 50%; transform: translateX(-50%); }
.xp-zoom-tag.is-player .xp-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
}
.xp-zoom-caption {
  text-align: center;
  color: var(--teal-40);
  font-family: Atak, sans-serif;
  font-size: 16px;
  margin-top: 18px;
}

/* ---- Big stat band ------------------------------------------- */
.xp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 30px;
}
.xp-stat { border-top: 2px solid var(--teal-20); padding-top: 22px; }
.xp-stat-num {
  color: var(--teal-50);
  font-family: Atak, sans-serif;
  font-weight: 500;
  font-size: clamp(56px, 6.5vw, 104px);
  letter-spacing: -.045em;
  line-height: 1;
  display: flex;
  align-items: baseline;
}
.xp-stat-num .xp-stat-suffix { font-size: .55em; margin-left: 2px; }
.xp-stat-label {
  color: var(--teal-40);
  font-family: Atak, sans-serif;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -.01em;
  margin-top: 10px;
  max-width: 240px;
}

/* ---- Steps (how it works) ------------------------------------ */
.xp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; position: relative; }
.xp-step {
  background: var(--white);
  border-radius: 24px;
  padding: 34px 30px 38px;
  position: relative;
  overflow: hidden;
}
.xp-section.is-white .xp-step { background: var(--teal-10); }
.xp-step-num {
  color: var(--teal-30);
  font-family: Atak, sans-serif;
  font-weight: 500;
  font-size: 62px;
  letter-spacing: -.04em;
  line-height: 1;
}
.xp-step-title {
  color: var(--teal-50);
  font-family: Atak, sans-serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -.025em;
  line-height: 1.05;
  margin: 18px 0 0;
}
.xp-step-body {
  color: var(--charcoal-40);
  font-family: Atak, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  margin-top: 12px;
}

/* ---- Interactive cam switcher -------------------------------- */
.xp-switcher {
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 82vh;
  background: var(--teal-50);
}
/* portrait variant for app-screen recordings */
.xp-switcher.is-portrait {
  aspect-ratio: 9 / 16;
  height: min(78vh, 640px);
  width: auto;
  margin: 0 auto;
}
.xp-switcher video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .45s ease;
}
.xp-switcher video.is-active { opacity: 1; }
.xp-switcher-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.xp-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1.5px solid var(--teal-20);
  background: var(--white);
  border-radius: 100px;
  padding: 11px 20px;
  cursor: pointer;
  font-family: Atak, sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--teal-50);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.xp-chip img { width: 20px; height: 20px; }
.xp-chip:hover { transform: translateY(-2px); }
.xp-chip.is-active {
  background: var(--teal-50);
  border-color: var(--teal-50);
  color: var(--white);
}
.xp-chip.is-active img { filter: brightness(0) invert(1); }

/* ---- Audience cards ------------------------------------------ */
.xp-audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.xp-card {
  background: var(--white);
  border-radius: 24px;
  padding: 36px 32px 40px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.xp-section.is-white .xp-card { background: var(--teal-10); }
.xp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -18px rgba(31, 97, 109, .28);
}
.xp-card-kicker {
  color: var(--teal-40);
  font-family: Atak, sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.xp-card-title {
  color: var(--teal-50);
  font-family: Atak, sans-serif;
  font-weight: 500;
  font-size: 27px;
  letter-spacing: -.025em;
  line-height: 1.05;
  margin: 14px 0 0;
}
.xp-card-body {
  color: var(--charcoal-40);
  font-family: Atak, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  margin-top: 12px;
}

/* ---- Pull-quote feature rows --------------------------------- */
.xp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 40px 0;
}
.xp-row + .xp-row { border-top: 1.5px solid var(--teal-20); }
.xp-row-media {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--teal-20);
}
.xp-row-media.is-portrait { aspect-ratio: 9 / 16; max-width: 340px; margin: 0 auto; }
.xp-row-media video, .xp-row-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.xp-row-quote {
  color: var(--teal-50);
  font-family: Atak, sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -.03em;
  line-height: 1.02;
  margin: 0;
}
.xp-row-body {
  color: var(--charcoal-40);
  font-family: Atak, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  margin-top: 18px;
  max-width: 480px;
}

/* ---- Cam wall upgrades --------------------------------------- */
.xp-wall-head { padding: 0 10vw 50px; }
.playercam-wall .grid-div { transition: transform .25s ease; }
.playercam-wall .grid-div:hover { transform: scale(1.025); z-index: 2; }
.playercam-wall .playercam-button { transition: transform .2s ease; }
.playercam-wall .grid-div:hover .playercam-button { transform: scale(1.06); }

/* ---- Cross-links --------------------------------------------- */
.xp-crosslinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.xp-crosslink {
  display: block;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.xp-section.is-white .xp-crosslink { background: var(--teal-10); }
.xp-crosslink:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -18px rgba(31, 97, 109, .28);
}
.xp-crosslink-img { aspect-ratio: 16 / 10; overflow: hidden; }
.xp-crosslink-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.xp-crosslink:hover .xp-crosslink-img img { transform: scale(1.05); }
.xp-crosslink-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  color: var(--teal-50);
  font-family: Atak, sans-serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -.02em;
}
.xp-crosslink-label img { width: 22px; height: 22px; }
.xp-crosslink-arrow { margin-left: auto; color: var(--teal-40); }

/* ============================================================
   Analytics dashboard demo (playerfocus-analytics)
   Inline SVG cards that draw themselves on scroll. All data
   shown is illustrative sample data.
   ============================================================ */
.xp-anl-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
  align-items: stretch;
}
.xp-anl-card {
  background: var(--white);
  border-radius: 24px;
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
}
.xp-anl-title {
  color: var(--teal-50);
  font-family: Atak, sans-serif;
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -.02em;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.xp-anl-beta {
  background: var(--red);
  color: var(--white);
  border-radius: 6px;
  font-size: 11px;
  padding: 3px 7px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.xp-anl-sub { color: var(--charcoal-40); font-family: Atak, sans-serif; font-size: 14px; margin: 0 0 18px; }
.xp-anl-card svg { width: 100%; height: auto; display: block; }
.xp-anl-axis { color: var(--charcoal-30); font-family: Atak, sans-serif; font-size: 12px; display: flex; justify-content: space-between; margin-top: 8px; }
.xp-anl-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.xp-anl-line.is-home { stroke: var(--teal-50); }
.xp-anl-line.is-away { stroke: var(--teal-30); }
.xp-anl-dot { fill: var(--teal-50); }
.xp-anl-dot.is-away { fill: var(--teal-30); }
.xp-anl-set { transition: opacity .35s ease; }
.xp-anl-set:not(.is-active) { opacity: 0; pointer-events: none; position: absolute; }
.xp-anl-field { background: var(--teal-10); border-radius: 16px; padding: 10px; }
.xp-anl-thirds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  margin-top: 14px;
  font-family: Atak, sans-serif;
}
.xp-anl-thirds .xp-anl-third-label { color: var(--charcoal-30); font-size: 12px; }
.xp-anl-thirds .xp-anl-third-num { color: var(--teal-50); font-weight: 500; font-size: 24px; letter-spacing: -.02em; }
.xp-anl-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 26px; }
.xp-anl-tile { background: var(--white); border-radius: 20px; padding: 24px 26px; }
.xp-anl-tile-num {
  color: var(--teal-50);
  font-family: Atak, sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 4vw, 62px);
  letter-spacing: -.04em;
  line-height: 1;
}
.xp-anl-tile-label { color: var(--charcoal-40); font-family: Atak, sans-serif; font-size: 15px; margin-top: 8px; }
.xp-anl-note { color: var(--charcoal-30); font-family: Atak, sans-serif; font-size: 13px; margin-top: 18px; text-align: center; }

/* ============================================================
   AI Reels assembly demo — clips fly into the phone as you
   scroll, then the finished reel plays.
   ============================================================ */
.xp-reel { padding: 30px 4vw 110px; background: var(--white); }
.xp-reel-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(240px, 300px) 1fr;
  gap: 30px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.xp-reel-clips { display: flex; flex-direction: column; gap: 18px; align-items: flex-end; }
.xp-reel-clips.is-right { align-items: flex-start; }
.xp-reel-clip {
  width: min(100%, 260px);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 14px 30px -14px rgba(31, 97, 109, .35);
}
.xp-reel-clip img { width: 100%; display: block; }
.xp-reel-clip-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255,255,255,.92);
  color: var(--teal-50);
  font-family: Atak, sans-serif;
  font-weight: 500;
  font-size: 12px;
  border-radius: 100px;
  padding: 5px 10px;
}
.xp-reel-phone {
  position: relative;
  aspect-ratio: 9 / 19;
  border-radius: 40px;
  border: 10px solid #16333a;
  background: var(--teal-50);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(31, 97, 109, .45);
}
.xp-reel-phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xp-reel-progress {
  position: absolute;
  left: 16px; right: 16px; top: 14px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,.3);
  overflow: hidden;
  z-index: 2;
}
.xp-reel-progress-bar { width: 100%; height: 100%; background: var(--yellow); transform-origin: left center; }
.xp-reel-ready {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--teal-50);
  font-family: Atak, sans-serif;
  font-weight: 500;
  font-size: 14px;
  border-radius: 100px;
  padding: 8px 16px;
  white-space: nowrap;
  z-index: 2;
}
.xp-reel-caption { text-align: center; color: var(--teal-40); font-family: Atak, sans-serif; font-size: 16px; margin-top: 20px; }

/* ============================================================
   Trace iD card — tilts toward the pointer.
   ============================================================ */
.xp-idcard-wrap { display: flex; justify-content: center; perspective: 1200px; padding: 10px 0 30px; }
.xp-idcard {
  width: min(92vw, 430px);
  border-radius: 28px;
  background: linear-gradient(150deg, var(--teal-50), var(--teal-40));
  color: var(--white);
  padding: 30px;
  font-family: Atak, sans-serif;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 34px 70px -24px rgba(31, 97, 109, .55);
}
.xp-idcard-top { display: flex; align-items: center; gap: 16px; }
.xp-idcard-avatar {
  width: 74px; height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.6);
}
.xp-idcard-name { font-weight: 500; font-size: 26px; letter-spacing: -.02em; line-height: 1; }
.xp-idcard-meta { color: var(--teal-20); font-size: 14px; margin-top: 6px; }
.xp-idcard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 26px;
  text-align: center;
}
.xp-idcard-stat { background: rgba(255,255,255,.12); border-radius: 14px; padding: 12px 6px; }
.xp-idcard-stat-num { font-weight: 500; font-size: 24px; letter-spacing: -.02em; }
.xp-idcard-stat-label { color: var(--teal-20); font-size: 12px; margin-top: 2px; }
.xp-idcard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.25);
  font-size: 14px;
  color: var(--teal-20);
}
.xp-idcard-share {
  background: var(--yellow);
  color: var(--teal-50);
  font-weight: 500;
  border-radius: 100px;
  padding: 8px 16px;
}

/* ---- Career strip (Trace iD) --------------------------------- */
.xp-seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.xp-season {
  background: var(--white);
  border-radius: 20px;
  padding: 26px 24px;
  border-top: 3px solid var(--teal-30);
}
.xp-season-year { color: var(--teal-30); font-family: Atak, sans-serif; font-weight: 500; font-size: 30px; letter-spacing: -.03em; }
.xp-season-title { color: var(--teal-50); font-family: Atak, sans-serif; font-weight: 500; font-size: 19px; margin-top: 10px; }
.xp-season-body { color: var(--charcoal-40); font-family: Atak, sans-serif; font-size: 14px; margin-top: 6px; }

/* ---- Responsive ---------------------------------------------- */
@media (max-width: 991px) {
  .xp-section { padding: 70px 24px; }
  .xp-hero { padding: 130px 24px 40px; }
  .xp-zoom { padding: 20px 16px 70px; }
  .xp-stats { grid-template-columns: repeat(2, 1fr); }
  .xp-steps, .xp-audience, .xp-crosslinks { grid-template-columns: 1fr; }
  .xp-row { grid-template-columns: 1fr; gap: 28px; }
  .xp-wall-head { padding: 0 24px 40px; }
  .xp-zoom-stage, .xp-switcher { aspect-ratio: 4 / 5; }
  .xp-switcher.is-portrait { aspect-ratio: 9 / 16; }
  .xp-anl-grid { grid-template-columns: 1fr; }
  .xp-anl-tiles { grid-template-columns: 1fr; gap: 16px; }
  .xp-reel { padding: 20px 16px 70px; }
  .xp-reel-stage { grid-template-columns: 1fr; }
  .xp-reel-clips, .xp-reel-clips.is-right { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; }
  .xp-reel-clip { width: 46%; }
  .xp-reel-phone { max-width: 280px; margin: 0 auto; width: 100%; }
  .xp-seasons { grid-template-columns: 1fr 1fr; }
}

/* Reduced motion: everything static & visible, no pin/scrub */
@media (prefers-reduced-motion: reduce) {
  .xp-chip, .xp-card, .xp-crosslink, .playercam-wall .grid-div { transition: none; }
}
