/* ---- small animated illustrations that sit next to the text they explain ---- */
.vis { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem 1rem; background: color-mix(in srgb, var(--card) 92%, transparent); box-shadow: var(--shadow); overflow: hidden; min-height: 200px; }
.vis-cap { margin: .8rem 0 0; font-size: .86rem; color: var(--mute); text-align: center; }
.vis-title { font: 500 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0 0 .7rem; display: flex; align-items: center; gap: .5rem; }
.vis-title::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: ping 1.8s infinite; box-shadow: 0 0 0 0 rgba(45,190,175,.6); }
.vis-article { max-width: 640px; margin: 1.6rem auto 2rem; }
.vis b { font-weight: 600; }
.vis .big { font: 500 2.2rem var(--display); line-height: 1; }

/* class cards + bar + donut */
.vc { display: grid; grid-template-columns: 1fr 120px; gap: 1rem; align-items: center; }
.vc-list { display: grid; gap: .45rem; }
.vc-item { display: flex; align-items: center; gap: .6rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: .9rem; cursor: pointer; text-align: left; color: var(--ink); font-family: inherit; transition: transform .25s, border-color .25s, box-shadow .25s, opacity .25s; opacity: .6; }
.vc-item i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); flex: none; }
.vc-item span { margin-left: auto; font-size: .78rem; color: var(--mute); }
.vc-item.on { opacity: 1; transform: translateX(6px); border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.donut { width: 120px; height: 120px; border-radius: 50%; position: relative; transition: background .4s; }
.donut::after { content: ''; position: absolute; inset: 22px; border-radius: 50%; background: var(--card); }
.donut em { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; font: 500 1.3rem var(--display); font-style: normal; }
.stackbar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; margin-top: .9rem; background: var(--line); }
.stackbar i { display: block; height: 100%; transition: opacity .35s, flex-grow .5s; }
.coach { margin-top: .9rem; padding: .7rem .9rem; border-left: 4px solid var(--c, var(--brand)); background: var(--brand-soft); border-radius: 0 10px 10px 0; font-size: .9rem; color: var(--ink2); min-height: 4.6em; transition: border-color .3s; }
.coach b { color: var(--ink); }

/* rows that fill */
.rowfill { display: grid; grid-template-columns: 5.6rem 1fr 3.6rem; gap: .6rem; align-items: center; margin: .42rem 0; font-size: .88rem; }
.rowfill .tr { height: 14px; background: var(--line); border-radius: 7px; overflow: hidden; }
.rowfill .tr i { display: block; height: 100%; width: 0; border-radius: 7px; background: var(--c); }
.rowfill .v { text-align: right; font: 500 .85rem var(--mono); }
.sale { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.sale .track { flex: 1; height: 6px; background: var(--line); border-radius: 3px; margin: 0 .9rem; position: relative; }
.sale .track i { position: absolute; top: -5px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); margin-left: -8px; }

/* curve */
.curve svg { width: 100%; height: auto; display: block; }
.curve .ax { stroke: var(--line); stroke-width: 1; }
.curve text { fill: var(--mute); font: 500 10px var(--mono); }
.curve .seg { fill: none; stroke-width: 3.5; stroke-linecap: round; transition: opacity .3s; }
.curve .mk { fill: #f2b84b; stroke: var(--card); stroke-width: 2; }
.regimes { display: grid; gap: .3rem; margin-top: .6rem; font-size: .86rem; }
.regimes div { display: flex; gap: .55rem; align-items: center; padding: .3rem .55rem; border-radius: 8px; border: 1px solid transparent; opacity: .55; transition: opacity .25s, border-color .25s, background .25s; }
.regimes div i { width: 18px; height: 5px; border-radius: 3px; background: var(--c); flex: none; }
.regimes div.on { opacity: 1; border-color: var(--line); background: var(--card); }

/* bridge */
.bridge { position: relative; height: 190px; display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; align-items: stretch; padding-bottom: 2.6rem; }
.bridge .col { position: relative; }
.bridge .bar { position: absolute; left: 12%; right: 12%; border-radius: 6px; background: var(--c); transform-origin: bottom; transform: scaleY(0); opacity: 0; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.bridge .col.on .bar { transform: none; opacity: 1; }
.bridge .lab { position: absolute; left: -4px; right: -4px; bottom: -2.5rem; text-align: center; font-size: .72rem; line-height: 1.2; color: var(--ink2); }
.bridge .lab b { display: block; font: 600 .82rem var(--mono); color: var(--ink); }

/* two-column compare */
.cmp2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; font-size: .88rem; }
.cmp2 h4 { margin: 0 0 .4rem; font: 500 .74rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.cmp2 .r { display: flex; justify-content: space-between; padding: .38rem .6rem; border-radius: 8px; border: 1px solid transparent; transition: background .3s, border-color .3s; }
.cmp2 .r.scan { background: var(--brand-soft); border-color: var(--brand); }
.cmp2 .r.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); border-color: var(--bad); }
.cmp2 .r span:last-child { font: 500 .85rem var(--mono); }
.verdict { margin-top: .7rem; padding: .6rem .8rem; border-radius: 10px; background: color-mix(in srgb, var(--bad) 10%, transparent); border: 1px dashed var(--bad); font-size: .88rem; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.verdict.on { opacity: 1; transform: none; }

/* versions */
.vers { display: flex; gap: .4rem; margin-bottom: .8rem; }
.vers span { padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; color: var(--mute); transition: all .3s; }
.vers span.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.vrow { display: flex; justify-content: space-between; padding: .5rem .7rem; border-radius: 8px; margin: .3rem 0; font-size: .92rem; border: 1px solid var(--line); background: var(--card); transition: background .4s, border-color .4s; }
.vrow.chg.two { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: var(--accent); }
.vrow b { font-family: var(--mono); font-weight: 500; }
.vdelta { margin-top: .6rem; font-size: .9rem; color: var(--ink2); min-height: 1.4em; }

/* report pages */
.pages { position: relative; height: 230px; display: grid; place-items: center; }
.pg { position: absolute; width: 130px; height: 175px; border-radius: 8px; background: #fff; border: 1px solid #d5dce6; box-shadow: 0 8px 22px rgba(0,0,0,.14); padding: 12px 11px; transition: transform .9s cubic-bezier(.2,.8,.2,1); color: #1b2638; overflow: hidden; }
.pg h5 { margin: 0 0 8px; font: 600 9px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--c); }
.pg u { display: block; height: 5px; border-radius: 3px; background: #dfe5ee; margin: 5px 0; text-decoration: none; }
.pg u.s { width: 60%; } .pg u.m { width: 82%; }
.pg .mini { display: flex; gap: 3px; align-items: flex-end; height: 40px; margin-top: 8px; }
.pg .mini i { flex: 1; background: var(--c); border-radius: 2px; }

/* view as */
.roles { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.roles span { padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; color: var(--mute); transition: all .3s; }
.roles span.on { background: var(--c); color: #fff; border-color: var(--c); }
.stackbar.tall { height: 30px; border-radius: 10px; margin: .6rem 0 .9rem; }

/* two donuts */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; text-align: center; }
.pair .donut { margin: 0 auto .5rem; width: 130px; height: 130px; }
.pair .donut em { font-size: 1.5rem; }
.pair small { display: block; color: var(--ink2); font-size: .85rem; }

/* sections that carry a visual next to the text */
.stack { display: grid; gap: 1rem; align-content: start; }
@media (max-width: 560px) { .vc { grid-template-columns: 1fr; } .donut { margin: 0 auto; } .cmp2 { grid-template-columns: 1fr; } .rowfill { grid-template-columns: 4.6rem 1fr 3.2rem; } }
@media (prefers-reduced-motion: reduce) { .vis-title::before { animation: none; } .pg, .bridge .bar { transition: none; } }
.vc-item { white-space: nowrap; } .vc-item span { white-space: normal; text-align: right; line-height: 1.2; }
