@font-face {
  font-family: "batoshi";
  src: url("../new-fonts/batoshi/batoshi.ttf") format("opentype");
}

@font-face {
  font-family: "loyal";
  src: url("../new-fonts/eighties/Eighties-Comeback/OTF/EightiesComeback - Semi Bold Semi Condensed.otf")
    format("opentype");
}

@font-face {
  font-family: "loyal-black";
  src: url("../new-fonts/eighties/Eighties-Comeback/OTF/EightiesComeback - Black.otf")
    format("opentype");
}
/* ================= RESULTS SECTION ================= */

.results-section {
  position: relative;
  padding: 64px 16px 56px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  background: #fff2f9; /* TOP part is white */
}

.results-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 58%; /* controls how much blue shows */
  background: linear-gradient(180deg, #ffbee3 0%, #ffbee3 100%);

  z-index: 0;
}

.results-section > * {
  position: relative;
  z-index: 1;
}

/* ---------- Heading ---------- */

.results-heading {
  font-size: 48px;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 72px;
  color: #ffbee3;
}

.results-heading span {
  color: #323232;
  font-weight: 700;
}

/* ================= TEETH COMPARISON ================= */

.teeth-compare-wrapper {
  position: relative;
  max-width: 800px;
  aspect-ratio: 3 / 1.3;
  margin: 0 auto -132px; /* 👈 pulls image into blue */
  background: #ffffff;
  overflow: hidden;
  border-radius: 4px;
  z-index: 2;
}

.results-stats {
  margin-top: 600px;
}

/* Images */

.teeth-image {
  position: absolute;
  inset: 0;
}

.teeth-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* AFTER image clipped */

.teeth-image.after {
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.1s linear;
}

/* Range slider (invisible but interactive) */

.teeth-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

/* Handle line */

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: #ffbee3;
  transform: translateX(-50%);
  z-index: 4;
}

/* Handle circle */

.slider-handle::before {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffbee3;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border-radius: 50%;
  line-height: 1;
}

/* ================= STATS ================= */

.results-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 720px;
  margin: 0 auto 8px;
}

.stat {
  padding-top: 178px;
  flex: 1;
  text-align: center;
}

.stat h3 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  margin: 0;
  color: #323232;
  font-family: "loyal", sans-serif;
}

.stat p {
  margin-top: 6px;
  font-size: 16px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: #323232;
  font-family: "loyal-black", sans-serif;
}

/* ================= BUTTON ================= */

.results-btn {
  background: #ffffff;
  color: #ffbee3;
  border: none;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.25s ease;
}

.results-btn:hover {
  background: #e6f2fa;
}

/* ================= RESPONSIVE ================= */

/* Mobile */

@media (max-width: 600px) {
  .teeth-compare-wrapper {
    max-width: 100%;
    aspect-ratio: 3 / 1.5;
    border-radius: 10px;
    margin: 0 auto -24px;
  }

  .results-heading {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .slider-handle {
    width: 2px;
  }

  .slider-handle::before {
    padding: 8px;
    font-size: 12px;
  }

  .results-stats {
    margin-top: 40px;
    gap: 16px;
  }

  .stat {
    padding: 12px 8px;
    border-radius: 8px;
  }

  .stat h3 {
    font-size: 16px;
  }

  .stat p {
    font-size: 8px;
  }

  .results-section {
    padding: 40px 16px 32px;
  }

  .results-section::after {
    height: 50%;
  }

  .results-btn {
    margin-top: 16px;
    width: 80%;
    max-width: 260px;
  }
}
