:root {
  --bg: #060b18;
  --surface: #0b1428;
  --surface-2: #111d38;
  --line: #1d2b4b;
  --text: #eef2fb;
  --muted: #98a3be;
  --accent: #3ddc97;
  --accent-ink: #052817;
  --warn: #ff6e7f;
  --gold: #f5c242;
  --orange: #ff8a3d;
  --blue: #7aa7ff;
  --fx: #35c7b8;
  --tw: #f5c242;
  --sw: #ff8a3d;
  --nav-bg: rgba(6,11,24,.55);
  --nav-bg-solid: rgba(6,11,24,.92);
  color-scheme: dark;
  --aurora: linear-gradient(120deg, #3ddc97 0%, #35c7b8 45%, #5b7cfa 100%);
  --ts: linear-gradient(100deg, #f5c242 0%, #ffae4a 48%, #ff8a3d 100%);
  --display: "Chakra Petch", "IBM Plex Sans Thai", system-ui, sans-serif;
  --brand: "Exo 2", "Chakra Petch", system-ui, sans-serif;
  --radius: 14px;
  --sans: "IBM Plex Sans Thai", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
:root[data-theme="light"] {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #edf1f8;
  --line: #d9e0ee;
  --text: #0b1430;
  --muted: #56627f;
  --accent: #0a8f57;
  --accent-ink: #ffffff;
  --warn: #d4364e;
  --gold: #a37400;
  --orange: #d9601a;
  --blue: #2a66d9;
  --fx: #0b8a80;
  --tw: #dc9e00;
  --sw: #ee6a1c;
  --nav-bg: rgba(244,246,251,.72);
  --nav-bg-solid: rgba(244,246,251,.94);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img, svg, canvas { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--mono); font-size: 14px; letter-spacing: .02em; color: var(--accent); margin: 0 0 12px; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 600; }
h1, h2, .page-head h1, .story-step h3 { font-family: var(--display); }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(44px, 7.4vw, 104px); line-height: 1.02; letter-spacing: -0.01em; font-weight: 700; }
h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.01em; }
h3 { font-size: 19px; font-weight: 500; }
em { font-style: normal; color: var(--accent); }
section { padding: 88px 0; }
.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 12px 0 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font: 500 16px var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-line { background: #06c755; color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }

.promo { background: var(--accent); color: var(--accent-ink); text-align: center; font-size: 14px; padding: 8px 16px; font-weight: 500; }
.nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.scrolled { background: var(--nav-bg-solid); border-bottom-color: var(--line); }
.nav .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: "Sora", var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.logo-mark { flex: none; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--text); }
@media (max-width: 1100px) { .nav-links a:not(.btn) { display: none; } }

.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center; }
.badge { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 4px 12px; margin-bottom: 20px; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 20px 0 8px; max-width: 540px; }
.tagline { font-family: var(--mono); font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { font-size: 13px; color: var(--muted); margin-top: 20px; }

.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.chart-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.legend { display: flex; gap: 14px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 6px; }
.chart-wrap { position: relative; height: 230px; }
.chart-wrap canvas { width: 100%; height: 230px; display: block; }
.news-flag { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); background: var(--warn); color: #2a0d03; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 6px; opacity: 0; transition: opacity .3s; }
.dd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.dd { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; }
.dd span { font-size: 13px; color: var(--muted); }
.dd b { display: block; font: 500 24px var(--mono); }
.chart-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 14px 0; }
.ticker-track { display: inline-flex; gap: 40px; animation: tick 40s linear infinite; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.ticker-track span b { color: var(--text); font-weight: 500; margin-right: 6px; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); margin: 8px 0 0; }
.step-num { font: 500 36px var(--mono); color: var(--accent); line-height: 1; margin-bottom: 18px; }

.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.stat span { font-size: 13px; color: var(--muted); }
.stat b { display: block; font: 500 26px var(--mono); margin-top: 4px; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { font-weight: 500; color: var(--muted); font-size: 13px; background: var(--surface); }
td.num { font-family: var(--mono); }
tr:last-child td { border-bottom: 0; }
.limits { margin-top: 20px; border: 1px dashed var(--warn); border-radius: var(--radius); padding: 22px 24px; }
.limits h3 { color: var(--warn); }
.limits ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }

.pricing { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.plan.featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--aurora) border-box; box-shadow: 0 0 70px rgba(61,220,151,.12); }
.plan-tag { align-self: flex-start; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; }
.price { font: 500 38px var(--mono); }
.price small { font-size: 15px; color: var(--muted); }
.price s { font-size: 18px; color: var(--muted); margin-right: 8px; }
.plan ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.plan .btn { margin-top: auto; }
.coupon-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px; }
.coupon-row input { max-width: 220px; }
.pay-logos { font-size: 14px; color: var(--muted); margin-top: 14px; }

.faq { max-width: 820px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 500; font-size: 17px; }
details p { color: var(--muted); margin: 10px 0 0; }

.cta-band { background: var(--aurora); color: #05121f; border-radius: 20px; padding: 52px 36px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #05121f; }
.cta-band .muted { color: rgba(6,18,13,.72); }
.cta-band .btn-primary { background: #05121f; color: #e9fff4; }

footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
footer a { color: var(--muted); }
footer .links { display: flex; flex-direction: column; gap: 6px; }

/* form + dialog */
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel] { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 16px var(--sans); }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field { margin-bottom: 16px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.error { color: var(--warn); font-size: 14px; min-height: 20px; margin: 4px 0 8px; }
dialog { width: min(480px, calc(100vw - 24px)); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 0; }
dialog::backdrop { background: rgba(0,0,0,.65); }
.dlg-body { padding: 24px; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dlg-close { background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; width: 44px; height: 44px; }
.methods { display: grid; gap: 8px; margin-bottom: 16px; }
.method { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; color: var(--text); font-size: 15px; margin: 0; }
.method:has(input:checked) { border-color: var(--accent); }
.summary { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; margin: 8px 0 16px; }
.summary b { font: 500 24px var(--mono); }
.qr-box { text-align: center; }
.qr-box img { width: 240px; height: 240px; background: #fff; border-radius: 12px; padding: 8px; }
.key-box { font: 500 18px var(--mono); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-align: center; word-break: break-all; margin: 8px 0 16px; }
.hidden { display: none !important; }
.legal { max-width: 760px; padding: 56px 20px; }
.legal h2 { font-size: 26px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--muted); }

/* ---- animated results ---- */
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 24px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi b { display: block; font: 500 30px var(--mono); margin: 4px 0 2px; color: var(--accent); font-variant-numeric: tabular-nums; }
.kpi.warn b { color: var(--warn); }
.kpi small { font-size: 12px; color: var(--muted); }
.viz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 16px; margin-bottom: 20px; }
.viz-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.viz-head h3 { font-size: 17px; }
.viz-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.readout { font-size: 14px; font-variant-numeric: tabular-nums; }
.readout b { font: 500 18px var(--mono); }
.chart-svg svg { width: 100%; height: auto; display: block; }
.viz-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.era-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 20px; }
.era { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.era.out { border-color: rgba(255,110,127,.45); }
.era.in { border-color: rgba(61,220,151,.45); }
.era-tag { font: 500 13px var(--mono); margin: 0 0 8px; color: var(--muted); }
.era-net { font: 500 34px var(--mono); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.pos { color: var(--accent); } .neg { color: var(--warn); }
.era-row { display: grid; grid-template-columns: 96px 1fr 60px; align-items: center; gap: 10px; font-size: 14px; margin-top: 8px; }
.era-row span { color: var(--muted); }
.era-row b { font: 500 15px var(--mono); text-align: right; }
.era-track { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.era-track i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.era-track i.w { background: var(--warn); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { background: transparent; border: 0; color: var(--muted); font: 14px var(--sans); padding: 8px 14px; cursor: pointer; min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.heat-box { overflow-x: auto; }
table.heat { min-width: 720px; font-size: 14px; border-collapse: separate; border-spacing: 3px; }
table.heat th { background: transparent; border: 0; padding: 6px 8px; font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: 13px; }
table.heat th[scope="row"] { text-align: left; color: var(--text); }
table.heat th[data-era="out"] { color: var(--warn); }
table.heat th[data-era="in"] { color: var(--accent); }
table.heat td { border: 0; padding: 0; }
table.heat td.cell { background: var(--bg); border-radius: 6px; text-align: center; font-family: var(--mono); padding: 9px 6px; opacity: 0; transform: scale(.85); transition: opacity .5s var(--d), transform .5s var(--d), filter .3s; }
#pairHeatmap.in td.cell { opacity: 1; transform: scale(1); }
#pairHeatmap.in td.cell:not(.tot) { background: var(--heat); }
table.heat td.tot { background: var(--surface-2); }
table.heat td.tot b { display: block; font-weight: 500; }
table.heat td.tot small { font-size: 11px; color: var(--muted); }
#pairHeatmap[data-filter="out"] [data-era="in"], #pairHeatmap[data-filter="in"] [data-era="out"] { opacity: .15; filter: grayscale(1); }
.stab-legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.stab-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.stab-legend i.a, .stab-bar.a { background: var(--accent); }
.stab-legend i.b, .stab-bar.b { background: #7aa7ff; }
.stab-row { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: center; margin-bottom: 8px; }
.stab-name { font: 500 14px var(--mono); }
.stab-bars { display: grid; gap: 4px; }
.stab-track { display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--muted); }
.stab-track::before { content: ""; grid-column: 1; grid-row: 1; height: 8px; background: var(--surface-2); border-radius: 4px; }
.stab-bar { grid-column: 1; grid-row: 1; height: 8px; border-radius: 4px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.stab-track span { grid-column: 2; text-align: right; }

/* ---- how-it-works story ---- */
.story-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: start; }
.story-stage { position: sticky; top: 84px; }
.story-stage-inner { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 0 90px rgba(61,220,151,.07); }
.story-stage svg { width: 100%; height: auto; display: block; }
.story-caption { margin: 12px 0 0; font-size: 14px; color: var(--text); min-height: 22px; font-variant-numeric: tabular-nums; }
.story-dots { display: flex; gap: 8px; margin-top: 10px; }
.story-dots button { width: 32px; height: 6px; border-radius: 3px; border: 0; background: var(--surface-2); cursor: pointer; padding: 0; transition: background .3s; }
.story-dots button[aria-current="true"] { background: var(--accent); }
.story-step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; padding: 16px 0; opacity: .3; transition: opacity .4s; cursor: pointer; }
.story-step.active { opacity: 1; }
.story-step h3 { font-size: 24px; font-weight: 600; margin: 0 0 10px; }
.story-step p { color: var(--muted); margin: 0; font-size: 16px; }
.story-step .step-num { font-size: 28px; margin-bottom: 10px; }
.story-steps { padding-bottom: 10vh; }
@media (max-width: 860px) {
  .story-layout { grid-template-columns: 1fr; gap: 12px; }
  .story-stage { top: 64px; z-index: 5; }
  .story-stage-inner { padding: 10px; border-radius: 14px; }
  .story-caption { font-size: 13px; }
  .story-step { min-height: 48vh; justify-content: flex-end; padding-bottom: 24px; }
  .story-step h3 { font-size: 20px; }
}

/* ---- site chrome: mobile menu, LINE button, cookie bar ---- */
.nav .wrap > .btn-primary { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
.nav-links a.current { color: var(--text); }
@media (max-width: 1100px) {   /* the menu folds into ☰ below 1100px (tablets too) */
  .nav-toggle { display: flex; }
  .nav .wrap { position: relative; }
  .nav-links { display: none; position: absolute; left: 20px; right: 20px; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { display: block; padding: 12px 10px; border-radius: 8px; font-size: 16px; }
  .nav-links a:not(.btn):hover { background: var(--surface-2); }
  .nav-links .btn-line { margin: 6px 0 2px; }
  .nav-links .btn-primary { display: none; }
  .nav .wrap > .btn-primary { display: inline-flex; margin-left: auto; min-height: 44px; padding: 8px 16px; font-size: 15px; }
}
.line-fab { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; background: #06c755; color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; padding: 12px 18px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.4); min-height: 48px; }
.line-fab:hover { filter: brightness(1.06); }
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.cookie-bar p { margin: 0; font-size: 14px; color: var(--muted); max-width: 640px; }
.cookie-bar > div { display: flex; gap: 8px; }
body:has(.cookie-bar) .line-fab { bottom: 96px; }

/* ---- channels + newsletter ---- */
.channels { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.channel { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--text); text-decoration: none; min-height: 60px; }
.channel:hover { border-color: var(--muted); }
.channel i { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font: 500 12px var(--mono); color: #fff; flex: none; }
.channel.soon { opacity: .5; cursor: default; }
.channel.soon::after { content: "เร็วๆ นี้"; margin-left: auto; font-size: 12px; color: var(--muted); }
html[lang="en"] .channel.soon::after { content: "Coming soon"; }
.channel span small { display: block; font-size: 12px; color: var(--muted); }
.ch-line i { background: #06c755; } .ch-fb i { background: #1877f2; } .ch-tt i { background: #111; border: 1px solid #444; } .ch-yt i { background: #ff0000; }
.subscribe { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: center; }
.subscribe form { display: grid; gap: 10px; }
.subscribe .row { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe .row input[type=email] { flex: 1 1 200px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.ok { color: var(--accent); font-size: 14px; min-height: 20px; margin: 4px 0 8px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-row .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---- subpages ---- */
.page-head { padding: 64px 0 32px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); }
.page-head p { color: var(--muted); font-size: 17px; max-width: 680px; margin: 12px 0 0; }
.prose { max-width: 780px; }
.prose h2 { font-size: 26px; margin: 48px 0 12px; scroll-margin-top: 90px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--muted); font-size: 16px; }
.prose li { margin-bottom: 6px; }
.prose ol, .prose ul { padding-left: 22px; }
.prose strong { color: var(--text); font-weight: 500; }
.prose .callout { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 18px 0; }
.prose .callout.warn { border-left-color: var(--warn); }
.prose .callout p { margin: 0; }
.prose code { font-family: var(--mono); font-size: 14px; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; color: var(--text); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.toc a { font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; text-decoration: none; }
.toc a:hover { color: var(--text); border-color: var(--muted); }
.meta { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.article { border-top: 1px solid var(--line); padding: 40px 0; scroll-margin-top: 90px; }
.article:first-of-type { border-top: 0; }
.article h2 { font-size: 28px; margin: 8px 0 14px; }
.tag { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin-right: 8px; }
.tag.monthly { border-color: rgba(61,220,151,.5); color: var(--accent); }
table.plain { width: 100%; min-width: 0; border-collapse: collapse; font-size: 15px; }
table.plain th, table.plain td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.plain th { color: var(--muted); font-weight: 500; font-size: 13px; background: transparent; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps-list li { position: relative; padding: 0 0 22px 52px; margin: 0; }
.steps-list li::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 2px; font: 500 20px var(--mono); color: var(--accent); }
.steps-list h3 { margin: 0 0 6px; font-size: 18px; }
.steps-list p { margin: 0; }
.empty-state { border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }
.p404 { min-height: 70vh; display: flex; align-items: center; }

/* ---- prepaid packs ---- */
.pricing.packs { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.plan .per { margin: -6px 0 4px; font-size: 14px; color: var(--muted); font-family: var(--mono); }
.plan-tag.ghost { background: transparent; color: var(--accent); border: 1px solid rgba(61,220,151,.5); }
.plan-tag:empty { display: none; }
.plan-compare { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 16px; }
.plan-compare .pc { display: grid; grid-template-columns: 76px 1fr 90px; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.plan-compare .pc b { color: var(--text); font-family: var(--mono); font-weight: 500; text-align: right; }
.plan-compare .bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.plan-compare .bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; width: 0; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }

/* ---- hero river + load sequence ---- */
.hero-xl { position: relative; overflow: hidden; min-height: calc(100vh - 64px); display: flex; flex-direction: column; justify-content: center; padding: 64px 0 36px; }
#heroRiver { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-xl::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 740px; }
.hero-kicker { font: 500 14px var(--mono); color: var(--accent); margin: 0 0 24px; }
.hero-xl h1 { margin: 0 0 24px; }
.hero-xl h1 > span { display: block; }
.hero-xl .lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); margin: 0 0 30px; max-width: 600px; }
.hero-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 13px; color: var(--muted); }
.hero-legend i { display: inline-block; width: 22px; height: 2px; background: var(--accent); opacity: .4; vertical-align: middle; margin-right: 8px; border-radius: 2px; }
.hero-legend i.thick { height: 4px; opacity: 1; box-shadow: 0 0 10px var(--accent); }
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px; border-top: 1px solid var(--line); }
.hero-stats > div { padding: 22px 20px 0 0; margin-right: 20px; border-right: 1px solid var(--line); }
.hero-stats > div:last-child { border-right: 0; margin-right: 0; }
.hero-stats b { display: block; font: 600 clamp(34px, 3.6vw, 48px) var(--display); color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.1; margin-bottom: 4px; }
.hero-stats span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .hero-xl { min-height: auto; padding: 48px 0 24px; }
  .hero-xl .lead { font-size: 17px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 200px; row-gap: 18px; }
  .hero-stats > div:nth-child(2n) { border-right: 0; margin-right: 0; }
}
.js .h-line { opacity: 0; animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--d, 0s) + 2s); }
.js body.ready .h-line { animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .h-line { opacity: 1; animation: none; } }
.progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; pointer-events: none; }

/* ---- why: text + simulated chart ---- */
.why-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.why-list { list-style: none; padding: 0; margin: 8px 0 0; }
.why-list li { padding: 20px 0; border-top: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list h3 { font-size: 19px; margin: 0 0 6px; }
.why-list p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---- numbers: one giant figure ---- */
.kpi-hero { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; padding: 30px 28px 24px; }
.kpi-hero b { font: 700 clamp(56px, 8vw, 104px) var(--display); color: var(--accent); line-height: 1; margin: 0; letter-spacing: -0.02em; }
.kpi-hero .unit { font: 500 clamp(18px, 2vw, 26px) var(--display); color: var(--accent); }
.kpi-hero .kpi-side { display: flex; flex-direction: column; gap: 2px; }
.kpi-hero .kpi-side span { font-size: 16px; color: var(--text); }
.kpi-hero .kpi-side small { font-size: 13px; color: var(--muted); }

/* ---- language + currency switches ---- */
.lang-switch { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; min-height: 36px; cursor: pointer; transition: color .2s, border-color .2s; }
.lang-switch:hover { color: var(--text); border-color: var(--muted); }
@media (min-width: 1101px) { .nav-links { margin-left: auto; } }
@media (max-width: 1100px) { .lang-switch { margin-left: auto; min-height: 44px; } .nav .wrap > .btn-primary { margin-left: 0; } }
.cur-switch { display: inline-flex; gap: 2px; margin-top: 20px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.cur-switch button { font-family: var(--mono); font-size: 13px; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 7px 16px; min-height: 36px; cursor: pointer; transition: background .2s, color .2s; }
.cur-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.cur-switch button:hover { color: var(--text); }
html[lang="en"] .nav-links { font-size: 14px; gap: 16px; }
html[lang="en"] .hero-xl h1 { font-size: clamp(40px, 6vw, 80px); }
html[lang="en"] .lang-switch { font-family: var(--sans); }
@media (max-width: 1100px) {
  .nav .wrap { flex-wrap: nowrap; gap: 8px; }
  .logo { min-width: 0; }
  .logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw; }
  .lang-switch { padding: 0 10px; flex: none; }
  .nav .wrap > .btn-primary { padding: 8px 12px; flex: none; }
  .nav-toggle { flex: none; }
}

/* ---- customer account ---- */
.acct-head { padding-bottom: 28px; }
.acct-login { max-width: 460px; }
.acct-login h2, .acct-h { font-family: var(--display); font-size: 26px; margin: 0 0 10px; }
.acct-h { margin: 40px 0 16px; }
.acct-google { width: 100%; justify-content: center; gap: 10px; margin: 18px 0 4px; }
.acct-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 14px 0; }
.acct-or::before, .acct-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.acct-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.acct-welcome { max-width: 640px; margin-top: 16px; }
.acct-welcome h2 { font-family: var(--display); font-size: 26px; margin: 14px 0 8px; }
/* signed out, /account is a sign-in page: no "My account" heading, one centred card */
html.acct-out .acct-head { display: none; }
.acct-login-wrap { display: flex; flex-direction: column; align-items: center; padding: 64px 0 80px; }
.acct-login-wrap .acct-login { width: 100%; max-width: 440px; padding: 34px 30px 26px; text-align: center; }
.acct-login-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 14px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.acct-login-title { font-family: var(--display); font-size: clamp(28px, 4vw, 34px); margin: 0 0 10px; }
.acct-login-wrap .acct-login > .muted { max-width: 340px; margin: 0 auto; }
.acct-login-wrap .acct-google { margin: 22px 0 6px; }
.acct-login-wrap form, .acct-login-wrap .error { text-align: left; }
.acct-login-foot { margin: 16px 0 0; }
.acct-login-legal { margin: 10px 0 0; font-size: 12px; }
.acct-login-legal a { white-space: nowrap; }
.acct-mail-soon input:disabled { opacity: .6; cursor: not-allowed; }
.acct-mail-soon .btn[disabled] { opacity: .55; cursor: not-allowed; }
/* sign-in background: aurora light, a dot grid and the strands canvas (login-fx.js); the card is glass with a running edge light */
.login-bg { display: none; }
html.acct-out .acct { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); }
html.acct-out .login-bg { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
html.acct-out #acctRoot { position: relative; z-index: 1; }
html.acct-out .acct-login-wrap { min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); justify-content: center; padding: 40px 0 64px; }
.login-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 84%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 84%, transparent 100%); }
.lb-blob { position: absolute; border-radius: 50%; will-change: transform; animation: lb-fade 1.6s ease both; }
.lb-blob.b1 { width: 620px; height: 620px; left: calc(50% - 700px); top: -180px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent); animation: lb-fade 1.6s ease both, lb-drift1 22s ease-in-out 1.6s infinite alternate; }
.lb-blob.b2 { width: 560px; height: 560px; left: calc(50% + 40px); top: 40px; background: radial-gradient(closest-side, rgba(91,124,250,.30), transparent); animation: lb-fade 1.6s ease .2s both, lb-drift2 26s ease-in-out 1.8s infinite alternate; }
.lb-blob.b3 { width: 700px; height: 700px; left: calc(50% - 380px); top: 300px; background: radial-gradient(closest-side, color-mix(in srgb, var(--fx) 22%, transparent), transparent); animation: lb-fade 1.6s ease .4s both, lb-drift3 30s ease-in-out 2s infinite alternate; }
@keyframes lb-fade { from { opacity: 0; } }
@keyframes lb-drift1 { to { transform: translate(140px, 90px) scale(1.15); } }
@keyframes lb-drift2 { to { transform: translate(-160px, 70px) scale(.88); } }
@keyframes lb-drift3 { to { transform: translate(90px, -110px) scale(1.1); } }
.lb-grid { position: absolute; inset: 0; opacity: .55; background-image: radial-gradient(color-mix(in srgb, var(--muted) 34%, transparent) 1px, transparent 1.6px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 52% 48% at 50% 44%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 52% 48% at 50% 44%, #000 0%, transparent 72%); animation: lb-fade 2s ease .3s both; }
:root[data-theme="light"] .lb-grid { opacity: .4; }
:root[data-theme="light"] .lb-blob.b2 { background: radial-gradient(closest-side, rgba(42,102,217,.16), transparent); }
html.acct-out .acct-login-wrap .acct-login { position: relative; background: color-mix(in srgb, var(--surface) 72%, transparent); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-color: color-mix(in srgb, var(--accent) 18%, var(--line)); box-shadow: 0 30px 80px -24px rgba(0,0,0,.6), 0 0 70px -24px color-mix(in srgb, var(--accent) 40%, transparent); animation: lb-in .9s cubic-bezier(.2,.75,.2,1) .25s both; }
:root[data-theme="light"].acct-out .acct-login-wrap .acct-login { box-shadow: 0 24px 60px -24px rgba(11,20,48,.22), 0 0 60px -26px color-mix(in srgb, var(--accent) 45%, transparent); }
@property --lb-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
html.acct-out .acct-login-wrap .acct-login::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: conic-gradient(from var(--lb-ang), transparent 0deg 240deg, color-mix(in srgb, var(--accent) 85%, transparent) 300deg, rgba(91,124,250,.85) 336deg, transparent 360deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: lb-spin 7s linear infinite; }
@keyframes lb-spin { to { --lb-ang: 360deg; } }
@keyframes lb-in { from { opacity: 0; transform: translateY(18px) scale(.98); filter: blur(6px); } }
html.acct-out .acct-login-icon { animation: lb-ping 2.8s ease-out 1.2s infinite; }
@keyframes lb-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 14px transparent; } }
@media (max-width: 700px) { .lb-blob.b1 { left: -320px; } .lb-blob.b2 { left: 40px; top: 160px; } .lb-blob.b3 { left: -200px; top: 420px; } }
@media (prefers-reduced-motion: reduce) { .lb-blob, .lb-grid, html.acct-out .acct-login-wrap .acct-login, html.acct-out .acct-login-wrap .acct-login::before, html.acct-out .acct-login-icon { animation: none; } }
@media (max-width: 560px) { .acct-login-wrap { padding: 32px 0 56px; } .acct-login-wrap .acct-login { padding: 26px 20px 22px; } }
.acct-welcome .check { margin-top: 18px; }
.acct-preview { margin: 10px 0 0; }
.lic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.lic { display: flex; flex-direction: column; gap: 14px; }
.lic-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lic-plan { font-family: var(--display); font-size: 20px; font-weight: 600; }
.lic-status { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.lic-status.ok { color: var(--accent); border-color: rgba(61,220,151,.45); background: rgba(61,220,151,.08); }
.lic-status.soon { color: var(--warn); border-color: rgba(255,110,127,.5); background: rgba(255,110,127,.08); }
.lic-status.expired, .lic-status.revoked { color: var(--muted); }
.lic-key { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lic-key code { font-family: var(--mono); font-size: 16px; letter-spacing: .03em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; overflow-wrap: anywhere; }
.lic-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.lic-meta dt { font-size: 12px; color: var(--muted); }
.lic-meta dd { margin: 2px 0 0; font-size: 15px; }
.lic-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lic-transfer { border-top: 1px solid var(--line); padding-top: 14px; }
.lic-transfer .field { max-width: 280px; }
@media (max-width: 520px) { .lic-meta { grid-template-columns: 1fr 1fr; } }

/* ---- config E numbers ---- */
.heat td.none { color: var(--line); background: transparent; }
.heat tr.basket-row th, .heat tr.basket-row td { border-top: 2px solid var(--line); font-weight: 600; }
.heat.months th[scope="row"] { font-family: var(--mono); }
.heat.months td.cell { min-width: 52px; }
.mstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0 6px; }
.mstats > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.mstats dt { font-size: 13px; color: var(--muted); }
.mstats dd { margin: 4px 0 0; font: 600 20px var(--display); font-variant-numeric: tabular-nums; }
.mstats dd.neg { color: var(--warn); }
.channel { min-width: 0; }
.channel span { min-width: 0; overflow-wrap: anywhere; }
.channel.soon::after { flex: none; white-space: nowrap; }
#monthHeat.in td.cell { opacity: 1; transform: scale(1); }
#monthHeat.in td.cell:not(.tot) { background: var(--heat); }
#monthHeat.in td.cell.none, #pairHeatmap.in td.cell.none { background: transparent; }

/* ---- stagnation (time to a new high) ---- */
.stag-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; margin-top: 16px; }
@media (max-width: 900px) { .stag-wrap { grid-template-columns: 1fr; } }
.stag-hit { cursor: pointer; transition: opacity .2s; }
.stag-bar:focus { outline: none; stroke: var(--text); stroke-width: 2; }
.stag-detail { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 16px 18px; min-height: 220px; }
.stag-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stag-sev { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }
.stag-sev.s5 { color: var(--warn); border-color: rgba(255,110,127,.5); }
.stag-sev.s3 { color: #f2b84b; border-color: rgba(242,184,75,.5); }
.stag-sev.s1 { color: #9db4c8; }
.stag-nav { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.stag-nav .btn { min-height: 32px; padding: 2px 10px; }
.stag-range { font: 600 17px var(--display); margin: 12px 0 10px; }
.stag-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.stag-facts dt { font-size: 12px; color: var(--muted); }
.stag-facts dd { margin: 2px 0 0; font: 600 18px var(--display); font-variant-numeric: tabular-nums; }
.stag-facts dd small { display: block; font: 400 12px var(--sans); color: var(--muted); }
.stag-facts dd.neg { color: var(--warn); }
.stag-sub { font-size: 12px; color: var(--muted); margin: 14px 0 6px; }
.stag-months { display: flex; flex-wrap: wrap; gap: 6px; max-height: 150px; overflow-y: auto; }
.stag-months span { font: 500 12px var(--mono); padding: 4px 8px; border-radius: 6px; background: var(--surface-2); }
.stag-months span b { font-weight: 400; color: var(--muted); margin-right: 6px; }
.stag-months .pos { color: var(--accent); } .stag-months .neg { color: var(--warn); }
.stag-legend { display: flex; gap: 18px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.stag-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.stag-legend i.s5 { background: var(--warn); } .stag-legend i.s3 { background: #f2b84b; } .stag-legend i.s1 { background: #6f8aa3; }
#stagStats dd small { display: block; font: 400 12px var(--sans); color: var(--muted); margin-top: 2px; }
#stagChart { overflow-x: auto; }
@media (max-width: 700px) {
  #stagChart svg { min-width: 680px; }
  .mstats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mstats > div { padding: 10px 12px; }
  .mstats dd { font-size: 17px; }
}

/* ---- live dashboard ---- */
.live { padding-top: 48px; }
.live-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.live-title { font-size: clamp(32px, 4.6vw, 52px); margin: 0 0 8px; }
.live-title em { background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live-status { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-height: 58px; }
.live-status b { display: block; font-size: 14px; }
.live-status small { color: var(--muted); font-size: 12px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #6d7896; flex: none; }
.live-dot.on { background: var(--accent); box-shadow: 0 0 0 0 rgba(61,220,151,.6); animation: livePulse 2s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot.on { animation: none; } }
.live-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.live-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.live-tabs button { display: inline-flex; align-items: center; gap: 8px; font: 500 14px var(--sans); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; min-height: 42px; cursor: pointer; }
.live-tabs button i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.live-tabs button[aria-selected="true"] { color: var(--text); border-color: rgba(61,220,151,.5); box-shadow: 0 0 0 1px rgba(61,220,151,.2) inset; }
.live-tabs button[aria-selected="true"] i { background: var(--accent); }
.live-tabs small { font-size: 11px; color: var(--warn); }
.live-actions { display: flex; gap: 8px; }
/* stage: globe of trades with the headline number */
.lv-stage { position: relative; height: 580px; padding: 0; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; margin-bottom: 14px; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 50%, #0d1830 0%, #060b18 70%); }
.lv-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(rgba(122,167,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(122,167,255,.06) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 72%); mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 72%); }
.lv-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.lv-badge { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #ffb547; border: 1px solid rgba(255,181,71,.4); background: rgba(255,181,71,.08); padding: 4px 10px; border-radius: 99px; z-index: 2; }
.lv-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; z-index: 2; width: max-content; max-width: 90%; }
.lv-core > span { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lv-big { display: block; font: 700 clamp(56px, 9vw, 104px)/1 var(--display); letter-spacing: -.02em; margin: 10px 0 10px; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #eafff4 0%, #3ddc97 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 28px rgba(61,220,151,.35)); }
.lv-big i { font-style: normal; font-size: .5em; margin-left: .06em; vertical-align: .55em; }
.is-neg .lv-big { background-image: linear-gradient(180deg, #ffe3e7 0%, #ff6e7f 100%); filter: drop-shadow(0 0 28px rgba(255,110,127,.3)); }
.lv-core small { color: var(--muted); font-size: 13px; }
.lv-sats { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; padding: 28px 30px; pointer-events: none; z-index: 2; }
.lv-sat { max-width: 230px; }
.lv-sat.s2, .lv-sat.s4 { justify-self: end; text-align: right; }
.lv-sat.s3, .lv-sat.s4 { align-self: end; }
.lv-sat > span { display: block; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lv-sat b { display: block; font: 600 30px/1.15 var(--display); margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.lv-sat small { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.lv-sat.s1 b { color: #ffb547; } .lv-sat.s2 b { color: #c3d9ff; }
.lv-sat::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 10px; background: var(--c, var(--accent)); border-radius: 2px; }
.lv-sat.s1 { --c: #ffb547; } .lv-sat.s2 { --c: #7aa7ff; } .lv-sat.s3 { --c: #3ddc97; } .lv-sat.s4 { --c: #c38cff; }
.lv-sat.s2::before, .lv-sat.s4::before { margin-left: auto; }
.lv-legend { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; z-index: 2; }
.lv-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.lv-legend i.w { background: #3ddc97; } .lv-legend i.l { background: var(--warn); } .lv-legend i.n { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
@media (max-width: 720px) {
  .lv-stage { height: auto; padding: 360px 0 0; border-radius: 22px; }
  .lv-stage canvas { height: 380px; bottom: auto; }
  .lv-core { top: 190px; }
  .lv-big { font-size: clamp(48px, 15vw, 72px); }
  .lv-legend { top: 352px; bottom: auto; }
  .lv-sats { position: relative; inset: auto; padding: 34px 16px 18px; gap: 18px 14px; }
  .lv-sat b { font-size: 24px; }
  .lv-sat.s2, .lv-sat.s4 { justify-self: start; text-align: left; }
  .lv-sat.s2::before, .lv-sat.s4::before { margin-left: 0; }
}
/* money strip */
.lv-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); margin-bottom: 14px; }
.lv-money > div { padding: 16px 20px; min-width: 0; }
.lv-money > div + div { border-left: 1px solid var(--line); }
.lv-money span { display: block; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lv-money b { display: block; font: 600 clamp(20px, 2.6vw, 28px)/1.2 var(--display); margin: 6px 0 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lv-money small { color: var(--muted); font-size: 12px; }
@media (max-width: 720px) { .lv-money { grid-template-columns: 1fr 1fr; } .lv-money > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); } }
/* panels */
.lv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 860px) { .lv-grid { grid-template-columns: 1fr; } }
.lv-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-bottom: 14px; }
.lv-grid .lv-panel { margin-bottom: 0; }
.lv-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; }
.lv-head h3 { font-size: 16px; }
.lv-head small { color: var(--muted); font-size: 12px; }
.lv-chart svg { width: 100%; height: auto; display: block; }
.lv-endpt { transition: opacity .4s; }
.lv-months { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.lv-months div { color: var(--text); flex: 1 1 82px; border-radius: 10px; padding: 8px 10px; background: rgba(61,220,151,var(--a)); }
.lv-months div.neg { background: rgba(255,110,127,var(--a)); }
.lv-months span { display: block; font-size: 11px; color: var(--text); opacity: .75; }
.lv-months b { font: 600 14px var(--mono); }
.lv-feed { list-style: none; margin: 0; padding: 0; }
.lv-feed li { display: grid; grid-template-columns: 1.3fr 1fr auto 0.9fr 1fr; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.lv-feed li:last-child { border-bottom: 0; }
.lv-feed time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.lv-feed b { font: 600 13px var(--mono); }
.lv-feed em { font: 600 10px var(--mono); font-style: normal; letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; }
.lv-feed em.buy { color: #7aa7ff; background: rgba(122,167,255,.12); } .lv-feed em.sell { color: #c38cff; background: rgba(195,140,255,.12); }
.lv-feed .lot { color: var(--muted); font: 12px var(--mono); text-align: right; }
.lv-feed strong { font: 600 14px var(--mono); text-align: right; }
@media (max-width: 480px) { .lv-feed li { grid-template-columns: 1.4fr 1fr auto 1fr; } .lv-feed .lot { display: none; } }
.lv-money b.pos, .lv-feed .pos { color: var(--accent); } .lv-money b.neg, .lv-feed .neg { color: var(--warn); }
.lv-verify { margin-top: 6px; }
/* globe tooltip */
.lv-tip { position: absolute; z-index: 4; min-width: 180px; padding: 10px 12px; border-radius: 12px; background: rgba(8,14,30,.92); border: 1px solid #2c3d36; box-shadow: 0 10px 30px rgba(0,0,0,.45); backdrop-filter: blur(6px); pointer-events: none; font-size: 13px; }
.lv-tip time { display: block; color: var(--muted); font-size: 11px; font-family: var(--mono); }
.lv-tip div { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.lv-tip b { font: 600 14px var(--mono); }
.lv-tip em { font: 600 10px var(--mono); font-style: normal; letter-spacing: .08em; padding: 2px 6px; border-radius: 5px; }
.lv-tip em.buy { color: #7aa7ff; background: rgba(122,167,255,.14); } .lv-tip em.sell { color: #c38cff; background: rgba(195,140,255,.14); }
.lv-tip span { color: var(--muted); font: 12px var(--mono); }
.lv-tip strong { display: block; font: 600 18px var(--mono); }
.lv-tip small { color: var(--muted); font-size: 11px; }
/* replay */
.lv-replay-btn { background: linear-gradient(120deg, rgba(61,220,151,.18), rgba(91,124,250,.18)); border: 1px solid rgba(61,220,151,.45); color: var(--text); }
.lv-replay-btn:hover { border-color: var(--accent); }
.lv-rp { position: absolute; z-index: 3; left: 50%; bottom: 52px; transform: translateX(-50%); width: min(340px, 70%); text-align: center; pointer-events: none; }
.lv-rp span { display: block; text-shadow: 0 0 8px #060b18, 0 0 3px #060b18; font: 600 11px var(--mono); letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.lv-rp i { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.lv-rp em { display: block; height: 100%; width: 0; background: var(--aurora); }
.is-replay .lv-core > span { color: #7aa7ff; }
.is-replay .lv-sats .s1, .is-replay .lv-sats .s2, .is-replay .lv-sats .s4 { opacity: .35; transition: opacity .4s; }
@media (max-width: 720px) { .lv-rp { top: 318px; bottom: auto; } .lv-legend { transition: opacity .3s; } .is-replay .lv-legend { opacity: 0; } }
/* live vs backtest */
.lv-verdict { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; margin: 0 0 12px; border: 1px solid rgba(122,167,255,.3); background: rgba(122,167,255,.06); }
.lv-verdict b { font: 700 28px/1 var(--display); color: #a9c4ff; flex: none; }
.lv-verdict p { margin: 0; font-size: 14px; color: var(--text); }
.lv-verdict.low { border-color: rgba(255,110,127,.4); background: rgba(255,110,127,.06); } .lv-verdict.low b { color: var(--warn); }
.lv-verdict.high { border-color: rgba(255,181,71,.4); background: rgba(255,181,71,.06); } .lv-verdict.high b { color: #ffb547; }
.lv-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.lv-key span { display: inline-flex; align-items: center; gap: 7px; }
.lv-key i { display: inline-block; width: 18px; height: 10px; border-radius: 3px; }
.lv-key .k-live { height: 3px; background: var(--accent); } .lv-key .k-med { height: 0; border-top: 2px dashed #7aa7ff; border-radius: 0; }
.lv-key .k-b50 { background: rgba(122,167,255,.3); } .lv-key .k-b80 { background: rgba(122,167,255,.14); }
.lv-fine { margin: 8px 0 0; font-size: 12px; color: var(--muted); }


/* ===================== TwinSweep product page ===================== */
a.promo { display: block; text-decoration: none; }
a.promo:hover { filter: brightness(1.05); }
.promo b { margin-left: 4px; }
/* hero */
.ts-hero .hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: center; }
.ts-title { margin: 0 0 22px; }
.ts-word { font: 800 clamp(64px, 9.6vw, 132px)/0.95 var(--brand); letter-spacing: -0.035em; }
.ts-word b { font-weight: 800; }
.ts-word .tw { color: var(--tw); }
.ts-word .sw { color: var(--sw); }
.ts-sub { font: 600 clamp(24px, 3.1vw, 40px)/1.15 var(--display); color: var(--text); margin-top: 14px; letter-spacing: -0.01em; }
html[lang="en"] .ts-sub { font-size: clamp(22px, 2.8vw, 36px); }
.ts-hero .hero-kicker { color: var(--gold); }
.ts-emblem { position: relative; aspect-ratio: 1; width: min(100%, 470px); justify-self: end; }
.ts-emblem::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(245,194,66,.16), rgba(255,138,61,.07) 55%, transparent 75%); filter: blur(10px); }
.ts-emblem canvas { position: relative; width: 100%; height: 100%; display: block; }
.ticker-track b.g { color: var(--gold); } .ticker-track b.o { color: var(--orange); }
@media (max-width: 860px) {
  .ts-hero .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .ts-emblem { order: -1; justify-self: start; width: 132px; margin: -8px 0 10px -10px; }
  .ts-word { font-size: clamp(56px, 17vw, 84px); }
}
/* why: feature cards + week */
.feat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; }
.feat svg { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.feat:nth-child(2n) svg { stroke: var(--orange); }
.feat h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
.week-card { margin: 16px 0 0; }
.readout .gold { color: var(--gold); } .readout .orange { color: var(--orange); } .readout b.muted { color: var(--muted); }
/* numbers */
.note-risk { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; border: 1px solid rgba(245,194,66,.35); background: rgba(245,194,66,.06); border-radius: var(--radius); padding: 14px 18px; margin: -12px 0 18px; font-size: 15px; color: var(--text); }
.note-risk b { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(245,194,66,.5); border-radius: 999px; padding: 2px 10px; }
.note-risk a { color: var(--gold); }
.dd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; margin-top: 16px; }
@media (max-width: 900px) { .dd-layout { grid-template-columns: 1fr; } }
.dd-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.dd-table caption { text-align: left; font: 600 15px var(--display); padding: 0 0 8px; color: var(--text); }
.dd-table th { font: 500 12px var(--mono); color: var(--muted); text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .04em; }
.dd-table td { text-align: right; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dd-table th:first-child, .dd-table td:first-child { text-align: left; }
.dd-table tbody tr { cursor: pointer; transition: background .2s; }
.dd-table tbody tr:hover { background: var(--surface-2); }
.dd-table tbody tr.on { background: rgba(255,110,127,.09); box-shadow: inset 3px 0 0 var(--warn); }
.dd-table td.neg { color: var(--warn); font-weight: 600; }
.dd-detail { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); padding: 16px 18px; }
.dd-detail .stag-facts { grid-template-columns: 1fr; }
.dd-detail .stag-months { max-height: none; }
.dd-detail .stag-months small { font-size: 11px; }
.dd-mark { cursor: pointer; }
.dd-mark:focus { outline: none; }
.dd-mark:focus circle { stroke-width: 3; }
.table-box { border: 0; }
#drawdown .table-box { overflow-x: auto; }
/* 3% vs 1.25% */
.cmp { overflow-x: auto; }
.cmp-t { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.cmp-t th, .cmp-t td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-t thead th { border-bottom: 1px solid var(--muted); }
.cmp-t thead small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.cmp-t tbody th { font-weight: 400; color: var(--muted); width: 30%; }
.cmp-t td { font-family: var(--mono); width: 35%; }
.cmp-h { display: inline-block; font: 600 13px var(--mono); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); }
.cmp-h.hot { border-color: var(--gold); color: var(--gold); }
.cmp-bar { display: block; height: 6px; margin-top: 7px; border-radius: 3px; width: 0; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.cmp-bar.neg { background: var(--warn); } .cmp-bar.pos { background: var(--accent); }
.cmp.in .cmp-bar { width: var(--w); }
/* year table */
table.ytable { min-width: 640px; }
table.ytable td { text-align: center; font-family: var(--mono); font-size: 13.5px; padding: 8px 6px; background: var(--bg); border-radius: 6px; }
table.ytable td b { font-weight: 600; }
/* gold vs bitcoin */
.mkt { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.mkt-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 18px 20px; --c: var(--gold); }
.mkt-card.btc { --c: var(--orange); }
.mkt-head { display: flex; align-items: center; gap: 10px; }
.mkt-head i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.mkt-card.btc .mkt-head i { border-radius: 3px; }
.mkt-head b { font: 600 18px var(--display); }
.mkt-head span { margin-left: auto; color: var(--muted); font-size: 13px; }
.mkt-net { font: 600 clamp(26px, 3vw, 34px) var(--display); color: var(--c); margin: 10px 0 12px; font-variant-numeric: tabular-nums; }
.mkt-net small { font-size: 14px; color: var(--muted); }
.mkt-share { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.mkt-share b { color: var(--text); font-family: var(--mono); }
.mkt-track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.mkt-track i { display: block; height: 100%; width: 0; background: var(--c); border-radius: 4px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.mkt.in .mkt-track i { width: var(--w); }
.mkt-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; }
.mkt-card dt { font-size: 12px; color: var(--muted); }
.mkt-card dd { margin: 2px 0 0; font: 600 17px var(--display); font-variant-numeric: tabular-nums; }
.mkt-card dd small { font: 400 12px var(--mono); color: var(--muted); }
/* live */
.live-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.live-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.live-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.live-card b { font: 600 22px var(--display); }
.live-card > span:not(.lc-tag):not(.lc-go) { color: var(--muted); font-size: 15px; }
.lc-tag { align-self: flex-start; font: 500 12px var(--mono); letter-spacing: .05em; color: var(--accent); border: 1px solid rgba(61,220,151,.45); border-radius: 999px; padding: 2px 10px; }
.lc-go { margin-top: 6px; color: var(--accent); font-weight: 500; }
.live-card.soon { opacity: .6; }
/* requirements */
.req-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
.req-side { display: grid; gap: 16px; }
@media (max-width: 860px) { .req-grid { grid-template-columns: 1fr; } }
.checks { list-style: none; margin: 14px 0 0; padding: 0; }
.checks li { position: relative; padding: 0 0 14px 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 1.6px solid var(--gold); background: radial-gradient(circle, rgba(245,194,66,.0) 0, transparent 0); }
.checks li::after { content: ""; position: absolute; left: 6.5px; top: 6.5px; width: 7px; height: 4px; border-left: 1.8px solid var(--gold); border-bottom: 1.8px solid var(--gold); transform: rotate(-45deg); }
.checks b { display: block; font-weight: 600; }
.checks span { color: var(--muted); font-size: 15px; }
.presets { display: grid; gap: 10px; margin-top: 14px; }
.preset { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; font-size: 14px; }
.preset span { color: var(--text); }
.preset span small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.preset b { font: 600 18px var(--mono); }
.preset i { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) var(--w), var(--surface-2) var(--w)); }
.preset.hot i { background: linear-gradient(90deg, var(--orange) var(--w), var(--surface-2) var(--w)); }
.preset.test { border-top: 1px dashed var(--line); padding-top: 10px; }
.preset.test span { color: var(--muted); }
.preset.test i { background: repeating-linear-gradient(135deg, var(--warn) 0 6px, rgba(255,110,127,.45) 6px 12px); }
.preset.test b { color: var(--warn); }
.steps3 { counter-reset: s3; list-style: none; padding: 0; margin: 12px 0 16px; }
.steps3 li { counter-increment: s3; position: relative; padding: 4px 0 10px 40px; }
.steps3 li::before { content: counter(s3); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #1d1503; font: 700 14px/28px var(--mono); text-align: center; }
/* coming soon */
.soon-note { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 16px !important; color: var(--text) !important; }
.soon-pill { font: 600 12px var(--mono); letter-spacing: .06em; color: var(--gold); border: 1px solid rgba(245,194,66,.55); background: rgba(245,194,66,.08); border-radius: 999px; padding: 3px 12px; }
.price.soon { font: 600 30px var(--display); color: var(--gold); }
.subscribe.pulse { animation: notifyPulse 1.6s ease-out 1; }
@keyframes notifyPulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.55); border-color: var(--accent); } 100% { box-shadow: 0 0 0 18px rgba(61,220,151,0); } }
.ch-mq i { background: #2b5fd9; font-size: 11px; }
.soon-banner { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; border: 1px solid rgba(245,194,66,.4); background: rgba(245,194,66,.06); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 24px; }
.soon-banner p { margin: 0; color: var(--text); flex: 1 1 320px; }

/* three KPI cards under the big figure */
.kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr; } }

@media (max-width: 560px) {
  .dd-table th:nth-child(2), .dd-table td:nth-child(2), .dd-table th:nth-child(4), .dd-table td:nth-child(4) { display: none; }
  .dd-table td, .dd-table th { padding: 9px 8px; }
}
.nw { white-space: nowrap; }
/* updates: the verified live account */
.signal-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; padding: 24px; border-radius: var(--radius); border: 1px solid rgba(61,220,151,.35); background: linear-gradient(135deg, rgba(61,220,151,.07), rgba(91,124,250,.05)); }
.signal-card b { display: block; font: 600 26px var(--display); margin: 10px 0 8px; }
.signal-card dl { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 10px; }
.signal-card dt { font-size: 12px; color: var(--muted); }
.signal-card dd { margin: 2px 0 0; font-weight: 600; }
.signal-card p { margin: 0; font-size: 14px; }
.sig-actions { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 760px) { .signal-card { grid-template-columns: 1fr; } .sig-actions { flex-direction: row; flex-wrap: wrap; } }
.page-head .soon-banner { margin-bottom: 18px; }

/* ===================== light theme: the few things that are not plain variables ===================== */
.theme-switch { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; padding: 0; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: color .2s, border-color .2s; }
.theme-switch:hover { color: var(--text); border-color: var(--muted); }
.theme-switch svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 380px) {
  .nav .wrap { gap: 6px; padding-left: 16px; padding-right: 16px; }
  .logo { font-size: 18px; gap: 7px; }
  .logo-mark { width: 26px; height: 26px; }
  .lang-switch { padding: 0 8px; min-width: 40px; }
  .nav .wrap > .btn-primary { padding: 8px 10px; font-size: 14px; }
  .nav-toggle { width: 40px; height: 40px; }
}
.theme-row { display: none; }
@media (max-width: 1100px) {
  .nav .wrap > .theme-switch { display: none; }
  .theme-row { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 6px; padding: 14px 10px 10px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; background: transparent; color: var(--muted); font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
  .theme-row:hover { color: var(--text); }
  .theme-row svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
}
:root[data-theme="light"] .lv-stage { background: radial-gradient(120% 90% at 50% 50%, #ffffff 0%, #e9eef8 75%); }
:root[data-theme="light"] .lv-stage::before { background-image: linear-gradient(rgba(42,102,217,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(42,102,217,.07) 1px, transparent 1px); }
:root[data-theme="light"] .lv-big { background-image: linear-gradient(180deg, #13b06d 0%, #087346 100%); filter: none; }
:root[data-theme="light"] .is-neg .lv-big { background-image: linear-gradient(180deg, #e8566b 0%, #b0263b 100%); filter: none; }
:root[data-theme="light"] .lv-sat.s1 b { color: #b26a00; } :root[data-theme="light"] .lv-sat.s2 b { color: #2a66d9; }
:root[data-theme="light"] .lv-sat.s1 { --c: #d98a00; } :root[data-theme="light"] .lv-sat.s2 { --c: #2a66d9; } :root[data-theme="light"] .lv-sat.s3 { --c: #0a8f57; } :root[data-theme="light"] .lv-sat.s4 { --c: #8a4fd8; }
:root[data-theme="light"] .lv-legend i.w { background: var(--accent); }
:root[data-theme="light"] .lv-legend i.n { background: var(--text); box-shadow: 0 0 0 3px rgba(11,20,48,.12); }
:root[data-theme="light"] .lv-feed em.buy, :root[data-theme="light"] .lv-tip em.buy { color: #2a66d9; background: rgba(42,102,217,.1); }
:root[data-theme="light"] .lv-feed em.sell, :root[data-theme="light"] .lv-tip em.sell { color: #8a4fd8; background: rgba(138,79,216,.1); }
:root[data-theme="light"] .lv-tip { background: rgba(255,255,255,.97); box-shadow: 0 10px 30px rgba(11,20,48,.15); }
:root[data-theme="light"] .lv-rp span { text-shadow: 0 0 8px var(--bg), 0 0 3px var(--bg); }
:root[data-theme="light"] .story-stage-inner { box-shadow: 0 10px 40px rgba(11,20,48,.08); }
:root[data-theme="light"] .feat, :root[data-theme="light"] .card, :root[data-theme="light"] .viz, :root[data-theme="light"] .kpi, :root[data-theme="light"] .plan, :root[data-theme="light"] .live-card, :root[data-theme="light"] .mkt-card { box-shadow: 0 1px 2px rgba(11,20,48,.04), 0 6px 20px rgba(11,20,48,.04); }
:root[data-theme="light"] .ts-emblem::before { background: radial-gradient(closest-side, rgba(245,194,66,.22), rgba(255,138,61,.08) 55%, transparent 75%); }
:root[data-theme="light"] dialog::backdrop { background: rgba(11,20,48,.45); }

/* ---- live page: share report (live-share.js) ---- */
[hidden] { display: none !important; }
.lv-share-btn { gap: 7px; }
.lv-share-btn svg { flex: none; }
@media (max-width: 560px) {
  .live-bar { align-items: stretch; }
  .live-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .live-actions .btn { width: 100%; min-height: 44px; padding: 8px 10px; line-height: 1.3; }
}
.share-dlg { width: min(980px, calc(100vw - 20px)); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); overflow: auto; }
.share-dlg .sd-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 0 22px; }
.share-dlg h2 { font-size: 22px; margin: 0; }
.sd-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; padding: 10px 22px 22px; align-items: start; }
.sd-preview { position: relative; display: flex; flex-direction: column; gap: 10px; justify-content: center; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-height: 280px; }
.sd-preview img { display: block; max-width: 100%; max-height: min(72vh, 700px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); -webkit-touch-callout: default; }
.sd-busy { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 13px; color: var(--muted); }
.sd-preview video, .sd-preview canvas { display: block; max-width: 100%; max-height: min(72vh, 700px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.sd-prog { position: absolute; left: 24px; right: 24px; bottom: 22px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.sd-prog i { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.sd-prog b { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .15s linear; }
.sd-prog span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.sd-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; max-width: 420px; }
.sd-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sd-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sd-opt > span { font-size: 14px; color: var(--muted); }
.sd-seg { margin-top: 0; }
.sd-seg button { font-family: var(--sans); }
.sd-opt select { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 15px var(--sans); padding: 6px 10px; max-width: 210px; }
.sd-actions { display: grid; gap: 10px; }
.sd-actions .btn { width: 100%; }
.sd-actions .btn:disabled { opacity: .55; cursor: progress; }
.sd-hint { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }
.sd-cap label { margin-bottom: 6px; }
.sd-cap textarea { display: block; width: 100%; min-height: 150px; resize: vertical; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 14px/1.55 var(--sans); padding: 10px 12px; margin-bottom: 8px; }
@media (max-width: 760px) {
  .sd-body { grid-template-columns: 1fr; padding: 6px 14px 18px; gap: 16px; }
  .sd-preview { padding: 10px; min-height: 200px; }
  .sd-preview img, .sd-preview video, .sd-preview canvas { max-height: 52vh; }
  .sd-cap textarea { font-size: 16px; }
}
:root[data-theme="light"] .sd-preview img { box-shadow: 0 10px 30px rgba(11,20,48,.18); }

/* ---- how it works: one-picture summary (index.html #how, replaces the scroll story) ---- */
.ig-trade { margin: 0 0 20px; padding: 22px 22px 18px; }
.ig-chart { position: relative; margin: 6px 0 4px; }
.ig-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ig-chart line, .ig-chart path, .ig-chart polyline { vector-effect: non-scaling-stroke; }
.ig-chart .px { fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.ig-chart .sw { stroke: var(--muted); stroke-width: 1.3; stroke-dasharray: 5 6; }
.ig-chart .buy { stroke: var(--accent); stroke-width: 2.4; }
.ig-chart .sell { stroke: var(--blue); stroke-width: 2.4; }
.ig-chart .sl0 { stroke: var(--warn); stroke-width: 2; stroke-dasharray: 6 5; }
.ig-chart .trail { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 5; }
.ig-chart .tp { stroke: var(--accent); stroke-width: 2.6; stroke-dasharray: 1 7; stroke-linecap: round; }
.ig-mark { position: absolute; transform: translate(-50%, -50%); width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--text); }
.ig-mark.fill { width: 16px; height: 16px; background: var(--accent); border: 3px solid var(--surface); }
.ig-mark.exit { width: 16px; height: 16px; background: var(--surface); border: 3px solid var(--accent); }
.ig-chart .lbl { font: 500 15px var(--mono); fill: var(--muted); }
.ig-chart .lbl.buy-t { fill: var(--accent); }
.ig-chart .lbl.sell-t { fill: var(--blue); }
.ig-chart .lbl.sl-t { fill: var(--warn); }
.ig-pin { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 500 13px/1 var(--mono); color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 0 3px var(--surface); }
.ig-legend { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.ig-legend li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.ig-legend b { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font: 500 12px/1 var(--mono); color: var(--accent-ink); background: var(--accent); }
.ig-keys { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ig-keys i { display: inline-block; width: 22px; height: 0; vertical-align: middle; margin-right: 8px; border-top: 2px dashed var(--warn); }
.ig-keys i.trail { border-top-color: var(--accent); }
.ig-keys i.tp { border-top: 3px dotted var(--accent); }
.ig-steps { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ig-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.ig-step-top { display: flex; align-items: center; justify-content: space-between; }
.ig-step .step-num { font-size: 24px; margin: 0; }
.ig-step svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ig-step:nth-child(2n) svg { stroke: var(--orange); }
.ig-step.ig-risk svg { stroke: var(--warn); }
.ig-step h3 { font-family: var(--display); font-size: 19px; font-weight: 600; }
.ig-step p { margin: 0; color: var(--muted); font-size: 15px; }
.ig-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.ig-chips span { font-size: 13px; font-weight: 500; line-height: 1.4; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }
.ig-chips .gold { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.ig-chips .orange { color: var(--orange); border-color: color-mix(in srgb, var(--orange) 50%, transparent); }
.ig-chips .warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.ig-risk { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.ig-stat { display: flex; align-items: center; gap: 14px; }
.ig-stat b { flex: none; font: 500 34px/1 var(--mono); color: var(--warn); }
.ig-stat span { font-size: 14px; line-height: 1.5; color: var(--muted); }
:root[data-theme="light"] .ig-step { box-shadow: 0 1px 2px rgba(11,20,48,.04), 0 6px 20px rgba(11,20,48,.04); }
@media (max-width: 980px) { .ig-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ig-chart .lbl { display: none; } .ig-legend { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .ig-steps { grid-template-columns: 1fr; } .ig-trade { padding: 16px 14px 14px; } .ig-chart svg { height: 210px; } .ig-pin { width: 22px; height: 22px; font-size: 12px; } }

/* ---------- v2.01: FX basket, version link, version history ---------- */
.ticker-track b.fx { color: var(--fx); }
.feat.fx svg { stroke: var(--fx); }
.hero-kicker .ver-link { color: inherit; text-decoration: none; border: 1px solid currentColor; border-radius: 999px; padding: 0 8px; margin-left: 2px; white-space: nowrap; }
.hero-kicker .ver-link:hover { color: var(--fx); }
.fx-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; }
.fx-layout .viz { margin: 0; }
.fx-cards { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx-cards .card { padding: 20px 20px 18px; }
.fx-cards h3 { font-size: 17px; color: var(--fx); }
.fx-cards p { font-size: 15px; }
#fx .note-risk { margin: 18px 0 0; }
@media (max-width: 900px) { .fx-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fx-cards { grid-template-columns: 1fr; } }
.versions { list-style: none; margin: 0; padding: 0 0 0 4px; }
.versions li { position: relative; padding: 0 0 22px 26px; border-left: 2px solid var(--line); }
.versions li:last-child { border-left-color: transparent; padding-bottom: 4px; }
.versions li::before { content: ""; position: absolute; left: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); box-sizing: border-box; }
.versions li.cur::before { background: var(--fx); border-color: var(--fx); }
.versions li.live::before { border-color: var(--accent); }
.v-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.v-head b { font: 600 17px var(--mono); color: var(--text); }
.v-date { color: var(--muted); font-size: 14px; }
.v-tag { font: 600 12px var(--mono); letter-spacing: .04em; border-radius: 999px; padding: 2px 10px; border: 1px solid currentColor; }
.v-tag.new { color: var(--fx); }
.v-tag.live { color: var(--accent); }
.versions p { color: var(--muted); margin: 6px 0 0; max-width: 780px; }
#versions .viz-note { max-width: 780px; margin-top: 14px; }
.readout .fx { color: var(--fx); }

/* ---------- test results (#numbers): IC Markets, single-year runs, built from static markup ---------- */
#yrHeat td.cell { opacity: 1; transform: none; }
#yrHeat td.cell:not(.tot):not(.none) { background: var(--heat); }
#yrHeat td.cell.none { background: transparent; }
#yrHeat td.tot b { font-weight: 500; }
.ysplit-leg { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.ysplit-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ysplit { display: grid; gap: 8px; }
.ysplit-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; }
.ysplit-row > span { font: 13px var(--mono); color: var(--text); }
.ysplit-bar { display: flex; gap: 2px; height: 28px; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.ysplit-bar i { flex: 0 1 var(--w); display: flex; align-items: center; justify-content: center; overflow: hidden; font: 500 12px var(--mono); font-style: normal; color: #0a0f1e; }
.ysplit i.g, .ysplit-leg i.g { background: var(--gold); }
.ysplit i.b, .ysplit-leg i.b { background: var(--orange); }
.ysplit i.f, .ysplit-leg i.f { background: var(--fx); }
#numbers .mstats small { display: block; font-size: 12px; margin-top: 2px; }
:root[data-theme="light"] .ysplit-bar i { color: #fff; }
@media (max-width: 560px) {
  .ysplit-row { grid-template-columns: 46px minmax(0, 1fr); gap: 8px; }
  .ysplit-bar i { font-size: 10.5px; }
}

/* ---------- review fixes (23 Oct 2026): wide tables and the #numbers KPIs on phones ---------- */
@media (max-width: 760px) {
  /* tables wider than the screen scroll sideways: keep the row labels in view */
  table.heat th[scope="row"], table.heat thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--surface); box-shadow: 0 0 0 3px var(--surface); }
  table.heat th[scope="row"] { max-width: 8.5em; }
  .heat.months th[scope="row"] { white-space: nowrap; }
  /* fade the right edge while columns are still hidden (class set at the end of results.js) */
  .heat-box.more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
  /* six KPIs: two per row instead of one */
  #numbers .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #numbers .kpi { padding: 14px; }
  #numbers .kpi b { font-size: 24px; }
  #numbers .kpi small { display: block; line-height: 1.45; }
}
