:root {
  --bg: #0e0f13;
  --panel: #15171e;
  --panel-2: #1a1d26;
  --ink: #ece7dc;
  --muted: #9b968b;
  --faint: #6d6a62;
  --gold: #bef248;
  --gold-dim: #8cb82f;
  --line: #262a35;
  --good: #7fb98a;
  --warn: #bef248;
  --bad: #d4735e;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(190,242,72,0.06), transparent);
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(14,15,19,0.92);
  backdrop-filter: blur(10px);
  z-index: 50;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.helm-mark { width: 30px; height: 30px; color: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: 0.02em; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }

.tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.tab {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 7px;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.tab:hover { color: var(--ink); background: var(--panel-2); }
.tab.active { color: var(--gold); background: rgba(190,242,72,0.09); }

.venture-chip {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 99px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.venture-chip:empty { display: none; }

/* ---------- layout ---------- */
main { max-width: 1060px; margin: 0 auto; padding: 44px 28px 80px; }
.view { display: none; }
.view.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.view-head { max-width: 640px; margin-bottom: 30px; }
.kicker {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 600;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.lede { color: var(--muted); font-size: 15.5px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

/* ---------- forms ---------- */
label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 16px;
}
input, textarea, select {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  padding: 10px 13px;
  transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold-dim); }
textarea { resize: vertical; line-height: 1.5; }
select { appearance: none; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; align-items: center; }

.btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #0a0c10; }
.btn-gold:hover { background: #d3ff6a; }
.btn-ghost { background: none; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold-dim); color: var(--gold); }
.btn[disabled] { opacity: 0.5; cursor: wait; }

/* ---------- intake ---------- */
.intake-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.intake-side h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 16px; }
.side-list { list-style: none; }
.side-list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.side-list li:last-child { border-bottom: none; }
.side-list strong { color: var(--ink); font-weight: 600; }
.side-note { margin-top: 16px; font-size: 13px; color: var(--gold); line-height: 1.5; }
.side-note:empty { display: none; }

/* ---------- boardroom ---------- */
.boardroom-wrap { display: flex; flex-direction: column; height: 560px; padding: 0; overflow: hidden; }
.chat-log { flex: 1; overflow-y: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.chat-msg { max-width: 82%; }
.chat-msg.ceo { align-self: flex-start; }
.chat-msg.you { align-self: flex-end; }
.chat-who { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; font-weight: 600; }
.chat-msg.ceo .chat-who { color: var(--gold); }
.chat-body {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.chat-msg.ceo .chat-body { background: var(--panel-2); border: 1px solid var(--line); border-top-left-radius: 3px; }
.chat-msg.you .chat-body { background: rgba(190,242,72,0.12); border: 1px solid rgba(190,242,72,0.25); border-top-right-radius: 3px; }
.chat-body.typing { color: var(--faint); font-style: italic; }
.chat-body h4 { font-family: var(--serif); margin: 10px 0 4px; font-size: 15px; }
.chat-empty { color: var(--faint); font-size: 14px; text-align: center; margin-top: 180px; }

.quick-row {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  overflow-x: auto;
  flex-shrink: 0;
}
.chip {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  padding: 6px 13px;
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--sans);
  transition: color .15s, border-color .15s;
}
.chip:hover { color: var(--gold); border-color: var(--gold-dim); }

.chat-input-row { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); flex-shrink: 0; }
.chat-input-row input { margin-top: 0; flex: 1; }

/* ---------- deck ---------- */
.deck-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.deck-status { font-size: 13px; color: var(--muted); }
.deck-status:empty { display: none; }

.deck-list { display: flex; flex-direction: column; gap: 18px; }
.slide {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 36px;
  position: relative;
}
.slide-num {
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--faint);
}
.slide-kicker { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.slide-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.15;
}
.slide-bullets { list-style: none; }
.slide-bullets li {
  padding: 7px 0 7px 22px;
  position: relative;
  color: var(--muted);
  font-size: 14.5px;
  border-bottom: 1px dashed rgba(38,42,53,0.7);
}
.slide-bullets li:last-child { border-bottom: none; }
.slide-bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-dim);
}
[contenteditable="true"]:focus { outline: 1px dashed var(--gold-dim); outline-offset: 3px; border-radius: 3px; }

/* ---------- presenter ---------- */
.presenter {
  position: fixed;
  inset: 0;
  background: #0a0b0e;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.presenter[hidden] { display: none; }
.presenter-slide {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 10vw;
  overflow-y: auto;
}
.presenter-slide .slide-kicker { font-size: 13px; }
.presenter-slide .slide-title { font-size: clamp(34px, 4.6vw, 58px); margin-bottom: 30px; }
.presenter-slide .slide-bullets li { font-size: clamp(17px, 2vw, 24px); padding: 12px 0 12px 30px; color: var(--ink); }
.presenter-slide .slide-bullets li::before { top: 22px; width: 9px; height: 9px; }
.presenter-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- stress test ---------- */
.stress-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; align-items: start; }
.stress-out:empty { display: none; }
.verdict-block { margin-bottom: 18px; }
.verdict-block h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.risk-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--bad);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.risk-item.sev-medium { border-left-color: var(--warn); }
.risk-item.sev-low { border-left-color: var(--good); }
.risk-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.risk-name { font-weight: 600; font-size: 14.5px; }
.risk-sev { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; flex-shrink: 0; }
.risk-fix { font-size: 13.5px; color: var(--muted); }
.risk-fix strong { color: var(--gold); font-weight: 600; }
.strength-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--good);
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 10px;
  font-size: 14px;
}
.rewrite-block {
  background: var(--panel);
  border: 1px solid rgba(190,242,72,0.35);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 14.5px;
  line-height: 1.65;
  white-space: pre-wrap;
}

/* ---------- runway ---------- */
.runway-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 22px; align-items: start; }
.runway-out:empty { display: none; }
.runway-hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.runway-months { font-family: var(--serif); font-size: 64px; font-weight: 700; line-height: 1; }
.runway-months.ok { color: var(--good); }
.runway-months.tight { color: var(--warn); }
.runway-months.critical { color: var(--bad); }
.runway-hero-sub { color: var(--muted); font-size: 14px; }
.runway-bars { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.rbar { display: grid; grid-template-columns: 130px 1fr 64px; gap: 12px; align-items: center; font-size: 12.5px; color: var(--muted); }
.rbar-track { height: 8px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.rbar-fill { height: 100%; background: var(--gold-dim); border-radius: 99px; }
.move-list { display: flex; flex-direction: column; gap: 8px; }
.move-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 13.5px;
  color: var(--muted);
}
.move-item strong { color: var(--ink); }
.ceo-note {
  margin-top: 16px;
  border: 1px solid rgba(190,242,72,0.3);
  background: rgba(190,242,72,0.05);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.ceo-note .note-who { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px; }

/* ---------- plan ---------- */
.inline-label { display: flex; align-items: center; gap: 12px; margin-bottom: 0; flex: 1; min-width: 260px; }
.inline-label input { margin-top: 0; }
.plan-out { display: flex; flex-direction: column; gap: 16px; }
.week-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 30px;
}
.week-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.week-title { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.week-focus { font-size: 12.5px; color: var(--gold); font-weight: 600; letter-spacing: 0.04em; }
.week-tasks { list-style: none; margin-top: 10px; }
.week-tasks li { padding: 6px 0 6px 24px; position: relative; color: var(--muted); font-size: 14px; }
.week-tasks li::before { content: "—"; position: absolute; left: 2px; color: var(--gold-dim); }
.metric-band {
  border: 1px solid rgba(190,242,72,0.3);
  background: rgba(190,242,72,0.05);
  border-radius: var(--radius);
  padding: 16px 24px;
  font-size: 14px;
  margin-bottom: 4px;
}
.metric-band strong { color: var(--gold); }

/* ---------- arsenal ---------- */
.arsenal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tool-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color .15s;
}
.tool-card:hover { border-color: var(--gold-dim); }
.tool-cat { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.tool-name { font-family: var(--serif); font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.tool-desc { font-size: 13.5px; color: var(--muted); }
.tool-url { font-size: 12px; color: var(--faint); margin-top: 10px; font-family: ui-monospace, monospace; }

/* ---------- misc ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 22px 28px;
  text-align: center;
  color: var(--faint);
  font-size: 12.5px;
}
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid var(--faint);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  vertical-align: -2px;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-hint { color: var(--faint); font-size: 14px; padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }

.speaker-note {
  margin-top: 44px;
  padding: 18px 24px;
  border-left: 3px solid var(--gold-dim);
  background: rgba(190,242,72,0.06);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 18px);
  max-width: 700px;
}
.speaker-note .note-label { color: var(--gold); font-weight: 600; }

.score-hero {
  display: flex;
  align-items: baseline;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 28px;
  margin-bottom: 20px;
}
.score-num { font-family: var(--serif); font-size: 54px; font-weight: 700; color: var(--gold); line-height: 1; }
.score-label { color: var(--muted); font-size: 14px; }

/* ---------- print ---------- */
@media print {
  body { background: #fff; color: #111; }
  .topbar, .footer, .deck-toolbar, .presenter, .view-head { display: none !important; }
  main { max-width: none; padding: 0; }
  .view { display: none !important; }
  .view.active#view-deck { display: block !important; }
  .slide {
    background: #fff;
    border: none;
    border-bottom: 1px solid #ddd;
    page-break-after: always;
    padding: 40px 20px;
  }
  .slide-title, .slide-kicker { color: #111; }
  .slide-bullets li { color: #333; border-color: #eee; }
  .slide-bullets li::before { background: #999; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .topbar { gap: 14px; padding: 12px 16px; }
  .venture-chip { display: none; }
  main { padding: 30px 16px 60px; }
  .intake-grid, .stress-grid, .runway-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .tabs { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .tab { white-space: nowrap; }
  .boardroom-wrap { height: 480px; }
  .chat-msg { max-width: 94%; }
  .slide { padding: 22px 22px; }
  .runway-hero { flex-direction: column; gap: 6px; padding: 22px; }
  .runway-months { font-size: 46px; }
  .rbar { grid-template-columns: 96px 1fr 52px; }
  .presenter-slide { padding: 30px 7vw; }
}

/* ---------- batch 2: polish ---------- */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000, transparent 75%);
}
.topbar, main, .footer { position: relative; z-index: 1; }
.topbar { position: sticky; }
.view-head h1::after { content: ""; display: block; width: 44px; height: 3px; background: var(--gold); margin-top: 16px; border-radius: 2px; }
.panel { box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 12px 30px -18px rgba(0,0,0,0.6); }
.panel-title { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 18px; }
.numbers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.calc-out { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.calc-out:empty { display: none; }
.stat-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; color: var(--muted); }
.stat-row strong { color: var(--ink); font-family: var(--serif); font-size: 16px; }
.stat-row.good strong { color: var(--good); }
.stat-row.bad strong { color: var(--bad); }
.stat-verdict { font-size: 13.5px; color: var(--gold); line-height: 1.55; padding: 4px 2px; }
.grill-list { display: flex; flex-direction: column; gap: 18px; }
.grill-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.grill-num { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.grill-q { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 14px; }
.grill-card textarea { margin-top: 0; }
.grill-verdict { margin-top: 16px; border-left: 3px solid var(--gold-dim); background: rgba(190,242,72,0.05); border-radius: 0 8px 8px 0; padding: 14px 18px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.grill-verdict .gscore { font-family: var(--serif); font-size: 22px; color: var(--gold); font-weight: 700; margin-right: 8px; }
.progress { margin-top: 18px; display: flex; flex-direction: column; gap: 7px; }
.pstep { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--faint); }
.pstep .dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--faint); flex-shrink: 0; }
.pstep.done { color: var(--ink); }
.pstep.done .dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(190,242,72,0.15); }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); background: var(--panel-2); border: 1px solid var(--gold-dim); color: var(--ink); padding: 11px 22px; border-radius: 99px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 860px) { .numbers-grid { grid-template-columns: 1fr; } }

/* ===== Direction B: Signal ===== */
:root {
  --bg: #090b10; --panel: #10131b; --panel-2: #171b26; --ink: #e8ecf4; --muted: #8e97aa; --faint: #5d667a;
  --line: #222838; --good: #5fd49a; --bad: #ff6b6b;
  --serif: "Space Grotesk", "Inter", sans-serif; --radius: 6px;
}
body { background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 44px 44px; }
.topbar { background: rgba(9,11,16,0.9); padding: 10px 28px; }
.brand-name { font-weight: 700; letter-spacing: -0.01em; }
.brand-sub, .kicker, .slide-kicker, .grill-num { font-family: "JetBrains Mono", monospace; letter-spacing: 0.08em; }
.tab { font-family: "JetBrains Mono", monospace; font-size: 12.5px; border-radius: 0; padding: 9px 12px; border-bottom: 2px solid transparent; }
.tab:hover { background: none; color: var(--ink); }
.tab.active { background: none; color: #bef248; border-bottom-color: #bef248; }
.venture-chip { font-family: "JetBrains Mono", monospace; border-radius: 4px; border-color: #bef248; color: #bef248; }
h1 { font-weight: 700; letter-spacing: -0.035em; font-size: clamp(34px, 5vw, 54px); }
.panel { background: linear-gradient(180deg, #131722, #0f121a); }
input, textarea, select { background: #0a0c12; border-radius: 4px; }
input:focus, textarea:focus, select:focus { border-color: #bef248; box-shadow: 0 0 0 3px rgba(190,242,72,0.12); }
