:root {
  color: #281533;
  background: #f5f0f6;
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f5f0f6;
}

button,
a {
  font: inherit;
}

.kpf {
  overflow: hidden;
  color: #281533;
  background: #f5f0f6;
}

.kpf__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
  min-height: 760px;
  padding: 52px max(24px, calc((100vw - 1240px) / 2));
  background:
    radial-gradient(circle at 78% 28%, rgba(216, 179, 235, .75), transparent 28%),
    linear-gradient(135deg, #f8f2f7 0%, #e9dcf0 55%, #d6b7e4 100%);
}

.kpf__hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 710px;
}

.kpf__brand {
  margin: 0 0 68px;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .28em;
}

.kpf__eyebrow,
.kpf__section-heading p,
.kpf__results-kicker,
.kpf__pair-label,
.kpf__match {
  color: #64387b;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

.kpf__hero h1 {
  margin: 14px 0 26px;
  font-size: clamp(56px, 7.5vw, 112px);
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: .82;
}

.kpf__hero h1 em {
  color: #64387b;
  font-family: Georgia, serif;
  font-weight: 400;
}

.kpf__lead {
  max-width: 590px;
  margin: 0;
  color: #5f4e66;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.kpf__hero-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
  padding-bottom: 8px;
  border-bottom: 1px solid #64387b;
  color: #64387b;
  font-weight: 600;
  text-decoration: none;
}

.kpf__stage {
  position: relative;
  min-height: 620px;
  perspective: 1100px;
}

.kpf__halo {
  position: absolute;
  top: 15%;
  left: 10%;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid rgba(100, 56, 123, .18);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(255, 255, 255, .11),
    0 0 0 68px rgba(255, 255, 255, .08);
}

.kpf__hero-product {
  position: absolute;
  width: min(56%, 330px);
  filter: drop-shadow(0 34px 30px rgba(63, 35, 77, .22));
  transform-style: preserve-3d;
  animation: kpf-float 6s ease-in-out infinite;
}

.kpf__hero-product--one {
  z-index: 2;
  top: 12%;
  left: 29%;
  transform: rotate(5deg) translateZ(80px);
}

.kpf__hero-product--two {
  z-index: 1;
  top: 32%;
  left: 2%;
  width: min(48%, 290px);
  transform: rotate(-13deg) translateZ(-20px);
  animation-delay: -2s;
}

.kpf__hero-product--three {
  z-index: 3;
  top: 42%;
  right: -4%;
  width: min(45%, 265px);
  transform: rotate(14deg) translateZ(35px);
  animation-delay: -4s;
}

@keyframes kpf-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -16px; }
}

.kpf__finder,
.kpf__next {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 100px 24px;
}

.kpf__section-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 20px;
}

.kpf__section-heading > span {
  padding-top: 5px;
  color: #9b87a4;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
}

.kpf__section-heading p {
  margin: 0 0 10px;
}

.kpf__section-heading h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1;
}

.kpf__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 42px 0 88px 62px;
}

.kpf__filters button {
  padding: 12px 17px;
  border: 1px solid #cdbfd2;
  border-radius: 999px;
  color: #5e4d65;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.kpf__filters button:hover {
  transform: translateY(-2px);
}

.kpf__filters button.is-active {
  border-color: #64387b;
  color: white;
  background: #64387b;
}

.kpf__results-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 450px);
  gap: 50px;
  align-items: end;
  margin-bottom: 34px;
  padding: 0 4px 24px;
  border-bottom: 1px solid #d9cddd;
}

.kpf__results-kicker {
  margin: 0 0 10px;
}

.kpf__results-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: -.045em;
}

.kpf__results-head > p {
  margin: 0;
  color: #6e5d75;
  line-height: 1.55;
}

.kpf__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.kpf__product {
  overflow: hidden;
  border: 1px solid #dacede;
  border-radius: 24px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 18px 50px rgba(53, 27, 65, .06);
}

.kpf__product.is-first {
  box-shadow: 0 0 0 2px #64387b, 0 22px 70px rgba(73, 37, 89, .16);
}

.kpf__product-visual {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
  overflow: hidden;
  background: #efe5f2;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .85), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--card-accent) 72%, white), #f8f3f8);
}

.kpf__product-visual::after {
  position: absolute;
  bottom: 12%;
  width: 44%;
  height: 15%;
  border-radius: 50%;
  background: rgba(42, 19, 52, .15);
  filter: blur(18px);
  content: "";
}

.kpf__product-visual > span {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 7px 9px;
  border-radius: 6px;
  color: #4b2b59;
  background: rgba(255, 255, 255, .68);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}

.kpf__product-visual img {
  position: relative;
  z-index: 1;
  width: 72%;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 18px 16px rgba(50, 24, 61, .18));
  transition: transform .35s ease;
}

.kpf__product:hover .kpf__product-visual img {
  transform: translateY(-8px) rotate(2deg);
}

.kpf__product-copy {
  padding: 26px;
}

.kpf__match {
  margin: 0 0 12px;
}

.kpf__product h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.kpf__role {
  margin: 12px 0 0;
  color: #64387b;
  font-weight: 600;
}

.kpf__reason {
  min-height: 72px;
  margin: 13px 0 24px;
  color: #6d5c74;
  font-size: 14px;
  line-height: 1.55;
}

.kpf__product-copy a,
.kpf__pair button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 0;
  color: #4f2862;
  background: transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.kpf__compare {
  padding: 100px max(24px, calc((100vw - 1232px) / 2));
  color: #f7f0f8;
  background: #41214f;
}

.kpf__section-heading--light > span,
.kpf__section-heading--light p {
  color: #caa8d6;
}

.kpf__pairs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 50px;
}

.kpf__pair {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .06);
}

.kpf__pair-label {
  margin: 0 0 26px;
  color: #d5b7df;
}

.kpf__pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.kpf__pair-grid > div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.kpf__pair h3 {
  margin: 0 0 9px;
  font-size: 23px;
  font-weight: 500;
}

.kpf__pair p:not(.kpf__pair-label) {
  margin: 0;
  color: #d7cadb;
  font-size: 14px;
  line-height: 1.5;
}

.kpf__pair button {
  margin-top: 28px;
  padding: 0;
  color: #f2cf9e;
}

.kpf__next {
  text-align: center;
}

.kpf__next h2 {
  margin: 14px 0 34px;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .96;
}

.kpf__next-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.kpf__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.kpf__button--primary {
  color: white;
  background: #64387b;
}

.kpf__button--secondary {
  border: 1px solid #baaabd;
  color: #4f3a57;
  background: transparent;
}

.kpf__note {
  margin: 26px auto 0;
  color: #7a6a7f;
  font-size: 12px;
}

@media (max-width: 990px) {
  .kpf__hero {
    grid-template-columns: 1fr;
  }

  .kpf__stage {
    min-height: 520px;
  }

  .kpf__brand {
    margin-bottom: 50px;
  }

  .kpf__products,
  .kpf__pairs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .kpf__hero {
    min-height: auto;
    padding: 30px 18px 0;
  }

  .kpf__hero h1 {
    font-size: clamp(52px, 17vw, 78px);
  }

  .kpf__stage {
    min-height: 430px;
  }

  .kpf__hero-product--one {
    left: 28%;
  }

  .kpf__finder,
  .kpf__next,
  .kpf__compare {
    padding: 72px 18px;
  }

  .kpf__filters {
    margin: 32px 0 64px;
  }

  .kpf__filters button {
    font-size: 14px;
  }

  .kpf__results-head,
  .kpf__products,
  .kpf__pairs {
    grid-template-columns: 1fr;
  }

  .kpf__results-head {
    gap: 18px;
  }

  .kpf__product-visual {
    min-height: 300px;
  }

  .kpf__reason {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .kpf__hero-product {
    animation: none;
  }

  .kpf__filters button,
  .kpf__product-visual img {
    transition: none;
  }
}
