@font-face{font-family:Manrope;font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/manrope-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:Manrope;font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/manrope-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:Manrope;font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/manrope-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:Manrope;font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/manrope-latin-800-normal.woff2) format('woff2')}
/* VOICE: calm, plain-spoken money tool for people near or in retirement; large readable type.
   IDEA: enough is not a number in the bank but the shape of the rest of your life, told in chapters.
   PICTURE: the life curve itself - savings rising, peaking and running down by design - with the chapters marked on it.
   COLOUR and TYPE: white / ink #101418, one warm yellow slab for the answer, slate; Manrope throughout.
   LAYOUT: answer and curve first, then your chapters in one calm column; two columns above 980px. */
:root{color-scheme:light dark;--bg:light-dark(#ffffff,#101418);--ink:light-dark(#101418,#eef1f3);--muted:light-dark(#4f5a64,#a9b3bc);--line:light-dark(#e3e7ea,#262d34);--field:light-dark(#f5f7f8,#182027);--band:light-dark(#f4f6f8,#161d24);--slab:#ffd84a;--slabink:#101418;--s1:light-dark(#2a78d6,#3987e5);--s2:light-dark(#eb6834,#d95926)}
:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark}
*{box-sizing:border-box;min-width:0}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.55 Manrope,system-ui,sans-serif;overflow-x:clip}
.band{padding:clamp(24px,4vw,56px) max(5vw,16px);max-width:1240px;margin:0 auto}
h1{font-size:clamp(32px,5vw,48px);line-height:1.05;margin:0 0 10px;font-weight:800}
h2{font-size:22px;margin:0 0 4px;font-weight:700}
h3{font-size:18px;margin:0 0 6px;font-weight:700}
p{margin:0 0 12px}
a{color:var(--s1)}
.lede{max-width:64ch;font-size:18px}
.lede+.lede{color:var(--muted);font-size:17px}
.wrap{display:grid;gap:clamp(24px,4vw,48px);grid-template-columns:minmax(0,1fr)}
.intro{margin-bottom:28px}
.sum{margin-top:22px}
table.al{table-layout:fixed}table.al col.c1{width:44%}table.al col.c2{width:16%}table.al col.c3,table.al col.c4{width:20%}.sum tr.total td{border-top:2px solid var(--ink)}
.mbar{position:fixed;left:10px;right:10px;bottom:10px;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--slab);color:var(--slabink);border-radius:8px;padding:10px 14px;text-decoration:none;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:15px;line-height:1.3}
.mbar b{font-size:22px;font-weight:800}.mbar small{display:block;font-size:13px;opacity:.8}.mbar .go{font-weight:700;white-space:nowrap}
@media(min-width:980px){.mbar{display:none!important}}
@media(max-width:979px){body{padding-bottom:84px}}
@media(max-width:979px){.apane{border-top:2px solid var(--ink);padding-top:24px}}
@media(min-width:980px){html:has(body.tool),body.tool{height:100%;overflow:hidden}.band{padding-block:0;height:100vh}.wrap{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);height:100%}
 .qpane,.apane{overflow-y:auto;overscroll-behavior:contain}.qpane{padding:clamp(24px,3vw,48px) 14px clamp(24px,3vw,48px) 4px}.apane{padding:0 14px clamp(24px,3vw,48px) 4px}
 .pin{position:sticky;top:0;z-index:2;background:var(--bg);padding-top:clamp(24px,3vw,48px);padding-bottom:16px}.pin .big{font-size:clamp(40px,4.5vw,60px)}.pin .slab{padding:20px 24px}}
.slab{background:var(--slab);color:var(--slabink);border-radius:6px;padding:clamp(20px,3vw,30px)}
.slab .k{font-size:17px;font-weight:500;margin:0 0 6px}
.big{font-size:clamp(42px,7.5vw,72px);font-weight:800;line-height:1;letter-spacing:-.02em;white-space:nowrap}
.slab p{font-size:18px;margin:10px 0 0;max-width:50ch}
.blk{margin-top:22px;border-top:1px solid var(--line);padding-top:16px}
.sum h3{margin-bottom:4px}.sum table{font-size:16px}.sum td{padding:6px 0;vertical-align:top}.sum .ev{display:block;font-size:14px;color:var(--muted)}
.cash{margin-top:14px;border:2px solid var(--ink);border-radius:6px;padding:14px 16px}
.cash p:last-child{margin-bottom:0}.cash ul{margin:6px 0 0;padding-left:20px}.cash li{margin:4px 0}
.ahead{border-color:var(--s1)}
.money,b{white-space:nowrap}
table{border-collapse:collapse;width:100%;font-size:16px}td,th{padding:7px 6px;border-bottom:1px solid var(--line);text-align:right}th{font-size:14px;font-weight:500;color:var(--muted)}th:first-child,td:first-child{text-align:left;padding-left:0}td:last-child,th:last-child{padding-right:0}
tr.total td{font-weight:800;border-bottom:0}
.up{font-weight:700}
.legend{display:flex;flex-wrap:wrap;gap:16px;font-size:15px;color:var(--muted);margin-top:4px}
.legend span{display:flex;align-items:center;gap:6px}.legend i{width:16px;height:3px;border-radius:2px;display:inline-block}
.fig{position:relative;min-height:300px;margin-top:6px}.fig>svg{position:absolute;inset:0;width:100%;height:100%;touch-action:pan-y}
.tip{position:absolute;pointer-events:none;background:var(--ink);color:var(--bg);font-size:14px;line-height:1.4;padding:6px 9px;border-radius:4px;white-space:nowrap;opacity:0;transform:translate(-50%,-110%)}
.per{font-size:18px;font-weight:700;margin:12px 0 6px}
.hint{color:var(--muted);font-size:15px;margin:0 0 14px}
section.q{border-top:1px solid var(--line);padding:24px 0}
section.q:first-of-type{border-top:0;padding-top:0}
.grid{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.grid.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid+.grid{margin-top:12px}
label{display:block;font-size:15px;font-weight:500;margin-bottom:4px}
input,select{font:inherit;font-size:16px;width:100%;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:var(--field);color:var(--ink)}
input::placeholder{color:var(--muted);opacity:.8}
input:focus-visible,select:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--s1);outline-offset:2px}
.item,.chap,.card{border:1px solid var(--line);border-radius:6px;margin-bottom:10px}
.item>label.tick,.chap>label.tick{display:flex;gap:12px;align-items:center;padding:12px 14px;margin:0;font-size:17px;font-weight:700;cursor:pointer;min-height:52px}
.item>label.tick input,.chap>label.tick input{width:22px;min-height:22px;flex:none;margin:0}
.chap>.head{padding:12px 14px 0;font-size:17px;font-weight:700}
.item .body,.chap .body{padding:0 14px 14px}
.card{padding:12px 14px 14px}
.card .top{display:flex;gap:8px;align-items:end;margin-bottom:10px}.card .top>div{flex:1}
.chap .body .hint{margin-bottom:10px}
.opts{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.opts label{display:flex;gap:8px;align-items:center;border:1px solid var(--line);border-radius:6px;padding:8px 12px;margin:0;min-height:44px;cursor:pointer;font-size:16px}
.opts input{width:18px;min-height:18px;margin:0}
.row{display:grid;gap:8px;grid-template-columns:minmax(0,2fr) minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr) 44px;align-items:end;margin-bottom:10px}
.row.three{grid-template-columns:minmax(0,2fr) minmax(0,1.3fr) minmax(0,1fr) 44px}
@media(max-width:600px){.row,.row.three{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:10px;border:1px solid var(--line);border-radius:6px}.row .del{grid-column:2;justify-self:end}.row .full{grid-column:1/-1}}
button{font:inherit;font-size:16px;min-height:44px;padding:8px 14px;border-radius:6px;border:1px solid var(--ink);background:transparent;color:var(--ink);cursor:pointer}
button.del{width:44px;flex:none;padding:0;border-color:var(--line);font-size:22px;line-height:1}
button.solid{background:var(--ink);color:var(--bg)}
.check{display:flex;gap:10px;align-items:flex-start;margin-top:14px;font-weight:400}.check input{width:22px;min-height:22px;margin-top:2px;flex:none}
details{margin-top:14px}summary{cursor:pointer;font-weight:500;min-height:44px;display:flex;align-items:center;gap:8px;list-style:none}summary::-webkit-details-marker{display:none}summary::before{content:'+';font-weight:700;width:1ch}details[open]>summary::before{content:'−'}
details .hint{margin-top:4px}
textarea{font:14px/1.4 ui-monospace,monospace;width:100%;min-height:110px;padding:8px;border:1px solid var(--line);border-radius:6px;background:var(--field);color:var(--ink)}
.scroll{overflow-x:auto;max-height:360px}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.note{font-size:14px;color:var(--muted)}
.flash{color:var(--s1);font-size:15px;min-height:1.4em}
[hidden]{display:none!important}

/* ---------- shared by every page ---------- */
.top{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:baseline;font-size:15px;color:var(--muted);margin:0 0 18px}
.top a{color:inherit}.top b{color:var(--ink);font-weight:700}
.nav{display:flex;gap:14px;font-size:15px;margin-left:auto}.nav a{color:var(--ink)}
.under{font-size:14px;margin:10px 0 0;opacity:.85}
footer.site{font-size:13px;color:var(--muted);border-top:1px solid var(--line);margin-top:28px;padding-top:16px;line-height:1.6}
footer.site a{color:inherit}
.prose{max-width:720px;margin:0 auto;padding:clamp(24px,4vw,56px) max(5vw,16px)}
.prose h1{margin-bottom:14px}.prose h2{margin:34px 0 8px}.prose p,.prose li{max-width:66ch}.prose li{margin:6px 0}
.prose .lead{font-size:19px}
.before{margin:6px 0 4px}.before ul{margin:0 0 12px;padding-left:20px}.before li{margin:4px 0}
.saveline{margin:12px 0 0;padding:10px 12px;border-radius:6px;background:var(--band);font-size:15px}

.prose ol,.prose ul{padding-left:22px}
@media print{.top .nav,footer.site p:nth-child(2){display:none}}
ul.think{margin:6px 0 0;padding-left:20px}ul.think li{margin:8px 0;max-width:60ch}
#aiText{margin-top:10px;min-height:220px}
.printhead{display:none}
@media print{
 html,body{height:auto!important;overflow:visible!important;background:#fff;color:#101418}
 .qpane,.mbar,.noprint,details,.pin+#cash:empty{display:none!important}
 .band{height:auto!important;padding:0!important}.wrap{display:block!important;height:auto!important}
 .apane{overflow:visible!important;height:auto!important;padding:0!important;border:0!important}
 .pin{position:static!important;padding-top:0!important}
 .blk,.sum,table,.cash,.fig{break-inside:avoid}
 .printhead{display:block;font-size:13px;margin-bottom:10px}
 a{color:inherit;text-decoration:none}
}
@media print{.fig{min-height:0;height:260px}.fig>svg{position:static;width:100%;height:260px}}
.slab .under{font-size:14px;margin-top:10px;opacity:.85}
@media(max-width:979px){footer.fd{display:none}}
@media(min-width:980px){footer.fm{display:none}}
@media print{footer.fd{display:none}footer.fm{display:block!important}}

/* Logo: curve with the yellow dot at its peak; the full stop matches the dot */
.logo{display:flex;align-items:center;gap:.27em}.logo .mark{width:1em;height:1em;flex:none}.logo span{display:inline-flex;align-items:baseline}
.logo .stop{display:inline-block;width:.23em;height:.23em;border-radius:50%;background:light-dark(#f2c200,#ffd84a);margin-left:.06em}
h1.logo{letter-spacing:-.02em}
.top a.brand{align-self:center;font-size:26px;font-weight:800;color:var(--ink);text-decoration:none;letter-spacing:-.02em}
.top:has(.brand){align-items:center}

/* Glasses: the money in each chapter. Dotted line = enough; yellow = savings and pensions */
.glass .gg{fill:none;stroke:var(--ink);stroke-width:12;stroke-linejoin:round;stroke-linecap:round}.glass .gf{fill:var(--slab)}
.glass .gl{stroke:var(--ink);stroke-width:5;stroke-dasharray:2 12;stroke-linecap:round}.glass .ga{fill:none;stroke:var(--ink);stroke-width:7;stroke-linecap:round;stroke-linejoin:round}
td.gcell{position:relative;padding-left:34px!important}td.gcell .glass{position:absolute;left:0;top:3px}.glass.sm .gl{stroke-width:9;stroke-dasharray:4 18}.glass.sm .gg{stroke-width:14}
figure.glasses{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:22px 0 8px;max-width:66ch;text-align:center}
figure.glasses div{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:14px;line-height:1.3}figure.glasses b{margin-top:6px}figure.glasses span{color:var(--muted)}
figure.glasses figcaption{grid-column:1/-1;font-size:15px;color:var(--muted);text-align:left;margin-top:8px}
@media(max-width:560px){figure.glasses .glass{width:48px;height:62px}figure.glasses div{font-size:12px}}
.logo .sq{fill:light-dark(#101418,#232b33)}
.intro .top{margin-bottom:30px}h1.logo{margin-bottom:18px}

/* Examples and things that might happen */
.exs{margin:0 0 14px}.exs .k{font-size:14px;color:var(--muted);margin:0 0 8px}
.exrow{display:flex;flex-wrap:wrap;gap:8px}.exrow button{flex:1 1 140px}
.exrow button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:10px 12px;min-height:64px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--ink);font:inherit;cursor:pointer}
.exrow button b{font-size:15px}.exrow button span{font-size:13px;color:var(--muted);line-height:1.3}
.exrow button[aria-pressed="true"]{border:2px solid #101418;background:var(--slab);color:#101418}.exrow button[aria-pressed="true"] span{color:#101418}
@media(max-width:560px){.exrow button{flex-basis:100%;min-height:52px}}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 12px}.chips button{border-radius:20px;padding:6px 14px}
.card .sub{font-size:13px;color:var(--muted);margin:10px 0 4px}
/* Younger view */
.ygl{display:flex;justify-content:space-between;gap:8px;margin:10px 0 6px}.ygl div{display:flex;flex-direction:column;align-items:center;gap:4px;flex:1;text-align:center;font-size:14px}.ygl span{color:var(--muted);font-size:13px}
.ygl .glass{width:46px;height:60px}
a.swap{display:inline-block;margin-top:10px;font-weight:700}
