/* The client door (VPR_1): sign-in, intake, proposal, review. Calm, warm, legible on a phone in the sun. */
:root {
  --bg: #f7f5f0; --surface: #ffffff; --ink: #1d2320; --muted: #5d6762; --line: #e3e0d8; --soft: #efece5;
  --brand: #2f5d46; --brand-ink: #ffffff; --brand-soft: #e6efe9; --accent: #b7791f; --accent-ink: #7a4d0c; --accent-soft: #fbf0dc; --good: #2f7a4f; --bad: #a33a2b;
  --radius: 14px; --shadow: 0 1px 2px rgb(20 30 25 / 6%), 0 8px 24px rgb(20 30 25 / 6%);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) { --bg: #121614; --surface: #1a201d; --ink: #e9ece9; --muted: #a2aca6; --line: #47524c; --soft: #222925;
    --brand: #7fc29b; --brand-ink: #0d1411; --brand-soft: #1f2d25; --accent: #e0a64a; --accent-ink: #f3cf8f; --accent-soft: #3a2c14; --good: #7fc29b; --bad: #f08a7a; }
}
:root[data-theme=dark] { --bg: #121614; --surface: #1a201d; --ink: #e9ece9; --muted: #a2aca6; --line: #47524c; --soft: #222925;
    --brand: #7fc29b; --brand-ink: #0d1411; --brand-soft: #1f2d25; --accent: #e0a64a; --accent-ink: #f3cf8f; --accent-soft: #3a2c14; --good: #7fc29b; --bad: #f08a7a; }
:root { color-scheme: light dark; } :root[data-theme=light] { color-scheme: light; } :root[data-theme=dark] { color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.vpr { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--brand); }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0.2em 0 0.4em; }
h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 0 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 0; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1080px; width: 100%; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 650; }
.brand img { border-radius: 7px; }
main { flex: 1; width: 100%; margin: 0 auto; padding: 8px 16px 48px; }
main.narrow { max-width: 760px; } main.wide { max-width: 1080px; }
.foot { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 24px 16px 32px; }
.foot a { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 650; color: var(--brand); margin: 0; }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.small { font-size: 0.88rem; color: var(--muted); }
.intro { padding: 12px 0 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 32px); margin: 0 0 20px; }
.card.center { text-align: center; max-width: 560px; margin: 32px auto; }
.card.auth { max-width: 440px; margin: 24px auto; }
label { display: block; font-weight: 600; margin: 0 0 16px; }
label .help, .field .help { display: block; font-weight: 400; color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
input[type=text], input[type=email], input[type=password], input:not([type]), textarea, select {
  display: block; width: 100%; margin-top: 6px; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[disabled], textarea[disabled] { background: var(--soft); color: var(--muted); }
button { font: inherit; cursor: pointer; }
.primary, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); border: 0; font-weight: 650; text-decoration: none; transition: transform .1s, filter .15s; }
.button { background: var(--surface); color: var(--brand); border: 1px solid var(--line); }
.primary:hover, .button:hover { filter: brightness(1.06); } .primary:active { transform: scale(0.98); }
.primary[disabled] { opacity: .55; cursor: not-allowed; }
.primary.big { width: 100%; min-height: 56px; font-size: 1.08rem; }
.card.auth .primary { width: 100%; margin-top: 4px; }
.link { background: none; border: 0; color: var(--brand); padding: 6px 0; text-decoration: underline; }
.problem, .flash { border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }
.problem { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.flash { background: var(--brand-soft); color: var(--brand); }
.loading { color: var(--muted); }

/* Intake */
.savebar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 10px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.progress { flex: 1; height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; max-width: 260px; }
.progress i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width .4s ease; }
.saved { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--muted); min-width: 92px; justify-content: flex-end; }
.saved .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .2s; }
.saved.saving .dot { background: var(--accent); animation: pulse 1s infinite; }
.saved.ok { color: var(--good); } .saved.ok .dot { background: var(--good); }
.saved.ok .tick { display: inline-block; animation: pop .35s ease; }
.saved.err { color: var(--bad); } .saved.err .dot { background: var(--bad); }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.2); } 100% { transform: scale(1); opacity: 1; } }
.drop { display: block; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface); padding: 28px 20px; text-align: center;
  transition: border-color .2s, background .2s; cursor: pointer; margin: 0 0 12px; font-weight: 400; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.files { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.files li { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; animation: slidein .25s ease; }
.files .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .meta { color: var(--muted); font-size: 0.85rem; }
.files .bar { height: 4px; background: var(--soft); border-radius: 99px; overflow: hidden; width: 80px; }
.files .bar i { display: block; height: 100%; background: var(--brand); width: 0; transition: width .2s; }
@keyframes slidein { from { opacity: 0; transform: translateY(-4px); } }
fieldset.part { border: 0; padding: 0; margin: 0 0 28px; }
fieldset.part legend { font-size: 1.25rem; font-weight: 700; padding: 0; margin-bottom: 4px; }
fieldset.part .intro-line { color: var(--muted); margin: 0 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; }
.grid .wide { grid-column: 1 / -1; }
.affix { position: relative; } .affix span { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.affix.pre span { left: 14px; } .affix.pre input { padding-left: 28px; } .affix.post span { right: 14px; } .affix.post input { padding-right: 34px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.field.wide > label { margin-bottom: 0; }
.picks label { margin: 0; font-weight: 500; }
.picks input { position: absolute; opacity: 0; }
.picks span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); transition: all .15s; }
.picks input:checked + span { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.picks input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-soft); }
.submit-card { text-align: center; }
/* Intake polish (VPR_CLARK_TONIGHT A): section chips, upload checklist, "we estimate" tags, 44px targets, visible focus */
.progwrap { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.pct { font-size: 0.9rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.steps { position: sticky; top: 49px; z-index: 4; margin: 0 0 16px; padding: 0 0 10px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow-x: auto; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
@media (max-width: 760px) { .steps { position: static; } .steps ol { flex-wrap: wrap; } .steps a { padding: 0 12px; } }
.steps ol { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.steps a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 600; white-space: nowrap; }
.steps .n { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.steps a.full { border-color: var(--good); } .steps a.full .n { color: var(--good); font-weight: 650; }
fieldset.part { scroll-margin-top: 120px; }
fieldset.part legend .num { display: block; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 2px; }
.checklist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 12px; }
.checklist .cl-head { margin: 0 0 10px; font-weight: 600; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 6px; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.checklist b { display: block; font-weight: 600; } .checklist li span { color: var(--muted); font-size: 0.9rem; }
@media (min-width: 761px) { .checklist ul { grid-template-columns: 1fr 1fr; gap: 12px 24px; } }
.est-tag { display: inline-block; margin: 2px 4px 0 0; font-size: 0.78rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.files .link { min-height: 44px; padding: 0 10px; margin-left: 8px; }
.picks span { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.drop:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
a:focus-visible, button:focus-visible, .steps a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .brand img { background: #f7f5f0; padding: 2px; } }
:root[data-theme=dark] .brand img { background: #f7f5f0; padding: 2px; }
.top a { min-height: 44px; display: inline-flex; align-items: center; }
.locked-note { background: var(--brand-soft); color: var(--brand); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }

/* Proposal */
.proposal { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.preview { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; overflow: hidden; min-height: 360px; }
.preview .blur { filter: blur(6px); user-select: none; pointer-events: none; }
.preview ol { padding-left: 1.2em; } .preview li { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(transparent, color-mix(in srgb, var(--surface) 70%, transparent)); }
.lock span { background: var(--ink); color: var(--bg); padding: 8px 16px; border-radius: 999px; font-weight: 650; font-size: 0.9rem; }
.buy .price { font-size: 2.6rem; font-weight: 750; letter-spacing: -0.03em; margin: 8px 0 16px; }
.ticks { list-style: none; padding: 0; margin: 0 0 8px; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 7px; border-left: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good); transform: rotate(-45deg); }
@media (max-width: 760px) { .proposal { grid-template-columns: 1fr; } .buy { order: -1; } }

/* Review */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.tile b { display: block; font-size: 1.55rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; transition: color .3s; }
.tile b.up { color: var(--good); } .tile b.down { color: var(--bad); }
.tile span { color: var(--muted); font-size: 0.9rem; }
section { margin: 0 0 32px; }
.actions { margin: 12px 0 0; }
.sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 28px; }
.slider span { display: flex; justify-content: space-between; font-weight: 600; }
.slider output { font-variant-numeric: tabular-nums; color: var(--brand); }
input[type=range] { width: 100%; margin: 10px 0 4px; accent-color: var(--brand); min-height: 32px; }
.delta { font-size: 1.1rem; font-weight: 650; min-height: 1.6em; margin: 12px 0 0; }
.delta.up { color: var(--good); } .delta.down { color: var(--bad); }
.moves { list-style: none; padding: 0; counter-reset: m; display: grid; gap: 12px; }
.move { counter-increment: m; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 14px 56px; position: relative; }
.move::before { content: counter(m); position: absolute; left: 18px; top: 18px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }
.move-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.impact { color: var(--good); font-variant-numeric: tabular-nums; white-space: nowrap; }
.move p { margin: 8px 0; } .move ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
#thoughts p { max-width: 70ch; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--soft); border-top-color: var(--brand); border-radius: 50%; margin: 0 auto 12px; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* PDF */
body.pdf { background: #fff; color: #1d2320; font-size: 11pt; display: block; }
body.pdf .tile, body.pdf .move, body.pdf .card { box-shadow: none; break-inside: avoid; }
@page { margin: 16mm 14mm; }

/* Critic A round 1 */
.est { font-style: normal; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-left: 6px; border-bottom: 1px dotted currentColor; }
.whatif-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.whatif-foot .delta { margin: 0; }
.delta:not(.up):not(.down) { color: var(--muted); font-weight: 500; font-size: 1rem; }
.saved { gap: 8px; }
.intro { padding: 12px 0 8px; }
.grid { align-items: end; }
.price-note { display: block; font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 2px; }
h3.sub { margin: 24px 0 8px; }
#thoughts p { margin: 0 0 12px; }

/* Critic A round 2 */
.grid { align-items: start; }
.est { display: block; margin: 6px 0 0; width: max-content; }
.explain { color: var(--muted); font-size: .95rem; max-width: 70ch; margin: 4px 0 8px; }
.progwrap { display: flex; align-items: center; gap: 10px; flex: 1; }
.pct { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.drop .choose { margin: 12px auto 8px; display: flex; width: max-content; min-height: 40px; pointer-events: none; }

/* Critic A round 3 */
.saved.ok { color: var(--brand); font-weight: 600; } .saved.ok .dot { display: none; }
.brand img { width: 32px; height: 32px; }

/* Critic B round 1 (phone) */

.mini { margin: 0 0 2px; font-weight: 650; font-variant-numeric: tabular-nums; }
input[type=range] { height: 44px; touch-action: pan-y; }
input[type=range]::-webkit-slider-thumb { width: 28px; height: 28px; }
input[type=range]::-moz-range-thumb { width: 28px; height: 28px; }
.explain { font-size: 1rem; }
.card ul, .card ol, section > ul { padding-left: 1.25em; }
@media (max-width: 600px) {
  .move-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .intro .actions .button { width: 100%; }
  .picks { flex-direction: column; } .picks label, .picks span { width: 100%; }
}

/* Critic B round 2 */
.whatif-now { background: var(--brand-soft); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }
.whatif-now .delta { margin: 2px 0 0; font-size: 1rem; }
.whatif-chip { font-size: .8rem; font-weight: 600; color: var(--accent); margin-left: 8px; letter-spacing: 0; }
.whatif-chip .link { font-size: .8rem; padding: 0; }
.tile { display: flex; flex-direction: column; }
.picks input:checked + span::before { content: "✓ "; }
.picks input:checked + span { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); font-weight: 650; }
@media (max-width: 600px) { .actions .button { width: 100%; } }

/* Terms at Pay */
.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .95rem; margin: 0 0 14px; }
.agree input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.terms li { margin-bottom: 12px; }
.later { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-left: 6px; white-space: nowrap; vertical-align: middle; }

/* VPR_2 phone: the four money tiles sit 2 x 2 instead of a long single column */
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 14px; } .tile b { font-size: 1.3rem; } .tile span { font-size: .85rem; line-height: 1.35; }
}

/* ── VPR_3 (10-24): the living what-if. Colours for the picture; one set, light and dark. ── */
:root { --c-rev: #2f5d46; --c-people: #2a6fb3; --c-materials: #c9682c; --c-kept: #2f8a56; --c-hands: #6aa84f; --c-fixed: #5b4fb5; --c-marketing: #2a9fa8;
  --c-hire: #8a6d3b; --c-truck: #7a7a2e; --c-owner: #b7791f; --c-debt: #b5557f; --c-left: #1f8a3a; --c-short: #a33a2b; --c-short-bg: #f6e3df; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) { --c-rev: #7fc29b; --c-people: #5f9ee8; --c-materials: #ee8a52; --c-kept: #4fc080; --c-hands: #93cd77; --c-fixed: #9c90ee; --c-marketing: #4cc3cc;
    --c-hire: #c6a56a; --c-truck: #b9b955; --c-owner: #e0a64a; --c-debt: #e18bb0; --c-left: #4fbf4f; --c-short: #f08a7a; --c-short-bg: #3a2320; }
}
:root[data-theme=dark] { --c-rev: #7fc29b; --c-people: #5f9ee8; --c-materials: #ee8a52; --c-kept: #4fc080; --c-hands: #93cd77; --c-fixed: #9c90ee; --c-marketing: #4cc3cc;
    --c-hire: #c6a56a; --c-truck: #b9b955; --c-owner: #e0a64a; --c-debt: #e18bb0; --c-left: #4fbf4f; --c-short: #f08a7a; --c-short-bg: #3a2320; }
.living .lede { max-width: 70ch; }
.whatif-bar { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin: 4px 0 16px; }
.whatif-bar .whatif-now { flex: 1 1 260px; margin: 0; }
.whatif-bar .reset { min-height: 44px; margin-left: auto; }
.flip { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.flip-btn { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; }
.flip-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.flip-btn:focus-visible, .chip:focus-visible, .step button:focus-visible, .sw input:focus-visible + .knob, .flip-btn:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 1px; }
/* The picture: flow left, dial + gauge + week right. */
.picture { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); gap: 16px; margin: 0 0 20px; align-items: start; }
.picture figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.picture figcaption { font-weight: 650; margin: 0 0 8px; }
.picture-side { display: grid; gap: 12px; align-content: start; }
.flow-svg { display: block; width: 100%; height: auto; }
.flow-svg .rib { opacity: .34; transition: opacity .2s; }
.flow-svg rect { transition: y .35s ease, height .35s ease; }
.flow-svg { overflow: visible; } .flow-svg .fl { font-size: 14.5px; fill: var(--muted); paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; }   /* 5px halo: the band's dotted texture no longer runs through the label (critic 10-25) */
.flow-svg .fl-name { font-weight: 600; fill: var(--ink); }
.flow-svg .fl-amt { font-variant-numeric: tabular-nums; }
.flow-svg .fl-top { font-size: 15px; }
.flow-bands { display: grid; gap: 12px; margin-top: 12px; }
.band-title { margin: 0 0 6px; font-weight: 600; font-size: .95rem; }
.band-bar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; background: var(--soft); }
.band-bar i { width: var(--w); background: var(--c); transition: width .35s ease; min-width: 0; }
.band-bar i.short { background: repeating-linear-gradient(45deg, var(--c-short) 0 3px, var(--c-short-bg) 3px 8px); }
.band-legend { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(265px, 100%), 1fr)); gap: 4px 14px; font-size: .9rem; }
.band-legend li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: baseline; padding-left: 16px; position: relative; }
.band-legend li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.band-legend li.short::before { background: repeating-linear-gradient(45deg, var(--c-short) 0 2px, var(--c-short-bg) 2px 5px); }
.band-legend b { font-variant-numeric: tabular-nums; } .band-legend small { color: var(--muted); min-width: 3ch; text-align: right; }
.band-legend .est { display: inline; margin-left: 4px; }
@media (min-width: 701px) { .flow-bands .band-bar { display: none; } .flow-bands .band-title { font-size: .85rem; color: var(--muted); font-weight: 600; } }
@media (max-width: 700px) { .flow-svg { display: none; } .picture { grid-template-columns: 1fr; } .flow-bands { margin-top: 0; } }
/* Dial */
.dial { text-align: center; }
.dial svg { display: block; width: min(100%, 270px); height: auto; margin: 0 auto; overflow: visible; }
.dial .band { fill: none; stroke-width: 12; stroke-linecap: butt; }
.dial .band.bad { stroke: var(--c-short); opacity: .55; } .dial .band.mid { stroke: var(--c-owner); opacity: .6; } .dial .band.good { stroke: var(--c-left); opacity: .6; }
.dial .tick { stroke: var(--ink); stroke-width: 1.5; } .dial .tk { font-size: 12.5px; fill: var(--muted); }
.dial .needle { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; } .dial .needle.anim { transition: x2 .4s ease, y2 .4s ease; }
.dial .hub { fill: var(--ink); }
.dial-value { display: block; font-size: 1.5rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: -6px 0 2px; }
.dial-value.bad { color: var(--bad); } .dial-value.mid { color: var(--accent); } .dial-value.good { color: var(--good); }
.dial .small { margin: 0; }
/* Crew gauge */
.gauge-bar { position: relative; height: 18px; border-radius: 6px; background: var(--soft); overflow: visible; margin: 8px 0 22px; }
.gauge-bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: 6px; background: var(--c-kept); transition: width .35s ease, background .3s; max-width: 100%; }
.gauge.amber .gauge-bar i { background: var(--c-owner); } .gauge.red .gauge-bar i { background: var(--c-short); }
.gauge-bar .mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--muted); }
.gauge-bar .mark em { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .8rem; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.gauge-bar .m85 { left: 70.83%; } .gauge-bar .m100 { left: 83.33%; background: var(--ink); }
.gauge-bar .m85 em { transform: translateX(-100%); margin-left: -4px; } .gauge-bar .m100 em { transform: none; margin-left: 4px; }
.gauge .small { margin: 0; } .gauge.red .small { color: var(--bad); font-weight: 600; }
/* Week strip */
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 110px; align-items: end; }
.day { display: grid; grid-template-rows: 1fr auto auto; height: 100%; text-align: center; font-size: .78rem; color: var(--muted); }
.day i { display: flex; align-items: flex-end; height: 100%; border-radius: 6px 6px 3px 3px; background: linear-gradient(to top, var(--c-owner) var(--crew, 0%), var(--c-kept) var(--crew, 0%)); margin-top: auto; align-self: end; height: var(--h); min-height: 2px; transition: height .35s ease, background .3s; position: relative; }
.day i b { display: none; }
.day.off i { background: var(--soft); height: 2px; }
.day span { font-weight: 600; color: var(--ink); margin-top: 4px; } .day small { font-size: .72rem; }
.week.short .day i { background: repeating-linear-gradient(45deg, var(--c-short) 0 3px, var(--c-short-bg) 3px 8px); }
.week .small { margin: 8px 0 0; } .week.short .small { color: var(--bad); }
/* Controls */
.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.group { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 12px; margin: 0; background: var(--surface); display: grid; gap: 10px; align-content: start; min-width: 0; }
.group legend { font-weight: 700; padding: 0 6px; margin-left: -6px; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.ctl { margin: 0; border-radius: 10px; transition: background .2s, box-shadow .2s; }
.ctl.lit { background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand); }
.move.lit { border-color: var(--brand); }
.ctl.slider { display: block; font-weight: 600; }
.ctl-head { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.ctl-head output { font-variant-numeric: tabular-nums; color: var(--brand); white-space: nowrap; }
.ctl-head output s { color: var(--muted); font-weight: 500; margin-right: 4px; }
.track { position: relative; display: block; }
.track input[type=range] { margin: 6px 0 0; }
.be { position: absolute; left: var(--pos, 0%); top: 4px; bottom: 6px; width: 0; pointer-events: none; }
.be i { position: absolute; top: 6px; bottom: 6px; left: -1px; width: 2px; background: var(--accent); border-radius: 1px; }
.be em { position: absolute; top: 100%; left: 0; transform: translateX(-50%); font-style: normal; font-size: .72rem; font-weight: 600; color: var(--accent); white-space: nowrap; margin-top: -4px; }
.be.beyond em, .be.hi em { transform: translateX(-100%); } .be.beyond em::after { content: " ›"; } .be.lo em { transform: none; }
.ctl.slider:has(.be:not([hidden])) { padding-bottom: 14px; }
.sw { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 500; cursor: pointer; min-height: 44px; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw .knob { flex: none; width: 48px; height: 28px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 40%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--muted) 35%, transparent); position: relative; transition: background .2s; }
.sw .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / 25%); transition: transform .2s; }
.sw input:checked + .knob { background: var(--brand); } .sw input:checked + .knob::after { transform: translateX(20px); }
.sw-text { display: grid; } .sw-text b { font-weight: 600; } .sw-text small { color: var(--muted); font-weight: 400; line-height: 1.35; }
.switch.has-num .num { display: none; align-items: center; gap: 10px; margin: 4px 0 0 60px; font-weight: 500; font-size: .92rem; }
.switch.has-num.on .num { display: flex; }
.num .affix { flex: 1; } .num input[type=number] { margin: 0; min-height: 44px; padding-left: 26px; }
.stepper { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; flex-wrap: wrap; }
.stepper .sw-text { flex: 1 1 160px; min-width: 0; } .stepper .step { flex: none; }
.step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.step button { width: 44px; height: 44px; border: 0; background: var(--surface); color: var(--brand); font-size: 1.3rem; font-weight: 600; }
.step button:hover { background: var(--brand-soft); }
.step output { min-width: 3.2ch; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; } .step output s { color: var(--muted); font-weight: 500; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; } .btn1 { display: grid; gap: 4px; } .btn1 small { color: var(--muted); }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--brand); font-weight: 600; }
.chip:hover { background: var(--brand-soft); }
output.changed { color: var(--accent); }
.living .more { margin: 12px 0 0; } .living details.more summary { cursor: pointer; color: var(--muted); font-size: .9rem; min-height: 44px; display: flex; align-items: center; } .living details.more p { margin: 0 0 8px; }
.est.inline { display: inline; margin: 0 2px; }
@media (max-width: 700px) { .whatif-bar .whatif-now { position: sticky; top: 8px; z-index: 3; box-shadow: var(--shadow); } }
@media (min-width: 900px) { .whatif-bar .mini { white-space: nowrap; } .whatif-bar .whatif-now { flex: 1 1 360px; } }
@media (max-width: 600px) {
  .whatif-bar .reset { width: 100%; }
  .controls { grid-template-columns: 1fr; }
  .week-days { height: 96px; }
}
/* VPR_3 money flow (Simon 10-24): money visibly moves along every band (the old map's dashes), and every part of the flow
   opens its own breakdown. Reduced motion stops the dashes (the rule near the top switches every animation off). */
.flow-svg .flowln { fill: none; stroke-linecap: round; stroke-dasharray: .1 17; opacity: .9; animation: vpr-flow 1.1s linear infinite; pointer-events: none; }
@keyframes vpr-flow { to { stroke-dashoffset: -17.1; } }
.flow-svg .fs { cursor: pointer; outline: none; transition: opacity .25s; }
.flow-svg .fs:hover .rib, .flow-svg .fs.hot .rib, .flow-svg .fs.on .rib { opacity: .6; }
.flow-svg .fs:focus-visible rect { stroke: var(--ink); stroke-width: 2.5px; }
.flow.has-open .flow-svg .fs:not(.on):not([data-sec=short]), .flow.has-hot:not(.has-open) .flow-svg .fs:not(.hot):not([data-sec=short]) { opacity: .22; }
.flow-svg .fl-layer .fl { pointer-events: auto; cursor: pointer; }
.flow-panel { grid-column: 1 / -1; list-style: none; }
.flow.has-open .flow-svg .fs:not(.on) .flowln { animation-play-state: paused; }
.flow-svg .fs.on rect { stroke: var(--ink); stroke-width: 2px; }
.band-legend li[data-sec] { cursor: pointer; border-radius: 8px; padding: 6px 4px 6px 22px; margin: 0; min-height: 44px; align-content: center; transition: background .2s, opacity .25s; }
.band-legend li[data-sec]::before { left: 6px; top: calc(6px + .45em); }
.band-legend li[data-sec]:hover, .band-legend li[data-sec].hot { background: var(--soft); }
.band-legend li[data-sec]:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 0; }
.band-legend li[data-sec].on { background: var(--soft); box-shadow: inset 3px 0 0 var(--c); }
.band-legend li[data-sec].on span { font-weight: 650; }
.flow.has-open .band-legend li[data-sec]:not(.on):not(.short)::before, .flow.has-open .band-bar i:not(.on):not(.short) { opacity: .35; }
.flow.has-open .band-legend li[data-sec]:not(.on) span { color: var(--muted); }
.band-bar i[data-sec] { cursor: pointer; background-color: var(--c); background-image: radial-gradient(circle at center, rgba(255,255,255,.6) 0 1.6px, transparent 2.2px); background-size: 17px 100%; animation: vpr-band 1.1s linear infinite; transition: width .35s ease, opacity .25s; }
.band-bar i.short[data-sec] { background-image: repeating-linear-gradient(45deg, var(--c-short) 0 3px, var(--c-short-bg) 3px 8px); animation: none; }
@keyframes vpr-band { to { background-position-x: 17px; } }
.flow-panel { position: relative; margin: 10px 0 4px; padding: 14px 16px 16px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 10px; background: var(--bg, var(--surface)); animation: vpr-in .3s ease both; max-width: 100%; box-sizing: border-box; }
@keyframes vpr-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.flow-panel .fp-x { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 1.6rem; line-height: 1; border-radius: 999px; cursor: pointer; }
.flow-panel .fp-x:hover { background: var(--soft); color: var(--ink); } .flow-panel .fp-x:focus-visible { outline: 3px solid var(--brand-soft); }
.flow-panel .fp-kicker { margin: 0; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 7px; }
.flow-panel .fp-kicker i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; }
.flow-panel .fp-title { margin: 2px 44px 4px 0; font-size: 1.2rem; line-height: 1.25; }
.flow-panel .fp-what { margin: 0 0 10px; color: var(--muted); }
.flow-panel .fp-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.flow-panel .fp-nums div { background: var(--soft); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.flow-panel dt { font-size: .8rem; color: var(--muted); } .flow-panel dd { margin: 2px 0 0; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.flow-panel .fp-h { margin: 8px 0 2px; font-weight: 650; font-size: .9rem; }
.flow-panel .fp-how { margin: 0; }
.flow-panel .fp-ctls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 6px; margin: 4px 0 0; }
.flow-panel .fp-ctl { text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
@media (max-width: 480px) { .flow-panel .fp-nums { grid-template-columns: 1fr; gap: 4px; } .flow-panel .fp-nums div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 10px; } .flow-panel dt { font-size: .9rem; } .flow-panel .fp-nums dd { margin: 0; } .flow-panel { padding: 12px 12px 14px; } }
@media (prefers-reduced-motion: reduce) { .flow-svg .flowln { display: none; } .band-bar i[data-sec] { background-image: none; } }

.flow-svg .fl-lead { fill: none; stroke: var(--muted); stroke-width: 1.2; }
.flow-svg .fl-short .fl-name, .flow-svg .fl-short .fl-amt { fill: var(--bad); }
.flow-panel .fp-more { margin: 6px 0 0; color: var(--muted); }
/* Intake Eval A: Show/Hide on password boxes + strength hint */
.pw { position: relative; display: block; }
.pw input { padding-right: 76px; }
.pw-show { position: absolute; right: 6px; bottom: 6px; min-height: 36px; min-width: 60px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--soft); color: var(--ink); font-weight: 600; font-size: 0.9rem; }
.pw-show:focus-visible { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
.pw-meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-weight: 500; font-size: 0.88rem; color: var(--muted); }
.pw-meter .bar { flex: 0 0 96px; height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.pw-meter .bar i { display: block; height: 100%; width: 0; background: var(--bad); transition: width .2s, background .2s; }
.pw-meter[data-level="0"] .bar i { width: 15%; } .pw-meter[data-level="1"] .bar i { width: 45%; background: var(--accent); }
.pw-meter[data-level="2"] .bar i { width: 75%; background: var(--good); } .pw-meter[data-level="3"] .bar i { width: 100%; background: var(--good); }
.pw-meter[data-level="0"] .word { color: var(--bad); }
.pw-match { display: block; margin-top: 6px; font-weight: 500; font-size: 0.88rem; color: var(--bad); }
.pw-match[data-ok="true"] { color: var(--good); }
/* Intake Eval E: Speak / Tap to record under answer boxes */
.mic { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.mic[hidden] { display: none; }
.mic-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--brand); font-weight: 600; }
.mic-btn:focus-visible { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
.mic-btn[disabled] { opacity: .7; cursor: progress; }
.mic-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.mic-btn.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.mic-btn.on .mic-dot { background: #fff; animation: micpulse 1s ease-in-out infinite; }
@keyframes micpulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .mic-btn.on .mic-dot { animation: none; } }
.mic-live { flex-basis: 100%; color: var(--muted); font-style: italic; min-height: 0; }
.mic-live:empty { display: none; }
.mic-note { font-size: 0.88rem; color: var(--muted); }
/* Dark / Light button in the header (theme.js); the choice is kept on this device */
.top-right { display: flex; align-items: center; gap: 8px; }
.theme-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.theme-btn:focus-visible { outline: 3px solid var(--brand-soft); border-color: var(--brand); }

/* Intake Eval N1: portal home */
.ie-home { max-width: 600px; margin: 24px auto; }
.ie-home a.primary.big { text-decoration: none; text-align: center; line-height: 1.3; padding: 12px 22px; }
.ie-bar { display: block; width: 100%; height: 10px; margin: 4px 0 18px; border: 0; border-radius: 999px; background: var(--soft); overflow: hidden; -webkit-appearance: none; appearance: none; }
.ie-bar::-webkit-progress-bar { background: var(--soft); border-radius: 999px; }
.ie-bar::-webkit-progress-value { background: var(--brand); border-radius: 999px; }
.ie-bar::-moz-progress-bar { background: var(--brand); border-radius: 999px; }
.ie-left { text-align: center; color: var(--muted); margin: 10px 0 18px; font-variant-numeric: tabular-nums; }
.ie-home .big-link { width: 100%; min-height: 56px; text-decoration: none; }
/* Simon 10-25: the pay screen (approved, not paid) is one card: title, what is inside, price, Pay. */
.paywall { max-width: 600px; margin: 24px auto; }
.paywall h2 { margin-top: 20px; }
.paywall .primary.big { width: 100%; }
/* Simon 10-25: the client password rule, ticked live under the box (static/pwrule.js). */
.pw-rules { list-style: none; padding: 0; margin: -6px 0 16px; font-size: .9rem; color: var(--muted); }
.pw-rules li { position: relative; padding-left: 24px; margin: 4px 0; }
.pw-rules li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--line); }
.pw-rules li[data-ok="1"] { color: var(--ink); }
.pw-rules li[data-ok="1"]::before { border: 0; border-left: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good); border-radius: 0; width: 11px; height: 6px; top: .35em; transform: rotate(-45deg); }
label:has(+ .pw-rules) { margin-bottom: 0; }

/* Intake split critic r1 H5: one type system on the client door. The portal home, the pay screen, the opened review and the
   comprehensive intake menu use the intake's fonts (Source Sans 3 body, Source Serif 4 headings) and its header wordmark
   (28px mark, weight 600). Fonts and header only; layout stays as it is (the Client OS session owns the portal redesign).
   In the PDF (styles inlined) the font files do not resolve and the stacks fall back to Georgia / the system sans. */
@font-face{font-family:"Source Sans 3";src:url(fonts/source-sans-3.woff2) format("woff2");font-weight:200 900;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Source Sans 3";src:url(fonts/source-sans-3-ext.woff2) format("woff2");font-weight:200 900;font-style:normal;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Source Serif 4";src:url(fonts/source-serif-4.woff2) format("woff2");font-weight:200 900;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

body.vpr { --font: "Source Sans 3", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif; }
body.vpr h1, body.vpr h2 { font-family: var(--serif); font-weight: 600; }
body.vpr h1 { letter-spacing: -0.015em; text-wrap: balance; }
body.vpr .top .brand { font-weight: 600; letter-spacing: 0.01em; }
body.vpr .top .brand img { width: 28px; height: 28px; }
body.vpr .ie-full h2 { font-size: 1.5rem; line-height: 1.2; }   /* the comprehensive card on the portal home (intake scale) */
