/* ============================================================
   CodebyCarter — compare-slider.css
   Drag-handle slider showing "Template site (bad)" vs "Custom
   Carter site (good)" side-by-side. Visitors drag the handle
   left/right to compare. The single most persuasive visual.
   ============================================================ */

.compareslider{
  background:
    radial-gradient(800px 500px at 80% 30%, rgba(168,85,247,.08), transparent 60%),
    radial-gradient(700px 500px at 20% 70%, rgba(236,72,153,.06), transparent 60%),
    linear-gradient(165deg, #0F0F14 0%, #1A1A22 50%, #0F0F14 100%);
  color:#F5F5F7;
  padding:clamp(100px,12vw,160px) 0;
  position:relative;overflow:hidden;
}

.compareslider .shell{position:relative;z-index:2}

.cs-eyebrow{
  font-family:'JetBrains Mono',monospace;font-size:12px;letter-spacing:.20em;
  text-transform:uppercase;color:#EC4899;font-weight:700;
  margin-bottom:18px;display:inline-flex;align-items:center;gap:10px;
}
.cs-eyebrow::before{
  content:"";width:24px;height:1px;background:currentColor;display:inline-block;
}
.cs-h{
  font-size:clamp(40px,7vw,92px);line-height:1.04;letter-spacing:-.035em;
  font-weight:600;margin-bottom:22px;max-width:20ch;
  color:#F5F5F7;
}
.cs-h .ital{
  font-family:'Instrument Serif',serif;font-style:italic;font-weight:400;
  background:linear-gradient(135deg,#A855F7,#EC4899,#FB923C);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.cs-sub{
  font-size:clamp(17px,1.6vw,21px);color:rgba(245,245,247,.70);line-height:1.55;
  max-width:54ch;margin-bottom:46px;
}
.cs-sub b{color:#F5F5F7;font-weight:600}

/* ============================================================
   COMPARE FRAME
   ============================================================ */
.cs-frame{
  position:relative;
  border-radius:18px;overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 30px 70px -20px rgba(0,0,0,.55);
  aspect-ratio:16/10;
  background:#1A1A22;
  user-select:none;-webkit-user-select:none;
  touch-action:none;
  cursor:ew-resize;
}

/* === Side A: TEMPLATE (boring) === */
.cs-template{
  position:absolute;inset:0;
  background:#FAFAF7;color:#2A2A2A;
  font-family:Arial,Helvetica,sans-serif;
  display:flex;flex-direction:column;
}
.cs-template-nav{
  padding:14px 24px;background:#FFFFFF;border-bottom:1px solid #E5E5E5;
  display:flex;justify-content:space-between;align-items:center;
}
.cs-template-logo{
  font-family:'Times New Roman',Times,serif;font-weight:700;font-size:20px;
  color:#5A5A5A;
}
.cs-template-menu{
  display:flex;gap:24px;font-size:13px;color:#888;
}
.cs-template-hero{
  flex:1;padding:60px 40px;display:flex;flex-direction:column;
  justify-content:center;align-items:center;text-align:center;
  background:linear-gradient(135deg,#EDEDED,#F8F8F5);
}
.cs-template-h{
  font-family:Arial,Helvetica,sans-serif;font-size:clamp(28px,4vw,44px);
  font-weight:700;color:#3A3A3A;margin-bottom:14px;letter-spacing:-.01em;
  max-width:18ch;line-height:1.1;
}
.cs-template-p{
  font-size:14px;color:#888;line-height:1.5;max-width:42ch;margin-bottom:20px;
}
.cs-template-btn{
  background:#4A90E2;color:#fff;padding:10px 26px;border-radius:4px;
  font-size:13px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
}
.cs-template-foot{
  padding:12px 24px;background:#F0F0F0;font-size:11px;color:#999;text-align:center;
  border-top:1px solid #E0E0E0;
}

.cs-template-badge{
  position:absolute;top:18px;left:18px;
  padding:6px 12px;border-radius:99px;
  background:rgba(220,38,38,.92);color:#fff;
  font-family:'JetBrains Mono',monospace;font-size:10px;letter-spacing:.14em;
  text-transform:uppercase;font-weight:700;
  z-index:2;pointer-events:none;
  box-shadow:0 4px 12px rgba(220,38,38,.40);
}

/* === Side B: CUSTOM CARTER (good) === */
.cs-custom{
  position:absolute;inset:0;
  background:
    radial-gradient(700px 400px at 80% 20%, rgba(168,85,247,.30), transparent 60%),
    radial-gradient(500px 400px at 20% 80%, rgba(236,72,153,.20), transparent 60%),
    linear-gradient(165deg,#0A0A0F 0%,#1A1422 50%,#0F0A14 100%);
  color:#F5F5F7;
  font-family:'Space Grotesk',sans-serif;
  display:flex;flex-direction:column;
  /* Clip-path drives the reveal — set by JS */
  clip-path:inset(0 0 0 50%);
  -webkit-clip-path:inset(0 0 0 50%);
  transition:clip-path .04s linear;
}
.cs-custom-nav{
  padding:14px 24px;
  display:flex;justify-content:space-between;align-items:center;
  background:rgba(10,10,15,.50);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.cs-custom-logo{
  font-family:'Instrument Serif',serif;font-style:italic;font-size:20px;
  color:#F5F5F7;letter-spacing:-.02em;
}
.cs-custom-logo .c{
  background:linear-gradient(135deg,#A855F7,#EC4899);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  font-size:1.18em;
}
.cs-custom-menu{
  display:flex;gap:20px;font-family:'JetBrains Mono',monospace;
  font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  color:rgba(245,245,247,.65);font-weight:600;
}
.cs-custom-hero{
  flex:1;padding:48px 40px;display:flex;flex-direction:column;
  justify-content:center;position:relative;
}
.cs-custom-tag{
  display:inline-flex;align-items:center;gap:8px;align-self:flex-start;
  padding:6px 12px;border-radius:99px;
  background:rgba(168,85,247,.15);
  border:1px solid rgba(168,85,247,.30);
  font-family:'JetBrains Mono',monospace;font-size:10px;letter-spacing:.14em;
  text-transform:uppercase;color:#EC4899;font-weight:700;
  margin-bottom:18px;
}
.cs-custom-tag::before{
  content:"";width:6px;height:6px;border-radius:50%;background:#EC4899;
  box-shadow:0 0 8px #EC4899;
}
.cs-custom-h{
  font-size:clamp(30px,4.5vw,52px);line-height:.98;letter-spacing:-.035em;
  font-weight:600;color:#F5F5F7;margin-bottom:16px;max-width:14ch;
}
.cs-custom-h .ital{
  font-family:'Instrument Serif',serif;font-style:italic;font-weight:400;
  background:linear-gradient(135deg,#A855F7,#EC4899,#FB923C);
  background-size:200% 200%;animation:hue 5s linear infinite;
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.cs-custom-p{
  font-size:14px;color:rgba(245,245,247,.75);line-height:1.55;
  max-width:44ch;margin-bottom:22px;
}
.cs-custom-cta{
  display:inline-flex;align-items:center;gap:8px;align-self:flex-start;
  padding:11px 22px;border-radius:99px;
  background:linear-gradient(135deg,#A855F7,#EC4899,#FB923C);
  background-size:220% 220%;animation:hue 5s linear infinite;
  color:#fff;font-weight:600;font-size:13px;
  box-shadow:0 12px 28px -10px rgba(168,85,247,.55);
}
.cs-custom-orb{
  position:absolute;width:240px;height:240px;border-radius:50%;
  background:radial-gradient(circle,rgba(236,72,153,.4),transparent 70%);
  filter:blur(30px);
  bottom:-50px;right:-30px;pointer-events:none;
}
.cs-custom-foot{
  padding:12px 24px;
  font-family:'JetBrains Mono',monospace;font-size:10px;letter-spacing:.14em;
  text-transform:uppercase;color:rgba(245,245,247,.55);font-weight:600;
  display:flex;justify-content:space-between;
  background:rgba(255,255,255,.02);
  border-top:1px solid rgba(255,255,255,.04);
}

.cs-custom-badge{
  position:absolute;top:18px;right:18px;
  padding:6px 12px;border-radius:99px;
  background:linear-gradient(135deg,#A855F7,#EC4899);
  color:#fff;
  font-family:'JetBrains Mono',monospace;font-size:10px;letter-spacing:.14em;
  text-transform:uppercase;font-weight:700;
  z-index:2;pointer-events:none;
  box-shadow:0 4px 14px rgba(168,85,247,.45);
}

/* === DIVIDER HANDLE === */
.cs-divider{
  position:absolute;top:0;bottom:0;left:50%;
  width:3px;background:linear-gradient(180deg,#A855F7,#EC4899,#FB923C);
  transform:translateX(-50%);
  z-index:5;pointer-events:none;
  box-shadow:0 0 24px rgba(168,85,247,.65);
}
.cs-handle{
  position:absolute;top:50%;left:50%;
  width:54px;height:54px;border-radius:50%;
  background:#FFFFFF;
  transform:translate(-50%,-50%);
  display:grid;place-items:center;
  color:#0A0A0F;
  z-index:6;cursor:grab;pointer-events:auto;
  box-shadow:0 8px 24px rgba(0,0,0,.4), 0 0 0 4px rgba(255,255,255,.20);
  border:2px solid #fff;
  transition:transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease;
}
.cs-handle:hover{transform:translate(-50%,-50%) scale(1.10)}
.cs-handle:active,.cs-handle.is-dragging{cursor:grabbing;box-shadow:0 12px 36px rgba(168,85,247,.55), 0 0 0 6px rgba(168,85,247,.20)}
.cs-handle svg{display:block}

/* Visual hint that it's draggable — pulse on first load */
.cs-handle.is-pulsing::after{
  content:"";position:absolute;inset:-6px;border-radius:50%;
  border:2px solid rgba(168,85,247,.6);
  animation:csPulse 1.8s ease-out infinite;pointer-events:none;
}
@keyframes csPulse{
  0%   {transform:scale(1);opacity:1}
  100% {transform:scale(1.5);opacity:0}
}

/* ============================================================
   CALLOUT below
   ============================================================ */
.cs-callout{
  margin-top:30px;text-align:center;
  display:flex;justify-content:center;align-items:center;gap:18px;flex-wrap:wrap;
  font-family:'JetBrains Mono',monospace;font-size:12px;letter-spacing:.10em;
  text-transform:uppercase;font-weight:600;
}
.cs-callout-bad{color:rgba(245,245,247,.50);text-decoration:line-through}
.cs-callout-arrow{color:rgba(245,245,247,.40)}
.cs-callout-good{
  background:linear-gradient(135deg,#A855F7,#EC4899,#FB923C);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  font-weight:700;
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width:780px){
  .cs-frame{aspect-ratio:9/14;max-height:600px}
  .cs-template-hero,.cs-custom-hero{padding:30px 22px}
  .cs-handle{width:46px;height:46px}
  .cs-callout{font-size:11px;flex-direction:column;gap:8px}
}
