/* 06 — Coordinator split, mirrored (prefix co-) */

.co {
  margin-block: var(--space-section);
}

.co-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 60px;
  align-items: center;
}

/* ---- right: text ---- */

.co-text {
  max-width: 440px;
  justify-self: end;
}

.co-copy {
  margin-top: 20px;
  color: var(--ink);
}

.co-link {
  margin-top: 28px;
  padding-block: 8px; /* ≥40px hit area */
  border-radius: 4px;
}

.co-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* ---- left: cream card with chat vignette ---- */

.co-card {
  background: var(--cream);
  aspect-ratio: 618 / 742;
  max-width: 618px;
  margin-inline: auto;
  padding: 0;
  overflow: hidden;
}

.co-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

/* foreground chat card */

.co-chat {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 76%;
  padding: 22px 24px 18px;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.co-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.co-chat-thumb {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  /* placeholder media gradient — raw hex permitted here */
  background: linear-gradient(140deg, #e9ddc9 0%, #c6b295 45%, #9a8468 100%);
}

.co-chat-msg {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink);
}

.co-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  margin-left: 72px; /* optically aligns with message text */
  padding: 9px 12px;
  background: var(--cream);
  border-radius: var(--r-pill);
}

.co-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.45;
}

@media (prefers-reduced-motion: no-preference) {
  .co-dot {
    animation: co-pulse 1.3s ease-in-out infinite;
  }

  .co-dot:nth-child(2) {
    animation-delay: 0.18s;
  }

  .co-dot:nth-child(3) {
    animation-delay: 0.36s;
  }

  @keyframes co-pulse {
    0%,
    60%,
    100% {
      opacity: 0.35;
      transform: translateY(0);
    }

    30% {
      opacity: 1;
      transform: translateY(-2px);
    }
  }
}

/* background: tilted partial cards peeking from behind */

.co-back {
  position: absolute;
  box-shadow: var(--shadow-soft);
}

.co-back--card {
  top: 50%;
  left: 7%;
  z-index: 1;
  width: 46%;
  padding: 18px 22px 44px;
  background: var(--paper);
  border-radius: var(--r-tile);
  /* anchored to the stage center so it tucks behind the chat card at any scale */
  transform: translateY(calc(-100% - 46px)) rotate(-6deg);
}

.co-back-label {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.co-back--chip {
  top: calc(50% + 58px);
  right: 9%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--chip-peach);
  color: var(--chip-peach-ink);
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transform: rotate(4deg);
}

.co-chip-icon {
  font-size: 16px;
  line-height: 1;
}

/* ---- responsive ---- */

@media (max-width: 899px) {
  .co-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* text reads first when stacked, matching section 05 */
  .co-text {
    order: -1;
    max-width: 520px;
    justify-self: start;
  }
}

@media (max-width: 479px) {
  .co-chat {
    width: 84%;
    padding: 16px 18px 14px;
  }

  .co-chat-thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .co-chat-msg {
    font-size: 15px;
  }

  .co-typing {
    margin-left: 56px;
    margin-top: 14px;
  }

  .co-back--card {
    width: 54%;
    padding: 14px 16px 36px;
    transform: translateY(calc(-100% - 34px)) rotate(-6deg);
  }

  .co-back--chip {
    top: calc(50% + 44px);
    right: 4%;
  }

  .co-back-label,
  .co-back--chip {
    font-size: 13px;
  }
}

/* ---- "The Number" sample report card ---- */

.co-report {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.co-report-label {
  color: var(--muted);
}

.co-report-stat {
  margin: 2px 0 0;
}

.co-report-figures {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.co-report-line {
  font-size: 15px;
  color: var(--ink);
}

.co-report-sample {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}
