/* "Claude Code, with and without Gipity" carousel - homepage only.
   Every rule and the terminal palette are scoped under .gip-compare so the
   prototype's warm-dark styling (which even redefines --text/--border) can't
   leak into, or clobber, the rest of the site. */

.gip-compare {
  /* Claude Code terminal palette (warm dark, Anthropic clay accent) */
  --page: #0e0e0e;
  --term: #1a1a1a;
  --term-bar: #212121;
  --border: #323232;
  --text: #d8d6d0;
  --arg: #bdbbb5;
  --dim: #8b8a85;
  --faint: #6a6964;
  --clay: #d97757;
  --bullet: #57bd5e;
  --gip: #f26522;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", "Cascadia Code", "Fira Code", Menlo, Consolas, monospace;
}
.gip-compare * { box-sizing: border-box; }

.gip-compare .carousel { position: relative; margin-top: var(--space-lg); }
.gip-compare .viewport { overflow: hidden; border-radius: 12px; }
/* stretch so every slide (and the terminals inside) shares the tallest height
   - the viewport stays fixed, so the controls don't jump between cards. */
.gip-compare .track { display: flex; align-items: stretch; transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.gip-compare .slide { min-width: 100%; padding: 2px; display: flex; flex-direction: column; }

/* loud capability banner across both terminals */
.gip-compare .banner { text-align: center; font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
  font-size: clamp(26px, 3.8vw, 40px); margin: 4px 0 20px; }
.gip-compare .banner .bi { color: var(--dim); font-weight: 700; }
.gip-compare .banner .cap { color: var(--gip); }

/* terminal window */
.gip-compare .term { position: relative; background: var(--term); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; box-shadow: 0 40px 80px -40px #000, inset 0 1px 0 #ffffff08; }
.gip-compare .titlebar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: var(--term-bar);
  border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.gip-compare .lights { display: flex; gap: 7px; }
.gip-compare .lights i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.gip-compare .lights i:nth-child(1) { background: #e0655b; }
.gip-compare .lights i:nth-child(2) { background: #e0b85a; }
.gip-compare .lights i:nth-child(3) { background: #8ab87a; }
.gip-compare .titlebar .star { color: var(--clay); font-weight: 700; }
.gip-compare .titlebar .ver { margin-left: auto; color: var(--faint); }

/* two separate terminals, side by side with a gap */
.gip-compare .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 2px; align-items: stretch; flex: 1; }

/* "on its own" / "powered by Gipity" - a small angled tag hung over the
   terminal's top edge, to the right of "Claude Code", with a punched hole. */
.gip-compare .col { position: relative; display: flex; }
.gip-compare .col .term { flex: 1; }
.gip-compare .badge { position: absolute; top: -11px; left: 192px; z-index: 3; display: inline-flex; align-items: center;
  gap: 7px; padding: 4px 14px 4px 11px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.5;
  white-space: nowrap; }
.gip-compare .badge::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%;
  background: var(--page); border: 1px solid currentColor; opacity: .85; }
.gip-compare .badge.plain { color: var(--dim); background: #2b2b2b; border: 1px solid var(--border); transform: rotate(-4deg); }
.gip-compare .badge.gip { color: #fff; background: var(--gip); border: 1px solid var(--gip);
  box-shadow: 0 4px 12px #f2652255; transform: rotate(-5deg); }

/* closing "Built-in much more" CTA card */
.gip-compare .slide.outro { justify-content: center; }
.gip-compare .outro-body { display: flex; flex-direction: column; align-items: center;
  gap: 22px; text-align: center; padding: 24px; }
.gip-compare .outro-sub { margin: 0; max-width: 520px; color: var(--dim); font-size: 15px; line-height: 1.6; }

/* "winner" badge, bottom-right of the Gipity terminal - tilted like the tag,
   with a very subtle pulsing glow */
.gip-compare .winner { position: absolute; right: 15px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--gip); background: #f265221f; border: 1px solid #f2652255;
  padding: 5px 13px; border-radius: 999px; transform: rotate(-5deg);
  animation: winner-glow 2.6s ease-in-out infinite; }
.gip-compare .winner .ico { font-size: 14px; filter: saturate(1.1); }
@keyframes winner-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 101, 34, 0); }
  50%      { box-shadow: 0 0 12px 1px rgba(242, 101, 34, .33); }
}

/* italic "still not done" meta-note at the bottom of the left terminal */
.gip-compare .endnote { font-style: italic; color: var(--faint); font-size: 12px; line-height: 1.5;
  margin-top: 15px; padding-top: 11px; border-top: 1px dashed #353535; }

.gip-compare .scroll { font-family: var(--mono); font-size: 13px; line-height: 1.6; padding: 14px 16px; min-height: 140px; }
.gip-compare .term.gip .scroll { padding-bottom: 46px; }   /* clear room for the Winner badge */

/* submitted user message - grey background only, no border */
.gip-compare .usermsg { display: flex; gap: 8px; margin: 0 0 14px; background: #3a3a3a; border-radius: 3px;
  padding: 8px 11px; line-height: 1.45; }
.gip-compare .usermsg .gt { color: #8a8a8a; flex: 0 0 auto; }
.gip-compare .usermsg .umbody { flex: 1; color: #fff; white-space: pre-wrap; }

/* assistant lines + tool calls: green dot bullet, indented results */
.gip-compare .row { display: flex; gap: 9px; margin: 8px 0 2px; }
.gip-compare .row .dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--bullet); margin-top: 6px; }
.gip-compare .row .body { color: var(--text); white-space: pre-wrap; }
.gip-compare .row .body b { color: #fff; font-weight: 700; }
.gip-compare .row .arg { color: var(--arg); }
.gip-compare .row.final .body { color: var(--text); }
.gip-compare .res { color: var(--dim); white-space: pre-wrap; padding-left: 21px; position: relative; margin: 0 0 2px; }
.gip-compare .res:before { content: "⎿"; position: absolute; left: 6px; color: var(--faint); }
.gip-compare .li { color: var(--text); padding-left: 21px; position: relative; margin: 0 0 4px; }
.gip-compare .li:before { content: "–"; position: absolute; left: 9px; color: var(--faint); }
.gip-compare .li b { font-weight: 700; }

/* carousel controls - compact: circular arrows + tight dots, no counter */
.gip-compare .controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.gip-compare .arrow { flex: 0 0 auto; width: 38px; height: 38px; min-width: 0; padding: 0; border-radius: 50%;
  border: 1px solid var(--border); background: var(--term); color: var(--text); font-size: 18px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; transition: .15s; }
.gip-compare .arrow:hover { border-color: var(--clay); color: var(--clay); }
.gip-compare .dots { display: flex; gap: 6px; }
.gip-compare .dots .dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #3a362f; border: none;
  cursor: pointer; transition: .2s; padding: 0; }
.gip-compare .dots .dot.active { background: var(--clay); width: 16px; border-radius: 999px; }

/* keep Water.css's button focus styling from leaking in */
.gip-compare button:focus { outline: none; box-shadow: none; }
.gip-compare button:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

@media (max-width: 780px) {
  .gip-compare .cols { grid-template-columns: 1fr; gap: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .gip-compare .winner { animation: none; }
}
