/* Weekfund v2: warm, friendly, accessible. Nunito via Google Fonts with system fallbacks. */
:root {
  --font: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bg: #f4faf7; --bg2: #e9f5f0; --card: #ffffff; --ink: #15302b; --ink2: #47615b; --line: #dcebe5;
  --brand: #1f9d86; --brand-strong: #127a66; --brand-ink: #0f6e5d; --brand-soft: #def4ed; --coral: #ff7f5c; --coral-soft: #ffe8e0; --sun: #ffc23d; --sun-soft: #fff3d1; --sky: #4f8ef0; --sky-soft: #e3edff;
  --good: #157a4c; --good-soft: #e1f5ea; --warn: #94570a; --warn-soft: #fff1d6; --bad: #c43535; --bad-soft: #fde6e6;
  --shadow: 0 1px 2px rgba(20, 60, 50, .06), 0 6px 20px rgba(20, 60, 50, .07); --shadow-lg: 0 12px 40px rgba(20, 60, 50, .16);
  --r: 20px; --r-sm: 12px; --nav-h: 68px;
  color-scheme: light;
}
[data-theme='dark'] {
  --bg: #0d1b19; --bg2: #12241f; --card: #162b27; --ink: #e7f4ef; --ink2: #a9c4bc; --line: #24413b;
  --brand: #3cc8aa; --brand-strong: #3cc8aa; --brand-ink: #7fe0c8; --brand-soft: #173d35; --coral: #ff9a7d; --coral-soft: #3d2620; --sun: #ffd36b; --sun-soft: #3a3020; --sky: #7eaaf5; --sky-soft: #1d2b44;
  --good: #4fd18f; --good-soft: #163a2a; --warn: #ffbf4d; --warn-soft: #3a2d14; --bad: #ff7b7b; --bad-soft: #3d1d1f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); --shadow-lg: 0 16px 48px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body { background-image: radial-gradient(1200px 500px at 100% -10%, var(--brand-soft), transparent 60%), radial-gradient(900px 400px at -10% 0%, var(--sun-soft), transparent 55%); background-attachment: fixed; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); } h2 { font-size: 1.15rem; display: flex; align-items: center; gap: .45em; } h3 { font-size: 1rem; margin-top: 1.1em; } h4 { font-size: .95rem; margin: .9em 0 .3em; }
p { margin: .4em 0 .8em; }
a { color: var(--brand-ink); }
.ic { flex: none; vertical-align: -.2em; }
.muted { color: var(--ink2); } .small, small { font-size: .85rem; } .pos { color: var(--good); } .neg { color: var(--bad); }
.loading { padding: 3rem; text-align: center; color: var(--ink2); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--card); padding: .5em 1em; border-radius: 8px; }
.skip:focus { left: 8px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topin { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: .55rem 1rem; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 900; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.wordmark { letter-spacing: -.01em; } .wordmark .wm-fund { color: var(--brand); }
.topnav { display: flex; gap: .2rem; margin-left: 1rem; flex: 1; }
.topnav a { display: flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border-radius: 999px; color: var(--ink2); text-decoration: none; font-weight: 700; transition: background .15s, color .15s; }
.topnav a:hover { background: var(--bg2); color: var(--ink); } .topnav a.on { background: var(--brand-soft); color: var(--brand-ink); }
.topact { display: flex; gap: .3rem; margin-left: auto; }
.iconbtn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--ink2); cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; flex: none; }
.iconbtn:hover, .iconbtn.on { background: var(--bg2); color: var(--ink); } .iconbtn:active { transform: scale(.94); }
.dotcount { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--coral); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; animation: pop .4s ease; }
.flip { display: inline-grid; transform: rotate(180deg); }

.banner { max-width: 1180px; margin: .8rem auto 0; padding: .6rem 1rem; background: var(--sun-soft); border-radius: var(--r-sm); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; width: calc(100% - 2rem); }
.flash { max-width: 1180px; width: calc(100% - 2rem); margin: .8rem auto 0; padding: .7rem 1rem; background: var(--good-soft); color: var(--good); font-weight: 700; border-radius: var(--r-sm); animation: slidein .35s ease; }
.page { max-width: 1180px; margin: 0 auto; padding: 1.2rem 1rem 7rem; outline: none; animation: fadein .3s ease; }
.page-head { margin: .4rem 0 1rem; } .page-head p { margin: 0; }
.section-title { margin: 1.2rem 0 .6rem; }

/* cards & layout */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.2rem 1.3rem; margin-bottom: 1rem; border: 1px solid var(--line); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; flex-wrap: wrap; } .card-head h2 { margin: 0; }
.card.hl { border: 2px solid var(--sun); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .two > .card { margin: 0; } .two + * { margin-top: 1rem; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1rem; align-items: start; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: end; margin-top: .6rem; }
.btns { display: flex; gap: .4rem; flex-wrap: wrap; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; border: 0; padding: 1.5rem 1.6rem; background: linear-gradient(135deg, #13876f, #0e5f52); }
.hero.amber { background: linear-gradient(135deg, #b45f00, #8f4400); } .hero.red { background: linear-gradient(135deg, #c9393f, #9e2436); }
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; position: relative; z-index: 1; }
.hero .label { font-weight: 800; opacity: .95; }
.status-pill { background: rgba(255, 255, 255, .22); padding: .25rem .7rem; border-radius: 999px; font-weight: 800; font-size: .85rem; }
.hero .big { font-size: clamp(2.8rem, 8vw, 4.2rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; margin: .2rem 0; font-variant-numeric: tabular-nums; animation: rise .5s cubic-bezier(.2, .9, .3, 1.2); position: relative; z-index: 1; }
.encourage { font-weight: 700; font-size: 1.05rem; margin: .2rem 0 .8rem; position: relative; z-index: 1; }
.spentbar { height: 10px; background: rgba(255, 255, 255, .25); border-radius: 99px; overflow: hidden; position: relative; z-index: 1; } .spentbar div { height: 100%; background: #fff; border-radius: 99px; transition: width .6s ease; }
.hero-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .7rem; font-weight: 600; font-size: .92rem; opacity: .95; position: relative; z-index: 1; } .hero-meta span { display: flex; gap: .35rem; align-items: center; }
.math { margin-top: .8rem; position: relative; z-index: 1; } .math summary { cursor: pointer; font-weight: 700; opacity: .95; }
.mathtable { width: 100%; margin-top: .5rem; border-collapse: collapse; background: rgba(0, 0, 0, .12); border-radius: 12px; overflow: hidden; font-size: .92rem; }
.mathtable td { padding: .35rem .7rem; } .mathtable td:last-child { text-align: right; font-variant-numeric: tabular-nums; } .mathtable .sum td { font-weight: 800; border-top: 1px solid rgba(255, 255, 255, .3); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1rem; } .stats.three { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: .15rem; transition: transform .15s, box-shadow .15s; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat.inline { display: inline-flex; box-shadow: none; background: var(--bg2); margin-bottom: .8rem; }
.stat b { font-size: 1.45rem; font-weight: 900; font-variant-numeric: tabular-nums; } .stat small { color: var(--ink2); } .stat-l { font-size: .82rem; font-weight: 700; color: var(--ink2); }
.stat-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; margin-bottom: .3rem; }
.stat-ic.coral { background: var(--coral-soft); color: var(--coral); } .stat-ic.mint { background: var(--brand-soft); color: var(--brand); } .stat-ic.sun { background: var(--sun-soft); color: var(--warn); } .stat-ic.sky { background: var(--sky-soft); color: var(--sky); }

/* lists */
.list { list-style: none; padding: 0; margin: .3rem 0; }
.list li { display: flex; align-items: center; gap: .7rem; padding: .65rem .2rem; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; } .list li > span:not(.li-ic):not(.pill) { flex: 1; min-width: 0; } .list li small { display: block; color: var(--ink2); }
.list li b { font-variant-numeric: tabular-nums; white-space: nowrap; } .list li.hl { background: var(--sun-soft); border-radius: 12px; padding: .65rem .6rem; }
.li-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.li-ic.bad { background: var(--bad-soft); color: var(--bad); } .li-ic.warn { background: var(--warn-soft); color: var(--warn); }
.list.tx li { flex-wrap: wrap; }
.tight { margin: .3rem 0; padding-left: 1.2rem; } .tight li { margin: .2rem 0; }

/* buttons & forms */
.btn { font: inherit; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .62rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; transition: transform .1s, background .15s, box-shadow .15s, border-color .15s; min-height: 44px; }
.btn:hover { border-color: var(--brand); } .btn:active { transform: scale(.97); } .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 35%, transparent); } .btn.primary:hover { background: var(--brand-ink); }
[data-theme='dark'] .btn.primary { color: #06201b; }
.btn.ghost { background: transparent; } .btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn.small { padding: .38rem .8rem; min-height: 36px; font-size: .88rem; } .btn.big { padding: .85rem 1.4rem; font-size: 1.05rem; } .btn.wide { width: 100%; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-ink); font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: .25rem; }
.filebtn { position: relative; overflow: hidden; } .filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem 1rem; align-items: end; } .grid .span, .grid fieldset { grid-column: 1 / -1; }
.grid.inline { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .3rem; font-weight: 700; font-size: .9rem; } .field .hint { font-weight: 500; color: var(--ink2); font-size: .78rem; }
input, select, textarea { font: inherit; font-weight: 600; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: .6rem .75rem; min-height: 44px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
textarea { width: 100%; font-family: ui-monospace, monospace; font-size: .85rem; }
fieldset { border: 0; padding: 0; margin: 0; } legend { font-weight: 800; font-size: .9rem; margin-bottom: .4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .3rem 0; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .85rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; font-size: .88rem; cursor: pointer; transition: all .15s; color: var(--ink); font-family: inherit; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; } .chip:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); } .chip:has(input:focus-visible) { outline: 3px solid var(--sun); }
.chip.static { cursor: default; padding: .2rem .6rem; font-size: .8rem; }
.toggles { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; } .toggles.col { flex-direction: column; margin-bottom: 1rem; }
.toggle { display: flex; align-items: center; gap: .55rem; font-weight: 700; cursor: pointer; }
.toggle input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; min-height: 0; padding: 0; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; flex: none; border: 0; transition: background .2s; }
.toggle input::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.toggle input:checked { background: var(--brand); } .toggle input:checked::after { transform: translateX(18px); }
.pill { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--bg2); font-size: .78rem; font-weight: 800; color: var(--ink2); white-space: nowrap; }
.pillsel { width: auto; min-height: 32px; padding: .2rem .5rem; font-size: .8rem; border-radius: 999px; background: var(--bg2); }
.badge { display: inline-flex; align-items: center; gap: .2rem; padding: .12rem .55rem; border-radius: 999px; background: var(--bg2); color: var(--ink2); font-size: .74rem; font-weight: 800; margin: .15rem .25rem .15rem 0; vertical-align: middle; }
.badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.good { background: var(--good-soft); color: var(--good); } .badge.ok { background: var(--brand-soft); color: var(--brand-ink); }
.warnbox, .infobox, .goodbox { display: flex; gap: .55rem; align-items: flex-start; padding: .75rem 1rem; border-radius: var(--r-sm); margin: .6rem 0; font-weight: 600; }
.warnbox { background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 75%, var(--ink)); } .infobox { background: var(--sky-soft); margin-bottom: 1rem; } .goodbox { background: var(--good-soft); color: color-mix(in srgb, var(--good) 70%, var(--ink)); }
.infobox .ic { color: var(--sky); margin-top: .15rem; }
.src { font-size: .78rem; font-weight: 800; white-space: nowrap; }
kbd { display: inline-block; min-width: 1.6em; padding: .05em .45em; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 3px; background: var(--bg2); font: 800 .8rem var(--font); text-align: center; }
.kbd { list-style: none; padding: 0; } .kbd li { padding: .35rem 0; display: flex; gap: .8rem; align-items: center; } .kbd kbd { min-width: 4.2em; }

/* bars, rings, charts */
.bar { height: 8px; background: var(--bg2); border-radius: 99px; overflow: hidden; margin: .35rem 0; } .bar div { height: 100%; background: var(--brand); border-radius: 99px; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.bar.good div { background: var(--good); } .bar.mid div { background: var(--sun); } .bar.low div { background: var(--coral); }
.ring text { fill: var(--ink); } .health-row { display: flex; gap: 1rem; align-items: center; } .parts { list-style: none; padding: 0; margin: 0; flex: 1; font-size: .82rem; }
.parts li { display: grid; grid-template-columns: 1fr auto; column-gap: .4rem; margin-bottom: .2rem; } .parts .bar { grid-column: 1 / -1; height: 5px; margin: .1rem 0 .25rem; }
.donut { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; } .dlabel { font: 900 15px var(--font); fill: var(--ink); } .dsub { font: 700 10px var(--font); fill: var(--ink2); }
.legend { list-style: none; padding: 0; margin: 0; font-size: .85rem; flex: 1; min-width: 140px; } .legend li { display: flex; gap: .4rem; align-items: center; padding: .12rem 0; } .legend b { margin-left: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.bars, .linechart { width: 100%; height: auto; } .linechart { max-width: 620px; display: block; margin: 0 auto; } .bar-now { fill: var(--brand); } .bar-past { fill: color-mix(in srgb, var(--brand) 30%, var(--bg2)); } .blabel { font: 700 9px var(--font); fill: var(--ink2); } .bval { font: 800 9px var(--font); fill: var(--ink); }
.linechart .grid { stroke: var(--line); stroke-dasharray: 3 3; } .ln { stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; } .ln.contrib { stroke: var(--ink2); stroke-dasharray: 5 4; stroke-width: 2; } .ln.low { stroke: var(--sky); } .ln.mid { stroke: var(--brand); } .ln.high { stroke: var(--coral); }
.empty { text-align: center; padding: 1.4rem 1rem; color: var(--ink2); } .empty-emoji { font-size: 2.2rem; animation: bob 3s ease-in-out infinite; } .empty-title { font-weight: 800; color: var(--ink); font-size: 1.05rem; margin: .3rem 0; } .empty p { margin: .2rem auto .8rem; max-width: 380px; } .empty.small { padding: .8rem; }

/* segmented control */
.seg { display: flex; gap: .3rem; overflow-x: auto; padding: .3rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 1rem; box-shadow: var(--shadow); scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { font: inherit; font-weight: 800; border: 0; background: transparent; color: var(--ink2); padding: .5rem .9rem; border-radius: 999px; cursor: pointer; white-space: nowrap; display: flex; gap: .35rem; align-items: center; transition: background .15s, color .15s; min-height: 40px; }
.seg button.on { background: var(--brand-strong); color: #fff; } [data-theme='dark'] .seg button.on { color: #06201b; } .seg button:not(.on):hover { background: var(--bg2); }

/* alerts */
.alist { list-style: none; padding: 0; margin: 0; } .alist li { border-left: 4px solid var(--brand); padding: .45rem .7rem; margin-bottom: .5rem; background: var(--bg2); border-radius: 0 12px 12px 0; } .alist a { text-decoration: none; color: inherit; } .alist small { display: block; color: var(--ink2); } .alist li.read { opacity: .7; }
.alerts { list-style: none; padding: 0; margin: 0; }
.alert { display: flex; gap: .8rem; padding: .9rem; border-radius: 16px; margin-bottom: .6rem; background: var(--bg2); border-left: 5px solid var(--brand); animation: slidein .3s ease both; }
.alist .sev-warn, .alert.sev-warn { border-left-color: var(--warn); } .alist .sev-alert, .alert.sev-alert { border-left-color: var(--bad); } .alist .sev-good, .alert.sev-good { border-left-color: var(--good); }
.alert.unread { background: var(--card); box-shadow: var(--shadow); } .alert.read { opacity: .78; }
.al-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.sev-warn .al-ic { background: var(--warn-soft); color: var(--warn); } .sev-alert .al-ic { background: var(--bad-soft); color: var(--bad); } .sev-good .al-ic { background: var(--good-soft); color: var(--good); }
.al-body { flex: 1; min-width: 0; } .al-body p { margin: .15rem 0; } .tip { font-size: .88rem; color: var(--ink2); background: var(--sun-soft); padding: .35rem .6rem; border-radius: 10px; display: inline-flex; gap: .35rem; align-items: flex-start; }
[data-theme='dark'] .tip { color: var(--ink); }
.al-act { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; font-size: .88rem; }
.coach p:first-of-type { font-size: 1.05rem; font-weight: 600; }

/* plan */
.methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.method { text-align: left; font: inherit; background: var(--bg); border: 2px solid var(--line); border-radius: 16px; padding: .8rem; cursor: pointer; color: var(--ink); transition: all .15s; } .method b { display: block; } .method small { color: var(--ink2); }
.method.on { border-color: var(--brand); background: var(--brand-soft); } .method:hover { transform: translateY(-2px); }
.method-row { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; margin: .9rem 0; } .method-row small { display: block; } .method-row .bar { grid-column: 1 / -1; height: 12px; } .method-num { font-weight: 900; font-size: 1.2rem; text-align: right; }
.envelopes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem; } .env { background: var(--bg); border-radius: 14px; padding: .7rem; border: 1px solid var(--line); } .env-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; } .env-head input { width: 90px; min-height: 36px; padding: .3rem .5rem; }
.paychecks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; } .paycheck { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: .8rem; } .paycheck.neg { border-color: var(--bad); }
.pc-head { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: .3rem; } .paycheck li { display: flex; gap: .4rem; } .paycheck li b { margin-left: auto; } .paycheck li span { color: var(--ink2); font-size: .8rem; } .pc-left { border-top: 1px dashed var(--line); padding-top: .4rem; margin-top: .4rem; display: flex; justify-content: space-between; }
.plan-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: .8rem 0; }
.plan-col { background: var(--bg); border: 2px solid var(--line); border-radius: 18px; padding: 1rem; } .plan-col.snowball { border-color: color-mix(in srgb, var(--sky) 50%, var(--line)); } .plan-col.avalanche { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); } .plan-col.chosen { box-shadow: 0 0 0 3px var(--brand-soft); border-color: var(--brand); }
.plan-col h3 { margin-top: 0; font-size: .95rem; } .plan-big { font-size: 1.6rem; font-weight: 900; } .plan-line { margin: .3rem 0; } .plan-line.good { color: var(--good); font-weight: 700; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; } .cdow { font-size: .75rem; font-weight: 800; color: var(--ink2); text-align: center; padding: .2rem; }
.cday { min-height: 86px; background: var(--bg); border-radius: 10px; padding: .3rem; display: flex; flex-direction: column; gap: 2px; overflow: hidden; border: 1px solid var(--line); } .cday.off { background: transparent; border: 0; } .cday.today { border: 2px solid var(--brand); }
.cnum { font-size: .78rem; font-weight: 800; color: var(--ink2); }
.cev { font-size: .68rem; font-weight: 800; border-radius: 6px; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--coral-soft); color: color-mix(in srgb, var(--coral) 70%, var(--ink)); } .cev.payday { background: var(--good-soft); color: var(--good); } .cev.goal { background: var(--sky-soft); color: var(--sky); }
.legend-row { display: flex; gap: .6rem; margin: .7rem 0; } .legend-row .cev { font-size: .8rem; padding: .15rem .5rem; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; } .table th, .table td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; } .table th { font-weight: 800; color: var(--ink2); font-size: .8rem; } .table .r { text-align: right; font-variant-numeric: tabular-nums; }
.table.small { font-size: .82rem; } .tablewrap { overflow-x: auto; } .paidrow { color: var(--good); } .laterow { color: var(--bad); }
.table.compare th:first-child { width: 150px; } .table.compare td { min-width: 180px; }
.printonly { display: none; }

/* grow */
.budgetstrip { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; background: linear-gradient(120deg, var(--sun-soft), var(--card)); } .budgetstrip b { display: block; font-size: 1.5rem; font-weight: 900; } .budgetstrip small { color: var(--ink2); }
.strats { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.strat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .3rem; transition: transform .15s; } .strat:hover { transform: translateY(-2px); } .strat.chosen { border: 2px solid var(--brand); }
.strat-head { display: flex; gap: .7rem; } .strat-head h3 { margin: 0 0 .25rem; font-size: 1.02rem; } .strat-ic { font-size: 1.6rem; width: 48px; height: 48px; display: grid; place-items: center; background: var(--bg2); border-radius: 14px; flex: none; } .why { display: block; color: var(--brand-ink); font-weight: 700; margin-top: .2rem; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: .5rem 0; } .facts div { background: var(--bg); border-radius: 10px; padding: .4rem .5rem; } .facts dt { font-size: .7rem; font-weight: 800; color: var(--ink2); } .facts dd { margin: 0; font-weight: 800; font-size: .88rem; } .facts dd small { font-weight: 600; color: var(--ink2); font-size: .7rem; }
.earn { font-size: .9rem; } .strat details { font-size: .9rem; } .strat summary { cursor: pointer; font-weight: 800; color: var(--brand-ink); } .strat .row { margin-top: auto; padding-top: .5rem; }
.dots { display: inline-flex; gap: 3px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); } .dots i.on { background: var(--coral); }
.aitext { white-space: pre-wrap; }

/* goals */
.goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .8rem; margin: .8rem 0; }
.goal { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: .9rem; } .goal-head { display: flex; gap: .5rem; align-items: center; } .goal-head .pill { margin-left: auto; } .goal-ic { font-size: 1.4rem; } .goal-num { font-weight: 900; font-size: 1.3rem; margin-top: .3rem; } .goal-num small { font-weight: 600; color: var(--ink2); }
.mini { display: flex; gap: .4rem; flex: 1; } .mini input { min-height: 36px; padding: .3rem .6rem; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; } .filters select { width: auto; flex: 0 1 220px; }
.search { position: relative; flex: 1 1 260px; display: flex; align-items: center; } .search .ic { position: absolute; left: .75rem; color: var(--ink2); } .search input { padding-left: 2.4rem; }

/* invest & lend */
.checklist { list-style: none; padding: 0; } .checklist li { display: flex; gap: .7rem; padding: .55rem 0; align-items: flex-start; } .checklist small { display: block; color: var(--ink2); }
.ck { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; color: #fff; } .checklist li.done .ck { background: var(--good); border-color: var(--good); animation: pop .4s ease; }
.scen { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: .8rem 0; } .scen-col { background: var(--bg); border-radius: 14px; padding: .6rem .7rem; border-top: 4px solid var(--brand); } .scen-col b { display: block; font-size: 1.25rem; font-weight: 900; } .scen-col small { color: var(--ink2); display: block; }
.scen-col.low { border-color: var(--sky); } .scen-col.high { border-color: var(--coral); } .scen-col.contrib { border-color: var(--ink2); }
.explain { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; } .explain details { background: var(--bg); border-radius: 12px; padding: .6rem .8rem; border: 1px solid var(--line); } .explain summary { font-weight: 800; cursor: pointer; }
.loans { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .8rem; }
.loan { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; border-left: 5px solid var(--brand); } .loan.bad { border-left-color: var(--bad); } .loan.good { border-left-color: var(--good); }
.loan-head { display: flex; gap: .6rem; align-items: center; } .loan-head small { display: block; color: var(--ink2); } .loan-head .badge { margin-left: auto; } .loan-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--sky-soft); color: var(--sky); display: grid; place-items: center; flex: none; }
.loan .facts { grid-template-columns: repeat(2, 1fr); } .loan .facts div { background: var(--card); }
.preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; } .preview div { background: var(--bg2); border-radius: 12px; padding: .5rem .7rem; } .preview small { display: block; color: var(--ink2); font-weight: 700; } .preview b { font-size: 1.1rem; }
.agreement { white-space: pre-wrap; font-family: ui-monospace, Menlo, monospace; font-size: .82rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; max-height: 50vh; overflow: auto; }
.qr { width: 200px; margin: .5rem auto; background: #fff; padding: 8px; border-radius: 12px; } .qr svg { width: 100%; height: auto; display: block; }

/* FAB, bottom nav, modal, toast */
.fab { position: fixed; right: 1.4rem; bottom: 1.4rem; width: 62px; height: 62px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #e8552f, #d63a62); color: #fff; box-shadow: 0 10px 28px rgba(255, 110, 100, .45); cursor: pointer; display: grid; place-items: center; z-index: 30; transition: transform .15s; animation: pop .5s ease .2s both; }
.fab:hover { transform: scale(1.06) rotate(90deg); } .fab:active { transform: scale(.95); }
.bottomnav { display: none; }
#overlay { position: relative; z-index: 50; }
.modal-back { position: fixed; inset: 0; background: rgba(8, 25, 21, .45); backdrop-filter: blur(3px); animation: fadein .2s ease; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(620px, calc(100vw - 1.5rem)); max-height: calc(100vh - 2rem); overflow: auto; background: var(--card); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 1.2rem 1.3rem 1.4rem; animation: modalin .28s cubic-bezier(.2, .9, .3, 1.1); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; } .modal-head h2 { margin: 0; }
.quick { display: flex; flex-direction: column; gap: .8rem; }
.amount-big { display: flex; align-items: center; gap: .3rem; background: var(--bg2); border-radius: 18px; padding: .4rem 1rem; } .amount-big span { font-size: 2rem; font-weight: 900; color: var(--ink2); } .amount-big input { font-size: 2.2rem; font-weight: 900; border: 0; background: transparent; padding: .2rem 0; box-shadow: none !important; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: .75rem 1.1rem; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 700; display: flex; gap: .8rem; align-items: center; animation: toastin .3s ease; max-width: calc(100vw - 2rem); z-index: 60; } .toast .link { color: var(--sun); }

/* welcome & onboarding */
.bare { min-height: 100vh; padding: 1rem; }
.welcome { max-width: 1120px; margin: 0 auto; animation: fadein .5s ease; }
.welcome-top { display: flex; align-items: center; gap: .5rem; font-size: 1.3rem; padding: .5rem 0 1.5rem; } .welcome-top svg { width: 38px; height: 38px; }
.welcome-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center; }
.eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; margin-bottom: .8rem; }
.welcome h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; } .lead { font-size: 1.12rem; color: var(--ink2); max-width: 560px; }
.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.4rem 0 .5rem; }
.welcome-art { position: relative; min-height: 340px; }
.phone-card { position: absolute; inset: 10px 30px auto 10px; border-radius: 28px; padding: 1.5rem; color: #fff; background: linear-gradient(135deg, #13876f, #0e5f52); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: .3rem; transform: rotate(-3deg); animation: floaty 6s ease-in-out infinite; }
.phone-card .num { font-size: 3.4rem; font-weight: 900; letter-spacing: -.03em; } .phone-card .label { font-weight: 800; } .phone-card .msg { font-weight: 700; }
.phone-mini { position: absolute; background: var(--card); border-radius: 16px; padding: .8rem 1rem; box-shadow: var(--shadow-lg); display: flex; gap: 1rem; justify-content: space-between; align-items: center; font-weight: 700; right: 0; top: 215px; width: 260px; animation: floaty 7s ease-in-out infinite reverse; border: 1px solid var(--line); }
.phone-mini span { display: flex; align-items: center; gap: .4rem; } .phone-mini.coral { top: 285px; right: 60px; } .phone-mini.coral b { color: var(--coral); }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2.5rem 0 1rem; }
.feat { background: var(--card); border-radius: var(--r); padding: 1.1rem; box-shadow: var(--shadow); border: 1px solid var(--line); } .feat p { color: var(--ink2); margin: .3rem 0 0; font-size: .92rem; } .feat-ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--brand-soft); color: var(--brand); margin-bottom: .5rem; }
.feat:nth-child(2) .feat-ic { background: var(--coral-soft); color: var(--coral); } .feat:nth-child(3) .feat-ic { background: var(--sun-soft); color: var(--warn); } .feat:nth-child(4) .feat-ic { background: var(--sky-soft); color: var(--sky); }
.onboard { max-width: 720px; margin: 1rem auto; padding: 1.6rem; animation: rise .4s ease; }
.ob-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.steps { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; } .steps li { display: flex; align-items: center; gap: .4rem; font-weight: 800; color: var(--ink2); font-size: .88rem; padding: .3rem .7rem .3rem .3rem; border-radius: 999px; background: var(--bg2); }
.steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--card); font-size: .8rem; } .steps li.on { background: var(--brand-soft); color: var(--brand-ink); } .steps li.on span { background: var(--brand); color: #fff; } .steps li.done span { background: var(--good); color: #fff; }
.ob-nav { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: .6rem; margin-top: 1rem; }

/* animations */
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes modalin { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* responsive */
@media (max-width: 1020px) { .dash { grid-template-columns: 1fr; } .methods { grid-template-columns: 1fr 1fr; } .topnav span { display: none; } .topnav a { padding: .55rem; } }
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .topnav { display: none; } .topin { padding: .45rem .8rem; }
  .bottomnav { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: .3rem .2rem calc(.3rem + env(safe-area-inset-bottom)); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: .68rem; font-weight: 800; color: var(--ink2); text-decoration: none; padding: .3rem 0; border-radius: 12px; }
  .bottomnav a.on { color: var(--brand-ink); background: var(--brand-soft); }
  .fab { bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom)); right: 1rem; width: 58px; height: 58px; }
  .toast { bottom: calc(var(--nav-h) + 86px); }
  .page { padding: .9rem .75rem 10rem; } .card { padding: 1rem; border-radius: 18px; }
  .two, .welcome-hero, .plan-cols, .explain { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } .stats.three { grid-template-columns: 1fr 1fr; } .scen, .preview { grid-template-columns: 1fr 1fr; } .feat-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; } .welcome-art { min-height: 300px; } .strats, .loans { grid-template-columns: 1fr; }
  .cday { min-height: 58px; } .cev { font-size: .58rem; } .modal { top: auto; bottom: 0; transform: translateX(-50%); width: 100vw; border-radius: 24px 24px 0 0; max-height: 92vh; animation: sheetin .3s ease; }
  .hero { padding: 1.2rem; } .health-row { flex-direction: column; align-items: stretch; } .health-row svg { align-self: center; }
}
@keyframes sheetin { from { transform: translate(-50%, 30%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* print: monthly report and loan agreement print cleanly */
@media print {
  body { background: #fff !important; color: #000; } .topbar, .bottomnav, .fab, .banner, .seg, .noprint, .toast, .page-head, .flash { display: none !important; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; } .printonly { display: block; } .page { padding: 0; }
  body:not(.print-modal) #overlay { display: none; }
  body.print-modal #app { display: none; } body.print-modal .modal { position: static; transform: none; box-shadow: none; width: auto; max-height: none; } body.print-modal .modal-back, body.print-modal .modal-head button, body.print-modal .row, body.print-modal .warnbox { display: none; } body.print-modal .agreement { max-height: none; border: 0; font-size: 11pt; }
}
.legal summary { cursor: pointer; list-style: none; } .legal summary h2 { display: inline-flex; margin: 0; } .legal summary::-webkit-details-marker { display: none; } .legal summary::after { content: ' +'; font-weight: 900; color: var(--brand-ink); } .legal details[open] summary::after { content: ' -'; }
@media (max-width: 760px) { .banner { font-size: .86rem; padding: .5rem .8rem; } }

/* ---------- pricing ---------- */
.page-pricing .page-head h1, .bare .page-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; margin: .2rem 0 .5rem; }
.bare .page-head, .bare .plans, .bare > .card, .bare .founding { max-width: 980px; margin-left: auto; margin-right: auto; }
.founding { background: linear-gradient(135deg, var(--sun-soft), var(--brand-soft)); border-color: color-mix(in srgb, var(--sun) 45%, transparent); }
.founding h2 { margin: .5rem 0 .3rem; } .founding-badge { display: inline-flex; gap: .35rem; align-items: center; background: var(--sun); color: #3a2a00; font-weight: 800; border-radius: 999px; padding: .25rem .75rem; font-size: .85rem; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; } .plans .card { margin: 0; position: relative; }
.plan-card .price { display: flex; align-items: baseline; gap: .35rem; margin: .2rem 0 .4rem; } .plan-card .price b { font-size: 2.4rem; font-weight: 900; letter-spacing: -.02em; } .plan-card .price span { color: var(--ink2); }
.plan-card.plus { border: 2px solid var(--brand); } .plan-card .tag { position: absolute; top: -.75rem; right: 1rem; background: var(--brand-strong); color: #fff; font-weight: 800; font-size: .8rem; border-radius: 999px; padding: .2rem .7rem; }
.ticks { list-style: none; padding: 0; margin: .6rem 0 1rem; display: grid; gap: .45rem; } .ticks li { display: flex; gap: .5rem; align-items: flex-start; } .ticks .ic { color: var(--brand); flex: none; margin-top: .15rem; }
.copyrow { display: flex; gap: .5rem; } .copyrow input { flex: 1; min-width: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
details { border-top: 1px solid var(--line); padding: .6rem 0; } details summary { cursor: pointer; font-weight: 700; } details p { margin: .5rem 0 0; color: var(--ink2); }
.ic.flip { transform: rotate(180deg); } .brand-link { display: inline-flex; align-items: center; gap: .3rem; font-size: 1rem; font-weight: 700; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; gap: 1.4rem; } .copyrow { flex-direction: column; } }
p.good { color: var(--good); font-weight: 700; } p.warn { color: var(--warn); font-weight: 700; }
