*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: #0a0a0a;
  color: #fff;
  font-family: system-ui, sans-serif;
  padding: 0 0 2rem;
  min-height: 100vh;
}

/* ── TITLE ── */
.page-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
  padding: 2rem 1rem 1.8rem;
  background: linear-gradient(135deg, #fff 40%, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── PAIRS GRID ── */
.pairs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 0.75rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ── COMPARE SLIDER ── */
.compare-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
  /* aspect-ratio set by JS once image loads */
}

.compare-after,
.compare-before {
  position: absolute;
  inset: 0;
}

.compare-after { z-index: 1; }

.compare-before {
  z-index: 2;
  width: 50%;
  overflow: hidden;
}

.compare-after img,
.compare-before img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* before img must be full-slider-width, clipped by parent overflow */
.compare-before img {
  width: calc(100% / var(--p, 0.5));
  max-width: none;
}

/* ── HANDLE ── */
.handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.handle-line {
  flex: 1;
  width: 2px;
  background: rgba(255,255,255,0.85);
}

.handle-knob {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

/* ── LABELS ── */
.lbl {
  position: absolute;
  bottom: 10px;
  z-index: 11;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.lbl-l {
  left: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.7);
}

.lbl-r {
  right: 10px;
  background: rgba(96,165,250,0.18);
  border: 1px solid rgba(96,165,250,0.4);
  color: #60a5fa;
}

/* ── TRY NOW BUTTON ── */
.try-wrap {
  text-align: center;
  margin-top: 2rem;
}

.try-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #2481cc;
  color: #fff;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 2.5rem;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(36,129,204,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.try-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(36,129,204,0.55);
}

.try-btn:active { transform: translateY(0); }
