/* Paycheck money reset: the app screens (quiz, result, plan). Brand tokens come from brand/brand.css. */
:root { --ground: #ffffff; --tile: var(--panel); --sel: var(--brand-soft); }
body.app { background: var(--ground); min-height: 100dvh; }
.shell { max-width: 560px; margin: 0 auto; padding: 0 16px 140px; }
/* top bar inside a flow: back, logo, progress */
.tbar { position: sticky; top: 0; z-index: 30; background: var(--ground); padding: 10px 0 8px; }
.tbar-in { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.tbar .ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.tbar .ic:hover { background: rgba(21,23,28,.06); }
.tbar .ic[hidden] { visibility: hidden; display: grid; }
.tbar .mark { flex: 1; text-align: center; }
.tbar .mark img { height: 24px; width: auto; vertical-align: middle; }
.prog { height: 6px; border-radius: 6px; background: rgba(21,23,28,.08); overflow: hidden; margin-top: 8px; }
.prog i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 6px; transition: width .25s ease-out; }
.step-of { font-size: 16px; color: var(--ink-2); margin: 6px 2px 0; }
/* the three quiz stages: Your pay, Your bills, Your leak */
.stages { display: flex; gap: 6px; list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.stages li { padding: 4px 10px; border-radius: 999px; background: var(--panel); }
.stages li.on { background: var(--ink); color: #fff; }
.stages li.done { color: var(--brand-ink, #0b6b35); }
.stages li.done::before { content: "\2713\00a0"; }
/* a screen */
.scr { padding-top: 10px; }
.hero-h1 { font-size: clamp(34px, 9vw, 46px); margin: 14px 0 10px; }
.hero-sub { font-size: 19px; color: var(--ink-2); margin-bottom: 18px; }
.q { font-size: clamp(26px, 6.6vw, 32px); font-weight: 750; letter-spacing: -0.02em; line-height: 1.12; margin: 14px 0 6px; }
.q-sub { color: var(--ink-2); margin: 0 0 16px; }
.opts { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.opt { position: relative; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 14px 20px; background: var(--tile); border-radius: 18px;
  box-shadow: none; cursor: pointer; font-size: 18px; font-weight: 600; transition: box-shadow .15s, background .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.opt:hover { box-shadow: inset 0 0 0 2px rgba(17,19,18,.25); }
.opt:active { transform: scale(.985); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .tick { margin-left: auto; width: 26px; height: 26px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(21,23,28,.18); display: grid; place-items: center; }
.opt.multi .tick { border-radius: 8px; }
.opt:has(input:checked) { background: var(--sel); box-shadow: inset 0 0 0 2px var(--brand); }
.opt:has(input:checked) .tick { background: var(--brand); box-shadow: none; }
.opt:has(input:checked) .tick::after { content: ""; width: 11px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.opt:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
.opt .em { font-size: 24px; width: 28px; text-align: center; }
.opt small { display: block; font-weight: 400; color: var(--ink-2); font-size: 16px; }
/* rows of segmented amounts */
.seg-row { border: 0; padding: 0; margin: 0 0 18px; }
.seg-row b { display: block; font-size: 18px; margin: 0 4px 10px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg label { position: relative; display: grid; place-items: center; min-height: 48px; border-radius: 999px; background: var(--tile); font-weight: 600; font-size: 16px; cursor: pointer; text-align: center; padding: 0 4px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--ink); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
/* teaching card between questions */
.fact { background: var(--ink); color: #fff; border-radius: 28px; padding: 32px 24px; margin-top: 18px; }
.fact .big { font-size: clamp(72px, 22vw, 110px); font-weight: 800; letter-spacing: -0.05em; line-height: .95; color: #5fd88f; font-variant-numeric: tabular-nums; }
.fact h2 { color: #fff; font-size: 26px; margin: 14px 0 10px; }
.fact p { color: #d9dce3; margin: 0; }
.fact .src { margin-top: 14px; font-size: 16px; color: #b9bdc7; }
/* pinned action bar */
.act { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--ground) 70%, rgba(255,255,255,0)); }
.act-in { max-width: 560px; margin: 0 auto; }
.act .btn { width: 100%; }
/* loader */
.load { padding-top: 40px; }
.load ol { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.load li { display: flex; align-items: center; gap: 12px; background: var(--tile); border-radius: 16px; padding: 16px 18px; font-weight: 600; opacity: .45; transition: opacity .2s; }
.load li.on { opacity: 1; }
.load li .n { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--brand-ink); }
.load li .dot { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(21,23,28,.2); flex: none; }
.load li.done .dot { background: var(--good); box-shadow: none; }
/* profile + email */
.prof { background: var(--tile); border-radius: 24px; padding: 26px 22px; box-shadow: var(--shadow); margin-top: 16px; }
.prof .tag { display: inline-block; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 6px 14px; font-size: 16px; }
.prof h2 { margin: 14px 0 8px; }
.field { display: block; margin: 16px 0 10px; }
.field span { display: block; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; min-height: 54px; font: 500 18px var(--font); padding: 0 16px; border-radius: var(--r-field); border: 0; background: var(--tile); box-shadow: inset 0 0 0 1.5px rgba(21,23,28,.16); color: var(--ink); }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand); }
.err { color: var(--warn); font-weight: 600; min-height: 1.5em; margin: 6px 2px; }
.note { color: var(--ink-2); font-size: 16px; }
/* result: the sales page */
.res { padding-top: 6px; }
.res-num { font-size: clamp(64px, 19vw, 104px); font-weight: 800; letter-spacing: -0.045em; line-height: .95; margin: 8px 0 4px; }
.res-num small { font-size: .32em; letter-spacing: -0.01em; font-weight: 700; }
.res-lead { font-size: 21px; font-weight: 600; margin: 4px 0 14px; }
.rows { background: var(--tile); border-radius: 22px; padding: 6px 20px; box-shadow: var(--shadow); }
.rows div { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows div:last-child { border-bottom: 0; }
.rows b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows .tot { font-weight: 800; }
.res h2 { margin-top: 36px; }
.weeks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.weeks li { display: flex; gap: 14px; align-items: baseline; background: var(--tile); border-radius: 16px; padding: 14px 18px; }
.weeks li .wk { font-weight: 800; color: var(--brand-ink); min-width: 62px; font-variant-numeric: tabular-nums; }
.weeks li.first { box-shadow: 0 0 0 2px var(--brand); }
.weeks li p { margin: 4px 0 0; color: var(--ink-2); font-size: 16px; }
.offer { background: var(--tile); border-radius: 26px; padding: 22px 20px; box-shadow: 0 2px 4px rgba(21,23,28,.05), 0 24px 48px -24px rgba(21,23,28,.3); margin-top: 32px; scroll-margin-top: 8px; }
.offer h2 { margin: 0 0 2px; font-size: 22px; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 6px; }
.price b { font-size: 52px; font-weight: 800; letter-spacing: -0.035em; }
.price span { font-weight: 600; }
.then { color: var(--ink-2); margin: 0 0 16px; }
.ticks { list-style: none; padding: 0; margin: 4px 0 14px; display: grid; gap: 6px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; margin-top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.addon, .consent { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--ground); cursor: pointer; margin-bottom: 10px; }
.addon input, .consent input { position: absolute; opacity: 0; pointer-events: none; }
.box { flex: none; width: 26px; height: 26px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 2px rgba(21,23,28,.25); display: grid; place-items: center; margin-top: 1px; }
.addon:has(input:checked) .box, .consent:has(input:checked) .box { background: var(--brand); box-shadow: none; }
.addon:has(input:checked) .box::after, .consent:has(input:checked) .box::after { content: ""; width: 11px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.addon:has(input:focus-visible), .consent:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
.addon b { display: block; }
.addon span, .consent span { font-size: 16px; color: var(--ink-2); }
.consent span { color: var(--ink); }
.fine { font-size: 16px; color: var(--ink-2); margin: 12px 0 0; }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; box-shadow: 0 -8px 24px -12px rgba(21,23,28,.25); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .2s ease-out; }
.buybar.on { transform: none; }
.buybar-in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.buybar-in div { flex: 1; font-weight: 700; line-height: 1.2; }
.buybar-in div span { display: block; font-weight: 400; font-size: 16px; color: var(--ink-2); }
.buybar .btn { min-height: 50px; padding: 0 20px; }
@media (min-width: 1024px) {
  .shell { max-width: 1080px; }
  .scr.split { display: grid; grid-template-columns: 1fr 480px; gap: 56px; align-items: start; padding-top: 40px; }
  .scr.split > .side { position: sticky; top: 120px; }
  .qwrap { max-width: 640px; margin: 0 auto; }
  .act-in { max-width: 640px; }
  .res.split { display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: start; }
  .res.split .offer { position: sticky; top: 100px; margin-top: 0; }
  .buybar { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* result: one number, one bar, one coach line */
.res-num { font-variant-numeric: normal; }
.res-num em { font-style: normal; color: var(--brand-ink); }
.bar { display: flex; height: 22px; border-radius: 999px; overflow: hidden; background: var(--panel); margin: 18px 0 10px; }
.bar i { display: block; height: 100%; }
.bar .b-fixed { background: #2b2f2d; } .bar .b-flex { background: #9aa19d; } .bar .b-save { background: #7cc79a; } .bar .b-leak { background: var(--brand); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 0 0 6px; font-size: 16px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend li::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.legend b { color: var(--ink); }
.coach { display: flex; gap: 10px; align-items: flex-end; margin: 22px 0 6px; }
.coach img { width: 36px; height: 36px; border-radius: 50%; flex: none; background: var(--panel); padding: 6px; }
.coach p { margin: 0; background: var(--panel); border-radius: 20px 20px 20px 6px; padding: 12px 16px; font-size: 18px; max-width: 34ch; }
.sec { margin-top: 40px; }
.chipsrow { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; list-style: none; }
.chipsrow li { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; background: var(--panel); font-weight: 600; font-size: 16px; }
.chipsrow li b { color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.offer { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.res { padding-bottom: 35vh; }
@media (min-width: 1024px) { .res { padding-bottom: 40px; } }
.paynow { position: sticky; bottom: 0; z-index: 2; background: #fff; margin: 0 -20px; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); border-radius: 0 0 24px 24px; }
.paynow .consent { margin-bottom: 8px; padding: 12px 14px; }
.paynow .err:empty { display: none; }
.hero-micro { font-size: 16px; color: var(--ink-2); margin: -8px 0 14px; }
.example { background: #fff4ee; border-radius: 20px; padding: 16px 18px; margin-top: 12px; box-shadow: inset 0 0 0 1.5px rgba(194,65,12,.25); }
.example p { margin: 0; }
.example .ex-tag { font-size: 16px; color: var(--ink-2); }
.example .ex-h { font-size: 24px; font-weight: 800; color: var(--warn); letter-spacing: -0.015em; margin: 2px 0 4px; }
body:has([data-kit-paywall]) .buybar { display: none; }
/* Plan cards (2026-11-01): yearly pre-picked beside the $4.99 week (web2app 2–3 card paywall). */
.pcards { display: grid; gap: 10px; margin: 14px 0 12px; }
.pcard { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--ground); box-shadow: inset 0 0 0 1.5px rgba(17,19,18,.12); cursor: pointer; }
.pcard input { position: absolute; opacity: 0; pointer-events: none; }
.pcard:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--brand); background: #fff; }
.pcard:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
.pc-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(17,19,18,.3); }
.pcard:has(input:checked) .pc-dot { box-shadow: inset 0 0 0 7px var(--brand); }
.pc-body { flex: 1; display: grid; gap: 2px; min-width: 0; }
.pc-tag { justify-self: start; font-size: 12px; font-weight: 700; color: #fff; background: #0b6b35; border-radius: 99px; padding: 2px 9px; margin-bottom: 2px; }
.pc-name { font-weight: 700; font-size: 17px; }
.pc-sub { font-size: 13px; color: var(--muted, #5b625e); }
.pc-price { text-align: right; display: grid; }
.pc-price b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.pc-price span { font-size: 12px; color: var(--muted, #5b625e); }

/* the working behind the leak number (profile screen) */
.work { width: 100%; border-collapse: collapse; margin: 14px 0 8px; font-size: 16px; }
.work caption { text-align: left; color: var(--ink-2); font-size: 14px; padding-bottom: 6px; }
.work th { text-align: left; font-weight: 500; padding: 7px 0; color: var(--ink-2); }
.work td { text-align: right; font-weight: 600; padding: 7px 0 7px 12px; white-space: nowrap; }
.work tr + tr th, .work tr + tr td { border-top: 1px solid rgba(17,19,18,.08); }
.work tr.tot th, .work tr.tot td { color: var(--ink); font-weight: 750; border-top: 2px solid var(--ink); }
.hero-micro.who { font-size: 14px; margin-top: -6px; }
/* Next version (pre-registered 2026-11-02): the safety net beside the button, small so the sticky pay block stays short. */
.safe { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; line-height: 1.35; color: var(--muted, #4a4f4c); }
.safe li { display: flex; align-items: center; gap: 5px; }
.safe li::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.field textarea { width: 100%; min-height: 120px; font: 500 18px var(--font); padding: 14px 16px; border-radius: var(--r-field); border: 0; background: var(--tile); box-shadow: inset 0 0 0 1.5px rgba(21,23,28,.16); color: var(--ink); resize: vertical; }
.field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand); }
