/* GENESIS by ZODEYX — business plan. Same dark, scientific, calm direction as the ZODEYX study. */
:root {
  --bg: #0F1519; --bg-2: #151D22; --bg-3: #1B252B;
  --line: #2B373E; --edge: #5E6C72;
  --ink: #E7E5DE; --ink-2: #A3ADB0; --ink-3: #7D898E;
  --ice: #9CC5CB; --brass: #CDB27B; --pain: #D98F96; --moss: #9FC29A;
  --dot: rgba(231, 229, 222, .14);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --c-infra: #9CC5CB; --c-api: #CDB27B; --c-production: #8FA9D6; --c-ux: #9FC29A; --c-sales: #C9A0C9; --c-legal: #7D898E; --c-contingency: #5E6C72;
  --w: 46rem;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ice); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }
.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; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: var(--bg); padding: .5rem .8rem; z-index: 50; border-radius: 4px; }
.skip:focus { top: .6rem; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: .01em; }
.small { font-size: .9rem; color: var(--ink-2); }
strong { font-weight: 600; }

.field { position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.4px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 16px; background: rgba(15, 21, 25, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.mark { color: var(--ink); text-decoration: none; display: flex; align-items: baseline; gap: .45rem; white-space: nowrap; }
.mark b { font-family: var(--mono); font-weight: 500; letter-spacing: .18em; font-size: .95rem; }
.mark span { color: var(--ink-3); font-size: .85rem; }
.nav { display: flex; gap: .15rem; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .85rem; padding: .3rem .55rem; border-radius: 4px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); background: var(--bg-3); }
.nav-toggle { display: none; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: .35rem .7rem; font-size: .9rem; min-height: 40px; }
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg-2);
    border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; max-height: calc(100vh - 4rem); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav a { font-size: 1rem; padding: .7rem .5rem; }
}

.draft-banner, .load-error { margin: 0; padding: .55rem 16px; font-size: .85rem; text-align: center; border-bottom: 1px solid var(--line); }
.draft-banner { background: rgba(205, 178, 123, .1); color: var(--brass); }
.load-error { background: rgba(217, 143, 150, .12); color: var(--pain); }

/* Sections */
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 16px; }
.sec { padding: 4.5rem 0; border-bottom: 1px solid var(--line); }
.sec-num { font-family: var(--mono); color: var(--ink-3); font-size: .8rem; letter-spacing: .15em; margin: 0 0 .4rem; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0; }
h2 { font-size: clamp(1.75rem, 5.5vw, 2.4rem); margin-bottom: 1.4rem; }
h3 { font-size: 1.35rem; margin: 2.6rem 0 1rem; }
h4 { font-size: 1.12rem; margin-bottom: .5rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--ink); }
.hint { color: var(--ink-3); font-size: .88rem; }

/* Intro */
.sec-intro { min-height: calc(100svh - 3.5rem); display: flex; align-items: center; padding: 3rem 0 4rem; }
.kicker { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); margin-bottom: 2rem; }
.sec-intro h1 { font-size: clamp(1.7rem, 6vw, 2.9rem); }
.sec-intro h1 .line { display: block; margin-bottom: .9rem; }
.sec-intro h1 .l1 { color: var(--ink-2); }
.sec-intro h1 .l2 { font-style: italic; }
.punch { font-size: 1.25rem; margin: 2rem 0 2.2rem; color: var(--brass); }
@media (prefers-reduced-motion: no-preference) {
  .ready .sec-intro .line, .ready .punch { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .ready .sec-intro .l1 { animation-delay: .5s; } .ready .sec-intro .l2 { animation-delay: 1.1s; }
  .ready .punch { animation-delay: 1.9s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .6rem 1.2rem;
  border: 1px solid var(--edge); background: var(--bg-2); color: var(--ink); border-radius: 6px; text-decoration: none; cursor: pointer; }
.btn:hover:not(:disabled) { border-color: var(--ink-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 500; }

/* Badges */
.badge { display: inline-block; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .12rem .45rem; border-radius: 3px; border: 1px solid currentColor; vertical-align: middle; overflow-wrap: anywhere; }
.badge-warn { color: var(--brass); }
.st-estimate { color: var(--brass); } .st-source { color: var(--ice); } .st-quote { color: #C9A0C9; } .st-actual { color: var(--moss); }

/* Problem */
.chips { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px; padding: .2rem .75rem; font-size: .9rem; }
.chips-dim li { color: var(--ink-3); border-style: dashed; background: transparent; }
blockquote { margin: 1.5rem 0; padding: 0 0 0 1rem; border-left: 2px solid var(--brass); font-family: var(--serif); font-size: 1.3rem; font-style: italic; }
.consequences { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .5rem; }
.consequences li { padding: .55rem .8rem; border: 1px solid var(--line); border-left: 2px solid var(--pain); background: var(--bg-2); font-size: .95rem; }

/* Evidence */
.evidence-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .evidence-grid { grid-template-columns: 1fr 1fr; } }
.evidence-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem; display: flex; flex-direction: column; }
.ev-figure { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--ice); margin-bottom: .7rem; }
.ev-claim { flex: 1; }
.ev-meta { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; font-size: .88rem; margin: 0 0 .8rem; }
.ev-meta dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: .15rem; }
.ev-meta dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
details > summary { cursor: pointer; color: var(--ice); font-size: .92rem; min-height: 44px; display: flex; align-items: center; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "+"; font-family: var(--mono); width: 1.2rem; flex: none; }
details[open] > summary::before { content: "−"; }
.draft-note { font-size: .82rem; color: var(--brass); border-top: 1px dashed var(--line); padding-top: .6rem; }

/* Solution */
.canon { color: var(--ink); }
.canon-fr { color: var(--ink-2); font-size: .95rem; margin-top: -.6rem; }
.pipeline { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .35rem; counter-reset: s; }
.pipeline li { counter-increment: s; }
.pipeline button { background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: .45rem .6rem; min-height: 40px; cursor: pointer; color: var(--ink-2); }
.pipeline button::before { content: counter(s, decimal-leading-zero) " "; font-family: var(--mono); font-size: .7rem; color: var(--ink-3); }
.pipeline button[aria-current="step"] { border-color: var(--ice); color: var(--ink); background: var(--bg-3); }
.step-desc { background: var(--bg-2); border: 1px solid var(--line); border-left: 2px solid var(--ice); padding: 1rem 1.1rem; border-radius: 0 6px 6px 0; min-height: 8rem; }
.step-desc p { margin-bottom: .4rem; }
.step-count { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); letter-spacing: .1em; }
.step-title { font-size: 1.05rem; }
.demo { border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem; background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.demo-need { font-family: var(--serif); font-size: 1.2rem; font-style: italic; margin: 1rem 0; }
.deduced { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0 0 1rem; padding: .8rem 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; font-size: .95rem; }
.deduced dt { color: var(--ink-3); } .deduced dd { margin: 0; }
.not-said { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--pain); margin-top: 1.2rem; }
.said { font-family: var(--serif); font-size: 1.15rem; border-left: 2px solid var(--moss); padding-left: .9rem; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: 6px; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; background: var(--bg-2); }
tbody th { font-weight: 500; color: var(--ink-2); }
tbody tr:last-child > * { border-bottom: 0; }

/* Trust */
.answer { font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; margin-bottom: 1.8rem; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs [role="tab"] { background: none; border: 0; border-bottom: 2px solid transparent; padding: .6rem .8rem; min-height: 44px; cursor: pointer;
  font-family: var(--mono); font-size: .82rem; letter-spacing: .1em; color: var(--ink-3); }
.tabs [aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ice); }
.tab-panel { padding: 1.1rem 0 .2rem; min-height: 7.5rem; }
.tab-short { font-family: var(--mono); font-size: .85rem; color: var(--ice); }
.layers { display: grid; gap: .6rem; }
@media (min-width: 700px) { .layers { grid-template-columns: repeat(3, 1fr); } }
.layer { border: 1px solid var(--line); border-top: 3px solid; padding: .9rem 1rem; border-radius: 0 0 6px 6px; background: var(--bg-2); }
.layer p { margin: 0; }
.layer-k { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; margin-bottom: .4rem !important; }
.layer.observed { border-top-color: var(--moss); } .layer.observed .layer-k { color: var(--moss); }
.layer.interpreted { border-top-color: var(--ice); } .layer.interpreted .layer-k { color: var(--ice); }
.layer.unproven { border-top-color: var(--pain); } .layer.unproven .layer-k { color: var(--pain); }
.layer.unproven .layer-v { color: var(--ink-3); }

/* Why */
.alt-list { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
@media (min-width: 700px) { .alt-list { grid-template-columns: 1fr 1fr; } }
.alt { border: 1px solid var(--line); background: var(--bg-2); border-radius: 6px; padding: .9rem 1rem; }
.alt p { margin: 0 0 .3rem; font-size: .92rem; color: var(--ink-2); }
.plus { color: var(--moss); } .minus { color: var(--pain); }
.formula { font-family: var(--mono); font-size: 1.05rem; color: var(--brass); text-align: center; padding: .8rem; border: 1px dashed var(--line); border-radius: 6px; }
.horizon { display: grid; gap: .6rem; }
@media (min-width: 700px) { .horizon { grid-template-columns: 1fr 2fr; } }
.engine { text-align: center; color: var(--ice); font-size: 1rem; margin-top: 1rem; }

/* State */
.timeline { list-style: none; padding: 0; margin: 0 0 .6rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: .7rem; top: .5rem; bottom: .5rem; width: 1px; background: var(--line); }
.timeline li { position: relative; display: flex; align-items: center; gap: .9rem; padding: .45rem 0; }
.tl-sym { width: 1.4rem; height: 1.4rem; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); font-size: .78rem; z-index: 1; }
.tl-done .tl-sym { color: var(--moss); border-color: var(--moss); }
.tl-in_progress .tl-sym { color: var(--brass); border-color: var(--brass); }
.tl-todo .tl-sym, .tl-todo .tl-label { color: var(--ink-3); }
.src { font-style: italic; }
.cap-cols { display: grid; gap: .8rem; margin-top: 1.5rem; }
@media (min-width: 760px) { .cap-cols { grid-template-columns: 1.2fr .9fr 1.2fr; } }
.cap { border: 1px solid var(--line); border-radius: 6px; padding: 1rem; background: var(--bg-2); }
.cap h3 { font-size: 1.05rem; margin: 0 0 .7rem; font-family: var(--sans); font-weight: 600; }
.cap ul { margin: 0; padding-left: 1.1rem; font-size: .92rem; }
.cap li { margin-bottom: .35rem; }
.cap.done h3 { color: var(--moss); } .cap.prog h3 { color: var(--brass); } .cap.todo h3 { color: var(--ink-2); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .5rem; }
.kpi { border: 1px solid var(--line); border-radius: 6px; padding: .8rem; background: var(--bg-2); }
.kpi p { margin: 0; }
.kpi-label { font-size: .84rem; color: var(--ink-2); margin-bottom: .35rem !important; }
.kpi-value { font-family: var(--serif); font-size: 1.25rem; }
.kpi-null .kpi-value { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* Business model */
.offers { display: grid; gap: .6rem; margin-bottom: 1rem; }
@media (min-width: 700px) { .offers { grid-template-columns: 1fr 1fr; } }
.offer { border: 1px solid var(--line); border-radius: 6px; padding: 1rem; background: var(--bg-2); }
.offer p { font-size: .93rem; color: var(--ink-2); }
.offer-id { color: var(--ink-3) !important; margin-bottom: .3rem; }
.offer-price { margin: 0; }
.unit { margin: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.unit-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .9rem; border-bottom: 1px solid var(--line); }
.unit-row:last-child { border-bottom: 0; }
.unit-row dt { display: flex; gap: .5rem; }
.unit-row dd { margin: 0; font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); align-self: center; text-align: right; }
.unit-row.total { background: var(--bg-2); font-weight: 600; }
.sign { width: 1rem; color: var(--ink-3); font-family: var(--mono); }

/* Need */
.need-hero { border: 1px solid var(--line); border-radius: 8px; padding: 1.3rem; background: linear-gradient(180deg, var(--bg-2), var(--bg)); margin-bottom: 1rem; }
.need-hero .small { margin-bottom: .3rem; }
.need-total { font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1.1; margin: 0 0 .3rem; }
.need-plus { color: var(--brass); font-size: .92rem; }
.range { margin: 1.2rem 0 .6rem; }
.range-track { position: relative; height: 8px; background: var(--bg-3); border-radius: 4px; border: 1px solid var(--line); }
.range-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(156,197,203,.25), rgba(156,197,203,.6)); border-radius: 4px; }
.range-mark { position: absolute; top: -6px; width: 2px; height: 18px; background: var(--ink); transform: translateX(-1px); }
.range-labels { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; color: var(--ink-3); margin-top: .4rem; }
.ok { color: var(--moss) !important; } .warn { color: var(--pain) !important; }
.funding { display: grid; gap: .5rem; margin: 0 0 1rem; }
@media (min-width: 640px) { .funding { grid-template-columns: repeat(3, 1fr); } }
.funding > div, .pvr > div { border: 1px solid var(--line); border-radius: 6px; padding: .7rem .9rem; }
.funding dt, .pvr dt, .terms dt, .risk dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.funding dd, .pvr dd { margin: .2rem 0 0; font-size: .95rem; }
.stack { display: flex; height: 14px; border-radius: 4px; overflow: hidden; gap: 2px; margin-bottom: 1rem; }
.seg { display: block; min-width: 4px; }
.c-infra { --c: var(--c-infra); } .c-api { --c: var(--c-api); } .c-production { --c: var(--c-production); } .c-ux { --c: var(--c-ux); }
.c-sales { --c: var(--c-sales); } .c-legal { --c: var(--c-legal); } .c-contingency { --c: var(--c-contingency); }
.seg { background: var(--c); }
.cats { display: grid; gap: .5rem; }
.cat { border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); }
.cat > summary { color: var(--ink); padding: .7rem .9rem; gap: .6rem; flex-wrap: wrap; }
.cat > summary::before { display: none; }
.cat-dot { width: .7rem; height: .7rem; border-radius: 2px; background: var(--c); flex: none; }
.cat-name { flex: 1; font-weight: 500; min-width: 8rem; }
.cat-total { font-family: var(--mono); font-size: .9rem; }
.cat-more { font-size: .78rem; color: var(--ice); }
.cat-more::after { content: " +"; font-family: var(--mono); }
.cat[open] .cat-more::after { content: " −"; }
.cat-purpose { padding: 0 .9rem; font-size: .92rem; color: var(--ink-2); }
.pvr { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: 0 .9rem 1rem; }
.pvr > div { padding: .5rem .6rem; }
.pvr dd { font-size: .82rem; }
.lines { list-style: none; margin: 0; padding: 0 .9rem .6rem; }
.line-item { border-top: 1px solid var(--line); padding: .8rem 0; }
.li-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.li-name { font-weight: 500; }
.li-amount { font-family: var(--mono); font-size: .88rem; white-space: nowrap; }
.li-formula { color: var(--ink-2); margin: .35rem 0; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: .35rem .55rem; overflow-wrap: anywhere; }
.li-meta { font-size: .84rem; margin: 0 0 .2rem; color: var(--ink-2); }
.li-note { color: var(--ink-3); }
.li-actual { margin: 0; font-size: .8rem; color: var(--ink-3); }
.legend { margin-top: 1rem; line-height: 2; }

/* Risks */
.risk-list { display: grid; gap: .6rem; }
.risk { border: 1px solid var(--line); border-radius: 6px; padding: 1rem; background: var(--bg-2); }
.risk dl { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: .2rem 0 .6rem; }
.risk dd { margin: 0; font-size: .92rem; }
.risk p { margin: 0; }
.kill { padding-left: 1.2rem; } .kill li { margin-bottom: .4rem; }
.kill li::marker { color: var(--pain); }

/* Choice */
.sec-choice { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.choices { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
@media (min-width: 760px) { .choices { grid-template-columns: 1fr 1fr 1fr; } }
.choice { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem; min-height: 6rem; cursor: pointer;
  border: 1px solid var(--edge); border-radius: 8px; background: var(--bg); transition: border-color .2s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-label { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; }
.choice-sub { font-size: .88rem; color: var(--ink-2); }
.choice:hover { border-color: var(--ink-2); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ice); outline-offset: 3px; }
.choice:has(input:checked) { border-color: var(--ice); background: var(--bg-3); }
.choice-declined .choice-label { font-size: 1.05rem; color: var(--ink-2); }
.choice-panel:not(:empty) { border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem; background: var(--bg); margin-bottom: 1rem; }
.choice-panel h3 { margin-top: 0; }
.warning { border: 1px solid rgba(205,178,123,.5); background: rgba(205,178,123,.07); border-radius: 6px; padding: .9rem 1rem; margin-bottom: 1rem; }
.warning ul { margin: 0; padding-left: 1.1rem; } .warning li { margin-bottom: .3rem; } .warning p { margin: 0; }
.terms { display: grid; gap: .5rem; margin: 0 0 1rem; }
.terms > div { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); padding: .5rem 0; }
.terms dd { margin: 0; }
.not-contract { font-size: .88rem; color: var(--ink-2); border-left: 2px solid var(--edge); padding-left: .8rem; margin: 0; }
.reasons { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .2rem; }
.reasons legend { margin-bottom: .4rem; font-weight: 500; }
.check { display: flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--ice); }
.field { display: block; font-weight: 500; margin-bottom: .4rem; }
textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--edge); border-radius: 6px; padding: .7rem; margin-bottom: .8rem; resize: vertical; }

/* Calculators (phase 2) */
.calc { margin: 0 0 1rem; }
.amount { margin-bottom: 1rem; }
.amount-row { display: flex; align-items: stretch; border: 1px solid var(--edge); border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.amount-row:focus-within { border-color: var(--ice); }
.amount-input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .75rem .9rem; font-family: var(--mono); font-size: 1.25rem; outline: none; }
.amount-input[aria-invalid="true"] { color: var(--pain); }
.amount-row:has([aria-invalid="true"]) { border-color: var(--pain); }
.amount-unit { display: grid; place-items: center; padding: 0 .9rem; color: var(--ink-3); font-family: var(--mono); font-size: .85rem; border-left: 1px solid var(--line); }
.field-error { color: var(--pain); font-size: .88rem; margin: .4rem 0 0; }
.field-error:empty { display: none; }
.field-help { margin: .4rem 0 .5rem; }
.shortcuts { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-btn, .chip-radio { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: .35rem .85rem; min-height: 40px; cursor: pointer; font-family: var(--mono); font-size: .82rem; color: var(--ink-2); display: inline-flex; align-items: center; }
.chip-btn:hover, .chip-radio:hover { border-color: var(--ink-2); color: var(--ink); }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio:has(input:checked) { border-color: var(--ice); color: var(--ink); background: var(--bg-3); }
.chip-radio:has(input:focus-visible) { outline: 2px solid var(--ice); outline-offset: 2px; }
.calc-out { border: 1px solid var(--line); border-radius: 6px; padding: .3rem 1rem .6rem; background: var(--bg-2); margin-bottom: 1rem; }
.calc-dl { margin: 0; }
.calc-dl > div { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .3rem 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.calc-dl > div:last-child { border-bottom: 0; }
.calc-dl dt { color: var(--ink-2); font-size: .93rem; }
.calc-dl dd { margin: 0; font-family: var(--mono); font-size: .92rem; text-align: right; }
.calc-dl .emph dt { color: var(--ink); font-weight: 500; }
.big { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; color: var(--ice); }
.calc-h { margin: 1.2rem 0 .6rem; }
.note { color: var(--brass); }
.horizons { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.horizons legend { float: left; margin-right: .6rem; font-size: .9rem; color: var(--ink-2); }
tr.loss td { color: var(--pain); }
.num-table td { font-family: var(--mono); font-size: .82rem; text-align: right; white-space: nowrap; }
.num-table thead th:not(:first-child) { text-align: right; }
.schedule-ctl { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.schedule-ctl p { margin: 0; flex: 1; min-width: 12rem; }
.schedule .table-wrap { max-height: 26rem; overflow: auto; }
.disclaimer { font-size: .9rem; border: 1px dashed var(--brass); color: var(--brass); padding: .7rem .9rem; border-radius: 6px; }

/* Sources & footer */
.sources { padding-left: 1.2rem; } .sources li { margin-bottom: 1.4rem; } .sources p { margin: 0 0 .2rem; overflow-wrap: anywhere; }
.verif { color: var(--ink-3) !important; font-style: italic; }
.foot { padding: 2.5rem 0 3rem; color: var(--ink-2); }
.foot b { font-family: var(--mono); letter-spacing: .18em; font-weight: 500; color: var(--ink); }

@media (max-width: 420px) {
  body { font-size: 1rem; }
  .sec { padding: 3.2rem 0; }
  .pvr { grid-template-columns: 1fr; }
  .li-head { flex-direction: column; gap: .1rem; }
  th, td { padding: .5rem .45rem; }
  thead th { font-size: .64rem; letter-spacing: .04em; }
  .calc-out { padding: .3rem .75rem .5rem; }
}
@media print {
  .bar, .field, .draft-banner, .choices, .choice-panel { display: none !important; }
  body { background: #fff; color: #000; }
  details { display: block; } details > * { display: block !important; }
}

/* Proposal (phase 3) */
.proposal { border-top: 1px solid var(--line); padding-top: .4rem; margin-top: 1rem; }
.text-input { width: 100%; background: var(--bg-2); border: 1px solid var(--edge); border-radius: 6px; padding: .65rem .8rem; margin-bottom: .8rem; min-height: 44px; }
.text-input:focus { border-color: var(--ice); outline: none; }
.contact-box { padding: .2rem 0 .4rem; }
.review { border: 1px solid var(--ice); border-radius: 8px; padding: .4rem 1rem 1rem; background: var(--bg-2); }
.review:focus { outline: none; }
.review-v { font-family: var(--sans) !important; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; text-align: left !important; }
.review .calc-dl > div { align-items: flex-start; }
.review-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.strong-note { margin-top: 1rem; color: var(--ink); border-left-color: var(--brass); }
.done { border: 1px solid var(--moss); border-radius: 8px; padding: .4rem 1rem 1rem; background: rgba(159,194,154,.06); }
.done:focus { outline: none; }
.done h4 { color: var(--moss); }

/* Intro actions */
.intro-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (prefers-reduced-motion: no-preference) {
  .ready .sec-intro .intro-actions { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: 2.3s; }
}
