/* Client-results section (case-study.js). Reuses .mc-panel/.mc-kicker/.mc-legend/.mc-tip/.mc-source
   from missed-calls.css. Cyan = profile interactions, green = direction requests. */
.cs-wrap { display: grid; gap: .875rem; margin: 1.25rem auto 0; max-width: 960px; }
.cs-stats { display: grid; gap: .875rem; }
@media (min-width: 600px) { .cs-stats { grid-template-columns: 1fr 1fr; } }

.cs-nums {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .45rem; margin: .35rem 0 .5rem;
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, 'URW Palladio L', serif; font-weight: 700;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.cs-before { font-size: 1.5rem; color: var(--muted); }
.cs-arrow { font-size: 1.1rem; color: var(--muted); font-weight: 400; }
.cs-after { font-size: clamp(2.25rem, 6vw, 2.75rem); color: var(--text); }
.cs-unit { font-family: 'DM Mono', monospace; font-size: .72rem; font-weight: 400; color: var(--muted); }

.cs-badge {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem;
  color: var(--accent2); background: rgba(0, 255, 157, .08); border: 1px solid rgba(0, 255, 157, .25);
  border-radius: 999px; padding: .2rem .65rem;
  opacity: 0; transform: translateY(10px); transition: opacity .6s 1.4s, transform .6s 1.4s;
}
.cs-go .cs-badge { opacity: 1; transform: none; }
.cs-badge.cyan { color: var(--accent); background: rgba(0, 212, 255, .08); border-color: rgba(0, 212, 255, .25); }
.cs-up { display: inline-block; animation: cs-rise 1.8s ease-in-out infinite; }
@keyframes cs-rise {
  0%, 100% { transform: translateY(3px); opacity: .45; }
  50%      { transform: translateY(-3px); opacity: 1; }
}

.cs-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.cs-grid { stroke: var(--border); stroke-width: 1; }
.cs-base { stroke: var(--muted); stroke-width: 1; }
.cs-axis { fill: var(--muted); font-size: 11px; font-family: 'DM Mono', monospace; }
.cs-zone-before { fill: rgba(74, 97, 120, .07); }
.cs-zone-after  { fill: rgba(0, 212, 255, .045); }
.cs-zone-label { fill: var(--muted); font-size: 10px; letter-spacing: .14em; font-family: 'DM Mono', monospace; }
.cs-zone-label.after { fill: var(--accent); }
.cs-start-line { stroke: #a78bfa; stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .7s ease-out; }
.cs-start-dot { fill: #a78bfa; opacity: 0; transition: opacity .3s .6s; }
.cs-start-label {
  fill: #a78bfa; font-size: 11px; font-weight: 700; font-family: 'DM Mono', monospace;
  opacity: 0; transition: opacity .4s .7s;
}
.cs-go .cs-start-line { stroke-dashoffset: 0; }
.cs-go .cs-start-dot, .cs-go .cs-start-label { opacity: 1; }
.cs-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.cs-dot { fill: var(--surface); stroke-width: 2; }
/* Ongoing motion once the climb finishes (.cs-live) */
.cs-comet {
  fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 7 93; stroke-dashoffset: 100;
  opacity: 0; filter: drop-shadow(0 0 4px currentColor);
}
.cs-live .cs-comet { opacity: .9; animation: cs-comet 3.2s linear infinite; }
@keyframes cs-comet { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.cs-ring { fill: none; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.cs-live .cs-ring { animation: cs-ripple 2.4s ease-out infinite; }
@keyframes cs-ripple { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.6); opacity: 0; } }
.cs-live .cs-area { animation: cs-breathe 4s ease-in-out infinite; }
@keyframes cs-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
.cs-hit { fill: transparent; outline: none; }
.cs-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: .6rem; }
.cs-legend li { grid-template-columns: 12px auto; }

@media (prefers-reduced-motion: reduce) {
  .cs-up, .cs-comet, .cs-ring, .cs-area { animation: none !important; }
  .cs-comet, .cs-ring { display: none; }
  .cs-badge, .cs-start-line, .cs-start-dot, .cs-start-label { transition: none; }
}

/* Centered layout for the client-results section */
#results .mc-panel { text-align: center; }
#results .cs-nums { justify-content: center; }
#results .cs-legend { justify-content: center; }
#results .mc-source { text-align: center; }

/* Purple firstpriority.ai pill: its own legend item, right after "Direction requests". */
.cs-legend li.cs-fp-item { display: flex; align-items: center; }
.cs-fp-btn {
  display: inline-block; line-height: 1.4; padding: .25rem .7rem; border-radius: 999px;
  background: #7c3aed; color: #fff; font-size: .72rem; font-weight: 600; text-decoration: none;
  white-space: nowrap; transition: background .2s, box-shadow .2s;
}
.cs-fp-btn:hover, .cs-fp-btn:focus-visible { background: #8b5cf6; box-shadow: 0 0 0 3px rgba(167, 139, 250, .35); outline: none; }
