/* Canonical product mock (shared/_product_mock): the marketing depiction of the
   dashboard — sidebar rail, zoned Home with a weekly move, track-record ledger,
   and the channel-performance evidence table. The :hero variant animates the
   decide → verify loop (product_mock_controller.js drives it); :static and
   :embed park on the verified payoff. Class names are the contract with the
   controller. Ported from lib/mockups/homepage-hero.html (approved 2026-07-16). */

.pmock-wrap { --pm-accent: #4f46e5; --pm-accent-text: #4338ca; --pm-accent-weak: #eef2ff;
  --pm-bg: #f6f7f9; --pm-surface: #ffffff; --pm-border: #e6e8ef; --pm-border-soft: #eef0f5;
  --pm-text: #111827; --pm-muted: #6b7280; --pm-faint: #64748b;
  --pm-good: #059669; --pm-good-weak: #ecfdf5; --pm-good-text: #047857;
  --pm-info-weak: #eff6ff; --pm-info-text: #1d4ed8; --pm-warn-text: #b45309;
  --pm-shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.04);
  --pm-lift: 0 24px 48px -16px rgba(49,46,129,.18), 0 8px 16px -8px rgba(16,24,40,.08); }

.pmock { position: relative; width: 100%; background: var(--pm-bg); border: 1px solid var(--pm-border);
  border-radius: 14px; box-shadow: var(--pm-lift); overflow: hidden; display: flex; text-align: left;
  font-variant-numeric: tabular-nums; }
.pmock * { pointer-events: none; }
.pmock-wrap.pm-hero .pmock { border-bottom: 0; border-radius: 14px 14px 0 0; }

/* mini rail */
.pmock .m-rail { width: 46px; flex: 0 0 46px; background: var(--pm-surface); border-right: 1px solid var(--pm-border);
  display: flex; flex-direction: column; align-items: center; padding: 10px 0; gap: 3px; }
.pmock .m-rail svg { width: 16px; height: 16px; stroke-width: 1.6; color: var(--pm-muted); }
.pmock .m-rail .mark { width: 18px; height: 18px; margin-bottom: 8px; }
.pmock .m-rail .it { display: grid; place-items: center; width: 30px; height: 28px; border-radius: 7px; }
.pmock .m-rail .it.active { background: var(--pm-accent-weak); }
.pmock .m-rail .it.active svg { color: var(--pm-accent-text); stroke-width: 2; }
.pmock .m-rail .sep { width: 20px; border-top: 1px solid var(--pm-border-soft); margin: 4px 0; }

.pmock .m-main { flex: 1; min-width: 0; }
.pmock .m-top { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px;
  background: var(--pm-surface); border-bottom: 1px solid var(--pm-border); }
.pmock .m-top .crumb { font-size: 12.5px; font-weight: 650; color: var(--pm-text); }
.pmock .m-top .crumb small { color: var(--pm-faint); font-weight: 500; margin-left: 6px; font-size: 11.5px; }
.pmock .m-top .bell { position: relative; color: var(--pm-muted); }
.pmock .m-top .bell svg { width: 14px; height: 14px; stroke-width: 1.7; }
.pmock .m-top .bell .n { position: absolute; top: -5px; right: -6px; min-width: 12px; height: 12px; border-radius: 999px;
  background: var(--pm-accent); color: #fff; font-size: 8px; font-weight: 700; display: grid; place-items: center; padding: 0 2px; }

.pmock .m-body { padding: 14px 16px 18px; }
.pmock .m-cap { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; }
.pmock .m-cap .cap-h { display: block; margin: 0; font-size: 9.5px; font-weight: 680; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pm-faint); }
.pmock .m-cap .wk { font-size: 10px; color: var(--pm-faint); }
.pmock .m-grid { display: grid; grid-template-columns: 1fr 132px; gap: 12px; align-items: start; }
@media (max-width: 640px) { .pmock .m-grid { grid-template-columns: 1fr; } .pmock .m-side { display: none; } }

/* the move card */
.pmock .m-card { background: var(--pm-surface); border: 1px solid var(--pm-border); border-radius: 10px;
  box-shadow: var(--pm-shadow); padding: 12px 14px; transition: border-color .4s; }
.pmock .m-r1 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pmock .m-badge { display: inline-flex; align-items: center; gap: 3px; padding: 1.5px 7px; border-radius: 999px;
  font-size: 9.5px; font-weight: 680; background: var(--pm-good-weak); color: var(--pm-good-text); transform: translateY(-1px); }
.pmock .m-card .card-h { display: block; margin: 0; font-size: 13.5px; font-weight: 650; letter-spacing: -0.01em; color: var(--pm-text); }
.pmock .m-impact { margin-left: auto; text-align: right; }
.pmock .m-impact b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--pm-text); transition: color .5s; }
.pmock .m-impact small { display: block; font-size: 9px; color: var(--pm-faint); }
.pmock .m-why { margin: 3px 0 0; font-size: 11px; color: var(--pm-muted); }
.pmock .m-meta { display: flex; align-items: center; gap: 9px; margin-top: 9px; padding-top: 8px;
  border-top: 1px solid var(--pm-border-soft); font-size: 10.5px; }
.pmock .m-conf { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; color: var(--pm-good-text); }
.pmock .m-conf i { width: 5px; height: 5px; border-radius: 999px; background: var(--pm-good); font-style: normal; }
.pmock .m-models { color: var(--pm-muted); }
.pmock .m-ev { color: var(--pm-accent-text); font-weight: 600; }
.pmock .m-state { margin-left: auto; }
.pmock .plan-ctl { background: var(--pm-accent); color: #fff; padding: 2.5px 9px; border-radius: 7px;
  font-size: 9.5px; font-weight: 680; box-shadow: 0 1px 3px rgba(79,70,229,.4); }

.pmock .pill { display: inline-flex; align-items: center; gap: 3px; padding: 1.5px 8px; border-radius: 999px;
  font-size: 9.5px; font-weight: 680; }
.pmock .pill.plan { background: var(--pm-accent-weak); color: var(--pm-accent-text); }
.pmock .pill.fly { background: var(--pm-info-weak); color: var(--pm-info-text); }
.pmock .pill.fly::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: currentColor;
  margin-right: 1px; animation: pm-pulse 1.2s ease-in-out infinite; }
.pmock .pill.ok { background: var(--pm-good-weak); color: var(--pm-good-text); }
@keyframes pm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* side tiles */
.pmock .m-side { display: flex; flex-direction: column; gap: 8px; }
.pmock .m-tile { background: var(--pm-surface); border: 1px solid var(--pm-border); border-radius: 9px;
  padding: 8px 10px; box-shadow: var(--pm-shadow); }
.pmock .m-tile .l { font-size: 9px; color: var(--pm-muted); }
.pmock .m-tile b { display: block; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; margin-top: 1px; color: var(--pm-text); }
.pmock .m-tile .d { font-size: 9px; font-weight: 650; }
.pmock .m-tile .d.up { color: var(--pm-good-text); }
.pmock .m-tile .d.amber, .pmock .m-tile b.amber { color: var(--pm-warn-text); }

/* ledger */
.pmock .m-ledger { margin-top: 12px; background: var(--pm-surface); border: 1px solid var(--pm-border);
  border-radius: 10px; box-shadow: var(--pm-shadow); }
.pmock .m-row { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-top: 1px solid var(--pm-border-soft); font-size: 11px; }
.pmock .m-row:first-child { border-top: 0; }
.pmock .m-row .who { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pm-text); }
.pmock .m-row .sub { color: var(--pm-faint); font-size: 9.5px; margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmock .m-row .pill { margin-left: auto; flex: none; }

/* channel performance (the evidence bed) */
.pmock .m-table { margin-top: 12px; background: var(--pm-surface); border: 1px solid var(--pm-border);
  border-radius: 10px; box-shadow: var(--pm-shadow); overflow: hidden; }
.pmock .m-th, .pmock .m-tr { display: grid; grid-template-columns: 1.5fr 0.9fr 1.1fr 0.6fr 1.4fr; gap: 8px;
  align-items: center; padding: 6px 12px; }
.pmock .m-th { font-size: 8.5px; font-weight: 680; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--pm-faint); background: var(--pm-bg); border-bottom: 1px solid var(--pm-border); }
.pmock .m-tr { border-top: 1px solid var(--pm-border-soft); font-size: 10.5px; color: var(--pm-text); transition: background .5s; }
.pmock .m-tr:first-of-type { border-top: 0; }
.pmock .m-tr .ch { display: inline-flex; align-items: center; gap: 6px; font-weight: 620; }
.pmock .m-tr .cd { width: 6px; height: 6px; border-radius: 999px; flex: none; }
.pmock .m-tr .r, .pmock .m-th .r { text-align: right; }
.pmock .m-tr .roas { font-weight: 680; }
.pmock .band { position: relative; height: 5px; border-radius: 999px; }
.pmock .band.g { background: rgba(5,150,105,.35); }
.pmock .band.r2 { background: rgba(225,29,72,.35); }
.pmock .band i { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--pm-text); border-radius: 1px; }

/* state machine: data-state = called | planned | flying | verified */
/* The impact hide needs the extra specificity: `.pmock .m-impact b` sets
   display:block at (0,2,1), which would beat a bare `.pmock [data-on]`. */
.pmock [data-on], .pmock .m-impact [data-on] { display: none; }
.pmock[data-state="called"] [data-on~="called"],
.pmock[data-state="planned"] [data-on~="planned"],
.pmock[data-state="flying"] [data-on~="flying"],
.pmock[data-state="verified"] [data-on~="verified"] { display: inline-flex; animation: pm-pop .4s cubic-bezier(.34,1.4,.64,1); }
.pmock[data-state="called"] .m-impact [data-on~="called"],
.pmock[data-state="planned"] .m-impact [data-on~="planned"],
.pmock[data-state="flying"] .m-impact [data-on~="flying"],
.pmock[data-state="verified"] .m-impact [data-on~="verified"] { display: block; }
@keyframes pm-pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
.pmock[data-state="verified"] .m-impact b { color: var(--pm-good-text); }
.pmock[data-state="verified"] .m-card { border-color: rgba(5,150,105,.4); }

/* the evidence payoff (beat 5 / settled variants) */
.pmock .m-tr.hot .up-chip { display: none; margin-left: 4px; font-size: 8.5px; font-weight: 700; color: var(--pm-good-text); }
.pmock .rev-delta { display: none; margin-left: 5px; font-size: 8.5px; font-weight: 700; color: var(--pm-good-text); }
.pmock.evid .m-tr.hot { background: var(--pm-good-weak); }
.pmock.evid .m-tr.hot .up-chip { display: inline; animation: pm-pop .45s cubic-bezier(.34,1.4,.64,1); }
.pmock.evid .rev-delta { display: inline-block; animation: pm-pop .45s cubic-bezier(.34,1.4,.64,1); }

/* tour overlay: dim + spotlight + callout + cursor */
.pmock .spot-dim { position: absolute; inset: 0; background: rgba(15,23,42,.32); opacity: 0; transition: opacity .5s; z-index: 4; pointer-events: none; }
.pmock.touring .spot-dim { opacity: 1; }
.pmock .spotlit { position: relative; z-index: 6;
  box-shadow: 0 0 0 2.5px var(--pm-accent), 0 0 0 8px rgba(79,70,229,.22), var(--pm-lift) !important;
  border-radius: 10px; transition: box-shadow .4s; }
.pmock .callout { position: absolute; z-index: 8; width: 252px; background: var(--pm-surface); border: 1px solid var(--pm-border);
  border-radius: 10px; padding: 10px 12px; font-size: 11.5px; line-height: 1.5; color: var(--pm-muted);
  box-shadow: var(--pm-lift); opacity: 0; transform: translateY(6px);
  transition: top .55s cubic-bezier(.4,0,.2,1), left .55s cubic-bezier(.4,0,.2,1), opacity .35s, transform .35s; pointer-events: none; }
.pmock .callout.on { opacity: 1; transform: translateY(0); }
.pmock .callout b { color: var(--pm-text); }
.pmock .callout .k { display: inline-grid; place-items: center; min-width: 16px; height: 16px; border-radius: 999px;
  background: var(--pm-accent); color: #fff; font-size: 9.5px; font-weight: 700; margin-right: 5px; transform: translateY(2px); }
.pmock .cursorp { position: absolute; left: 0; top: 0; z-index: 9; width: 20px; height: 20px; opacity: 0;
  transition: transform .85s cubic-bezier(.45,0,.25,1), opacity .3s; will-change: transform; pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.pmock .cursorp.show { opacity: 1; }
.pmock .cursorp .ring { position: absolute; inset: -7px; border-radius: 999px; border: 2px solid var(--pm-accent); opacity: 0; }
.pmock .cursorp.click .ring { animation: pm-ripple .55s ease-out; }
@keyframes pm-ripple { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.5); } }

/* scrubber — the loop's transport */
.pmock-scrub { display: flex; align-items: flex-start; gap: 12px; padding: 14px 4px 0; }
.pmock-scrub .playb { flex: none; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--pm-border);
  background: var(--pm-surface); color: var(--pm-accent-text); font-size: 12px; cursor: pointer; display: grid; place-items: center; }
.pmock-scrub .playb:hover { border-color: var(--pm-accent); }
.pmock-scrub .playb:focus-visible { outline: 2px solid var(--pm-accent); outline-offset: 2px; }
.pmock-scrub .scrub-body { flex: 1; min-width: 0; }
.pmock-scrub input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 5px;
  border-radius: 999px; background: var(--pm-border); outline: none; cursor: pointer; margin: 13px 0 0; }
.pmock-scrub input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 999px;
  background: var(--pm-accent); border: 2.5px solid var(--pm-surface); box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: grab; }
.pmock-scrub input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 999px; background: var(--pm-accent);
  border: 2.5px solid var(--pm-surface); box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: grab; }
.pmock-scrub input[type="range"]:focus-visible { outline: 2px solid var(--pm-accent); outline-offset: 3px; }
.pmock-scrub .ticks { display: flex; justify-content: space-between; margin-top: 7px; }
.pmock-scrub .ticks span { font-size: 10.5px; font-weight: 620; color: var(--pm-faint); cursor: pointer; }
.pmock-scrub .ticks span:hover { color: var(--pm-muted); }
.pmock-scrub .ticks span.on { color: var(--pm-accent-text); }

@media (prefers-reduced-motion: reduce) {
  .pmock *, .pmock { transition: none !important; animation: none !important; }
}
