/* ═══════════════════════════════════════════════════════════
   COMPARISON CHAT — Generic AI vs Seclura
   ═══════════════════════════════════════════════════════════ */

/* Override hero mockup wrap — flat fade-in instead of 3D tilt */
.hv2-mockup-wrap:has(.cmp-chat-inner) {
  perspective: none;
  animation: cmpFadeIn 0.8s ease-out forwards;
  animation-delay: 1.4s;
  max-width: 1100px;
  padding-bottom: 64px;
}
@keyframes cmpFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Trust marquee inside hero — break out of container to full width */
.trust-marquee--hero {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: 48px;
  margin-bottom: 16px;
  border-color: rgba(88, 101, 242, 0.10);
  background: transparent;
}
.trust-marquee--hero::before {
  background: linear-gradient(to right, #F8F8FF, transparent);
}
.trust-marquee--hero::after {
  background: linear-gradient(to left, #F8F8FF, transparent);
}

.cmp-chat-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* ── Section header ── */
.cmp-chat-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5865F2;
  background: rgba(88, 101, 242, 0.05);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.cmp-chat-title {
  color: #0a0a14;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 40px;
}

/* ── Cards grid ── */
.cmp-chat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  text-align: left;
}

/* ── Shared card base ── */
.cmp-card {
  border-radius: 16px;
  padding: 28px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

/* ── LEFT — generic card ── */
.cmp-card--generic {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

/* ── RIGHT — seclura card ── */
.cmp-card--seclura {
  background: #fff;
  border: 2px solid #5865F2;
  box-shadow: 0 0 30px rgba(88, 101, 242, 0.08);
}

/* ── Card labels ── */
.cmp-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.cmp-card--generic .cmp-card-label {
  color: #9ca3af;
}

.cmp-card--seclura .cmp-card-label {
  color: #5865F2;
}

.cmp-card-label-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5865F2;
  margin-right: 6px;
  vertical-align: middle;
}

/* ── Message rows ── */
.cmp-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}

.cmp-msg:first-of-type {
  margin-top: 0;
}

/* ── Avatar circles ── */
.cmp-avatar {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cmp-avatar--user {
  background: #e5e7eb;
  color: #6b7280;
}

.cmp-avatar--ai-generic {
  background: #e5e7eb;
  color: #6b7280;
}

.cmp-avatar--ai-seclura {
  background: #5865F2;
  color: #fff;
}

/* ── Bubbles ── */
.cmp-bubble {
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  min-width: 0;
}

.cmp-bubble--user {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #0a0a14;
  font-size: 0.95rem;
}

/* Generic AI response */
.cmp-bubble--ai-generic {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
}

/* Seclura AI response */
.cmp-bubble--ai-seclura {
  background: rgba(88, 101, 242, 0.04);
  border: 1px solid rgba(88, 101, 242, 0.12);
  color: #0a0a14;
}

/* ── "Fix it." pill button ── */
.cmp-action-pill {
  background: #5865F2;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin: 12px 0 12px 34px;
  cursor: default;
  width: fit-content;
  align-self: flex-start;
}

/* ── Card footers ── */
.cmp-card-footer {
  font-size: 0.8rem;
  margin-top: auto;
  padding-top: 16px;
}

.cmp-card--generic .cmp-card-footer {
  color: #9ca3af;
  font-style: italic;
}

.cmp-card--seclura .cmp-card-footer {
  color: #5865F2;
  font-weight: 600;
}

/* ── Scroll-triggered entrance (initial hidden state) ── */
.cmp-card--generic {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.cmp-card--seclura {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
  transition-delay: 200ms;
}

.cmp-card--generic.cmp-visible {
  opacity: 1;
  transform: translateX(0);
}

.cmp-card--seclura.cmp-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Typewriter: hide seclura messages until animated ── */
.cmp-card--seclura .cmp-msg--ai,
.cmp-card--seclura .cmp-action-pill,
.cmp-card--seclura .cmp-card-footer {
  opacity: 0;
  transition: opacity 300ms ease;
}

.cmp-card--seclura .cmp-msg--ai.cmp-typed,
.cmp-card--seclura .cmp-action-pill.cmp-typed,
.cmp-card--seclura .cmp-card-footer.cmp-typed {
  opacity: 1;
}

/* Blinking cursor for typewriter */
.cmp-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #5865F2;
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: cmp-blink 600ms step-end infinite;
}

@keyframes cmp-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .cmp-chat-inner {
    padding: 0 4px;
  }

  .cmp-chat-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cmp-card {
    padding: 20px;
    min-height: auto;
  }

  .cmp-chat-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    margin-bottom: 28px;
  }

  .cmp-chat-pill {
    font-size: 0.65rem;
    padding: 5px 14px;
  }

  .cmp-bubble {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
  .cmp-bubble--user {
    font-size: 0.875rem;
  }

  .cmp-avatar {
    width: 20px;
    height: 20px;
    font-size: 0.5rem;
  }

  .cmp-card-label {
    font-size: 0.7rem;
  }

  .cmp-card-footer {
    font-size: 0.75rem;
  }

  .cmp-action-pill {
    font-size: 0.75rem;
    padding: 5px 14px;
    margin-left: 30px;
  }

  .hv2-mockup-wrap:has(.cmp-chat-inner) {
    padding-bottom: 32px;
  }

  /* Trust marquee inside hero */
  .trust-marquee--hero {
    margin-top: 32px;
    margin-bottom: 12px;
  }

  /* Slide from bottom instead of sides on stacked layout */
  .cmp-card--generic {
    transform: translateY(20px);
  }
  .cmp-card--seclura {
    transform: translateY(20px);
  }
  .cmp-card--generic.cmp-visible,
  .cmp-card--seclura.cmp-visible {
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .cmp-card {
    padding: 16px;
  }
  .cmp-bubble {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .cmp-chat-title {
    font-size: 1.3rem;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .cmp-card--generic,
  .cmp-card--seclura {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .cmp-card--seclura .cmp-msg--ai,
  .cmp-card--seclura .cmp-action-pill,
  .cmp-card--seclura .cmp-card-footer {
    opacity: 1 !important;
    transition: none !important;
  }

  .cmp-cursor {
    display: none;
  }
}
