/* ============================================================
   TraiQ — visual kit ("glossy" illustrations)
   Diagrams and redrawn platform screens, built as inline SVG +
   HTML on top of styles.css. Shared stage, type, gloss and motion;
   each visual adds its own block below the kit.
   Motion is subtle and switches off under prefers-reduced-motion.
   ============================================================ */

/* ── STAGE ── */
.vz {
    position: relative;
    margin: 0;
}

.vz-stage {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--line);
    background:
        radial-gradient(42% 52% at 47% 52%, rgba(150,0,143,0.30), transparent 70%),
        radial-gradient(34% 44% at 84% 42%, rgba(34,211,238,0.15), transparent 70%),
        radial-gradient(30% 40% at 8% 92%, rgba(34,211,238,0.08), transparent 70%),
        linear-gradient(180deg, #0B1830 0%, #070F1C 100%);
    box-shadow: 0 70px 130px -70px rgba(0,0,0,0.95), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* faint dot grid, faded at the edges */
.vz-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(232,238,243,0.16) 1px, transparent 1.2px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(75% 70% at 50% 50%, #000 30%, transparent 100%);
    mask-image: radial-gradient(75% 70% at 50% 50%, #000 30%, transparent 100%);
    opacity: 0.22;
    pointer-events: none;
}

.vz-stage > * {
    position: relative;
}

/* wide diagrams scroll sideways on small screens rather than shrinking type */
.vz-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
}

.vz-scroll > svg {
    display: block;
    width: 100%;
    min-width: 960px;
    height: auto;
}

.vz-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 16px;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.vz-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vz-legend i {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.vz-legend i.c { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.vz-legend i.m { background: var(--mag2); box-shadow: 0 0 10px var(--mag2); }
.vz-legend i.d { width: 18px; height: 0; border-radius: 0; border-top: 1px dashed var(--cyan); }

/* ── SVG TYPE ── */
/* default colours apply only where the element sets no fill of its own */
.vz-t { font-family: var(--disp); font-weight: 700; }
.vz-h { font-family: var(--disp); font-weight: 600; }
.vz-b { font-family: var(--body); }
.vz-m { font-family: var(--mono); letter-spacing: 0.08em; }
.vz-t:not([fill]), .vz-h:not([fill]) { fill: var(--ink); }
.vz-b:not([fill]) { fill: var(--ink2); }
.vz-m:not([fill]) { fill: var(--muted); }
.vz-k { font-family: var(--disp); font-stretch: 118%; font-weight: 600; letter-spacing: 0.16em; }

/* ── MOTION ── */
.vz-pulse { animation: vz-pulse 3.2s ease-in-out infinite; }
@keyframes vz-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.vz-flow { stroke-dasharray: 4 8; animation: vz-flow 1.4s linear infinite; }
@keyframes vz-flow { to { stroke-dashoffset: -24; } }

.vz-flow-slow { stroke-dasharray: 7 7; animation: vz-flow-slow 4s linear infinite; }
@keyframes vz-flow-slow { to { stroke-dashoffset: -28; } }

.vz-ring { transform-box: fill-box; transform-origin: center; animation: vz-ring 2.4s ease-out infinite; }
@keyframes vz-ring { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }

.vz-packet { filter: drop-shadow(0 0 5px currentColor); }

/* ── GENERIC GLASS PIECES (redrawn screens) ── */
.vz-pad { padding: 72px 72px 64px; }
.vz-pad-s { padding: 28px 28px 24px; }

.vz-glass {
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(232,238,243,0.16);
    background: linear-gradient(180deg, #13294A 0%, #0B1A30 100%);
    box-shadow:
        0 50px 90px -40px rgba(0,0,0,0.9),
        0 0 0 1px rgba(34,211,238,0.06),
        inset 0 1px 0 rgba(255,255,255,0.08);
    overflow: hidden;
}

.vz-glass::after {
    content: '';
    position: absolute;
    inset: 0 0 55% 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0));
    pointer-events: none;
}

.vz-tilt-l { transform: perspective(1900px) rotateY(-7deg) rotateX(3deg); transform-origin: 30% 50%; }
.vz-tilt-r { transform: perspective(1900px) rotateY(7deg) rotateX(3deg); transform-origin: 70% 50%; }

.vz-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(5,11,21,0.8);
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.vz-bar .tab {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--cyan);
    border: 1px solid var(--cyan-line);
    background: var(--cyan-dim);
    padding: 3px 9px;
}

.vz-lab {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.vz-big {
    font-family: var(--disp);
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.02em;
}

/* floating Q callout */
.vz-callout {
    position: absolute;
    width: 330px;
    padding: 16px 18px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(43,11,53,0.95), rgba(12,20,38,0.96));
    border: 1px solid rgba(224,107,216,0.55);
    box-shadow: 0 34px 70px -28px rgba(0,0,0,0.95), 0 0 50px -14px rgba(150,0,143,0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.vz-callout .qh {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: var(--mag2);
}

.vz-callout .qh b,
.vz-orb {
    width: 24px;
    height: 24px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #F3A6EE, #E06BD8 35%, #96008F 75%, #4A0047);
    color: #fff;
    font: 700 12px var(--disp);
    box-shadow: 0 0 16px rgba(224,107,216,0.7);
}

.vz-callout p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink2);
}

.vz-callout p strong {
    color: var(--ink);
    font-weight: 600;
}

.vz-callout .gr {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px dashed var(--line2);
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--up);
}

/* floating stat tile */
.vz-tile {
    position: absolute;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(23,49,77,0.96), rgba(10,22,40,0.96));
    border: 1px solid rgba(34,211,238,0.4);
    box-shadow: 0 30px 60px -25px rgba(0,0,0,0.9), 0 0 30px -12px rgba(34,211,238,0.4);
    z-index: 2;
}

.vz-tile .v {
    font-family: var(--disp);
    font-weight: 700;
    font-size: 28px;
    color: var(--ink);
    margin-top: 6px;
    line-height: 1;
}

.vz-tile .s {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    color: var(--cyan);
    margin-top: 6px;
}

/* ── GENERIC ENTRANCES (start when the figure gets .is-on) ── */
.vz-in { opacity: 0; transform: translateY(14px); }
.vz-fade { opacity: 0; }
.vz-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.vz-grow { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; }
.vz-grow-down { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 0%; }

.vz.is-on .vz-in { animation: vz-rise 0.7s ease forwards; animation-delay: var(--d, 0s); }
.vz.is-on .vz-fade { animation: vz-fadein 0.8s ease forwards; animation-delay: var(--d, 0s); }
.vz.is-on .vz-draw { animation: vz-drawin 1.8s cubic-bezier(.4,0,.2,1) forwards; animation-delay: var(--d, 0s); }
.vz.is-on .vz-grow,
.vz.is-on .vz-grow-down { animation: vz-growin 0.9s cubic-bezier(.3,0,.2,1) forwards; animation-delay: var(--d, 0s); }

@keyframes vz-rise { to { opacity: 1; transform: none; } }
@keyframes vz-fadein { to { opacity: 1; } }
@keyframes vz-drawin { to { stroke-dashoffset: 0; } }
@keyframes vz-growin { to { transform: scaleY(1); } }

/* step highlight that walks along a sequence (V3, V8) */
.vz-step { animation: vz-step 5s ease-in-out infinite; animation-delay: var(--d, 0s); opacity: 0.25; }
@keyframes vz-step { 0%, 100% { opacity: 0.25; } 8%, 22% { opacity: 1; } 34% { opacity: 0.25; } }

/* ============================================================
   V1 · Q BRIDGE SYSTEM MAP
   ============================================================ */
.v-bridge .vz-stage {
    padding: 18px 18px 8px;
}

/* ============================================================
   V2 · COVENANT PROJECTED HEADROOM (redrawn screen)
   ============================================================ */
.v-cov .vz-stage {
    padding: 96px 72px 64px;
}

.cov-card {
    position: relative;
    max-width: 860px;
    margin-left: 40px;
    border-radius: 18px;
    border: 1px solid rgba(232,238,243,0.16);
    background: linear-gradient(180deg, #13294A 0%, #0B1A30 100%);
    box-shadow:
        0 50px 90px -40px rgba(0,0,0,0.9),
        0 0 0 1px rgba(34,211,238,0.06),
        inset 0 1px 0 rgba(255,255,255,0.08);
    transform: perspective(1900px) rotateY(-7deg) rotateX(3deg);
    transform-origin: 30% 50%;
    overflow: hidden;
}

/* glass sheen across the top of the card */
.cov-card::after {
    content: '';
    position: absolute;
    inset: 0 0 55% 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0));
    pointer-events: none;
}

.cov-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(5,11,21,0.8);
    border-bottom: 1px solid var(--line);
}

.cov-bar .t {
    font-weight: 600;
    color: var(--ink);
    font-size: 13px;
}

.cov-bar .tab {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--cyan);
    border: 1px solid var(--cyan-line);
    background: var(--cyan-dim);
    padding: 3px 9px;
}

.cov-bar .m {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}

.cov-body {
    padding: 22px 24px 14px;
}

.cov-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 6px;
}

.cov-k {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 6px;
}

.cov-v {
    font-family: var(--disp);
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.cov-v small {
    font-family: var(--mono);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--amber);
    margin-left: 10px;
}

.cov-limit {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--mag2);
    border: 1px solid rgba(224,107,216,0.45);
    padding: 6px 10px;
    white-space: nowrap;
}

.cov-chart {
    display: block;
    width: 100%;
    height: auto;
}

/* floating tile: next test */
.cov-tile {
    position: absolute;
    right: 120px;
    top: 34px;
    width: 196px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(23,49,77,0.96), rgba(10,22,40,0.96));
    border: 1px solid rgba(251,191,36,0.45);
    box-shadow: 0 30px 60px -25px rgba(0,0,0,0.9), 0 0 30px -10px rgba(251,191,36,0.35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.cov-tile .k {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.cov-tile .v {
    font-family: var(--disp);
    font-weight: 700;
    font-size: 30px;
    color: var(--ink);
    margin: 6px 0 4px;
    line-height: 1;
}

.cov-tile .s {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    color: var(--amber);
}

/* floating Q bubble */
.cov-q {
    position: absolute;
    right: 48px;
    top: 30px;
    width: 340px;
    padding: 16px 18px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(43,11,53,0.95), rgba(12,20,38,0.96));
    border: 1px solid rgba(224,107,216,0.55);
    box-shadow: 0 34px 70px -28px rgba(0,0,0,0.95), 0 0 50px -14px rgba(150,0,143,0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.cov-q .qh {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: var(--mag2);
}

.cov-q .qh b {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #E06BD8, #96008F 60%, #4A0047);
    color: #fff;
    font: 700 12px var(--disp);
    box-shadow: 0 0 16px rgba(224,107,216,0.7);
}

.cov-q p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink2);
}

.cov-q p strong {
    color: var(--ink);
    font-weight: 600;
}

.cov-q .gr {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px dashed var(--line2);
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--up);
}

/* entrance: line draws, area fills, callouts float in */
.cov-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.cov-area, .cov-peak, .cov-pin { opacity: 0; }
.v-cov .cov-q, .v-cov .cov-tile { opacity: 0; transform: translateY(14px); }

.v-cov.is-on .cov-line { animation: cov-draw 2.2s cubic-bezier(.4,0,.2,1) forwards; }
.v-cov.is-on .cov-area { animation: cov-fade 1.2s ease 1.1s forwards; }
.v-cov.is-on .cov-peak { animation: cov-fade 0.5s ease 1.5s forwards; }
.v-cov.is-on .cov-pin { animation: cov-fade 0.6s ease 1.9s forwards; }
.v-cov.is-on .cov-tile { animation: cov-rise 0.7s ease 0.5s forwards; }
.v-cov.is-on .cov-q { animation: cov-rise 0.8s ease 2.3s forwards; }

@keyframes cov-draw { to { stroke-dashoffset: 0; } }
@keyframes cov-fade { to { opacity: 1; } }
@keyframes cov-rise { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   V3–V17 · per-visual layout
   ============================================================ */
.vz-svg {
    display: block;
    width: 100%;
    height: auto;
}

/* V4 · four use-case panels */
.uc4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.uc4 .vz-glass {
    padding: 22px 24px 8px;
}

.uc4-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.uc4-head h3 {
    font-size: 1.15rem;
    margin-top: 6px;
}

.vz-chip {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--line2);
    color: var(--ink2);
    white-space: nowrap;
}

.vz-chip.ok { color: var(--up); border-color: rgba(52,211,153,0.5); background: rgba(52,211,153,0.08); }
.vz-chip.warn { color: var(--amber); border-color: rgba(251,191,36,0.5); background: rgba(251,191,36,0.08); }
.vz-chip.cy { color: var(--cyan); border-color: var(--cyan-line); background: var(--cyan-dim); }
.vz-chip.mg { color: var(--mag2); border-color: rgba(224,107,216,0.5); background: rgba(150,0,143,0.12); }

/* redrawn-screen card shell */
.vz-screen {
    max-width: 860px;
}

.vz-screen-body {
    padding: 22px 24px 18px;
}

.vz-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.vz-big small {
    font-family: var(--mono);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--amber);
    margin-left: 10px;
}

/* V11 · briefing stack */
.brief-stack {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.brief-ghost {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    border: 1px solid rgba(232,238,243,0.10);
    background: linear-gradient(180deg, #10233A, #0A1628);
}

.brief-ghost.g1 { transform: rotate(-5deg) translate(-26px, 8px); opacity: 0.45; }
.brief-ghost.g2 { transform: rotate(-2.5deg) translate(-12px, 4px); opacity: 0.7; }

.brief-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 6px;
}

.brief-top h3 {
    font-size: 1.2rem;
}

.brief-top .when {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: var(--cyan);
}

.brief-lines {
    list-style: none;
    padding: 12px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brief-lines li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(10,22,40,0.7);
    border: 1px solid var(--line);
    font-size: 14.5px;
    color: var(--ink2);
}

.brief-lines li b {
    color: var(--ink);
    font-weight: 600;
}

.brief-lines i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: none;
}

.brief-lines i.r { background: var(--down); box-shadow: 0 0 12px var(--down); }
.brief-lines i.g { background: var(--up); box-shadow: 0 0 12px var(--up); }
.brief-lines i.a { background: var(--amber); box-shadow: 0 0 12px var(--amber); }

/* V12 · fanned report packs */
.packs {
    display: flex;
    justify-content: center;
    padding: 30px 0 10px;
}

.pack {
    width: 200px;
    margin: 0 -12px;
}

.pack:nth-child(1) { transform: rotate(-10deg) translateY(22px); }
.pack:nth-child(2) { transform: rotate(-3.5deg) translateY(4px); z-index: 1; }
.pack:nth-child(3) { transform: rotate(3.5deg) translateY(4px); z-index: 2; }
.pack:nth-child(4) { transform: rotate(10deg) translateY(22px); z-index: 3; }

.pack .vz-glass {
    height: 260px;
    padding: 20px 18px 18px;
    display: flex;
    flex-direction: column;
    border-top: 3px solid var(--cyan);
}

.pack:nth-child(2n) .vz-glass { border-top-color: var(--mag2); }

.pack h4 {
    font-size: 1.1rem;
    line-height: 1.2;
    margin-top: 10px;
}

.pack svg {
    margin-top: auto;
    width: 100%;
    height: 70px;
}

.pack .fmt {
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.1em;
    color: var(--muted);
}

/* V13 · ALCO deck slides */
.deck {
    position: relative;
    height: 430px;
    max-width: 900px;
    margin: 0 auto;
}

.slide {
    position: absolute;
    width: 460px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: linear-gradient(180deg, #FFFFFF, #EEF3F7);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.4);
    padding: 22px 26px;
    color: var(--pink);
    overflow: hidden;
}

.slide.s1 { left: 0; top: 0; transform: perspective(1600px) rotateY(16deg) rotate(-2deg); opacity: 0.85; }
.slide.s2 { left: 200px; top: 70px; transform: perspective(1600px) rotateY(10deg) rotate(-1deg); }
.slide.s3 { left: 400px; top: 150px; transform: perspective(1600px) rotateY(4deg); }

.slide .sk {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    color: var(--cyan-deep);
}

.slide h4 {
    color: var(--pink);
    font-size: 1.05rem;
    margin: 6px 0 10px;
}

.slide.s1 h4 {
    font-size: 1.7rem;
    margin-top: 40px;
}

.slide svg {
    width: 100%;
    height: 110px;
}

.slide .note {
    font-size: 10.5px;
    color: var(--pmuted);
    margin-top: 6px;
    line-height: 1.4;
}

.deck .vz-chip {
    position: absolute;
    left: 40px;
    bottom: 10px;
}

/* V15 · return table */
.ret {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ret th,
.ret td {
    text-align: left;
    padding: 13px 10px;
    border-bottom: 1px solid var(--line);
}

.ret th {
    font-family: var(--mono);
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.ret td { color: var(--ink2); }
.ret td.n { font-family: var(--mono); color: var(--ink); text-align: right; }
.ret th.n { text-align: right; }
.ret td.s { width: 150px; text-align: right; }
.ret tr.flag td { background: rgba(251,191,36,0.07); }
.ret tr.flag td:first-child { box-shadow: inset 3px 0 0 var(--amber); }

/* V16 · specification form */
.spec-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink);
}

.spec-row .lbl {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.spec-stamp {
    position: absolute;
    right: 40px;
    bottom: 16px;
    padding: 10px 18px;
    border: 2px solid var(--mag2);
    border-radius: 10px;
    font-family: var(--disp);
    font-stretch: 118%;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.16em;
    color: var(--mag2);
    background: rgba(150,0,143,0.12);
    box-shadow: 0 0 40px -8px rgba(224,107,216,0.7);
    transform: rotate(-8deg);
    z-index: 2;
}

.spec-stamp small {
    display: block;
    font-family: var(--mono);
    font-stretch: 100%;
    font-weight: 400;
    font-size: 9.5px;
    letter-spacing: 0.1em;
    margin-top: 3px;
}

@media (max-width: 880px) {
    .uc4 { grid-template-columns: 1fr; }
    .packs { flex-wrap: wrap; gap: 14px; }
    .pack { margin: 0; transform: none !important; width: 46%; }
    .deck { height: auto; display: flex; flex-direction: column; gap: 14px; }
    .slide { position: static; width: 100%; transform: none !important; opacity: 1 !important; }
    .deck .vz-chip { position: static; align-self: flex-start; }
    .spec-row { grid-template-columns: 1fr; gap: 4px; }
    .spec-stamp { position: static; display: inline-block; margin-top: 16px; }
}

/* ── PLACEMENT IN PAGES ── */
.vz-block { margin-top: 48px; }
.vz-gap { margin-top: 48px; }
.vz-gap + .stamp-split { margin-top: 80px; }

.vz-item + .vz-item { margin-top: 88px; }

.vz-item-head {
    max-width: 680px;
    margin-bottom: 26px;
}

.vz-item-head .eyebrow { margin-bottom: 12px; }

.vz-item-head h3 {
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.vz-item-head p { font-size: 1rem; }

/* wide diagrams that have a drawn phone version */
.vz-mob { display: none; }

/* ============================================================
   TOUR REDRAWS (V18–V24) · compact visuals for the product tours
   and the Corporate opening cockpit
   ============================================================ */

/* horizontal grow (bars that fill left to right) */
.vz-grow-x { transform: scaleX(0); transform-origin: 0 50%; }
.vz.is-on .vz-grow-x { animation: vz-growx 1s cubic-bezier(.3,0,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes vz-growx { to { transform: scaleX(1); } }

.vz-pad-t { padding: 26px 22px 30px; }

/* a tour frame that holds a visual instead of a screenshot:
   the stage is the frame; clicking still opens the real screen */
.tour-shot.tour-viz {
    position: relative;
    background: none;
    border: 0;
    box-shadow: none;
}

.tour-viz .vz-stage { transition: border-color .2s; }
.tour-viz:hover .vz-stage,
.tour-viz:focus-visible .vz-stage { border-color: var(--cyan-line); }
.tour-viz:focus-visible { outline: none; }

.tour-real {
    position: absolute;
    right: 14px;
    bottom: 10px;
    z-index: 3;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.1em;
    color: var(--muted);
    transition: color .2s;
    pointer-events: none;
}

.tour-viz:hover .tour-real,
.tour-viz:focus-visible .tour-real { color: var(--cyan); }

/* approved full-width visuals, sized down for a tour cell */
.tour-viz .vz-pad,
.tour-viz .v-cov .vz-stage { padding: 26px 22px 34px; }
.tour-viz .vz-tilt-l,
.tour-viz .vz-tilt-r,
.tour-viz .cov-card {
    transform: perspective(1600px) rotateY(-4deg) rotateX(2deg);
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.tour-viz .vz-big,
.tour-viz .cov-v { font-size: 30px; }
/* in a tour cell Q's read sits under the screen, not over it */
.tour-viz .vz-callout,
.tour-viz .cov-q {
    position: static;
    width: auto;
    margin-top: 14px;
    padding: 11px 14px 10px;
}

/* every tour visual gets the wide column, whichever side it sits on */
@media (min-width: 881px) {
    .tour-row.flip { grid-template-columns: 5fr 7fr; }
}
.tour-viz .vz-callout p,
.tour-viz .cov-q p { font-size: 12px; }
.tour-viz .vz-callout .qh,
.tour-viz .cov-q .qh { margin-bottom: 6px; }

/* ── V18 · risk cockpit tiles ── */
.tc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px;
}

.tc {
    padding: 11px 12px 10px;
    border-radius: 10px;
    background: rgba(10,22,40,0.72);
    border: 1px solid var(--line);
    border-left: 3px solid var(--up);
}

.tc.warn { border-left-color: var(--amber); }
.tc.bad { border-left-color: var(--down); background: rgba(248,113,113,0.06); }

.tc .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--muted); }
.tc .v { font-family: var(--disp); font-weight: 700; font-size: 22px; color: var(--ink); margin: 4px 0 2px; line-height: 1.1; }
.tc svg { display: block; width: 100%; height: 22px; }
.tc path { fill: none; stroke-width: 1.6; stroke: var(--up); }
.tc.warn path { stroke: var(--amber); }
.tc.bad path { stroke: var(--down); }
.tc .f { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.06em; color: var(--muted); margin-top: 4px; }

/* ── V19 · Q what-if ── */
.tq-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; }

.tq-user {
    align-self: flex-end;
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 12px 12px 2px 12px;
    background: rgba(34,211,238,0.10);
    border: 1px solid var(--cyan-line);
    font-size: 13px;
    color: var(--ink);
}

.tq-q {
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(43,11,53,0.75), rgba(12,20,38,0.85));
    border: 1px solid rgba(224,107,216,0.45);
}

.tq-tool {
    display: inline-block;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.08em;
    color: var(--up);
    border: 1px solid rgba(52,211,153,0.45);
    border-radius: 999px;
    padding: 3px 9px;
    margin-bottom: 10px;
}

.tq-head { font-family: var(--disp); font-weight: 700; font-size: 26px; color: var(--ink); line-height: 1.1; }
.tq-head span { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.1em; color: var(--muted); margin-right: 8px; }
.tq-head i { font-style: normal; color: var(--muted); margin: 0 6px; }
.tq-head em { font-style: normal; color: var(--amber); }

.tq-bars { margin: 10px 0 12px; display: flex; flex-direction: column; gap: 5px; }
.tq-bars span { display: block; height: 6px; border-radius: 3px; background: var(--cyan); }
.tq-bars span.after { width: 75.4%; background: var(--amber); }

.tq-flag {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--ink2);
    padding: 7px 0;
    border-top: 1px dashed var(--line2);
}

.tq-flag i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.tq-flag.bad i { background: var(--down); box-shadow: 0 0 10px var(--down); }
.tq-flag b { color: var(--ink); font-weight: 600; }

/* ── V20 · ALCO slide ── */
.ts-slide {
    position: relative;
    border-radius: 10px;
    background: linear-gradient(180deg, #FFFFFF, #EEF3F7);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.4);
    padding: 20px 22px 16px;
    color: var(--pink);
    transform: perspective(1600px) rotateY(-4deg) rotateX(2deg);
}

.ts-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--cyan2); padding-bottom: 8px; }
.ts-top h4 { color: var(--pink); font-size: 1.15rem; }
.ts-top span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; color: var(--pmuted); }

.ts-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 6px; }
.ts-kpis .k { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; color: var(--pmuted); }
.ts-kpis .v { font-family: var(--disp); font-weight: 700; font-size: 22px; color: var(--pink); }

.ts-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.ts-charts svg { width: 100%; height: auto; display: block; }

.ts-comm {
    margin-top: 10px;
    padding: 9px 12px;
    border-left: 3px solid var(--cyan2);
    background: #F2F6F8;
    border-radius: 0 6px 6px 0;
}

.ts-comm .k { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; color: var(--cyan-deep); margin-bottom: 3px; }
.ts-comm p { font-size: 11.5px; line-height: 1.45; color: var(--pink2); }

.t-slide .vz-chip { position: absolute; left: 22px; bottom: 8px; z-index: 2; }
.t-slide .vz-stage { padding-bottom: 44px; }

/* ── V21–V23 · chart cards (cash map, 13-week, bridge) ── */
.tk {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding: 14px 18px 4px;
}

.tk .k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--muted); }
.tk .v { font-family: var(--disp); font-weight: 700; font-size: 22px; color: var(--ink); line-height: 1.15; }
.tk .v small { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.06em; color: var(--amber); margin-left: 6px; }
.tk .vz-chip { align-self: center; margin-left: auto; }

.t-chart svg.vz-svg { padding: 4px 10px 10px; }

/* ── V24 · Corporate opening cockpit ── */
.hc-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 16px 18px 6px;
}

.hc-tiles .tc .v { font-size: 24px; }

@media (max-width: 880px) {
    .tc-grid { grid-template-columns: 1fr 1fr; }
    .hc-tiles { grid-template-columns: 1fr 1fr; }
    .ts-slide { transform: none; }
    .tour-viz .vz-callout,
    .tour-viz .cov-q { position: static; width: auto; margin-top: 12px; }
}

/* ── REDUCED MOTION: show the end state, no movement ── */
@media (prefers-reduced-motion: reduce) {
    .vz-packet { display: none; }
    .vz-in, .vz-fade { opacity: 1; transform: none; }
    .vz-draw { stroke-dashoffset: 0; }
    .vz-grow, .vz-grow-down { transform: none; }
    .vz.is-on .vz-in, .vz.is-on .vz-fade, .vz.is-on .vz-draw,
    .vz.is-on .vz-grow, .vz.is-on .vz-grow-down { animation: none; }
    .vz-step { animation: none; opacity: 1; }
    .vz-grow-x { transform: none; }
    .vz.is-on .vz-grow-x { animation: none; }
    .vz-pulse, .vz-flow, .vz-flow-slow, .vz-ring { animation: none; }
    .cov-line { stroke-dashoffset: 0; }
    .cov-area, .cov-peak, .cov-pin { opacity: 1; }
    .v-cov .cov-q, .v-cov .cov-tile { opacity: 1; transform: none; }
    .v-cov.is-on .cov-line, .v-cov.is-on .cov-area, .v-cov.is-on .cov-peak,
    .v-cov.is-on .cov-pin, .v-cov.is-on .cov-tile, .v-cov.is-on .cov-q { animation: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 880px) {
    .v-cov .vz-stage {
        padding: 22px 16px 24px;
    }

    .cov-card {
        margin-left: 0;
        transform: none;
    }

    .cov-bar .m {
        display: none;
    }

    .cov-v {
        font-size: 30px;
    }

    .vz-pad { padding: 22px 16px 24px; }

    .vz-desk { display: none; }
    .vz-mob { display: block; max-width: 420px; margin: 0 auto; }
    .vz-block, .vz-gap { margin-top: 32px; }
    .vz-item + .vz-item { margin-top: 56px; }

    .vz-screen { margin-left: 0 !important; margin-right: 0 !important; }

    .vz-tilt-l,
    .vz-tilt-r { transform: none; }

    .vz-callout,
    .vz-tile {
        position: static;
        width: auto;
        margin-top: 14px;
    }

    .cov-tile,
    .cov-q {
        position: static;
        width: auto;
        margin-top: 14px;
    }
}
