/* Light by default, dark when the device asks for it. */
:root {
  color-scheme: light dark;
  --bg: #f5f4ee;
  --surface: #ffffff;
  --surface-2: #eceae1;
  --surface-3: #dcdacd;
  --field: #ffffff;
  --line: #dddbcf;
  --text: #10231e;
  --muted: #586962;
  --blue: #14463c;
  --blue-hover: #1b5a4d;
  --on-action: #ffffff;
  --link: #1a6b5f;
  --teal: #2f8f82;
  --salmon: #e8935f;
  --yes: #00917f;
  --yes-soft: #dcf2ee;
  --yes-text: #006b5e;
  --no: #e8590c;
  --no-soft: #fde8db;
  --no-text: #b0400a;
  --warn: #f5a300;
  --warn-soft: #fdf1d3;
  --warn-text: #7a5200;
  --glass: rgba(245, 244, 238, 0.8);
  --font: "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --rail: 16.5rem;
  --r: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1d19;
    --surface: #122a24;
    --surface-2: #193830;
    --surface-3: #24493f;
    --field: #0f241f;
    --line: #25463d;
    --text: #eef1ea;
    --muted: #9db2aa;
    --blue: #eef1ea;
    --blue-hover: #ffffff;
    --on-action: #0c1d19;
    --link: #7cc4b7;
    --teal: #6fb3a8;
    --yes: #17a398;
    --yes-soft: #0f3a34;
    --yes-text: #7cd6ca;
    --no-soft: #3d2110;
    --no-text: #ffa46b;
    --warn-soft: #3a2f0c;
    --warn-text: #ffd27a;
    --glass: rgba(12, 29, 25, 0.8);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 4px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 2px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* top bar */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 1rem; height: 3.25rem; padding: 0 1.4rem; background: var(--glass); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); font-size: 0.88rem; }
.top.bare { position: static; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; max-width: 68rem; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 0.6rem; font: 600 1.1rem/1 var(--display); white-space: nowrap; }
.logo { display: block; width: auto; height: 2.1rem; padding: 0.15rem 0.3rem; border-radius: 8px; background: #fff; }
.brand .zone { font-weight: 400; color: var(--muted); }
.project { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16rem; }
.demo { margin-left: auto; padding: 0.3rem 0.85rem; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.demo strong { color: var(--text); font-weight: 600; }
.demo::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.5rem; border-radius: 50%; background: var(--salmon); }
.progress { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress .bar { display: block; width: 6rem; height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--teal); transition: width 0.6s cubic-bezier(.3, .7, .2, 1); }
.verdict { font-weight: 500; font-size: 0.82rem; padding: 0.25rem 0.7rem; border-radius: 99px; white-space: nowrap; }
.verdict.v-ok { color: var(--yes-text); background: var(--yes-soft); }
.verdict.v-no { color: var(--no-text); background: var(--no-soft); }
.verdict.v-wait { color: var(--muted); background: var(--surface); }
.pmenu { position: relative; margin: 0; }
.pmenu summary { color: var(--text); list-style: none; white-space: nowrap; width: auto; }
.pmenu summary::after, .pmenu[open] > summary::after { content: "▾"; color: var(--muted); }
.pmenu[open] > summary { margin-bottom: 0; }
.pop { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 6; width: 17rem; padding: 0.35rem; background: var(--bg); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18); display: grid; font-size: 0.94rem; }
.pop button { text-align: left; padding: 0.55rem 0.75rem; border: 0; border-radius: 10px; background: none; font-weight: 500; cursor: pointer; }
.pop button:hover { background: var(--surface-2); }
.pop small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.pop .danger { color: var(--no-text); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.6rem 1rem; background: var(--blue); color: var(--on-action); border-radius: 99px; text-decoration: none; transition: top 0.15s; }
.skip:focus { top: 0.6rem; }

/* layout */
.layout { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); align-items: start; max-width: 86rem; margin: 0 auto; }
.tray { position: sticky; top: 3.25rem; max-height: calc(100vh - 3.25rem); overflow: auto; padding: 2rem 0.9rem 2rem 1.2rem; }
.tray ol { list-style: none; display: grid; gap: 1px; }
.cell { display: flex; align-items: center; gap: 0.7rem; width: 100%; padding: 0.42rem 0.6rem; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; color: var(--muted); font-size: 0.94rem; transition: background 0.15s, color 0.15s; }
@media (hover: hover) { .cell:hover { color: var(--text); background: var(--surface); } }
.cell[aria-current] { background: var(--surface); color: var(--text); font-weight: 600; }
.glyph { flex: none; width: 1.45rem; height: 1.45rem; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--muted); font: 600 0.7rem/1 var(--font); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.cell[aria-current] .glyph { border-color: var(--text); color: var(--text); }
.cell.done { color: var(--text); }
.cell.done .glyph, .cell[aria-current].done .glyph { background: var(--teal); border-color: var(--teal); color: #fff; font-size: 0.78rem; }
.cell.run .glyph { background: var(--warn); border-color: var(--warn); color: #3a2800; animation: breathe 0.9s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: scale(1.15); } }
.cell.extra { margin-top: 1.2rem; padding-top: 0.9rem; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.cell.extra .glyph { border-radius: 6px; }

.work { padding: 3.5rem clamp(1.1rem, 4vw, 4rem) 7rem; max-width: 60rem; }
.count { color: var(--muted); font-size: 0.94rem; margin-bottom: 0.5rem; }
.step-head h1 { font: 500 clamp(2.5rem, 5.8vw, 3.7rem)/1.05 var(--display); letter-spacing: -0.015em; text-wrap: balance; outline: none; }
.lead { margin-top: 0.9rem; max-width: 56ch; font-size: 1.3rem; line-height: 1.4; color: var(--muted); }
h2.section { margin: 3.5rem 0 1rem; font: 600 1.65rem/1.15 var(--display); letter-spacing: -0.02em; }
.hint { color: var(--muted); font-size: 0.88rem; max-width: 66ch; }
.work > .hint, .work > .empty { margin-top: 1.25rem; }
.empty { color: var(--muted); }
.fine { margin-top: 1rem; font-size: 0.8rem; line-height: 1.4; color: var(--muted); max-width: 66ch; }
.error { margin: 0.9rem 0; padding: 0.8rem 1rem; background: var(--no-soft); color: var(--no-text); border-radius: 14px; max-width: 66ch; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin: 1.75rem 0; }
.btn { padding: 0.7rem 1.35rem; border-radius: 99px; border: 0; background: var(--surface-2); color: var(--text); font-weight: 500; cursor: pointer; transition: background 0.2s, transform 0.15s, opacity 0.2s; }
.btn:hover:not(:disabled) { background: var(--surface-3); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn.primary { background: var(--blue); color: var(--on-action); }
.btn.primary:hover:not(:disabled) { background: var(--blue-hover); }
.btn.small { padding: 0.35rem 0.85rem; font-size: 0.82rem; }
.btn:disabled { opacity: 0.5; cursor: progress; }
.link { border: 0; background: none; padding: 0; color: var(--link); cursor: pointer; }
.link:hover { text-decoration: underline; }

/* forms */
.form { display: grid; gap: 1.4rem; margin-top: 2.5rem; max-width: 42rem; }
.field { display: grid; gap: 0.3rem; }
.field .label, legend { font-weight: 600; }
.field .label small { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.field .hint { font-size: 0.85rem; }
input, select, textarea { width: 100%; padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: 12px; background: var(--field); transition: border-color 0.15s, box-shadow 0.15s; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 22%, transparent); }
textarea { resize: vertical; line-height: 1.4; }
textarea.grow { field-sizing: content; min-height: 6.5rem; }
input[type="radio"] { width: auto; accent-color: var(--blue); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; align-items: end; }
.field.narrow { max-width: 7rem; }
.field.inline { margin-top: 1.5rem; grid-template-columns: 1fr 5.5rem; align-items: center; gap: 0.75rem; max-width: 30rem; font-size: 0.9rem; }
.work > .field { margin-top: 1.25rem; max-width: 42rem; }
.rows { display: grid; gap: 0.5rem; margin: 0.7rem 0 0.8rem; }
.cost { display: grid; grid-template-columns: minmax(0, 1fr) 10rem 2.4rem; gap: 0.5rem; align-items: start; }
.amt { display: grid; gap: 0.15rem; }
.echo { font-size: 0.78rem; color: var(--muted); padding-left: 0.2rem; font-variant-numeric: tabular-nums; }
.echo:empty { display: none; }
.x { height: 2.9rem; }
.x { border: 0; background: none; font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--muted); border-radius: 50%; }
.x:hover { background: var(--no-soft); color: var(--no-text); }
.ramp { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr)); gap: 0.5rem; margin-top: 0.7rem; }
.ramp span { font-size: 0.78rem; color: var(--muted); }
.ramp input { padding: 0.55rem 0.7rem; }
.numbers fieldset { padding: 1.4rem; background: var(--surface); border-radius: var(--r); }
.numbers legend { float: left; width: 100%; padding: 0; margin-bottom: 0.15rem; }
.numbers legend + * { clear: both; }

/* questions asked in the page's own style */
.sheet { width: min(26rem, calc(100vw - 2rem)); padding: 1.6rem; border: 0; border-radius: 22px; background: var(--bg); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); animation: sheet 0.25s cubic-bezier(.2, .9, .3, 1); }
.sheet::backdrop { background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes sheet { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
.sheet h2 { font: 600 1.3rem/1.2 var(--display); letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.sheet p { color: var(--muted); }
.sheet input { margin-top: 1rem; }
.sheet .actions { justify-content: flex-end; margin: 1.5rem 0 0; }
.btn.primary.danger { background: #d92d20; }
.notice { margin-top: 1.5rem; padding: 0.85rem 1.1rem; background: var(--warn-soft); color: var(--warn-text); border-radius: 14px; max-width: 46rem; }
.cell.done.stale .glyph, .cell[aria-current].done.stale .glyph { background: var(--warn); border-color: var(--warn); color: #3a2800; }

/* next step */
.next { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 46rem; color: var(--muted); }
.next .btn { margin: 0; }

/* documents written by the model */
.doc-card { position: relative; }
.doc-card, details > .doc { margin-top: 0.5rem; padding: clamp(1.25rem, 3.5vw, 2.4rem); background: var(--surface); border-radius: 24px; }
.copy { position: absolute; top: 1rem; right: 1rem; z-index: 1; background: var(--bg); }
.lens .copy { display: none; }
.doc { max-width: 68ch; overflow-wrap: break-word; }
.doc > * + * { margin-top: 0.8em; }
.doc > :first-child { margin-top: 0; }
.doc h2 { font: 600 1.75rem/1.14 var(--display); letter-spacing: -0.02em; margin-top: 1.2em; }
.doc-card > .copy + .doc > h2:first-child { padding-right: 4.5rem; }
.doc h3 { font: 600 1.3rem/1.2 var(--display); letter-spacing: -0.015em; margin-top: 1.8em; }
.doc h4, .doc h5, .doc h6 { font-size: 1.0625rem; font-weight: 600; margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li + li, .doc li > ul, .doc li > ol { margin-top: 0.35em; }
.doc li::marker { color: var(--muted); }
.doc li.task { list-style: none; margin-left: -1.3rem; display: flex; gap: 0.6rem; }
.box { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.22rem; border: 1.5px solid var(--line); border-radius: 50%; background: var(--bg); }
.box.on { background: var(--blue); border-color: var(--blue); }
.doc a { color: var(--link); text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc code { font-size: 0.88em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 6px; }
.doc pre { overflow: auto; padding: 1rem; background: var(--surface-2); border-radius: 12px; }
.doc blockquote { padding-left: 1rem; border-left: 3px solid var(--line); color: var(--muted); }
.doc hr { border: 0; border-top: 1px solid var(--line); }
.table { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
th, td { padding: 0.6rem 0.9rem 0.6rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th:last-child, td:last-child { padding-right: 0; }
th { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.num { text-align: right; white-space: nowrap; }
.status { margin-top: 1rem; color: var(--muted); font-size: 0.88rem; }
.status:not(:empty)::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.55rem; border-radius: 50%; background: var(--salmon); animation: blink 1s ease-in-out infinite alternate; }
@keyframes blink { to { opacity: 0.25; } }
details { margin-top: 1.25rem; }
summary { cursor: pointer; color: var(--link); width: fit-content; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "›"; display: inline-block; margin-left: 0.3em; transition: transform 0.2s; }
details[open] > summary::after { transform: rotate(90deg) translateX(2px); }
details[open] > summary { margin-bottom: 0.9rem; }
.pmenu summary::after { transform: none !important; }

/* board */
.lenses { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.9rem; }
.lens { padding: 1.6rem; background: var(--surface); border-radius: 24px; min-width: 0; }
.lens h2 { font: 600 1.3rem/1.15 var(--display); letter-spacing: -0.015em; }
.source { font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; }
.vote { margin-top: 1.2rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; color: var(--muted); font-size: 0.94rem; }
.vote strong { padding: 0.25rem 0.75rem; border-radius: 99px; font-weight: 500; background: var(--yes-soft); color: var(--yes-text); }
.vote.v-pass strong { background: var(--no-soft); color: var(--no-text); }
.vote.v-fund-if strong { background: var(--warn-soft); color: var(--warn-text); }
.lens .doc-card, .lens details > .doc { padding: 0; background: none; border-radius: 0; }
.lens .doc { font-size: 0.94rem; }
.lens .doc > h2:first-child { display: none; }

/* buyer panel */
.profile { padding: 1.6rem; background: var(--surface); border-radius: 24px; display: grid; gap: 1.2rem; }
.profile .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.4rem; }
.profile h3 { font-size: 0.82rem; font-weight: 400; color: var(--muted); margin-bottom: 0.35rem; }
.profile ul { list-style: none; font-size: 0.94rem; display: grid; gap: 0.3rem; }
.sizes { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.size { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.2rem; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 500; transition: border-color 0.15s; }
.size:has(:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 0.5px var(--blue); }
.size small { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 400; line-height: 1.3; }
.panel-box { margin-top: 0.5rem; padding: clamp(1.4rem, 4vw, 2.6rem); background: var(--surface); border-radius: 28px; }
.counts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 2.2rem; min-height: 4.4rem; color: var(--muted); }
.big-count strong { font: 600 clamp(3rem, 9vw, 4.5rem)/1 var(--display); letter-spacing: -0.03em; margin-right: 0.4rem; color: var(--text); font-variant-numeric: tabular-nums; }
.dots { display: grid; grid-template-columns: repeat(auto-fill, minmax(1.8rem, 1fr)); gap: 9px; margin: 1.75rem 0 1.4rem; max-width: 40rem; }
.dot { display: inline-block; width: 1.8rem; aspect-ratio: 1; padding: 0; border-radius: 50%; border: 0; background: var(--surface-3); cursor: pointer; transition: transform 0.35s cubic-bezier(.2, 1.4, .4, 1), background 0.25s, box-shadow 0.25s; transform: scale(0.4); }
.dot.ask { background: var(--salmon); animation: pop 0.7s ease-in-out infinite alternate; }
@keyframes pop { from { transform: scale(0.4); opacity: 0.5; } to { transform: scale(0.7); opacity: 1; } }
.dot.buy { background: var(--yes); transform: none; }
.dot.pass { background: none; box-shadow: inset 0 0 0 3px var(--no); transform: none; }
.dot.on { outline: 2px solid var(--text); outline-offset: 3px; }
.dot:focus-visible { outline: 4px solid color-mix(in srgb, var(--blue) 60%, transparent); outline-offset: 3px; }
button.dot.buy:hover, button.dot.pass:hover { transform: scale(1.15); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: var(--muted); }
.legend .dot { width: 0.8rem; cursor: default; margin-left: 0.8rem; }
.legend .dot.pass { box-shadow: inset 0 0 0 2.5px var(--no); }
.legend .dot:first-child { margin-left: 0; }
.legend .dot.wait { transform: scale(0.55); }
.legend .tip { margin-left: auto; }
.buyer:not(:empty) { margin-top: 1.6rem; padding: 1.3rem 1.5rem; background: var(--bg); border-radius: 18px; display: grid; gap: 0.5rem; max-width: 40rem; }
.buyer h3 { font: 600 1.2rem/1.2 var(--display); letter-spacing: -0.015em; }
.buyer .who { font-size: 0.85rem; color: var(--muted); }
.says.buy strong { color: var(--yes-text); }
.says.pass strong { color: var(--no-text); }

/* published examples */
.share { margin-top: 3.5rem; padding: 1.75rem; background: var(--surface); border-radius: 24px; max-width: 46rem; }
.share h2.section { margin-top: 0; font-size: 1.4rem; }
.share .field { margin-top: 1.1rem; }
.share .actions { margin-bottom: 0; }
.share .btn.quiet { background: var(--bg); }
.compare { margin-top: 2.5rem; }
.compare table { width: 100%; font-size: 0.94rem; }
.compare tbody th { font-weight: 600; color: var(--text); font-size: 1rem; min-width: 11rem; }
.compare small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.compare td, .compare th { vertical-align: middle; padding: 1rem 1rem 1rem 0; }
.compare .board { color: var(--muted); min-width: 8rem; }
.compare tr.mine > * { background: var(--surface); }
.compare tr.mine > :first-child { padding-left: 1rem; border-radius: 14px 0 0 14px; }
.compare tr.mine > :last-child { padding-right: 1rem; border-radius: 0 14px 14px 0; }
.compare tr.mine > *, .compare tr:has(+ .mine) > * { border-bottom-color: transparent; }
.actions.back { margin-top: 0; }

/* price range */
.range { margin-top: 2.5rem; padding: 1.75rem; background: var(--surface); border-radius: 24px; max-width: 46rem; }
.range figcaption { color: var(--muted); }
.range figcaption strong { display: block; font: 600 1.5rem/1.15 var(--display); letter-spacing: -0.02em; color: var(--text); margin-bottom: 0.3rem; }
.track { position: relative; height: 0.6rem; margin: 4.2rem 2rem 3.6rem; border-radius: 99px; background: var(--surface-3); }
.band { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--teal); }
.mark { position: absolute; top: -0.4rem; bottom: -0.4rem; width: 2px; background: var(--text); border-radius: 2px; }
.mark span { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; font-size: 0.8rem; color: var(--muted); text-align: center; }
.mark b { display: block; color: var(--text); font: 600 1.05rem/1.2 var(--display); }
.mark.below span { top: 1.6rem; }
.mark.above span { bottom: 1.9rem; }
.mark.above { width: 4px; top: -0.8rem; }

/* numbers */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.75rem; margin-top: 3rem; }
.tile { padding: 1.4rem 1.5rem; background: var(--surface); border-radius: var(--r); }
.tile dt { font-size: 0.85rem; color: var(--muted); }
.tile dd { margin: 0.3rem 0 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 600 clamp(1.5rem, 1rem + 1.6vw, 2.1rem)/1.1 var(--display); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.tile p { font-size: 0.8rem; color: var(--muted); }
.tile.bad { background: var(--no-soft); }
.tile.bad dd { color: var(--no-text); }
.flags { margin-top: 1rem; padding: 1rem 1.2rem 1rem 2.4rem; background: var(--no-soft); color: var(--no-text); border-radius: 16px; max-width: 66ch; }

/* verdict */
.verdict.big { margin-top: 2.5rem; padding: clamp(1.75rem, 5vw, 3rem); border-radius: 28px; max-width: 46rem; white-space: normal; font-size: 1.0625rem; font-weight: 400; color: var(--text); background: var(--surface); }
.verdict.big .word { font: italic 500 clamp(4rem, 14vw, 7.5rem)/0.95 var(--serif); letter-spacing: -0.01em; padding-bottom: 0.08em; width: fit-content; }
.verdict.big.v-ok .word { color: var(--teal); }
.verdict.big.v-no .word { color: var(--no-text); }
.verdict.big.v-wait .word { color: var(--muted); }
.checks { list-style: none; margin-top: 1.2rem; display: grid; gap: 0.55rem; }
.checks li { display: flex; gap: 0.7rem; align-items: baseline; }
.checks .mark { position: static; flex: none; width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: 50%; font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--yes); }
.checks .no .mark { background: var(--no); }
.checks .todo .mark { background: var(--surface-3); color: var(--muted); }
.checks .todo { color: var(--muted); }

/* landing */
.landing { min-height: 100vh; }
.gate { display: block; padding: clamp(2.5rem, 9vh, 6rem) 1.4rem 2rem; max-width: 68rem; margin: 0 auto; }
.pitch { text-align: center; max-width: 52rem; margin: 0 auto; }
.gate h1 { font: 500 clamp(2.9rem, 8vw, 5.4rem)/1.02 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.gate h1 em { font: italic 500 1.12em/1 var(--serif); letter-spacing: 0; color: var(--teal); }
.hero-logo { display: block; width: auto; height: clamp(7rem, 16vw, 10rem); margin: 0 auto 2rem; padding: 0.9rem 1.1rem; background: #fff; border-radius: 24px; border: 1px solid var(--line); }
.gate .lead { font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.3; text-wrap: balance; max-width: 40ch; margin: 1.4rem auto 0; }
.enter { display: flex; gap: 0.4rem; margin: 2.4rem auto 0; padding: 0.35rem; max-width: 25rem; background: var(--surface); border-radius: 99px; transition: box-shadow 0.15s; }
.enter input { background: none; border: 0; padding: 0.6rem 1.1rem; border-radius: 99px; min-width: 0; box-shadow: none !important; }
.enter:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 25%, transparent); }
.enter .btn { flex: none; }
.pitch .fine { margin-inline: auto; max-width: 46ch; }
.pitch .error { margin-inline: auto; text-align: left; }
.preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; margin-top: clamp(3rem, 8vh, 5rem); }
.p-card { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 28px; background: var(--surface); animation: rise 1s cubic-bezier(.2, .8, .2, 1) both; }
.p-verdict { grid-column: span 2; display: grid; align-content: start; gap: 0.35rem; color: var(--muted); }
.p-tag { font-size: 0.82rem; }
.p-word { font: italic 500 clamp(3.4rem, 7vw, 5.4rem)/0.95 var(--serif); margin: 0.3rem 0 0.7rem; padding-bottom: 0.08em; width: fit-content; color: var(--teal); }
.p-panel { grid-column: span 2; animation-delay: 0.1s; }
.p-big { color: var(--muted); }
.p-big strong { font: 600 2.6rem/1 var(--display); letter-spacing: -0.03em; color: var(--text); margin: 0 0.3rem 0 0; }
.p-big strong:nth-of-type(2) { margin-left: 1.2rem; }
.p-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; margin-top: 1.3rem; }
.p-dots .dot { width: auto; cursor: default; }
.p-tile { grid-column: span 2; display: grid; gap: 0.2rem; animation-delay: 0.2s; }
.p-tile.two { animation-delay: 0.28s; }
.p-tile span { color: var(--muted); font-size: 0.94rem; }
.p-tile strong { font: 600 clamp(2.4rem, 5vw, 3.6rem)/1.05 var(--display); letter-spacing: -0.03em; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; padding: 3.5rem 1.4rem 6rem; max-width: 68rem; margin: 0 auto; }
.fact h2 { font: 600 1.2rem/1.2 var(--display); letter-spacing: -0.015em; }
.fact p { margin-top: 0.4rem; color: var(--muted); font-size: 0.94rem; }

/* the programme's cards are outlined, as in its printed pieces */
.doc-card, details > .doc, .lens, .profile, .panel-box, .share, .range, .tile, .numbers fieldset, .p-card, .verdict.big, .buyer:not(:empty) { border: 1px solid var(--line); }
.lens .doc-card, .lens details > .doc { border: 0; }

/* partners */
.partners-strip { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-top: 5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; max-width: 46rem; }
.chips { display: flex; align-items: center; gap: 1.4rem; padding: 0.6rem 1.1rem; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.chips img { display: block; height: 2.7rem; width: auto; }
.foot { max-width: 68rem; margin: 0 auto; padding: 0 1.4rem 4rem; }
.foot .partners-strip { margin-top: 0; max-width: none; }
.motto { font: italic 500 clamp(1.5rem, 3vw, 2.1rem)/1.2 var(--serif); color: var(--teal); margin-bottom: 2rem; }

@media (max-width: 760px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  html { scroll-padding-top: 4.5rem; }
  .top { gap: 0.6rem; padding: 0 1rem; position: relative; z-index: 6; }
  .tray { mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .cost { grid-template-columns: minmax(0, 1fr) 2.4rem !important; }
  .cost > input { grid-column: 1 / -1; }
  .dots.roomy { grid-template-columns: repeat(auto-fill, minmax(2.5rem, 1fr)); }
  .dots.roomy .dot { width: 2.5rem; }
  .project, .progress, .brand .zone { display: none; }
  .top.bare .brand .zone { display: inline; }
  .demo { font-size: 0.78rem; padding: 0.25rem 0.6rem; }
  .top > .verdict { margin-left: auto; }
  .tray { display: flex; position: sticky; top: 0; z-index: 4; max-height: none; padding: 0.5rem 0.6rem; background: var(--glass); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .tray ol { display: flex; gap: 4px; }
  .cell { flex: none; width: auto; padding: 0.35rem 0.8rem 0.35rem 0.4rem; gap: 0.45rem; border-radius: 99px; white-space: nowrap; font-size: 0.85rem; }
  .cell.extra { margin: 0; padding-top: 0.35rem; border-top: 0; border-radius: 99px; }
  .work { padding: 2.25rem 1.1rem 5rem; }
  .lead { font-size: 1.15rem; }
  .legend .tip { margin-left: 0; width: 100%; }
  .track { margin-inline: 1.6rem; }
  .next .btn { width: 100%; }
  .sheet .actions .btn { flex: 1; }
  .preview { grid-template-columns: 1fr 1fr; }
  .p-verdict, .p-panel { grid-column: 1 / -1; }
  .p-tile { grid-column: span 1; }
  .facts { gap: 1.5rem; padding-top: 2.5rem; }
  .compare table { min-width: 0; display: block; }
  .compare thead { display: none; }
  .compare tbody { display: grid; gap: 0.75rem; }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 1rem; padding: 1.3rem; background: var(--surface); border-radius: var(--r); }
  .compare tr.mine { box-shadow: inset 0 0 0 1.5px var(--blue); }
  .compare tr > * { border: 0 !important; padding: 0.3rem 0 !important; text-align: left; white-space: normal; background: none !important; }
  .compare tbody th { grid-column: 1 / -1; font-size: 1.15rem; }
  .compare td::before { content: attr(data-label); display: block; font-size: 0.76rem; color: var(--muted); }
  .compare td.board { grid-column: 1 / -1; }
}
@media (pointer: coarse), (max-width: 760px) {
  .cell, .btn.small, .work summary, .pmenu summary, .link { min-height: 44px; }
  .btn.small, .pmenu summary { display: inline-flex; align-items: center; }
  .work summary, .link { display: inline-flex; align-items: center; }
  .doc .link, .hint .link, .checks .link, .fine .link { min-height: 0; display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.print-sheet { display: none; }

@page { size: letter; margin: 18mm 17mm 20mm; @bottom-left { content: "Semillero Zona Norte · Plan de negocio"; font: 8.5pt "Jost", sans-serif; color: #586962; } @bottom-right { content: counter(page); font: 8.5pt "Jost", sans-serif; color: #586962; } }
@page :first { margin: 0; @bottom-left { content: none; } @bottom-right { content: none; } }
@media print {
  :root { color-scheme: light; --bg: #fff; --surface: #fff; --surface-2: #eceae1; --surface-3: #dcdacd; --line: #d5d3c6; --text: #10231e; --muted: #586962; --link: #1a6b5f; --teal: #2f8f82; --yes: #00917f; --no: #e8590c; --no-text: #b0400a; --yes-text: #006b5e; }
  html, body { background: #fff; font-size: 10.5pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .top, .tray, .skip, dialog { display: none !important; }
  .layout { display: block; max-width: none; }
  .work { padding: 0; max-width: none; }
  .work > *:not(.print-sheet) { display: none !important; }
  .print-sheet { display: block; }

  /* cover: one full page in the programme's forest green */
  .cover { box-sizing: border-box; height: 279.4mm; padding: 20mm 19mm 16mm; display: flex; flex-direction: column; background: #0f2a24; color: #eef1ea; break-after: page; }
  .cover-top { display: flex; align-items: center; gap: 4mm; font-size: 11pt; color: #cfd9d3; }
  .cover-top img { height: 13mm; width: auto; padding: 1.5mm 2mm; background: #fff; border-radius: 3mm; }
  .cover-top strong { color: #fff; font-weight: 600; }
  .cover-date { margin-left: auto; font-size: 9.5pt; }
  .cover-kind { margin-top: 26mm; font-size: 11pt; letter-spacing: 0.22em; text-transform: uppercase; color: #9db2aa; }
  .cover-name { margin-top: 3mm; font: 500 40pt/1.02 var(--display); letter-spacing: -0.015em; color: #fff; }
  .cover-what { margin-top: 5mm; max-width: 135mm; font-size: 13pt; line-height: 1.4; color: #cfd9d3; }
  .cover-team { margin-top: 3mm; font-size: 10.5pt; color: #9db2aa; }
  .cover-verdict { margin-top: 14mm; padding-top: 7mm; border-top: 0.3mm solid #2c5a4f; }
  .cover-verdict .word { font: italic 500 58pt/0.95 var(--serif); color: #7cc4b7; }
  .cover-verdict.v-no .word { color: #f0a070; }
  .cover-verdict.v-wait .word { color: #9db2aa; }
  .cover-verdict ul { list-style: none; margin-top: 5mm; display: grid; gap: 1.6mm; font-size: 10.5pt; color: #e4eae5; }
  .cover-verdict li { display: flex; gap: 3mm; }
  .cover-verdict li span { flex: none; width: 4.4mm; height: 4.4mm; display: grid; place-items: center; border-radius: 50%; font-size: 7.5pt; font-weight: 700; background: #2f8f82; color: #fff; }
  .cover-verdict li.no span { background: #e8590c; }
  .cover-verdict li.todo span { background: #2c5a4f; }
  .cover-facts { margin-top: 9mm; display: grid; grid-template-columns: repeat(4, 1fr); border: 0.3mm solid #2c5a4f; border-radius: 4mm; overflow: hidden; }
  .pf { padding: 3.5mm 4mm; box-shadow: 0 0 0 0.15mm #2c5a4f; }
  .pf dt { font-size: 7.5pt; letter-spacing: 0.12em; text-transform: uppercase; color: #9db2aa; }
  .pf dd { margin-top: 1mm; font: 500 13pt/1.15 var(--display); color: #fff; }
  .cover-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8mm; font-size: 8.5pt; line-height: 1.45; color: #9db2aa; }
  .cover-foot .chips { flex: none; padding: 2.5mm 4mm; gap: 5mm; border: 0; border-radius: 3mm; }
  .cover-foot .chips img { height: 9mm; }

  /* body: every section of the plan starts on its own page */
  .print-body { max-width: none; color: #10231e; }
  .print-body > h3 { break-before: page; margin: 0 0 6mm; padding-bottom: 3mm; border-bottom: 0.5mm solid #2f8f82; font: 500 24pt/1.1 var(--display); letter-spacing: -0.01em; }
  .print-body > h3:first-child { break-before: auto; }
  .print-body h4 { margin-top: 7mm; font: 600 13.5pt/1.2 var(--display); color: #14463c; }
  .print-body h5, .print-body h6 { margin-top: 5mm; font: 600 11pt/1.25 var(--display); }
  .print-body h3, .print-body h4, .print-body h5, .print-body h6 { break-after: avoid; }
  .print-body p, .print-body li { orphans: 3; widows: 3; }
  .print-body li, .print-body tr, .print-body blockquote, .print-body pre { break-inside: avoid; }
  .print-body a { color: #1a6b5f; text-decoration: none; }
  .print-body .table { overflow: visible; margin: 3mm 0; }
  .print-body table { width: 100%; font-size: 9pt; }
  .print-body th { background: #f1f0e8; color: #10231e; font-weight: 600; font-size: 8.5pt; padding: 2mm 2.5mm; border-bottom: 0.4mm solid #2f8f82; }
  .print-body td { padding: 1.8mm 2.5mm; border-bottom: 0.2mm solid #d5d3c6; }
  .print-body .num { white-space: nowrap; }
  .print-body blockquote { border-left: 0.8mm solid #2f8f82; padding-left: 4mm; }
  .print-body em:only-child { color: #586962; }
  .print-body .box { border-radius: 1mm; }
}
