/* $RADISH · BUY AND RETIRE
   Stock-terminal theme matched to the radish branding: green-black board,
   terminal-green figures, chunky display type, live "retirement statement"
   panel as the signature element. variance 6 / motion 3 / density 6. */

:root {
  --bg: #051309;           /* board black-green */
  --panel: #0a1d10;        /* raised panel */
  --panel-2: #0e2415;      /* hover / inset */
  --ink: #dcefdc;          /* near-white green-tinted text */
  --muted: #7ba387;
  --rule: #1b3a24;         /* hairlines */
  --accent: #38e05b;       /* terminal green, the one accent */
  --accent-dim: #1d8f3c;
  --radius: 4px;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --disp: 'Archivo Black', 'Barlow', sans-serif;
  --sans: 'Barlow', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* faint price-grid backdrop, like the branding board */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(56, 224, 91, 0.035) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(56, 224, 91, 0.025) 119px 120px);
}
main, header.top { position: relative; z-index: 1; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--mono); }

/* ── chrome ─────────────────────────────────────────────── */
.top {
  display: flex; align-items: center; gap: 28px;
  max-width: 1160px; margin: 0 auto; padding: 18px 24px;
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  font: 15px/1 var(--disp); letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap;
}
.wordmark img { border-radius: 50%; border: 1px solid var(--rule); }
.wordmark em { font-style: normal; color: var(--accent); }
.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); }
.topnav a:hover { color: var(--accent); }

.btn {
  display: inline-block; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 11px 18px; font: 600 14px/1 var(--sans); text-decoration: none;
  cursor: pointer; background: var(--panel); color: var(--ink);
}
.btn-buy {
  background: var(--accent); border-color: var(--accent); color: #05130a;
  font-weight: 600; box-shadow: 0 0 18px rgba(56, 224, 91, 0.35);
}
.btn-buy:hover { background: #4dee6e; }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--accent-dim); }

/* ── brand banner ───────────────────────────────────────── */
.brandbar { max-width: 1160px; margin: 4px auto 0; padding: 0 24px; }
.brandbar img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(56, 224, 91, 0.12);
}

/* ── hero ───────────────────────────────────────────────── */
.hero {
  max-width: 1160px; margin: 44px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: 56px; align-items: start;
}
.hero-kicker {
  font: 600 12px/1 var(--mono); letter-spacing: 0.14em; color: var(--accent);
  margin-bottom: 18px;
}
.hero h1 {
  font: clamp(30px, 4.6vw, 52px)/1.12 var(--disp);
  letter-spacing: 0.01em; text-transform: uppercase;
  text-shadow: 0 0 30px rgba(56, 224, 91, 0.25);
}
.hero-sub { margin: 20px 0 26px; max-width: 48ch; color: var(--muted); font-size: 17px; }

.ca-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 10px 12px; max-width: 560px;
}
.ca-label { font: 600 12px/1 var(--mono); color: var(--accent); }
.ca-bar code {
  font: 500 13px/1 var(--mono); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; flex: 1; min-width: 0; color: var(--ink);
}
.btn-copy { padding: 7px 12px; font-size: 12px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ── the statement (signature element) ──────────────────── */
.statement {
  position: relative; background: var(--panel);
  border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: inset 0 0 60px rgba(5, 19, 9, 0.8), 0 0 34px rgba(56, 224, 91, 0.10);
  padding: 24px 24px 18px; font-size: 14px;
}
.st-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  border-bottom: 2px solid var(--accent-dim); padding-bottom: 14px; margin-bottom: 12px;
}
.st-firm { font: 16px/1.2 var(--disp); letter-spacing: 0.04em; }
.st-firm span { display: block; font: 600 9.5px/1.8 var(--mono); letter-spacing: 0.24em; color: var(--accent); }
.st-meta { text-align: right; font: 500 10.5px/1.5 var(--mono); color: var(--muted); }

.st-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 7px 0; border-bottom: 1px dotted var(--rule);
}
.st-row span:first-child { color: var(--muted); }
.st-row-foot b { color: var(--accent); }

.st-section {
  font: 600 10.5px/1 var(--mono); letter-spacing: 0.16em; color: var(--muted);
  margin: 18px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--accent-dim);
}
.st-holdings { list-style: none; padding: 0; margin: 0 0 16px; }
.st-holdings li {
  display: grid; grid-template-columns: 20px 64px 1fr auto;
  gap: 10px; align-items: baseline; padding: 8px 6px;
  border-bottom: 1px dotted var(--rule);
}
.st-holdings .idx { font: 500 11px/1 var(--mono); color: var(--muted); }
.st-holdings .sym { font: 600 14px/1 var(--mono); color: var(--ink); }
.st-holdings .nam { color: var(--muted); font-size: 13px; }
.st-holdings .amt { font-size: 13px; color: var(--muted); }
.st-holdings li.is-next {
  background: var(--panel-2); border-radius: var(--radius);
  border-bottom-color: transparent; outline: 1px solid var(--accent-dim);
}
.st-holdings li.is-next .sym::after {
  content: '▲ next'; font: 600 10px/1 var(--mono); color: var(--accent); margin-left: 8px;
}
.st-holdings li.is-held .amt { color: var(--accent); font-weight: 600; }

.st-note { margin-top: 10px; font: 500 11px/1.5 var(--mono); color: var(--muted); }
.st-stamp {
  position: absolute; right: 16px; bottom: 40px; transform: rotate(-12deg);
  border: 2.5px solid var(--accent); border-radius: var(--radius);
  color: var(--accent); font: 700 12.5px/1.3 var(--mono); letter-spacing: 0.08em;
  padding: 6px 10px; text-align: center; opacity: 0.65; pointer-events: none;
  mask-image: radial-gradient(ellipse at 40% 60%, #000 55%, rgba(0,0,0,0.5) 100%);
}

/* ── ticker ─────────────────────────────────────────────── */
.ticker {
  margin: 54px 0 0; border-top: 1px solid var(--accent-dim); border-bottom: 1px solid var(--accent-dim);
  overflow: hidden; background: var(--panel); white-space: nowrap;
}
.ticker-track {
  display: inline-block; padding: 10px 0;
  font: 500 13px/1 var(--mono);
  animation: tick 36s linear infinite;
}
.ticker-track span { margin: 0 22px; color: var(--muted); }
.ticker-track b { color: var(--accent); font-weight: 600; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── live ───────────────────────────────────────────────── */
.live, .how { max-width: 1160px; margin: 0 auto; padding: 72px 24px 0; }
h2 {
  font: clamp(22px, 3vw, 30px)/1.15 var(--disp); text-transform: uppercase;
  letter-spacing: 0.02em; margin-bottom: 26px;
}

.live-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.live-totals { display: flex; gap: 34px; }
.tot { display: flex; flex-direction: column; }
.tot-num { font: 600 26px/1.15 var(--mono); color: var(--accent); }
.tot-lab { font-size: 12.5px; color: var(--muted); }

.live-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.feed {
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 18px 20px;
}
.feed h3 { font: 600 12px/1 var(--mono); letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }
.feed ul { list-style: none; padding: 0; max-height: 340px; overflow-y: auto; }
.feed li {
  display: flex; gap: 10px; align-items: baseline; padding: 8px 0;
  border-bottom: 1px dotted var(--rule); font-size: 13.5px;
}
.feed-empty { color: var(--muted); }
.f-sym { font: 600 13px/1 var(--mono); min-width: 58px; color: var(--ink); }
.f-det { flex: 1; color: var(--muted); }
.f-det a { color: var(--accent); }
.f-ts { font: 500 11px/1 var(--mono); color: var(--muted); }
.paper {
  font: 600 10px/1 var(--mono); color: var(--accent);
  border: 1px solid var(--accent-dim); border-radius: var(--radius); padding: 2px 5px;
}

/* ── how ────────────────────────────────────────────────── */
.rail { list-style: none; padding: 0; counter-reset: stop; max-width: 720px; }
.rail-stop {
  counter-increment: stop; position: relative;
  padding: 0 0 28px 58px; border-left: 1px solid var(--rule); margin-left: 19px;
}
.rail-stop:last-child { border-left-color: transparent; }
.rail-stop::before {
  content: counter(stop, decimal-leading-zero);
  position: absolute; left: -20px; top: -2px;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--accent-dim); border-radius: 50%;
  font: 600 13px/1 var(--mono); color: var(--accent);
}
.rail-stop h3 { font: 16px/1.3 var(--disp); letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 6px; }
.rail-stop p { color: var(--muted); max-width: 58ch; }
.how-note { margin-top: 8px; font-size: 13px; color: var(--muted); max-width: 76ch; }

/* ── footer ─────────────────────────────────────────────── */
.foot {
  max-width: 1160px; margin: 80px auto 0; padding: 28px 24px 44px;
  border-top: 2px solid var(--accent-dim);
  display: grid; gap: 14px;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { border-radius: 50%; border: 1px solid var(--rule); }
.foot-word { font: 13px/1 var(--disp); }
.foot-word em { font-style: normal; color: var(--accent); }
.foot-brand p { color: var(--muted); font-size: 13px; }
.foot-ca { font-size: 13px; color: var(--muted); }
.foot-ca code { font: 500 12px/1 var(--mono); word-break: break-all; color: var(--ink); }
.foot-fine { font: 500 10.5px/1.7 var(--mono); color: var(--muted); max-width: 92ch; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .live-cols { grid-template-columns: 1fr; }
  .live-totals { gap: 22px; }
}
@media (max-width: 480px) {
  .top { flex-wrap: wrap; gap: 12px; }
  .topnav { display: none; }
  .top .btn-buy { margin-left: auto; }
  .brandbar { padding: 0 16px; }
  .hero { padding: 0 16px; margin-top: 32px; }
  .live, .how { padding: 56px 16px 0; }
  .statement { padding: 18px 14px 14px; font-size: 13px; }
  .st-holdings li { grid-template-columns: 16px 56px 1fr auto; gap: 6px; }
  .st-stamp { display: none; }
  .tot-num { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
}
