/* ============================================================================
 * pmg-cap-comparison.css (cap-compare-1)
 * Side-by-side cap-hit panel rendered inside #aiResponseOutput.
 * Theme tokens come from pmg-g-theme.css (--g2-mint, --color-text, etc).
 * ========================================================================= */

.pmg-cap-compare {
  margin: 0;
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--g2-mint, #3ee0a0) 32%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--g2-mint, #3ee0a0) 10%, transparent) 0%,
    color-mix(in srgb, #000 55%, transparent) 100%
  );
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--color-text, #e8f5f0);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pmg-cap-compare__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.pmg-cap-compare__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffd166;
}
.pmg-cap-compare__meta {
  font-size: 0.78rem;
  opacity: 0.7;
}

/* ---------- Two-column compare layout ---------- */
.pmg-cap-compare__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px) {
  .pmg-cap-compare__cols {
    grid-template-columns: 1fr;
  }
}

.pmg-cap-compare__col {
  position: relative;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 140px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pmg-cap-compare__col--paid {
  border-color: color-mix(in srgb, var(--g2-mint, #3ee0a0) 38%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--g2-mint, #3ee0a0) 14%, transparent) 0%,
    rgba(0, 0, 0, 0.42) 100%
  );
}

.pmg-cap-compare__col-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.78;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pmg-cap-compare__badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--g2-mint, #3ee0a0);
  color: #001712;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pmg-cap-compare__col-body {
  flex: 1;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.9rem;
  line-height: 1.55;
  max-height: 240px;
  overflow: hidden;
  position: relative;
}
.pmg-cap-compare__col-body--paid {
  /* Reserve space for the bottom fade — don't let it sit ON the text. */
  padding-bottom: 18px;
}

/* The teaser body has a clear "head" run-of-sentences and a blurred
   "tail" run that fades out, signaling there's more behind the paywall. */
.pmg-cap-compare__teaser-head { display: inline; }
.pmg-cap-compare__teaser-tail {
  display: inline;
  filter: blur(3.5px);
  opacity: 0.78;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* Bottom fade on the paid column so the visual "more is hidden" reads
   even when the teaser happens to fit cleanly. */
.pmg-cap-compare__teaser-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, #000 65%, transparent) 100%
  );
  pointer-events: none;
}

/* ---------- CTA + dismiss row ---------- */
.pmg-cap-compare__cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.pmg-cap-compare__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--g2-mint, #3ee0a0);
  color: #001712 !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 22px -10px color-mix(in srgb, var(--g2-mint, #3ee0a0) 80%, transparent);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}
.pmg-cap-compare__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--g2-mint, #3ee0a0) 90%, transparent);
}
.pmg-cap-compare__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.pmg-cap-compare__dismiss {
  background: none;
  border: none;
  padding: 6px 4px;
  font: inherit;
  font-size: 0.85rem;
  color: var(--color-text, #e8f5f0);
  opacity: 0.6;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pmg-cap-compare__dismiss:hover {
  opacity: 1;
}

/* ---------- Exhausted: single full-width upgrade card ---------- */
.pmg-cap-compare__solo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid color-mix(in srgb, var(--g2-mint, #3ee0a0) 30%, transparent);
}
.pmg-cap-compare__solo-title {
  font-size: 1.05rem;
  font-weight: 700;
}
.pmg-cap-compare__solo-sub {
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.88;
}
.pmg-cap-compare__cta--solo {
  align-self: flex-start;
  margin-top: 4px;
}
.pmg-cap-compare__dismiss--solo {
  align-self: flex-start;
  margin-top: 2px;
}
