/* TachiBot Monetization Roadmap — internal strategy doc
   Ops-console editorial: phosphor terminal × strategy memo */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #070b0e;
  --bg-raise: #0c1216;
  --bg-card: #0e151a;
  --line: rgba(34, 211, 238, 0.14);
  --line-strong: rgba(34, 211, 238, 0.35);
  --ink: #d7e3e8;
  --ink-dim: #8fa3ac;
  --ink-faint: #5c6d75;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.08);
  --money: #fbbf24;
  --go: #34d399;
  --skip: #fb7185;
  --later: #a78bfa;
  --serif: "Fraunces", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --sans: "IBM Plex Sans", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* phosphor atmosphere: faint grid + corner glow */
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(34, 211, 238, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, rgba(251, 191, 36, 0.04), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(34, 211, 238, 0.025) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(34, 211, 238, 0.02) 47px 48px);
  background-attachment: fixed;
  min-height: 100vh;
}

/* ---------- shell ---------- */
.shell { max-width: 1060px; margin: 0 auto; padding: 0 28px 96px; }

/* ---------- nav ---------- */
nav.top {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em;
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(var(--bg) 82%, transparent);
}
nav.top .brand { color: var(--cyan); font-weight: 600; margin-right: auto; }
nav.top .brand::before { content: "▮ "; animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
nav.top a { color: var(--ink-dim); text-decoration: none; padding: 4px 2px; border-bottom: 1px solid transparent; transition: color .18s, border-color .18s; }
nav.top a:hover { color: var(--ink); }
nav.top a.active { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ---------- header ---------- */
header.hero { padding: 72px 0 48px; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-faint);
}
.eyebrow b { color: var(--money); font-weight: 500; }
h1 {
  font-family: var(--serif); font-weight: 380;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.04; letter-spacing: -0.015em;
  margin: 18px 0 22px; color: #eef6f9;
  max-width: 17ch;
}
h1 em { font-style: italic; font-weight: 480; color: var(--cyan); }
.lede { max-width: 58ch; color: var(--ink-dim); font-size: 18px; }
.lede b { color: var(--ink); font-weight: 500; }

/* staggered load-in */
.rise { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.rise.d1 { animation-delay: .08s } .rise.d2 { animation-delay: .18s }
.rise.d3 { animation-delay: .28s } .rise.d4 { animation-delay: .4s }
.rise.d5 { animation-delay: .52s }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- section scaffolding ---------- */
section { margin-top: 72px; }
.sec-head { display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 28px; }
.sec-head .no { font-family: var(--mono); color: var(--cyan); font-size: 13px; letter-spacing: .1em; }
.sec-head h2 { font-family: var(--serif); font-weight: 430; font-size: 30px; letter-spacing: -0.01em; }
.sec-head .tail { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); letter-spacing: .08em; }

/* ---------- paradox block ---------- */
.paradox {
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--cyan-soft), transparent 70%);
  padding: 30px 32px; position: relative;
}
.paradox::before {
  content: "$ tachibot monetize --analyze";
  display: block; font-family: var(--mono); font-size: 12.5px;
  color: var(--ink-faint); margin-bottom: 14px;
}
.paradox p { max-width: 68ch; color: var(--ink-dim); }
.paradox p + p { margin-top: 12px; }
.paradox strong { color: var(--ink); font-weight: 600; }
.paradox .verdict {
  margin-top: 18px; font-family: var(--serif); font-size: 22px; font-style: italic;
  color: var(--money); border-left: 2px solid var(--money); padding-left: 16px;
}

/* ---------- move cards (ranked top 3) ---------- */
.moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .moves { grid-template-columns: 1fr; } }
.move {
  border: 1px solid var(--line); background: var(--bg-card);
  padding: 26px 24px 22px; position: relative; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.move:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.move .rank {
  font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1;
  color: rgba(34, 211, 238, 0.16); position: absolute; top: 8px; right: 14px;
}
.move h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 10px 0 10px; }
.move p { font-size: 14.5px; color: var(--ink-dim); }
.move .payoff { margin-top: 16px; font-family: var(--mono); font-size: 13px; color: var(--money); }
.move .payoff span { color: var(--ink-faint); }

/* ---------- badges ---------- */
.badge {
  display: inline-block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; padding: 3px 9px; border: 1px solid;
  text-transform: uppercase;
}
.badge.now   { color: var(--go);    border-color: rgba(52,211,153,.4);  background: rgba(52,211,153,.07); }
.badge.funnel{ color: var(--cyan);  border-color: rgba(34,211,238,.4);  background: rgba(34,211,238,.07); }
.badge.later { color: var(--later); border-color: rgba(167,139,250,.4); background: rgba(167,139,250,.07); }
.badge.skip  { color: var(--skip);  border-color: rgba(251,113,133,.4); background: rgba(251,113,133,.07); }

/* ---------- numbers strip ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
@media (max-width: 880px) { .numbers { grid-template-columns: repeat(2, 1fr); } }
.num { padding: 22px 20px; border-right: 1px solid var(--line); }
.num:last-child { border-right: none; }
@media (max-width: 880px) { .num:nth-child(2n) { border-right: none; } .num:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.num .v { font-family: var(--mono); font-size: 24px; font-weight: 600; color: var(--money); }
.num .k { font-size: 13px; color: var(--ink-faint); margin-top: 6px; line-height: 1.45; }

/* ---------- do-not list ---------- */
.donts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 880px) { .donts { grid-template-columns: 1fr; } }
.dont { border: 1px solid rgba(251,113,133,.25); padding: 18px 20px; background: rgba(251,113,133,.04); }
.dont h4 { font-family: var(--mono); font-size: 13px; color: var(--skip); letter-spacing: .06em; margin-bottom: 6px; }
.dont h4::before { content: "✕ "; }
.dont p { font-size: 14px; color: var(--ink-dim); }

/* ---------- avenue cards ---------- */
.avenue {
  border: 1px solid var(--line); background: var(--bg-card);
  padding: 28px 30px; margin-bottom: 18px;
  display: grid; grid-template-columns: 56px 1fr 190px; gap: 24px;
  transition: border-color .2s ease;
}
.avenue:hover { border-color: var(--line-strong); }
@media (max-width: 880px) { .avenue { grid-template-columns: 1fr; gap: 14px; } }
.avenue .idx { font-family: var(--serif); font-style: italic; font-size: 34px; color: rgba(34,211,238,.35); }
.avenue h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.avenue .one-liner { font-size: 15px; color: var(--ink); margin-top: 8px; font-weight: 500; }
.avenue .body { font-size: 14.5px; color: var(--ink-dim); margin-top: 10px; max-width: 62ch; }
.avenue .body b { color: var(--ink); font-weight: 600; }
.avenue .prereq { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.avenue .prereq b { color: var(--ink-dim); font-weight: 500; }

.gauges { display: flex; flex-direction: column; gap: 14px; align-self: start; padding-top: 6px; }
.gauge .lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 5px; }
.gauge .bar { display: flex; gap: 3px; }
.gauge .bar i { width: 18px; height: 8px; background: rgba(255,255,255,.07); }
.gauge.effort .bar i.on { background: var(--cyan); }
.gauge.rev .bar i.on { background: var(--money); }
.gauge .note { font-family: var(--mono); font-size: 11.5px; color: var(--ink-dim); margin-top: 5px; }

/* ---------- 90-day plan ---------- */
.phase { border-left: 1px solid var(--line-strong); margin-left: 8px; padding: 0 0 44px 32px; position: relative; }
.phase::before {
  content: ""; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px;
  background: var(--bg); border: 2px solid var(--cyan); border-radius: 50%;
}
.phase .when { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--cyan); text-transform: uppercase; }
.phase h3 { font-family: var(--serif); font-weight: 480; font-size: 26px; margin: 8px 0 6px; }
.phase .goal { font-style: italic; font-family: var(--serif); color: var(--money); font-size: 17px; margin-bottom: 16px; }
.checklist { list-style: none; }
.checklist li {
  padding: 10px 0 10px 34px; position: relative;
  border-bottom: 1px dashed rgba(255,255,255,.06);
  font-size: 15px; color: var(--ink-dim);
}
.checklist li b { color: var(--ink); font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 14px;
  width: 14px; height: 14px; border: 1px solid var(--line-strong);
  transition: background .2s;
}
.checklist li:hover::before { background: var(--cyan-soft); }
.checklist li .why { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); margin-top: 3px; }

/* ---------- tie-in table ---------- */
table.tie { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
table.tie th {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); text-align: left; padding: 12px 16px;
  border-bottom: 1px solid var(--line-strong); background: var(--bg-raise);
}
table.tie td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-dim); vertical-align: top; }
table.tie td:first-child { font-family: var(--mono); font-size: 13px; color: var(--cyan); white-space: nowrap; }
table.tie td b { color: var(--money); font-weight: 500; }
table.tie tr:last-child td { border-bottom: none; }

/* ---------- sources / footer ---------- */
.sources { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.sources h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.sources ul { list-style: none; columns: 2; column-gap: 40px; }
@media (max-width: 880px) { .sources ul { columns: 1; } }
.sources li { font-family: var(--mono); font-size: 12px; padding: 3px 0; break-inside: avoid; }
.sources a { color: var(--ink-dim); text-decoration: none; border-bottom: 1px dotted var(--ink-faint); }
.sources a:hover { color: var(--cyan); border-color: var(--cyan); }

footer.end {
  margin-top: 80px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--ink-faint);
}
footer.end a { color: var(--cyan); text-decoration: none; }
footer.end a:hover { text-decoration: underline; }

::selection { background: rgba(34, 211, 238, .25); }
