/* ============================================================
   CoPath design system — Innovate Mississippi
   Ink-on-paper workbench. Deep pine teal as the working accent,
   the rising "proof path" line as the signature mark.
   ============================================================ */

:root {
  --ink: #12263a;
  --ink-soft: #2c4257;
  --muted: #5b7280;
  --paper: #f4f7f6;
  --surface: #ffffff;
  --line: #dbe4e3;
  --line-strong: #b9c9c8;
  --teal: #0e8c7f;
  --teal-deep: #0a6a60;
  --teal-tint: #e2f3f0;
  --teal-bright: #00d4b2;
  --amber: #a06b00;
  --amber-tint: #fdf3dd;
  --crimson: #b3362f;
  --crimson-tint: #fbe9e7;
  --navy: #0a2540;
  --shadow: 0 1px 2px rgba(18, 38, 58, .06), 0 8px 24px -12px rgba(18, 38, 58, .12);
  --radius: 10px;
  --radius-lg: 16px;
  --font-display: "Bricolage Grotesque", "Public Sans", sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --rail-w: 264px;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--teal); border-radius: var(--radius); padding: 8px 12px;
}
.skip-link:focus {
  width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal;
}
.save-alert {
  position: sticky; top: 0; z-index: 80; padding: 10px 16px;
  background: var(--crimson-tint); color: var(--ink); border-bottom: 2px solid var(--crimson);
  text-align: center;
}
.save-alert .btn { margin-left: 10px; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 .8em; }
a { color: var(--teal-deep); }
small { color: var(--muted); }
strong { font-weight: 600; }

.noscript-banner { background: var(--crimson); color: #fff; padding: 12px 20px; text-align: center; }
.document-page { max-width: 850px; margin: 0 auto; padding: 36px 20px 80px; }
.document-page > .btn { margin-bottom: 26px; }
.document-page .card { margin-top: 18px; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--rail-w) 1fr; min-height: 100vh; }

.rail {
  background: var(--navy);
  color: #dce8f2;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  padding: 20px 16px;
}
.rail-brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-mark { width: 30px; height: 30px; color: var(--teal-bright); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; }
.brand-text small { color: #8fb0c9; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.rail-toggle { display: none; }

.rail-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-item {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; text-decoration: none; color: #c3d4e2;
  font-size: .92rem; font-weight: 500;
  border: 1px solid transparent;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(0,212,178,.12); border-color: rgba(0,212,178,.35); color: #fff; }
.nav-progress { font-family: var(--font-mono); font-size: .66rem; color: #7d9cb8; }
.nav-item.done .nav-progress {
  display: grid; place-items: center; width: 18px; height: 18px;
  border: 1px solid #8fb0c9; color: #fff; font-size: .68rem;
}

.rail-foot { border-top: 1px solid #23415f; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.rail-note { font-size: .72rem; color: #7d9cb8; margin: 4px 0 0; line-height: 1.45; }

.stage { padding: 34px clamp(20px, 4vw, 56px) 80px; max-width: 1180px; width: 100%; }
.stage:focus { outline: none; }
.loading-view { color: var(--muted); padding: 60px 0; }

/* ---------- Page header pattern ---------- */
.page-head { margin-bottom: 26px; max-width: 760px; }
.eyebrow {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep);
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); }
.page-head .lede { color: var(--ink-soft); font-size: 1.02rem; max-width: 62ch; }

/* ---------- Cards & layout ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 22px;
}
.card + .card, .stack > * + * { margin-top: 18px; }
.card-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
@media (max-width: 980px) { .grid-2, .grid-3, .split { grid-template-columns: 1fr; } }

.callout { border-left: 3px solid var(--teal); background: var(--teal-tint); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 16px; font-size: .92rem; }
.callout.warn { border-color: var(--amber); background: var(--amber-tint); }
.callout.danger { border-color: var(--crimson); background: var(--crimson-tint); }
.callout p:last-child { margin: 0; }

/* ---------- Forms ---------- */
label.field-label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.field-hint { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; margin-top: 2px; }
input[type="text"], input[type="number"], input[type="date"], input[type="url"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius); padding: 9px 12px;
}
textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 140, 127, .16);
}
input:focus-visible, select:focus-visible, textarea:focus-visible,
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(14, 140, 127, .45);
  outline-offset: 2px;
}
.field { margin-bottom: 16px; }
.field-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; min-height: 18px; }
.char-count { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); }
.field-warning { font-size: .8rem; color: var(--amber); background: var(--amber-tint); border-radius: 6px; padding: 6px 10px; margin-top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-weight: 600; font-size: .9rem;
  border-radius: var(--radius); border: 1.5px solid transparent;
  padding: 9px 18px; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); }
.btn-secondary { background: var(--surface); color: var(--teal-deep); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal-tint); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .85; }
.btn-ghost:hover { opacity: 1; }
.btn-danger { background: transparent; color: var(--crimson); border-color: var(--crimson); }
.btn-danger:hover { background: var(--crimson-tint); }
.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn:focus-visible { outline: 3px solid rgba(14,140,127,.4); outline-offset: 1px; }
.file-btn { position: relative; overflow: hidden; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }

/* ---------- Badges & pills ---------- */
.badge {
  display: inline-block; font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; letter-spacing: .04em;
}
.badge-weak { background: var(--crimson-tint); color: var(--crimson); }
.badge-better { background: var(--amber-tint); color: var(--amber); }
.badge-strong { background: var(--teal-tint); color: var(--teal-deep); }
.badge-plain { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }

/* ---------- Journey home ---------- */
.hero { margin-bottom: 34px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); max-width: 16ch; }
.hero .lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 58ch; }
.hero-path { margin: 24px 0 4px; max-width: 720px; }
.hero-path svg { width: 100%; height: auto; display: block; }
.evidence-labels {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  list-style: none; margin: 7px 0 0; padding: 0;
  font-family: var(--font-mono); font-size: .67rem; color: var(--muted);
}
.evidence-labels li { text-align: center; line-height: 1.35; }
.evidence-labels li:first-child { text-align: left; }
.evidence-labels li:last-child { text-align: right; }

.journey-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.station-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
.station-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.station-top { display: flex; align-items: center; justify-content: space-between; }
.station-num {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  color: var(--teal-deep); background: var(--teal-tint); border-radius: 999px; padding: 3px 10px;
}
.station-card h3 { margin: 0; }
.station-verb { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.station-card p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.station-progress { margin-top: auto; padding-top: 10px; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 20px; }
.tab {
  font: inherit; font-weight: 600; font-size: .88rem; color: var(--muted);
  background: none; border: none; border-bottom: 3px solid transparent;
  padding: 9px 14px; margin-bottom: -2px; cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--teal-deep); border-bottom-color: var(--teal); }
.tab:focus-visible { position: relative; z-index: 1; }
.tab-number {
  display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px;
  border-radius: 50%; border: 1.5px solid currentColor; opacity: .55;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600; vertical-align: middle;
}
.tab.active .tab-number { opacity: 1; border-color: var(--teal); background: var(--teal-tint); }
.step-pinned:empty { display: none; }
.step-pinned { margin-bottom: 18px; }

/* ---------- Canvas grid ---------- */
.canvas-grid { display: grid; gap: 10px; }
.canvas-box {
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  padding: 12px; display: flex; flex-direction: column; min-height: 150px;
}
.canvas-box-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.canvas-box-head h3 { font-size: .88rem; margin: 0; }
.canvas-box-num { font-family: var(--font-mono); font-size: .64rem; color: var(--teal-deep); font-weight: 600; }
.canvas-box .prompt { font-size: .74rem; color: var(--muted); margin: 0 0 8px; line-height: 1.4; }
.canvas-box textarea { flex: 1; border: none; padding: 4px 2px; min-height: 70px; background: transparent; font-size: .88rem; }
.canvas-box textarea:focus { box-shadow: none; outline: 2px dashed var(--teal-tint); }
.canvas-box.filled { border-color: var(--teal); }
@media (max-width: 900px) { .canvas-grid { grid-template-areas: none !important; grid-template-columns: 1fr !important; } .canvas-grid .canvas-box { grid-area: auto !important; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .87rem; }
table.data th {
  text-align: left; font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); background: var(--paper);
  padding: 10px 12px; border-bottom: 1.5px solid var(--line-strong); white-space: nowrap;
}
table.data td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data input, table.data select, table.data textarea { border-width: 1px; padding: 6px 8px; font-size: .85rem; min-width: 90px; }
table.data textarea { min-height: 44px; }
table.data td.num, table.data th.num { text-align: right; font-family: var(--font-mono); }
.cell-calc { font-family: var(--font-mono); font-size: .84rem; color: var(--ink-soft); white-space: nowrap; }
.cell-good { color: var(--teal-deep); font-weight: 600; }
.cell-bad { color: var(--crimson); font-weight: 600; }

/* ---------- Readiness ladder (signature meter) ---------- */
.ladder { display: flex; align-items: flex-end; gap: 5px; height: 56px; margin: 10px 0 6px; }
.ladder .rung { flex: 1; background: var(--line); border-radius: 3px 3px 0 0; position: relative; }
.ladder .rung.lit { background: var(--teal); }
.ladder .rung.lit.top { background: var(--teal-bright); }
.score-line { display: flex; justify-content: space-between; align-items: baseline; }
.score-value { font-family: var(--font-mono); font-weight: 600; font-size: 1.3rem; }
.score-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------- Charts ---------- */
.chart-frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.chart-frame svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.chart-legend .key { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- Prove board ---------- */
.board-node { cursor: pointer; }
.board-node circle { transition: r .15s; }
.board-node:hover circle { r: 9; }
.board-tools { font-size: .85rem; }
.board-tools a { margin-right: 10px; }

/* ---------- Entry list (interview log, patent rows) ---------- */
.entry {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  background: var(--surface); margin-bottom: 12px;
}
.entry-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.entry-head .who { font-weight: 600; }
.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }

/* ---------- Checklist ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 5px 0; font-size: .9rem; }
.check-list label { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; }
.check-list input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--teal); margin-top: 2px; flex: none; }

/* ---------- Sidebar widgets ---------- */
.side-widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow); }
.side-widget + .side-widget { margin-top: 14px; }
.side-widget h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 10px; }
.side-widget ul { margin: 0; padding-left: 18px; font-size: .88rem; }
.side-widget li { margin-bottom: 6px; }
.resource-item { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.resource-item:last-child { border-bottom: none; }
.resource-item strong { display: block; font-size: .88rem; color: var(--teal-deep); }
.resource-item span { font-size: .78rem; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 10px 22px; font-size: .88rem; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .kpi-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.kpi .kpi-value { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 600; margin-top: 2px; }
.kpi .kpi-sub { font-size: .74rem; color: var(--muted); }
.kpi.kpi-accent { border-color: var(--teal); background: var(--teal-tint); }
.kpi.kpi-danger { border-color: var(--crimson); background: var(--crimson-tint); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: sticky; height: auto; padding: 12px 16px; z-index: 40; }
  .rail-brand { margin-bottom: 0; }
  .rail-toggle {
    display: inline-flex; flex-direction: column; gap: 4px; background: none;
    border: 1px solid #3d5a76; border-radius: 8px; padding: 9px; cursor: pointer;
  }
  .rail-toggle span { width: 18px; height: 2px; background: #c3d4e2; display: block; }
  .rail-nav, .rail-foot { display: none; }
  .rail.open .rail-nav { display: flex; margin-top: 14px; }
  .rail.open .rail-foot { display: flex; margin-top: 10px; }
  .stage { padding: 22px 16px 60px; }
  .evidence-labels { grid-template-columns: repeat(3, 1fr); row-gap: 8px; }
  .evidence-labels li, .evidence-labels li:first-child, .evidence-labels li:last-child { text-align: left; }
}

/* ---------- Print (composed pages — see src/print.js) ----------
   Uses the same --teal/--navy/--paper/etc. tokens as the live app (defined in
   :root above) so a printout carries the same palette the founder designed
   their workspace around, not a generic grayscale rendering. */
.print-root { display: none; }
@media print {
  body > *:not(.print-root) { display: none !important; }
  .print-root { display: block !important; }
  .print-page {
    position: relative; box-sizing: border-box; overflow: hidden;
    display: flex; flex-direction: column;
    break-after: page; page-break-after: always;
    background: var(--surface); color: var(--ink);
    font-family: var(--font-body);
  }
  .print-page-portrait { width: 8.5in; height: 11in; padding: .65in; }
  .print-page-landscape { width: 11in; height: 8.5in; padding: .5in; }
  .print-page-header {
    display: flex; justify-content: space-between; align-items: baseline; flex: none;
    padding-bottom: 8px; margin-bottom: 14px; border-bottom: 2px solid var(--teal);
    font-size: 9pt; color: var(--navy); font-family: var(--font-display);
  }
  .print-page-title { font-weight: 700; }
  .print-page-date { font-family: var(--font-mono); color: var(--muted); }
  .print-page-content { flex: 1; min-height: 0; overflow: hidden; }
  .print-page-footer {
    display: flex; justify-content: space-between; align-items: baseline; flex: none;
    padding-top: 8px; margin-top: 14px; border-top: 1px solid var(--line-strong);
    font-size: 8pt; color: var(--muted); font-family: var(--font-mono);
  }
  .print-page-brand { color: var(--teal-deep); text-decoration: none; font-weight: 600; }
  .print-page-brand:hover { text-decoration: underline; }

  .print-flow-split { display: flex; gap: 28px; height: 100%; align-items: flex-start; }
  .print-flow-sidebar { flex: none; border-left: 2px solid var(--teal-tint); padding-left: 18px; font-size: 9pt; color: var(--ink-soft); }
  .print-flow-sidebar h3 { font-size: 8pt; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-deep); font-weight: 700; margin: 0 0 6px; }
  .print-flow-sidebar ul { margin: 0 0 16px; padding-left: 16px; }
  .print-flow-sidebar li { margin-bottom: 5px; }
  .print-flow-col { display: flex; flex-direction: column; gap: 16px; }
  .print-field-label { color: var(--navy); }
  .print-field-subtitle { color: var(--teal-deep) !important; }
  .print-field-text { color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
  .print-continued-note { font-size: 9pt; font-style: italic; color: var(--amber); text-align: center; margin: 8px 0 0 !important; }

  .print-canvas-grid { position: relative; }
  .print-canvas-box { border: 1.5px solid var(--line-strong); padding: 8px 10px; overflow: hidden; display: flex; background: var(--surface); }
  .print-canvas-box.filled { border-color: var(--teal); }
  .print-canvas-box-inner { overflow: hidden; width: 100%; }
  .print-canvas-box-title { font-weight: 700; color: var(--navy); margin: 0 0 3px; }
  .print-canvas-box-num { color: var(--teal-deep); font-family: var(--font-mono); }
  .print-canvas-box-prompt { color: var(--muted); margin: 0 0 5px; }
  .print-canvas-box-value { color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
}

/* Shared step overview and manual completion */
.step-tabs { margin-top: -3px; }
.step-overview {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: clamp(30px, 6vw, 74px); padding: 30px 0 44px;
}
.step-overview-copy { max-width: 620px; }
.step-overview-copy h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
.step-overview-copy h3 { margin-top: 30px; color: var(--teal-deep); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; }
.step-overview-copy p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }
.step-progress-panel { padding: 22px 0; border-block: 2px solid var(--navy); }
.step-progress-head { display: flex; justify-content: space-between; align-items: baseline; }
.step-progress-head span { color: var(--teal-deep); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.step-progress-head strong { font-size: 1.8rem; }
.step-progress-track { height: 10px; margin: 15px 0 24px; overflow: hidden; background: #e6ecee; }
.step-progress-track span { display: block; height: 100%; transition: width .2s ease, background .2s ease; }
.step-progress-track.status-none { background: #e6ecee; }
.step-progress-track.status-none span { background: #9aa8ad; }
.step-progress-track.status-planned span { background: #2479a9; }
.step-progress-track.status-running span { background: #b77900; }
.step-progress-track.status-achieved span { background: #087e5b; }
.step-milestones { margin: 0; padding: 0; list-style: none; }
.step-milestones li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.step-milestones li span { color: var(--teal-deep); font-size: .72rem; font-weight: 800; }
.step-milestones p { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.overview-summary { grid-column: 1 / -1; padding: 20px 0; border-top: 1px solid var(--line); }
.step-completion {
  display: flex; justify-content: space-between; align-items: center; gap: 30px;
  margin-top: 48px; padding: 24px 0; border-block: 2px solid var(--navy);
}
.step-completion p { margin: 0; color: var(--ink-soft); }
.completion-check { display: flex; align-items: center; gap: 10px; cursor: pointer; white-space: nowrap; font-weight: 700; }
.completion-check input { position: absolute; opacity: 0; pointer-events: none; }
.completion-box {
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 2px solid var(--line-strong); color: transparent; font-size: 1rem;
}
.completion-check input:checked + .completion-box { border-color: #087e91; background: #087e91; color: #fff; }
.completion-check input:focus-visible + .completion-box { outline: 3px solid rgba(8,126,145,.35); outline-offset: 2px; }

@media (max-width: 760px) {
  .step-overview { grid-template-columns: 1fr; gap: 24px; }
  .step-completion { display: grid; }
  .completion-check { white-space: normal; }
}


/* ---------- Prove: evidence board & ladder ---------- */
.prove-board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-top: 14px; }
.prove-board svg { width: 100%; height: auto; display: block; }
.axis { stroke: var(--line-strong); stroke-width: 1.5; }
.axis.faint { stroke: var(--line); stroke-dasharray: 3 4; }
.axis-label { font-family: var(--font-mono); font-size: 10.5px; fill: var(--muted); }
.proof-path { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 0; }
.board-dot { cursor: pointer; }
.board-dot circle { stroke-width: 2; transition: opacity .15s; }
.board-dot:hover circle, .board-dot:focus circle { opacity: .75; }
.board-dot:focus { outline: none; }
.dot-idle circle { fill: var(--surface); stroke: var(--line-strong); }
.dot-plan circle { fill: var(--surface); stroke: var(--amber); }
.dot-run circle { fill: var(--amber-tint); stroke: var(--amber); }
.dot-done circle { fill: var(--teal-bright); stroke: var(--teal-deep); }
.board-empty { color: var(--muted); font-size: .88rem; margin: 8px 4px 0; }

.level-card h2 { font-size: 1.12rem; }
.tactic { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 10px; }
.tactic summary {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 600;
}
.tactic summary::-webkit-details-marker { display: none; }
.tactic summary::before { content: "▸"; color: var(--teal-deep); font-size: .8rem; transition: transform .15s; }
.tactic[open] summary::before { transform: rotate(90deg); }
.tactic-name { flex: 1; min-width: 160px; }
.tactic-body { padding: 2px 16px 16px; border-top: 1px solid var(--line); }
.tactic-body > p:first-child { margin-top: 12px; }
.plain-list { margin: 0 0 10px; padding-left: 18px; font-size: .9rem; }
.plain-list li { margin-bottom: 4px; }
.badge.status-none { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.badge.status-planned { background: #e8f2f8; color: #155f86; border: 1px solid #4d93bb; }
.badge.status-running { background: var(--amber-tint); color: #7b5200; border: 1px solid #c18a25; }
.badge.status-achieved { background: #e1f3ea; color: #086842; border: 1px solid #2c9a6b; }

.seg { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; flex-wrap: wrap; }
.seg-btn {
  font: inherit; font-size: .82rem; font-weight: 600; color: var(--muted);
  background: var(--surface); border: none; padding: 7px 13px; cursor: pointer;
}
.seg-btn + .seg-btn { border-left: 1px solid var(--line); }
.seg-btn:hover { color: var(--ink); background: var(--paper); }
.seg-btn.active { background: var(--teal); color: #fff; }
.seg-btn.status-planned.active { background: #2479a9; color: #fff; }
.seg-btn.status-running.active { background: #8a5a00; color: #fff; }
.seg-btn.status-achieved.active { background: #087e5b; color: #fff; }

.tool-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tool-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 4px 12px; font-size: .82rem; font-weight: 600; text-decoration: none;
}
.tool-chip small { font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; }
.tool-chip.free { color: var(--teal-deep); border-color: var(--teal); }
.tool-chip.paid { color: var(--ink-soft); }

/* ---------- Valley chart ---------- */
.valley-chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 14px 0; }
.valley-chart svg { width: 100%; height: auto; display: block; }
.valley-line { fill: none; stroke: var(--teal-deep); stroke-width: 2.5; stroke-linejoin: round; }
.valley-area { fill: rgba(14, 140, 127, .12); }
.valley-area.danger { fill: rgba(179, 54, 47, .1); }
.zero-line { stroke: var(--crimson); stroke-width: 1.5; stroke-dasharray: 5 4; }
.trough-dot { fill: var(--crimson); }
.trough-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; fill: var(--crimson); }
.row-danger td { background: var(--crimson-tint); }
td.neg { color: var(--crimson); font-weight: 600; }
td.pos { color: var(--teal-deep); }
.ot-row { display: flex; align-items: center; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.ot-row:last-child { border-bottom: none; }
.stack-sm > * + * { margin-top: 8px; }
.callout.good { border-color: var(--teal); background: var(--teal-tint); }

/* ---------- Investor Readiness Score ---------- */
.investor-readiness { border-color: var(--navy); }
.readiness-overall { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 18px; }
.readiness-overall strong { font-size: 1.4rem; color: var(--teal-deep); }
.readiness-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.readiness-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.readiness-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.readiness-score { font-family: var(--font-mono); font-weight: 700; color: var(--teal-deep); }
.readiness-band-text { margin: 0 0 8px; }
.readiness-next { margin: 0; color: var(--ink-soft); font-size: .88rem; }
@media (max-width: 700px) { .readiness-grid { grid-template-columns: 1fr; } }

/* ---------- Consolidated report & pilot ---------- */
.report-summary, .report-section, .report-gaps, .pilot-card { margin-top: 18px; }
.report-one-liner { color: var(--ink-soft); font-size: 1.05rem; }
.report-section p:last-child { margin-bottom: 0; }
.report-gaps li { margin-bottom: 7px; }
.pilot-toggle { display: inline-flex; gap: 9px; align-items: center; font-weight: 600; }
.pilot-toggle input { width: 18px; height: 18px; accent-color: var(--teal); }
.pilot-form { margin-top: 16px; max-width: 760px; }
.market-sources { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Toolbox ---------- */
.slide-card .prompt { color: var(--muted); font-size: .86rem; }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 24px; }
.patent-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ============================================================
   Institutional edition
   Innovate Mississippi cues with private-client portal restraint.
   ============================================================ */

:root {
  --ink: #111b2e;
  --ink-soft: #354157;
  --muted: #687387;
  --paper: #f7f8fa;
  --surface: #ffffff;
  --line: #d8dde5;
  --line-strong: #aeb7c5;
  --teal: #249bc2;
  --teal-deep: #166f91;
  --teal-tint: #eef7fa;
  --teal-bright: #7bc66c;
  --amber: #8a6515;
  --amber-tint: #faf6e9;
  --crimson: #a13535;
  --crimson-tint: #fbf1f1;
  --navy: #0d1830;
  --shadow: none;
  --radius: 2px;
  --radius-lg: 3px;
  --font-display: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --font-body: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, monospace;
  --rail-w: 224px;
}

body {
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: .002em;
  background: var(--surface);
}

h1, h2, h3 { letter-spacing: -.018em; }
h1 { font-size: clamp(2.3rem, 4.5vw, 3.55rem); font-weight: 400; line-height: 1.02; }
h2 { font-size: 1.45rem; font-weight: 400; }
h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; }

.shell { background: var(--surface); }
.rail {
  padding: 24px 18px 20px;
  border-right: 1px solid #1c2b47;
}
.rail-brand {
  min-height: 58px;
  margin: -4px 0 30px;
  padding-bottom: 21px;
  border-bottom: 1px solid #273550;
}
.brand-link { gap: 8px; }
.brand-mark { width: 19px; height: 38px; color: #35a7ca; }
.brand-mark-green { fill: #78c56a; }
.brand-text strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -.01em;
}
.brand-text small {
  color: #b9c1cf;
  font-size: .61rem;
  font-weight: 600;
  letter-spacing: .14em;
}

.rail-nav { gap: 0; }
.nav-item {
  grid-template-columns: 1fr auto;
  min-height: 48px;
  gap: 8px;
  padding: 8px 9px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0;
  color: #d5dbe5;
  font-size: .89rem;
}
.nav-item:hover { background: #12213d; }
.nav-item.active {
  background: #13243f;
  border-color: #37a6c8;
  color: #fff;
}
.nav-progress { color: #75c86d; font-family: var(--font-body); }
.rail-foot { border-color: #273550; gap: 7px; }
.global-save-state {
  color: #b9c6d6;
  font-size: .68rem;
  line-height: 1.35;
  padding: 2px 0 5px;
}
.global-save-state.save-failed { color: #ffd2cf; }
.rail-foot .btn {
  min-height: 36px;
  border-color: #65728a;
  border-radius: 1px;
  color: #e7ebf1;
  opacity: 1;
}
.rail-note { color: #939daf; font-size: .68rem; }

.stage {
  max-width: 1320px;
  padding: 48px clamp(32px, 5vw, 76px) 96px;
}
.loading-view { font-family: var(--font-body); }

.page-head {
  max-width: 820px;
  margin-bottom: 36px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin-bottom: 14px;
  color: var(--teal-deep);
  font-family: var(--font-body);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .15em;
}
.eyebrow::before {
  width: 5px;
  height: 18px;
  background: linear-gradient(to bottom, #37a6c8 0 58%, #78c56a 58% 100%);
}
.page-head .lede, .hero .lede {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero {
  max-width: 1080px;
  margin-bottom: 30px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.hero h1 { max-width: 19ch; }
.hero .lede { max-width: 68ch; margin-top: 14px; }
.hero-report {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 35px;
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: none;
}
.hero-report:hover { text-decoration: underline; text-underline-offset: 4px; }
.evidence-section h2 {
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.evidence-scale {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.evidence-scale li {
  position: relative;
  min-width: 0;
  padding-right: 14px;
}
.evidence-scale li::before {
  content: "";
  position: absolute;
  top: 15px; left: 31px; right: 0;
  height: 1px;
  background: var(--line-strong);
}
.evidence-scale li:last-child::before { display: none; }
.evidence-step {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 31px; height: 31px;
  margin-bottom: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 600;
}
.evidence-scale li:first-child .evidence-step {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.evidence-name {
  display: block;
  max-width: 15ch;
  color: var(--ink-soft);
  font-size: .74rem;
  line-height: 1.35;
}

.card, .side-widget, .entry {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.card { padding: 24px 0; }
.card + .card, .stack > * + * { margin-top: 0; }
.side-widget { padding: 20px 0; }
.side-widget + .side-widget { margin-top: 0; }
.entry { padding: 18px 0; margin-bottom: 0; }
.card-title-row { margin-bottom: 12px; }

.grid-2, .grid-3 { gap: 22px; }
.callout {
  padding: 12px 15px;
  border-left-width: 2px;
  border-radius: 0;
  background: #f3f8fa;
}
.callout.warn { background: #faf8f1; }
.callout.danger { background: #fbf3f3; }

label.field-label {
  margin-bottom: 7px;
  font-size: .79rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.field-hint { font-size: .73rem; }
input[type="text"], input[type="number"], input[type="date"], input[type="url"],
input[type="email"], select, textarea {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 1px;
  padding: 9px 11px;
  font-family: var(--font-body);
  font-size: .91rem;
}
textarea { min-height: 98px; }
input:focus, select:focus, textarea:focus {
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 2px rgba(36, 155, 194, .13);
}
.field-warning { border-radius: 0; }

.btn {
  min-height: 40px;
  border-radius: 1px;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: .82rem;
  letter-spacing: .01em;
  transition: background .12s, border-color .12s, color .12s;
}
.btn-primary { background: var(--navy); border-color: var(--navy); }
.btn-primary:hover { background: #182742; }
.btn-secondary { color: var(--navy); border-color: #778296; }
.btn-secondary:hover { background: #f3f5f8; }
.btn-danger { border-color: #a96a6a; }
.btn-sm { min-height: 32px; padding: 6px 11px; font-size: .75rem; }

.badge {
  padding: 2px 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge-plain { border: 0; background: none; }
.badge-strong, .badge-better, .badge-weak { background: none; }

.journey-grid {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0 !important;
  border-top: 1px solid var(--line);
}
.station-card {
  display: grid;
  grid-template-columns: 110px minmax(150px, .55fr) minmax(120px, .35fr) 1fr;
  align-items: center;
  gap: 22px;
  min-height: 82px;
  padding: 17px 5px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  transition: background .12s;
}
.station-card:hover {
  border-color: var(--line);
  background: #f8fafb;
  transform: none;
}
.station-top { display: block; }
.station-num {
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .69rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.station-verb {
  color: var(--teal-deep);
  font-size: .68rem;
  letter-spacing: .09em;
}
.station-card h3 {
  position: relative;
  margin: 0;
  font-size: .96rem;
}
.station-card h3::after {
  content: "→";
  margin-left: 10px;
  color: var(--teal-deep);
  font-weight: 400;
}
.station-card p { font-size: .84rem; }

.tabs {
  gap: 0;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 30px;
  overflow-x: auto;
  flex-wrap: nowrap;
}
.tab {
  flex: none;
  margin-bottom: 0;
  padding: 11px 15px;
  border-bottom: 2px solid transparent;
  font-size: .78rem;
}
.tab.active { border-bottom-color: var(--navy); color: var(--navy); }

.canvas-grid { gap: 0; border: 1px solid var(--line-strong); }
.canvas-box {
  min-height: 160px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.canvas-box.filled { border-color: var(--teal); box-shadow: inset 2px 0 0 var(--teal); }

.table-wrap { border-radius: 0; }
table.data th {
  background: #f5f7f9;
  font-size: .68rem;
  letter-spacing: .07em;
}
table.data td { padding-top: 10px; padding-bottom: 10px; }

.kpis { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.kpi {
  min-height: 104px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 16px;
}
.kpi .kpi-value {
  margin: 5px 0 2px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
}
.kpi.kpi-accent { background: #f1f8fa; }

.score-value { font-family: var(--font-display); font-weight: 400; }
.char-count, .axis-label, .trough-label { font-family: var(--font-body); }
.prove-board, .valley-chart {
  border-radius: 0;
  background: #fbfcfd;
}
.seg { border-radius: 1px; }
.seg-btn { border-radius: 0; font-family: var(--font-body); }
.seg-btn.active { background: var(--navy); }
.tool-chip { border-radius: 1px; }
.tactic { border-radius: 0; }

.toast {
  border-radius: 1px;
  background: var(--navy);
  font-size: .8rem;
}

.report-summary, .report-section, .report-gaps, .pilot-card { margin-top: 0; }
.pilot-toggle input { border-radius: 0; }
.document-page { max-width: 920px; }

.skip-link { border-radius: 1px; }
.save-alert { background: #fbf1f1; }

.library-status {
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.library-status::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #7c8798;
  content: "";
}

.library-status.online::before { background: var(--green); }

@media (max-width: 980px) {
  .station-card {
    grid-template-columns: 85px minmax(130px, .45fr) minmax(100px, .3fr) 1fr;
    gap: 14px;
  }
}

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail {
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid #273550;
  }
  .stage {
    width: 100%;
    min-width: 0;
    max-width: 100vw;
  }
  .stage > div, .page-head, .split, .split > *, .card-title-row { min-width: 0; }
  .badge { max-width: 100%; white-space: normal; }
  .tabs { width: 100%; max-width: 100%; }
  .rail-brand {
    min-height: 37px;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .brand-mark { height: 34px; }
  .rail-toggle { border-radius: 1px; }
  .stage { padding: 40px 20px 70px; }
  .hero { padding-bottom: 28px; }
  .hero h1 { font-size: clamp(2.45rem, 13vw, 3.65rem); }
  .hero-report { margin-bottom: 30px; }
  .evidence-scale {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 22px;
  }
  .evidence-scale li:nth-child(3)::before,
  .evidence-scale li:nth-child(6)::before { display: none; }
  .evidence-name { font-size: .7rem; }
  .station-card {
    grid-template-columns: 72px 1fr;
    gap: 5px 14px;
    padding: 16px 2px;
  }
  .station-verb { grid-column: 2; grid-row: 1; }
  .station-card h3 { grid-column: 2; }
  .station-card p { grid-column: 2; }
}


/* Founder-friendly typography, support, and funding narrative */
h1, h2, .hero h1, .page-head h1, .kpi-value {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.035em;
}
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.rail-note a { color: #c1cad7; text-decoration-color: #51617a; }
.rail-note a:hover { color: #fff; }

.support-actions {
  position: fixed; right: 18px; bottom: 18px; z-index: 25;
  display: flex; border: 1px solid #9ca8b8; background: #fff;
}
.support-button {
  border: 0; background: #fff; color: var(--navy); cursor: pointer;
  font: 700 .76rem/1 var(--font-body); letter-spacing: .02em;
  padding: 12px 15px; text-decoration: none;
}
.support-button + .support-button { border-left: 1px solid #c7ced8; }
.support-button:hover, .support-button:focus-visible { background: #eef6f8; }
.support-contact { color: #086f91; }
.faq-dialog {
  width: min(620px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 40px));
  margin: auto; padding: 0; border: 1px solid var(--navy); border-radius: 1px;
  background: #fff; color: var(--ink);
}
.faq-dialog::backdrop { background: rgba(13, 24, 48, .62); }
.faq-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.faq-head h2 { margin: 0; }
.faq-close {
  border: 0; background: transparent; color: var(--teal-deep); cursor: pointer;
  font: 700 .78rem var(--font-body); text-transform: uppercase;
}
#faq-body { padding: 20px 24px 28px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 700; }
.faq-item p { margin: 0; padding: 0 0 17px; color: var(--ink-soft); }

.funding-story-steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 28px; padding: 0; border-block: 1px solid var(--line); list-style: none;
}
.funding-story-steps li {
  min-width: 0; padding: 16px 12px; color: var(--muted);
  font-size: .74rem; font-weight: 700; line-height: 1.35;
}
.funding-story-steps li + li { border-left: 1px solid var(--line); }
.funding-story-steps span { display: block; margin-bottom: 5px; color: var(--teal-deep); font-size: .7rem; }
.funding-story textarea { min-height: 92px; }
.funding-use-list { margin: 18px 0 14px; }
.funding-use-row {
  display: grid; grid-template-columns: 1.1fr 130px 105px 105px 1.2fr auto;
  gap: 12px; align-items: end; padding: 14px 0; border-top: 1px solid var(--line);
}
.expense-row {
  display: grid; grid-template-columns: 1.2fr 150px 110px 110px auto;
  gap: 12px; align-items: end; padding: 13px 0; border-top: 1px solid var(--line);
}
.expense-row:last-child { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 15px 0 5px; font-size: .72rem; font-weight: 700; }
.chart-legend span::before { content: ""; display: inline-block; width: 22px; height: 3px; margin-right: 7px; vertical-align: middle; background: currentColor; }
.chart-legend .cash { color: #31556f; }
.chart-legend .revenue { color: #087e5b; }
.chart-legend .expenses { color: #b3362f; }
.valley-line.cash-line { stroke: #31556f; stroke-width: 3; }
.valley-line.revenue-line { stroke: #087e5b; }
.valley-line.expense-line { stroke: #b3362f; }
.funding-use-row:last-child { border-bottom: 1px solid var(--line); }
.funding-use-field { min-width: 0; }
.funding-use-field > span { display: block; margin-bottom: 6px; color: var(--ink); font-size: .72rem; font-weight: 700; }
.funding-use-field input { width: 100%; }
.remove-use {
  height: 42px; border: 0; background: transparent; color: var(--crimson);
  cursor: pointer; font: 700 .72rem var(--font-body);
}
.add-use span { margin-right: 5px; font-size: 1rem; }
.funding-case { margin-top: 24px; padding: 22px 0 2px; border-top: 1px solid var(--line-strong); }
.funding-case h3 { color: var(--teal-deep); text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; }
.funding-case > p:first-of-type { max-width: 900px; font-size: 1.08rem; line-height: 1.65; }
.kpi > .kpi-label, .kpi > .kpi-value, .kpi > .kpi-sub { display: block; }
.monthly-details { margin-top: 20px; border-block: 1px solid var(--line); }
.monthly-details > summary { cursor: pointer; padding: 17px 2px; font-weight: 700; color: var(--teal-deep); }

@media (max-width: 860px) {
  .funding-story-steps { grid-template-columns: 1fr; margin-bottom: 22px; }
  .funding-story-steps li {
    display: grid; grid-template-columns: 28px 1fr; gap: 8px;
    align-items: center; padding: 10px 4px;
  }
  .funding-story-steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .funding-story-steps span { margin: 0; }
  .funding-use-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .funding-use-field:first-child, .funding-use-field:nth-child(5) { grid-column: 1 / -1; }
  .remove-use { grid-column: 1 / -1; justify-self: start; height: auto; padding: 0 0 4px; }
  .expense-row { grid-template-columns: 1fr 1fr; }
  .expense-row .funding-use-field:first-child { grid-column: 1 / -1; }
  .support-actions { right: 10px; bottom: 10px; }
  .support-button { padding: 9px 10px; font-size: .66rem; }
}

@media (max-width: 520px) {
  body { padding-bottom: 54px; }
  .stage { padding-inline: 16px; }
  .page-head h1, .hero h1 { font-size: clamp(2.25rem, 12vw, 3.15rem); line-height: .98; }
  .page-head .lede, .hero .lede { font-size: 1.03rem; line-height: 1.65; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kpi { min-width: 0; }
  .kpi-value { font-size: 1.55rem; }
  .funding-use-row { grid-template-columns: minmax(0, 1fr); }
  .funding-use-field { grid-column: 1 / -1 !important; }
  .expense-row { grid-template-columns: 1fr; }
}

/* Two-speed idea check and customer proof */
.quick-check {
  margin: 8px 0 32px;
  border-block: 2px solid var(--navy);
  background: #fff;
}
.quick-check-head {
  display: flex; justify-content: space-between; gap: 24px; align-items: start;
  padding: 25px 2px 18px; border-bottom: 1px solid var(--line);
}
.quick-check-head h2 { margin: 5px 0 0; font-size: clamp(1.45rem, 3vw, 2.05rem); }
.quick-time, .quick-progress, .quick-question-number {
  color: var(--teal-deep); font-size: .71rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.quick-check-body { max-width: 790px; min-height: 260px; padding: 34px 2px 25px; }
.quick-check-body h3 { margin: 8px 0 10px; font-size: clamp(1.35rem, 3vw, 2rem); }
.quick-help { margin: 0 0 20px; color: var(--ink-soft); }
.quick-check-body textarea { min-height: 112px; font-size: 1rem; }
.quick-check-body select { max-width: 650px; font-size: .96rem; }
.quick-check-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  min-height: 73px; padding: 15px 2px; border-top: 1px solid var(--line);
}
.quick-result-lead { max-width: 750px; font-size: 1.12rem; line-height: 1.65; }
.quick-next-action {
  display: grid; gap: 7px; margin: 25px 0 15px; padding: 17px 0;
  border-block: 1px solid var(--line);
}
.quick-next-action span { color: var(--teal-deep); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.quick-next-action strong { font-size: 1.05rem; line-height: 1.55; }
.quick-result-reason { color: var(--ink-soft); }
.profile-details, .deep-details, .exercise-more {
  margin: 24px 0; border-block: 1px solid var(--line);
}
.profile-details > summary, .deep-details > summary, .exercise-more > summary {
  cursor: pointer; padding: 17px 2px; color: var(--teal-deep); font-weight: 750;
}
.profile-details > .card { margin: 0 0 22px; }
.deep-work-head { max-width: 760px; margin-top: 52px; }
.deep-work-head h2 { margin-bottom: 7px; }
.deep-work-head p { color: var(--ink-soft); }

.proof-check { padding: 24px 0 8px; border-inline: 0; box-shadow: none; }
.proof-check-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.proof-check-head p { max-width: 440px; color: var(--ink-soft); }
.customer-action-ladder {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 24px 0 0; padding: 0; list-style: none; border-block: 1px solid var(--line);
}
.customer-action-ladder li + li { border-left: 1px solid var(--line); }
.customer-action-ladder button {
  width: 100%; height: 100%; min-height: 150px; padding: 17px 14px;
  border: 0; background: #fff; color: var(--ink); text-align: left; cursor: pointer;
}
.customer-action-ladder button:hover { background: #f2f7f7; }
.customer-action-ladder button.selected { background: var(--navy); color: #fff; }
.action-step {
  display: block; margin-bottom: 14px; color: var(--teal); font-size: .72rem; font-weight: 800;
}
.action-copy { display: grid; gap: 8px; }
.action-copy strong { line-height: 1.25; }
.action-copy small { color: inherit; opacity: .78; line-height: 1.45; }
.proof-response { padding: 24px 2px 12px; }
.proof-meaning { display: grid; gap: 7px; margin-bottom: 22px; }
.proof-meaning span { color: var(--teal-deep); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.proof-meaning strong { font-size: 1.05rem; }
.proof-response textarea { min-height: 104px; }
.deep-details > summary { display: flex; justify-content: space-between; gap: 18px; }
.deep-details > summary span { color: var(--muted); font-size: .76rem; font-weight: 500; }
.deep-details-body { padding: 4px 0 24px; }
.proof-method-group { margin-top: 25px; }

.competitive-activities { margin-bottom: 30px; padding: 25px 0; border-block: 2px solid var(--navy); }
.competitive-activities > p { max-width: 790px; color: var(--ink-soft); }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; border-block: 1px solid var(--line); }
.activity-item { min-width: 0; padding: 22px 18px 24px; }
.activity-item + .activity-item { border-left: 1px solid var(--line); }
.activity-number { color: var(--teal-deep); font-size: .7rem; font-weight: 800; }
.activity-item h3 { margin: 10px 0 8px; }
.activity-item p { min-height: 72px; color: var(--ink-soft); font-size: .9rem; }
.activity-item textarea { min-height: 120px; }
.exercise-more { margin-top: 15px; }
.exercise-more > div { padding-bottom: 8px; }
.canvas-guidance { margin-top: 16px; border-top: 1px solid var(--line); }
.canvas-guidance summary { padding: 13px 0; cursor: pointer; color: var(--teal-deep); font-weight: 700; }
.canvas-guidance li { margin-bottom: 6px; }
.canvas-tip { margin: -2px 0 8px; color: var(--teal-deep); font-size: .7rem; line-height: 1.4; }
.claim-editor { margin: 20px 0; padding: 22px 0; border-block: 1px solid var(--line-strong); }
.matrix-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: .72rem; font-weight: 700; }
.matrix-legend span { padding: 4px 8px; border-left: 4px solid; }
.matrix-evidence { min-width: 108px; padding: 8px !important; vertical-align: middle; }
.matrix-cell {
  width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-soft); cursor: pointer; font: inherit; font-size: .76rem; font-weight: 700;
}
.matrix-cell:hover, .matrix-cell:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.matrix-cell.status-proven { border-color: #087e91; background: #e4f3f4; color: #075a67; }
.matrix-cell.status-estimate { border-color: #a06b00; background: #fff4d9; color: #704a00; }
.matrix-cell.status-unknown { border-color: #7b8794; background: #f0f2f4; color: var(--muted); }
.matrix-print-notes { display: none; }
.matrix-print-note { border-top: 1px solid #bbb; padding: 8px 0; break-inside: avoid; }
.matrix-print-note strong, .matrix-print-note span { display: block; }
.matrix-print-note span { font-weight: 700; margin-top: 3px; }
.segment-ten-warning { margin-bottom: 12px; padding: 10px 12px; border-left: 4px solid #b77900; background: #fff7df; color: #704a00; font-size: .84rem; }
.evidence-proven, td.evidence-proven { border-color: #087e91 !important; background: #e4f3f4; }
.evidence-estimate, td.evidence-estimate { border-color: #a06b00 !important; background: #fff4d9; }
.evidence-unknown, td.evidence-unknown { border-color: #7b8794 !important; background: #f0f2f4; }
.compete-inner-tabs { margin-top: 25px; }
.pitch-deck-preview {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
  margin: 28px 0;
}
.deck-slide {
  position: relative; aspect-ratio: 16 / 9; min-width: 0;
  display: flex; flex-direction: column;
  padding: 6%; border: 1px solid var(--line-strong); background: #fff;
}
.deck-slide:nth-child(even) { background: var(--navy); color: #fff; }
.deck-slide-head { display: flex; justify-content: space-between; font-size: .68rem; font-weight: 700; opacity: .75; flex: none; }
.deck-slide h2 { max-width: 18ch; font-size: clamp(1.15rem, 2.6vw, 1.7rem); margin: auto 0 .3em; }
.deck-slide p { max-width: 54ch; white-space: pre-wrap; margin: 0 0 auto; }
.deck-slide img.deck-slide-logo { max-width: 100px; max-height: 55px; object-fit: contain; margin-bottom: 12px; }
.deck-slide-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; color: inherit; font-size: .72rem; opacity: .72; flex: none; }
.deck-slide-foot a { color: inherit; }
/* A white card regardless of the slide's alternating light/dark background, so chart colors stay legible either way. */
.deck-chart { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #fff; color: var(--ink); }
.deck-chart svg { width: 100%; height: auto; display: block; }
.funding-timeline-axis { display: flex; justify-content: space-between; margin-top: 4px; padding-left: 160px; font-size: .62rem; color: var(--muted); }

@media (max-width: 760px) {
  .pitch-deck-preview { grid-template-columns: 1fr; }
}


@media (max-width: 860px) {
  .proof-check-head { display: block; }
  .customer-action-ladder { grid-template-columns: 1fr; }
  .customer-action-ladder li + li { border-left: 0; border-top: 1px solid var(--line); }
  .customer-action-ladder button {
    display: grid; grid-template-columns: 28px 1fr; gap: 10px;
    min-height: 0; padding: 15px 6px;
  }
  .action-step { margin: 2px 0 0; }
  .activity-grid { grid-template-columns: 1fr; }
  .activity-item { padding-inline: 2px; }
  .activity-item + .activity-item { border-left: 0; border-top: 1px solid var(--line); }
  .activity-item p { min-height: 0; }
}

@media (max-width: 520px) {
  .quick-check-body { min-height: 310px; padding-top: 28px; }
  .quick-check-actions .btn { width: 100%; text-align: center; }
  .quick-check-actions .text-link { padding: 8px 2px; }
  .deep-details > summary { display: block; }
  .deep-details > summary span { display: block; margin-top: 6px; }
}

/* Dashboard, saved work, and evidence chain */
.dashboard-link {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center;
  margin: 0 0 12px; padding: 10px; border-block: 1px solid #23415f;
  color: #dce8f2; text-decoration: none; font-size: .88rem;
}
.dashboard-link:hover, .dashboard-link.active { background: rgba(255,255,255,.07); color: #fff; }
.dashboard-callout {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  margin: 26px 0 0; padding: 17px 2px; border-block: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.dashboard-callout:hover { color: var(--teal-deep); }
.dashboard-callout span:first-child { display: grid; gap: 2px; }
.dashboard-callout small { font-weight: 400; }
.save-status { margin-left: auto; color: var(--muted); font-size: .76rem; }
.quick-answer-summary, .saved-answer-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0; border-block: 1px solid var(--line);
}
.quick-answer-summary > div, .saved-answer-list > div { padding: 13px 4px; }
.quick-answer-summary > div:nth-child(even), .saved-answer-list > div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.quick-answer-summary dt, .saved-answer-list dt {
  color: var(--teal-deep); font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.quick-answer-summary dd, .saved-answer-list dd { margin: 4px 0 0; }
.company-preview {
  display: grid; grid-template-columns: 112px 1fr; gap: 26px; align-items: center;
  margin: 0 0 34px; padding: 26px 0; border-block: 2px solid var(--navy);
}
.company-logo, .company-monogram {
  width: 112px; height: 112px; object-fit: contain; border: 1px solid var(--line); background: #fff;
}
.company-monogram {
  display: grid; place-items: center; background: var(--navy); color: #fff;
  font-size: 2.3rem; font-weight: 700;
}
.company-preview h2 { margin: 3px 0 8px; font-size: 1.8rem; }
.company-description { color: var(--ink-soft); font-size: 1rem; }
.company-contact { color: var(--muted); font-size: .82rem; }
.profile-form { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.profile-wide { grid-column: 1 / -1; }
.team-member-list { margin: 14px 0; }
.team-member-row { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.team-member-row:last-child { border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.team-member-advisor { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; }
.team-member-advisor input { width: 16px; height: 16px; accent-color: var(--teal); }
.dashboard-section { margin-top: 34px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.report-company {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  margin-bottom: 25px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.report-company img { width: 74px; height: 74px; object-fit: contain; }
.report-company div { display: grid; gap: 2px; }
.report-company strong { font-size: 1.15rem; }
.report-company span { color: var(--ink-soft); }

.chain-scale {
  display: flex; justify-content: space-between; margin-top: 24px;
  color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.chain-scale::after {
  content: ""; position: absolute;
}
.customer-action-ladder { align-items: end; border-top: 0; }
.customer-action-ladder li { position: relative; display: flex; align-items: end; }
.customer-action-ladder li:nth-child(1) button { min-height: 138px; }
.customer-action-ladder li:nth-child(2) button { min-height: 162px; }
.customer-action-ladder li:nth-child(3) button { min-height: 186px; }
.customer-action-ladder li:nth-child(4) button { min-height: 210px; }
.customer-action-ladder li:nth-child(5) button { min-height: 234px; }
.customer-action-ladder li::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--teal);
  opacity: calc(.18 + var(--chain-index, 0) * .14);
}
.customer-action-ladder li:nth-child(1) { --chain-index: 1; }
.customer-action-ladder li:nth-child(2) { --chain-index: 2; }
.customer-action-ladder li:nth-child(3) { --chain-index: 3; }
.customer-action-ladder li:nth-child(4) { --chain-index: 4; }
.customer-action-ladder li:nth-child(5) { --chain-index: 5; }
.action-resource {
  color: var(--teal-deep); font-size: .66rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
}
.customer-action-ladder button.selected .action-resource { color: #7ee8d9; }
.proof-meaning { grid-template-columns: minmax(160px, .45fr) 1fr; gap: 28px; }
.proof-meaning > div { display: grid; gap: 7px; }

@media (max-width: 860px) {
  .dashboard-link { display: none; }
  .rail.open .dashboard-link { display: grid; margin-top: 14px; }
  .quick-answer-summary, .saved-answer-list { grid-template-columns: 1fr; }
  .quick-answer-summary > div:nth-child(even), .saved-answer-list > div:nth-child(even) {
    padding-left: 4px; border-left: 0;
  }
  .quick-answer-summary > div + div, .saved-answer-list > div + div { border-top: 1px solid var(--line); }
  .customer-action-ladder li:nth-child(n) button { min-height: 0; }
  .chain-scale { margin-bottom: 8px; }
  .proof-meaning { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 520px) {
  .company-preview { grid-template-columns: 72px 1fr; gap: 16px; }
  .company-logo, .company-monogram { width: 72px; height: 72px; }
  .company-preview h2 { font-size: 1.4rem; }
  .company-contact { overflow-wrap: anywhere; }
  .save-status { width: 100%; margin-left: 0; }
  .support-actions {
    left: 0; right: 0; bottom: 0;
    flex-direction: row;
    border-width: 1px 0 0;
  }
  .support-button { flex: 1; min-height: 48px; padding: 12px; text-align: center; }
  .support-button + .support-button { border-left: 1px solid #c7ced8; border-top: 0; }
}

