/* How it works page specific styles */

.hero-video-section video {
  width: 100%;
  height: auto;
  display: block;
}

.boxed-row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 30px;
}

.intro-copy {
  padding-top: 40px;
  padding-bottom: 32px;
  color: #686158;
  font-size: 14px;
  line-height: 1.75;
}

.intro-copy p {
  margin: 0 0 19px;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.full-row {
  width: 100%;
}

.full-row > .text-row {
  padding: 0 30px;
  color:#686158;
  font-size: 14px;
  line-height: 1.75;
}

.full-row > .text-row p {
  margin: 0 0 19px;
}

.centered-video-section {
  padding: 32px 0;
}

.centered-video-wrap {
  max-width: 66%;
  margin: 0 auto;
}

.centered-video-wrap video {
  width: 100%;
  height: auto;
  display: block;
}

.lp3-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 24px 30px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.lp3-col {
  flex: 0 0 50%;
}

.lp3-image-col figure {
  margin: 0;
}

.lp3-image-col img {
  width: 100%;
  height: auto;
}

.lp3-text-col h3 {
  margin: 0 0 16px;
  color: #686158;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.lp3-text-col p {
  margin: 0 0 16px;
  color: #686158;
  font-size: 14px;
  line-height: 1.75;
}

.lp3-text-col p:last-child {
  margin-bottom: 0;
}

.mechanism-row {
  display: flex;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 30px;
}

.mechanism-col {
  flex: 0 0 50%;
}

.mechanism-steps-col figure {
  margin: 0;
}

.mechanism-steps-col figure:first-child {
  margin-bottom: 20px;
}

.mechanism-steps-col figure:nth-child(3) {
  margin-top: 15px;
  margin-bottom: 15px;
}

.mechanism-steps-col figure:nth-child(5) {
  margin-top: 15px;
  margin-bottom: 15px;
}

.mechanism-steps-col figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

.mechanism-steps-col p {
  margin: 0 0 15px;
  color: #686158;
  font-size: 14px;
  line-height: 1.6;
}

.mechanism-slider {
  position: relative;
  overflow: hidden;
}

.mechanism-slider-track {
  position: relative;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.mechanism-slider-track.is-dragging {
  cursor: grabbing;
}

.mechanism-slider-track:focus-visible {
  outline: 2px solid rgba(67, 37, 101, 0.45);
  outline-offset: 4px;
}

.mechanism-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 350ms ease;
}

.mechanism-slide:first-child {
  position: relative;
}

.mechanism-slide.is-active {
  opacity: 1;
}

.mechanism-slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 982 / 523;
  object-fit: cover;
}

.treatments-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 24px 30px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.treatment-col {
  text-align: center;
}

.treatment-col figure {
  margin: 0 0 32px;
}

.treatment-col img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  display: inline-block;
}

.treatment-col p {
  margin: 0;
  color: #686158;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.results-header-row {
  padding: 38px 30px 0;
  max-width: 1280px;
  margin: 0 auto;
  text-align: left;
}

.results-title {
  margin: 0 0 24px;
  color: #686158;
  font-size: 22px;
  font-weight: normal;
  line-height: 1.2;
  text-align: left;
}

.result-intro {
  padding-top: 0;
  margin-bottom: 40px;
}

.result-intro p {
  margin: 0;
  color: #432565;
  font-size: 14px;
  line-height: 1.75;
  text-align: left;
}

.results-cards-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0 30px 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.hiw-result-card {
  text-align: center;
}

.hiw-compare {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.hiw-compare img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hiw-result-card p {
  margin: 0;
  color: #432565;
  font-size: 14px;
  line-height: 1.5;
}

.hiw-result-card strong {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 14px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 220px);
  justify-content: center;
  gap: 30px;
  padding: 0 30px 60px;
  max-width: 840px;
  margin: 0 auto;
}

.result-card {
  padding: 0;
  text-align: center;
}

/* Override style.css grid-column rules that place cards in columns 2-4 */
.result-card:nth-child(1),
.result-card:nth-child(2),
.result-card:nth-child(3) {
  grid-column: auto;
}

.img-compare-slider {
  --compare-position: 50%;
  position: relative;
  width: 220px;
  max-width: 100%;
  overflow: hidden;
  cursor: ew-resize;
  margin: 0 auto 32px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  aspect-ratio: 1 / 1;
}

.img-compare-slider:focus-visible {
  outline: 2px solid rgba(67, 37, 101, 0.45);
  outline-offset: 4px;
}

.img-compare-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.img-compare-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.img-compare-item.after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  clip-path: inset(0 0 0 var(--compare-position));
}

.img-compare-item.after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-compare-item.before {
  z-index: 1;
}

.img-compare-label {
  position: absolute;
  bottom: 12px;
  z-index: 3;
  padding: 4px 8px;
  color: #fff;
  /*background: rgba(67, 37, 101, 0.82);*/
    background: rgba(237, 195, 166, 0.45);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.img-compare-item.before .img-compare-label {
  left: 12px;
}

.img-compare-item.after .img-compare-label {
  right: 12px;
}

.img-compare-slider:hover .img-compare-label,
.img-compare-slider:focus-visible .img-compare-label,
.img-compare-slider.is-dragging .img-compare-label {
  opacity: 1;
}

.img-compare-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: #fff;
  z-index: 4;
  transform: translateX(-50%);
  pointer-events: none;
}

.handle-line {
  width: 100%;
  height: 100%;
  background: #fff;
}

.handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 43px;
  height: 43px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  pointer-events: none;
}

.handle-btn path {
  stroke: currentColor;
}

.result-text {
  margin: 0;
  color: #686158;
  font-size: 14px;
  line-height: 1.55;
}

.result-text strong {
  display: block;
  font-weight: 700;
  margin-bottom: 3px;
  font-size: 14px;
}

.result-text span {
  display: block;
}

.contact-cta-row {
  text-align: center;
  padding: 49px 30px 40px;
}

.contact-cta-row h2 {
  margin: 0 0 24px;
  color:  #686158;
  font-size: 22px;
  font-weight: normal;
  line-height: 1.2;
}

.contact-cta-btn {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid  #686158;
  color:  #686158;
  font-size: 14px;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease;
}

.contact-cta-btn:hover {
      /*border: 1px solid  #edc3a6;*/

  /*color: #fff;*/
  /*background: #432565;*/
   /*background: #edc3a6;*/
 background: #686158;
  color: #fff;
  border-color: #686158;

}

@media (max-width: 991px) {
  .boxed-row {
    padding: 0 15px;
  }

  .full-row > .text-row {
    padding: 0 15px;
  }

  .centered-video-wrap {
    max-width: 100%;
  }

  .lp3-row {
    flex-direction: column;
    gap: 24px;
    padding: 24px 15px 32px;
  }

  .lp3-col {
    flex: 0 0 100%;
  }

  .mechanism-row {
    flex-direction: column;
    gap: 24px;
    padding: 0 15px;
  }

  .mechanism-col {
    flex: 0 0 100%;
  }

  .treatments-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 24px 15px 32px;
  }

  .results-header-row {
    padding: 38px 15px 0;
  }

  .results-cards-row {
    grid-template-columns: 1fr;
    row-gap: 28px;
    padding: 29px 15px 32px;
  }

  .results-cards-row .result-card,
  .results-cards-row .result-card:nth-child(1),
  .results-cards-row .result-card:nth-child(2),
  .results-cards-row .result-card:nth-child(3) {
    grid-column: 1;
    padding: 0;
  }

  .handle-btn {
    width: 39px;
    height: 39px;
  }

  .handle-btn svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 600px) {
  .treatments-row {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: minmax(0, 220px);
    row-gap: 38px;
    padding: 0 15px 48px;
  }
}
