/*
 * The public marketing page only. The app's own pages use site.css and stay light.
 *
 * House style: dark ground like a trading surface, but quiet — sentence-case headings at normal
 * weight, figures in monospace, hairline rules instead of cards. The page argues for patience, so
 * it shouldn't shout. Color is spent only on data: the IV Rank bands match the dashboard's.
 */
:root {
  --m-bg: #0a0a0a;
  --m-raise: #101013;
  --m-text: #a1a1aa;
  --m-dim: #71717a;
  --m-dimmer: #52525b;
  --m-white: #fafafa;
  --m-line: rgb(255 255 255 / 0.09);
  --m-line-strong: rgb(255 255 255 / 0.22);
  --m-fill: rgb(255 255 255 / 0.025);
  --m-accent: #38bdf8;
  /* IV Rank bands, matching the dashboard's low/high colors. */
  --m-low: #93c5fd;
  --m-high: #fcd34d;
  --m-up: #86efac;
  --m-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--m-bg);
  color: var(--m-text);
  font-family: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgb(255 255 255 / 0.18); }
a { color: inherit; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.m-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--m-line);
  background: rgb(10 10 10 / 0.85);
  backdrop-filter: blur(10px);
}
.m-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.75rem;
}
.m-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--m-white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.m-brand span { color: var(--m-dim); font-weight: 400; }
.m-brand .mark { height: 0.78em; width: auto; aspect-ratio: 183 / 77; flex: none; }
.m-nav { display: flex; align-items: center; gap: 1.5rem; }
.m-nav a { font-size: 0.85rem; color: var(--m-text); text-decoration: none; }
.m-nav a:hover { color: var(--m-white); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  border-radius: 6px;
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-solid { background: var(--m-white); color: #09090b; }
.btn-solid:hover { background: #e4e4e7; }
.btn-ghost { border-color: var(--m-line-strong); color: var(--m-white); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.06); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }

/* ── Type ───────────────────────────────────────────────────────────────── */
section { padding: 4.5rem 0; border-top: 1px solid var(--m-line); }
section[id] { scroll-margin-top: 4.5rem; }
.hero { border-top: 0; padding-top: 5rem; }

.eyebrow {
  font-family: var(--m-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--m-dimmer);
  margin: 0 0 1.25rem;
}
h1, h2, h3 { color: var(--m-white); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 2.85rem); line-height: 1.15; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.7rem); line-height: 1.25; }
h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
p { margin: 0; }
.lede { font-size: 1.05rem; max-width: 36rem; margin-top: 1.25rem; }
.section-intro { max-width: 36rem; margin-top: 0.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.hero-note { margin-top: 1rem; font-size: 0.82rem; color: var(--m-dimmer); }

/* ── Data artifacts ─────────────────────────────────────────────────────── */
.figure {
  margin-top: 2.5rem;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  background: var(--m-raise);
  overflow: hidden;
}
.figure-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--m-line);
  font-family: var(--m-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--m-dim);
}
.figure-note {
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--m-line);
  font-size: 0.78rem;
  color: var(--m-dimmer);
}
.scroll-x { overflow-x: auto; }

table.mkt {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--m-mono);
  font-size: 0.82rem;
  white-space: nowrap;
}
table.mkt th {
  text-align: right;
  font-weight: 500;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--m-dimmer);
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--m-line);
}
table.mkt td {
  text-align: right;
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.05);
  color: var(--m-text);
}
table.mkt tr:last-child td { border-bottom: 0; }
table.mkt th:nth-child(2), table.mkt td:nth-child(2) { text-align: left; }
table.mkt td.sym { color: var(--m-white); }
table.mkt td.score { color: var(--m-white); }
.up { color: var(--m-up); }
.rank-low { color: var(--m-low); }
.rank-high { color: var(--m-high); }
.dash { color: var(--m-dimmer); }

/* ── Columns ────────────────────────────────────────────────────────────── */
.cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2.5rem;
}
.col p { font-size: 0.9rem; }
.col .stat {
  display: block;
  font-family: var(--m-mono);
  font-size: 1.6rem;
  color: var(--m-white);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.col .stat small { font-size: 0.75rem; color: var(--m-dim); letter-spacing: 0.05em; }

/* ── Evening timeline ───────────────────────────────────────────────────── */
.timeline { margin-top: 2.5rem; display: grid; gap: 0; }
.tl-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--m-line);
}
.tl-row:last-child { border-bottom: 1px solid var(--m-line); }
.tl-time {
  font-family: var(--m-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--m-dimmer);
  padding-top: 0.15rem;
}
.tl-row p { font-size: 0.9rem; }

/* ── Limits ─────────────────────────────────────────────────────────────── */
.limits ul { margin: 2rem 0 0; padding: 0; list-style: none; max-width: 44rem; }
.limits li { padding: 0.85rem 0 0.85rem 1.5rem; border-top: 1px solid var(--m-line); position: relative; font-size: 0.9rem; }
.limits li:last-child { border-bottom: 1px solid var(--m-line); }
.limits li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--m-dimmer);
  font-family: var(--m-mono);
}

/* ── Closing ────────────────────────────────────────────────────────────── */
.closing { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.closing p { margin-top: 0.6rem; max-width: 30rem; font-size: 0.9rem; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.m-footer { border-top: 1px solid var(--m-line); padding: 2.5rem 0; }
.m-footer .wrap { display: grid; gap: 1rem; }
.m-footer .fine { font-size: 0.78rem; color: var(--m-dimmer); max-width: 46rem; }
.m-footer .tagline {
  font-family: var(--m-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--m-dim);
}

@media (max-width: 640px) {
  section { padding: 3rem 0; }
  .m-nav .hide-sm { display: none; }
  .tl-row { grid-template-columns: 1fr; gap: 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
