/* btctradingsimulator.com — page styles (consumes tokens.css) */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

.site-body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}

.site-body .num,
.site-body .display { font-variant-numeric: tabular-nums; }
.site-body .display { font-family: var(--font-display); }

.site-wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--space-5); }
@media (min-width: 1024px) { .site-wrap { max-width: 880px; } }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding: var(--space-5) 0;
}
.wordmark {
  font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.wordmark span { color: var(--ink-3); font-weight: 400; }
.site-nav { display: flex; gap: var(--space-5); align-items: center; }
.site-nav a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-chip);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); cursor: pointer; padding: 0;
  transition: color 0.15s, border-color 0.15s, background 0.25s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- banner (stale / halted) ---------- */
.banner {
  display: flex; gap: var(--space-3); align-items: baseline;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--warn-soft);
  padding: var(--space-3) var(--space-4); margin: var(--space-2) 0 var(--space-4);
  font-size: 14.5px; color: var(--ink-2);
}
.banner.halted { background: var(--accent-soft); }
.banner b { color: var(--ink); font-weight: 600; }
.banner .banner-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--warn); position: relative; top: -1px;
}
.banner.halted .banner-dot { background: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: var(--space-6) 0 var(--space-6); }
.hero-kicker {
  font-size: 14.5px; color: var(--ink-2); margin: 0 0 var(--space-4);
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center;
}
.hero-roi {
  font-family: var(--font-display); font-variant-numeric: tabular-nums;
  font-size: clamp(72px, 16vw, 132px); line-height: 1; letter-spacing: -0.02em;
  margin: 0; font-weight: 600; display: flex; align-items: baseline; gap: 6px;
}
.hero-roi .pct { font-size: 0.45em; color: var(--ink-3); font-weight: 500; }
.hero-roi.is-pos { color: var(--pos); }
.hero-roi.is-neg { color: var(--neg); }
.hero-roi.is-zero { color: var(--ink); }
.hero-dollars {
  font-family: var(--font-display); font-variant-numeric: tabular-nums;
  font-size: 22px; color: var(--ink-2); margin: var(--space-3) 0 0;
}
.hero-dollars .arr { color: var(--ink-3); padding: 0 4px; }
.hero-vs {
  margin: var(--space-4) 0 0; font-size: 17px; color: var(--ink-2);
  display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap;
}
.hero-vs .vs-num {
  font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 600;
}
.vs-num.is-pos { color: var(--pos); }
.vs-num.is-neg { color: var(--neg); }
.vs-num.is-zero { color: var(--ink); }
.hero-vs .vs-note { font-size: 14px; color: var(--ink-3); }

/* paper money badge — play-money ticket */
.paper-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-strong);
  border: 1.5px dashed var(--accent);
  background: var(--accent-soft);
  border-radius: 6px; padding: 6px 12px;
  transform: rotate(-1.2deg);
}
.paper-badge .pb-coin {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid currentColor; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8.5px; letter-spacing: 0; font-weight: 700;
}

/* freshness chip */
.fresh-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius-chip); padding: 4px 12px;
  font-variant-numeric: tabular-nums;
}
.fresh-chip .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--pos); flex: none;
}
.fresh-chip.is-stale .dot { background: var(--warn); }
.fresh-chip .sep { color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .fresh-chip .dot.pulse { animation: chip-pulse 2.4s ease-in-out 5; }
}
@keyframes chip-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--pos-soft); }
  50% { box-shadow: 0 0 0 5px var(--pos-soft); }
}

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}

/* stance card */
.stance-card { padding: var(--space-5); margin: 0 0 var(--space-6); }
.stance-top { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.stance-pill {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: var(--radius-chip); padding: 4px 12px;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.stance-pill.is-long  { background: var(--accent-soft); color: var(--accent-strong); border-color: transparent; }
.stance-pill.is-short { background: var(--accent-soft); color: var(--accent-strong); border-color: transparent; }
.stance-label { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.stance-sentence { font-size: 21px; line-height: 1.45; margin: 0; font-weight: 500; }
.stance-sentence em { font-style: normal; font-weight: 700; }
.stance-why {
  margin-top: var(--space-3); background: none; border: none; padding: 0;
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--accent);
  cursor: pointer; text-decoration: underline; text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.stance-explain {
  margin: var(--space-3) 0 0; padding: var(--space-3) var(--space-4);
  background: var(--surface-2); border-radius: 10px;
  font-size: 15px; color: var(--ink-2); line-height: 1.6;
}

/* ---------- tooltip (jargon) ---------- */
.term {
  position: relative; cursor: help;
  text-decoration: underline; text-decoration-style: dotted;
  text-decoration-color: var(--accent); text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.term-pop {
  position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 10px);
  transform: translateX(-50%); width: 250px;
  background: var(--ink); color: var(--bg);
  font-size: 13.5px; line-height: 1.5; font-weight: 400; font-style: normal;
  padding: 10px 13px; border-radius: 10px;
  box-shadow: 0 8px 24px oklch(0% 0 0 / 0.18);
  text-align: left;
}
.term-pop::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--ink);
}
.term-pop b { font-weight: 700; }

/* ---------- chart ---------- */
.chart-card { padding: var(--space-5); margin: 0 0 var(--space-5); }
.chart-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4);
}
.chart-title { font-size: 16px; font-weight: 600; margin: 0; }
.chart-sub { font-size: 13.5px; color: var(--ink-3); margin: 2px 0 0; }
.range-tabs { display: flex; gap: 4px; background: var(--surface-2); border-radius: var(--radius-chip); padding: 3px; }
.range-tabs button {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: none; border: none; border-radius: var(--radius-chip);
  padding: 4px 14px; cursor: pointer; min-height: 28px;
}
.range-tabs button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px oklch(24% 0.01 75 / 0.12); }
.chart-svg { display: block; width: 100%; height: auto; }
.chart-empty {
  padding: var(--space-7) var(--space-4); text-align: center;
  color: var(--ink-2); font-size: 15px;
}
.chart-empty .display { font-size: 15px; color: var(--ink-3); }

/* ---------- honesty strip ---------- */
.honesty { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin: 0 0 var(--space-7); }
@media (min-width: 640px) { .honesty { grid-template-columns: repeat(3, 1fr); } }
.stat-tile { padding: var(--space-4) var(--space-5); }
.stat-tile .stat-num {
  font-family: var(--font-display); font-variant-numeric: tabular-nums;
  font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--ink);
}
.stat-tile .stat-label { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.stat-tile .stat-note { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.45; }

/* ---------- section scaffolding ---------- */
.section { margin: 0 0 var(--space-8); }
.section-kicker {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 var(--space-2);
}
.section-title { font-size: 27px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 var(--space-2); }
.section-lede { font-size: 16.5px; color: var(--ink-2); margin: 0 0 var(--space-5); max-width: 56ch; text-wrap: pretty; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: var(--space-3); counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
.step { padding: var(--space-5); position: relative; }
.step-glyph {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 15px; font-weight: 700;
  margin-bottom: var(--space-3);
}
.step h3 { font-size: 17px; margin: 0 0 6px; font-weight: 700; }
.step p { font-size: 15px; color: var(--ink-2); margin: 0; line-height: 1.55; text-wrap: pretty; }
.step .step-n {
  position: absolute; top: var(--space-4); right: var(--space-4);
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* ---------- lab notes ---------- */
.lab-list { display: grid; gap: var(--space-3); }
.lab-card {
  display: block; padding: var(--space-4) var(--space-5);
  text-decoration: none; color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.lab-card:hover { border-color: var(--accent); }
.lab-card .lab-meta {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px;
  display: flex; gap: var(--space-2); align-items: center;
}
.lab-verdict {
  display: inline-block; border-radius: 4px; padding: 1px 7px;
  font-weight: 700; letter-spacing: 0.08em;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.lab-card h3 { font-size: 18px; margin: 0 0 4px; font-weight: 650; letter-spacing: -0.005em; }
.lab-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }
.lab-card .lab-read { font-size: 13.5px; color: var(--accent); font-weight: 600; margin-top: 8px; display: inline-block; }

/* ---------- email capture ---------- */
.capture { padding: var(--space-6) var(--space-5); text-align: center; }
.capture h2 { font-size: 23px; margin: 0 0 6px; letter-spacing: -0.01em; }
.capture p { font-size: 15.5px; color: var(--ink-2); margin: 0 auto var(--space-4); max-width: 44ch; }
.capture-form { display: flex; gap: var(--space-2); max-width: 440px; margin: 0 auto; }
.capture-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 15.5px;
  padding: 12px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  min-height: 48px;
}
.capture-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.capture-form button {
  font: inherit; font-size: 15px; font-weight: 600;
  background: var(--accent); color: var(--on-accent);
  border: none; border-radius: 10px; padding: 12px 22px; cursor: pointer;
  min-height: 48px; flex: none;
}
.capture-form button:hover { background: var(--accent-strong); }
.capture .capture-alt { font-size: 14px; color: var(--ink-2); margin-top: var(--space-4); }
@media (max-width: 480px) { .capture-form { flex-direction: column; } }

/* ---------- ad slot ---------- */
.ad-slot { margin: 0 0 var(--space-7); }
.ad-slot.is-empty { display: none; }
.ad-slot-frame {
  border: 1.5px dashed var(--line); border-radius: var(--radius-card);
  min-height: 110px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  color: var(--ink-3); font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, var(--line-soft) 14px 15px);
}
.ad-slot-frame .ad-note { letter-spacing: 0.02em; text-transform: none; font-size: 11.5px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: var(--space-6) 0 var(--space-7);
  font-size: 14px; color: var(--ink-2); line-height: 1.65;
}
.site-footer .foot-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .site-footer .foot-grid { grid-template-columns: 1.6fr 1fr; } }
.site-footer h4 {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 var(--space-2);
}
.site-footer p { margin: 0 0 var(--space-2); text-wrap: pretty; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink-2); }
.foot-legal { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-3); }

/* ---------- hero count-up respects reduced motion via JS ---------- */
@media (prefers-reduced-motion: reduce) {
  .site-body * { animation: none !important; transition: none !important; }
}

/* ---------- mobile hygiene (2026-06-11) ----------
   Real phones (360-393px) are narrower than the wordmark + nav row; without
   these rules the header overflows, the theme toggle bleeds past the right
   edge, and the page gains a horizontal scroll. */
html, body { overflow-x: hidden; }
.site-header { flex-wrap: wrap; row-gap: var(--space-2); }
.site-nav { margin-left: auto; }
.site-nav a { white-space: nowrap; }
.theme-toggle { flex: none; }
@media (max-width: 480px) {
  .site-wrap { padding: 0 var(--space-4); }
  .wordmark { font-size: 13px; }
  .site-nav { gap: var(--space-4); }
  .site-nav a { font-size: 13.5px; }
  .hero-roi { font-size: clamp(56px, 17vw, 132px); }
  .hero-dollars { font-size: 19px; }
  .term-pop { width: min(250px, 82vw); }
}
