.pf-compare-section {
  max-width: 1480px;
  margin: 0 auto;
  padding: 96px 44px 108px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 4%, rgba(10, 172, 203, .18), transparent 34rem),
    #0b2230;
}

.pf-compare-heading {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 46px;
}

.pf-compare-heading .eyebrow { color: #66cfe8; }

.pf-compare-heading h2 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(40px, 4.7vw, 68px);
  line-height: 1;
  letter-spacing: -.055em;
}

.pf-compare-heading h2 em {
  color: #43c5dc;
  font-style: normal;
}

.pf-compare-heading > p {
  max-width: 440px;
  margin: 0;
  color: #a8bcc1;
  font-size: 14px;
  line-height: 1.75;
}

.pf-compare {
  --pf-position: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 5px;
  background: #13272e;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  box-shadow: 0 36px 90px rgba(0, 0, 0, .35);
}

.pf-compare:focus-visible {
  outline: 3px solid #43c5dc;
  outline-offset: 5px;
}

.pf-compare-photo,
.pf-compare-frosted,
.pf-compare-frosted img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pf-compare-photo {
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.pf-compare-frosted {
  overflow: hidden;
  clip-path: inset(
    7.5%
    calc(100% - min(var(--pf-position), 96.2%))
    9.2%
    15.45%
  );
  pointer-events: none;
}

.pf-compare-frosted img {
  object-fit: cover;
  filter: blur(15px) saturate(.47) brightness(1.34) contrast(.74);
  transform: scale(1.04);
}

.pf-compare-frosted::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(244, 253, 255, .61), rgba(205, 228, 235, .43));
  backdrop-filter: blur(3px);
}

.pf-compare-state {
  position: absolute;
  top: 22px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  background: rgba(5, 20, 29, .68);
  backdrop-filter: blur(12px);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
}

.pf-compare-state::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 11px currentColor;
}

.pf-compare-state--private { left: 22px; }
.pf-compare-state--clear { right: 22px; color: #62e5f0; }

.pf-compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pf-position);
  z-index: 5;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 0 18px rgba(67, 197, 220, .7);
  pointer-events: none;
}

.pf-compare-handle {
  position: absolute;
  top: 50%;
  left: var(--pf-position);
  z-index: 6;
  display: grid;
  place-items: center;
  width: clamp(58px, 7vw, 76px);
  height: clamp(58px, 7vw, 76px);
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #25d9e8, #168eea);
  box-shadow: 0 12px 35px rgba(0, 76, 116, .42), 0 0 28px rgba(37, 217, 232, .33);
  pointer-events: none;
}

.pf-compare-handle svg {
  width: 54%;
  height: 54%;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .25));
}

.pf-compare-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  padding: 9px 13px;
  color: #e8fbfe;
  background: rgba(5, 20, 29, .69);
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .25s ease;
}

.pf-compare.is-used .pf-compare-hint { opacity: 0; }

.pf-compare-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 18px;
  color: #78949c;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pf-compare-foot strong { color: #dff9fb; letter-spacing: .11em; }

@media (max-width: 1100px) {
  .pf-compare-heading { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 700px) {
  .pf-compare-section { padding: 76px 20px 82px; }
  .pf-compare-heading { margin-bottom: 30px; }
  .pf-compare-heading h2 { font-size: 42px; }
  .pf-compare-heading > p { font-size: 13px; }
  .pf-compare { aspect-ratio: 4 / 5; }
  .pf-compare-photo,
  .pf-compare-frosted img { object-position: center center; }
  .pf-compare-frosted {
    clip-path: inset(7.5% calc(100% - var(--pf-position)) 9.2% 0);
  }
  .pf-compare-state { top: 12px; padding: 7px 9px; font-size: 8px; letter-spacing: .06em; }
  .pf-compare-state--private { left: 10px; }
  .pf-compare-state--clear { right: 10px; }
  .pf-compare-hint { bottom: 12px; }
  .pf-compare-foot { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-compare-hint { transition: none; }
}
