/* Site L: indicator components drawn in site A's workstation look (tokens from site.css).
 * Ported from site K: stat card, anatomy overlay, market switcher, alert example, billing toggle.
 * Drawn for L: the four-market panel illustration (from the indicator's revision 23 source). */

/* Header links keep a 44 px target on every width. */
.site-nav a { min-height: 44px; display: flex; align-items: center; }
.site-footer li a { display: inline-block; padding: 2px 0; }
.site-footer nav { min-width: 0; }

/* One risk line under the buy buttons (owner direction 087). */
.risk-line { font-size: .8rem; line-height: 1.55; color: var(--muted); margin: 14px 0 0; max-width: 52ch; }
.hero-copy .risk-line { margin-top: 16px; }
.accent { color: #7de7ef; }

/* Progressive controls: hidden until site.js marks the page as scripted. */
.controls { display: none; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.js .controls { display: flex; }
.controls button { font: inherit; font-size: .86rem; min-height: 44px; padding: 8px 13px; color: var(--ink); background: transparent; border: 1px solid #52677d; border-radius: var(--radius); cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.controls button:hover { border-color: #7de7ef; }
.controls button[aria-pressed="true"] { background: #7de7ef; border-color: #7de7ef; color: #080f1c; }
figure.stage + .controls { margin-top: 14px; }
.state-copy { font-size: .92rem; color: #c8d6e5; min-height: 3.2em; margin: 0; max-width: 60ch; }

/* Markets not included (K). */
.excluded { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; font-size: .85rem; }
.ex-label { font: .72rem/1.6 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.ex { border: 1px dashed #4a5d72; border-radius: 4px; padding: 5px 12px; color: #a3b2c4; text-decoration: line-through; text-decoration-color: #ffaea6aa; }

/* Chart captures inside A's stage frame. */
.chart-stage { overflow: hidden; margin: 0 0 clamp(24px, 3vw, 40px); }
.chart-stage img { display: block; width: 100%; height: auto; }
.frame-top { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #354960; font: .72rem/1.6 var(--font-mono); color: #c3d1e1; letter-spacing: .04em; }
.frame-top span:first-child { color: #7de7ef; }
.chart-stage figcaption { padding: 14px 20px 16px; border-top: 1px solid #354960; font-size: .8rem; }
.chart-stage figcaption strong { display: block; font-weight: 500; color: #dcebf7; }
.chart-stage figcaption span { display: block; margin-top: 4px; }
.chart-stage figcaption a { display: inline-flex; align-items: center; min-height: 44px; color: #7de7ef; font-family: var(--font-body); font-size: .86rem; }
.chart { position: relative; overflow: hidden; }
.anatomy-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.anatomy-overlay rect, .anatomy-overlay path { stroke: #7de7ef; stroke-width: 1.5; vector-effect: non-scaling-stroke; fill: none; }
.js .anatomy-overlay g { opacity: 0; transition: opacity .25s; }
.js .anatomy-overlay g.selected { opacity: 1; }

/* Read one signal (K anatomy). */
.anatomy-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 980px) { .anatomy-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; } }
.step-notes article { padding: 18px 0; border-bottom: 1px solid var(--line); }
.step-notes h3 { font-size: 1.15rem; margin: 0 0 8px; }
.step-notes p { margin: 0; color: #bdcada; font-size: .95rem; }
.step-notes .selected h3 { color: #7de7ef; }
.js .step-notes article:not(.selected) { display: none; }
.js .step-notes { min-height: 200px; }
.tag-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 12px; }
.tag-pair p { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-size: .86rem; }
.tag-pair b { display: block; color: var(--ink); font-family: var(--font-mono); }
.anatomy-layout .chart-stage { margin: 0; }

/* Market switcher (K). */
.market-charts { max-width: 1120px; }
.js .market-chart { display: none; }
.js .market-chart.selected { display: block; }

/* Four-market panel illustration (revision 23 layout and state colours). */
.panel-figure { margin: 0; }
.tv-panel { width: 100%; background: #07090d; border: 1px solid #22344a; border-radius: 6px; overflow: hidden; font: .8rem/1.5 var(--font-mono); color: #e6edf5; text-align: left; }
.tvp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 12px 2px; background: #0b1118; }
.tvp-brand { color: #b8ff3c; font-weight: 600; letter-spacing: .02em; }
.tvp-sub { display: block; padding: 0 12px 8px; background: #0b1118; color: #8796ab; font-size: .68rem; letter-spacing: .04em; }
.tvp-head .tvp-sub { padding: 0; background: none; }
.tvp-cols, .tvp-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.55fr) minmax(0, 1fr); gap: 4px 10px; padding: 6px 12px; align-items: baseline; }
.tvp-cols { color: #8796ab; font-size: .66rem; letter-spacing: .04em; padding-top: 8px; }
.tvp-name b { font-weight: 600; }
.tvp-name small, .tvp-state small { color: #8796ab; font-size: .7rem; }
.tvp-state small { display: block; padding-left: 1.3em; }
.tvp-row.host { background: #0e1a16; }
.tvp-row.host .tvp-name b { color: #b8ff3c; }
.tvp-bar { color: #7a8ba0; white-space: nowrap; overflow: hidden; letter-spacing: -.02em; }
.tvp-bar.bar-up { color: #39ff88; }
.tvp-foot { padding: 7px 12px 9px; background: #0b1118; color: #8796ab; font-size: .64rem; letter-spacing: .03em; }
.s-scan { color: #3ce6ff; }
.s-prep { color: #ffc457; }
.s-ready { color: #b8ff3c; }
.s-long { color: #39ff88; }
.s-short { color: #ff6d86; }
.s-dim { color: #9aa8bb; }
.tv-panel.compact .tvp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); padding: 5px 12px; }
.tv-panel.compact .tvp-head { padding-bottom: 7px; }
.tv-panel.compact .tvp-row:last-child { padding-bottom: 9px; }
.hero-stage .panel-figure { padding: 0 20px 20px; display: grid; gap: 10px; }
.hero-stage .tv-panel { box-shadow: 0 8px 25px #0003; }
.hero-stage .tvp-row { transition: background-color .35s ease; }
.state-stage { padding: clamp(16px, 2.4vw, 28px); }
.state-stage .tv-panel { max-width: 520px; }
.panel-grid { align-items: start; }
.state-flow { list-style: none; padding: 0; margin: 0 0 8px; border-bottom: 1px solid var(--line); }
.state-flow li { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); color: #bdcada; }
.state-flow span { font: .82rem var(--font-mono); margin-right: 6px; }
.state-table .tvp-state { font-size: .82rem; white-space: nowrap; }
.state-table .tvp-state small { display: inline; padding-left: .4em; }
.state-table td:first-child { width: 34%; }
@media (max-width: 639px) { .state-table .tvp-state { white-space: normal; } .state-table td:first-child { width: auto; } }

/* Alert example (K, redrawn as text with the current message format). */
.alert-stage { padding: clamp(18px, 3vw, 32px); display: grid; gap: 12px; background: radial-gradient(ellipse at 50% 0, #1b3a52aa, transparent 70%), var(--stage); }
.alert-card { border: 1px solid #44607a; border-radius: 14px; background: #152538; padding: 14px 16px 16px; max-width: 440px; box-shadow: 0 16px 40px #0005; }
.alert-app { display: flex; justify-content: space-between; margin: 0 0 8px; font: .72rem var(--font-mono); color: #b8c7d8; letter-spacing: .04em; }
.alert-text { margin: 0; font: .86rem/1.65 var(--font-mono); color: #edf4fc; overflow-wrap: anywhere; }
.alert-text span { border-radius: 3px; transition: background-color .2s, color .2s; }
.js .alert-text span.selected { background: #7de7ef; color: #080f1c; }
.alerts-grid { align-items: start; }

/* Stat card (K's B08 card). Static: figures never animate. */
.research-strip { border: 1px solid #426078; border-radius: 12px; background: linear-gradient(135deg, #142338, #0d1828); padding: clamp(20px, 2.6vw, 30px) clamp(16px, 2.8vw, 34px); color: #c3d1e1; font-size: .86rem; line-height: 1.6; max-width: 1100px; }
.stat-head strong { display: block; font: 500 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.research-strip p { margin: 12px 0 0; }
.research-strip .research-label { color: #7de7ef; font-weight: 600; font-size: .9rem; }
.research-strip .stat-line { font-size: 1.02rem; color: var(--ink); }
.research-strip .stat-fine { color: #b8c7d8; font-size: .8rem; }
.stat-viz { margin: 20px 0 6px; }
.dots { display: grid; grid-template-columns: repeat(10, 20px); gap: 9px; }
.dots i { display: block; width: 20px; height: 20px; border-radius: 50%; }
.dots .w { background: #7de7ef; }
.dots .l { border: 2px solid #ffaea6; }
.market-rates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; max-width: 720px; }
.market-rates div { border: 1px solid #426078; border-radius: 8px; background: #101c2c; padding: 14px 16px; }
.market-rates strong { display: block; font: 500 1.9rem/1.1 var(--font-display); letter-spacing: -.03em; color: #7de7ef; }
.market-rates span { display: block; margin-top: 6px; font: .76rem/1.4 var(--font-mono); color: var(--muted); }
.rates-note { font-size: .82rem; color: var(--muted); }
.results-links { margin-top: 32px; }
@media (max-width: 639px) {
  .dots { grid-template-columns: repeat(10, 18px); gap: 7px; }
  .dots i { width: 18px; height: 18px; }
  .market-rates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-rates strong { font-size: 1.6rem; }
  .research-strip { font-size: .82rem; }
}

/* Pricing: billing toggle (K) inside A's price card. */
.price-card h2 { margin: 12px 0 18px; }
.billing-toggle { max-width: 340px; gap: 4px; flex-wrap: nowrap; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: #0a1422; }
.billing-toggle button { width: 50%; background: transparent; border: 0; color: var(--muted); padding: 8px; gap: 6px; display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; border-radius: 6px; transition: background-color .28s ease, color .28s ease; }
.billing-toggle button[aria-pressed="true"] { background: #7de7ef; color: #080f1c; }
.billing-toggle small { font-size: .72rem; }
.price strong { font-weight: 400; }
.price .term { font-family: var(--font-body); }
.nojs-price { font-size: .9rem; color: #91ddc2; margin-top: -8px; }
.js .nojs-price { display: none; }
.annual-price-note { font-size: .9rem; color: #91ddc2; margin-top: -8px; }
.checkout-soon:disabled, .checkout-soon:disabled:hover { opacity: 1; cursor: not-allowed; background: #0e1b2b; color: #b7f7ff; border: 1px dashed #7de7ef; box-shadow: none; }
.price-card .actions { margin-top: 18px; }
.mini-steps { padding-left: 1.3em; }
.mini-steps li { color: #bdcada; }
.plan-list { margin: 0 0 8px; border-bottom: 1px solid var(--line); }
.plan-list > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.plan-list dt { font-weight: 600; color: var(--ink); }
.plan-list dd { margin: 0; color: #bdcada; }

/* Closing band, same treatment as A's waitlist section. */
.cta-band { background: radial-gradient(ellipse at 10% 100%, #1c4055, transparent 65%), #101c2c; }
.center-actions { justify-content: center; }

/* Legal drafts. On a phone each privacy row keeps its column names. */
@media (max-width: 639px) {
  .table-stack.labelled td { display: block; text-align: left; padding: 4px 0; }
  .table-stack.labelled td::before { content: attr(data-label); display: block; font: .72rem/1.6 var(--font-mono); letter-spacing: .04em; color: var(--muted); }
  .table-stack.labelled td:first-child::before { content: none; }
}
.legal-banner { font-weight: 500; }
.legal-banner strong { color: #ffe2a7; }
.legal .callout { margin-top: 0; }

@media (max-width: 639px) {
  .frame-top { padding: 12px 14px; font-size: .66rem; }
  .chart-stage figcaption { padding: 12px 14px 14px; }
  .tv-panel { font-size: .74rem; }
  .tvp-cols, .tvp-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, .95fr); gap: 4px 6px; padding-left: 10px; padding-right: 10px; }
  .tvp-name small { display: none; }
  .tv-panel.compact .tvp-name small { display: inline; }
  .tvp-bar { font-size: .62rem; }
  .tag-pair { grid-template-columns: minmax(0, 1fr); }
  .alert-text { font-size: .8rem; }
  .controls button { padding: 8px 11px; font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js .anatomy-overlay g { transition: none; }
}
@media print {
  .controls { display: none !important; }
  .js .market-chart, .js .step-notes article:not(.selected) { display: block; }
  .js .anatomy-overlay g { opacity: 1; }
  .js .nojs-price { display: block; }
  .research-strip, .tv-panel, .alert-card { background: #fff !important; color: #000 !important; border-color: #000; }
  .research-strip *, .tv-panel *, .alert-card * { color: #000 !important; }
  .risk-line { color: #000; }
}

/* 095c: provenance line inside every stat card (part of the card's fixed disclosure place). */
.research-strip .stat-source { color: #e6edf5; font-size: .84rem; line-height: 1.55; border-left: 2px solid #7de7ef; padding-left: 10px; max-width: 78ch; }
/* 095c: the alert's message types (v24 contract). */
.event-list { margin: 0 0 8px; border-bottom: 1px solid var(--line); }
.event-list > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.event-list dt { font: 500 .82rem/1.5 var(--font-mono); color: #7de7ef; letter-spacing: .04em; }
.event-list dd { margin: 0; color: #bdcada; font-size: .95rem; }
@media (min-width: 640px) { .event-list > div { grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; } }
.alert-stage .alert-card + .alert-card { margin-top: 2px; }
.alerts-grid h3 + .event-list { margin-top: 4px; }
.alerts-grid .event-list + h3 { margin-top: 1.6em; }
#messages h3 { margin-top: 2rem; }
