/**
 * Homepage before/after audio proof block.
 */

.pratst-before-after-band {
  background: linear-gradient(180deg, #0a0a0a 0%, #121212 50%, #0a0a0a 100%);
  border-top: 1px solid #2a2a2a;
}

.pratst-before-after {
  padding: 48px 0;
  color: #fff;
}

.pratst-before-after__header {
  position: relative;
  left: auto;
  right: auto;
  z-index: auto;
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.pratst-before-after__eyebrow {
  margin: 0 0 12px;
  font-family: 'Poppins-Medium', 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00d26a;
}

.pratst-before-after__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.pratst-before-after__lead {
  margin: 0 auto;
  max-width: 40em;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.pratst-before-after__engine {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px 24px;
  border-radius: 16px;
  background: #141416;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.pratst-before-after__toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.pratst-before-after__mode {
  appearance: none;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Poppins-Medium', 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pratst-before-after__mode:hover:not(:disabled),
.pratst-before-after__mode:focus-visible:not(:disabled) {
  color: #fff;
}

.pratst-before-after__mode.is-active {
  background: #00d26a;
  color: #0a0a0a;
}

.pratst-before-after__mode:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pratst-before-after__transport {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.pratst-before-after__play {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 120px;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: #00d26a;
  color: #0a0a0a;
  font-family: 'Poppins-Medium', 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pratst-before-after__play:hover:not(:disabled),
.pratst-before-after__play:focus-visible:not(:disabled) {
  background: #1ae07d;
}

.pratst-before-after__play:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pratst-before-after__play-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #0a0a0a;
}

.pratst-before-after__play.is-playing .pratst-before-after__play-icon {
  width: 12px;
  height: 14px;
  border: 0;
  background:
    linear-gradient(#0a0a0a, #0a0a0a) 0 0 / 4px 100% no-repeat,
    linear-gradient(#0a0a0a, #0a0a0a) 8px 0 / 4px 100% no-repeat;
}

.pratst-before-after__progress {
  min-width: 0;
}

.pratst-before-after__scrub {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 28px;
  margin: 0 0 4px;
  background: transparent;
  cursor: pointer;
}

.pratst-before-after__scrub:focus {
  outline: none;
}

.pratst-before-after__scrub:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(0, 210, 106, 0.35);
}

.pratst-before-after__scrub:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(0, 210, 106, 0.35);
}

.pratst-before-after__scrub::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.pratst-before-after__scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #00d26a;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pratst-before-after__scrub:hover::-webkit-slider-thumb {
  transform: scale(1.08);
}

.pratst-before-after__scrub::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.pratst-before-after__scrub::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #00d26a;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.pratst-before-after__scrub:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.pratst-before-after__scrub:disabled::-webkit-slider-thumb,
.pratst-before-after__scrub:disabled::-moz-range-thumb {
  cursor: not-allowed;
  transform: none;
}

.pratst-before-after__times {
  display: flex;
  justify-content: space-between;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.pratst-before-after__hint {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

@media (max-width: 767px) {
  .pratst-before-after {
    padding: 40px 0;
  }

  .pratst-before-after__engine {
    padding: 22px 16px 18px;
  }

  .pratst-before-after__transport {
    grid-template-columns: 1fr;
  }

  .pratst-before-after__play {
    width: 100%;
  }
}
