/*
 * KINEPEAK B2 website mapping
 * Warm Performance Studio 70% + Rhythm Signal System 30%
 * Scope: Home, Product and the seven registered KINEPEAK patterns.
 */

:where(.home-v53, .product-v54, .editor-styles-wrapper) {
  --ink: #0f1114;
  --surface-dark: #2a2d31;
  --graphite: #2a2d31;
  --paper: #f3f0e9;
  --paper-deep: #e7e0d2;
  --white: #ffffff;
  --orange: #f26a21;
  --orange-dark: #b93d12;
  --orange-text: #b93d12;
  --cyan: #79a4a8;
  --muted: #4d5156;
  --line: rgba(15, 17, 20, 0.2);
  --max: 1280px;
  --radius: 4px;
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-image: 24px;
  --font-editorial: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Barlow", "Arial Narrow", Arial, sans-serif;
  --font-signal: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  font-family: var(--font-body);
}

:where(.home-v53, .product-v54) {
  background-image:
    radial-gradient(circle at 8% 6%, rgba(255, 255, 255, 0.56), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(121, 164, 168, 0.07), transparent 26rem);
}

:where(.home-v53, .product-v54) :is(h1, h2, h3, p) {
  text-wrap: pretty;
}

:where(.home-v53, .product-v54) :is(.v53-button, .btn, .amazon-link),
.editor-styles-wrapper .wp-element-button {
  border-radius: var(--radius-control);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

:where(.home-v53, .product-v54) :is(.v53-button, .btn):hover,
.editor-styles-wrapper .wp-element-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 17, 20, 0.14);
}

:where(.home-v53, .product-v54) :is(.v53-button, .btn):active {
  transform: translateY(1px) scale(0.99);
}

:where(.home-v53, .product-v54) .v53-button--primary {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink);
}

:where(.home-v53, .product-v54) .v53-button--primary:hover {
  background: #df5c1b;
}

:where(.home-v53, .product-v54) .v53-text-link {
  color: var(--orange-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(185, 61, 18, 0.34);
  text-underline-offset: 5px;
}

:where(.home-v53, .product-v54) .v53-text-link span {
  color: currentColor;
}

:where(.home-v53, .product-v54) .v53-text-link--dark {
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, 0.34);
}

:where(.home-v53, .product-v54) :is(.v53-header, .site-header) {
  border-bottom-color: var(--line);
  background: rgba(243, 240, 233, 0.93);
  backdrop-filter: blur(18px);
}

:where(.home-v53, .product-v54) :is(.v53-header-inner, .header-inner) {
  min-height: 78px;
}

:where(.home-v53, .product-v54) :is(.v53-brand, .brand--official) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  width: 172px;
}

:where(.home-v53, .product-v54) :is(.v53-nav, .nav) > a:not(.amazon-link) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--graphite);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration-thickness: 2px;
  text-decoration-color: transparent;
  text-underline-offset: 8px;
}

:where(.home-v53, .product-v54) :is(.v53-nav, .nav) > a:not(.amazon-link):is(:hover, :focus-visible, [aria-current="page"]) {
  color: var(--ink);
  text-decoration-color: var(--orange);
}

:where(.home-v53, .product-v54) .v53-kicker {
  color: var(--orange-text);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

:where(.home-v53, .product-v54) .v53-kicker::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  margin: 0 0.65rem 0.22em 0;
  background: var(--orange);
}

/* Hero: one editorial brand statement on Home; Product remains functional. */
:where(.home-v53, .product-v54) .v53-hero {
  background: transparent;
}

:where(.home-v53, .product-v54) .v53-hero-grid {
  border-bottom: 0;
}

.home-v53 .v53-hero-copy h1 {
  max-width: 730px;
  font-family: var(--font-editorial);
  font-size: clamp(4rem, 5.55vw, 5rem);
  font-weight: 560;
  line-height: 0.97;
  letter-spacing: -0.04em;
}

.product-v54 .v53-hero-copy h1 {
  max-width: 650px;
  font-family: var(--font-body);
  font-size: clamp(3.5rem, 4.55vw, 4.15rem);
  font-weight: 600;
  line-height: 1.01;
  letter-spacing: -0.045em;
}

:where(.home-v53, .product-v54) .v53-hero-copy h1 span {
  color: var(--orange-text);
}

:where(.home-v53, .product-v54) .v53-lede {
  max-width: 58ch;
  color: var(--graphite);
  font-size: clamp(1.12rem, 1.45vw, 1.25rem);
}

:where(.home-v53, .product-v54) .v53-hero-media {
  border-radius: var(--radius-image) 0 0 var(--radius-image);
  box-shadow: 0 28px 64px rgba(15, 17, 20, 0.13);
}

:where(.home-v53, .product-v54) .v53-hero-media figcaption {
  left: 22px;
  bottom: 22px;
  border-top: 0;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-card);
  background: rgba(15, 17, 20, 0.9);
  backdrop-filter: blur(12px);
}

:where(.home-v53, .product-v54) .v53-proof-rail {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.68);
  overflow: hidden;
}

:where(.home-v53, .product-v54) .v53-proof-rail > div {
  border-left-color: var(--line);
}

:where(.home-v53, .product-v54) .v53-proof-rail span,
:where(.home-v53, .product-v54) .v53-mode-number,
:where(.home-v53, .product-v54) .v53-process li > span,
:where(.home-v53, .product-v54) .v53-facts dt,
:where(.home-v53, .product-v54) .product-v54-install-steps li > span {
  font-family: var(--font-signal);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* Typography hierarchy: Barlow carries functional headings. */
:where(.home-v53, .product-v54) :is(.v53-music-copy h2, .v53-section-heading h2, .v53-product-copy h2) {
  font-family: var(--font-body);
  font-size: clamp(2.45rem, 3.75vw, 3.4rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.042em;
}

:where(.home-v53, .product-v54) :is(.v53-mode h3, .v53-person h3, .v53-workout-feature h3, .v53-resource h3, .product-v54-install h2, .product-v54-install h3, .product-v54-mount-proof h3) {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.032em;
}

:where(.home-v53, .product-v54) .v53-mode h3 {
  font-size: clamp(2rem, 3vw, 3rem);
}

:where(.home-v53, .product-v54) .v53-workout-feature h3 {
  font-size: clamp(2.35rem, 3.6vw, 3.45rem);
}

:where(.home-v53, .product-v54) .v53-resource h3 {
  font-size: clamp(1.85rem, 2.55vw, 2.65rem);
}

.product-v54 .product-v54-install-intro h2 {
  font-size: clamp(2.8rem, 4vw, 4rem);
}

.product-v54 .product-v54-install-steps h3 {
  font-size: clamp(1.65rem, 2.25vw, 2.35rem);
}

.product-v54 .product-v54-mount-proof h3 {
  font-size: clamp(2.35rem, 3.25vw, 3.2rem);
}

:where(.home-v53, .product-v54) .v53-closing h2 {
  font-family: var(--font-editorial);
  font-size: clamp(2.9rem, 4vw, 3.6rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.035em;
}

/* Music and cue explanation: distinct channels, never a synchronized waveform. */
:where(.home-v53, .product-v54) .v53-music {
  background: var(--white);
}

:where(.home-v53, .product-v54) .v53-music-media {
  border-radius: var(--radius-image);
}

:where(.home-v53, .product-v54) .v53-music-media figcaption {
  right: 18px;
  bottom: 18px;
  border-left-color: var(--cyan);
  border-radius: var(--radius-card);
  background: rgba(243, 240, 233, 0.94);
}

.kp-signal-channels {
  display: grid;
  gap: 0.65rem;
  margin: 1.6rem 0 1.8rem;
}

.kp-signal-channel {
  display: grid;
  grid-template-columns: minmax(118px, 0.72fr) minmax(100px, 1fr) minmax(142px, 0.9fr);
  align-items: center;
  gap: 0.85rem;
  min-height: 54px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
}

.kp-signal-channel > span,
.kp-signal-channel > strong {
  font-size: 0.76rem;
  line-height: 1.2;
  font-weight: 600;
}

.kp-signal-channel > span {
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.kp-signal-channel > strong {
  text-align: right;
}

.kp-signal-rail {
  height: 6px;
  background: rgba(15, 17, 20, 0.12);
  overflow: hidden;
}

.kp-signal-rail::after {
  content: "";
  display: block;
  height: 100%;
}

.kp-signal-channel--audio :is(span, strong) {
  color: #4f777b;
}

.kp-signal-channel--audio .kp-signal-rail::after {
  width: 43%;
  background: var(--cyan);
}

.kp-signal-channel--cue :is(span, strong) {
  color: var(--orange-text);
}

.kp-signal-channel--cue .kp-signal-rail::after {
  width: 68%;
  background: var(--orange);
}

:where(.home-v53, .product-v54) .v53-process {
  margin-top: 1.5rem;
}

/* Three modes: warm Train and Challenge, one contained dark HIIT moment. */
:where(.home-v53, .product-v54) .v53-modes {
  background: var(--paper);
  color: var(--ink);
}

:where(.home-v53, .product-v54) .v53-modes .v53-section-heading > p {
  color: var(--graphite);
}

:where(.home-v53, .product-v54) .v53-modes .v53-kicker {
  color: var(--orange-text);
}

:where(.home-v53, .product-v54) .v53-mode {
  border-radius: var(--radius-card);
  box-shadow: 0 20px 46px rgba(15, 17, 20, 0.08);
}

:where(.home-v53, .product-v54) .v53-mode--train {
  border-top: 5px solid var(--orange);
  background: var(--white);
  color: var(--ink);
}

:where(.home-v53, .product-v54) .v53-mode--train :is(.v53-mode-number, .v53-mode-label) {
  color: var(--orange-text);
}

:where(.home-v53, .product-v54) .v53-mode--challenge,
:where(.home-v53, .product-v54) .v53-mode--challenge .v53-mode-copy {
  background: #e7e0d2;
  color: var(--ink);
}

:where(.home-v53, .product-v54) .v53-mode--hiit {
  background: var(--graphite);
  color: var(--white);
}

:where(.home-v53, .product-v54) .v53-mode-hiit-copy h3 b {
  font-family: var(--font-signal);
  font-size: 1.18em;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

/* Evidence and pathway modules. */
:where(.home-v53, .product-v54) .v53-person,
:where(.home-v53, .product-v54) .v53-product-main,
:where(.home-v53, .product-v54) .v53-product-details,
:where(.home-v53, .product-v54) .v53-workout-feature,
:where(.home-v53, .product-v54) .v53-resource,
:where(.home-v53, .product-v54) .product-v54-mount-proof {
  border-radius: var(--radius-card);
  overflow: hidden;
}

:where(.home-v53, .product-v54) .v53-product-proof {
  background: var(--graphite);
}

:where(.home-v53, .product-v54) .v53-facts {
  border-radius: var(--radius-card);
  overflow: hidden;
}

:where(.home-v53, .product-v54) .v53-facts div {
  background: var(--graphite);
}

:where(.home-v53, .product-v54) .v53-facts dt {
  color: var(--orange);
}

:where(.home-v53, .product-v54) .v53-product-main {
  background: var(--paper);
}

:where(.home-v53, .product-v54) .v53-resource {
  border-top-width: 0;
  box-shadow: inset 0 4px 0 var(--orange);
}

:where(.home-v53, .product-v54) .v53-resource--support {
  background: #e7e0d2;
  box-shadow: inset 0 4px 0 var(--graphite);
}

:where(.home-v53, .product-v54) :is(.v53-text-link, .v53-mode a, .v53-resource a, .v53-workout-feature b) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

:where(.home-v53, .product-v54) :is(.v53-footer, .site-footer) a {
  min-height: 44px;
  display: flex;
  align-items: center;
  width: max-content;
}

.product-v54 .site-footer h2 {
  font-family: var(--font-editorial);
  font-size: clamp(2.35rem, 3.4vw, 3.2rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: none;
}

.product-v54 .site-footer h3 {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.08em;
}

:where(.home-v53, .product-v54) .v53-closing {
  background: var(--graphite);
}

:where(.home-v53, .product-v54) .v53-footer {
  background: var(--ink);
}

/* Product-only proof and installation. */
.product-v54 .product-v54-hero-media {
  background: radial-gradient(circle at 52% 42%, #ffffff 0, #f3f0e9 58%, #ddd5c8 100%);
}

.product-v54 .product-v54-object-label {
  border-left-color: var(--orange);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.94);
}

.product-v54 .product-v54-install {
  background: var(--paper);
}

.product-v54 .product-v54-install-boundary {
  border-left-color: var(--orange);
  border-radius: var(--radius-card);
  background: var(--white);
}

.product-v54 .product-v54-install-steps li > span {
  color: var(--orange-text);
}

@media (max-width: 1080px) {
  :where(.home-v53, .product-v54) .v53-hero-media {
    border-radius: var(--radius-image);
  }
}

@media (max-width: 760px) {
  :where(.home-v53, .product-v54) :is(.v53-header-inner, .header-inner) {
    min-height: 66px;
  }

  :where(.home-v53, .product-v54) :is(.v53-brand, .brand--official) {
    width: 148px;
  }

  .home-v53 .v53-hero-copy h1,
  .product-v54 .v53-hero-copy h1 {
    font-size: clamp(2.9rem, 12.8vw, 3.45rem);
    line-height: 0.99;
  }

  :where(.home-v53, .product-v54) .v53-hero-media {
    border-radius: var(--radius-card);
    box-shadow: 0 18px 38px rgba(15, 17, 20, 0.12);
  }

  :where(.home-v53, .product-v54) .v53-hero-media figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  :where(.home-v53, .product-v54) .v53-proof-rail {
    margin-top: 0.9rem;
  }

  :where(.home-v53, .product-v54) :is(.v53-music-copy h2, .v53-section-heading h2, .v53-product-copy h2) {
    font-size: clamp(2.35rem, 10.2vw, 2.65rem);
  }

  .kp-signal-channel {
    grid-template-columns: 1fr;
    gap: 0.48rem;
  }

  .kp-signal-channel > strong {
    text-align: left;
  }

  :where(.home-v53, .product-v54) .v53-mode--challenge {
    display: grid;
    grid-template-rows: 180px auto;
    height: auto;
    min-height: 0;
  }

  :where(.home-v53, .product-v54) .v53-mode--challenge::after {
    display: none;
  }

  :where(.home-v53, .product-v54) .v53-mode--challenge figure {
    position: static;
    width: 100%;
    height: 180px;
    min-height: 0;
  }

  :where(.home-v53, .product-v54) .v53-mode--challenge .v53-mode-copy {
    position: static;
    padding: 1.35rem 1.25rem 1.55rem;
    color: var(--ink);
  }

  :where(.home-v53, .product-v54) .v53-mode--challenge .v53-mode-label {
    color: var(--graphite);
  }

  :where(.home-v53, .product-v54) .v53-music-media,
  :where(.home-v53, .product-v54) .v53-person,
  :where(.home-v53, .product-v54) .v53-workout-feature,
  :where(.home-v53, .product-v54) .v53-resource,
  :where(.home-v53, .product-v54) .product-v54-mount-proof {
    border-radius: var(--radius-card);
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.home-v53, .product-v54) *,
  :where(.home-v53, .product-v54) *::before,
  :where(.home-v53, .product-v54) *::after {
    transition-duration: 0.01ms !important;
  }
}
