/* Founder Track public startup page (/startup/<slug>), FOUNDER_PLAN.md WP6.
   Light, close to the member bio pages, built on system.css tokens. Every rule
   is scoped under .st-root so nothing leaks into other pages. */

.st-root { --st-paper: #FFFFFF; --st-band: var(--alt, #F2F4F7); --st-max: 1040px;
  background: var(--st-band); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--sans); }
.st-root * { box-sizing: border-box; }
.st-root .st-wrap { width: 100%; max-width: var(--st-max); margin: 0 auto; padding: 0 28px; }
.st-root a { color: var(--teal-ink); }
.st-root a:hover { color: var(--ink); }

/* Top bar */
.st-root .st-top { background: #fff; border-bottom: 1px solid var(--rule); }
.st-root .st-top .st-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.st-root .st-crumb { font-size: 13.5px; color: var(--mute); margin: 0; }
.st-root .st-crumb a { color: var(--ink-2); text-decoration: none; }
.st-root .st-crumb a:hover { text-decoration: underline; }
.st-root .st-preview { background: #FFF4DC; border-bottom: 1px solid var(--gold); color: #5C3F0A; font-size: 14px; }
.st-root .st-preview .st-wrap { padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px;
  align-items: center; justify-content: space-between; }
.st-root .st-preview a { color: #5C3F0A; font-weight: 600; }

/* Memo header */
.st-root .st-hero { background: #fff; border-bottom: 1px solid var(--rule); padding: 40px 0 32px; }
.st-root .st-memo { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 18px; padding: 0 0 12px;
  border-bottom: 1px dashed var(--rule); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.st-root .st-memo b { color: var(--ink); font-weight: 700; letter-spacing: .04em; }
.st-root .st-id { display: flex; gap: 20px; align-items: center; }
.st-root .st-logo { width: 76px; height: 76px; border-radius: 16px; flex: none; object-fit: contain; background: #fff;
  border: 1px solid var(--rule); }
.st-root .st-mono { width: 76px; height: 76px; border-radius: 16px; flex: none; display: flex; align-items: center;
  justify-content: center; background: var(--ink); color: var(--gold-hi); font-weight: 800; font-size: 30px; }
.st-root .st-hero h1 { font-size: 40px; margin: 0 0 6px; line-height: 1.05; }
.st-root .st-lede { font-size: 19px; color: var(--ink-2); margin: 0; max-width: 46em; line-height: 1.45; }
.st-root .st-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Founder-stated label */
.st-root .st-fs { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px;
  border: 1px solid #E4B855; background: #FFF8E8; color: #6B4A0C; font-size: 11.5px; font-weight: 650; letter-spacing: .02em;
  text-transform: none; vertical-align: middle; white-space: nowrap; }
.st-root .st-ev { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px;
  background: #E1F5F2; color: #0B4F49; font-size: 11.5px; font-weight: 650; vertical-align: middle; white-space: nowrap; }

/* Key-metric strip */
.st-root .st-metrics { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.st-root .st-metrics li { background: #fff; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 10px; }
.st-root .st-metrics .v { display: block; font-size: 26px; font-weight: 750; font-stretch: 108%; line-height: 1.1; }
.st-root .st-metrics .l { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.st-root .st-metrics .m { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-top: 6px;
  font-size: 12px; color: var(--mute); }
.st-root .st-strip { padding: 22px 0 0; }

/* Body */
.st-root main { flex: 1; }
.st-root .st-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding: 28px 0 48px;
  align-items: start; }
.st-root .st-sec { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-ui, 12px); padding: 24px 26px;
  margin: 0 0 18px; scroll-margin-top: 16px; }
.st-root .st-sec h2 { font-size: 22px; margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-root .st-sec h3 { font-size: 15px; margin: 18px 0 6px; color: var(--ink); display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; }
.st-root .st-sec h3:first-of-type { margin-top: 0; }
.st-root .st-sec p { margin: 0 0 10px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; }
.st-root .st-empty { color: var(--mute); font-style: italic; }
.st-root .st-num { font-size: 12px; font-weight: 700; color: var(--mute); letter-spacing: .08em; text-transform: uppercase; }

/* Demo video */
.st-root .st-video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--ink);
  margin: 6px 0 0; }
.st-root .st-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Evidence ladder */
.st-root .st-ladder { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 6px; align-items: end; }
.st-root .st-rung { border: 1px solid var(--rule); border-radius: 10px; padding: 10px; background: #fff; position: relative; }
.st-root .st-rung .bar { display: block; height: 6px; border-radius: 999px; background: var(--alt); margin-bottom: 8px; }
.st-root .st-rung.reached .bar { background: var(--ink); }
.st-root .st-rung.current { border: 2px solid var(--gold); }
.st-root .st-rung.current .bar { background: var(--gold); }
.st-root .st-rung .n { font-size: 11.5px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.st-root .st-rung .t { display: block; font-weight: 700; font-size: 14px; line-height: 1.25; margin-top: 2px; }
.st-root .st-rung .s { display: block; font-size: 12px; color: var(--mute); margin-top: 4px; }
.st-root .st-rung:not(.reached) .t { color: var(--mute); font-weight: 600; }
.st-root .st-ladder li:nth-child(1) { min-height: 78px; } .st-root .st-ladder li:nth-child(2) { min-height: 90px; }
.st-root .st-ladder li:nth-child(3) { min-height: 102px; } .st-root .st-ladder li:nth-child(4) { min-height: 114px; }
.st-root .st-ladder li:nth-child(5) { min-height: 126px; }
.st-root blockquote.st-quote { margin: 10px 0; padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--alt);
  border-radius: 0 10px 10px 0; color: var(--ink); line-height: 1.55; }
.st-root blockquote.st-quote footer { font-size: 12.5px; color: var(--mute); margin-top: 6px; }

/* Team */
.st-root .st-team { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.st-root .st-person { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--rule);
  border-radius: 10px; }
.st-root .st-av { width: 46px; height: 46px; border-radius: 50%; flex: none; object-fit: cover; background: var(--alt); }
.st-root .st-av-ph { width: 46px; height: 46px; border-radius: 50%; flex: none; display: flex; align-items: center;
  justify-content: center; background: var(--l2); color: #fff; font-weight: 700; }
.st-root .st-person b { display: block; line-height: 1.25; }
.st-root .st-person span { font-size: 13.5px; color: var(--mute); }
.st-root .st-person a { display: block; line-height: 1.25; font-weight: 650; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold);
  text-underline-offset: 3px; }

/* Side: contact panel + section nav */
.st-root .st-side { position: sticky; top: 16px; display: grid; gap: 14px; }
.st-root .st-panel { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-ui, 12px); padding: 20px; }
.st-root .st-panel h2 { font-size: 18px; margin: 0 0 4px; }
.st-root .st-panel p { font-size: 14px; color: var(--ink-2); margin: 0 0 12px; line-height: 1.5; }
.st-root .st-panel.contact { border-top: 4px solid var(--gold); }
.st-root .st-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 12px; border: 0; padding: 0; }
.st-root .st-kind legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.st-root .st-kind label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px;
  border: 1.5px solid var(--rule); border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: center;
  padding: 4px 6px; }
.st-root .st-kind input { position: absolute; opacity: 0; pointer-events: none; }
.st-root .st-kind input:checked + span { color: var(--ink); }
.st-root .st-kind label:has(input:checked) { border-color: var(--ink); background: var(--alt); }
.st-root .st-kind label:has(input:focus-visible) { outline: 2px solid var(--teal-accent); outline-offset: 2px; }
.st-root .st-field { display: block; margin: 0 0 10px; }
.st-root .st-field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.st-root .st-field input, .st-root .st-field textarea { width: 100%; border: 1px solid var(--rule); border-radius: 8px;
  padding: 9px 11px; font-size: 15px; background: #fff; color: var(--ink); }
.st-root .st-field textarea { min-height: 88px; resize: vertical; }
.st-root .st-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.st-root .st-msg { font-size: 14px; margin: 10px 0 0; min-height: 1em; }
.st-root .st-msg.err { color: #991B1B; }
.st-root .st-msg.ok { color: #0B4F49; }
.st-root .st-toc { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.st-root .st-toc li { border-top: 1px solid var(--rule); }
.st-root .st-toc li:first-child { border-top: 0; }
.st-root .st-toc a { display: block; padding: 8px 0; color: var(--ink-2); text-decoration: none; }
.st-root .st-toc a:hover { color: var(--ink); }

.st-root .st-note { font-size: 13px; color: var(--ink-2); line-height: 1.55; background: #fff; border: 1px solid var(--rule);
  border-left: 4px solid var(--gold); border-radius: 10px; padding: 12px 14px; margin: 0 0 18px; }

/* Footer: Made with SimiSI */
.st-root .st-foot { background: #fff; border-top: 1px solid var(--rule); padding: 20px 0; font-size: 13.5px; color: var(--mute); }
.st-root .st-foot .st-wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.st-root .st-made { display: inline-flex; align-items: center; gap: 8px; }
.st-root .st-foot a.lk { color: var(--ink-2); }

@media (max-width: 900px) {
  .st-root .st-grid { grid-template-columns: 1fr; }
  .st-root .st-side { position: static; }
  .st-root .st-side .st-panel.toc { display: none; }
}
@media (max-width: 640px) {
  .st-root .st-wrap { padding: 0 16px; }
  .st-root .st-hero { padding: 26px 0 22px; }
  .st-root .st-hero h1 { font-size: 30px; }
  .st-root .st-lede { font-size: 17px; }
  .st-root .st-id { align-items: flex-start; gap: 14px; }
  .st-root .st-logo, .st-root .st-mono { width: 56px; height: 56px; font-size: 22px; border-radius: 12px; }
  .st-root .st-sec { padding: 18px 16px; }
  .st-root .st-ladder { grid-template-columns: 1fr; }
  .st-root .st-ladder li { min-height: 0 !important; }
  .st-root .st-metrics { grid-template-columns: 1fr 1fr; }
  .st-root .st-metrics .v { font-size: 22px; }
  .st-root .st-crumb .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { .st-root * { scroll-behavior: auto !important; } }

/* Founder-approved agent analyses (sql/076): beside a public section, and the
   investor view's layer-by-layer accordion. Rendered from Markdown by the
   escape-first renderer. */
.st-root details.st-agent { margin: 14px 0 0; border: 1px solid var(--rule); border-left: 3px solid var(--ink);
  border-radius: 10px; background: #FBFCFD; }
.st-root details.st-agent > summary { list-style: none; cursor: pointer; padding: 12px 16px; display: grid; gap: 4px; }
.st-root details.st-agent > summary::-webkit-details-marker { display: none; }
.st-root details.st-agent > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 10px; }
.st-root .st-agent-t { font-weight: 700; color: var(--ink); font-size: 15px; }
.st-root .st-agent-m { font-size: 12.5px; color: var(--mute); line-height: 1.45; }
.st-root .st-agent-p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.st-root .st-agent-more { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.st-root details.st-agent[open] .st-agent-p { display: none; }
.st-root details.st-agent[open] .st-agent-more::after { content: ' (hide)'; }
.st-root .st-agent-body { padding: 4px 16px 14px; border-top: 1px solid var(--rule); font-size: 14.5px; color: var(--ink-2);
  line-height: 1.6; overflow-wrap: anywhere; }
.st-root .st-agent-body p { white-space: normal; margin: 8px 0; }
.st-root .st-agent-body h2, .st-root .st-agent-body h3, .st-root .st-agent-body h4 { font-size: 15px; margin: 14px 0 6px; color: var(--ink); display: block; }
.st-root .st-agent-body ul, .st-root .st-agent-body ol { margin: 6px 0; padding-left: 20px; }
.st-root .st-agent-body li { margin: 3px 0; }
.st-root .st-agent-body table { border-collapse: collapse; margin: 8px 0; font-size: 13px; display: block; overflow-x: auto; max-width: 100%; }
.st-root .st-agent-body th, .st-root .st-agent-body td { border: 1px solid var(--rule); padding: 5px 8px; text-align: left; vertical-align: top; }
.st-root .st-agent-body th { background: var(--alt); }
.st-root .st-agent-body blockquote { margin: 8px 0; padding-left: 10px; border-left: 3px solid var(--rule); }
.st-root .st-agent-body hr { border: 0; border-top: 1px solid var(--rule); margin: 10px 0; }
.st-root details.st-layer { border: 1px solid var(--rule); border-left: 4px solid var(--l1, var(--ink)); border-radius: 10px; margin: 10px 0 0; background: #fff; }
.st-root details.st-layer[data-layer="2"] { border-left-color: var(--l2, var(--ink)); }
.st-root details.st-layer[data-layer="3"] { border-left-color: var(--l3, var(--ink)); }
.st-root details.st-layer[data-layer="4"] { border-left-color: var(--l4, var(--ink)); }
.st-root details.st-layer[data-layer="5"] { border-left-color: var(--l5, var(--gold)); }
.st-root details.st-layer > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.st-root details.st-layer > summary::-webkit-details-marker { display: none; }
.st-root details.st-layer > summary .t { font-weight: 700; color: var(--ink); }
.st-root details.st-layer > summary .s { font-size: 13px; color: var(--mute); }
.st-root details.st-layer[aria-disabled="true"] > summary { cursor: default; opacity: .7; }
.st-root .st-layer-body { padding: 0 14px 14px; }
@media print { .st-root details.st-agent, .st-root details.st-layer { break-inside: avoid; } }

