/* ============================================================
   RadChad — styles.css
   Gym-poster-meets-fintech. Chalk-white paper, near-black slab
   type, one loud pump-orange, ticker numerals. Zero JS.
   ============================================================ */

:root {
  --chalk:      #F6F4EE;  /* page background */
  --chalk-2:    #EFECE3;  /* card wells */
  --ink:        #131316;  /* headlines, body, inverted sections */
  --ink-2:      #1C1C21;  /* inverted-panel elevation */
  --pump:       #FF4D00;  /* display accents/fills/bars — LARGE/graphic use only on chalk */
  --pump-press: #A83200;  /* link-hover TEXT on chalk (6.12:1 AA) */
  --pump-btn-hover: #E84600; /* btn hover BG under ink text (4.69:1 AA) */
  --pump-deep:  #C43A00;  /* small orange TEXT on chalk (AA) */
  --steel:      #4E4B45;  /* secondary text on chalk */
  --steel-mute: #6E6A63;  /* captions/fine print on chalk, min 14px */
  --volt:       #B4F53C;  /* "CURRENT ✓" state ONLY, on ink only */
  --gain:       #0B6B3E;  /* up-tick green, small-text-safe on chalk */
  --chalk-on-ink: #F6F4EE;
  --mute-on-ink:  #A8A49C;
  --line:       rgba(19,19,22,0.14);
  --line-inv:   rgba(246,244,238,0.16);
  --radius:     14px;
  --radius-pill: 999px;
  --shadow-poster: 0 24px 60px -24px rgba(19,19,22,0.35);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: "Inter Tight", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, li, figure, pre { margin: 0; }
a { color: var(--pump-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pump-press); }
:focus-visible { outline: 3px solid var(--pump); outline-offset: 2px; }

/* ---------- Type utilities ---------- */
.display {
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
}
.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-feature-settings: "tnum" 1;
}
.pump { color: var(--pump); }

h2.display { font-size: clamp(2rem, 5vw, 3.4rem); }

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  background: var(--ink);
  color: var(--chalk-on-ink);
  font-weight: 800;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top .15s ease;
}
.skip:focus-visible { top: 0; }

/* ---------- Layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 720px; }
main > section {
  padding-top: clamp(72px, 11vw, 128px);
  padding-bottom: clamp(72px, 11vw, 128px);
}
/* barbell rules between chalk sections */
.lanes, .how, .reality, .status { border-top: 4px solid var(--ink); }

.section-intro { color: var(--steel); font-size: 1.05rem; max-width: 60ch; margin-top: 20px; }
.micro { font-size: 0.72rem; color: var(--steel-mute); margin-top: 24px; }
.kicker { font-size: 0.8rem; color: var(--steel-mute); margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Inter Tight", system-ui, sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.btn--primary { background: var(--pump); color: var(--ink); }
.btn--primary:hover { background: var(--pump-btn-hover); color: var(--ink); transform: translateY(-1px); }
.btn--ghost { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { color: var(--ink); transform: translateY(-1px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.cta-row--center { justify-content: center; }

/* ============================================================
   1 · Ribbon
   ============================================================ */
.ribbon {
  background: var(--ink);
  color: var(--chalk-on-ink);
  padding: 12px 24px;
  text-align: center;
}
.ribbon p {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 0.78rem;
  line-height: 1.5;
}
.ribbon__flag { color: var(--pump); font-weight: 600; }

/* ============================================================
   2 · Hero
   ============================================================ */
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.eyebrow {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--pump-deep);
}
.hero__h1 { font-size: clamp(3.2rem, 11vw, 8.5rem); margin-top: 20px; }
.lede { color: var(--steel); font-size: 1.2rem; margin-top: 28px; max-width: 46ch; }

/* --- THE DAILY FIVE stack (plays ONCE, never loops) --- */
.stack {
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-poster);
  padding: clamp(20px, 3vw, 32px);
  max-width: 560px;
  margin-left: auto;
}
.rep {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-inv);
}
.rep__lane {
  grid-column: 1;
  grid-row: 1;
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--chalk-on-ink);
}
.rep__note {
  grid-column: 1;
  grid-row: 2;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--mute-on-ink);
}
.rep__bar {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: block;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--line-inv);
  overflow: hidden;
  position: relative;
}
.rep__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background-image: linear-gradient(100deg, var(--pump), #FF6A2B 90%); /* the ONE permitted sheen */
  transform-origin: left;
  transform: scaleX(0);
  animation: rep-fill .9s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: calc(var(--i) * .75s + .5s);
}
@keyframes rep-fill {
  0%   { transform: scaleX(0); }
  82%  { transform: scaleX(1.04); }  /* the overshoot IS the flex */
  100% { transform: scaleX(1); }
}
.rep__chip {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--ink);
  background: var(--volt);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0;
  transform: scale(.7);
  animation: chip-pop .35s cubic-bezier(.34,1.56,.64,1) forwards;
  animation-delay: calc(var(--i) * .75s + 1.3s);
}
@keyframes chip-pop {
  60%  { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
.stack__stamp {
  font-family: "Anton", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1;
  color: var(--chalk-on-ink);
  transform: rotate(-1.5deg);
  margin-top: 24px;
  opacity: 0;
  animation: stamp-up .5s ease forwards;
  animation-delay: 5.2s;
}
.stack__stamp span { color: var(--pump); }
@keyframes stamp-up {
  from { opacity: 0; transform: rotate(-1.5deg) translateY(10px); }
  to   { opacity: 1; transform: rotate(-1.5deg) translateY(0); }
}
.stack__honest {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--mute-on-ink);
  margin-top: 12px;
  opacity: 0;
  animation: honest-in .5s ease forwards;
  animation-delay: 5.6s;
}
@keyframes honest-in { to { opacity: 1; } }

/* ============================================================
   3 · Lanes
   ============================================================ */
.lane-grid {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.lane-card {
  background: var(--chalk-2);
  border-radius: var(--radius);
  border-top: 4px solid var(--pump);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lane-card__name {
  display: block;
  font-size: 1.4rem;
  color: var(--ink);
}
.lane-card__tag {
  display: block;
  font-family: "Inter Tight", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--pump-deep);
  margin-top: 6px;
}
.lane-card p { color: var(--steel); font-size: 0.92rem; }
.lane-card__sample {
  color: var(--ink);
  font-size: 0.72rem;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   4 · How It Works
   ============================================================ */
.steps {
  list-style: none;
  padding: 0;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.step__num { font-size: 2.4rem; color: var(--pump); display: block; }
.step__title {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin-top: 12px;
}
.step p { color: var(--steel); margin-top: 10px; }

/* ============================================================
   5 · Manifesto (the ONE full-ink inversion)
   ============================================================ */
.manifesto {
  background: var(--ink);
  color: var(--mute-on-ink);
}
.manifesto__h2 {
  color: var(--chalk-on-ink);
  font-size: clamp(2.4rem, 7vw, 5rem);
  max-width: 14ch;
}
.manifesto p { max-width: 62ch; margin-top: 24px; }
.manifesto__kicker {
  color: var(--pump);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  margin-top: 40px;
  max-width: none;
}

/* ============================================================
   6 · reality.txt easter egg
   ============================================================ */
.console {
  background: var(--chalk-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 32px;
  overflow: hidden;
}
.console__title {
  font-size: 0.72rem;
  color: var(--steel-mute);
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.console__body {
  font-size: 0.74rem;
  line-height: 1.7;
  color: var(--ink);
  padding: 20px;
  overflow-x: auto;
}
.k-no { color: var(--pump-deep); font-weight: 600; }
.k-ok { color: var(--gain); font-weight: 600; }

/* ============================================================
   7 · Status
   ============================================================ */
.status { text-align: center; }
.status__sub {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 16px;
}
.status__body { color: var(--steel); margin-top: 20px; text-align: left; }
.status__lines {
  font-size: 0.8rem;
  color: var(--steel-mute);
  text-align: left;
  margin: 32px auto 0;
  max-width: 620px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.8;
}

/* ============================================================
   8 · Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 14px;
  color: var(--steel-mute);
}
.footer p + p { margin-top: 8px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .stack { margin-left: 0; }
}
@media (max-width: 880px) {
  .lane-grid { grid-template-columns: repeat(2, 1fr); }
  .lane-grid .lane-card:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .lane-grid { grid-template-columns: 1fr; }
  .rep { grid-template-columns: 90px 1fr auto; }
}

/* ============================================================
   Reduced motion — meaning survives without movement
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rep__bar::after,
  .rep__chip,
  .stack__stamp,
  .stack__honest,
  .btn,
  .skip { animation: none; transition: none; }
  .rep__bar::after { transform: scaleX(1); }
  .rep__chip { opacity: 1; transform: scale(1); }
  .stack__stamp { opacity: 1; transform: rotate(-1.5deg); }
  .stack__honest { opacity: 1; }
}
