/* hero.css — mid landing in the system (stage 8), interactive pass for the hero LP card, the hero trader card
   and the app mock in "What is mid?". Page tokens and classes only (--fg --mut --sub --act); no new colours.
   Times and curves from stage 7: press 120 ms, switches 200 ms, data 400 ms, exit x0.75 with ease-out. */

/* Drawn controls that hero.js turns into real buttons */
button.opt{font:inherit;color:inherit;background:transparent;width:100%;box-sizing:border-box;text-align:left;cursor:pointer;
  transition:transform 120ms cubic-bezier(0.2,0,0,1),background-color 120ms,box-shadow 120ms,opacity 200ms cubic-bezier(0.2,0,0,1),color 200ms,border-color 200ms}
button.opt:hover{background:var(--sub)}
button.opt:active{transform:scale(0.97)}
button.btn.yes-o,button.btn.no-o{background:transparent}
button.btn.yes-o:hover,button.btn.no-o:hover{background:var(--sub)}
button.btn.sec{background:transparent}
button.btn.sec:hover{background:var(--sub)}
button.btn[aria-disabled="true"]{cursor:default}
button.btn[aria-disabled="true"]:active{transform:none}
button.btn.pri[aria-disabled="true"]:hover{background:var(--act);border-color:var(--act)}

/* Trader: on polymarket.com the mid book and the mid option are faded (Final 3: book "off", option "ghost") */
.hx-mc{transition:opacity 200ms cubic-bezier(0.2,0,0,1)}
.hx-off{opacity:0.4}
.hx-ghost{opacity:0.4}
.hx-ghost:hover{opacity:0.7}

/* App mock: amount label and value on one line */
.hx-amt{align-items:baseline}

/* App mock: "your range", a tinted underlay behind the mid bins (no handles, D74) */
.hx-band{position:absolute;top:0;display:block;background:var(--sub);opacity:0;pointer-events:none;
  transition:opacity 150ms cubic-bezier(0.4,0,1,1)}
.hx-band.on{opacity:1;transition:opacity 200ms cubic-bezier(0.2,0,0,1)}
.hx-band span{position:absolute;left:6px;top:4px;font-size:11px;line-height:14px;color:var(--mut);white-space:nowrap}

/* Hero LP replay: bins react to trades (data, 400 ms), the price label follows the price (200 ms) */
.hx-play .md{transition:transform 400ms cubic-bezier(0.2,0,0,1)}
.hx-play .plab{transition:left 200ms cubic-bezier(0.2,0,0,1)}

@media (prefers-reduced-motion: reduce){
  button.opt,.hx-mc,.hx-band,.hx-band.on,.hx-play .md,.hx-play .plab{transition:none !important}
  button.opt:active{transform:none}
}

/* Hero LP card: the fees curve (D117). hero.js draws it from the two hours of real NaVi trades: the line is what an LP
   has earned on mid by that minute, the hatched band is what a Polymarket maker gets back for the same fills.
   Read by minute with a pointer, a finger or the arrow keys. Spacing on the system scale, labels 12 px. */
.fc{position:relative;height:224px;margin:24px 0 0 48px;cursor:crosshair;touch-action:pan-y}
.fc:focus-visible{outline:2px solid var(--fg);outline-offset:8px}
.fc-yt{position:absolute;right:100%;top:-24px;margin-right:8px;white-space:nowrap}
.fc-g{position:absolute;left:0;right:0;height:1px;background:var(--ln)}
.fc-g.z{background:var(--fg)}
.fc-g span{position:absolute;right:100%;top:-8px;margin-right:8px;font-family:'Geist Mono',ui-monospace,Menlo,monospace;font-size:12px;line-height:16px;font-style:normal;color:var(--mut)}
.fc-band{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--ht)}
.fc svg{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}
.fc path{fill:none;stroke:var(--fg);stroke-linejoin:miter}
.fc path.p{stroke-width:1}
.fc path.m{stroke-width:2}
.fc-end{position:absolute;width:12px;height:12px;margin:-6px 0 0 -6px;background:#C8F23A;border:1px solid #000000}
.fc-lb{position:absolute;padding:0 4px;background:var(--bg);font-size:12px;line-height:16px;white-space:nowrap}
.fc-x{position:absolute;top:0;bottom:0;width:1px;margin-left:-0.5px;background:var(--fg);opacity:0;pointer-events:none}
.fc-dot{position:absolute;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:var(--fg);box-shadow:0 0 0 2px var(--bg);opacity:0;pointer-events:none}
.fc-x.on,.fc-dot.on{opacity:1}
.fc .hx-tip{transform:none;font-variant-numeric:tabular-nums}
.fc-xt{position:relative;height:16px;margin:8px 0 0 48px;font-family:'Geist Mono',ui-monospace,Menlo,monospace;font-size:12px;line-height:16px;color:var(--mut)}
.fc-xt span{position:absolute;transform:translateX(-50%);white-space:nowrap}
.fc-xt span.a{transform:none}
.fc-xt span.z{transform:translateX(-100%)}
.fc-xc{text-align:right}
.ph .fc{height:176px;margin-left:32px}
.ph .fc-xt{margin-left:32px}
.ph .fc-g span,.ph .fc-yt{margin-right:4px}
