/* ==========================================================================
   OSpectra — PM (Collaboration, Coordination, and Communication) Agent
   Shared template (Agent_Template.css) covers owns/how/sees/closing/pager.
   This file only holds the accent token and the hero's chat-mockup visual.
   Namespace: .pm-*
   ========================================================================== */

:root {
  --agent-accent: var(--pink);
  --agent-gradient: linear-gradient(135deg, #ec4899, #f472b6);
}

/* "Next" points to Compliance and Audit (group 3) — theme the link to its own group */
.agent-pager-next {
  background: linear-gradient(135deg, #4338ca, #14b8a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-link {
  background: color-mix(in srgb, var(--agent-accent) 18%, white);
}

.section-head h2 {
  background: var(--agent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body {
  background: var(--white);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.pm-hero {
  position: relative;
  overflow: hidden;
  padding: 6px 0 76px;
  background: linear-gradient(180deg, #fff 0%, #fdf3f9 100%);
}

.pm-hero-glow {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.16) 0%, rgba(236, 72, 153, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.pm-hero-wrap {
  position: relative;
  z-index: 1;
}

.pm-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  margin-top: 22px;
}

.pm-hero-copy h1 {
  font-size: clamp(30px, 4vw, 50px);
  color: var(--ink);
  font-family: var(--font-montserrat-bold), sans-serif;
}

.pm-hero-copy h1 span {
  font-weight: 300;
  color: var(--pink);
}

.pm-hero-copy .lede {
  font-size: 15px;
  max-width: 560px;
  color: var(--muted);
}

.pm-hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.pm-hero-actions .btn-primary {
  background: var(--agent-gradient);
  box-shadow: 0 12px 24px -10px rgba(236, 72, 153, 0.55);
}

.pm-hero-actions .btn-primary .btn-circle {
  background: #fff;
}

.pm-hero-actions .btn-primary .btn-arrow {
  background: var(--agent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pm-hero-actions .pm-link span {
  color: var(--pink);
}

/* --- Chat mockup card (kept unique hero visual) --- */
.pm-chatcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
}

.pm-chat-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--gradient-brand);
}

.pm-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.pm-chat-topbar-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pm-chat-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.pm-chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.pm-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.8);
}

.pm-chat-body {
  padding: 22px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--lavender-bg);
}

.pm-msg {
  display: flex;
  flex-direction: column;
  max-width: 84%;
}

.pm-msg-out {
  align-self: flex-end;
  align-items: flex-end;
}

.pm-msg-in {
  align-self: flex-start;
  align-items: flex-start;
}

.pm-bubble {
  font-size: 13px;
  line-height: 1.5;
  padding: 11px 15px;
  border-radius: 16px;
}

.pm-msg-out .pm-bubble {
  background: var(--purple);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.pm-msg-in .pm-bubble {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.pm-msg-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  padding: 0 4px;
}

.pm-chat-caption {
  font-size: 10.5px;
  text-align: center;
  color: var(--muted);
  padding: 10px 0 16px;
  margin: 0;
  background: var(--lavender-bg);
}

.pm-check {
  font-size: 11px;
  letter-spacing: -3px;
  font-weight: 700;
}

.pm-check-sent {
  color: var(--muted);
  letter-spacing: 0;
}

.pm-check-delivered {
  color: var(--muted);
}

.pm-check-read {
  color: var(--pink);
}

/* ==========================================================================
   SHARED SECTION HEAD (color tint)
   ========================================================================== */
.pm-section-head h2 span {
  font-weight: 300;
  color: #180F5A;
}

.pm-note {
  color: var(--muted);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .pm-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pm-chatcard {
    max-width: 480px;
  }
}
