/* Uptempo & Hardcore landing polish (DRAFT, 15 Sep 2026). Loaded only by page-temp-uptempo-draft.php
   (?nzdraft=1). Layout and rhythm fixes only: no new animations, no new fonts, no new media.
   Scope: .temp-experience.tp-uptempo, so the Hardstyle page is untouched. */

/* 0. Hero alignment (desktop). The hero reference layer widened the hero to 1880px while every
      section below is 1240px, so the hero copy and the section headings started ~100px apart and
      the video floated in the extra width. Same content width as the sections, both columns
      centred on each other. */
@media (min-width: 1001px) {
  html body .temp-experience.tp-uptempo main.temp-program .tp-hero.ut-tone-hero {
    width: min(1240px, calc(100% - 40px)) !important;
    max-width: 1240px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr) !important;
    column-gap: clamp(36px, 4vw, 64px) !important;
    align-items: center !important;
  }
  html body .temp-experience.tp-uptempo main.temp-program .tp-hero.ut-tone-hero .tp-hero-copy {
    max-width: none !important;
  }
}
/* On wide screens (1601px+) site-layout-fixes.css widens every section to --nz-content-max;
   the hero follows the same width so its left edge stays on the section grid. */
@media (min-width: 1601px) {
  html body .temp-experience.tp-uptempo main.temp-program .tp-hero.ut-tone-hero {
    width: min(var(--nz-content-max), calc(100% - var(--nz-wide-gutter))) !important;
    max-width: var(--nz-content-max) !important;
  }
}
@media (min-width: 1001px) {
  html body .temp-experience.tp-uptempo main.temp-program .tp-hero.ut-tone-hero h1 {
    font-size: clamp(44px, 4.1vw, 62px) !important;
    max-width: 13ch !important;
  }
  html body .temp-experience.tp-uptempo main.temp-program .tp-hero.ut-tone-hero .tp-hero-media {
    width: 100% !important;
    max-width: none !important;
    align-self: center !important;
    margin: 0 !important;
  }
}

/* 1. Heading -> paragraph rhythm. Several sections set their paragraph flush against the
      heading (free preview, bi-weekly feedback, kick training, method intro). */
.temp-experience.tp-uptempo .tp-section :is(h2, h3) + p:not(.tp-eyebrow),
.temp-experience.tp-uptempo .tp-free-copy h2 + p,
.temp-experience.tp-uptempo .ut-feedback h2 + p,
.temp-experience.tp-uptempo .ut-kicks h3 + p {
  margin-top: 16px !important;
}
.temp-experience.tp-uptempo .tp-section h2 {
  text-wrap: balance;
}

/* 2. Method intro read as bold white body copy; match the other section intros. */
.temp-experience.tp-uptempo .ut-method .tp-intro {
  font-weight: 400 !important;
  color: #b3bdc8 !important;
  max-width: 62ch;
  line-height: 1.6 !important;
}

/* 3. Teacher: the photo is 132px but sat in a 112px (desktop) / 72px (phone) column,
      so on phones it covered the heading. */
.temp-experience.tp-uptempo .ut-teacher .tp-teacher {
  grid-template-columns: 132px minmax(0, 1fr) !important;
  gap: 32px !important;
}
.temp-experience.tp-uptempo .ut-teacher .tp-teacher > img {
  width: 132px !important;
  height: 132px !important;
  border-radius: 14px !important;
}
@media (max-width: 760px) {
  .temp-experience.tp-uptempo .ut-teacher .tp-teacher {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }
  .temp-experience.tp-uptempo .ut-teacher .tp-teacher > img {
    width: 96px !important;
    height: 96px !important;
    border-radius: 50% !important;
  }
  .temp-experience.tp-uptempo .ut-teacher .tp-teacher-links {
    flex-wrap: wrap;
    gap: 10px 20px !important;
  }
}

/* 4. Growth snapshot: the figure drew a frame around an image that already has its own. */
.temp-experience.tp-uptempo .nz-growth-snapshot {
  border: 0 !important;
  background: none !important;
}

/* 5. Klarna: the eligibility script already writes "Eligible EU countries only" into the
      Klarna link, so the separate line under it repeats it. Hidden only when that label exists. */
.temp-experience.tp-uptempo .ut-offer aside:has(.nz-klarna-eligibility) .ut-klarna {
  display: none !important;
}

/* 6. Comparison on phones: one format at a time, picked with native radio buttons (no JavaScript),
      same pattern as the homepage. Desktop keeps the three-column matrix. Browsers without :has()
      keep the swipeable table. */
.temp-experience.tp-uptempo .nz-compare-switch { display: none; }

@media (max-width: 860px) {
  @supports selector(:has(input:checked)) {
    .temp-experience.tp-uptempo #compare .compare-swipe-hint { display: none !important; }
    .temp-experience.tp-uptempo #compare .compare-matrix-scroll {
      margin: 0;
      overflow: visible !important;
      border: 1px solid rgba(237, 41, 65, .3);
      border-radius: 18px;
      background: radial-gradient(ellipse at 0 0, rgba(237, 41, 65, .08), transparent 65%), #0b0d12;
      box-shadow: none;
      scroll-snap-type: none;
    }
    .temp-experience.tp-uptempo .nz-compare-switch {
      display: block;
      min-width: 0;
      margin: 0;
      padding: 14px 14px 0;
      border: 0;
    }
    .temp-experience.tp-uptempo .nz-compare-switch legend {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }
    .temp-experience.tp-uptempo .nz-compare-switch > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
    .temp-experience.tp-uptempo .nz-compare-switch label { position: relative; display: block; min-width: 0; cursor: pointer; }
    .temp-experience.tp-uptempo .nz-compare-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
    .temp-experience.tp-uptempo .nz-compare-switch label > span {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 44px;
      padding: 8px 4px;
      border: 1px solid rgba(245, 242, 236, .16);
      border-radius: 9px;
      color: #cbcbd2;
      background: #11151c;
      font-size: 12px;
      font-weight: 800;
      line-height: 1.25;
    }
    .temp-experience.tp-uptempo .nz-compare-switch input:checked + span { color: #fff; border-color: #ed2941; background: #ed2941; }
    .temp-experience.tp-uptempo .nz-compare-switch input:focus-visible + span { outline: 2px solid #f5f2ec; outline-offset: 3px; }
    .temp-experience.tp-uptempo #compare .compare-matrix {
      width: 100% !important;
      min-width: 0 !important;
      grid-template-columns: 94px minmax(0, 1fr) !important;
    }
    .temp-experience.tp-uptempo #compare .compare-matrix > * {
      position: static !important;
      padding: 8px 14px !important;
      border: 0 !important;
      border-bottom: 1px solid rgba(245, 242, 236, .09) !important;
      background: none !important;
      box-shadow: none !important;
    }
    .temp-experience.tp-uptempo #compare :is(.compare-corner, .compare-provider, .compare-value, .compare-action) { display: none !important; }
    .temp-experience.tp-uptempo #compare .compare-feature {
      min-height: 44px;
      padding-right: 6px !important;
      color: #a8adb7 !important;
      font-size: 9px !important;
      line-height: 1.5 !important;
      letter-spacing: .06em;
      overflow-wrap: break-word;
    }
    .temp-experience.tp-uptempo #compare .compare-value { color: #eeedf0 !important; font-size: 14px !important; line-height: 1.4 !important; overflow-wrap: break-word; align-items: flex-start; gap: 8px; }
    .temp-experience.tp-uptempo #compare .compare-provider { grid-column: 1 / -1; min-height: 72px; padding-block: 14px 12px !important; flex-direction: column; }
    .temp-experience.tp-uptempo #compare .compare-provider strong { font-size: 17px !important; line-height: 1.2 !important; letter-spacing: -.02em; text-shadow: none !important; }
    .temp-experience.tp-uptempo #compare .compare-provider span { margin-top: 6px; font-size: 12px !important; line-height: 1.4 !important; }
    .temp-experience.tp-uptempo #compare .compare-matrix-scroll:has(input[value="neroz"]:checked) :is(.compare-provider, .compare-value).is-neroz,
    .temp-experience.tp-uptempo #compare .compare-matrix-scroll:has(input[value="harderclass"]:checked) :is(.compare-provider, .compare-value).is-harderclass,
    .temp-experience.tp-uptempo #compare .compare-matrix-scroll:has(input[value="youtube"]:checked) :is(.compare-provider, .compare-value).is-youtube { display: flex !important; }
    .temp-experience.tp-uptempo #compare .compare-feature:nth-last-child(4) { display: none !important; }
    .temp-experience.tp-uptempo #compare .compare-matrix-scroll:has(input[value="neroz"]:checked) .compare-action.is-neroz { display: block !important; grid-column: 1 / -1; min-height: 0; padding: 12px 14px !important; border: 0 !important; }
  }
}

/* ---- Uptempo-only ---- */

/* 7. Method: five steps sat in a four-column grid, leaving the fifth card alone on its own row
      (and alone again in the two-column tablet grid). */
@media (min-width: 901px) {
  .temp-experience.tp-uptempo .ut-method .ut-steps { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 12px !important; }
  .temp-experience.tp-uptempo .ut-method .ut-steps li { padding: 20px !important; }
  .temp-experience.tp-uptempo .ut-method .ut-steps li > span { margin-bottom: 1.25rem !important; }
  .temp-experience.tp-uptempo .ut-method .ut-steps h3 { font-size: 1.05rem !important; }
}
@media (min-width: 621px) and (max-width: 900px) {
  .temp-experience.tp-uptempo .ut-method .ut-steps li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* 8. Complete track build: paragraphs were stacked with no spacing and the four stages ran
      together as one line of text with arrows. */
.temp-experience.tp-uptempo .ut-full-build h2 { margin-bottom: 16px !important; }
.temp-experience.tp-uptempo .ut-full-build p:not(.tp-eyebrow) { max-width: 68ch; color: #b3bdc8; line-height: 1.65; margin: 0 0 12px !important; }
.temp-experience.tp-uptempo .ut-full-build .ut-build-flow {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px !important;
  margin: 20px 0 14px !important;
}
.temp-experience.tp-uptempo .ut-full-build .ut-build-flow span {
  padding: 8px 14px;
  border: 1px solid rgba(237, 41, 65, .35);
  border-radius: 999px;
  background: rgba(237, 41, 65, .06);
  color: #f4f4f2;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.temp-experience.tp-uptempo .ut-full-build .ut-build-flow i { font-style: normal; color: #ed2941; }
.temp-experience.tp-uptempo .ut-full-build .tp-note { font-size: .85rem !important; color: #8f98a3 !important; }

/* 9. Kick lessons card: the presets callout and the closing statement touched each other. */
.temp-experience.tp-uptempo .ut-kicks .ut-preset-callout { margin: 22px 0 16px !important; }
.temp-experience.tp-uptempo .ut-kicks .ut-preset-callout p { margin-top: 6px !important; color: #b3bdc8; }
@media (max-width: 620px) {
  .temp-experience.tp-uptempo .ut-full-build .ut-build-flow { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; }
  .temp-experience.tp-uptempo .ut-full-build .ut-build-flow i { display: none; }
  .temp-experience.tp-uptempo .ut-full-build .ut-build-flow span { text-align: center; white-space: normal; }
}
