/* Fonts are bundled with the app (no Google request): faster first load, right fonts offline, more private.
   Figtree (body) and Fraunces (logo only, trimmed to the letters of "whittle"). Both SIL Open Font Licence; see /fonts. */
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces Date"; src: url("/fonts/fraunces-date.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-logo.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: block; }

/* Whittle styles. Calm dark-green surfaces on a light ground; coral and gold used sparingly.
   Every colour is a token, redefined for dark mode. */
:root {
  /* Whittle, "Ocean and butter" (November 2026): deep ocean blue-green for actions, the header band and the tab bar;
     butter, lemon and orange for happy moments; fresh green for good news (ticks, "paid", progress);
     soft orange for help, warnings and priority tags (small things only; never yellow); warm off-white page with white cards lifted by a soft shadow. */
  --bg: #f6f6f2; --surface: #ffffff; --surface-2: #eef1f0; --ink: #0f2f38; --muted: #4c5f66; --line: #dfe4e2;
  /* "Raised" cards: a soft shadow lifts every card off the page. */
  --lift: 0 1px 3px rgba(15, 47, 56, .07), 0 12px 28px -8px rgba(15, 47, 56, .18);
  /* Tips and reminders: a soft ocean gradient with a faint edge and a yellow icon. */
  --note-bg: linear-gradient(180deg, #eff6f7, #e0edef); --note-edge: rgba(12, 88, 102, .13);
  /* The band: ocean gradient behind the header and each page's heading, with faint lines and a soft glow (public/img/band.svg). */
  --band: linear-gradient(135deg, #0a3a4a, #0f6c7a); --band-1: #0a3a4a;
  --brand: #0c5866; --brand-2: #0a4a56; --brand-ink: #ffffff; --brand-soft: #f6e7b0;
  --eyebrow: #0c5866; --ok: #0c5866; --good: #0e7480; --ok-bg: #fff1c9;
  /* Progress: ocean fading to teal (bars and ticks). */
  --progress: linear-gradient(90deg, #0c5866, #1aa3ad);
  --butter: #f6c445; --orange: #e8812f; --lemon: #ffd93b; --cream: #fff4d6;
  --warn-bg: #fff0e3; --warn-line: #f8bf8c; --warn-ink: #9a4710; --danger: #a8432f; --danger-bg: #fbe9e4;
  --field: #ffffff; --focus: #0c5866;
  --slate: #e1eef0; --slate-fill: #0c5866;
  /* Debt colours: checked for colour-blind separation and contrast (dataviz validator, November 2026).
     Blue first, so no debt looks like the brand. */
  --d1: #2a78d6; --d2: #eb6834; --d3: #9b6bd6; --d4: #c98500; --d5: #199e70;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --logo: "Fraunces", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --lift: none;
    --note-bg: linear-gradient(180deg, #11303a, #0d2830); --note-edge: rgba(255, 255, 255, .08);
    --band: linear-gradient(135deg, #06222b, #0b4a57); --band-1: #06222b;
    --bg: #071419; --surface: #0e2229; --surface-2: #132c34; --ink: #eef2ee; --muted: #9fb6bb; --line: #1f3a43;
    --brand: #0f6c7a; --brand-2: #12808f; --brand-ink: #ffffff; --brand-soft: #f6e7b0;
    --eyebrow: #7fd0dc; --ok: #7fd0dc; --good: #6fd3da; --ok-bg: #1d3328;
    --progress: linear-gradient(90deg, #1a8a96, #6fd3da);
    --warn-bg: #3a2414; --warn-line: #7a4a26; --warn-ink: #f8c9a0; --danger: #f0a48b; --danger-bg: #33201a;
    --field: #0a1b21; --focus: #7fd0dc;
    --slate: #16323a; --slate-fill: #2a9aa8;
    --d1: #3987e5; --d2: #d95926; --d3: #9085e9; --d4: #c98500; --d5: #199e70;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; font-size-adjust: 0.53; line-height: 1.5; font-variant-numeric: tabular-nums; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; }
h2 { font-size: 1.15rem; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--eyebrow); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .78rem; }
.strong { font-weight: 600; }
.center { text-align: center; }
.lead { color: var(--muted); margin-top: 8px; max-width: 56ch; }

/* header */
header.top { position: sticky; top: 0; z-index: 20; background: transparent; color: var(--brand-ink); transition: background-color .2s ease; padding-top: env(safe-area-inset-top, 0px); }
/* Installed app: keep content clear of the iPhone notch and home bar, and stop pull-to-refresh bounce. */
.wrap { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
footer.foot { padding-bottom: env(safe-area-inset-bottom, 0px); }
/* Pulling past the top (the iPhone bounce) shows green above the header, like a native app, not a cream gap. */
header.top::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; background: var(--band-1); pointer-events: none; }
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; background: none; border: 0; padding: 0 4px 4px 0; cursor: pointer; }
/* The logo: Fraunces black, soft and wonky, with a deep orange block shadow.
   Cream in the header; lemon on big all-green moments (.logo.big). */
.logo { font-family: var(--logo); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 2rem; line-height: 1; letter-spacing: -0.01em; color: var(--cream);
  text-shadow: 1px 1px 0 var(--orange), 2px 2px 0 var(--orange), 3px 3px 0 var(--orange); font-size-adjust: none; }
.logo.big { color: var(--lemon); font-size: clamp(3.4rem, 15vw, 5.4rem);
  text-shadow: 1px 1px 0 var(--orange), 2px 2px 0 var(--orange), 3px 3px 0 var(--orange), 4px 4px 0 var(--orange), 5px 5px 0 var(--orange), 6px 6px 0 var(--orange); }
.tabs { display: flex; gap: 4px; }
.acct { margin-left: auto; order: 2; }
.top .tabs { order: 3; }
@media (min-width: 821px) { .acct { order: 3; margin-left: 0; } .top .tabs { order: 2; margin-left: auto; } }
.tabs button { background: none; border: 0; border-radius: 999px; padding: 8px 14px; white-space: nowrap; font-weight: 500; color: rgba(255, 255, 255, .78); cursor: pointer; }
.tabs button:hover { color: #ffffff; }
.tabs button[aria-current="page"] { color: #0f2f38; font-weight: 700; }
.tabs { position: relative; }
.tabs button { position: relative; z-index: 1; transition: color .25s ease; }
/* The butter pill slides between tabs with a little overshoot, then settles. */
.tabpill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 999px; background: var(--butter); pointer-events: none; }
.tabs.moving .tabpill { transition: transform .42s cubic-bezier(.34, 1.36, .5, 1), width .42s cubic-bezier(.34, 1.36, .5, 1), opacity .2s ease; }

/* Pages glide in from the side you're heading towards. */
main.wrap { overflow-x: clip; }
.page.from-right { animation: page-from-right .38s cubic-bezier(.22, 1, .36, 1); }
.page.from-left { animation: page-from-left .38s cubic-bezier(.22, 1, .36, 1); }
.page.rise { animation: page-rise .32s cubic-bezier(.22, 1, .36, 1); }
@keyframes page-from-right { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes page-from-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes page-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page.from-right, .page.from-left, .page.rise { animation: page-fade .2s ease; } }
@keyframes page-fade { from { opacity: 0; } to { opacity: 1; } }
header.top .btn.outline { color: #ffffff; border-color: rgba(255, 255, 255, .75); }
header.top .btn.outline:hover { background: rgba(255, 255, 255, .1); }
header.top .btn.acct:not(.outline) { background: var(--butter); color: #0f2f38; }
header.top :focus-visible { outline-color: var(--lemon); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; border: 1px solid transparent; padding: 11px 20px; font-weight: 600; cursor: pointer; background: var(--brand); color: var(--brand-ink); }
.btn:hover { background: var(--brand-2); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.outline:hover { background: var(--surface-2); }
.btn.ghost { background: transparent; color: var(--danger); }
.btn.ghost:hover { background: var(--danger-bg); }
.btn.danger { background: var(--danger); color: var(--bg); }
.btn.sm { padding: 7px 14px; font-size: .875rem; }
.btn.wide { width: 100%; padding-block: 14px; font-size: 1.02rem; }
.link.light { color: var(--brand-ink); }
.link { background: none; border: 0; padding: 0; color: var(--ok); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }

/* layout */
main { padding-block: 28px 44px; }
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.pagehead h1 { font-size: clamp(1.8rem, 4.6vw, 2.7rem); line-height: 1.08; letter-spacing: -0.045em; font-weight: 650; max-width: 20ch; margin-top: 4px; }
.grid2 { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-bottom: 20px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
main > section, main > .stack + section, .page > section, .page > .stack + section { margin-bottom: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; min-width: 0; box-shadow: var(--lift); }
.card + .card { margin-top: 0; }
main > .card, .page > .card { margin-bottom: 20px; }
.hero { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; box-shadow: var(--lift); }
.hero.alt { background: var(--note-bg); border-color: var(--note-edge); }
.hero .lbl { color: var(--muted); font-size: .92rem; }
.hero .lbl strong { color: var(--ink); }
.big { font-size: clamp(1.9rem, 4.6vw, 2.6rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1.1; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 12px 0 8px; }
.bar i { display: block; height: 100%; background: var(--butter); border-radius: 99px; min-width: 0; }
.bar.light { background: var(--surface-2); }
.bar.light i { background: var(--progress); }

.notice { border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); border-radius: 16px; padding: 14px 16px; font-size: .95rem; margin-bottom: 20px; }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); border-radius: 16px; padding: 12px 16px; margin-bottom: 18px; font-size: .95rem; }
.banner.ok { border-color: var(--ok); background: var(--ok-bg); color: var(--ink); }
.banner .btn.outline { color: inherit; }
.note { margin-top: 10px; color: var(--warn-ink); background: var(--warn-bg); border-radius: 10px; padding: 8px 10px; }
.note .link { color: inherit; }

/* this month */
.paylist { display: flex; flex-direction: column; }
.paylist li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.paylist li:first-child { padding-top: 0; }
.badge { flex: none; width: 12px; height: 40px; border-radius: 6px; }
.grow { flex: 1; min-width: 0; }
.grow .strong { overflow-wrap: anywhere; }
.amount { font-size: 1.25rem; font-weight: 650; white-space: nowrap; }
.why { margin-top: 12px; }
.paid { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.history { margin-top: 8px; }
.history li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.history li:last-child { border-bottom: 0; }
.confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500; }
.confirm > span { flex-basis: 100%; }
.help { border-color: var(--warn-line); margin-bottom: 20px; }
.help ul { list-style: disc; padding-left: 20px; margin: 10px 0; display: grid; gap: 6px; }

.nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; border-color: var(--ok); background: var(--ok-bg); }
.nudge .actions { margin-top: 0; }
.nudge .grow { flex: 1 1 260px; }
.nudge .grow p { margin-top: 4px; }
.nav.split { flex-wrap: wrap; }
.nav.split .btn { flex: 1 1 200px; }
.pw { position: relative; display: block; }
.pw > input[type] { padding-right: 64px; }
.pw .link { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .85rem; }
.warn p + p { margin-top: 6px; }
.hero .btn.outline { color: var(--ink); border-color: var(--line); }
.hero .btn.outline:hover { background: var(--surface-2); }
.choices.changes { max-width: 720px; }
.chat { display: flex; flex-direction: column; gap: 14px; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 8px 14px; font-size: .9rem; cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--ok); }
.log { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 4px; white-space: pre-wrap; }
.msg.cs { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg.cs p + p, .msg.cs p + ul, .msg.cs ul + p { margin-top: 8px; }
.msg.cs ul { list-style: disc; padding-left: 20px; display: grid; gap: 4px; }
.msg.thinking { color: var(--muted); font-style: italic; }
.composer { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--field); padding: 10px 12px; resize: vertical; font: inherit; color: inherit; }
.codebox { font-size: 1.4rem !important; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
input[type=email], input[type=password] { width: 100%; min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); padding: 0 12px; }

/* forms */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 16px; }
.fields.one { grid-template-columns: minmax(0, 260px); }
.f { display: block; min-width: 0; }
.f.span { grid-column: 1 / -1; }
.l { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); margin-bottom: 5px; }
input[type=number], input[type=text], input[type=date], select { width: 100%; min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); padding: 0 12px; }
/* iPhone Safari gives date boxes their own minimum width and ignores width: 100%. Reset that. */
input[type=date] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; line-height: 42px; }
input[type=date]::-webkit-date-and-time-value { text-align: left; margin: 0; }
input[type=date]::-webkit-calendar-picker-indicator { margin-left: auto; }
.pre { position: relative; display: block; }
.pre > i { position: absolute; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); pointer-events: none; left: 12px; }
.pre.suf > i:last-child { left: auto; right: 12px; }
.pre input { padding-left: 26px; }
.pre.nopre input { padding-left: 12px; }
.pre.suf input { padding-right: 30px; }
.hint { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted); }
.hint.bad { color: var(--danger); }
.choices { display: grid; gap: 10px; margin-top: 14px; }
.choice { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 14px 16px; cursor: pointer; width: 100%; }
.choice[aria-checked="true"] { border-color: var(--ok); background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--ok); }
.choice b { display: block; }
.choice span { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }

/* onboarding */
.ob { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.ob .card { padding: 26px; }
.ob h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); letter-spacing: -0.04em; line-height: 1.1; margin-top: 4px; }
.ob .nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 28px; height: 4px; border-radius: 2px; background: var(--line); }
.dots i.on { background: var(--ok); }
.review { display: grid; gap: 10px; margin-top: 18px; }
.review div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.review dt { color: var(--muted); }
.review dd { font-weight: 600; text-align: right; }

/* plan */
.miles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 18px 0 12px; }
.mile { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.when { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.02em; margin: 2px 0 4px; }
.chartbox { margin-top: 14px; }
svg.chart { display: block; width: 100%; height: auto; }
svg.chart text { fill: var(--muted); font-size: .7rem; font-family: var(--font); }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
details.tbl { margin-top: 14px; }
details.tbl summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.tblwrap { overflow-x: auto; margin-top: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .875rem; }
th, td { text-align: right; padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child { text-align: left; }
th { font-weight: 600; color: var(--muted); }
.scenhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.customfield { width: 180px; max-width: 100%; }
.customfield .fields, .customfield .f { margin-top: 0; }
.scen { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
.scen article { background: var(--surface); padding: 16px 18px; }
.scen article.base { background: var(--surface-2); }
.scen h3 { font-size: .95rem; }
.scen dl { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: .875rem; }
.scen dl div { display: flex; justify-content: space-between; gap: 10px; }
.scen dt { color: var(--muted); }
.scen dd { font-weight: 600; }
.good { color: var(--good); }

/* debts */
.editor { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: var(--surface); }
.editor.done { background: var(--ok-bg); }
.editor .head { display: flex; align-items: center; gap: 12px; }
.editor .badge { height: 30px; width: 8px; }
.editor .name { flex: 1; font-weight: 600; font-size: 1.05rem; }
.pill { font-size: .75rem; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--ok); color: var(--bg); }
.startnote { margin-top: 12px; }
.warn { margin-top: 10px; font-size: .88rem; color: var(--danger); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot > .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 16px; }
.foot .legal { color: var(--muted); font-size: .85rem; }
.foot > .wrap + .legal { border-top: 1px solid var(--line); }

@media (max-width: 820px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  main { padding-block: 20px 36px; }
  .card, .hero { padding: 18px; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Month by month (Plan) */
.periods { list-style: none; margin: 14px 0 12px; padding: 0; }
.periods > li { padding: 14px 0; border-top: 1px solid var(--line); }
.periods > li:first-child { border-top: 0; padding-top: 4px; }
.phead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pwhen { font-weight: 700; margin: 0; }
.phead .tiny { margin: 2px 0 0; }
.pamt { font-weight: 700; margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plines { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; gap: 6px; }
.plines li { display: grid; grid-template-columns: 10px 1fr auto; column-gap: 10px; align-items: baseline; }
.plines i { width: 10px; height: 10px; border-radius: 50%; align-self: center; }
.pname { min-width: 0; overflow-wrap: anywhere; }
.pval { font-variant-numeric: tabular-nums; font-weight: 600; }
.pnote { grid-column: 2 / 4; margin-top: -2px; }
.periods > li > .tiny { margin: 0; }
.pdone { margin: 8px 0 0; display: inline-block; font-size: .8rem; font-weight: 600; color: var(--good); background: var(--ok-bg); padding: 3px 10px; border-radius: 999px; }

/* Debts: collapsed summary */
.editor.compact { padding: 14px 18px; }
.editor .head > .btn { flex: none; }
.editor .sum { flex: 1; min-width: 0; }
.editor .sum p { margin: 0; }
.sumname { font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.editor.compact .sum .small { margin-top: 2px; }

/* Debts: start again */
.startover { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.startover h2 { font-size: 1rem; margin: 0 0 4px; }
.startover .btn, .startover .confirm { margin-top: 10px; }
.ink { color: var(--ink); }
.promise { font-size: 1.15rem; font-weight: 600; line-height: 1.4; color: var(--ink); text-align: center; margin: 4px auto 20px; max-width: 30ch; text-wrap: balance; }

/* Plan: one headline card */
.planhero { gap: 0; margin-bottom: 20px; }
.planhero .phtop { display: flex; flex-direction: column; gap: 6px; }
.planhero .phtop .big { margin-top: 2px; }
.planhero .phbottom { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.planhero .bar { margin: 10px 0 8px; }
.mid { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.02em; }
.legend em { font-style: normal; color: var(--muted); }

/* Plan: what if slider */
.whatif input[type="range"] { width: 100%; margin: 14px 0 2px; accent-color: var(--ok); height: 28px; }
.whatif .l { display: block; margin-top: 10px; }
.rangeends { display: flex; justify-content: space-between; }
.wiresult { margin: 14px 0 12px; padding: 16px; border-radius: 16px; background: var(--ok-bg); min-height: 96px; }
.wiresult p { margin: 0; }
.wiresult .lbl { font-size: .88rem; color: var(--muted); }
.wiresult .when { margin: 4px 0; }

/* Plan: settings */
.setrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.settings h2 + .setrow { border-top: 0; padding-top: 6px; }
.setrow p { margin: 0; }
.setrow .btn { flex: none; }
.settings .fields, .setbody { margin: 0 0 14px; }
@media (max-width: 360px) { .tabs { gap: 0; } .tabs button { padding: 8px 6px; font-size: .9rem; min-width: 0; } }

/* Onboarding: debts so far */
.oblist { list-style: none; margin: 18px 0 14px; padding: 0; display: grid; gap: 10px; }
.oblist li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.oblist .badge { height: 30px; width: 6px; }
.oblist .grow { flex: 1; min-width: 0; }
.oblist .grow p { margin: 0; overflow-wrap: anywhere; }
.oblist .link { font-size: .88rem; flex: none; }
.link.muted { color: var(--muted); }
.ob .choices + .fields, .ob .lead + .choices { margin-top: 16px; }
.oblist li { align-items: flex-start; }
.oblist .badge { margin-top: 3px; }
.oblist .oblinks { display: flex; gap: 18px; margin-top: 6px !important; }
.oblist li.obedit, .obnew { display: block; padding: 16px; border: 1px solid var(--ok); border-radius: 14px; background: var(--surface); }
.obnew { margin-top: 4px; }
.obedit .fields, .obnew .fields { margin-top: 10px; }
.obedit .actions, .obnew .actions { margin-top: 14px; }
.link:disabled { opacity: .4; cursor: default; }

/* Plan: first visit after set-up */
.pagehead.welcome .lead { max-width: 52ch; margin-top: 8px; }
.pagehead.welcome .btn { margin-top: 16px; }

/* Tick boxes and tags */
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ok); flex: none; }
.f.span .hint { margin-top: 6px; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--warn-ink); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 6px; padding: 1px 6px; margin-right: 6px; vertical-align: 1px; }

/* Wellbeing signposting */
.wellbeing { margin-top: 20px; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; background: var(--surface); }
.help .wellbeing { margin: 14px 0; background: transparent; }
.wellbeing summary { cursor: pointer; font-weight: 600; }
.wellbeing p, .wellbeing ul { margin: 10px 0 0; }
.wellbeing ul { padding-left: 18px; display: grid; gap: 6px; }
.wellbeing a { color: var(--ok); font-weight: 600; }

/* Can't pay this month */
.cp { margin-bottom: 16px; }
.cp h2 { display: flex; gap: 10px; align-items: flex-start; }
.cp h3 { font-size: 1rem; margin: 18px 0 4px; }
.num { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--warn-bg); color: var(--warn-ink); font-size: .85rem; font-weight: 700; margin-top: 1px; }
.cplist { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 0; }
.cplist li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.cplist li:first-child { border-top: 0; }
.cplist .grow { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.cplist b { font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.cpnote { grid-column: 1 / 3; }
.cplist .msg { grid-column: 1 / 3; margin-top: 8px; }
.msg summary { cursor: pointer; color: var(--ok); font-weight: 600; font-size: .9rem; }
.msg pre { white-space: pre-wrap; font-family: inherit; font-size: .88rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.links { padding-left: 18px; display: grid; gap: 4px; }
.links a, .cp p a { color: var(--ok); font-weight: 600; }
.cplist .msg pre { width: 100%; box-sizing: border-box; max-width: none; }
.cplist .msg { min-width: 0; width: 100%; }

/* This month: payday calendar and ticks */
.payhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.payhead p { margin: 0; }
.paypick select { padding: 6px 10px; font-size: .9rem; }
.paylist li.payday { justify-content: space-between; padding: 8px 12px; margin: 6px 0; border: 0; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-weight: 600; font-size: .88rem; }
.tick { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--muted); background: var(--surface); color: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .15s, border-color .15s, color .15s; }
.tick:hover { border-color: var(--ok); }
.ticked .tick { background: var(--progress); border-color: transparent; color: #ffffff; }
/* The tick draws itself in; the row just ticked gives a small squash and bounce. */
.tick path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .32s cubic-bezier(.6, 0, .3, 1) .05s; }
.ticked .tick path { stroke-dashoffset: 0; }
.pop .payrow { animation: tickpop .42s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes tickpop { 30% { transform: scale(.98, .93); } 65% { transform: scale(1.01, 1.02); } }
.ticked .grow .strong, .ticked .amount { color: var(--muted); }
.ticked .amount { text-decoration: line-through; text-decoration-thickness: 2px; }
.due { font-weight: 600; color: var(--ink); }
.btn.ready { box-shadow: 0 0 0 4px var(--ok-bg); }
@media (prefers-reduced-motion: reduce) { .tick { transition: none; } }

/* Monthly recap */
.recap { background: var(--ok-bg); border: 1.5px solid var(--butter); border-radius: 22px; padding: 20px 22px; margin-bottom: 20px; }
.rechead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rechead h2 { margin: 0; font-size: 1.25rem; }
.recstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 12px; }
.recstats div { background: var(--surface); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.recstats dt { font-size: .78rem; color: var(--muted); }
.recstats dd { margin: 2px 0 0; font-size: 1.2rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.recclear { font-weight: 650; color: var(--good); margin: 0 0 6px; }
.recap p { margin: 4px 0 0; }
@media (max-width: 380px) { .recstats { grid-template-columns: 1fr 1fr; } .recstats div:last-child { grid-column: 1 / 3; } }

/* Progress mark (the Whittle logo filling in) */
.mark-progress { display: flex; align-items: center; gap: 20px; margin: 14px 0 10px; }
.mark-progress svg { flex: none; }
.mp-slate { fill: var(--slate); }
.mp-clean { fill: var(--slate-fill); }
.mp-tick.on-track { stroke: var(--brand); }
@media (prefers-color-scheme: dark) { .mp-tick.on-track { stroke: var(--ink); } }
.mp-ghost { fill: none; stroke: var(--brand); stroke-opacity: .16; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.mp-tick { fill: none; stroke: #ffffff; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.mark-progress figcaption { display: flex; flex-direction: column; min-width: 0; }
.mp-big { font-size: clamp(1.45rem, 8vw, 2.1rem); white-space: nowrap; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.mp-sub { color: var(--muted); }
.mp-pct { color: var(--good); font-weight: 600; font-size: .92rem; margin-top: 6px; }

/* Debts: budget check */
.budgetcheck { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 16px 18px; margin-bottom: 16px; }
.budgetcheck.short { background: var(--warn-bg); border-color: var(--warn-line); }
.budgetcheck.short p { color: var(--warn-ink); }
.bchead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bchead h2 { font-size: 1.05rem; margin: 0 0 2px; }
.bchead p { margin: 0; }
.bchead .btn { flex: none; }
.bcbody { margin-top: 12px; }
.bcbody .actions { margin-top: 12px; }
.tipcard { margin-bottom: 20px; border-color: var(--butter); background: var(--ok-bg); }
.tipcard h2 { margin: 0 0 6px; }
.tipcard p { margin: 6px 0 0; }

/* Set-up welcome: an all-green moment, so the logo is lemon */
.obhero { background: var(--brand); color: var(--brand-ink); box-shadow: var(--lift); border-radius: 26px; padding: 34px 22px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.obhero .obtag { font-weight: 700; font-size: 1.15rem; color: var(--brand-soft); margin-top: 6px; }
.obhero .obpromise { font-size: .95rem; color: #e3eee9; max-width: 34ch; line-height: 1.45; }

/* Get the app */
.installcard { margin-top: 20px; display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1.5px solid var(--butter); border-radius: 22px; padding: 18px 20px; }
.installcard img { border-radius: 14px; flex: none; }
.installcard h2 { margin: 0 0 4px; }
.installcard .steps { margin: 10px 0 0; padding-left: 20px; list-style: decimal; display: grid; gap: 4px; }
.installcard .actions { margin-top: 12px; }

/* ---------- Motion and feel ---------- */

/* Buttons give a little under your finger, then spring back. */
.btn, .tabs button, .tick, .paypick, .link { transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), background-color .15s ease, color .25s ease; }
.btn:active:not([disabled]), .link:active { transform: scale(.96); }
.tabs button:active { transform: scale(.93); }
.tick:active { transform: scale(.86); }

/* Tab icons only show in the phone bottom bar. */
.tabicon { display: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Phones: the tabs move to a bar along the bottom, where your thumb is. */
@media (max-width: 820px) {
  .top .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; width: auto; gap: 4px; background: var(--brand);
    padding: 7px max(10px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-right));
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .12), 0 -8px 24px rgba(15, 47, 56, .14); }
  .top .tabs button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px 6px; border-radius: 18px; font-size: .75rem; line-height: 1.2; }
  .top .tabs .tabpill { border-radius: 18px; }
  .top .tabs .tabicon { display: block; }
  body:has(.top .tabs) { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  /* While typing, step the bar out of the way of the keyboard. */
  .top .tabs.typing { display: none; }
}
@media (max-width: 360px) { .top .tabs button { padding: 7px 2px 6px; font-size: .7rem; } }

/* A page's sections arrive one after another, a split second apart. */
@keyframes settle-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page > :not(.grid2), .page > .grid2 > :not(.stack), .page > .grid2 > .stack > * { animation: settle-in .42s cubic-bezier(.22, 1, .36, 1) both; }
.page > :nth-child(2) { animation-delay: 50ms; }
.page > :nth-child(3) { animation-delay: 100ms; }
.page > :nth-child(4) { animation-delay: 150ms; }
.page > :nth-child(n+5) { animation-delay: 200ms; }
.page > .grid2 > :nth-child(1) { animation-delay: 70ms; }
.page > .grid2 > :nth-child(2) { animation-delay: 130ms; }
.page > .grid2 > .stack > :nth-child(1) { animation-delay: 130ms; }
.page > .grid2 > .stack > :nth-child(2) { animation-delay: 190ms; }
.page > .grid2 > .stack > :nth-child(n+3) { animation-delay: 250ms; }

/* The progress mark breathes very slowly, so the screen feels alive. */
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.mark-progress svg { animation: breathe 5.5s ease-in-out infinite; transform-origin: 50% 50%; }

/* Debt cards unfold and fold away. */
.unfold { display: grid; grid-template-rows: 1fr; }
.unfold-in { min-height: 0; }
.unfold.opening { animation: unfold .3s cubic-bezier(.22, 1, .36, 1); }
.unfold.closing { animation: fold .22s cubic-bezier(.55, 0, .45, 1) forwards; }
.unfold.opening > .unfold-in, .unfold.closing > .unfold-in { overflow: hidden; }
@keyframes unfold { from { grid-template-rows: 0fr; opacity: 0; } to { grid-template-rows: 1fr; opacity: 1; } }
@keyframes fold { from { grid-template-rows: 1fr; opacity: 1; } to { grid-template-rows: 0fr; opacity: 0; } }

/* Payday countdown */
.paychip { flex: none; min-width: 9.5rem; max-width: 12rem; padding: 9px 12px 10px; border-radius: 14px; background: var(--ok-bg); text-align: right; }
.paychip p { margin: 0; }
.paychip .link { font-weight: 700; color: var(--ink); }
.paychip .paypick select { max-width: 100%; padding: 4px 6px; font-size: .85rem; }
.paybar { height: 5px; border-radius: 99px; background: rgba(12, 88, 102, .12); overflow: hidden; margin-top: 7px; }
.paybar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); transform-origin: left; animation: paybar-fill .9s cubic-bezier(.22, 1, .36, 1) .2s both; }
.paychip.today .paybar i { background: var(--orange); }
@keyframes paybar-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-color-scheme: dark) { .paybar { background: rgba(255, 255, 255, .14); } }

/* Splash: only in the installed app, while it starts up. */
#splash { display: none; }
@media (display-mode: standalone) {
  #splash { display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: var(--band-1); background-image: var(--band); transition: opacity .35s ease, visibility 0s linear .35s; }
  #splash .logo { position: relative; font-size: clamp(6rem, 34vw, 9rem); line-height: 1; filter: drop-shadow(0 0 40px rgba(255, 217, 59, .28)); animation: splash-pop .7s cubic-bezier(.34, 1.56, .64, 1) both; }
  #splash.gone { opacity: 0; visibility: hidden; }
}
@keyframes splash-pop { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .page > *, .page > .grid2 > *, .page > .grid2 > .stack > *, .mark-progress svg, .unfold.opening, .unfold.closing, .paybar i, #splash .logo { animation: none !important; }
  .btn:active, .tabs button:active, .tick:active, .link:active { transform: none; }
}

/* This month: payments checklist */
.payhead { align-items: flex-start; flex-wrap: wrap; margin-bottom: 4px; }
.payhead > .paychip { margin-left: auto; }
.payhead > div:first-child { min-width: 0; }
.paylabel { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.paycount { white-space: nowrap; margin-top: 4px !important; font-size: .85rem; font-weight: 700; display: inline-block; background: var(--ok-bg); border-radius: 999px; padding: 3px 10px; }
.paylist li { padding: 0; }
.paylist li:first-child { border-top: 1px solid var(--line); }
.payrow { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 2px; background: none; border: 0; text-align: left; color: inherit; cursor: pointer; border-radius: 12px; transition: background-color .15s ease, transform .18s cubic-bezier(.34, 1.56, .64, 1); }
.payrow:hover { background: var(--surface-2); }
.payrow:active { transform: scale(.98); }
.payrow .grow { display: flex; flex-direction: column; min-width: 0; }
.payname { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.payname .tag { margin: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.payrow:active .tick { transform: scale(.86); }
.changelink { align-self: center; font-weight: 700; padding: 6px 10px; }
@media (prefers-reduced-motion: reduce) { .payrow:active, .payrow:active .tick { transform: none; } }

/* Suggestion box */
.suggestbox { display: block; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--field); padding: 10px 12px; resize: vertical; font: inherit; color: inherit; min-height: 9rem; }
.suggestlink { margin-bottom: 8px; }
.suggestlink .link { font-weight: 700; }

/* Guided tour */
.tour { position: fixed; inset: 0; z-index: 60; }
.tour-shield { position: fixed; inset: 0; }
.tour-dim { position: fixed; inset: 0; background: rgba(6, 26, 19, .58); }
.tour-ring { position: fixed; border-radius: 18px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(6, 26, 19, .58); outline: 3px solid var(--butter); outline-offset: 0; will-change: top, left, width, height; }
.tour-ring[hidden] { display: none; }
.tour-card { position: fixed; z-index: 1; background: var(--surface); color: var(--ink); border-radius: 20px; padding: 16px 18px 14px; box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .3s cubic-bezier(.22, 1, .36, 1); }
.tour-card.shown { opacity: 1; transform: none; }
/* Once placed, the card glides to each new spot (same timing as the ring) and only its words fade. */
.tour-card.placed { transition: opacity .18s ease, transform .3s cubic-bezier(.22, 1, .36, 1), top .42s cubic-bezier(.65, 0, .35, 1), left .42s cubic-bezier(.65, 0, .35, 1); }
.tour-text { animation: tourtext .28s ease both; }
@keyframes tourtext { from { opacity: 0; } to { opacity: 1; } }
.tour-ring { transition: opacity .18s ease; }
.tour-card h2 { margin: 2px 0 6px; font-size: 1.15rem; outline: none; }
.tour-card p { margin: 0; }
.tour-card #tour-body { font-size: .95rem; line-height: 1.5; }
.tour-count { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--eyebrow); }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.tour-nav { display: flex; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .tour-ring, .tour-card, .tour-card.placed { transition: none; } .tour-text { animation: none; } }

/* Small phones: room for big figures. Larger text: tab labels wrap rather than being cut off. */
@media (max-width: 360px) { .mark-progress { gap: 14px; } .mark-progress svg { width: 88px; height: 88px; } }
.top .tabs button span { white-space: normal; text-align: center; overflow-wrap: anywhere; }
.mp-big.l { font-size: clamp(1.3rem, 7vw, 1.9rem); }
.mp-big.xl { font-size: clamp(1.1rem, 5.6vw, 1.6rem); }
/* Debt names: the coloured dot stays with the first word, however long the name. */
.payname { display: block; }
.payname .dot { display: inline-block; vertical-align: middle; margin: -2px 8px 0 0; }
.payname .tag { margin-left: 8px; vertical-align: middle; }

/* Due dates: today and tomorrow stand out a little; a date that's passed (and isn't ticked) is calm blue, never red. */
.due.soon { color: var(--ink); font-weight: 700; }
.due.late { color: var(--warn-ink); font-weight: 700; }
/* The footer sits at the bottom on short pages instead of floating mid-screen. */
#root { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
#root > main { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
/* On the welcome screen the big logo is enough: no second logo in the header. */
body:has(.obhero) header.top .brand { visibility: hidden; }
.review .total dt, .review .total dd { font-weight: 750; color: var(--ink); }
.reviewdate { margin: 16px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--ok-bg); font-size: 1.02rem; }

/* Debt-free: the one big celebration, for a real achievement. */
.donehero { position: relative; text-align: center; background: var(--brand); color: #fff; box-shadow: var(--lift); border-radius: 28px; padding: 34px 22px 30px; overflow: hidden; }
.donehero .eyebrow { color: var(--lemon); margin-top: 16px; }
.donehero h1 { color: #fff; margin: 6px 0 8px; animation: done-rise .7s cubic-bezier(.22, 1, .36, 1) .45s both; }
.donehero .lead { color: var(--cream); max-width: 34ch; margin: 0 auto; animation: done-rise .7s cubic-bezier(.22, 1, .36, 1) .6s both; }
.donemark { position: relative; width: 120px; height: 120px; margin: 0 auto; }
.dm-disc { fill: var(--lemon); transform-origin: 60px 60px; animation: done-pop .6s cubic-bezier(.34, 1.56, .64, 1) both; }
.dm-tick { fill: none; stroke: var(--brand); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 75; stroke-dashoffset: 75; animation: done-draw .55s ease-out .35s forwards; }
/* Eight small butter sparks fly out once. */
.donemark i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--butter); opacity: 0;
  transform: rotate(var(--a)) translateY(0); animation: done-spark .9s cubic-bezier(.22, 1, .36, 1) .5s both; }
.donemark i:nth-child(even) { background: var(--orange); width: 7px; height: 7px; margin: -3.5px; }
@keyframes done-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes done-draw { to { stroke-dashoffset: 0; } }
@keyframes done-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes done-spark { 0% { opacity: 0; transform: rotate(var(--a)) translateY(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-86px); } }
.donestats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 18px 0 8px; }
.donestats div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.donestats dt { font-size: .8rem; color: var(--muted); }
.donestats dd { margin: 4px 0 0; font-size: 1.45rem; font-weight: 750; letter-spacing: -0.02em; }
@media (prefers-reduced-motion: reduce) {
  .dm-disc, .donehero h1, .donehero .lead { animation: none; }
  .dm-tick { animation: none; stroke-dashoffset: 0; }
  .donemark i { display: none; }
}
.catchup { margin-bottom: 20px; border: 1.5px solid var(--butter); }
.catchup h2 { margin: 4px 0 4px; }

/* ---------- November 2026 features ---------- */
/* 0% deal ending: calm blue, never yellow. */
.promo h2 { margin: 6px 0 6px; font-size: 1.05rem; }
/* 0% deal reminder: an ordinary white card; only the small tag is orange. */
.promotag { margin: 0; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
/* A one-month change or a pause, shown inside the payments card. */
.modeline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 2px; padding: 10px 0 2px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.modeline .link { font-size: .88rem; margin-left: auto; }
.promo p + p { margin-top: 6px; }

/* Milestones: butter stars, only for real recorded progress. */
.milestones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.milestones li { display: inline-flex; align-items: center; gap: 6px; background: var(--ok-bg); border: 1px solid var(--butter); border-radius: 999px; padding: 4px 12px 4px 8px; font-weight: 600; font-size: .9rem; }
.recap .milestones { margin: 8px 0 4px; }
.recap .milestones li { background: var(--surface); }
.mstar { color: var(--orange); font-size: .95rem; line-height: 1; }

/* Only paying the minimums */
.mocompare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.mocompare > div { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.mocompare > div.yours { border-color: var(--ok); background: var(--ok-bg); }
.mocompare dt { font-size: .82rem; color: var(--muted); }
.mocompare dd { font-weight: 700; font-size: 1.1rem; }
.mocompare dd.small { font-weight: 400; font-size: .85rem; }
.minonly .tiny { margin-top: 8px; }

.findcard h2 { margin-bottom: 4px; }

/* Statement day */
.stmtlist { display: grid; gap: 4px; }
.stmtlist li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.stmtlist li:last-child { border-bottom: 0; }
.stmtdiff { margin-top: 6px; color: var(--muted); }
.stmtdiff.up { color: var(--warn-ink); }
.debttools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }

/* Letters */
.letters { display: grid; gap: 12px; }
.letter { padding: 0; }
.letter summary { cursor: pointer; padding: 16px 20px; list-style: none; display: grid; gap: 2px; position: relative; padding-right: 44px; }
.letter summary::-webkit-details-marker { display: none; }
.letter summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 1.3rem; color: var(--ok); }
.letter[open] summary::after { content: "–"; }
.letter > :not(summary) { margin-left: 20px; margin-right: 20px; }
.letter > :last-child { margin-bottom: 18px; }
.letter ul { list-style: disc; padding-left: 20px; display: grid; gap: 4px; margin-top: 4px; }
.letter a { color: var(--ok); font-weight: 600; }
.timebox { margin-top: 10px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 8px 10px; }

/* Find extra money */
.ideas { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.idea h2 { font-size: 1.02rem; margin-bottom: 4px; }
.ideal { margin-top: 8px; }
.ideal a, .cptools .link { color: var(--ok); font-weight: 600; }
.cptools { margin: 12px 0; }

/* Summary for an adviser */
.sumhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.tablewrap { overflow-x: auto; margin: 0 -4px; }
.sumtable { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.sumtable th, .sumtable td { text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.sumtable th:first-child { text-align: left; white-space: normal; }
.sumtable thead th { font-size: .78rem; color: var(--muted); font-weight: 600; }
.sumtable tbody th { font-weight: 600; }
.sumtable .tiny { display: block; font-weight: 400; }
.sumtable tfoot th, .sumtable tfoot td { font-weight: 700; border-bottom: 0; }
.sumfacts { display: grid; gap: 6px; margin: 14px 0 10px; }
.sumfacts div { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.sumfacts dd { font-weight: 700; }

@media print {
  header.top, footer.foot, .noprint, .banner, .tabs, #splash { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 0; padding: 0; }
  .page { animation: none !important; }
  .sumtable { min-width: 0; }
}
.stmtname { margin-bottom: 6px; }
.stmtfields { margin: 0; }
.stmtguess { margin-top: 10px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 12px; padding: 10px 12px; }
.stmtguess .check { margin-top: 6px; }

/* Check-in, year review, streak, pause */
.checkincard { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; border-color: var(--butter); background: var(--ok-bg); margin-bottom: 20px; }
.checkincard h2 { margin-bottom: 2px; }
.yearcard { margin-bottom: 20px; }
.yearcard h2 { margin-bottom: 2px; }
.yearhero { margin-bottom: 18px; }
.yearhero .eyebrow { margin-top: 0; }
.streak { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; margin: 2px 0 8px; }
.streak .muted { font-weight: 400; }
.quicklinks { margin-top: 10px; }
.pausechoices { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.checkstep { margin-bottom: -8px; }
.checkin { max-width: 720px; }

.donestats + .card { margin-top: 14px; margin-bottom: 18px; }

/* History of recorded months */
.histlist { display: grid; gap: 10px; }
.histmonth { padding: 0; }
.histhead { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; padding: 14px 18px; text-align: left; cursor: pointer; color: inherit; }
.histhead .grow { display: grid; gap: 2px; min-width: 0; flex: 1; }
.histhead .amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.histhead .chev { color: var(--ok); font-size: 1.2rem; width: 14px; text-align: center; }
.histbody { padding: 0 18px 16px; }
.histfacts { display: grid; gap: 4px; margin-top: 10px; }
.histfacts div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--muted); }
.histfacts dd { font-weight: 600; color: var(--ink); }
.histbody .recclear { margin-top: 8px; }
.owedchart { margin-bottom: 14px; }
.owedchart svg { display: block; margin-top: 10px; }
.obar path { fill: url(#owedfill); }
.obar .hit { fill: transparent; }
.obar:hover path { opacity: .85; }
.olbl { font-size: 12px; fill: var(--muted); }
.streaklink { color: inherit; text-decoration: none; }
.streaklink .more { color: var(--ok); font-weight: 600; text-decoration: underline; margin-left: 4px; }
.owedchart svg { height: 120px; }
.oaxis { display: flex; justify-content: space-between; margin-top: 6px; }

/* Plan page: two columns on wider screens, key figures, payoff steps, stacked chart */
.plangrid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.plangrid > .stack > section { margin: 0; }
@media (min-width: 900px) { .plangrid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.keyfigs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; }
@media (min-width: 700px) { .keyfigs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.keyfigs > div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.keyfigs dt { font-size: .82rem; color: var(--muted); }
.keyfigs dd { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; margin-top: 2px; }
.payoffsteps { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 16px 0 0; padding: 0; list-style: none; }
.payoffsteps li { position: relative; display: grid; gap: 1px; padding: 0 34px 0 18px; min-width: 0; }
.payoffsteps li::after { content: "→"; position: absolute; right: 10px; top: 0; color: var(--muted); }
.payoffsteps li:last-child::after { content: ""; }
.payoffsteps .dotmark { position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--butter); }
.payoffsteps li.buf .dotmark { background: transparent; border: 2px solid var(--butter); }
.payoffsteps .pname { font-weight: 600; font-size: .92rem; color: var(--ink); }
.payoffsteps .pwhen { font-size: .8rem; color: var(--muted); }
.chartwrap { position: relative; touch-action: pan-y; }
svg.chart .band { stroke: var(--surface); stroke-width: 2; stroke-linejoin: round; opacity: .9; }
svg.chart .totalline { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; opacity: .55; }
svg.chart .clearmark { fill: var(--surface); stroke-width: 2.5; }
svg.chart .crosshair { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: .6; }
svg.chart .hoverdot { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.charttip { position: absolute; top: 4px; transform: translateX(10px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); pointer-events: none; min-width: 150px; z-index: 2; }
.charttip.left { transform: translateX(calc(-100% - 10px)); }
.charttip p { margin: 0; white-space: nowrap; }
.charttip .tiptotal { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.charttip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.charttip b { margin-left: 6px; }
.bufring { background: transparent !important; box-shadow: inset 0 0 0 2px var(--ok); }
@media (min-width: 900px) {
  .planhero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 32px; align-items: center; }
  .planhero .phbottom { margin-top: 0; padding-top: 0; border-top: 0; padding-left: 28px; border-left: 1px solid var(--line); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
}
@media (max-width: 599px) {
  .payoffsteps { flex-direction: column; gap: 10px; }
  .payoffsteps li { padding-right: 0; }
  .payoffsteps li::after { content: ""; position: absolute; left: 4px; right: auto; top: 18px; bottom: -10px; width: 2px; background: var(--line); }
  .payoffsteps li:last-child::after { display: none; }
}
/* This month on wider screens: cards keep their natural height (no stretched empty space);
   Recorded months tucks under the payments card so the two columns stay balanced. */
@media (min-width: 821px) {
  .monthgrid { align-items: start; grid-template-rows: auto 1fr; }
  .monthgrid > .stack { grid-column: 2; grid-row: 1 / span 2; }
  .monthgrid > .recslot { grid-column: 1; grid-row: 2; }
}

/* "Customise this page" */
.custlink { text-align: center; margin: 22px 0 4px; }
.custlink .link { color: var(--muted); font-weight: 500; }
.arrbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); z-index: 15; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  background: var(--surface); border: 2px solid var(--brand); border-radius: 18px; padding: 12px 16px; margin-bottom: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.arrbar .small { color: var(--muted); max-width: 60ch; }
@media (max-width: 820px) { .arrbar { top: calc(env(safe-area-inset-top, 0px) + 64px); } }
.arranging .arr-fixed { opacity: .45; pointer-events: none; position: relative; }
.arranging .arr-fixed::after { content: "Fixed"; position: absolute; top: -11px; right: 16px; border: 1px solid var(--line); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 3px 10px; }
.arr-group { display: flex; flex-direction: column; gap: 14px; }
.arr-item { position: relative; border: 2px dashed var(--orange); border-radius: 24px; background: var(--bg); padding: 6px; touch-action: auto; }
.arr-item.dragging { z-index: 20; box-shadow: 0 16px 40px rgba(0, 0, 0, .22); border-style: solid; }
.arr-item.is-hidden .arr-preview { opacity: .3; filter: grayscale(1); }
.arr-bar { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; }
.arr-handle { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: grab; touch-action: none; display: grid; place-items: center; }
.arr-handle:active { cursor: grabbing; }
.arr-handle svg { fill: currentColor; }
.arr-title { flex: 1; min-width: 0; display: grid; }
.arr-title b { font-weight: 650; }
.arr-arrows { display: flex; gap: 4px; flex: none; }
.arr-arrows button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.arr-arrows button[disabled] { opacity: .3; cursor: default; }
.arr-eye { flex: none; border: 0; border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: .82rem; cursor: pointer; background: var(--brand); color: #fff; }
.arr-eye.off { background: var(--surface-2); color: var(--muted); }
.arr-preview { pointer-events: none; max-height: 260px; overflow: hidden; border-radius: 18px; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.arr-preview > * { margin: 0 !important; }
.arr-empty { padding: 10px 14px 14px; }
.arranging .arr-group, .arranging .arr-fixed { -webkit-user-select: none; user-select: none; }
/* Instalment plans inside one account */
.plansedit { display: grid; gap: 10px; }
.planrow { border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.planrow .planfoot { grid-column: 1 / -1; margin: 0; }
.fields > .span, .fields > .plansedit { grid-column: 1 / -1; }
.planrow { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); align-items: start; }
@media (max-width: 700px) { .planrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .planrow > .f:first-of-type { grid-column: 1 / -1; } }
.plansedit > p.small.strong { margin-bottom: -4px; }

/* The plan reveal, straight after set-up: the debt-free date, big, on green.
   The date uses its own small Fraunces file (month names and digits only, heavy and soft, like the logo). */
.reveal { position: relative; background: var(--brand); color: #fff; box-shadow: var(--lift); text-align: center; padding: 30px 22px 30px;
  margin: -28px calc(-1 * max(20px, env(safe-area-inset-left))) 22px; border-radius: 0 0 32px 32px; }
.reveal .kick { color: var(--butter); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; }
.reveal .pre { color: #e3f1f3; margin-top: 8px; }
.reveal .revdate { font-family: "Fraunces Date", var(--logo), Georgia, serif; font-weight: 900; color: var(--lemon); font-size: clamp(2.1rem, calc(138vw / var(--n, 11)), 4.8rem);
  line-height: 1.12; letter-spacing: -0.01em; margin: 10px auto 14px; white-space: nowrap; max-width: none;
  text-shadow: 1px 1px 0 var(--orange), 2px 2px 0 var(--orange), 3px 3px 0 var(--orange), 4px 4px 0 var(--orange); }
.reveal .sub { color: #e3f1f3; margin: 10px auto 0; max-width: 34ch; line-height: 1.45; }
.reveal .revbtn { background: var(--lemon); color: #0e3b2c; border-color: var(--lemon); margin-top: 22px; }
.reveal .revbtn:hover { background: #ffe36b; }
.reveal :focus-visible { outline-color: var(--lemon); }
.revsteps { display: flex; justify-content: center; position: relative; list-style: none; padding: 0; margin: 24px auto 0; max-width: 560px; }
.revsteps::before { content: ""; position: absolute; left: 16%; right: 16%; top: 7px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.revsteps li { position: relative; flex: 1; min-width: 0; display: grid; gap: 1px; padding: 0 4px; font-size: .8rem; color: #e3f1f3; }
.revsteps .dotmark { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--butter); margin: 0 auto 6px; box-shadow: 0 0 0 4px var(--brand); }
.revsteps li.buf .dotmark { background: var(--brand); border: 3px solid var(--butter); box-sizing: border-box; }
.revsteps li.more .dotmark { background: rgba(255, 255, 255, .55); width: 10px; height: 10px; margin: 3px auto 9px; }
.revsteps .pname { color: #fff; font-weight: 650; font-size: .86rem; overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .reveal { margin: 0 0 24px; border-radius: 32px; padding: 52px 28px 48px; }
}

/* The tour offer: a speech bubble under the reveal, everything else dimmed. */
.offer { position: fixed; inset: 0; z-index: 60; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.offer.shown { opacity: 1; pointer-events: auto; }
.offer .tour-shield { cursor: pointer; }
.offer-ring { position: fixed; pointer-events: none; box-shadow: 0 0 0 9999px rgba(6, 26, 19, .58); }
.offer-pop { position: fixed; transform: translate(-50%, 8px); width: min(calc(100vw - 32px), 400px); box-sizing: border-box; padding: 22px 22px 18px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 48px rgba(0, 0, 0, .3); transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.offer.shown .offer-pop { transform: translate(-50%, 0); }
.offer-pop.pointer::before { content: ""; position: absolute; top: -9px; left: 50%; margin-left: -11px; width: 22px; height: 22px; background: var(--surface); transform: rotate(45deg); border-radius: 4px; }
.offer-pop h2 { position: relative; margin: 0 28px 6px 0; font-size: 1.25rem; }
.offer-pop p { position: relative; margin: 0; line-height: 1.5; }
.offer-actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.offer-x { position: absolute; top: 10px; right: 10px; z-index: 1; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.offer-x:hover { background: var(--line); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .offer, .offer-pop { transition: none; } }

/* Tour and tour offer: the page can't scroll underneath. Dragging stretches it a little (--tour-pull)
   and it springs back; the page, the ring and the card all move by the same amount. */
html.tour-locked, html.tour-locked body { overscroll-behavior: none; }
html.tour-pulling main, html.tour-pulling .tour-card, html.tour-pulling .offer-pop { translate: 0 var(--tour-pull, 0px); }
/* The ring follows the stretch through CSS, but never past the header or the bottom of the screen. */
.stretchring { --p: var(--tour-pull, 0px); top: max(var(--f), calc(var(--t) + var(--p)));
  height: max(0px, calc(min(var(--c), calc(var(--b) + var(--p))) - max(var(--f), calc(var(--t) + var(--p))))); }
.stretchring.pinned { --p: 0px; }
html.tour-pulling .stretchring { transition: none; }
html.tour-spring main { transition: translate .42s cubic-bezier(.22, 1.3, .36, 1); }
html.tour-spring .stretchring { transition: top .42s cubic-bezier(.22, 1.3, .36, 1), height .42s cubic-bezier(.22, 1.3, .36, 1); }
html.tour-spring .tour-card { transition: translate .42s cubic-bezier(.22, 1.3, .36, 1), opacity .22s ease, transform .3s cubic-bezier(.22, 1, .36, 1); }
html.tour-spring .offer-pop { transition: translate .42s cubic-bezier(.22, 1.3, .36, 1), transform .35s cubic-bezier(.22, 1, .36, 1); }

/* Tips and reminders ("Keep your plan safe", the first-visit tip, the payday check-in, "Get the Whittle app"):
   a soft green gradient card, lifted like the others, with a yellow icon by the title. Full butter is kept
   for happy moments (recap, milestones, "Your year"). */
.nudge, .tipcard, .checkincard, .installcard { background: var(--note-bg); border: 1px solid var(--note-edge); box-shadow: var(--lift); }
.nudge .btn.outline, .tipcard .btn.outline, .checkincard .btn.outline, .installcard .btn.outline { border-color: rgba(12, 88, 102, .35); }
@media (prefers-color-scheme: dark) {
  .nudge .btn.outline, .tipcard .btn.outline, .checkincard .btn.outline, .installcard .btn.outline { border-color: rgba(255, 255, 255, .25); }
}
.nudge h2, .tipcard h2, .checkincard h2 { display: flex; align-items: center; gap: 12px; position: relative; }
.nudge h2::before, .tipcard h2::before, .checkincard h2::before { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--butter); }
.nudge h2::after, .tipcard h2::after, .checkincard h2::after { content: ""; position: absolute; left: 8px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  background: #0f2f38; -webkit-mask: var(--note-icon) center / contain no-repeat; mask: var(--note-icon) center / contain no-repeat; }
.tipcard { --note-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9%2018h6%27/%3E%3Cpath%20d%3D%27M10%2022h4%27/%3E%3Cpath%20d%3D%27M12%202a7%207%200%200%200-4%2012.7c.6.5%201%201.3%201%202.3h6c0-1%20.4-1.8%201-2.3A7%207%200%200%200%2012%202z%27/%3E%3C/svg%3E"); }
.nudge { --note-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%2022s8-4%208-10V5l-8-3-8%203v7c0%206%208%2010%208%2010z%27/%3E%3Cpath%20d%3D%27m9%2012%202%202%204-4%27/%3E%3C/svg%3E"); }
.checkincard { --note-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%274%27%20width%3D%2718%27%20height%3D%2718%27%20rx%3D%272%27/%3E%3Cpath%20d%3D%27M16%202v4M8%202v4M3%2010h18%27/%3E%3Cpath%20d%3D%27m9%2016%202%202%204-4%27/%3E%3C/svg%3E"); }

/* The ocean band (Band.tsx): full width, behind the header and the page heading, sized to each page.
   The header is see-through over it and solid (.solid) once it has scrolled away. */
.band { position: absolute; left: 0; right: 0; top: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--band); }
/* Moving layers (Band.tsx): the glow breathes over 14s each way, the lines drift over 48s each way. Slow on purpose. */
.band > i { position: absolute; inset: -40px; display: block; pointer-events: none; will-change: transform; }
.band .bglow { background: url("/img/band-glow.svg") center / cover no-repeat; animation: bandglow 14s ease-in-out infinite alternate; }
.band .blines { background: url("/img/band-lines.svg") center / cover no-repeat; animation: banddrift 48s ease-in-out infinite alternate; }
@keyframes bandglow { from { opacity: .7; transform: scale(1); } to { opacity: 1; transform: scale(1.08); } }
@keyframes banddrift { from { transform: translate3d(-26px, 4px, 0); } to { transform: translate3d(26px, -6px, 0); } }
@media (prefers-reduced-motion: reduce) { .band > i { animation: none; } }
/* The header's copy of the band, shown only while the page is scrolled but the band hasn't gone yet. */
.hslice { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; visibility: hidden; }
header.top.sliced .hslice { visibility: visible; }
header.top.solid .hslice { visibility: hidden; }
.hband { position: absolute; left: 0; top: 0; right: auto; z-index: 0; }
header.top.solid { background: var(--band); box-shadow: 0 1px 0 rgba(0, 0, 0, .12), 0 6px 18px rgba(6, 30, 38, .18); }
@media (max-width: 900px) { .band[data-mode="reveal"] { border-radius: 0 0 32px 32px; } }
@media print { .band { display: none; } header.top { background: none; } }
main .page > .pagehead.onband h1, main .page > .pagehead.onband .lead, main .page > .pagehead.onband p:not(.eyebrow) { color: #ffffff; }
main .page > .pagehead.onband .lead { color: #d9ecef; }
main .page > .pagehead.onband .eyebrow { color: var(--lemon); }
main .page > .pagehead.onband .btn:not(.outline) { background: var(--lemon); color: #0f2f38; border-color: var(--lemon); }
main .page > .pagehead.onband .btn.outline { color: #ffffff; border-color: rgba(255, 255, 255, .6); background: transparent; }
main .page > .pagehead.onband .link, main .page > .pagehead.onband a { color: #ffffff; }
/* Notices above a page sit on the band, so they get a card of their own. */
main > .banner { box-shadow: var(--lift); }
/* The plan reveal sits straight on the band. */
.reveal { background: none !important; box-shadow: none !important; }
@media (min-width: 900px) { .reveal { padding: 34px 28px 40px; } }
/* Set-up's welcome card wears the band too. */
.obhero { background: url("/img/band.svg") center / cover no-repeat, var(--band); }
.obhero .obpromise { color: #e3f1f3; }

/* Standalone white boxes sit on the page like cards, so they get the same lift. */
.keyfigs > div, .choice, .wellbeing, .budgetcheck, .donestats div { box-shadow: var(--lift); }

/* Phone tab bar: a floating glass pill (Vinted / iOS style). Light mode: dark ocean glass; dark mode: deep glass
   with a light edge. Yellow pill for the current tab. Solid when "Reduce transparency" is on. */
@media (max-width: 820px) {
  .top .tabs { left: max(14px, env(safe-area-inset-left)); right: max(14px, env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding: 6px; border-radius: 999px; background: rgba(7, 44, 57, .62); border: 1px solid rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 30px rgba(6, 30, 38, .3); }
  .top .tabs button, .top .tabs .tabpill { border-radius: 999px; }
  .top .tabs button:not([aria-current="page"]) { text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
  body:has(.top .tabs) { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 820px) and (prefers-color-scheme: dark) {
  .top .tabs { background: rgba(20, 40, 48, .38); border-color: rgba(255, 255, 255, .2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 30px rgba(0, 0, 0, .45); }
  .top .tabs button { color: #cfe3e6; }
  .top .tabs button[aria-current="page"] { color: #0f2f38; }
}
@media (max-width: 820px) and (prefers-reduced-transparency: reduce) {
  .top .tabs { background: #0a3a4a; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* "Your progress" (History.tsx): the year in numbers, then the chart and each month. */
.yearcard { margin-bottom: 14px; display: grid; gap: 8px; }
.yearcard p { margin: 0; }
.yearhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.yearhead h2 { margin: 0; }
.yearpick { display: flex; gap: 6px; }
.yearstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 6px 0 6px; }
.yearstats div { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.yearstats dt { font-size: .8rem; color: var(--muted); }
.yearstats dd { margin: 4px 0 0; font-size: 1.4rem; font-weight: 750; letter-spacing: -0.02em; }
.histtitle { margin: 22px 0 2px; font-size: 1.1rem; }
.histhint { margin: 0 0 10px; }
.histyear { margin: 8px 2px 0; font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #ffffff; }
@media (max-width: 420px) { .yearstats div { padding: 10px 12px; } .yearstats dd { font-size: 1.15rem; } .yearstats dt { font-size: .74rem; } }

/* "Your journey to £0" on "Your progress": a bar for how far along, and the line of what you owe heading to £0. */
.journeycard { margin-bottom: 14px; }
.journeycard h2 { margin: 0 0 2px; }
.journey { position: relative; height: 16px; border-radius: 99px; background: var(--surface-2); margin: 14px 0 6px; overflow: hidden; }
.jfill { position: absolute; inset: 0 auto 0 0; background: var(--progress); border-radius: 99px; min-width: 16px; }
.jline { margin-top: 14px; }
.jline svg { display: block; }
.jzero { stroke: var(--line); stroke-dasharray: 4 4; }
.jdot { fill: var(--surface); stroke: var(--brand); stroke-width: 2; }
.jval { font-size: 12px; font-weight: 700; fill: var(--ink); }
.jlab { font-size: 12px; fill: var(--muted); }

/* The year card: white like the other cards, with a yellow star badge by the title (as tips have their icons). */
.yearcard h2 { display: flex; align-items: center; gap: 12px; position: relative; }
.yearcard h2::before { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--butter); }
.yearcard h2::after { content: ""; position: absolute; left: 8px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: #0f2f38;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27m12%203%202.7%205.6%206.1.9-4.4%204.3%201%206.1L12%2017l-5.4%202.9%201-6.1-4.4-4.3%206.1-.9z%27/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27m12%203%202.7%205.6%206.1.9-4.4%204.3%201%206.1L12%2017l-5.4%202.9%201-6.1-4.4-4.3%206.1-.9z%27/%3E%3C/svg%3E") center / contain no-repeat; }

/* "About Whittle" */
.about { display: grid; gap: 14px; max-width: 720px; }
.about .card p + p { margin-top: 10px; }
.aboutlist { margin: 6px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.aboutlist li { line-height: 1.5; }
.about .card > .small.muted, .about .card > .small:last-child { margin-top: 12px; }


/* Header menu (Menu.tsx): every screen that isn't a main tab */
.menubtn { order: 2; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); display: grid; place-items: center; cursor: pointer; padding: 0; }
.menubtn:hover { background: rgba(255, 255, 255, .16); }
.menubtn:focus-visible { outline: 3px solid var(--lemon); outline-offset: 2px; }
.menubtn span, .menubtn span::before, .menubtn span::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: #fff; position: relative; content: ""; transition: transform .2s ease, background-color .2s ease, top .2s ease; }
.menubtn span::before { position: absolute; top: -5px; } .menubtn span::after { position: absolute; top: 5px; }
.menubtn.on { background: #fff; border-color: #fff; }
.menubtn.on span { background: transparent; }
.menubtn.on span::before { top: 0; transform: rotate(45deg); background: var(--brand); }
.menubtn.on span::after { top: 0; transform: rotate(-45deg); background: var(--brand); }
@media (min-width: 821px) { .menubtn { order: 4; } }
.mscrim { position: fixed; inset: 0; background: rgba(6, 30, 38, .28); z-index: 30; animation: mfade .18s ease; }
.mdrop { position: fixed; z-index: 31; top: calc(env(safe-area-inset-top, 0px) + 62px); right: max(12px, env(safe-area-inset-right, 0px)); width: min(340px, calc(100vw - 24px)); max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 80px); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--ink); border-radius: 20px; padding: 8px; box-shadow: 0 2px 4px rgba(15, 47, 56, .08), 0 18px 48px rgba(15, 47, 56, .22); transform-origin: top right; animation: mdrop .2s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 1100px) { .mdrop { right: calc((100vw - 1080px) / 2); } }
.mg + .mg { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.mgh { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--eyebrow); font-weight: 700; margin: 8px 12px 2px; }
.mi.cur { background: var(--surface-2); } .mi.cur > span::after { content: "You\2019re here"; margin-left: 8px; font-size: .72rem; font-weight: 600; color: var(--muted); }
.mi { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; background: none; border: 0; padding: 11px 12px; border-radius: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.mi:hover, .mi:focus-visible { background: var(--surface-2); outline: none; }
.mi > span { font-weight: 600; font-size: .95rem; }
.mi i { font-style: normal; color: var(--muted); font-size: 1.3rem; line-height: 1; }
@keyframes mdrop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes mfade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mdrop, .mscrim { animation: mfade .15s ease; } .menubtn span, .menubtn span::before, .menubtn span::after { transition: none; } }

/* "About Whittle" extras */
.aboutuk { margin-top: 10px; font-size: .9rem; font-weight: 600; opacity: .9; }
.aboutquote { margin: 10px 0; padding: 8px 4px; }
.aboutquote p { font-size: clamp(1.35rem, 4.6vw, 1.8rem); line-height: 1.25; font-weight: 750; letter-spacing: -.01em; color: var(--brand); text-wrap: balance; margin: 0; }
.aboutquote p::before { content: "\201C"; display: block; font-size: 3rem; line-height: .6; color: var(--butter); margin-bottom: 6px; }
.aboutstart { margin-top: 22px; display: grid; gap: 12px; justify-items: start; }
.obstory { margin-top: 12px; font-size: .95rem; }
.obstory .link { color: var(--lemon); font-weight: 700; }


/* "Building your plan" (Building.tsx): between "Create my plan" and the reveal. The lemon "w" with rings rippling out
   from it, and the checklist underneath. */
.building { position: fixed; inset: 0; z-index: 60; display: grid; align-content: center; justify-items: center; gap: 26px; color: #fff; cursor: default;
  background: var(--band); background-color: var(--band-1);
  padding: max(24px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
  animation: bfade .25s ease; }
.buildsvg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.buildsvg path { fill: none; stroke: #fff; stroke-width: 1.5; stroke-opacity: 0; transform-origin: 200px 300px; animation: bring 2.6s ease-out infinite; animation-delay: calc(var(--k) * .3s - 2.6s); }
@keyframes bring { 0% { transform: scale(.55); stroke-opacity: 0; } 25% { stroke-opacity: .22; } 100% { transform: scale(1.25); stroke-opacity: 0; } }
.building .buildw { position: relative; font-size: 9.5rem; line-height: 1; filter: drop-shadow(0 0 40px rgba(255, 217, 59, .28)); animation: bbreathe 1.6s ease-in-out infinite alternate; }
@keyframes bbreathe { to { transform: scale(1.06); } }
.buildinner { position: relative; width: min(340px, 100%); display: grid; gap: 18px; }
.building h1 { color: #fff; font-size: 1.7rem; letter-spacing: -.01em; margin: 0; }
.buildsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.buildsteps li { display: flex; align-items: center; gap: 12px; font-size: 1.02rem; white-space: nowrap; color: rgba(255, 255, 255, .45); transition: color .3s ease; }
.buildsteps li.now, .buildsteps li.done { color: #fff; }
.buildsteps .btick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); display: grid; place-items: center; transition: background-color .25s ease, border-color .25s ease; }
.buildsteps li.now .btick { border-color: rgba(255, 255, 255, .25); border-top-color: var(--lemon); animation: bspin .8s linear infinite; }
.buildsteps li.done .btick { background: var(--lemon); border-color: var(--lemon); }
.buildsteps li.done .btick::after { content: ""; width: 9px; height: 5px; border-left: 2.5px solid #0f2f38; border-bottom: 2.5px solid #0f2f38; transform: translateY(-1px) rotate(-45deg); animation: bpop .25s ease; }
@keyframes bspin { to { transform: rotate(360deg); } }
@keyframes bpop { from { transform: translateY(-1px) rotate(-45deg) scale(.3); opacity: 0; } }
@keyframes bfade { from { opacity: 0; } }
@media (max-width: 360px) { .buildsteps li { white-space: normal; } .building .buildw { font-size: 7.5rem; } }
@media (prefers-reduced-motion: reduce) {
  .buildsvg path { animation: none; stroke-opacity: .15; }
  .buildw, .buildsteps li.done .btick::after { animation: none; }
  .buildsteps li.now .btick { animation: none; border-color: var(--lemon); }
}


/* ---------- Motion moments (November 2026) ---------- */
/* Rings (motion.tsx): grain round a knot in wood, white on the band */
.rings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rings path { fill: none; stroke: #fff; stroke-width: 1.5; stroke-opacity: 0; }
.rings-once path, .rings-splash path { animation: ringout 2.2s ease-out both; animation-delay: calc(var(--k) * .12s); }
.rings-splash path { transform-origin: 200px 430px; animation-delay: calc(.25s + var(--k) * .12s); }
.rings-loop path { animation: ringout 2.6s ease-out infinite; animation-delay: calc(var(--k) * .3s - 2.6s); }
.rings-slow path { animation: ringout 3.2s ease-out infinite; animation-delay: calc(var(--k) * .36s - 3.2s); }
@keyframes ringout { 0% { transform: scale(.5); stroke-opacity: 0; } 25% { stroke-opacity: .22; } 100% { transform: scale(1.3); stroke-opacity: 0; } }

/* After recording a month (Moment.tsx) */
.moment { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; color: #fff; text-align: center; background: var(--band); background-color: var(--band-1); overflow: hidden;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); animation: mfade .3s ease; }
html.moment-open { overflow: hidden; }
.momentbody { position: relative; display: grid; justify-items: center; gap: 8px; width: min(360px, 100%); }
.bigtick { width: 64px; height: 64px; border-radius: 50%; background: var(--lemon); display: grid; place-items: center; position: relative; overflow: hidden; margin-bottom: 8px; animation: tickin .5s cubic-bezier(.3, 1.5, .5, 1) .1s both; }
.bigtick svg { width: 30px; } .bigtick path { fill: none; stroke: #0f2f38; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: tickdraw .4s ease .45s forwards; }
.bigtick::after { content: ""; position: absolute; top: -20%; left: -70%; width: 40%; height: 140%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent); transform: skewX(-20deg); animation: glint .7s ease 2s both; }
@keyframes tickin { from { transform: scale(.4); opacity: 0; } }
@keyframes tickdraw { to { stroke-dashoffset: 0; } }
@keyframes glint { from { left: -70%; } to { left: 130%; } }
.momentsub { color: #d9ecee; margin: 0; }
.momentowed { font-size: clamp(2.4rem, 11vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.1; font-variant-numeric: tabular-nums; }
.momentoff { color: var(--lemon); font-weight: 750; font-size: 1.1rem; margin: 0; animation: risein .45s ease 1.95s both; }
@keyframes risein { from { opacity: 0; transform: translateY(8px); } }
.momentcleared { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.momentcleared li { display: flex; align-items: center; gap: 10px; background: #fff1c9; color: #0f2f38; border-radius: 14px; padding: 12px 14px; text-align: left; animation: risein .4s ease calc(2.3s + var(--i) * .25s) both; }
.mcname { font-weight: 700; flex: 1; }
.mcwas { position: relative; font-weight: 700; }
.mcwas::after { content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 2px; background: #0f2f38; transform: scaleX(0); transform-origin: left; animation: strike .45s cubic-bezier(.6, 0, .3, 1) calc(2.7s + var(--i) * .25s) forwards; }
@keyframes strike { to { transform: scaleX(1); } }
.mctag { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #0f2f38; color: var(--lemon); border-radius: 999px; padding: 3px 9px; animation: tagpop .3s cubic-bezier(.3, 1.6, .5, 1) calc(3.1s + var(--i) * .25s) both; }
@keyframes tagpop { from { opacity: 0; transform: scale(.5); } }
.moment .btn.lemon { background: var(--lemon); color: #0f2f38; border-color: var(--lemon); }
.moment .btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); }
.momentdone { margin-top: 20px; min-width: 140px; animation: risein .4s ease 2.2s both; }
.momentbtns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
/* Debt-free day */
.moment.free .momentbody { animation: risein .7s ease .3s both; }
.moment.free h1 { color: #fff; font-size: clamp(1.8rem, 8vw, 2.4rem); margin: 6px 0 0; letter-spacing: -.01em; }
.moment.free p { color: #d9ecee; margin: 0; max-width: 30ch; }
.moment .momentw { position: relative; font-size: 7.5rem; line-height: 1; filter: drop-shadow(0 0 40px rgba(255, 217, 59, .3)); }
.flakes i { position: absolute; bottom: -12px; width: 8px; height: 8px; border-radius: 2px; opacity: 0; animation: flake var(--t) ease-in var(--dl) infinite; }
@keyframes flake { 0% { opacity: 0; transform: translateY(0) rotate(0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(-105vh) translateX(var(--x)) rotate(300deg); } }

/* The chart draws itself in, left to right */
.drawin { animation: drawin 1.5s cubic-bezier(.45, 0, .2, 1) .2s both; }
@keyframes drawin { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* While an account loads: butter shimmer in the shape of the page */
.card.loadshape, .pagehead.loadshape > div { display: grid; }
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 0%, #fff3cc 40%, var(--surface-2) 80%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; }
.pagehead.loadshape.onband .sk { background: linear-gradient(90deg, rgba(255, 255, 255, .12) 0%, rgba(255, 217, 59, .28) 40%, rgba(255, 255, 255, .12) 80%); background-size: 300% 100%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@media (prefers-color-scheme: dark) { .sk { background-image: linear-gradient(90deg, var(--surface-2) 0%, #2c3a2a 40%, var(--surface-2) 80%); } }

@media (prefers-reduced-motion: reduce) {
  .rings path { animation: none !important; stroke-opacity: .12; }
  .moment, .bigtick, .bigtick path, .bigtick::after, .momentoff, .momentcleared li, .mcwas::after, .mctag, .momentdone, .moment.free .momentbody, .flakes i, .drawin, .sk, .pop .payrow { animation: none !important; }
  .bigtick path { stroke-dashoffset: 0; } .mcwas::after { transform: none; } .flakes { display: none; }
  .tick path { transition: none; }
}


/* ---------- Review batch (30 November 2026) ---------- */
/* Small "Back" above the heading on one-page screens (on the band) */
.backtop { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.backtop:hover { background: rgba(255, 255, 255, .22); }
.backtop span { font-size: 1.2rem; line-height: 1; margin-top: -2px; }
/* Tinted buttons in place of small text links */
.tbtn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); color: var(--brand); }
.tbtn.plain { border-color: var(--line); background: var(--surface-2); color: var(--muted); }
.tbtn:disabled { opacity: .45; cursor: default; }
@media (prefers-color-scheme: dark) { .tbtn { color: var(--eyebrow); background: color-mix(in srgb, var(--eyebrow) 12%, var(--surface)); border-color: color-mix(in srgb, var(--eyebrow) 28%, transparent); } }
/* Debt type as choices */
.typechips .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.typechips .chip { min-height: 40px; font-weight: 600; }
.typechips .f { margin-top: 10px; }
/* "Something changed?" groups */
.changegroup + .changegroup { margin-top: 6px; }
.grouphead { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--eyebrow); font-weight: 700; margin: 18px 2px 10px; }
.hardchoice { margin-top: 18px; background: var(--warn-bg); border-color: var(--warn-line); }
.hardchoice b { color: var(--ink); }
@media (min-width: 821px) { .choices.changes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } }
/* "More detail" on "Plan" */
.moredetail { width: 100%; display: grid; gap: 2px; text-align: center; padding: 16px; border-radius: 16px; border: 1.5px dashed var(--line); background: transparent; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; }
.moredetail span { font-weight: 400; font-size: .85rem; color: var(--muted); }
@media (prefers-color-scheme: dark) { .moredetail { color: var(--eyebrow); } }
/* Recap footer */
.recfoot { margin-top: 8px; }
/* "Ask" for guests */
.askex { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 8px; }
.askex li { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: .95rem; }
.askans { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--butter); padding: 2px 0 2px 12px; margin: 0; }
.askans b { color: var(--ink); }
/* Adviser summary on phones: each debt as a compact block, figures in a row */
@media (max-width: 560px) {
  .sumtable { min-width: 0; font-size: .9rem; }
  .sumtable thead { display: none; }
  .sumtable tr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .sumtable th, .sumtable td { border: 0; padding: 0; text-align: left; white-space: normal; }
  .sumtable tr > th { grid-column: 1 / -1; margin-bottom: 4px; }
  .sumtable tbody th .tiny { display: inline; margin-left: 6px; }
  .sumtable td::before { content: attr(data-l); display: block; font-size: .72rem; color: var(--muted); font-weight: 400; }
  .sumtable td.empty, .sumtable td:empty { visibility: hidden; }
  .tablewrap { overflow: visible; }
}
.changegroup:first-of-type .grouphead { margin-top: 28px; }


/* ---------- 1 December 2026 polish ---------- */
/* Buttons that show they're working */
.btn[aria-busy="true"] { position: relative; cursor: progress; }
.btn[aria-busy="true"]::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: bspin .7s linear infinite; }
/* Empty screens: the rings and the "w" on a small band */
.emptyart { position: relative; overflow: hidden; display: grid; place-items: center; gap: 4px; min-height: 220px; border-radius: 20px; background: var(--band); background-color: var(--band-1); color: #d9ecee; text-align: center; padding: 24px; }
.emptyart .logo.big { position: relative; font-size: 5rem; line-height: 1; filter: drop-shadow(0 0 30px rgba(255, 217, 59, .25)); }
.emptyart p { position: relative; margin: 0; font-weight: 600; }
/* Slightly larger small print, and a touch darker grey in light mode */
.tiny { font-size: .82rem; }
:root { --muted: #43565d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --muted: #9fb6bb; } }
:root[data-theme="dark"] { --muted: #9fb6bb; }
@media (prefers-reduced-motion: reduce) { .btn[aria-busy="true"]::before { animation: none; border-right-color: currentColor; opacity: .6; } }


/* "You're not alone" (Together.tsx) */
.togcard h2 { margin: 0; }
.tots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 4px; }
.tots div { background: var(--surface-2); border-radius: 14px; padding: 10px; display: grid; gap: 2px; min-width: 0; }
.tots b { font-size: 1.2rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tots span { font-size: .78rem; color: var(--muted); line-height: 1.25; }
.togband { position: relative; overflow: hidden; border-radius: 20px; background: var(--band); background-color: var(--band-1); color: #fff; padding: 18px 16px; display: grid; gap: 4px; }
.togband p { margin: 0; color: #d9ecee; } .togband .big { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.togband .togmore { margin-top: 6px; }
.togband .sk { background: rgba(255, 255, 255, .14); }
.wins { display: grid; gap: 8px; margin-top: 12px; }
.win { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 11px 12px; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s; }
.win .ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 10%, var(--surface)); color: var(--brand); transition: background-color .2s, color .2s; }
.win .tx { flex: 1; font-weight: 600; font-size: .95rem; } .win .tx small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.win .ct { font-weight: 700; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.win.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.win.on .ic { background: var(--lemon); color: #0f2f38; animation: tickpop .4s cubic-bezier(.3, 1.5, .5, 1); }
.win.on .ct { color: var(--brand); }
@media (prefers-color-scheme: dark) { .win .ic { color: var(--eyebrow); background: color-mix(in srgb, var(--eyebrow) 12%, var(--surface)); } .win.on { border-color: var(--eyebrow); } .win.on .ct { color: var(--eyebrow); } }
.privline { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.switchrow { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 600; cursor: pointer; }
.switchrow input { width: 20px; height: 20px; accent-color: var(--brand); }
.warntext { color: var(--warn-ink); margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .win.on .ic { animation: none; } }

/* Even columns (December 2026): on wider screens both columns of "This month" and "Plan" end on the same line.
   The shorter column shares the extra height between all its cards (a little each, never one big gap),
   and each card uses it well: last line (usually a link) at the bottom, big figures centred, answer boxes taller. */
.cardfoot { margin-top: 8px; }
.recmonths .cardfoot { margin-top: 6px; }
.plandetail { margin-top: 20px; }
.plandetail:empty { display: none; }
@media (min-width: 821px) {
  .monthgrid { align-items: stretch; }
  .monthgrid > .recslot { display: flex; flex-direction: column; gap: 20px; }
  .monthgrid > .card:first-child { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; }
  .monthgrid:has(> .recslot:empty) > .card:first-child { grid-row: 1 / span 2; }
  /* An empty slot must not sit on top of the payments card (it would block taps on the ticks). */
  .monthgrid > .recslot:empty { display: none; }
  .monthgrid > .card:first-child > .payfoot { margin-top: auto; }
  .monthgrid > .stack > *, .monthgrid > .recslot > * { flex-grow: 1; }
  .monthgrid > .stack > .card, .monthgrid > .recslot > .card { display: flex; flex-direction: column; }
  .monthgrid > .stack > .card > :last-child, .monthgrid > .recslot > .card > :last-child { margin-top: auto; padding-top: 8px; }
  .monthgrid > .stack > .hero { justify-content: center; }
  /* Progress: the ring and figure sit in the middle of any extra room. */
  .monthgrid > .stack > [data-tour="progress"] > .mark-progress { margin-block: auto; }
  .monthgrid > .stack > [data-tour="progress"] > :last-child { margin-top: 0; padding-top: 0; }
}
@media (min-width: 900px) {
  .plangrid { align-items: stretch; }
  .plangrid > .stack > * { flex-grow: 1; }
  .plangrid > .stack > .settings { flex-grow: 0; }
  .plangrid > .stack > .card { display: flex; flex-direction: column; }
  .plangrid > .stack > .card > :last-child { margin-top: auto; padding-top: 8px; }
  /* The chart on its own in a column: centred, so any extra room is shared above and below. */
  .plangrid > .stack > .card:only-child { justify-content: center; }
  .plangrid > .stack > .card:only-child > :last-child { margin-top: 0; }
  /* "Find extra money" as a slim full-width strip: words on the left, link on the right. */
  .plandetail > .findcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; }
  .plandetail > .findcard > h2 { grid-column: 1; }
  .plandetail > .findcard > p:not(.cardfoot) { grid-column: 1; }
  .plandetail > .findcard > .cardfoot { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .plangrid > .stack > .whatif .wiresult { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
}
.togcard { position: relative; overflow: hidden; }
.togcard > :not(.toggrain) { position: relative; }
.toggrain { position: absolute; right: -120px; bottom: -150px; width: 340px; height: 340px; fill: none; stroke: var(--brand); stroke-width: 1.4; opacity: .12; pointer-events: none; }
.togcard > .toggrain + h2 { margin-top: 0; }

/* "Your Whittle plan at a glance" (Glance.tsx): one fact from the person's own plan at a time; swipe or use the arrows. */
.glance .gsub { margin-top: 2px; }
.glance .gcount { font-variant-numeric: tabular-nums; white-space: nowrap; margin-right: 4px; }
.glance .ghead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.glance h2 { margin: 0; font-size: 1rem; }
.garrows { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.garrow { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--brand); display: grid; place-items: center; cursor: pointer; }
.garrow:hover { background: var(--note-bg, var(--bg)); }
.gtrack { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 10px -22px 0; outline: none; overscroll-behavior-x: contain; }
.gtrack::-webkit-scrollbar { display: none; }
.gslide { flex: 0 0 100%; scroll-snap-align: start; padding: 0 22px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gbig { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
.gtext { color: var(--ink); }
.gfoot { margin-top: auto; padding-top: 8px; }
.gfootrow { position: relative; display: flex; justify-content: center; align-items: center; margin-top: 14px; min-height: 24px; }
.gdots { display: flex; justify-content: center; gap: 6px; }
.gdots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .25s ease, background .25s ease; }
.gdots i.on { width: 18px; background: var(--brand); position: relative; overflow: hidden; }
/* While it's moving on by itself, the current dot fills up like a timer (GLANCE_MS in Glance.tsx). */
.glance.running .gdots i.on { background: var(--line); }
.glance.running .gdots i.on b { position: absolute; inset: 0; background: var(--brand); border-radius: inherit; transform-origin: left; animation: gfill 8s linear forwards; }
@keyframes gfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.gplay { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.gplay:hover { color: var(--brand); background: var(--bg); }
@media (prefers-color-scheme: dark) { .gdots i.on, .glance.running .gdots i.on b { background: var(--eyebrow); } .glance.running .gdots i.on { background: var(--line); } .garrow { color: var(--eyebrow); } }
@media (max-width: 599px) { .gtrack { margin: 10px -18px 0; } .gslide { padding: 0 18px; } .gbig { font-size: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { .gdots i { transition: none; } }
@media (max-width: 599px) { .glance .gcount { display: none; } }
@media (max-width: 380px) { .glance .garrows { display: none; } }
/* "You're not alone": the wood-grain rings in the corner ripple outwards very slowly, one after another. */
.toggrain path { transform-box: view-box; transform-origin: 50% 50%; animation: togripple 9s ease-in-out infinite; }
.toggrain path:nth-child(2) { animation-delay: -1.5s; } .toggrain path:nth-child(3) { animation-delay: -3s; }
.toggrain path:nth-child(4) { animation-delay: -4.5s; } .toggrain path:nth-child(5) { animation-delay: -6s; } .toggrain path:nth-child(6) { animation-delay: -7.5s; }
@keyframes togripple { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.05); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .toggrain path { animation: none; } }

/* ---------- Premium touches, batch 3 (2 December 2026). All off under "reduce motion" (block at the end). ---------- */
/* Everything you can tap gives a little when pressed. */
.garrow, .gplay, .tbtn, .typechips label, .win, .mi, .moredetail, .menubtn, .paychip, .chip, .seg button { transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), background-color .15s ease, box-shadow .2s ease, color .2s ease; }
.garrow:active, .gplay:active, .tbtn:active, .typechips label:active, .win:active, .moredetail:active, .menubtn:active, .chip:active, .seg button:active { transform: scale(.95); }
.mi:active { transform: scale(.985); }
/* Cards you can tap lift a little under the pointer on a computer. */
@media (hover: hover) {
  .moredetail:hover, .win:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 47, 56, .10); }
  .garrow:hover { transform: translateY(-1px); }
}
/* Cards further down rise into place the first time they come into view (useRiseIn in motion.tsx). */
[data-rise="wait"] { opacity: 0; transform: translateY(18px); }
[data-rise="in"] { opacity: 1; transform: none; transition: opacity .55s ease, transform .65s cubic-bezier(.2, .8, .2, 1); }
@media print { [data-rise] { opacity: 1 !important; transform: none !important; } }
/* The menu: springs open, rows arrive one after another. */
.mdrop { animation: mdrop .32s cubic-bezier(.34, 1.36, .64, 1); }
.mdrop .mi { animation: mirow .34s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 22ms + 40ms); }
@keyframes mirow { from { opacity: 0; transform: translateX(8px); } }
/* Links: the underline settles lower and bolder under the pointer. */
.link, main a { text-decoration-thickness: 1px; transition: text-underline-offset .2s ease, text-decoration-thickness .2s ease, color .2s ease, transform .18s cubic-bezier(.34, 1.56, .64, 1); }
@media (hover: hover) { .link:hover, main a:hover { text-underline-offset: 5px; text-decoration-thickness: 2px; } }
/* "This month": payment rows arrive one after another; the payday bar fills; the paid count flips; a soft shine
   crosses the record button once everything is ticked. */
.paylist > li { animation: rowin .5s cubic-bezier(.2, .8, .2, 1) both; }
.paylist > li:nth-child(2) { animation-delay: 60ms; } .paylist > li:nth-child(3) { animation-delay: 120ms; } .paylist > li:nth-child(4) { animation-delay: 180ms; }
.paylist > li:nth-child(5) { animation-delay: 240ms; } .paylist > li:nth-child(n + 6) { animation-delay: 300ms; }
@keyframes rowin { from { opacity: 0; transform: translateY(8px); } }
.paybar i, .planhero .bar i { transform-origin: left; animation: growx 1s cubic-bezier(.2, .8, .2, 1) .35s both; }
@keyframes growx { from { transform: scaleX(0); } }
.paycount .flip { display: inline-block; animation: flipin .35s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes flipin { from { opacity: 0; transform: translateY(-60%) rotateX(70deg); } }
.btn.ready { position: relative; overflow: hidden; }
.btn.ready::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%); transform: translateX(-110%); animation: shine 1.4s ease .25s 2; pointer-events: none; }
@keyframes shine { to { transform: translateX(110%); } }
/* "Plan": payoff steps arrive in order, each dot popping in; the "What if" date slides up as it changes; the chart's
   hover line and dot glide between months. */
.payoffsteps li { animation: rowin .5s cubic-bezier(.2, .8, .2, 1) both; }
.payoffsteps li:nth-child(1) { animation-delay: .15s; } .payoffsteps li:nth-child(2) { animation-delay: .35s; } .payoffsteps li:nth-child(3) { animation-delay: .55s; }
.payoffsteps li:nth-child(4) { animation-delay: .75s; } .payoffsteps li:nth-child(n + 5) { animation-delay: .95s; }
.payoffsteps li .dotmark { animation: dotpop .5s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: inherit; }
@keyframes dotpop { from { transform: scale(0); } 60% { transform: scale(1.35); } }
.wiresult .when .slideup { display: inline-block; animation: slideup .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes slideup { from { opacity: 0; transform: translateY(70%); } }
svg.chart .crosshair.glide, svg.chart .hoverdot.glide { transition: transform .16s cubic-bezier(.2, .8, .2, 1); }
.charttip.glide { transition: left .16s cubic-bezier(.2, .8, .2, 1); }
/* "Debts": a debt just added slides in and glows once; a cleared debt's name is crossed off with a drawn line. */
.editor.fresh { animation: freshin .5s cubic-bezier(.2, .8, .2, 1), freshglow 1.8s ease .2s; }
@keyframes freshin { from { opacity: 0; transform: translateY(12px) scale(.99); } }
@keyframes freshglow { 0% { box-shadow: 0 0 0 0 rgba(15, 108, 122, .35); } 40% { box-shadow: 0 0 0 6px rgba(15, 108, 122, .18); } 100% { box-shadow: 0 0 0 0 rgba(15, 108, 122, 0); } }
.crossed { position: relative; color: var(--muted); }
.crossed::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; border-radius: 2px; background: currentColor; transform-origin: left; animation: crossout .6s cubic-bezier(.6, 0, .3, 1) .25s both; }
@keyframes crossout { from { transform: scaleX(0); } }
/* "Plan": a milestone you haven't seen before shimmers once. */
.milestones li.new { position: relative; overflow: hidden; animation: dotpop .6s cubic-bezier(.34, 1.56, .64, 1) .3s both; }
.milestones li.new::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .8) 50%, transparent 70%); transform: translateX(-110%); animation: shine 1.1s ease .9s; pointer-events: none; }
/* "Ask Whittle": thinking dots, then the answer arrives a line at a time. */
.msg.thinking { display: inline-flex; align-items: center; gap: 10px; }
.msg .dots { display: inline-flex; gap: 4px; }
.msg .dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; animation: dotbob 1.1s ease-in-out infinite; }
.msg .dots i:nth-child(2) { animation-delay: .15s; } .msg .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dotbob { 0%, 60%, 100% { transform: none; opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg.cs:not(.thinking) > * { animation: rowin .45s cubic-bezier(.2, .8, .2, 1) both; }
.msg.cs > :nth-child(2) { animation-delay: .12s; } .msg.cs > :nth-child(3) { animation-delay: .24s; } .msg.cs > :nth-child(4) { animation-delay: .36s; }
.msg.cs > :nth-child(5) { animation-delay: .48s; } .msg.cs > :nth-child(n + 6) { animation-delay: .6s; }
/* Header: a tick draws itself on "Account" when a change has just been saved to the account. */
.acct .savedtick { width: 14px; height: 14px; margin-left: 6px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; animation: tickdraw .45s ease forwards, savedout .4s ease 1.8s forwards; }
@keyframes savedout { to { opacity: 0; } }
/* The moment after recording: a wood shaving curls away beside "whittled off". */
.momentoff { position: relative; }
.momentoff .shaving { position: absolute; left: -46px; top: -10px; width: 38px; height: 30px; fill: none; stroke: var(--lemon); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 110; stroke-dashoffset: 110; opacity: 0;
  animation: shavedraw .7s ease 2.05s forwards, shaveaway 1.6s cubic-bezier(.4, 0, .6, 1) 2.9s forwards; }
@keyframes shavedraw { from { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes shaveaway { from { opacity: 1; stroke-dashoffset: 0; transform: none; } to { opacity: 0; stroke-dashoffset: 0; transform: translate(-18px, 46px) rotate(-70deg) scale(.8); } }

/* Everything in this batch is still under "reduce motion". */
@media (prefers-reduced-motion: reduce) {
  [data-rise] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .mdrop .mi, .paylist > li, .paybar i, .planhero .bar i, .paycount .flip, .btn.ready::after, .payoffsteps li, .payoffsteps li .dotmark,
  .wiresult .when .slideup, .editor.fresh, .crossed::after, .milestones li.new, .milestones li.new::after, .msg .dots i, .msg.cs > *, .momentoff .shaving { animation: none !important; }
  .btn.ready::after, .momentoff .shaving, .milestones li.new::after { display: none; }
  .acct .savedtick { animation: none; stroke-dashoffset: 0; }
  svg.chart .crosshair.glide, svg.chart .hoverdot.glide, .charttip.glide { transition: none; }
  .moredetail:hover, .win:hover, .garrow:hover { transform: none; }
}

/* ---------- "About Whittle" (redesigned 2 December 2026): a designed page, not a stack of text boxes. ---------- */
.abhead { align-items: center; flex-wrap: nowrap; }
.abhead > div:first-child { max-width: 620px; }
.abpill { display: inline-block; margin-top: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: .85rem; font-weight: 650; border: 1px solid rgba(255, 255, 255, .22); }
.abmark { position: relative; flex: none; width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.abmark .logo.big { position: relative; font-size: 6.5rem; line-height: 1; filter: drop-shadow(0 0 34px rgba(255, 217, 59, .3)); }
@media (max-width: 700px) { .abmark { display: none; } }

.about { max-width: none; gap: 22px; }
.ab-kicker { font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 6px; }
.about h2 { font-size: 1.35rem; letter-spacing: -.01em; margin: 0 0 10px; text-wrap: balance; }
.about h3 { font-size: 1.02rem; margin: 12px 0 4px; }
.about p { line-height: 1.55; }

/* Story beside the quote. */
.ab-story { display: grid; gap: 22px; }
@media (min-width: 820px) { .ab-story { grid-template-columns: 1.25fr 1fr; align-items: stretch; } }
.ab-quote { position: relative; margin: 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 28px 28px 30px; background: var(--band); background-color: var(--band-1); color: #fff; display: flex; flex-direction: column; justify-content: center; overflow: hidden; box-shadow: var(--lift); }
.ab-quote::after { content: ""; position: absolute; inset: 0; background: url("/img/band-lines.svg") center / cover no-repeat; opacity: .55; pointer-events: none; }
.ab-quote .qmark { position: relative; font-family: var(--logo); font-weight: 900; font-size: 5rem; line-height: .7; color: var(--lemon); text-shadow: 3px 3px 0 var(--orange); }
.ab-quote p { position: relative; margin: 8px 0 0; font-size: clamp(1.4rem, 3.4vw, 1.9rem); line-height: 1.22; font-weight: 750; letter-spacing: -.015em; text-wrap: balance; }

/* What the name means. */
.ab-name { display: grid; gap: 18px; align-items: center; }
@media (min-width: 820px) { .ab-name { grid-template-columns: 1.1fr 1fr; } }
.ab-whittle { width: 100%; max-width: 360px; justify-self: center; }
.ab-whittle .base { stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.ab-whittle .blk { fill: var(--butter); }
.ab-whittle g:nth-child(3) .blk { fill: #f9cf5c; } .ab-whittle g:nth-child(4) .blk { fill: #fbdb7a; } .ab-whittle g:nth-child(5) .blk { fill: #fde69c; }
.ab-whittle .curl { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; }
.ab-whittle g { transform-box: fill-box; transform-origin: bottom; animation: abgrow .7s cubic-bezier(.34, 1.4, .64, 1) both; animation-delay: calc(var(--i) * .18s + .2s); }
@keyframes abgrow { from { opacity: 0; transform: scaleY(.2); } }

/* Beliefs as tiles. */
.ab-tiles { display: grid; gap: 14px; }
@media (min-width: 760px) { .ab-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ab-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--lift); }
.ab-tile p { margin: 0; color: var(--muted); font-size: .95rem; }
.ab-tile .ic, .ab-nots .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--note-bg); color: var(--brand); }
.ab-tile .ic svg { color: var(--brand); }

/* Promises: the one bold card on the page. */
.ab-promises { position: relative; overflow: hidden; border-radius: 24px; padding: 26px; background: var(--band); background-color: var(--band-1); color: #fff; box-shadow: var(--lift); }
.ab-promises::after { content: ""; position: absolute; inset: 0; background: url("/img/band-glow.svg") center / cover no-repeat; opacity: .8; pointer-events: none; }
.ab-promises > * { position: relative; z-index: 1; }
.ab-promises .ab-kicker { color: var(--lemon); }
.ab-promises ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 820px) { .ab-promises ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.ab-promises li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; color: #dcecee; }
.ab-promises li b { display: block; color: #fff; font-size: 1.08rem; margin-bottom: 4px; }
.ab-promises .tk { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lemon); color: #0f2f38; margin-top: 1px; }
.ab-promises .link { color: var(--lemon); }
.ab-fine { margin: 18px 0 0; font-size: .82rem; color: #b9d6da; }

/* What Whittle isn't: three short lines with icons. */
.ab-nots { display: grid; gap: 12px; }
@media (min-width: 760px) { .ab-nots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ab-nots > div { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.ab-nots p { margin: 0; font-size: .95rem; color: var(--muted); }
.ab-nots b { color: var(--ink); }
.ab-nots .ic { flex: none; width: 40px; height: 40px; background: var(--surface-2); color: var(--muted); }

/* What's next and advice, side by side. */
.ab-two { display: grid; gap: 22px; }
@media (min-width: 820px) { .ab-two { grid-template-columns: 1fr 1fr; } }
.ab-next { list-style: none; margin: 6px 0 14px; padding: 0 0 0 4px; display: grid; gap: 14px; position: relative; }
.ab-next::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--line)); border-radius: 2px; }
.ab-next li { position: relative; padding-left: 28px; line-height: 1.45; }
.ab-next li::before { content: ""; position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.ab-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.ab-social { display: inline-flex; flex-direction: column; line-height: 1.15; padding: 7px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; }
.ab-social small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.ab-social:hover { border-color: var(--brand); }
.ab-chip { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--note-bg); color: var(--brand); font-weight: 700; font-size: .9rem; text-decoration: none; border: 1px solid var(--line); }
.ab-chip:hover { border-color: var(--brand); }
.ab-sam { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { .ab-kicker, .ab-tile .ic svg { color: var(--eyebrow); } .ab-chip { color: var(--eyebrow); } }
@media (prefers-reduced-motion: reduce) { .ab-whittle g { animation: none; } }
.about .ab-sam a { color: var(--brand); font-weight: 650; }
@media (prefers-color-scheme: dark) { .about .ab-sam a { color: var(--eyebrow); } }
@media (max-width: 759px) {
  .ab-tile { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 16px 18px; }
  .ab-tile h3 { margin: 0; }
  .ab-tile p { grid-column: 1 / -1; margin-top: 10px; }
}
/* "Back up or move your plan" (Backup.tsx). */
.backup { display: grid; gap: 18px; max-width: 720px; }
.backup .card p + p { margin-top: 10px; }
.backupprev { margin: 14px 0 10px; padding: 14px 16px; border-radius: 14px; background: var(--note-bg); border: 1px solid var(--line); }
.backupprev p { margin: 0; } .backupprev p + p { margin-top: 4px; }

/* Page tops (2 December 2026): every page's heading gets the same pulsing lemon "w" with slow rings, top right,
   level with the heading (Band.tsx sets --mark-y and data-mark). Not on phones, the plan reveal, or headings that
   already have something on the right (like "Add a debt"). */
.bandmark { display: none; }
@media (min-width: 701px) {
  .band[data-mark="1"] .bandmark { display: grid; place-items: center; position: absolute; width: 150px; height: 150px; top: var(--mark-y); transform: translateY(-50%);
    right: max(20px, calc((100% - 1120px) / 2 + 20px)); border-radius: 50%; overflow: hidden; z-index: 1; }
  /* Rings ripple out a few times when the page opens, then rest; the "w" keeps a very slow, small breath. */
  .bandmark .logo.big { position: relative; font-size: 4.6rem; line-height: 1; filter: drop-shadow(0 0 30px rgba(255, 217, 59, .3)); animation: markbreathe 6s ease-in-out infinite; }
  .bandmark .rings path { stroke-width: 1.2; animation-iteration-count: 3; }
  .band[data-mark="1"] ~ * .pagehead > div:only-child, main .page > .pagehead.onband > div:only-child { max-width: min(680px, calc(100% - 170px)); }
}
@keyframes markbreathe { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 26px rgba(255, 217, 59, .22)); } 50% { transform: scale(1.025); filter: drop-shadow(0 0 36px rgba(255, 217, 59, .36)); } }
@media (prefers-reduced-motion: reduce) { .bandmark .logo.big { animation: none; } }
/* "This month" balancing (useBalance in ThisMonth.tsx): for one moment before painting, cards take their natural
   height so they can be measured. */
.monthgrid[data-measure] { align-items: start !important; }
.monthgrid[data-measure] > .card:first-child { grid-row: 1 !important; }
.monthgrid[data-measure] > .stack > *, .monthgrid[data-measure] > .recslot > * { flex-grow: 0 !important; }
