/* ===== Claude only vs Editor + Claude ===== */

/* Tool logos row */
.cmp-logos { display: inline-flex; align-items: center; gap: 4px; }
.cmp-logos img { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; display: block; }

/* --- Home page: before/after slider --- */
.cmp {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 22px;
  background: #000; border: 1px solid rgba(255,77,46,.35);
  box-shadow: 0 0 60px rgba(255,77,46,.18);
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.cmp-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
/* the "before" edit sits on top and is cut off at the divider */
.cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.cmp-tag {
  position: absolute; top: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 7px; border-radius: 999px; pointer-events: none;
  background: rgba(11,11,13,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14); color: #fff; font: 600 13px Inter, sans-serif;
  transition: opacity .25s;
}
.cmp-tag-l { left: 14px; }
.cmp-tag-r { right: 14px; border-color: rgba(255,77,46,.55); box-shadow: 0 0 18px rgba(255,77,46,.35); }

.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 4; width: 44px; margin-left: -22px;
  display: grid; place-items: center; cursor: ew-resize; outline: none;
}
.cmp-handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px;
  background: linear-gradient(var(--accent-2), var(--accent)); box-shadow: 0 0 16px rgba(255,77,46,.85);
}
.cmp-knob {
  position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(255,77,46,.25), 0 0 26px rgba(255,77,46,.8);
  transition: transform .2s;
}
.cmp-knob svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cmp:hover .cmp-knob, .cmp-handle:focus-visible .cmp-knob, .cmp.dragging .cmp-knob { transform: scale(1.1); }
.cmp-handle:focus-visible .cmp-knob { outline: 2px solid #fff; outline-offset: 3px; }

.cmp-controls { position: absolute; left: 14px; bottom: 14px; z-index: 5; display: flex; gap: 8px; }
.cmp-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,.22); background: rgba(11,11,13,.7); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, box-shadow .2s;
}
.cmp-btn:hover { background: var(--accent); box-shadow: 0 0 18px rgba(255,77,46,.7); }
.cmp-btn svg { width: 18px; height: 18px; fill: #fff; }
.cmp-btn .stroke { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.cmp-play .i-pause, .cmp.playing .cmp-play .i-play { display: none; }
.cmp.playing .cmp-play .i-pause { display: block; }
.cmp-sound .i-on, .cmp.sound .cmp-sound .i-off { display: none; }
.cmp.sound .cmp-sound .i-on { display: block; }

.cmp-cta { display: flex; justify-content: center; margin-top: 26px; }

/* --- Full comparison page --- */
.cmp-page { padding-top: 130px; }
.cmp-back { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 26px; transition: color .2s; }
.cmp-back:hover { color: var(--text); }
.cmp-page-head { margin-bottom: 36px; }
.cmp-page-head h1 { font-size: clamp(36px, 5.4vw, 64px); }
.cmp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.cmp-col { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px 18px 22px; }
.cmp-col-after { border-color: rgba(255,77,46,.5); box-shadow: 0 0 50px rgba(255,77,46,.18); }
.cmp-col-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cmp-col-head .cmp-logos img { width: 34px; height: 34px; border-radius: 9px; }
.cmp-col-head h2 { font-size: 24px; }
.cmp-col-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; display: block; }
.cmp-col p { color: var(--muted); font-size: 15px; margin-top: 14px; }
.cmp-explain {
  max-width: 760px; margin: 40px auto 0; text-align: center;
  padding: 34px 30px; border-radius: 24px; background: var(--card); border: 1px solid var(--line);
}
.cmp-explain p { font-size: 18px; line-height: 1.7; margin-bottom: 24px; }

@media (max-width: 760px) {
  .cmp { border-radius: 16px; }
  .cmp-tag { top: 10px; font-size: 11px; padding: 4px 9px 4px 5px; gap: 6px; }
  .cmp-tag-l { left: 10px; } .cmp-tag-r { right: 10px; }
  .cmp-logos img { width: 18px; height: 18px; border-radius: 5px; }
  .cmp-knob { width: 38px; height: 38px; }
  .cmp-controls { left: 10px; bottom: 10px; }
  .cmp-btn { width: 34px; height: 34px; }
  .cmp-cols { grid-template-columns: 1fr; }
  .cmp-page { padding-top: 40px; }
  .cmp-explain { padding: 26px 18px; }
  .cmp-explain p { font-size: 16px; }
}

/* --- Full page: "More examples" (Short | long | Short, equal heights) --- */
.cmp-more { margin-top: 56px; }
.cmp-more-head { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.cmp-more-head .cmp-logos { justify-content: center; margin-bottom: 12px; }
.cmp-more-head .cmp-logos img { width: 30px; height: 30px; border-radius: 8px; }
.cmp-more-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 10px; }
.cmp-more-head p { color: var(--muted); }
.cmp-more-grid { display: grid; grid-template-columns: 1fr 3.16fr 1fr; gap: 0 3%; align-items: center; }
/* Two Shorts only (no long video in the middle) */
.cmp-more-grid:not(:has(.cmp-more-long)) { grid-template-columns: repeat(2, minmax(0, 240px)); justify-content: center; gap: 0 6%; }
.cmp-more-short { aspect-ratio: 9 / 16; }
.cmp-more-long { aspect-ratio: 16 / 9; }
.cmp-more-short, .cmp-more-long { border-color: rgba(255,77,46,.45); box-shadow: 0 0 36px rgba(255,77,46,.2); }
@media (max-width: 760px) {
  .cmp-more { margin-top: 40px; }
  .cmp-more-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .cmp-more-grid .cmp-more-short:first-child { grid-column: 1; grid-row: 1; }
  .cmp-more-grid .cmp-more-short:last-child { grid-column: 2; grid-row: 1; }
  .cmp-more-grid .cmp-more-long { grid-column: 1 / -1; grid-row: 2; }
}

/* Second row of "More examples": two long videos side by side */
.cmp-more-files { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.cmp-more-files figure { margin: 0; }
.cmp-more-files .vid { width: 100%; }
.cmp-more-files .vid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-more-files figcaption { margin-top: 12px; font-weight: 600; font-size: 15px; color: var(--text); text-align: center; }
@media (max-width: 640px) { .cmp-more-files { grid-template-columns: 1fr; gap: 20px; margin-top: 16px; } }
