/* CALLED.
   Neutral black, one quiet surface step, hairlines you have to look for. The periwinkle is
   sampled from our own logo; the green is pump.fun's own, read out of their logomark and UI.
   Colour appears only where it means something: a state, a verdict, a clock. */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500&display=swap");

:root {
  --bg:        #0a0a0a;
  --surface:   #131314;
  --surface-2: #1a1a1c;
  --raise:     #202024;
  --line:      #1f2126;
  --line-2:    #2b2e35;

  --ink:   #ffffff;
  --ink-2: #b4b9c1;
  --ink-3: #979da6;
  --ink-4: #82888f;   /* the faintest grey that still clears 4.5:1 on #0a0a0a */

  --brand: #b0b0d0;   /* the glyph on our own logo */
  --navy:  #223058;   /* its body */
  --pump:  #86efac;   /* pump.fun's own green, read off their UI (logomark pill: #5FCB88) */

  --green: #86efac;
  --amber: #e9b949;
  --red:   #f0705f;

  --sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --pill: 999px;

  --gut: clamp(1.125rem, 0.7rem + 1.8vw, 2rem);
  --sp:  clamp(3.25rem, 2.25rem + 4vw, 5.5rem);   /* one rhythm between sections */
  --page: 1100px;
  --read: 720px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --quick: 150ms var(--ease);
  --slow: 700ms var(--ease);

  --z-sticky: 100;
  --z-overlay: 200;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;               /* `hidden` would make body a scroll box and break sticky */
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 500; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.2rem + 3.9vw, 4.1rem); line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.3rem); line-height: 1.1; }
h3 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.015em; font-weight: 500; }
p  { margin: 0 0 0.9em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(1rem, 0.96rem + 0.35vw, 1.1875rem); line-height: 1.55; color: var(--ink-2); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.dim { color: var(--ink-3); }
.faint { color: var(--ink-4); }
.in { color: var(--brand); }
.pump { color: var(--pump); }
.out { color: var(--red); }
.center { text-align: center; }
.mx { margin-inline: auto; }

::selection { background: #2b2e35; color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; border-radius: 4px; }

* { scrollbar-width: thin; scrollbar-color: #2b2e35 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2b2e35; border-radius: var(--pill); border: 3px solid var(--bg); background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #3a3f48; background-clip: padding-box; }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: var(--read); margin-inline: auto; }

/* ---------------------------------------------------------------- header */
.hdr {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  max-width: var(--page); margin-inline: auto; padding: 0 var(--gut);
  height: 62px; display: flex; align-items: center; gap: clamp(0.6rem, 2vw, 1.5rem);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15.5px; color: var(--ink); letter-spacing: -0.01em; }
.brand .mark { width: 30px; height: 30px; flex: none; display: block; margin: -2px 0; }
.seg { margin-left: auto; display: flex; align-items: center; gap: 1px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a {
  padding: 7px 12px; border-radius: var(--r-sm); color: var(--ink-3); font-size: 14px;
  white-space: nowrap; flex: none; transition: color var(--quick), background var(--quick);
}
.seg a:hover { color: var(--ink); background: var(--surface); }
.seg a.on { color: var(--ink); background: var(--surface); }
.seg .narrow-label { display: none; }

.ca {
  margin-left: 10px; flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 12px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: -0.02em; cursor: pointer;
  transition: border-color var(--quick), color var(--quick);
}
.ca:hover { border-color: var(--line-2); color: var(--ink); }
.ca .cue { font-family: var(--sans); font-size: 11px; color: var(--ink-4); letter-spacing: 0; }
.ca.live { border-color: color-mix(in oklab, var(--pump) 45%, var(--line)); }
.ca.live .cue { color: var(--pump); }
@media (max-width: 900px) { .ca .cue { display: none; } .ca { padding: 6px 10px; margin-left: 6px; } }
@media (max-width: 560px) { .ca { display: none; } }
@media (max-width: 640px) {
  .hdr-in { height: 56px; gap: 6px; }
  .seg a { padding: 6px 8px; font-size: 13.5px; }
  .seg .wide-label { display: none; }
  .seg .narrow-label { display: inline; }
}
@media (max-width: 348px) { .brand .word { display: none; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 20px; border-radius: var(--pill);
  border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background var(--quick), border-color var(--quick), opacity var(--quick);
}
.btn:hover { background: var(--surface-2); border-color: #363a42; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #0a0a0a; }
.btn.primary:hover { background: #e8e8e8; border-color: #e8e8e8; }
.btn.lg { padding: 13px 24px; font-size: 15px; }
.btn.sm { padding: 7px 14px; font-size: 13.5px; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(3.5rem, 2rem + 7vw, 7.5rem) 0 var(--sp); text-align: center; }
.hero h1 { max-width: 20ch; margin-inline: auto; }
.hero .lede { max-width: 54ch; margin: 1.25rem auto 0; text-wrap: balance; }
.hero .btn-row { margin-top: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); justify-content: center; }
.hero.left { text-align: left; }
.hero.left h1, .hero.left .lede { margin-inline: 0; }
.hero.left .btn-row { justify-content: flex-start; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 1.5rem;
  padding: 5px 12px 5px 10px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.eyebrow.off .dot { background: var(--ink-4); }

/* ---------------------------------------------------------------- the ask */
.ask {
  max-width: 560px; margin: clamp(1.75rem, 1rem + 2.5vw, 2.75rem) auto 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; text-align: left;
}
.ask-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ask-top strong { color: var(--ink); font-weight: 500; font-size: 15.5px; letter-spacing: -0.012em; }
.ask-top span { font-size: 12.5px; color: var(--ink-4); white-space: nowrap; }
.row2 { display: flex; gap: 8px; flex-wrap: wrap; }
.row2 .field { flex: 1 1 220px; }
.ask .hint { margin-top: 11px; font-size: 13px; color: var(--ink-4); }
.ask .hint.bad { color: var(--red); }
@media (max-width: 460px) {
  .ask { padding: 16px; }
  .ask-top span { display: none; }
  .row2 .btn { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------- fields */
.field {
  width: 100%; padding: 11px 13px; border-radius: var(--r-sm);
  background: var(--bg); border: 1px solid var(--line-2); color: var(--ink);
  font-size: 14.5px; transition: border-color var(--quick);
}
.field::placeholder { color: var(--ink-4); }
.field:focus { outline: none; border-color: #4a505a; }
textarea.field { resize: vertical; min-height: 84px; }
input[type="file"].field { padding: 7px 9px; cursor: pointer; color: var(--ink-3); font-size: 13.5px; }
input[type="file"].field::file-selector-button {
  font: inherit; font-size: 13.5px; font-weight: 500; margin-right: 12px; cursor: pointer;
  padding: 7px 14px; border-radius: var(--pill); border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--ink); transition: background var(--quick);
}
input[type="file"].field:hover::file-selector-button { background: var(--raise); }
.lab { display: block; font-size: 13.5px; color: var(--ink-3); margin: 1.4rem 0 0.5rem; }
.lab:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- verdict */
.verdict { margin-top: 14px; border-radius: var(--r); overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.verdict-top { padding: 13px 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stamp {
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--pill); flex: none;
}
.verdict.yes .stamp { background: var(--green); color: #07240f; }
.verdict.no .stamp { background: var(--surface-2); color: var(--red); }
.verdict-top .say { font-size: 13.5px; color: var(--ink-2); flex: 1 1 200px; }
.proof {
  display: grid; grid-template-columns: 26px 14ch minmax(0, 1fr); gap: 10px;
  align-items: baseline; padding: 10px 15px; font-size: 13.5px;
  border-top: 1px solid var(--line);
}
.proof .mk { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.proof.yes .mk { color: var(--green); }
.proof .what { color: var(--ink-2); white-space: nowrap; }
.proof .why { color: var(--ink-4); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 500px) {
  .proof { grid-template-columns: 24px minmax(0, 1fr); row-gap: 2px; }
  .proof .why { grid-column: 2; }
}

/* ---------------------------------------------------------------- sections */
/* Every section pays for the gap BELOW it, so adjacent sections never double up and no page
   needs an inline override. Structural spacing lives here, never in a style attribute: an
   inline `clamp(3rem,2rem+4vw,5rem)` is invalid CSS (the + needs spaces) and dies silently. */
.section { padding: 0 0 var(--sp); }
.band { padding: 0 0 var(--sp); }
.section-head { margin-bottom: clamp(1.5rem, 1rem + 1.8vw, 2.5rem); }
.section-head.center { text-align: center; }
.section-head.center p { margin-inline: auto; }
.section-head p { margin-top: 0.75rem; color: var(--ink-3); max-width: 58ch; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem); }
.card.flat { background: transparent; }
.card h3 { margin-bottom: 0.45rem; }
.prose { max-width: 66ch; }
.prose p { color: var(--ink-2); }
.prose b { color: var(--ink); font-weight: 500; }
.section.tight { padding-bottom: calc(var(--sp) * 0.62); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(0.8rem, 0.6rem + 1vw, 1.25rem); }

/* stats: no boxes, just rhythm */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.stats .k { font-size: 13px; color: var(--ink-4); margin-bottom: 4px; }
.stats .v { font-family: var(--mono); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.5rem); color: var(--ink); letter-spacing: -0.03em; }
.stats .v small { font-family: var(--sans); font-size: 12.5px; color: var(--ink-4); margin-left: 5px; letter-spacing: 0; }

/* ---------------------------------------------------------------- the run */
.run { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.run-step {
  background: var(--bg); padding: clamp(1.2rem, 1rem + 0.9vw, 1.8rem) clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0 clamp(0.75rem, 2vw, 1.25rem);
}
.run-step .idx { font-family: var(--mono); font-size: 12.5px; color: var(--ink-4); padding-top: 3px; }
.run-step h3 { margin-bottom: 0.4rem; }
.run-step .body { grid-column: 2; color: var(--ink-3); font-size: 14.5px; }
.run-step .body b { color: var(--ink-2); font-weight: 500; }
@media (min-width: 860px) {
  .run-step { grid-template-columns: 2.5rem 22ch minmax(0, 1fr); }
  .run-step .body { grid-column: 3; grid-row: 1; }
}

/* ---------------------------------------------------------------- curve */
.curve-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.curve-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.curve-head .t { font-size: 13.5px; color: var(--ink-2); min-width: 0; }
.curve-head .v { font-family: var(--mono); font-size: 12px; color: var(--ink-4); white-space: nowrap; flex: none; }
.curve-svg { width: 100%; aspect-ratio: 24 / 7; height: auto; display: block; }
.curve-foot { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-4); margin-top: 10px; }
.curve-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }
.curve-line.ahead { stroke: #4a4a78; stroke-width: 1.5; }
.curve-line.walked { stroke: var(--brand); stroke-width: 2.5; }
.curve-fill { fill: url(#curvefade); }
.curve-mark { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.curve-axis { stroke: var(--line-2); stroke-width: 1; }
.curve-you { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 3 4; }
@media (max-width: 620px) {
  .curve-svg { aspect-ratio: 16 / 10; }
  .curve-head { flex-direction: column; align-items: flex-start; gap: 3px; }
}

/* ---------------------------------------------------------------- lists */
.rows { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.win, .pos {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto;
  gap: clamp(0.7rem, 2vw, 1.4rem); align-items: center;
  padding: 14px clamp(0.9rem, 2vw, 1.3rem); background: var(--bg);
  transition: background var(--quick);
}
.win:hover, .pos:hover { background: var(--surface); }
.win .logo, .pos .logo { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: var(--surface-2); flex: none; }
.win .nm, .pos .nm { color: var(--ink); font-weight: 500; font-size: 15px; }
.win .sub, .pos .sub { font-size: 12.5px; color: var(--ink-4); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.win .num, .pos .num { font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); text-align: right; white-space: nowrap; letter-spacing: -0.02em; }
.win .num small, .pos .num small { display: block; font-family: var(--sans); font-size: 11px; color: var(--ink-4); letter-spacing: 0; }
@media (max-width: 660px) {
  .win, .pos { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .win .logo, .pos .logo { width: 38px; height: 38px; }
  .win .num.hide-sm, .pos .num.hide-sm { display: none; }
}

.state { font-size: 11px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 5px; }
.state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.state.live { color: var(--green); }
.state.warn { color: var(--amber); }
.state.done { color: var(--ink-3); }
.state.dead { color: var(--red); }

/* ---------------------------------------------------------------- queue */
.queue { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.queue-scroll { max-height: 420px; overflow: auto; }
.qrow {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 12px;
  align-items: baseline; padding: 10px 15px; border-top: 1px solid var(--line); font-size: 13.5px;
}
.qrow:first-child { border-top: 0; }
.qrow .pos-n { font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.qrow.first .pos-n { color: var(--brand); }
.qrow .who { font-family: var(--mono); color: var(--ink-2); font-size: 12.5px; }
.qrow .amt, .qrow .got { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; letter-spacing: -0.02em; }
.qrow .amt { color: var(--ink-3); }
.qrow .got { color: var(--ink); }
.qhead { background: var(--surface-2); position: sticky; top: 0; z-index: 1; }
.qhead span { font-family: var(--sans) !important; font-size: 11px !important; color: var(--ink-4) !important; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------------------------------------------------------------- tables */
.facts { width: 100%; border-collapse: collapse; }
.facts td, .facts th { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.facts tr:last-child td { border-bottom: 0; }
.facts th { font-weight: 400; color: var(--ink-4); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; }
.facts td:first-child { color: var(--ink-3); }
.facts td.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; letter-spacing: -0.02em; }

/* ---------------------------------------------------------------- misc */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 7px 13px; border-radius: var(--pill); border: 1px solid var(--line-2);
  background: transparent; color: var(--ink-3); font-size: 13.5px; cursor: pointer;
  transition: border-color var(--quick), color var(--quick), background var(--quick);
}
.chip:hover { color: var(--ink); border-color: #3a3f48; }
.chip.on { border-color: transparent; color: #0a0a0a; background: var(--ink); }

.addr {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; letter-spacing: -0.02em;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 12px 14px; cursor: pointer; color: var(--ink); transition: border-color var(--quick);
}
.addr:hover { border-color: #4a505a; }
.addr .cue { margin-left: auto; font-family: var(--sans); font-size: 12px; color: var(--ink-4); flex: none; letter-spacing: 0; }

.note { font-size: 13.5px; color: var(--ink-3); }
.note.warn { color: var(--amber); }
.note.bad { color: var(--red); }
.empty { padding: clamp(2.25rem, 2rem + 2vw, 3.5rem) 1rem; text-align: center; color: var(--ink-3); font-size: 14.5px; }

footer.ftr { border-top: 1px solid var(--line); padding: clamp(2rem, 1.5rem + 2vw, 3rem) 0; margin-top: auto; }
footer.ftr p { font-size: 13px; color: var(--ink-4); max-width: 72ch; }

/* ---------------------------------------------------------------- motion */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rise { animation: rise var(--slow) both; }
.rise-2 { animation-delay: 70ms; }
.rise-3 { animation-delay: 140ms; }
.rise-4 { animation-delay: 210ms; }
/* A paused animation (hidden tab, throttled renderer) would freeze these at opacity 0 and the
   page would ship blank. app.js adds .shown shortly after load and that wins either way. */
.rise.shown { animation: none; opacity: 1; transform: none; }

@keyframes draw { to { stroke-dashoffset: 0; } }
.curve-line.animate { stroke-dasharray: 1900; stroke-dashoffset: 1900; animation: draw 1400ms var(--ease) 150ms both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.curve-fill.animate, .curve-mark.animate { animation: fadein 600ms var(--ease) 800ms both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-delay: 0ms !important;
    transition-duration: 1ms !important; scroll-behavior: auto !important;
  }
  .curve-line.animate { stroke-dasharray: none; stroke-dashoffset: 0; }
}
