/* Vanilla vs Godmode — interactive comparison widget */

.vsg {
  padding: 80px 0 60px;
  background: var(--bg);
  border-top: 1px solid var(--green-dark);
}

.vsg-heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.5px;
  margin: 0 0 8px;
}

.vsg-sub {
  font-size: 15px;
  color: var(--text-dim);
  margin: 0 0 28px;
  letter-spacing: 0.3px;
}

/* Prompt selector pills */
.vsg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.vsg-tab {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--green-dark);
  border-radius: 4px;
  padding: 9px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.2px;
}

.vsg-tab:hover {
  border-color: var(--green-muted);
  color: var(--green-dim);
  background: var(--green-glow);
}

.vsg-tab.is-active {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-glow-strong);
  box-shadow: 0 0 0 1px var(--green-muted) inset;
}

.vsg-tab:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Prompt line under the tabs */
.vsg-promptline {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  background: var(--bg-terminal);
  border: 1px solid var(--green-dark);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 18px;
  color: var(--text);
}

.vsg-promptline-dollar {
  color: var(--green-muted);
  margin-right: 10px;
  user-select: none;
}

.vsg-promptline-text {
  color: var(--white);
}

/* Split */
.vsg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.vsg-col {
  background: var(--bg-card);
  border: 1px solid var(--green-dark);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vsg-vanilla {
  border-color: #3a3a3a;
}

.vsg-godmode {
  border-color: var(--green-muted);
  box-shadow: 0 0 24px var(--green-glow);
}

.vsg-col-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.vsg-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.vsg-vanilla .vsg-col-label {
  color: #888;
}

.vsg-godmode .vsg-col-label {
  color: var(--green);
}

.vsg-col-stats {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  font-family: "JetBrains Mono", monospace;
}

.vsg-col-summary {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 14px;
  line-height: 1.5;
  font-style: italic;
}

/* Pass strip (godmode only) */
.vsg-passes {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vsg-pass {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  background: var(--bg-terminal);
  border: 1px solid var(--green-muted);
  border-radius: 3px;
  padding: 4px 8px;
  color: var(--green-dim);
  letter-spacing: 0.4px;
  position: relative;
  cursor: help;
}

.vsg-pass-n {
  color: var(--green);
  font-weight: 700;
  margin-right: 4px;
}

.vsg-pass:hover .vsg-pass-tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.vsg-pass-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%, 6px);
  background: var(--bg);
  border: 1px solid var(--green);
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 11px;
  width: 220px;
  color: var(--white);
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
  z-index: 10;
  text-align: left;
  font-style: normal;
}

/* Code block */
.vsg-code {
  background: var(--bg-terminal);
  border: 1px solid var(--green-dark);
  border-radius: 6px;
  padding: 14px;
  margin: 0 0 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--white);
  overflow-x: auto;
  white-space: pre;
  max-height: 460px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--green-muted) var(--bg-terminal);
}

.vsg-code::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.vsg-code::-webkit-scrollbar-thumb {
  background: var(--green-muted);
  border-radius: 3px;
}

.vsg-code code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
}

/* Flaws / wins lists */
.vsg-flaws,
.vsg-wins {
  margin-top: auto;
}

.vsg-flaws-title,
.vsg-wins-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.vsg-flaws-title {
  color: #e63946;
}

.vsg-wins-title {
  color: var(--green);
}

.vsg-flaws ul,
.vsg-wins ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vsg-flaws li,
.vsg-wins li {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}

.vsg-flaws li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  top: 0;
  color: #e63946;
  font-weight: 700;
}

.vsg-wins li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}

/* CTA */
.vsg-cta {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--green-muted);
  border-radius: 8px;
  text-align: center;
}

.vsg-cta-line {
  font-size: 17px;
  color: var(--green);
  margin: 0 0 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.vsg-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vsg-form textarea {
  font-family: "JetBrains Mono", monospace;
  font-size: 13.5px;
  background: var(--bg-terminal);
  border: 1px solid var(--green-dark);
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--white);
  resize: vertical;
  width: 100%;
  min-height: 56px;
  line-height: 1.5;
}

.vsg-form textarea:focus,
.vsg-form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green) inset;
}

.vsg-form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vsg-form input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 13.5px;
  background: var(--bg-terminal);
  border: 1px solid var(--green-dark);
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--white);
}

.vsg-form-btn {
  white-space: nowrap;
}

.vsg-cta-fineprint {
  font-size: 11px;
  color: var(--text-muted);
  margin: 4px 0 0;
  letter-spacing: 0.3px;
}

.vsg-msg {
  font-size: 13px;
  color: var(--green-dim);
  margin: 12px 0 0;
  min-height: 18px;
}

.vsg-msg.is-error {
  color: #e63946;
}

/* Loading state */
.vsg-loading {
  opacity: 0.4;
  transition: opacity 0.18s;
}

.vsg-fade-in {
  animation: vsgFadeIn 0.22s ease-out;
}

@keyframes vsgFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 860px) {
  .vsg-split {
    grid-template-columns: 1fr;
  }

  .vsg-godmode {
    order: -1; /* show godmode first so the win lands above the fold */
  }

  .vsg-heading {
    font-size: 24px;
  }

  .vsg-code {
    font-size: 11.5px;
    max-height: 360px;
  }

  .vsg-form-row {
    flex-direction: column;
  }

  .vsg-form-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vsg-fade-in {
    animation: none;
  }
  .vsg-pass,
  .vsg-tab {
    transition: none;
  }
}
