/* Product pages (indicators.html, experts.html in fa / en / hi): animated chart demo, comparison table,
   product cards, trust strip, sticky buy bar on phones. Builds on site.css tokens. */
.pp .hero .wrap { align-items: center; }
.pp .hero h1 { margin-bottom: var(--s-4); }
.pp .value { font-size: var(--step-2); font-weight: 800; color: var(--fg); margin: 0 0 var(--s-3); line-height: 1.5; }
.pp .value b { color: var(--green); }

/* ── chart demo: a schematic of the rules, drawn step by step (not a result) ── */
.demo { margin: 0; justify-self: center; width: 100%; max-width: 480px; position: relative; }
.demo::before { content: ""; position: absolute; inset: 6% 2% -4%; background: radial-gradient(closest-side, rgba(57, 255, 136, .2), transparent); filter: blur(12px); z-index: -1; }
.demo .window { border: 1px solid var(--line-bright); border-radius: 14px; overflow: hidden; background: rgba(2, 12, 7, .82); box-shadow: var(--shadow); }
.demo .window-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--border); font: .72rem var(--font-mono); color: var(--muted); direction: ltr; }
.demo .window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #1d3a2a; }
.demo .window-bar span { margin-inline-start: auto; }
.demo svg { display: block; width: 100%; height: auto; }
.demo figcaption { margin-top: var(--s-3); color: var(--muted); font-size: var(--step--2); text-align: center; }
.demo .grid line { stroke: rgba(57, 255, 136, .07); }
.demo .price { fill: none; stroke: #8fbfa0; stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 0; }
.demo .zone { fill: rgba(57, 255, 136, .12); stroke: var(--green); stroke-width: 1.6; }
.demo .mid { stroke: var(--green); stroke-dasharray: 5 4; }
.demo .tag2x { fill: var(--cyan); font: 11px var(--font-mono); }
.demo .touch { fill: none; stroke: var(--gold-hi); stroke-width: 2; }
.demo .engulf { fill: var(--green); }
.demo .arrow { fill: var(--green); }
.demo .sl { stroke: var(--red); stroke-dasharray: 6 4; }
.demo .tp { stroke: var(--cyan); stroke-dasharray: 6 4; }
.demo .lbl { font: 10px var(--font-mono); }
.demo .status { font: 600 11px var(--font-mono); }
.demo .st-wait { fill: var(--gold-hi); }
.demo .st-go { fill: var(--green); }
/* the animation (one 9 s loop); the end state is what shows without motion */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-fx="off"]) .demo .price { animation: d-draw 9s linear infinite; }
  html:not([data-fx="off"]) .demo .zone, html:not([data-fx="off"]) .demo .mid, html:not([data-fx="off"]) .demo .tag2x { animation: d-zone 9s ease infinite; }
  html:not([data-fx="off"]) .demo .touch { animation: d-touch 9s ease infinite; transform-box: fill-box; transform-origin: center; }
  html:not([data-fx="off"]) .demo .st-wait { animation: d-wait 9s steps(1) infinite; }
  html:not([data-fx="off"]) .demo .engulf, html:not([data-fx="off"]) .demo .arrow, html:not([data-fx="off"]) .demo .st-go,
  html:not([data-fx="off"]) .demo .sl, html:not([data-fx="off"]) .demo .tp, html:not([data-fx="off"]) .demo .order { animation: d-go 9s ease infinite; }
  html:not([data-fx="off"]) .demo .arrow { transform-box: fill-box; transform-origin: center; }
}
@keyframes d-draw { 0% { stroke-dashoffset: 900; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes d-zone { 0%, 22% { opacity: 0; } 30%, 100% { opacity: 1; } }
@keyframes d-touch { 0%, 44% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.4); } 56%, 100% { opacity: 1; transform: scale(1); } }
@keyframes d-wait { 0% { opacity: 0; } 46% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes d-go { 0%, 60% { opacity: 0; } 68%, 100% { opacity: 1; } }

/* ── trust strip ── */
.pp .trust ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── features: three columns ── */
.pp .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp .steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── setup link (the EQ course) ── */
.eq-course { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: center; padding: 20px 22px; margin-top: var(--s-6); }
.eq-course svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(57, 255, 136, .08); border: 1px solid var(--border); stroke: var(--green); fill: none; stroke-width: 1.8; }
.eq-course p { color: var(--muted); font-size: var(--step--1); margin: 4px 0 0; }

/* ── comparison table ── */
.cmp-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
.cmp { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: var(--step--1); }
.cmp th, .cmp td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--border); }
.cmp thead th { color: var(--fg); font-size: var(--step-0); background: rgba(57, 255, 136, .05); }
.cmp thead th.me { color: var(--green); }
.cmp tbody th { color: var(--muted); font-weight: 600; width: 22%; }
.cmp td.me { background: rgba(57, 255, 136, .045); color: var(--fg); }
.cmp td { color: var(--muted); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: var(--s-5); }
.pick article { padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.pick h3 { font-size: var(--step-1); }
.pick p { color: var(--muted); font-size: var(--step--1); margin: 0; }
.pick a { font-weight: 700; }

/* ── pricing: room for five plans; the lifetime plan stands out in gold ── */
.pp .plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.plan.life { border-color: var(--gold); box-shadow: 0 0 34px rgba(230, 190, 80, .16); }
.plan .badge.life, .pp .badge.life { background: var(--gold); color: #1a1202; }
.plan.life .price { color: var(--gold-hi); text-shadow: 0 0 18px rgba(230, 190, 80, .35); }
.pp .plan .save { font-weight: 700; }

/* ── catalog of automated EAs ── */
.catalog { display: grid; gap: 20px; }
.product-card { padding: clamp(18px, 3vw, 28px); display: grid; gap: 12px; min-width: 0; }
.product-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.product-head h3 { font-size: var(--step-2); }
.pill.warn { color: var(--gold-hi); }
.product-card > p { color: var(--muted); margin: 0; line-height: 1.85; }

/* ── honest risk notice ── */
.risk-box { padding: 18px 20px; border: 1px solid rgba(255, 95, 109, .45); border-radius: var(--radius-lg); background: rgba(255, 95, 109, .06); }
.risk-box h2, .risk-box h3 { font-size: var(--step-1); color: #ffb3ba; margin: 0 0 6px; }
.risk-box p, .risk-box li { color: var(--muted); font-size: var(--step--1); line-height: 1.85; }
.risk-box ul { margin: 6px 0 0; padding-inline-start: 1.2em; }

/* ── install steps ── */
.inst { padding: 18px 20px; }
.inst ol { display: grid; gap: 10px; padding-inline-start: 1.4em; margin: 0; }
.inst li, .pp .note { overflow-wrap: anywhere; }
.inputs { width: 100%; border-collapse: collapse; margin-top: 8px; }
.inputs td { padding: 7px 10px; border-bottom: 1px solid rgba(57, 255, 136, .12); font-size: var(--step--1); }
.inputs td:first-child { font-family: var(--font-mono); direction: ltr; text-align: start; color: var(--fg); }
.inputs-box { margin-top: 14px; padding: 12px 16px; }
.inputs-box summary { cursor: pointer; font-weight: 600; }

/* ── sticky buy bar on phones ── */
.sticky-buy { display: none; }
@media (max-width: 760px) {
  .sticky-buy { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 35; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(2, 9, 5, .94); border-top: 1px solid var(--line-bright);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .25s; }
  .sticky-buy.away { transform: translateY(110%); }
  .sticky-buy span { color: var(--muted); font-size: var(--step--1); min-width: 0; }
  .sticky-buy span b { color: var(--green); font-family: var(--font-mono); font-weight: 400; }
  .sticky-buy .btn { flex: none; }
  body.has-sticky .site-foot { padding-bottom: 72px; }
  body.has-sticky .oracle { bottom: 84px; }
}

@media (max-width: 1060px) {
  .pp .features, .pick, .pp .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .pp .features, .pick, .pp .steps.four, .pp .trust ul { grid-template-columns: 1fr; }
  .eq-course { grid-template-columns: auto 1fr; }
  .eq-course .btn { grid-column: 1 / -1; }
}
/* the waiting status only shows mid-animation; without motion the end state (confirmed) is what you see */
.demo .st-wait { opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.catalog { margin-top: 18px; }
/* outcome-only mock-up of the alerts (replaces the old chart schematic) */
.mock-alerts { list-style: none; margin: 0; padding: 14px; display: grid; gap: 10px; direction: ltr; }
.mock-alerts li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: rgba(57, 255, 136, .04); font: 12px var(--font-mono); }
.mock-alerts b { font-weight: 400; font-size: 13px; }
.mock-alerts span { color: var(--muted); }
.mock-alerts .buy b { color: var(--green); } .mock-alerts .sell b { color: var(--red); } .mock-alerts .wait b { color: var(--gold-hi); }

/* EQUAL EA backtest block (experts pages) */
.pp .features.bt-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; }
.bt-stat { text-align: center; justify-items: center; }
.bt-stat .bt-num { font-family: "Share Tech Mono", ui-monospace, monospace; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.1; color: var(--green); text-shadow: 0 0 14px rgba(57, 255, 136, .35); }
.bt-table { margin-bottom: 14px; }
.bt-table caption { caption-side: top; text-align: start; padding: 12px 14px 4px; color: var(--muted); font-size: var(--step--1); }
.bt-table tbody th { color: var(--green); font-weight: 800; }
@media (max-width: 860px) { .pp .features.bt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bt-table .cmp { min-width: 0; }
.bt-sub { margin-top: 34px; }
.bt-sub h3 { font-size: var(--step-1, 1.25rem); margin: 4px 0 6px; }
