/* /products/ai-models and its model pages (linked through partials/aim-assets.hbs): the parts of the AI model drawings
   (partials/aim-*.hbs) that the shared schematic kit (css/mcp-visuals.css: stage, panels, chips, frame animation)
   does not have, the light tables of the model pages (.aim-table) and the example journey of the overview page.
   Never write a star followed by a slash inside these comments: it ends the comment and the next rule is lost. */

/* ------------------------------------------------ drawing parts (inside .mcpv-stage) */
.aD-tile { position: absolute; width: 212px; height: 92px; background: #1c2135; border: 1px solid #2f3755; border-radius: 12px; padding: 12px 14px; display: grid; align-content: center; gap: 6px; }
.aD-tile b { font-size: 13px; font-weight: 500; color: #aab1cc; }
.aD-tile span { font-size: 17px; font-weight: 600; color: #fff; }
.aD-tile i { position: absolute; right: 12px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: #11ced7; box-shadow: 0 0 10px #11ced7; }
.aD-avatar { display: block; flex: none; width: var(--av, 52px); height: var(--av, 52px); border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 35% 30%, #5ee6ec, #11838a); box-shadow: 0 0 0 3px rgba(17, 206, 215, .18); }
.aD-avatar svg { display: block; }
.aD-who { display: flex; align-items: center; gap: 12px; }
.aD-name { font-size: 18px; font-weight: 600; color: #fff; }
.aD-meta { font-size: 13px; color: #aab1cc; }
.aD-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: #c9cee3; }
.aD-row b { font-weight: 500; color: #8d93b0; font-size: 13px; }
.aD-col { display: grid; gap: 8px; }
.aD-col .mB-chip { font-size: 13px; padding: 6px 10px; }

/* churn rank bar: four score bands (0 to 0.4, 0.4 to 0.6, 0.6 to 0.85, 0.85 to 1) and a marker */
.aD-rbar { position: relative; display: flex; height: 14px; border-radius: 7px; }
.aD-rbar > i { display: block; height: 100%; }
.aD-rbar > i:first-child { border-radius: 7px 0 0 7px; }
.aD-rbar > i:last-of-type { border-radius: 0 7px 7px 0; }
.aD-rlab { display: flex; font-size: 12px; color: #aab1cc; }
.aD-rlab span { overflow: hidden; white-space: nowrap; }
.aD-mark { position: absolute; top: -7px; width: 4px; height: 28px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2), 0 0 12px rgba(255, 255, 255, .6); }
.aD-score { font-size: 44px; font-weight: 700; line-height: 1; color: #fff; }
.aD-rank { justify-self: start; font-size: 14px; font-weight: 600; padding: 5px 10px; border-radius: 8px; border: 1px solid; }
.aim-low { --aD-c: #2ecc71; }
.aim-med { --aD-c: #f9c440; }
.aim-high { --aD-c: #f39a3b; }
.aim-crit { --aD-c: #f15851; }
.aim-none { --aD-c: #8d93b0; }
/* value tiers, verdicts */
.aim-top { --aD-c: #f9c440; }
.aim-hi { --aD-c: #11ced7; }
.aim-mid { --aD-c: #8e6cf5; }
.aim-lo { --aD-c: #8d93b0; }
.aim-ok { --aD-c: #2ecc71; }
.aim-no { --aD-c: #f15851; }
.aD-rbar > i[class] { background: var(--aD-c); }
.aD-rank[class*="aim-"], .mB-chip[class*="aim-"] { color: #fff; border-color: var(--aD-c); background: color-mix(in srgb, var(--aD-c) 22%, transparent); }
.aD-score[class*="aim-"] { color: var(--aD-c); }
.aD-kv { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: #aab1cc; }
.aD-kv b { font-size: 18px; color: #fff; }

/* LTV forecast */
.aD-val { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid #2f3755; background: #1c2135; }
.aD-val b { font-size: 13px; font-weight: 500; color: #aab1cc; }
.aD-val strong { font-size: 24px; font-weight: 700; color: #11ced7; line-height: 1.1; }
.aD-val span { font-size: 12px; color: #aab1cc; }
.aD-legend { display: flex; gap: 16px; font-size: 12px; color: #aab1cc; }
.aD-legend i { display: inline-block; width: 18px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; background: #11ced7; }
.aD-legend i.is-band { height: 10px; background: rgba(17, 206, 215, .22); border: 1px dashed rgba(17, 206, 215, .7); }

/* Early VIP timeline: checkpoints on a line */
.aD-cp { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #232943; border: 2px solid #39405f; }
.aD-cp.on { background: #11ced7; border-color: #11ced7; box-shadow: 0 0 0 5px rgba(17, 206, 215, .2), 0 0 14px rgba(17, 206, 215, .6); }
.aD-cpl { position: absolute; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: #aab1cc; }
/* RFM: score dots */
.aD-dots { display: flex; gap: 6px; }
.aD-dots i { display: block; width: 14px; height: 14px; border-radius: 50%; background: #232943; border: 1px solid #39405f; }
.aD-dots i.on { background: #11ced7; border-color: #11ced7; box-shadow: 0 0 8px rgba(17, 206, 215, .5); }
/* Gamification Penetration: one ladder per feature */
.aD-rung { position: absolute; height: 26px; border-radius: 6px; background: #232943; border: 1px solid #2f3755; }
.aD-rung.on { background: rgba(17, 206, 215, .28); border-color: #11ced7; box-shadow: 0 0 12px rgba(17, 206, 215, .35); }
.aD-axis { position: absolute; font-size: 12px; color: #8d93b0; text-align: right; }
.aD-colh { position: absolute; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: #e3e6f2; white-space: nowrap; }
.aD-gap { position: absolute; transform: translateX(-50%); font-size: 14px; font-weight: 700; color: #11ced7; white-space: nowrap; }
.aD-gap.is-best { color: #f9c440; }
/* Best Time: the weekly heatmap (cells get their strength from --a) */
.aD-hm { position: absolute; display: grid; grid-template-columns: repeat(12, 26px); gap: 4px; }
.aD-hm i { display: block; height: 22px; border-radius: 4px; background: rgba(17, 206, 215, var(--a, .08)); }
.aD-hm-day { position: absolute; font-size: 12px; color: #8d93b0; }

/* ------------------------------------------------ light tables of the model pages (ranks, bands, tiers, segments) */
.sp-card:has(> .aim-table) { max-width: 36rem; }
.aim-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.aim-table th, .aim-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--sp-line); text-align: left; vertical-align: middle; line-height: 1.4; }
.aim-table thead th { font-size: .8125rem; font-weight: 600; color: var(--sp-muted); background: var(--sp-soft); }
.aim-table tbody th { font-weight: 600; white-space: nowrap; }
.aim-table tbody tr[class] th::before { content: ""; display: inline-block; width: .625rem; height: .625rem; margin-right: .5rem; border-radius: 50%; background: var(--aD-c); }
.aim-table.has-num td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--sp-muted); }
.aim-table td { color: var(--sp-ink); }
.aim-table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 479px) {
  .aim-table { font-size: .8125rem; }
  .aim-table th, .aim-table td { padding: .625rem .5rem; }
  .aim-table tbody tr[class] th::before { margin-right: .375rem; }
}

/* ------------------------------------------------ example journey (overview page, #journey): six numbered steps */
.aim-steps .sp-step_t span { display: block; margin-bottom: .25rem; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #0a7f86; }
.aim-steps .sp-step_d strong { color: var(--sp-ink); font-weight: 600; }
.aim-note { max-width: 52rem; margin: 1.25rem 0 0; font-size: .875rem; line-height: 1.5; color: var(--sp-muted); }
.aim-note a { color: #0a7f86; text-decoration: underline; }

/* Best Time page, Labs study numbers (#study): aligned with the section heading */
#study .sp-stats_grid { margin-left: 0; }
#study .sp-stats_note { margin-left: 0; text-align: left; }
