/* ==========================================================================
   Launch Labs — Section: "The difference isn't just how it looks"
   Proof, not testimonials: a draggable before/after comparison of a weak,
   generic website versus a strategy-led one — built entirely from
   typography and layout (no screenshots), since the difference itself is
   about hierarchy and clarity, which CSS can demonstrate directly. Same
   black surface / local tokens as most of the rest of the site. The drag
   handle stays a literal white circle with a dark icon regardless of
   section theme — it's a UI control, not themed content.

   Structure: section shell -> centered intro (heading, one-line sub) ->
              the comparison frame (two stacked mockups; the "after" layer
              is clipped with clip-path to the handle's position, dragged
              via js/proof.js with pointer events + arrow-key support,
              role="slider" for accessibility) -> four short before/after
              rows beneath, revealed with a small stagger on scroll.
   ========================================================================== */

.proof {
  --ink: #FFFFFF;
  --ink-muted: rgba(255, 255, 255, 0.66);
  --ink-faint: rgba(255, 255, 255, 0.45);
  --hairline: rgba(255, 255, 255, 0.1);
  --contrast: #D92632;

  background: #010202;
  color: var(--ink);
  padding: clamp(6rem, 13vw, 10rem) clamp(1.5rem, 4vw, 4rem);
}

/* ==========================================================================
   Intro
   ========================================================================== */
.proof__intro {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.proof__heading {
  max-width: 64rem;
  margin: 0 auto;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4.4vh, 3.4rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
}

.proof__sub {
  max-width: 44rem;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.9rem, 1.56vw, 1.47rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-align: center;
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
}

.proof.is-visible .proof__heading,
.proof.is-visible .proof__sub {
  animation: proof-rise 0.75s var(--ease) forwards;
}

.proof.is-visible .proof__heading { animation-delay: 0s; }
.proof.is-visible .proof__sub     { animation-delay: 0.32s; }

/* ==========================================================================
   Comparison frame
   ========================================================================== */
.proof__compare {
  max-width: 72rem;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  opacity: 0;
  transform: translateY(24px);
}

.proof.is-visible .proof__compare {
  animation: proof-rise 0.9s var(--ease) forwards;
  animation-delay: 0.22s;
}

.proof__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 2px 6px rgba(11, 10, 13, 0.04),
    0 30px 60px rgba(11, 10, 13, 0.12);
  cursor: ew-resize;
  user-select: none;
}

.proof__mock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.35rem;
}

/* ---------- Before: generic, flat hierarchy, everything the same weight ---------- */
.proof__mock--before {
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: #F1F0EE;
  text-align: center;
}

.proof__mock-logo {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(11, 10, 13, 0.55);
}

.proof__mock-bars {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.proof__mock-bars span {
  display: block;
  height: 0.55rem;
  border-radius: 3px;
  background: rgba(11, 10, 13, 0.16);
}

.proof__mock-bars span:nth-child(1) { width: 8rem; }
.proof__mock-bars span:nth-child(2) { width: 6.25rem; }
.proof__mock-bars span:nth-child(3) { width: 7rem; }

.proof__mock-image {
  width: 6rem;
  height: 2.5rem;
  border-radius: 6px;
  background: rgba(11, 10, 13, 0.1);
}

.proof__mock-ctas {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.proof__mock-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(11, 10, 13, 0.18);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(11, 10, 13, 0.5);
}

/* ---------- After: clear hierarchy, one voice, one confident action ---------- */
.proof__mock--after {
  justify-content: center;
  gap: 0.9rem;
  background: #0b0a0d;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

.proof__mock-word {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.proof__mock-word span { color: var(--contrast); }

.proof__mock-headline {
  margin-top: 0.4rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.proof__mock-headline em {
  font-style: normal;
  font-weight: 800;
  color: var(--contrast);
}

.proof__mock-support {
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
}

.proof__mock-cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  background: var(--contrast);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #FFFFFF;
}

.proof__mock-tag {
  position: absolute;
  top: 1rem;
  left: 1.1rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof__mock--before .proof__mock-tag { color: rgba(11, 10, 13, 0.4); }
.proof__mock--after .proof__mock-tag { color: rgba(255, 255, 255, 0.45); }

/* ---------- Drag handle ---------- */
.proof__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  transform: translateX(-50%);
  pointer-events: auto;
}

.proof__handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(11, 10, 13, 0.06);
}

.proof__handle-grip {
  position: absolute;
  top: 50%;
  left: 0;
  width: 2rem;
  height: 2rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #FFFFFF;
  color: #0b0a0d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.proof__handle-grip svg { width: 0.9rem; height: 0.9rem; }

.proof__handle:focus-visible .proof__handle-grip {
  outline: 2px solid #0b0a0d;
  outline-offset: 3px;
}

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes proof-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 56rem) {
  .proof__compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 30rem) {
  .proof__compare { grid-template-columns: 1fr; }
}
