/* Velotrak website — Order Flow Footprint product page and panel replica. Copied verbatim from the approved mockup (velotrak_page_footprint.html); values come from
   velotrak_web_bible_v0_1.html. Don't edit values here without updating the bible. */
/* ==========================================================================
   Product page: TWJ OrderFlow Footprint (page-specific rules, all on bible tokens)
   ========================================================================== */

/* Hero */
.pp-hero{ padding:56px 0 28px; display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:48px; align-items:start; }
.pp-hero .copy{ display:grid; gap:18px; }
.crumb{ font-size:13px; color:var(--text-low); }
.crumb a{ color:var(--text-low); } .crumb a:hover{ color:var(--text-hi); }
.buybox{ padding:22px; display:grid; gap:16px; }
.buybox .price{ display:flex; align-items:baseline; gap:6px; }
.buybox .per{ font-size:13px; color:var(--text-low); }
.buybox .facts{ display:grid; gap:8px; padding-top:14px; border-top:1px solid var(--line); font-size:13px; color:var(--text-mid); }
.buybox .facts div{ display:flex; justify-content:space-between; gap:12px; }
.buybox .facts span:first-child{ color:var(--text-low); }
.buybox .owned{ display:flex; align-items:center; gap:8px; font-size:14px; color:var(--text-mid); }
.buybox .act{ display:grid; gap:10px; }
.buybox .act.swap{ animation: swapIn var(--t-med) var(--ease-out) both; }
@media (max-width:900px){ .pp-hero{ grid-template-columns:1fr; gap:28px; padding-top:40px; } .buybox{ max-width:420px; } }

/* Chart figures: always dark, they are pictures of NinjaTrader */
.chartart{ border-radius:14px; overflow:hidden; background:#1e1f22; box-shadow:var(--shadow-panel); }
.chartart svg{ width:100%; height:auto; display:block; }
figure{ margin:0; }
figcaption{ font-size:13px; line-height:1.45; color:var(--text-low); margin-top:10px; max-width:72ch; }
.fig-wide{ margin:28px 0 8px; }
.fig-pair{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:20px 0 8px; max-width:760px; }
@media (max-width:760px){ .fig-pair{ grid-template-columns:1fr; } }

/* Intro */
.pp-intro{ padding:64px 0 24px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:48px; align-items:center; }
.pp-intro ul{ margin:14px 0; padding-left:20px; color:var(--text-mid); }
.pp-intro li{ margin:6px 0; }
.pp-intro strong{ color:var(--text-hi); }
@media (max-width:900px){ .pp-intro{ grid-template-columns:1fr; } }

/* In-page tabs: the add-on's tab track, sticky under the site header */
.pp-tabbar{ position:sticky; top:var(--nav-h); z-index:20; background:var(--page); padding:14px 0; margin-top:24px; box-shadow:0 1px 0 var(--line); }
.pp-tabbar .scroller{ overflow-x:auto; scrollbar-width:none; }
.pp-tabbar .scroller::-webkit-scrollbar{ display:none; }
.track{ display:inline-flex; gap:4px; padding:4px; background:var(--channel); box-shadow:var(--sunken); border-radius:var(--r-ctrl); }
.track button{ position:relative; border:none; cursor:pointer; padding:8px 18px 10px; border-radius:var(--r-tab); background:transparent;
  font-family:var(--font); font-size:13px; font-weight:400; color:var(--text-low); white-space:nowrap; transition: color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast); }
.track button:hover:not(.on){ color:var(--text-mid); }
.track button.on{ color:var(--text-hi); background:var(--btn-sec); box-shadow:var(--shadow-ctrl), var(--hl-sec); }
.track button.on::after{ content:""; position:absolute; left:50%; bottom:4px; width:18px; height:2px; margin-left:-9px; border-radius:2px; background:var(--accent); }
@media (max-width:760px){ .pp-tabbar{ top:56px; } }

.pp-pane{ padding:48px 0 24px; }
.pp-pane[hidden]{ display:none; }
.pp-pane > h2{ margin-bottom:12px; }
.feat{ padding:28px 0; border-bottom:1px solid var(--line); }
.feat:last-child{ border-bottom:none; }
.feat h3{ margin-bottom:8px; }
.feat p{ margin:0 0 10px; max-width:72ch; }
.feat ul{ max-width:72ch; padding-left:20px; margin:8px 0; }
.feat li{ margin:6px 0; }
.feat strong, .pp-pane strong{ color:var(--text-hi); }

/* Tables */
.tbl-wrap{ overflow-x:auto; margin:16px 0; border-radius:var(--r-ctrl); }
table.tbl{ width:100%; border-collapse:collapse; font-size:14px; }
table.tbl th, table.tbl td{ text-align:left; padding:11px 14px; border-bottom:1px solid var(--line); vertical-align:top; }
table.tbl th{ font-size:12px; font-weight:600; color:var(--text-low); }
table.tbl td{ color:var(--text-mid); }
table.tbl td.k{ color:var(--text-hi); font-weight:600; white-space:nowrap; }
table.tbl td.grp{ color:var(--text-hi); font-weight:600; background:var(--raised); white-space:nowrap; }
table.tbl tr:last-child td{ border-bottom:none; }
.tbl-panel{ padding:6px 8px; }
.arr{ display:inline-block; width:0; height:0; border-left:6px solid transparent; border-right:6px solid transparent; margin-right:8px; vertical-align:1px; }
.arr.up{ border-bottom:9px solid #32cd32; } .arr.dn{ border-top:9px solid #ff0000; }

.callouts{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px; margin:20px 0; }
.callouts .panel{ padding:18px 20px; }
.callouts h4{ margin:0 0 6px; font-size:15px; font-weight:600; color:var(--text-hi); }
.callouts p{ margin:0; font-size:14px; line-height:1.55; }

/* Panel tab: panel + info card */
.panel-stage{ display:flex; gap:12px; align-items:flex-start; flex-wrap:wrap; margin:24px 0 8px; padding:28px; border-radius:var(--r-panel); background:#1e1f22; box-shadow:var(--shadow-panel); }
.panel-stage .hint{ flex-basis:100%; font-size:12px; color:#a3aab5; margin:0 0 4px; }

/* Hero walkthrough */
@keyframes xfIn{ from{ opacity:0; } } @keyframes xfOut{ to{ opacity:0; } }
.xf-in{ animation:xfIn 300ms var(--ease-std) both; } .xf-out{ animation:xfOut 300ms var(--ease-std) both; }
.demo-bar{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:12px; }
.demo-bar .step{ font-size:14px; font-weight:600; color:var(--text-hi); min-height:20px; }
/* The walkthrough cursor is drawn in the chart's SVG (not as HTML in the foreignObject), so it scales
   with the chart on phones; mobile WebKit doesn't scale positioned HTML inside a foreignObject. */
.demo-cursor{ pointer-events:none; opacity:0; transition: transform 650ms var(--ease-std), opacity 200ms; }
.demo-cursor.show{ opacity:1; }
.demo-cursor .ring{ opacity:0; transform-box:fill-box; transform-origin:center; }
.demo-cursor.click .ring{ animation:ring 420ms var(--ease-out); }
@keyframes ring{ from{ opacity:.9; transform:scale(.3); } to{ opacity:0; transform:scale(1.4); } }
#heroPanel .ofp-tg.hover .trk, #heroPanel .hover{ box-shadow:0 0 0 2px rgba(255,106,26,.45); }
#heroPanel .ofp{ transition: transform 200ms var(--ease-out); }

/* FAQ */
.faq{ max-width:72ch; }
.faq details{ border-bottom:1px solid var(--line); }
.faq summary{ list-style:none; cursor:pointer; padding:18px 36px 18px 0; position:relative; font-size:16px; font-weight:600; color:var(--text-hi); }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:""; position:absolute; right:6px; top:50%; width:9px; height:9px; margin-top:-7px; border-right:2px solid var(--text-low); border-bottom:2px solid var(--text-low); transform:rotate(45deg); transition:transform var(--t-med) var(--ease-out); }
.faq details[open] summary::after{ transform:rotate(-135deg); margin-top:-2px; }
.faq summary:hover::after{ border-color:var(--accent); }
.faq details p{ margin:0 0 18px; }



/* ==========================================================================
   Order Flow Footprint panel replica (the NinjaTrader Chart Info panel, v1.2 tokens, always dark)
   ========================================================================== */
.ofp{ width:300px; flex:none; background:var(--panel); border-radius:16px; box-shadow:var(--shadow-panel), var(--hl-panel); font-family:var(--font); color:var(--text-mid); padding:0 16px 6px; text-align:left; line-height:1.3; }
.ofp-head{ height:46px; position:relative; }
.ofp-head .title{ position:absolute; left:0; top:10px; font-size:15px; font-weight:600; color:var(--text-hi); }
.ofp-head .ul{ position:absolute; left:0; top:35px; width:18px; height:2px; border-radius:1px; background:var(--accent); }
.ofp-head .col{ position:absolute; right:0; top:11px; width:24px; height:24px; border-radius:50%; background:var(--btn-sec); display:grid; place-items:center; color:var(--text-mid); font-size:14px; font-weight:600; line-height:1; }
.ofp-track{ display:flex; gap:4px; padding:4px; margin:0 -4px; background:var(--channel); box-shadow:var(--sunken); border-radius:10px; }
.ofp-track button{ flex:1; position:relative; height:32px; border:none; border-radius:7px; background:transparent; cursor:pointer; font-family:var(--font); font-size:13px; color:var(--text-low); padding:0 0 4px; }
.ofp-track button.on{ color:var(--text-hi); background:var(--btn-sec); box-shadow:0 1.5px 0 rgba(0,0,0,.4), var(--hl-sec); }
.ofp-track button.on::after{ content:""; position:absolute; left:50%; bottom:4px; width:18px; height:2px; margin-left:-9px; border-radius:1px; background:var(--accent); }
.ofp-body{ padding-top:10px; }
.ofp-lbl{ height:26px; display:flex; align-items:center; justify-content:space-between; font-size:12px; font-weight:600; color:var(--text-low); }
.ofp-lbl .right{ font-weight:400; }
.ofp-i{ width:16px; height:16px; border-radius:50%; box-shadow:inset 0 0 0 1.3px var(--text-low); color:var(--text-low); font-size:11px; font-weight:700; display:grid; place-items:center; cursor:pointer; flex:none; border:none; background:transparent; padding:0; font-family:var(--font); }
.ofp-i:hover, .ofp-i.lit{ box-shadow:inset 0 0 0 1.3px var(--accent); color:var(--accent); }
.ofp-row{ background:var(--raised); border-radius:10px; margin:0 -4px 10px; padding:6px 8px; }
.ofp-tg{ height:30px; display:flex; align-items:center; gap:10px; font-size:13px; color:var(--text-mid); cursor:pointer; user-select:none; }
.ofp-tg.on{ color:var(--text-hi); }
.ofp-tg .trk{ width:40px; height:22px; border-radius:11px; flex:none; position:relative; background:var(--channel); box-shadow:var(--sunken), var(--sunken-edge); transition:background var(--t-fast); }
.ofp-tg .trk::after{ content:""; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:var(--text-mid); box-shadow:0 2px 3px rgba(0,0,0,.4); transition:left var(--t-fast), background var(--t-fast); }
.ofp-tg.on .trk{ background:linear-gradient(180deg,#e85a0e,#ff6a1a); box-shadow:inset 0 2px 3px rgba(0,0,0,.3); }
.ofp-tg.on .trk::after{ left:21px; background:#fff; }
.ofp-line{ display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:34px; font-size:13px; color:var(--text-mid); }
.ofp-step{ display:flex; align-items:center; gap:2px; }
.ofp-step button{ width:24px; height:24px; border-radius:50%; border:none; padding:0; cursor:pointer; background:var(--btn-sec); box-shadow:0 1.5px 0 rgba(0,0,0,.4); color:var(--text-hi); font-size:14px; font-weight:600; line-height:1; font-family:var(--font); }
.ofp-step button[disabled]{ color:var(--text-low); cursor:default; }
.ofp-step .v{ min-width:40px; text-align:center; font-size:13px; font-weight:600; color:var(--text-hi); font-variant-numeric:tabular-nums; }
.ofp-step .v.acc{ color:var(--accent); }
.ofp-pre{ display:flex; gap:4px; padding:4px; background:var(--channel); box-shadow:var(--sunken); border-radius:9px; }
.ofp-pre button{ width:34px; height:26px; border:none; border-radius:6px; background:transparent; cursor:pointer; font-family:var(--font); font-size:13px; font-weight:600; color:var(--text-low); }
.ofp-pre button.on{ background:var(--btn-sec); box-shadow:0 1.5px 0 rgba(0,0,0,.4), var(--hl-sec); color:var(--accent); }
.ofp-ticks{ display:flex; align-items:center; gap:8px; height:34px; }
.ofp-ticks .v{ min-width:26px; }
.ofp-ticks .ofp-pre button{ width:30px; }
.ofp-ticks .cust{ font-size:12px; color:var(--text-low); margin-left:auto; }
.ofp-ticks .cust.acc{ color:var(--text-mid); }
.ofp-status{ display:flex; justify-content:space-between; align-items:center; height:30px; font-size:13px; color:var(--text-mid); }
.ofp-status b{ font-weight:400; font-size:12px; color:var(--text-hi); }
.ofp-status b.off{ color:var(--text-low); }
.ofp-item{ display:flex; align-items:center; gap:10px; height:22px; font-size:13px; color:var(--text-mid); padding-left:2px; }
.ofp-item .chip{ width:19px; height:10px; border-radius:3px; flex:none; background:none; box-shadow:none; padding:0; }
.ofp-item .d{ margin-left:auto; font-size:12px; color:var(--text-low); }
.ofp-foot{ display:flex; justify-content:space-between; align-items:center; height:30px; border-top:1px solid rgba(255,255,255,.04); margin:0 -4px; padding:0 4px; font-size:13px; color:var(--text-mid); }
.ofp-foot a{ font-size:12px; color:var(--accent); }
.ofp-card{ width:300px; flex:none; background:var(--panel); border-radius:12px; box-shadow:var(--shadow-panel), var(--hl-panel); padding:14px; font-family:var(--font); line-height:1.3; text-align:left; }
.ofp-card .t{ font-size:15px; font-weight:600; color:var(--text-hi); margin-bottom:12px; }
.ofp-card .h{ font-size:13px; font-weight:600; color:var(--accent); margin-bottom:6px; }
.ofp-card .rep{ display:flex; gap:20px; margin-bottom:6px; }
.ofp-card .rep .ofp-tg{ cursor:default; }
.ofp-card .b{ font-size:12px; line-height:17px; color:var(--text-mid); }
.ofp-card .b p{ margin:0 0 6px; }
.ofp-card .div{ height:1px; background:rgba(163,170,181,.3); margin:12px 0; }

/* Build addition (L1): release notes under the owner's Download button */
.buybox .notes{ margin-top:12px; display:grid; gap:4px; }
