/* ==========================================================================
   /ai-marketer — cycle diagram under the hero: Diagnosis → Action → Performance analysis around AI Marketer, Brand Intelligence at the centre.
   Sizes use container-query units so the whole figure scales with its width; it stacks vertically on phones.
   Colours follow the signal map further down the page (.ag-flowmap): one blue accent (#6ea8ff) for the ring, labels and pills, and the violet AI Marketer core (#a78bfa) at the centre.
   ========================================================================== */
.mc-section { padding: 8px 0 16px; }
.mc { position: relative; max-width: 900px; margin: 0 auto; container-type: inline-size; }
.mc-ring { display: block; width: 100%; height: auto; overflow: visible; }
.mc-ring path { fill: none; stroke-linecap: round; }
.mc-track { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 1; }
.mc-glow path { stroke: #6ea8ff; stroke-width: 7; opacity: .32; }
.mc-arcs path { stroke: #6ea8ff; stroke-opacity: .38; stroke-width: 2; }
.mc-flow path { stroke: #6ea8ff; stroke-width: 2; stroke-dasharray: 5 6; } /* same dashed 'hot wire' as the signal map */
.mc-nodes circle { fill: #6ea8ff; filter: drop-shadow(0 0 6px #6ea8ff); }
@media (prefers-reduced-motion: no-preference) {
  .mc-flow path { animation: mc-flow 2.2s linear infinite; }
  @keyframes mc-flow { to { stroke-dashoffset: -11; } }
}

.mc-group { position: absolute; display: grid; gap: .9cqw; }
.mc-group > b { font-size: 4.1cqw; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; color: var(--fg); }
.mc-action > b, .mc-outcomes > b { max-width: 34cqw; } /* long labels (e.g. the English 'Performance analysis') wrap instead of running into the ring */
.mc-pills { display: flex; gap: 1.4cqw; margin-top: .8cqw; }
.mc-insight { left: 50%; top: -1cqw; transform: translateX(-50%); justify-items: center; text-align: center; }
.mc-action { right: 0; top: 56%; justify-items: center; text-align: center; }
.mc-action .mc-pills { flex-direction: column; align-items: center; gap: 1.1cqw; }
.mc-outcomes { left: 0; top: 56%; justify-items: center; text-align: center; }

.mc-pill { display: inline-flex; align-items: center; gap: 1cqw; padding: 1.4cqw 2.4cqw 1.4cqw 1.9cqw; border-radius: 999px; font-size: 2.15cqw; font-weight: 500; line-height: 1; color: var(--fg); white-space: nowrap;
  border: 1px solid var(--c); background: #18181a;
  box-shadow: 0 0 2.9cqw color-mix(in srgb, var(--c) 30%, transparent);
  transition: transform .5s cubic-bezier(.19,1,.22,1), box-shadow .5s, border-color .3s; }
.mc-pill:hover { transform: translateY(-2px); box-shadow: 0 0 3.6cqw color-mix(in srgb, var(--c) 45%, transparent); }
.mc-pill svg { width: 2.1cqw; height: 2.1cqw; flex: none; fill: var(--c); }

.mc-center { position: absolute; left: 50%; top: 55.7%; transform: translate(-50%, -44%); display: grid; justify-items: center; gap: 1cqw; text-align: center; }
.mc-center strong { font-size: 5.6cqw; font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--fg); }
.mc-center span { font-size: 2.05cqw; color: var(--fg-3); }
.mc-center .mc-pill { margin-top: 1.4cqw; --c: #a78bfa; border-color: rgba(167,139,250,.5); background: #15121d; box-shadow: 0 0 4cqw rgba(167,139,250,.25); padding: 1.6cqw 2.8cqw 1.6cqw 2.2cqw; font-size: 2.4cqw; }
.mc-center .mc-pill:hover { box-shadow: 0 0 4.6cqw rgba(167,139,250,.4); }
.mc-center .mc-pill svg { width: 2.2cqw; height: 2.2cqw; }

@media (max-width: 640px) {
  .mc { container-type: normal; display: grid; justify-items: center; gap: 18px; text-align: center; padding: 8px 0; }
  .mc-ring { display: none; }
  .mc-group, .mc-center { position: static; transform: none; justify-items: center; gap: 8px; }
  .mc-center { order: -1; margin-bottom: 8px; padding: 22px 0 26px; width: 100%; background: radial-gradient(closest-side, rgba(167,139,250,.12), transparent); }
  .mc-group > b { font-size: 22px; max-width: none; }
  .mc-pills, .mc-action .mc-pills { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
  .mc-pill { gap: 7px; padding: 9px 14px 9px 12px; font-size: 13px; box-shadow: 0 0 22px color-mix(in srgb, var(--c) 30%, transparent); }
  .mc-pill svg { width: 14px; height: 14px; }
  .mc-center strong { font-size: 30px; } .mc-center span { font-size: 14px; }
  .mc-center .mc-pill { margin-top: 6px; padding: 10px 16px 10px 13px; font-size: 14px; } .mc-center .mc-pill svg { width: 15px; height: 15px; }
  .mc-action::before, .mc-outcomes::before { content: "↓"; font-size: 18px; color: var(--fg-4); }
}
