/* ==========================================================================
   Akademi Kinetiq — Player Pathway
   Figma frame "Akademi Kinetik - Player Pathway" (10006:970)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero — node 10006:1216
   -------------------------------------------------------------------------- */

.pw-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hero-min);
  padding-top: var(--nav-h);  /* the nav floats over the image */
  overflow: hidden;
}

.pw-hero__bg {
  position: absolute;
  inset: 0;
}

.pw-hero__media {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  overflow: hidden;
}

/* The mock desaturates this photo with a white mix-blend-saturation layer.
   It also scaled it to 408% of the frame; object-fit keeps the framing
   without upscaling a 512px source past legibility. */
.pw-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: saturate(0);
}

.pw-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.pw-hero__stage {
  position: relative;
  flex: 1 0 0;
  min-width: 0;
  max-width: var(--container-max);
  padding: var(--hero-pad) var(--gutter);
}

.pw-hero__block {
  max-width: 896px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.pw-hero__eyebrow {
  width: 100%;
  padding-bottom: 0.59px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  line-height: 1.4;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--c-accent);
}

.pw-hero__title {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--c-off-white);
}

/* Targets the colour span by class, not by element: the headline's lines are
   now spans too, and a descendant `span` selector would tint all of them. */
.pw-hero__title .hero-title__alt { color: var(--c-line-bright); }

.pw-hero__lede {
  width: 100%;
  max-width: 672px;
  padding-top: 6.895px;
  padding-bottom: 0.695px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--c-muted);
}

.pw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  padding-top: 16px;
}

@media (min-width: 1200px) {
  .pw-hero__lede { white-space: nowrap; }
}

@media (max-width: 599px) {
  .pw-hero__actions { flex-direction: column; align-items: stretch; }
  .pw-hero__btn--primary,
  .pw-hero__btn--ghost { width: 100%; padding-left: 16px; padding-right: 16px; }
}

.pw-hero__btn--primary {
  padding: 16px 40px;
  background-color: var(--c-accent);
  color: var(--c-accent-ink-2);
  --btn-fill: #ffffff;
}

.pw-hero__btn--ghost {
  padding: 17px 41px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  --btn-fill: var(--c-accent);
}

.pw-hero__btn--ghost:hover {
  color: var(--c-accent-ink);
  border-color: var(--c-accent);
}

/* --------------------------------------------------------------------------
   The Performance Roadmap — node 10006:972
   -------------------------------------------------------------------------- */

.pw-roadmap {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.pw-roadmap__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: clamp(24px, 3vw, 33px);
  border-bottom: 1px solid var(--c-line);
}

.pw-roadmap__head-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15.29px;
  max-width: 672px;
}

.pw-roadmap__title {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-section);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--c-off-white);
}

.pw-roadmap__sub {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 25.6px;
  color: var(--c-muted);
}

.pw-roadmap__badge {
  background-color: #2a2a2a;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(0.6875rem, 1vw, 0.875rem);
  line-height: 1.4;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--c-accent);
  white-space: nowrap;
}

.pw-roadmap__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 48px;
  margin-top: clamp(40px, 6vw, 80px);
}

/* --- Level card — node 10006:982 and siblings --- */

/* Cards fill the full grid-row height and simply end where their copy ends.
   They used to carry a per-level CTA pinned to the foot of the row; that was
   removed, so nothing needs bottom-anchoring here any more. */
.level-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 33px;
  border-top: 1px solid var(--c-line);
}

.level-card__num {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding-bottom: 24px;
}

.level-card__num span {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--c-line);
  white-space: nowrap;
}

.level-card__rule {
  flex: 1 0 0;
  min-width: 0;
  height: 1px;
  background-color: var(--c-line);
}

.level-card__title {
  width: 100%;
  padding-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-card);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--c-line-bright);
}

.level-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.level-card__group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 3.29px;
}

.level-card__group--list { gap: 4px; }

.level-card__label {
  width: 100%;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 16.8px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-accent);
}

.level-card__value {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 25.6px;
  color: var(--c-off-white);
}

.level-card__list {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 25.6px;
  color: var(--c-muted);
}

.level-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
  margin-bottom: -0.5px;
}

.level-card__list li:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Secondary Pathways — node 10006:1192
   -------------------------------------------------------------------------- */

.pw-secondary {
  background-color: #1c1b1b;
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.pw-secondary__inner {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 64px);
}

.pw-secondary__figure {
  display: flex;
  flex: 1 0 0;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

/* The mock leaves this frame empty; it carries a photo here. The fixed ratio
   stays so the row keeps its proportions whatever image ends up inside. */
.pw-secondary__frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--c-line);
  overflow: hidden;
}

/* Fills the ratio box by cropping, not by distorting — beats the global
   `img { height: auto }` guard on specificity, which is the point of it. */
.pw-secondary__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pw-secondary__copy {
  display: flex;
  flex: 1 0 0;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 47.99px;
}

.pw-secondary__title {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-section);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--c-off-white);
}

.pw-secondary__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(32px, 4vw, 48px);
  width: 100%;
}

.pw-secondary__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding-left: clamp(20px, 3vw, 34px);
  border-left: 2px solid var(--c-line);
}

.pw-secondary__item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  width: 100%;
}

.pw-secondary__item-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-card);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--c-off-white);
}

.pw-secondary__tag {
  background-color: var(--c-line-bright);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 16.8px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #000000;
  white-space: nowrap;
}

.pw-secondary__item-text {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 25.6px;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   Decision Section — node 10006:1233
   -------------------------------------------------------------------------- */

.pw-decision {
  margin-top: 0;
}

/* Was a 958.885px absolutely-positioned stage; the padding and gaps below
   reproduce the mock's spacing in flow. */
.pw-decision__stage {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-section) var(--gutter) 0;
}

.pw-decision__head {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.pw-decision__title {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-section);
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
  color: var(--c-off-white);
}

.pw-decision__sub {
  width: 100%;
  padding-bottom: 0.8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-lede);
  line-height: 1.6;
  text-align: center;
  color: var(--c-muted);
}

.pw-decision__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(20px, 2.5vw, 32px);
  margin-top: clamp(40px, 6vw, 66px);
}

.decision-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: clamp(28px, 4vw, 49px) clamp(20px, 3vw, 49px);
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
}

.decision-card__icon img { display: block; }

.decision-card__title {
  width: 100%;
  padding-top: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-card);
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  color: var(--c-off-white);
}

.decision-card__quote {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 25.6px;
  text-align: center;
  color: var(--c-muted);
}

.decision-card__start {
  width: 100%;
  margin-top: auto;
  padding-top: 15px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  line-height: 1.4;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  text-align: center;
  color: var(--c-line-bright);
}

.pw-decision__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3vw, 32px);
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: clamp(40px, 5vw, 63px);
  border-top: 1px solid var(--c-line);
}

.pw-decision__note {
  width: 100%;
  padding-bottom: 0.8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: var(--fs-lede);
  line-height: 1.6;
  text-align: center;
  color: var(--c-off-white);
}

.pw-decision__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 20px clamp(28px, 5vw, 64px);
  background-color: var(--c-accent);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--c-accent-ink-2);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --btn-fill: #ffffff;
}

/* --------------------------------------------------------------------------
   Footer offset on this page
   -------------------------------------------------------------------------- */

.pw-footer { margin-top: var(--space-section); }

/* ==========================================================================
   The sideline rail

   Six levels are a genuine ordered sequence, so below the point where three
   columns stop fitting they become a swipeable rail — one level per screen —
   rather than a six-card vertical dump that buries Level 06 three screens
   down. Traversing sideways mirrors moving up the levels. The readout beneath
   is a scorecard: filled segments plus "03 / 06".

   The readout is hidden by default and only shown where the rail is active.
   ========================================================================== */

.pw-rail { display: none; }

/* Tablet: three columns stop holding a readable measure. Declared before the
   rail block so the rail's `display: flex` wins at the narrower widths. */
@media (max-width: 1023px) {
  .pw-roadmap__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .pw-secondary__inner { flex-direction: column; align-items: stretch; }
  .pw-secondary__figure,
  .pw-secondary__copy { flex: 1 1 auto; width: 100%; }
}

@media (max-width: 899px) {
  .pw-roadmap__grid {
    display: flex;
    grid-template-columns: none;
    gap: 16px;

    /* Break out of the container so cards can bleed to both screen edges,
       then re-inset with scroll padding so the first card still lines up
       with the gutter. */
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);

    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pw-roadmap__grid::-webkit-scrollbar { display: none; }

  .level-card {
    flex: 0 0 min(78vw, 380px);
    scroll-snap-align: start;
    padding: 24px;
    border: 1px solid var(--c-line);
    border-top-width: 3px;
    border-top-color: var(--c-accent);
    background-color: var(--c-surface);
  }

  .level-card__num span { color: var(--c-accent); }

  /* --- Scorecard readout --- */

  .pw-rail {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
  }

  .pw-rail__segs {
    display: flex;
    flex: 1 1 auto;
    gap: 6px;
    min-width: 0;
  }

  .pw-rail__seg {
    flex: 1 1 0;
    height: 3px;
    background-color: var(--c-line-soft);
    transition: background-color 0.2s ease;
  }

  .pw-rail__seg.is-filled { background-color: var(--c-accent); }

  .pw-rail__count {
    flex: none;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 1.6px;
    color: var(--c-dim);
  }

  .pw-rail__current { color: var(--c-accent); }
  .pw-rail__slash   { padding: 0 4px; }
}

/* ==========================================================================
   Player Pathway — phone
   ========================================================================== */

@media (max-width: 599px) {
  .pw-decision__cards { grid-template-columns: minmax(0, 1fr); }
  .pw-decision__btn   { width: 100%; }
  .pw-secondary__frame { aspect-ratio: 3 / 2; }
}
