/* Provaniq website v4.0 — vision page: scattered → connected memory, gated roadmap,
   interactive future "ask". Prefixed vz- to avoid clashes. */

/* ---------- scattered → connected ---------- */
.vz-why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.vz-toggle { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-card); margin-top: 24px; }
.vz-toggle button { border: 0; background: transparent; border-radius: 999px; padding: 9px 16px; font: 600 14px var(--f-ui); color: var(--text-2); cursor: pointer; transition: background .3s, color .3s; }
.vz-toggle button[aria-pressed="true"] { background: var(--aub); color: #fff; }
.vz-toggle button.good[aria-pressed="true"] { background: var(--coral); color: var(--aub); }
.vz-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.vz-points li { display: flex; gap: 10px; font-size: 15.5px; color: var(--text-2); }
.vz-points li b { color: var(--text); }
.vz-points .ai { width: 20px; height: 20px; flex: none; margin-top: 2px; }

.vz-stage { position: relative; height: 430px; border-radius: 28px; background: radial-gradient(circle, rgba(46,34,56,.08) 1.2px, transparent 1.4px) 0 0 / 16px 16px, #fff; border: 1px solid var(--line); box-shadow: var(--sh-lift); overflow: hidden; }
.vz-stage .vz-label { position: absolute; left: 18px; top: 16px; z-index: 3; font: 700 12.5px var(--f-ui); padding: 5px 12px; border-radius: 99px; transition: background .4s, color .4s; background: var(--unk-bg); color: var(--unk-t); }
.vz-stage.on .vz-label { background: var(--ok-bg); color: var(--ok-t); }
.vz-line { position: absolute; left: 50%; top: 64px; width: 3px; height: 0; margin-left: -150px; border-radius: 3px; background: linear-gradient(var(--coral), #F79A86); transition: height .9s var(--ease) .35s; z-index: 1; }
.vz-stage.on .vz-line { height: 300px; }
.mc { position: absolute; left: 50%; top: 50%; z-index: 2; width: 300px; margin-left: -150px; margin-top: -26px;
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; box-shadow: var(--sh-card);
  transform: translate(var(--x1), var(--y1)) rotate(var(--r1)) scale(.92); transition: transform 1s cubic-bezier(.6,.1,.2,1), border-color .4s, box-shadow .4s; transition-delay: var(--d, 0s); }
.vz-stage.drift .mc { animation: mc-drift 7s ease-in-out infinite; animation-delay: calc(var(--d) * -6); }
@keyframes mc-drift { 0%, 100% { translate: 0 0; } 50% { translate: 6px -8px; } }
.vz-stage.on .mc { transform: translate(0, var(--y2)) rotate(0) scale(1); border-color: #F3B9AC; }
.mc .ic { width: 32px; height: 32px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; flex: none; }
.mc .ic img { width: 18px; height: 18px; }
.mc .ic .ai { width: 18px; height: 18px; }
.mc .tx { position: relative; flex: 1; min-width: 0; height: 36px; }
.mc .tx > span { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; transition: opacity .45s var(--ease); }
.mc .tx b { font: 600 13.5px/1.25 var(--f-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc .tx small { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc .tx .b { opacity: 0; }
.vz-stage.on .mc .tx .a { opacity: 0; }
.vz-stage.on .mc .tx .b { opacity: 1; transition-delay: calc(var(--d) + .6s); }
.mc .vz-st { flex: none; font: 700 11px var(--f-ui); border-radius: 99px; padding: 3px 9px; background: var(--unk-bg); color: var(--unk-t); }
.vz-stage.on .mc .vz-st { background: var(--peach); color: var(--evidence); }
.vz-stage.on .mc.win .vz-st { background: var(--ok-bg); color: var(--ok-t); }
.mc.q { border-style: dashed; }
.vz-stage.on .mc.q { border-style: solid; border-color: #A9D9C1; }

/* ---------- gate under the roadmap ---------- */
.vz-gate { margin-top: 30px; display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 14px; align-items: stretch; }
.vz-gate .lead-in { display: flex; align-items: center; gap: 10px; font: 700 15px var(--f-display); max-width: 190px; }
.vz-gate .lead-in .ai { width: 26px; height: 26px; flex: none; }
.vz-g { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--sh-card); }
.vz-g strong { font: 800 34px/1 var(--f-display); letter-spacing: -.03em; color: var(--coral); flex: none; min-width: 44px; }
.vz-g span { font-size: 14px; color: var(--text-2); }
.vz-g span b { color: var(--text); }

/* ---------- future ask ---------- */
.vz-ask { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.vz-box { background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--sh-lift); padding: 16px; }
.vz-roles { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.vz-roles button { position: relative; overflow: hidden; border: 1px solid var(--line-2); background: #fff; border-radius: 99px; padding: 7px 13px; font: 600 13px var(--f-ui); color: var(--text-2); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.vz-roles button[aria-pressed="true"] { background: var(--aub); border-color: var(--aub); color: #fff; }
.vz-roles button .pf { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--coral); }
.vz-roles button[aria-pressed="true"] .pf { animation: sbar 6.5s linear forwards; }
.vz-box.held .vz-roles button .pf { animation: none; }
.vz-q { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--paper); min-height: 58px; }
.vz-q .p-mini { width: 34px; height: 34px; border-radius: 11px; background: var(--peach); display: grid; place-items: center; flex: none; }
.vz-q .p-mini svg { width: 24px; height: 24px; }
.vz-q .txt { font: 600 15.5px/1.35 var(--f-display); }
.vz-q .cur { display: inline-block; width: 2px; height: 1em; background: var(--coral); margin-left: 2px; vertical-align: -2px; animation: caret 1s steps(1) infinite; }
.vz-a { margin-top: 12px; border-radius: 18px; background: var(--aub); color: #fff; padding: 16px; min-height: 150px; opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.vz-a.on { opacity: 1; transform: none; }
.vz-a .who { display: flex; align-items: center; gap: 6px; font: 600 12px var(--f-ui); color: #CFC6DA; margin-bottom: 8px; }
.vz-a .who img { width: 14px; }
.vz-a p { font-size: 15px; line-height: 1.5; }
.vz-a .facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vz-a .facts span { background: rgba(255,255,255,.12); border-radius: 99px; padding: 4px 10px; font: 600 12px var(--f-ui); }
.vz-a .facts .warn { background: var(--no-bg); color: var(--no-t); }
.vz-a .facts .good { background: var(--ok-bg); color: var(--ok-t); }
.vz-a .vz-src { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); font: 600 11.5px var(--f-ui); color: #CFC6DA; }
.vz-a .vz-src code { font: 500 11px var(--f-mono); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 99px; padding: 2px 8px; color: #FFD1C7; }
.vz-note { margin-top: 10px; font-size: 12.5px; color: var(--text-2); }

@media (max-width: 1080px) {
  .vz-why, .vz-ask { grid-template-columns: 1fr; }
  .vz-gate { grid-template-columns: 1fr; }
  .vz-gate .lead-in { max-width: none; }
}
@media (max-width: 600px) {
  .vz-stage { height: 470px; }
  .mc { width: 270px; margin-left: -135px; }
  .vz-line { margin-left: -135px; }
}
@media (prefers-reduced-motion: reduce) {
  .mc, .vz-line, .vz-a { transition: none; }
  .vz-stage.drift .mc { animation: none; }
}

.mc .vz-st { position: relative; display: inline-grid; }
.mc .vz-st > span { grid-area: 1 / 1; transition: opacity .35s; }
.mc .vz-st .sb { opacity: 0; }
.vz-stage.on .mc .vz-st .sa { opacity: 0; }
.vz-stage.on .mc .vz-st .sb { opacity: 1; transition-delay: calc(var(--d) + .6s); }
/* keep the old text readable while the cards travel, then swap */
.vz-stage.on .mc .tx .a { transition-delay: calc(var(--d) + .55s); }
@media (max-width: 600px) {
  .mc { transform: translate(calc(var(--x1) * .4), var(--y1)) rotate(var(--r1)) scale(.92); }
}

/* optional transcripts input (Amendment 1) */
.src-card.opt { border-style: dashed; background: rgba(255,255,255,.75); }
.opt-tag { font: 700 11px var(--f-ui); font-style: normal; color: var(--rev-t); background: var(--rev-bg); border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.wire.opt-wire { stroke-dasharray: 5 6; }
.flow-core { height: 380px; }
.rq-track.in .track-rail .done { width: 41%; }
.rq-track.in .track-rail .runner { animation-name: runner2; }
@keyframes runner2 { 0% { left: 41%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
