/* MVP Studio · one stylesheet for every screen.
   Light surfaces on purpose: founders fill this in on phones, often outdoors.
   System fonts only (no web-font download on expensive data).
   FounderWise accents: lime marker chips, lime underlines, clean cards, no rails. */
:root {
  /* 6 Oct 2026 (UI audit): --faint (2.95:1 on white) is for borders and bars only. Text that
     used it now uses --muted (5.6:1). */
  --ink: #0D0D0D; --ink2: #3a3833; --muted: #6b675e; --faint: #9a968c;
  --bg: #F4F1EA; --card: #FFFFFF; --line: #E5E1D6; --line2: #D6D1C4;
  --lime: #BAEE2B; --lime-deep: #5E7A0E; --amber-bg: #F5E9C8; --amber: #6B5A12;
  --red-bg: #F9E1DC; --red: #8A2A16; --green-bg: #E6F4C8; --green: #3F5A06;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); min-height: 100vh; }
/* 6 Oct 2026 (UI audit): a lime underline on white is 1.4:1 and links read like body text.
   The deep lime underline is 4.9:1, so a link is visible as a link; hover keeps the lime. */
a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--lime-deep); }
a:hover { background: var(--lime); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* Headings focused by script (tabindex=-1) move the screen reader, not the user: no ring (1 Oct 2026). */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: -.2px; border: 0; }
.brand:hover { background: none; }
.brand .sq { width: 16px; height: 16px; background: var(--lime); border-radius: 4px; flex: none; }
.brand small { font-weight: 500; color: var(--muted); }
@media (max-width: 420px) { .brand small { display: none; } .top nav { gap: 10px; } }
.top nav { display: flex; gap: 14px; font-size: 14px; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top .brand { flex: none; }   /* the links scroll inside the bar; the page never widens (fixed 25 Sep 2026) */
.top nav a { border-bottom-color: transparent; color: var(--muted); padding: 12px 2px; }
.top nav a.on { color: var(--ink); border-bottom-color: var(--lime); }

.wrap { max-width: 680px; margin: 0 auto; padding: 22px 16px 120px; }
.wrap.wide { max-width: 1080px; }

.chip { display: inline-block; font: 700 11px/1 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; background: var(--lime); color: var(--ink); padding: 6px 10px; border-radius: 6px; }
.chip.dark { background: var(--ink); color: #F2F2F2; }
.chip.amber { background: var(--amber-bg); color: var(--amber); }
.chip.red { background: var(--red-bg); color: var(--red); }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line2); }

h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.6px; margin: 12px 0 10px; }
h2 { font-size: 19px; letter-spacing: -.3px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 0 0 6px; }
p { margin: 0 0 12px; color: var(--ink2); }
.lead { font-size: 17px; color: var(--ink2); }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0 0 14px; }
.card.tight { padding: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } .grid3 { grid-template-columns: 1fr 1fr 1fr; gap: 6px; } }
/* Paired fields line up whatever their labels say (fixed 25 Sep 2026: a hint
   under one label pushed that input lower than its neighbor). Each cell is a
   column and its control sits at the bottom, so inputs in a row share a baseline. */
.grid2 > div, .grid3 > div, .row3 > div { display: flex; flex-direction: column; min-width: 0; }
.grid2 > div > label.f, .grid3 > div > label.f, .row3 > div > label.f { margin-bottom: 6px; }
.grid2 > div > :is(input, select, textarea), .grid3 > div > :is(input, select, textarea), .row3 > div > :is(input, select, textarea) { margin-top: auto; }

/* forms */
label.f { display: block; font-weight: 600; font-size: 15px; margin: 16px 0 6px; }
.hint { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], textarea, select {
  width: 100%; font: 16px/1.4 var(--font); color: var(--ink); background: #fff; border: 2px solid var(--line2);
  border-radius: 10px; padding: 12px 12px; min-height: 48px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); }
.err input, .err textarea, input.bad { border-color: var(--red); }
.errmsg { color: var(--red); font-size: 14px; margin-top: 6px; font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line2); border-radius: 12px; padding: 12px 14px; background: #fff; cursor: pointer; min-height: 48px; }
.opt input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.opt:has(input:checked) { border-color: var(--ink); background: #FBFDF3; }
.opt.disabled { opacity: .45; cursor: not-allowed; }
.opt b { display: block; }
.opt .d { font-size: 14px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 15px; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ink); flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 12px;
  font: 700 16px var(--font); background: var(--ink); color: var(--lime); border: 0; cursor: pointer; text-decoration: none; }
.btn:hover { background: #222; }
/* Disabled reads as disabled (flat, no brand color) but stays legible: 4.5:1+. */
.btn[disabled], .btn[disabled]:hover, .btn.lime[disabled], .btn.ghost[disabled] { background: var(--line); border-color: var(--line); color: var(--ink2); cursor: not-allowed; }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--line2); }
.btn.danger { background: var(--red); color: #fff; } .btn.danger:hover { background: #6f2111; }   /* stop & change (1 Oct 2026) */
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; white-space: nowrap; }  /* short labels never wrap to two lines */
.linkbtn { background: none; border: 0; font: inherit; color: var(--ink); border-bottom: 2px solid var(--lime); cursor: pointer; padding: 0; }

/* sticky action bar, kept clear of the on-screen keyboard by being in flow on small heights */
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); z-index: 20; }
.bar .in { max-width: 680px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.bar .in .btn { flex: 1; white-space: nowrap; padding: 0 14px; }
.bar .in .btn.ghost { flex: 0 0 34%; }  /* Back stays small; the main action keeps one line on a 360px phone */
@media (max-height: 520px) { .bar { position: static; } }

/* coaching */
.why { background: #FAF8F2; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--ink2); margin: 6px 0 4px; }
details.ex { margin: 10px 0 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
details.ex summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 15px; list-style: none; }
details.ex summary::before { content: "+ "; font-family: var(--mono); }
details.ex[open] summary::before { content: "- "; }
details.ex .exb { padding: 0 14px 12px; display: grid; gap: 8px; }
.ex-good, .ex-weak { border-radius: 10px; padding: 10px 12px; font-size: 14.5px; }
.ex-good { background: var(--green-bg); }
.ex-weak { background: var(--red-bg); }
.ex-good b, .ex-weak b { display: block; font: 700 11px var(--mono); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }
.sharp { background: var(--amber-bg); color: var(--amber); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; margin-top: 8px; }
.sharp.block { background: var(--red-bg); color: var(--red); }
.sharp b { display: block; font: 700 11px var(--mono); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2px; }
.calc { background: var(--ink); color: #F2F2F2; border-radius: 12px; padding: 14px; margin-top: 14px; font-size: 15px; }
.calc b { color: var(--lime); }
.calc .row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }

.crumbs { font: 600 13px var(--mono); color: var(--muted); letter-spacing: .3px; }
.saved { font-size: 13px; color: var(--muted); }

/* hub */
.sec { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px; border-bottom-width: 1px; }
.sec:hover { background: #FBFDF3; }
.sec .n { width: 30px; height: 30px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; font: 700 14px var(--mono); flex: none; }
.sec.done .n { background: var(--lime); }
.sec .t { flex: 1; }
.sec .t b { display: block; }

/* progress: bullet graph toward the pass line */
.bullet { position: relative; height: 34px; border-radius: 8px; background: #EFECE3; overflow: hidden; margin: 10px 0 6px; }
.bullet .zone { position: absolute; top: 0; bottom: 0; }
.bullet .fill { position: absolute; top: 9px; bottom: 9px; left: 0; background: var(--ink); border-radius: 4px; }
.bullet .tick { position: absolute; top: 3px; bottom: 3px; width: 3px; background: var(--ink); }
.bullet .tick.floor { background: var(--red); }
.legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stat .v { font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.stat .l { font-size: 12.5px; color: var(--muted); }

.steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 2px; }
.steps span { font: 600 12px var(--mono); padding: 6px 9px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.steps span.on { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.steps span.done { background: var(--green-bg); color: var(--green); border-color: transparent; }

.peers { display: flex; flex-wrap: wrap; gap: 6px; }
.peers span { font-size: 13px; padding: 5px 9px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.peers span.y { background: var(--green-bg); border-color: transparent; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font: 700 11px var(--mono); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line2); }
table.t td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.scroll { overflow-x: auto; }

/* Top of the screen and click-through: a toast must never sit on the button the founder taps next. */
.toast { position: fixed; left: 50%; top: 72px; transform: translateX(-50%); pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.18); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 15px; z-index: 50; max-width: calc(100% - 32px); }
.hidden { display: none !important; }
.center { text-align: center; }
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; }
.files { display: grid; gap: 8px; }
.file { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; }
.file .ic { font: 700 11px var(--mono); background: var(--bg); border-radius: 6px; padding: 6px 7px; flex: none; }
.file .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop { border: 2px dashed var(--line2); border-radius: 12px; padding: 16px; text-align: center; background: #fff; }
/* 1 Oct 2026: the browser's grey "Choose Files" button styled as a Studio button. */
input[type="file"] { max-width: 100%; font: 14px var(--font); color: var(--muted); }
input[type="file"]::file-selector-button { font: 700 14px var(--font); color: var(--ink); background: #fff; border: 2px solid var(--line2); border-radius: 12px; min-height: 44px; padding: 0 16px; margin-right: 10px; cursor: pointer; }
input[type="file"]::file-selector-button:hover { border-color: var(--ink); }
/* Questions to the facilitator (30 Sep 2026): founder dashboard and program page. */
.qa { border-top: 1px solid var(--line); padding: 10px 0; }
.qa .q { margin: 0 0 4px; white-space: pre-line; }
.qa .a { margin: 0; white-space: pre-line; background: var(--bg); border-radius: 10px; padding: 8px 10px; font-size: 14px; color: var(--ink2); }
.askline { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.askline a { display: inline-flex; align-items: center; min-height: 44px; }

/* Version timeline (30 Sep 2026): newest on top, hairline rule, one lime node. */
.vt h3 { margin: 0 0 8px; }
.vt ol { list-style: none; margin: 0; padding: 0; }
.vt-i { position: relative; padding: 0 0 14px 26px; }
.vt-i::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line); }  /* connector between versions */
.vt-i:last-child::before { display: none; }
.vt-i:last-child { padding-bottom: 4px; }
.vt-n { position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line2); }
.vt-i.now .vt-n { background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink); }
.vt-h { font-size: 14px; }
.vt-l { font-size: 15px; margin: 2px 0; }
.vt-d { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; font-size: 13px; }
.dchip { display: inline-flex; align-items: center; gap: 6px; }
.vt-s { margin: 6px 0 0; }
/* Checkbox rows that are easy to tap (44px) */
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--ink); }

/* 2 Oct 2026: plan and stage pages (research recs 8 to 13). Only new classes below. */
/* "Stage 4 of 12" above the question, readable on a phone */
.stagehead { margin: 0 0 6px; }
.stagehead .sh-back { font-size: 14px; color: var(--muted); border-bottom-color: transparent; display: inline-flex; align-items: center; min-height: 44px; }
.stagehead .sh-back::before { content: "\2190"; margin-right: 6px; }
.stagehead .sh-n { font-size: 15px; font-weight: 800; color: var(--ink); margin: 0 0 6px; letter-spacing: -.1px; }
.stagehead .sh-n span { font-weight: 500; color: var(--muted); }
.stagehead .sh-bar { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.stagehead .sh-bar i { display: block; height: 100%; background: var(--lime-deep); border-radius: 3px; }
.qn { font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 0; }
.qblock + .qblock { border-top: 1px solid var(--line2); margin-top: 26px; padding-top: 4px; }
.qblock h2.qh { font-size: 21px; line-height: 1.25; letter-spacing: -.4px; margin: 4px 0 10px; }
/* Numbers as text with a number keypad; money carries its currency in front */
.numpre { display: flex; align-items: stretch; }
.numpre .pre { display: flex; align-items: center; padding: 0 10px; font: 700 14px var(--font); color: var(--ink2); background: var(--bg); border: 2px solid var(--line2); border-right: 0; border-radius: 10px 0 0 10px; }
.numpre input { border-radius: 0 10px 10px 0; min-width: 0; }
.numpre:focus-within .pre { border-color: var(--ink); }
.err .numpre .pre { border-color: var(--red); }
mark.np { background: var(--amber-bg); color: var(--amber); font-weight: 700; padding: 0 4px; border-radius: 4px; }
/* The plan page task list: 12 stages, whole row is the link, three statuses in words */
.tasks { display: grid; gap: 14px; margin: 10px 0 18px; }
.tl-ph h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; margin: 0 0 4px; display: flex; justify-content: space-between; }
.tl-ph h3 span { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 600; }
.tl-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 48px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; color: var(--ink); }
.tl-row:hover { background: #FBFDF3; }
.tl-n { width: 26px; height: 26px; border-radius: 7px; background: var(--bg); display: grid; place-items: center; font: 700 12px var(--mono); }
.tl-t { font-weight: 600; font-size: 15px; }
.tl-s { font: 700 12px var(--font); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.tl-row.done .tl-n { background: var(--lime); } .tl-row.done .tl-s { background: var(--green-bg); color: var(--green); }
.tl-row.now { border: 2px solid var(--ink); } .tl-row.now .tl-n { background: var(--ink); color: var(--lime); } .tl-row.now .tl-s { background: var(--ink); color: var(--lime); }
.tl-row.next .tl-s { color: var(--muted); border: 1px solid var(--line2); }
@media (min-width: 900px) { .tasks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Upload progress with a retry that keeps the photo */
.upbox { margin-top: 12px; }
.upbar { display: block; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; margin: 6px 0 4px; }
.upbar i { display: block; height: 100%; background: var(--lime-deep); transition: width .2s linear; }
/* Buttons that say where they go may take two short lines on a 360 px phone */
.bar .in .btn.two { white-space: normal; line-height: 1.2; font-size: 15px; text-align: center; padding: 6px 12px; }
.saved[data-state="offline"] { color: var(--amber); font-weight: 600; }
.saved[data-state="sent"] { color: var(--green); }
.grid2 > .numpre { flex-direction: row; }
.grid2 > .numpre > input { margin-top: 0; }

/* Visually hidden but reachable by keyboard and screen readers (6 Oct 2026). Used for the
   MVP photo input: display:none removed it from the tab order. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr-only:focus + label, .sr-only:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.plain { margin: 4px 0 8px; }  /* one-line plain meaning of a term (6 Oct 2026) */

/* Where to fix it (8 Oct 2026): the place under a block or warning, and the field it opens. */
.where { margin-top: 8px; border-top: 1px dashed currentColor; padding-top: 6px; }
.where .wl { display: block; font: 700 11px var(--mono); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.where .wrow { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin: 4px 0; }
.where .wt { font-size: 14px; color: var(--ink); line-height: 1.35; }
.where .fixbtn { flex: none; white-space: nowrap; }
.fixhl { outline: 3px solid var(--lime-deep); outline-offset: 6px; border-radius: 10px; background: rgba(186,238,43,.14); transition: background .4s; }
.backfix { position: sticky; top: 0; z-index: 30; display: flex; gap: 10px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; }
.backfix span { font-size: 14px; }
.backfix .btn { flex: none; }
