/* Styles for the server-rendered SEO pages (/learn, /glossary, /t/<ticker>, /screens). */
/* The same typeface as the app (src/index.css). */
@font-face {
  font-family: 'Geist Pixel';
  src: url('https://unpkg.com/geist@1.7.0/dist/fonts/geist-pixel/GeistPixel-Square.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --muted: #9a9a9a;
  --green: #84cc16;
  --up: #22c55e;
  --down: #ef4444;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 'Geist Pixel', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: #a3e635; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem 16px;
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}

.site-nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: 0.9rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-app {
  color: #0a0a0a;
  background: var(--text);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
}

.page { max-width: 760px; margin: 0 auto; padding: 1.5rem 16px 3rem; }

.crumbs { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.crumbs .sep { margin: 0 0.25rem; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0.25rem 0 0.75rem; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 0.6rem; }
h3 { font-size: 1.1rem; margin: 1.6rem 0 0.4rem; }
p, li { color: #d4d4d4; }
.lede { font-size: 1.1rem; color: var(--text); }
.meta { font-size: 0.8rem; color: var(--muted); }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
pre, code, kbd, samp { font-family: inherit; }
code { background: var(--surface); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.9em; }
blockquote { border-left: 3px solid var(--green); margin: 1rem 0; padding: 0.25rem 1rem; color: var(--muted); }

.signal-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sig-strong_buy, .sig-buy { background: rgba(34, 197, 94, 0.15); color: var(--up); }
.sig-strong_sell, .sig-sell { background: rgba(239, 68, 68, 0.15); color: var(--down); }
.sig-neutral { background: #262626; color: var(--text); }
.up { color: var(--up); }
.down { color: var(--down); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin: 1.25rem 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem 1rem; }
.stat .label { display: block; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat .value { font-size: 1.25rem; font-weight: 700; }

.cta {
  margin: 2.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 10px;
}
.cta p { margin: 0 0 0.75rem; color: var(--text); }
.cta-btn {
  display: inline-block;
  background: var(--green);
  color: #0a0a0a;
  font-weight: 700;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: 8px;
}
.cta-btn:hover { color: #0a0a0a; background: #a3e635; }

.faq details { border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); }
.faq details p { margin: 0.5rem 0 0; }

.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem 1.25rem; padding: 0; list-style: none; }
.link-grid li { margin: 0.2rem 0; }
.link-grid .desc { display: block; font-size: 0.8rem; color: var(--muted); }

.related { margin-top: 2.5rem; }

.site-footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 16px 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }

@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  .site-nav { gap: 0.7rem; }
}

.stat .signal-badge { white-space: nowrap; font-size: 0.85rem; padding: 0.2rem 0.55rem; }

/* The signal is the headline figure and its badge is the widest value, so its tile gets two columns. */
@media (min-width: 360px) {
  .stat:has(.signal-badge) { grid-column: span 2; }
}

/* Robinhood invite (referral link): one compact row */
.referral { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; max-width: 460px; margin: 1rem 0; padding: 0.55rem 0.8rem; border: 1px solid rgba(0, 200, 5, 0.3); border-radius: 8px; background: rgba(0, 200, 5, 0.06); }
.referral div { display: flex; flex-direction: column; gap: 0.1rem; font-size: 0.72rem; color: var(--muted); }
.referral strong { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.referral-btn { flex-shrink: 0; padding: 0.35rem 0.75rem; border-radius: 999px; background: #00c805; color: #04140a; font-size: 0.75rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
