/* Wheat — same language as amatomarco.com/playground/health:
   Inter + Geist, ink on white, hairlines, big tabular numbers, blur-in reveals, one accent per topic. */

:root {
  --bg: #fff;
  --bg-warm: #f5f5f7;
  --ink: #000;
  --text: #2d2d2d;
  --ink-2: #55575f;
  --lead: #6e7180;
  --quiet: #5c5e66;
  --faint: #737580;
  --faint-2: #8a8d99;
  --line: #ececef;
  --border: #e3e3e8;
  --swatch: #d6d7dd;
  --bar: #4b4d56;
  --bar-soft: #d4d5db;
  --surface: rgba(255, 255, 255, .85);
  --ring: 0 0 0 1px rgba(0, 0, 0, .07);
  --float: 0 0 0 1px rgba(0, 0, 0, .07), 0 10px 30px rgba(0, 0, 0, .1);

  --c-invest: #2f7cf6;
  --c-deposit: #6e56cf;
  --c-cash: #b4b7c0;
  --c-spend: #e5534b;
  --pos: #12a594;
  --neg: #e5534b;

  /* The glow: green, grey and violet light, only as an accent inside a few cards ("in arrivo"). */
  --glow-a: color-mix(in srgb, var(--pos) 30%, transparent);
  --glow-b: color-mix(in srgb, var(--c-cash) 26%, transparent);
  --glow-c: color-mix(in srgb, var(--c-deposit) 28%, transparent);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --wipe: cubic-bezier(.65, 0, .35, 1);
  --sans: Inter, "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Geist, Inter, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e11; --bg-warm: #17171b; --ink: #fff; --text: #e4e4e8; --ink-2: #b9bac3; --lead: #9a9cab;
    --quiet: #a7a9b4; --faint: #8a8d99; --faint-2: #6e7180; --line: #1f1f24; --border: #2a2a31; --swatch: #3a3a42;
    --bar: #b4b7c0; --bar-soft: #34343c; --surface: rgba(23, 23, 27, .82);
    --ring: 0 0 0 1px rgba(255, 255, 255, .08); --float: 0 0 0 1px rgba(255, 255, 255, .09), 0 10px 30px rgba(0, 0, 0, .5);
    --c-cash: #5c5e66; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0e11; --bg-warm: #17171b; --ink: #fff; --text: #e4e4e8; --ink-2: #b9bac3; --lead: #9a9cab;
  --quiet: #a7a9b4; --faint: #8a8d99; --faint-2: #6e7180; --line: #1f1f24; --border: #2a2a31; --swatch: #3a3a42;
  --bar: #b4b7c0; --bar-soft: #34343c; --surface: rgba(23, 23, 27, .82);
  --ring: 0 0 0 1px rgba(255, 255, 255, .08); --float: 0 0 0 1px rgba(255, 255, 255, .09), 0 10px 30px rgba(0, 0, 0, .5);
  --c-cash: #5c5e66; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.5 var(--sans); letter-spacing: -.0165em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; font-feature-settings: "cv11", "ss01";
}
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
b, strong { font-weight: 500; color: var(--ink); }
::selection { background: color-mix(in srgb, var(--c-invest) 22%, transparent); }
:focus-visible { outline: 2px solid var(--c-invest); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px 160px; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; gap: 28px; height: 76px;
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(var(--bg) 60%, transparent);
}
.brand {
  font: 500 18px/1 var(--display); letter-spacing: -.02em; color: var(--lead);
  display: inline-flex; align-items: center; gap: 7px; transition: color .3s var(--ease);
}
.brand:hover { color: var(--ink); }
.brand svg { width: 17px; height: 17px; }
.brand .tag { margin-left: 4px; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 14.5px; }
.nav a { color: var(--lead); transition: color .3s var(--ease); position: relative; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 999px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--lead); transition: color .2s, background .2s;
}
.icon-btn:hover { color: var(--ink); background: var(--bg-warm); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .eye-off { display: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 15px;
  border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap;
  background: var(--ink); color: var(--bg); font-size: 14.5px; font-weight: 540;
  transition: transform .4s var(--ease), opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--swatch); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13.5px; }
.btn .spin { display: none; width: 13px; height: 13px; border-radius: 50%; border: 1.6px solid currentColor;
  border-right-color: transparent; animation: spin .7s linear infinite; }
.btn[aria-busy="true"] .spin { display: block; }
.btn.refresh > svg { display: none; width: 16px; height: 16px; }
.btn[aria-busy="true"] { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.tag {
  display: inline-block; font: 500 11px/1 var(--sans); letter-spacing: 0; padding: 4px 7px; border-radius: 999px;
  background: var(--bg-warm); color: var(--faint); vertical-align: middle;
}

/* ---------- reveal (blur-in, like .hl-fade) ---------- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .fade { transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: var(--d, 0s); }
  .r:not([data-in]) .fade, .r.fade:not([data-in]) { opacity: 0; filter: blur(4px); transform: translateY(10px); }
  .grow { transform-origin: 0 50%; transition: transform 1.1s var(--ease) var(--d, 0s), background-color .2s, opacity .15s; }
  .r:not([data-in]) .grow { transform: scaleX(0); }
  .wipe { transition: clip-path 1.5s var(--wipe) .1s; }
  .r:not([data-in]) .wipe { clip-path: inset(0 100% 0 0); }
  .latest { transition: opacity .4s ease 1.4s, scale .5s var(--ease) 1.4s; transform-box: fill-box; transform-origin: center; }
  .r:not([data-in]) .latest { opacity: 0; scale: .4; }
  .ping { animation: ping 2.8s ease-out 2s infinite; transform-box: fill-box; transform-origin: center; }
  .bar-g rect.b { transform-box: fill-box; transform-origin: 50% 100%;
    transition: transform .9s var(--ease) calc(var(--i, 0) * 22ms), opacity .15s ease; }
  .r:not([data-in]) .bar-g rect.b { transform: scaleY(0); }
}
.chart.redraw .wipe { animation: wipe-in 1.1s var(--wipe); }
.chart.redraw .latest { animation: pop-in .5s var(--ease) .9s both; }
@keyframes wipe-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pop-in { from { opacity: 0; scale: .4; } }
@keyframes ping { 0% { opacity: .28; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2.8); } }

/* ---------- intro / hero ---------- */
.intro { padding: 72px 0 0; }
.eyebrow { font-size: 13.5px; font-weight: 500; color: var(--faint); margin: 0; display: flex; flex-wrap: wrap; gap: 0 6px; }
.eyebrow b { color: var(--ink); font-weight: 500; }
h1 { font: 500 34px/38px var(--display); letter-spacing: -.5px; color: var(--ink); margin: 0 0 12px; }
.hero-num {
  font: 500 clamp(64px, 13vw, 112px)/1 var(--sans); letter-spacing: -.045em; color: var(--ink);
  margin: 26px 0 0; display: flex; align-items: baseline; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hero-num .cents { font-size: .36em; letter-spacing: -.02em; color: var(--faint-2); margin-left: .08em; }
.hero-num .cur { font-size: .36em; letter-spacing: -.02em; color: var(--faint-2); margin-left: .18em; }

.live {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13.5px; font-weight: 500; color: var(--faint);
  min-height: 20px;
}
.live .dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--pos); flex: none; }
.live .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2.4s ease-out infinite; }
.live.stale .dot { background: var(--faint-2); }
.live.stale .dot::after { animation: none; }
.live .delta { color: var(--ink); }
.pos { color: var(--pos) !important; }
.neg { color: var(--neg) !important; }

.sentence {
  font: 500 clamp(22px, 3.4vw, 28px)/1.3 var(--sans); letter-spacing: -.02em; color: var(--faint-2);
  margin: 26px 0 0; max-width: 760px; text-wrap: balance;
}
.sentence b { color: var(--ink); }

/* composition bar */
.comp { margin-top: 48px; }
.comp-bar { display: flex; gap: 3px; height: 34px; border-radius: 8px; overflow: hidden; }
.comp-bar span { display: block; height: 100%; min-width: 3px; transition: opacity .2s, flex-grow .8s var(--ease); }
.comp-bar:hover span, .comp-bar.hovering span { opacity: .3; }
.comp-bar span:hover, .comp-bar span.hot { opacity: 1 !important; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 13.5px; font-weight: 500; color: var(--faint); }
.legend span { display: inline-flex; align-items: center; gap: 7px; cursor: default; transition: color .2s; }
.legend span:hover { color: var(--ink); }
.legend i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.legend b { color: var(--ink); }

/* ---------- sections ---------- */
.sec { margin-top: 140px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h2 { font: 500 20px/1.3 var(--sans); letter-spacing: -.02em; color: var(--ink); margin: 0; }
.sec-head .meta, .meta { font-size: 13.5px; font-weight: 500; color: var(--faint); }
.sec-head .meta b { color: var(--ink); }
.sub-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 14px; }
.sub-head h3 { font: 500 15px/21px var(--sans); color: var(--ink); margin: 0; }
.caption { font-size: 12.5px; color: var(--faint); margin: 12px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* stats row (like Sleep score / duration / RHR) */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stat .v { font: 500 clamp(30px, 5vw, 44px)/1 var(--sans); letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .v small { font-size: .5em; color: var(--faint-2); letter-spacing: -.01em; margin-left: .12em; }
.stat .l { margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.stat .l i { width: 7px; height: 7px; border-radius: 50%; }
.stat .s { margin-top: 2px; font-size: 13.5px; font-weight: 500; color: var(--faint); }

/* insights */
.insights { display: grid; gap: 0; }
.insight { padding: 34px 0 36px; border-top: 1px solid var(--line); }
.insight:last-child { border-bottom: 1px solid var(--line); }
.insight .k { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--faint); }
.insight .k i { width: 6px; height: 6px; border-radius: 50%; }
.insight .k .n { color: var(--c); font-variant-numeric: tabular-nums; }
.insight p {
  font: 500 clamp(24px, 4vw, 36px)/1.22 var(--sans); letter-spacing: -.025em; color: var(--quiet);
  margin: 14px 0 0; max-width: 820px; text-wrap: pretty;
}
.insight p b { color: var(--ink); }
.how { margin-top: 16px; }
.how button {
  border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--faint); transition: color .2s;
}
.how button:hover { color: var(--ink); }
.how button svg { width: 14px; height: 14px; }
.more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--ease), opacity .4s ease; }
.more[data-open] { grid-template-rows: 1fr; opacity: 1; }
.more > * { min-height: 0; overflow: hidden; }
.more p { font: 400 13.5px/1.55 var(--sans); color: var(--faint); margin: 10px 0 0; max-width: 560px; letter-spacing: -.01em; }

/* charts */
.chart { position: relative; width: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .ylab, .chart .xlab { font: 500 11.5px var(--sans); fill: var(--faint); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.chart .xlab.on { fill: var(--ink); }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.chart .dash { fill: none; stroke: var(--faint-2); stroke-width: 1.25; stroke-dasharray: 4 4; }
.chart .cross { stroke: var(--ink); stroke-width: 1; opacity: 0; transition: opacity .15s; shape-rendering: crispEdges; }
.chart .hdot { fill: var(--bg); stroke: var(--ink); stroke-width: 1.6; opacity: 0; transition: opacity .15s; }
.chart.hover .cross, .chart.hover .hdot { opacity: 1; }
.chart.hover .latest-g { opacity: 0; transition: opacity .2s; }
.chart .end-dot { fill: var(--ink); }
.chart .end-ring { fill: var(--ink); opacity: .28; }
.chart .pill-lab rect { fill: var(--ink); }
.chart .pill-lab text { font: 500 10.5px var(--sans); fill: var(--bg); }
.chart .bar-g rect.b { fill: var(--bar-soft); cursor: pointer; }
.chart .bar-g rect.b.on { fill: var(--ink); }
.chart .bar-g rect.b.partial { fill: url(#hatch); }
.chart .bar-g rect.b.on.partial { fill: url(#hatch-on); }
.chart .bar-g.dim rect.b:not(:hover) { opacity: .35; }
.tip {
  position: absolute; z-index: 5; pointer-events: none; top: 0; left: 0;
  background: var(--surface); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--float); border-radius: 12px; padding: 9px 12px; min-width: 132px;
  font-size: 12.5px; font-weight: 500; color: var(--faint); white-space: nowrap;
  opacity: 0; transform: translateY(4px) scale(.98); transition: opacity .15s, transform .25s var(--ease);
}
.chart.hover .tip { opacity: 1; transform: none; }
.tip .t { color: var(--ink); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tip .row { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }
.tip .row b { font-weight: 500; }
.tip i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

/* segmented control (inline + floating) */
.seg {
  display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; position: relative;
  background: var(--surface); box-shadow: var(--ring);
}
.seg a, .seg button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  height: 30px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 500; color: var(--lead); white-space: nowrap; transition: color .3s var(--ease);
}
.seg a:hover, .seg button:hover { color: var(--ink); }
.seg [aria-current="true"], .seg [aria-pressed="true"] { color: var(--bg) !important; }
.seg .thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--ink);
  transition: transform .5s var(--ease), width .5s var(--ease);
}
.seg.no-anim .thumb { transition: none; }
.dock {
  position: fixed; left: 50%; bottom: 20px; z-index: 30; transform: translateX(-50%);
  animation: dock-in .9s var(--ease) .3s both;
}
.dock { transition: opacity .5s var(--ease), translate .6s var(--ease), filter .5s var(--ease); }
.dock.away { opacity: 0; translate: 0 24px; filter: blur(4px); pointer-events: none; }
.dock .seg { box-shadow: var(--float); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); padding: 5px; }
.dock .seg a, .dock .seg button { height: 36px; padding: 0 16px; }
.dock .arrow { width: 36px; padding: 0 !important; justify-content: center; }
.dock .arrow svg { width: 16px; height: 16px; }
.dock .arrow[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.dock .month-lab { min-width: 132px; justify-content: center; color: var(--ink) !important; font-variant-numeric: tabular-nums; }
@keyframes dock-in { from { opacity: 0; transform: translate(-50%, 24px) scale(.96); filter: blur(4px); } }

/* lists (like Recent activities) */
.list { display: grid; }
.li {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line); position: relative;
}
.li:first-child { border-top: 1px solid var(--line); }
.ico {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--c, var(--faint)) 11%, transparent); color: var(--c, var(--faint));
}
.ico svg { width: 16px; height: 16px; }
.li .name { font-size: 15px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .sub { font-size: 13px; font-weight: 500; color: var(--faint); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .val { text-align: right; font-size: 15px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.li .val .sub { text-align: right; }

/* positions (investimenti) */
.pos-row { grid-template-columns: 34px minmax(0, 1fr) 96px 120px; }
.pos-row .gain { text-align: right; font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos-row .gain .sub { text-align: right; }
.ticker { font: 500 10px/1 var(--sans); letter-spacing: .02em; color: var(--ink); }
.flash { animation: flash 1.4s var(--ease); border-radius: 6px; }
@keyframes flash { 0% { background: color-mix(in srgb, var(--fc, var(--pos)) 18%, transparent); } 100% { background: transparent; } }

/* category bars */
.cats { display: grid; }
.cat {
  display: grid; grid-template-columns: 34px minmax(110px, 200px) minmax(0, 1fr) 84px 96px; align-items: center; gap: 14px;
  padding: 9px 0; cursor: pointer; border-radius: 10px; transition: opacity .2s;
}
.cats:hover .cat:not(:hover) { opacity: .45; }
.cats.filtered .cat:not(.on) { opacity: .35; }
.cat .name { font-size: 14.5px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat .track { height: 8px; border-radius: 999px; background: var(--bg-warm); overflow: hidden; }
.cat .track span { display: block; height: 100%; border-radius: 999px; background: var(--bar); }
.cat:hover .track span, .cat.on .track span { background: var(--ink); }
.cat .amt { text-align: right; font-size: 14.5px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cat .d { text-align: right; font-size: 12.5px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* movements by day */
.day { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 0 20px; padding: 6px 0; }
.day + .day { border-top: 1px solid var(--line); }
.day-lab { padding-top: 15px; font-size: 13.5px; font-weight: 500; color: var(--faint); }
.day-lab small { display: block; font-size: 12px; color: var(--faint-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.tx { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 9px 0; }
.tx[hidden] { display: none; }
.tx .name { font-size: 15px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx .sub { font-size: 13px; font-weight: 500; color: var(--faint); display: flex; gap: 6px; align-items: center; min-width: 0; }
.tx .sub .note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx .amt { font-size: 15px; font-weight: 500; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx.neutral .amt { color: var(--faint-2); }
.tx.neutral .name { color: var(--quiet); }
.catpick { position: relative; display: inline-flex; align-items: center; gap: 4px; color: var(--faint); border-radius: 6px; flex: none; }
.catpick:hover { color: var(--ink); }
.catpick svg { width: 10px; height: 10px; opacity: .6; }
.catpick select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.day.empty { display: none; }

.tools { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.search {
  flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border-radius: 999px; background: var(--bg-warm); color: var(--faint); transition: box-shadow .2s, background .2s;
}
.search:focus-within { background: var(--bg); box-shadow: 0 0 0 1px var(--border), 0 4px 18px rgba(0, 0, 0, .06); }
.search svg { width: 15px; height: 15px; flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: none; font: 500 14px var(--sans); color: var(--ink); letter-spacing: -.01em; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 12px; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 500; cursor: pointer;
  animation: chip-in .4s var(--ease);
}
.chip svg { width: 13px; height: 13px; }
@keyframes chip-in { from { opacity: 0; transform: scale(.9); } }

/* pacing progress (home teaser) */
.pace { position: relative; height: 8px; border-radius: 999px; background: var(--bg-warm); margin-top: 22px; }
.pace > span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--ink); }
.pace .mark { box-shadow: none; position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--faint-2); border-radius: 2px; }
.pace-lab { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--faint); }
.link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.link svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* sources / settings */
.src { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.src:first-child { border-top: 1px solid var(--line); }
.src .st { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); }
.src .st.err { background: var(--neg); }
.src .st.off { background: var(--swatch); }
.src .name { font-size: 15px; font-weight: 500; color: var(--ink); }
.src .sub { font-size: 13px; font-weight: 500; color: var(--faint); }
details.set { border-bottom: 1px solid var(--line); }
details.set summary {
  list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; font-weight: 500; color: var(--ink);
}
details.set summary::-webkit-details-marker { display: none; }
details.set summary svg { width: 16px; height: 16px; color: var(--faint); transition: transform .4s var(--ease); }
details.set[open] summary svg { transform: rotate(45deg); }
details.set .body { padding: 0 0 22px; font-size: 13.5px; color: var(--faint); }
.form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; margin-top: 14px; }
.form label { display: block; font-size: 12.5px; font-weight: 500; color: var(--faint); margin-bottom: 6px; }
.form input, .paste input {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--bg-warm); color: var(--ink);
  font: 500 14px var(--sans); font-variant-numeric: tabular-nums; outline: none; transition: box-shadow .2s, background .2s;
}
.form input:focus, .paste input:focus { background: var(--bg); box-shadow: 0 0 0 1px var(--border), 0 0 0 4px color-mix(in srgb, var(--c-invest) 14%, transparent); }
.paste { display: flex; gap: 10px; margin-top: 12px; }
.mini { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.mini td { padding: 7px 0; border-top: 1px solid var(--line); }
.mini td:last-child { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.colophon { margin-top: 56px; font-size: 12.5px; color: var(--faint); display: flex; gap: 6px; align-items: center; }
.colophon svg { width: 13px; height: 13px; }
code { font: 500 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-warm); padding: 2px 6px; border-radius: 6px; }

/* banners & toasts */
.banner {
  margin-top: 28px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--c-spend) 8%, var(--bg)); color: var(--ink);
  font-size: 14px; font-weight: 500;
}
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; width: min(520px, calc(100vw - 32px)); }
.toast {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px;
  background: var(--surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--float);
  font-size: 13.5px; font-weight: 500; color: var(--ink); cursor: pointer;
  animation: toast-in .6s var(--ease) both;
}
.toast i { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); margin-top: 6px; flex: none; }
.toast.error i { background: var(--neg); }
.toast.out { animation: toast-out .4s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px) scale(.97); filter: blur(4px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px) scale(.98); filter: blur(4px); } }

/* odometer (rolling digits, like .hl-odo) */
.odo { display: inline-block; height: 1em; line-height: 1; overflow: hidden; vertical-align: top; }
.odo-strip { display: flex; flex-direction: column; transform: translateY(calc(var(--to, 0) * -1em)); }
.odo-strip > span { display: block; height: 1em; line-height: 1; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .odo-strip { transition: transform 2s cubic-bezier(.2, .75, .15, 1) var(--d, 0s); }
  .odo.quick .odo-strip { transition-duration: .9s; }
}

/* privacy */
.priv { transition: filter .35s var(--ease); }

/* empty */
.empty-state { padding: 120px 0; text-align: center; color: var(--faint); }
.empty-state h1 { margin-bottom: 8px; }

@media (max-width: 720px) {
  .wrap { padding: 0 16px 140px; }
  .top { gap: 14px; height: 64px; }
  .nav { gap: 16px; }
  .intro { padding-top: 40px; }
  .sec { margin-top: 96px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .stats .stat:nth-child(3) { grid-column: 1 / -1; }
  .pos-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .pos-row .gain { display: none; }
  .cat { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 12px; }
  .cat .track { grid-column: 2 / -1; grid-row: 2; }
  .cat .d { display: none; }
  .day { grid-template-columns: 1fr; }
  .day-lab { padding-top: 14px; display: flex; justify-content: space-between; }
  .day-lab small { margin: 0; }
  .form { grid-template-columns: 1fr 1fr; }
  .btn .lab { display: none; }
  .btn.refresh { width: 34px; padding: 0; justify-content: center; }
  .btn.refresh > svg { display: block; }
  .btn.refresh[aria-busy="true"] > svg { display: none; }
  .dock { bottom: 14px; }
  .dock .month-lab { min-width: 108px; }
}
@media (max-width: 400px) {
  .brand span { display: none; }
}
.caption svg { width: 13px; height: 13px; flex: none; }

/* tooltips */
.tt, .tt-host .tt-label { text-decoration: underline dotted color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: help; }
.tt:focus-visible, .tt-host:focus-visible { outline-offset: 2px; }
.tip-i { border: 0; background: none; padding: 0; margin-left: 2px; cursor: help; color: var(--faint-2);
  display: inline-grid; place-items: center; vertical-align: -2px; transition: color .2s; }
.tip-i:hover, .tip-i:focus-visible { color: var(--ink); }
.tip-i svg { width: 14px; height: 14px; }
.bubble {
  position: fixed; z-index: 60; left: 0; top: 0; max-width: min(280px, calc(100vw - 24px)); pointer-events: none;
  padding: 10px 12px; border-radius: 12px; background: var(--ink); color: var(--bg);
  font: 500 12.5px/1.45 var(--sans); letter-spacing: -.005em; text-wrap: pretty;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  opacity: 0; transform: translateY(4px) scale(.97); transform-origin: var(--ax, 50%) 100%;
  transition: opacity .15s ease, transform .3s var(--ease);
}
.bubble.below { transform-origin: var(--ax, 50%) 0; transform: translateY(-4px) scale(.97); }
.bubble.on { opacity: 1; transform: none; }
.bubble::after { content: ""; position: absolute; left: var(--ax, 50%); bottom: -4px; width: 8px; height: 8px;
  margin-left: -4px; background: inherit; transform: rotate(45deg); border-radius: 1px; }
.bubble.below::after { bottom: auto; top: -4px; }
@media (max-width: 720px) {
  .dock .seg a, .dock .seg button { height: 34px; padding: 0 9px; font-size: 13px; }
}

/* spending dock: stepper + month/year/all */
.dock-seg .dsep { width: 1px; align-self: stretch; margin: 6px 4px; background: var(--border); }
.dock-seg .month-lab { display: inline-flex; align-items: center; justify-content: center; min-width: 124px;
  font-size: 13.5px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; padding: 0 4px; }
.dock-seg .month-lab .short { display: none; }
@media (max-width: 720px) {
  .dock-seg .month-lab { min-width: 72px; }
  .dock-seg .month-lab .long { display: none; }
  .dock-seg .month-lab .short { display: inline; }
  .dock .arrow { width: 30px; }
}
.icon-btn > span { display: grid; place-items: center; }
.icon-btn svg { display: block; }
.icon-btn:focus-visible { border-radius: 999px; }

/* period list rows (month by month / year by year) */
.prow { grid-template-columns: minmax(0, 1fr) 96px 96px 104px 16px; color: inherit; transition: background .2s; border-radius: 0; }
.prow[href]:hover .name { text-decoration: underline; text-underline-offset: 3px; }
.prow .go { color: var(--faint-2); display: grid; place-items: center; }
.prow .go svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.prow[href]:hover .go svg { transform: translateX(3px); color: var(--ink); }
.cats.static .cat { cursor: default; }
@media (max-width: 720px) {
  .prow { grid-template-columns: minmax(0, 1fr) auto auto 14px; gap: 10px; }
  .prow .hide-sm { display: none; }
}
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stats.four .stat .v { font-size: clamp(26px, 4vw, 36px); }
.prow { grid-template-columns: minmax(0, 1fr) 92px 92px 92px 100px 16px; }
@media (max-width: 720px) {
  .stats.four { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .prow { grid-template-columns: minmax(0, 1fr) auto auto 14px; }
}
@media (max-width: 720px) { .stats.four .stat:nth-child(3) { grid-column: auto; } }
.stat .avg { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--faint); }
.stat .avg b { color: var(--ink); font-weight: 500; }

/* ---------- forecast ---------- */
.pace.big { height: 12px; margin-top: 30px; }
.pace.big > span { background: linear-gradient(90deg, var(--c-deposit), color-mix(in srgb, var(--c-deposit) 70%, var(--ink))); }
.knobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 36px; }
.knob { display: block; }
.k-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; font-weight: 500; color: var(--quiet); }
.k-top b { font-size: 20px; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; transition: color .2s; }
.knob input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 10px 0 0; background: transparent; cursor: pointer;
}
.knob input[type=range]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 999px;
  background: linear-gradient(90deg, var(--ink) var(--p, 50%), var(--bg-warm) var(--p, 50%));
}
.knob input[type=range]::-moz-range-track { height: 4px; border-radius: 999px; background: var(--bg-warm); }
.knob input[type=range]::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--ink); }
.knob input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; margin-top: -8px;
  background: var(--bg); box-shadow: 0 0 0 1.5px var(--ink), 0 2px 8px rgba(0, 0, 0, .12);
  transition: transform .3s var(--ease), box-shadow .2s;
}
.knob input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--bg); }
.knob input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.12); }
.knob input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 7px color-mix(in srgb, var(--ink) 8%, transparent); }
.knob input[type=range]:focus-visible { outline: none; }
.knob input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 5px color-mix(in srgb, var(--c-invest) 30%, transparent); }
.knob-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
button.link { border: 0; background: none; cursor: pointer; padding: 0; }
.chart .band { fill: color-mix(in srgb, var(--c-invest) 12%, transparent); stroke: none; }
.chart .proj { fill: none; stroke: var(--c-invest); stroke-width: 1.8; stroke-linejoin: round; }
.chart .proj.base { stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 4 4; }
.legend .dash { background: none !important; border-top: 1.5px dashed var(--faint); height: 0 !important; margin-top: 2px; }
/* Futuro: your data or a scenario, the sentence with your numbers, market assumptions folded away */
.state-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--faint); padding: 5px 11px;
  border-radius: 99px; background: var(--bg-warm); }
.state-tag .st-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint-2); }
.state-tag.on { color: var(--c-invest); background: color-mix(in srgb, var(--c-invest) 10%, transparent); }
.state-tag.on .st-dot { background: var(--c-invest); }
.state-tag .link { font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.fire-lead { margin: 18px 0 2px; font-size: 17px; color: var(--lead); }
.fire-delta { display: inline-block; margin-left: 14px; font-size: 15px; font-weight: 500; letter-spacing: 0; vertical-align: .9em; }
.fire-delta.up { color: var(--pos); } .fire-delta.down { color: var(--neg); } .fire-delta.same { color: var(--faint); }
.fill { margin: 0; font: 400 clamp(21px, 2.6vw, 27px)/1.65 var(--sans); letter-spacing: -.015em; color: var(--ink); max-width: 34ch; }
.fill-v { font: inherit; color: inherit; background: none; border: 0; padding: 0 2px; cursor: pointer; font-weight: 500;
  border-bottom: 2px dashed var(--faint-2); border-radius: 0; }
.fill-v:hover, .fill-v[aria-expanded="true"] { border-bottom-color: var(--ink); }
.fill-v.on, .fill-k.on { color: var(--c-invest); border-bottom-color: var(--c-invest); }
.fill-k { font-weight: 500; }
.fill-basis { margin: 12px 0 0; font-size: 13.5px; color: var(--faint); }
.editor { margin-top: 22px; max-width: 460px; }
.editor .knob[hidden] { display: none; }
.assume { margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.assume summary { display: flex; align-items: center; gap: 12px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 500; color: var(--ink); }
.assume summary::-webkit-details-marker { display: none; }
.assume summary .meta { margin-left: auto; font-weight: 400; font-size: 13px; color: var(--faint); }
.assume summary svg { width: 15px; height: 15px; color: var(--faint); transition: transform .2s var(--ease); }
.assume[open] summary svg { transform: rotate(180deg); }
.assume .knobs { padding: 6px 0 22px; }
.assume .knob-foot { padding-bottom: 22px; }
.insight .try { margin-top: 14px; }
.mine .back { margin-top: 16px; display: inline-flex; gap: 7px; align-items: center; }
.mine .back[hidden] { display: none; }
.mine .back svg { width: 14px; height: 14px; }
.chart .need { fill: none; stroke: var(--c-deposit); stroke-width: 1.4; stroke-dasharray: 5 4; }
.chart .today-line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .ms-dot { fill: var(--bg); stroke: var(--c-invest); stroke-width: 1.6; }
.chart .ms-lab { font: 500 11px var(--sans); fill: var(--quiet); font-variant-numeric: tabular-nums; }
.chart .fire-dot { fill: var(--c-deposit); }
.ms-row .ico { --c: var(--faint); }
.ms-row.done .ico { --c: var(--pos); }
.ms-row.next .ico { --c: var(--c-invest); }
.ms-row.next .name { color: var(--ink); }
.ms-row.far { opacity: .55; }
.ms-row .val .sub { text-align: right; }
.steps .step .val { font-size: 16px; }
.steps .step:last-child .name, .steps .step:last-child .val { color: var(--c-deposit); }
#fire-age { font-size: .3em; letter-spacing: -.01em; color: var(--faint-2); margin-left: .25em; }
@media (max-width: 720px) {
  .knobs { grid-template-columns: 1fr; gap: 24px; }
}
.caption { display: block; }
.caption > svg { display: inline-block; vertical-align: -2px; margin-right: 6px; }
.k-info { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.k-chip, .k-note { border: 0; font: 500 12px/1 var(--sans); letter-spacing: -.005em; color: var(--faint); background: var(--bg-warm);
  border-radius: 999px; padding: 6px 9px; cursor: pointer; transition: background .2s, color .2s, transform .3s var(--ease); }
.k-chip b, .k-note b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.k-chip:hover { background: var(--border); color: var(--ink); }
.k-chip:active { transform: scale(.95); }
.k-note { cursor: help; background: color-mix(in srgb, var(--pos) 10%, transparent); }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.moment { position: relative; padding: 18px 18px 20px; border-radius: 16px; background: var(--bg-warm);
  transition: transform .5s var(--ease), box-shadow .3s; overflow: hidden; }
.moment:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
.moment::before { content: ""; position: absolute; left: 18px; top: 20px; width: 7px; height: 7px; border-radius: 50%; background: var(--mc, var(--faint-2)); }
.moment .m-date { padding-left: 15px; font-size: 12.5px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.moment h3 { margin: 12px 0 0; font: 500 19px/1.25 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.moment p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--quiet); }
.k-milestone { --mc: var(--pos); }
.k-invest { --mc: var(--c-invest); }
.k-deposit { --mc: var(--c-deposit); }
.k-record { --mc: #e5a00d; }
.k-start { --mc: var(--ink); }
.actions .action { grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; padding: 18px 0; }
.actions .k-tag { font-size: 12.5px; font-weight: 500; color: var(--c); }
.actions p { margin: 4px 0 0; font-size: 16px; line-height: 1.45; color: var(--quiet); letter-spacing: -.01em; }
.actions p b { color: var(--ink); font-weight: 500; }
.actions .sub { white-space: normal; margin-top: 6px; }
@media (max-width: 720px) { .board { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .board { grid-template-columns: 1fr; } }

/* ---------- hall of fame ---------- */
.t-gold   { --e1: #f6d77b; --e2: #d9a62e; --e3: #a8741a; --tint: #fbf3df; }
.t-orange { --e1: #ffc27a; --e2: #f76b15; --e3: #c2410c; --tint: #fff1e6; }
.t-red    { --e1: #f5a49e; --e2: #e5534b; --e3: #b2302a; --tint: #fcecea; }
.t-silver { --e1: #e6e7ec; --e2: #a9adb9; --e3: #6f7380; --tint: #f3f3f6; }
.t-blue   { --e1: #a9c8ff; --e2: #2f7cf6; --e3: #1a55b8; --tint: #ebf2ff; }
.t-violet { --e1: #c9bdf5; --e2: #6e56cf; --e3: #4b36a3; --tint: #f0edfb; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .trophy-card { --tint: color-mix(in srgb, var(--e2) 12%, var(--bg-warm)); } }
.fame { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.trophy-card {
  position: relative; overflow: hidden; border-radius: 20px; padding: 22px 20px 22px;
  background: linear-gradient(160deg, var(--tint), var(--bg-warm) 70%);
  display: flex; flex-direction: column; gap: 14px; isolation: isolate;
  transition: transform .6s var(--ease), box-shadow .4s;
}
.trophy-card::after {  /* the sheen that sweeps on hover */
  content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(0) rotate(12deg); opacity: 0;
}
.trophy-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px color-mix(in srgb, var(--e3) 18%, transparent); }
.trophy-card:hover::after { animation: sheen 1.1s var(--ease); }
@keyframes sheen { 0% { opacity: 0; transform: translateX(0) rotate(12deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(560%) rotate(12deg); } }
.emblem { width: 76px; height: 76px; flex: none; }
.emblem svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--e3) 28%, transparent)); }
.tc-title { font-size: 13.5px; font-weight: 500; color: var(--faint); }
.tc-title.big { font: 500 19px/1.25 var(--sans); letter-spacing: -.02em; color: var(--ink); margin-top: 6px; }
.tc-value { margin-top: 4px; font: 500 34px/1 var(--sans); letter-spacing: -.035em; color: var(--ink); white-space: nowrap; }
.tc-value small { font-size: .45em; color: var(--faint-2); margin-left: .15em; letter-spacing: -.01em; }
.tc-when { margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--e3); font-variant-numeric: tabular-nums; }
.trophy-card p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--quiet); }
.trophy-card.featured {
  grid-column: span 2; flex-direction: row; align-items: center; gap: 26px; padding: 28px;
  background: radial-gradient(120% 140% at 0% 0%, #2a2210 0%, #141417 60%); color: #fff;
}
.trophy-card.featured .emblem { width: 120px; height: 120px; }
.trophy-card.featured .tc-title { color: #c9b98a; }
.trophy-card.featured .tc-value { color: #fff; font-size: 52px; }
.trophy-card.featured .tc-value small { color: #8d8370; }
.trophy-card.featured .tc-when { color: #f6d77b; }
.trophy-card.featured p { color: #a8a294; }
.trophy-card.small { flex-direction: row; align-items: center; gap: 16px; padding: 18px; }
.trophy-card.small .emblem { width: 60px; height: 60px; }
.trophy-card.small .tc-when { margin-top: 0; }
/* entrance: leaves grow one after the other, the cup lands, sparks twinkle, the flame breathes */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .emblem .leaf { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .7s var(--ease) calc(.25s + var(--i) * 55ms), opacity .4s ease calc(.25s + var(--i) * 55ms); }
  .r:not([data-in]) .emblem .leaf { transform: scale(0) rotate(0); opacity: 0; }
  .emblem .stem { stroke-dasharray: 120; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--wipe) .1s; }
  .r:not([data-in]) .emblem .stem { stroke-dashoffset: 120; }
  .emblem .disc, .emblem .core { transform-box: fill-box; transform-origin: center; transition: transform .8s cubic-bezier(.34, 1.56, .64, 1) .2s, opacity .3s .2s; }
  .r:not([data-in]) .emblem .disc, .r:not([data-in]) .emblem .core { transform: scale(.4); opacity: 0; }
  .emblem .cup { transition: transform .9s cubic-bezier(.34, 1.56, .64, 1) .25s, opacity .3s .25s; }
  .emblem .cup { transform-box: fill-box; transform-origin: 50% 100%; }
  .r:not([data-in]) .emblem .cup { transform: translateY(18px) scale(.6); opacity: 0; }
  .trophy-card:hover .emblem .cup { animation: lift .9s cubic-bezier(.34, 1.56, .64, 1); }
  .emblem .spark { transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out 1.2s infinite; }
  .emblem .spark.s2 { animation-delay: 1.9s; }
  .emblem .fire { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 2.2s ease-in-out infinite; }
  .emblem .ribbon { transition: transform .8s var(--ease) .1s; }
  .r:not([data-in]) .emblem .ribbon { transform: translateY(-14px); }
  .trophy-card:hover .emblem .disc { animation: spin-y 1s var(--ease); }
}
@keyframes lift { 0% { transform: none; } 40% { transform: translateY(-6px) rotate(-4deg); } 70% { transform: translateY(-2px) rotate(3deg); } 100% { transform: none; } }
@keyframes twinkle { 0%, 100% { transform: scale(.6); opacity: .4; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06, 1.1); } }
@keyframes spin-y { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@media (max-width: 720px) {
  .fame { grid-template-columns: 1fr 1fr; }
  .trophy-card.featured { grid-column: 1 / -1; padding: 22px; gap: 16px; }
  .trophy-card.featured .emblem { width: 84px; height: 84px; }
  .trophy-card.featured .tc-value { font-size: 38px; }
  .fame.firsts { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .fame { grid-template-columns: 1fr; } }

/* ---------- monthly recap ---------- */
.hero-num .sign { font-size: .7em; margin-right: .04em; color: var(--ink); }
.hero-cap { margin: 14px 0 0; font-size: 14px; font-weight: 500; color: var(--faint); }
.flowbar { position: relative; margin-top: 40px; }
.fb-track { display: flex; gap: 3px; height: 34px; border-radius: 8px; overflow: hidden; background: repeating-linear-gradient(45deg, var(--bg-warm) 0 6px, color-mix(in srgb, var(--neg) 18%, var(--bg-warm)) 6px 8px); }
.fb-track span { display: block; height: 100%; min-width: 3px; }
.fb-spese { background: var(--c-spend); }
.fb-inv { background: var(--c-invest); }
.fb-saved { background: var(--c-deposit); }
.fb-in { position: absolute; top: -6px; height: 46px; left: 0; border-right: 2px solid var(--ink); pointer-events: none; }
.fb-in span { position: absolute; right: 6px; top: -18px; font-size: 11.5px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.legend i.hatch { background: repeating-linear-gradient(45deg, var(--bg-warm) 0 2px, var(--neg) 2px 3px); border-radius: 2px; }
.bridge { display: grid; gap: 2px; }
.br-row { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 110px; gap: 16px; align-items: center; padding: 9px 0; }
.br-row + .br-row { border-top: 1px solid var(--line); }
.br-lab b { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.br-lab span { display: block; font-size: 12.5px; font-weight: 500; color: var(--faint); margin-top: 1px; }
.br-track { position: relative; height: 22px; }
.br-bar { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--bar-soft); }
.k-start .br-bar, .k-end .br-bar { background: repeating-linear-gradient(90deg, var(--bar-soft) 0 3px, transparent 3px 5px); }
.k-end .br-bar { background: var(--ink); opacity: .85; }
.k-start .br-bar { background: var(--swatch); }
.k-plus .br-bar { background: var(--pos); }
.k-minus .br-bar { background: var(--neg); }
.k-other .br-bar { background: repeating-linear-gradient(45deg, var(--faint-2) 0 3px, transparent 3px 6px); }
.br-val { text-align: right; font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.k-plus .br-val { color: var(--pos); }
.k-minus .br-val { color: var(--neg); }
.k-end .br-lab b, .k-end .br-val { font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fact { position: relative; padding: 18px; border-radius: 16px; background: var(--bg-warm); transition: transform .5s var(--ease); }
.fact:hover { transform: translateY(-2px); }
.fact .ico { margin-bottom: 14px; }
.f-k { font-size: 13px; font-weight: 500; color: var(--faint); }
.f-v { margin-top: 4px; font: 500 28px/1.1 var(--sans); letter-spacing: -.03em; color: var(--ink); }
.f-v small { font-size: .5em; color: var(--faint-2); }
.f-s { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--quiet); }
.tools .seg { flex: none; }
/* picker */
.picker {
  position: fixed; left: 50%; bottom: 84px; z-index: 31; width: min(560px, calc(100vw - 24px));
  transform: translate(-50%, 16px) scale(.97); opacity: 0; filter: blur(4px); transform-origin: 50% 100%;
  background: var(--surface); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--float); border-radius: 22px; padding: 16px 16px 12px; max-height: min(70vh, 520px); overflow: auto;
  transition: transform .45s var(--ease), opacity .25s ease, filter .35s var(--ease);
}
.picker.open { transform: translate(-50%, 0) scale(1); opacity: 1; filter: none; }
.pk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 2px 4px 12px; font-size: 14px; }
.pk-head b { font-weight: 500; color: var(--ink); }
.pk-head .meta { font-size: 11.5px; }
.pk-year { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; align-items: center; padding: 4px 0; }
.pk-y { font-size: 13.5px; font-weight: 600; color: var(--ink); padding: 6px 4px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.pk-y:hover { background: var(--bg-warm); }
.pk-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.pk-m {
  display: grid; place-items: center; height: 32px; border-radius: 8px; font-size: 11.5px; font-weight: 500; color: var(--ink);
  background: color-mix(in srgb, var(--hc) var(--t), var(--bg-warm)); transition: transform .3s var(--ease), box-shadow .2s;
}
.pk-m:hover, .pk-m:focus-visible { transform: scale(1.12); box-shadow: 0 0 0 2px var(--ink); outline: none; z-index: 1; }
.pk-m.on { box-shadow: 0 0 0 2px var(--ink); }
.pk-m.off { background: transparent; color: var(--swatch); }
.dock .month-lab { gap: 4px; }
.dock .month-lab svg { width: 12px; height: 12px; opacity: .55; transition: transform .3s var(--ease); }
.dock .month-lab[aria-expanded="true"] svg { transform: rotate(180deg); }
button.month-lab { border: 0; background: none; cursor: pointer; font: inherit; height: 36px; border-radius: 999px; }
button.month-lab:hover { background: var(--bg-warm); }
@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .br-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .br-track { grid-column: 1 / -1; grid-row: 2; }
  .pk-months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pk-year { grid-template-columns: 44px minmax(0, 1fr); }
  .picker { bottom: 72px; }
}

/* ======================================================================
   Accounts: menu, login, onboarding, sources
   ====================================================================== */
.acct { position: relative; }
.avatar {
  width: 34px; height: 34px; border-radius: 999px; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--bg-warm); color: var(--ink); font: 500 14px/1 var(--display); transition: transform .4s var(--ease), box-shadow .2s;
}
.avatar:hover { box-shadow: 0 0 0 4px var(--bg-warm); }
.avatar[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; padding: 6px; border-radius: 16px;
  background: var(--surface); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--float);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; filter: blur(3px);
  transition: opacity .25s var(--ease), transform .35s var(--ease), filter .25s var(--ease); z-index: 30;
}
.acct-menu.on { opacity: 1; transform: none; filter: none; }
.acct-who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; gap: 2px; }
.acct-who b { font-size: 14px; }
.acct-who span { font-size: 12.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; }
.acct-menu a, .acct-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; border: 0;
  background: transparent; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; text-align: left;
}
.acct-menu a:hover, .acct-menu button:hover { background: var(--bg-warm); }
.acct-menu svg { width: 16px; height: 16px; color: var(--faint); }
.acct-menu form { margin: 0; }

/* fields shared by login and onboarding */
.field { display: grid; gap: 7px; align-content: start; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; gap: 8px; }
.field label span { color: var(--faint); font-weight: 400; }
.field .in {
  display: flex; align-items: center; height: 46px; border-radius: 12px; background: var(--bg-warm);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.field .in:focus-within { background: var(--bg); box-shadow: 0 0 0 1px var(--border), 0 0 0 5px color-mix(in srgb, var(--c-invest) 13%, transparent); }
.field input, .field select {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; padding: 0 14px;
  font: 500 15px var(--sans); color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.field select { appearance: none; cursor: pointer; }
.field .suffix { padding-right: 14px; color: var(--faint); font-weight: 500; font-size: 14px; }
.field .hint { font-size: 12.5px; color: var(--faint); }
.field.invalid .in { background: var(--bg); box-shadow: 0 0 0 1px color-mix(in srgb, var(--neg) 55%, transparent), 0 0 0 5px color-mix(in srgb, var(--neg) 12%, transparent); }
.field.invalid .hint { color: var(--neg); }
.field input::placeholder { color: var(--faint-2); }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn.block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .35; pointer-events: none; }
.btn .arr { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.form-error {
  display: flex; gap: 9px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 500;
  background: color-mix(in srgb, var(--neg) 9%, var(--bg)); color: var(--ink); animation: shake .5s var(--ease);
}
.form-error i { width: 7px; height: 7px; border-radius: 50%; background: var(--neg); margin-top: 6px; flex: none; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* --- login / sign up --- */
.auth { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { position: relative; overflow: hidden; background: var(--bg-warm); display: flex; flex-direction: column; justify-content: space-between; padding: 36px 44px; }
.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: min(380px, 100%); display: grid; gap: 18px; }
.auth-card h1 { font-size: 30px; line-height: 36px; margin: 6px 0 0; }
.auth-card .lead { margin: -8px 0 6px; color: var(--faint); font-size: 15px; }
.auth-card .alt { font-size: 14px; color: var(--faint); text-align: center; margin-top: 4px; }
.auth-card .alt a { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--border); }
.auth-quote { font: 500 clamp(26px, 3vw, 36px)/1.15 var(--display); letter-spacing: -.03em; color: var(--ink); max-width: 15ch; margin: 0; }
.auth-quote em { font-style: normal; color: var(--faint-2); }
.auth-num { font: 500 clamp(54px, 7vw, 84px)/1 var(--sans); letter-spacing: -.045em; color: var(--ink); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; }
.auth-num .cur { font-size: .36em; color: var(--faint-2); margin-left: .18em; }
.auth-side .mini-chart { height: 120px; margin: 18px -44px 0 0; }
.auth-side .mini-chart svg { width: 100%; height: 100%; overflow: visible; }
.auth-foot { font-size: 12.5px; color: var(--faint); display: flex; gap: 6px; align-items: center; }
.auth-foot svg { width: 13px; height: 13px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { align-items: start; padding-top: 28px; }
}
.pw-meter { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: -2px; }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--neg); transition: width .5s var(--ease), background .3s; }

/* --- onboarding --- */
.ob { max-width: 720px; margin: 0 auto; padding: 0 24px 140px; }
.ob-top { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.ob-steps { display: flex; gap: 6px; align-items: center; }
.ob-steps span { width: 34px; height: 4px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.ob-steps span::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease) .2s; }
.ob-steps span.done::after { transform: scaleX(1); }
.ob-steps em { font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--faint); margin-left: 8px; }
.ob h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.04; letter-spacing: -.035em; margin: 22px 0 14px; }
.ob .lead { font-size: 17px; line-height: 1.5; color: var(--quiet); margin: 0; max-width: 54ch; }
.ob .lead b { color: var(--ink); }
.ob-how { display: grid; gap: 0; margin: 44px 0 8px; }
.ob-how .row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); align-items: start; }
.ob-how .row:last-child { border-bottom: 1px solid var(--line); }
.ob-how .n { width: 32px; height: 32px; border-radius: 10px; background: var(--bg-warm); display: grid; place-items: center; font: 500 14px var(--display); color: var(--ink); }
.ob-how h3 { margin: 4px 0 2px; font-size: 15.5px; font-weight: 500; color: var(--ink); }
.ob-how p { margin: 0; font-size: 14px; color: var(--faint); }
.ob-form { display: grid; gap: 16px; margin-top: 40px; }
.ob-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ob-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.ob-actions .link { font-size: 14px; color: var(--faint); font-weight: 500; }
.ob-actions .link:hover { color: var(--ink); }

/* provider tiles (pick what you use) */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 36px; }
.tile { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) 22px; gap: 14px; align-items: center;
  padding: 16px; border-radius: 16px; cursor: pointer; background: var(--bg); box-shadow: inset 0 0 0 1px var(--border);
  transition: box-shadow .3s var(--ease), transform .4s var(--ease), background .3s; user-select: none; }
.tile:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--swatch), 0 8px 24px rgba(0,0,0,.05); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--ink), 0 8px 24px rgba(0,0,0,.06); }
.tile:has(input:focus-visible) { outline: 2px solid var(--c-invest); outline-offset: 3px; }
.mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ink);
  font: 600 13px/1 var(--display); letter-spacing: -.02em; background: var(--bg-warm); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
/* brand icons, saved with the site: a white tile so every logo sits on the same ground */
.mark.logo { background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.mark.logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tile .t-name { font-size: 15px; font-weight: 500; color: var(--ink); }
.tile .t-what { font-size: 13px; color: var(--faint); margin-top: 1px; }
.tile .t-how { margin-top: 7px; display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 500 11.5px/1 var(--sans); padding: 5px 8px; border-radius: 999px; background: var(--bg-warm); color: var(--faint); display: inline-flex; gap: 5px; align-items: center; }
.chip svg { width: 12px; height: 12px; }
.chip.soon { background: color-mix(in srgb, #e5a00d 14%, var(--bg)); color: #a26e00; }
.chip.ok { background: color-mix(in srgb, var(--pos) 12%, var(--bg)); color: color-mix(in srgb, var(--pos) 75%, var(--ink)); }
.tick { width: 22px; height: 22px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--border); display: grid; place-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.tick svg { width: 13px; height: 13px; color: var(--bg); stroke-width: 2.6; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .45s var(--ease) .05s; }
.tile:has(input:checked) .tick { background: var(--ink); box-shadow: none; }
.tile:has(input:checked) .tick svg { stroke-dashoffset: 0; }

/* provider guide cards (connect) */
.guides { display: grid; gap: 14px; margin-top: 36px; }
.guide { border-radius: 20px; box-shadow: inset 0 0 0 1px var(--border); background: var(--bg); overflow: hidden;
  transition: box-shadow .4s var(--ease); }
.guide.done { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pos) 40%, var(--border)); }
.g-head { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 20px;
  cursor: pointer; list-style: none; }
.g-head::-webkit-details-marker { display: none; }
.g-head .g-name { font-size: 16px; font-weight: 500; color: var(--ink); }
.g-head .g-sub { font-size: 13px; color: var(--faint); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; }
.g-state { display: flex; align-items: center; gap: 10px; }
.g-state .chev { width: 18px; height: 18px; color: var(--faint); transition: transform .4s var(--ease); }
details.guide[open] .g-state .chev { transform: rotate(180deg); }
.g-body { padding: 0 20px 22px; display: grid; gap: 22px; }
.g-gives { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--quiet); padding: 12px 14px; border-radius: 12px; background: var(--bg-warm); }
.g-gives svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ink); }
.g-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.g-steps li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 10px 0; font-size: 14.5px; line-height: 1.5; color: var(--quiet); position: relative; }
.g-steps li::before { content: counter(s, upper-alpha); width: 24px; height: 24px; border-radius: 8px; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font: 600 12px/1 var(--display); margin-top: 1px; }
.g-steps li:not(:last-child)::after { content: ""; position: absolute; left: 11.5px; top: 36px; bottom: -4px; width: 1px; background: var(--line); }
.g-steps b { color: var(--ink); }
.g-tip { font-size: 13px; color: var(--faint); display: flex; gap: 8px; }
.g-tip svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.g-form { display: grid; gap: 14px; }
.g-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.drop {
  position: relative; display: grid; place-items: center; text-align: center; gap: 6px; padding: 28px 20px; border-radius: 16px; cursor: pointer;
  background: var(--bg-warm); border: 1.5px dashed var(--swatch); transition: border-color .3s, background .3s, transform .4s var(--ease);
}
.drop:hover, .drop.over { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 3%, var(--bg-warm)); }
.drop.over { transform: scale(1.01); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .d-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); box-shadow: var(--ring); display: grid; place-items: center; margin-bottom: 4px; transition: transform .5s var(--ease); }
.drop:hover .d-ico, .drop.over .d-ico { transform: translateY(-3px); }
.drop .d-ico svg { width: 18px; height: 18px; color: var(--ink); }
.drop b { font-size: 14.5px; }
.drop span { font-size: 13px; color: var(--faint); }
.files { display: flex; flex-wrap: wrap; gap: 6px; }
.files .chip { background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); color: var(--ink); animation: pop-in .4s var(--ease) both; }
.g-result { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; font-weight: 500; animation: toast-in .5s var(--ease) both; }
.g-result.ok { background: color-mix(in srgb, var(--pos) 10%, var(--bg)); color: var(--ink); }
.g-result.err { background: color-mix(in srgb, var(--neg) 9%, var(--bg)); color: var(--ink); }
.g-result i { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--pos); }
.g-result.err i { background: var(--neg); }
.g-busy { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--faint); font-weight: 500; }
.g-busy .bar { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.g-busy .bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--ink); border-radius: 3px; animation: indet 1.2s var(--wipe) infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.done-badge { width: 26px; height: 26px; border-radius: 999px; background: var(--pos); display: grid; place-items: center; animation: pop-in .5s var(--ease) both; }
.done-badge svg { width: 14px; height: 14px; color: #fff; stroke-width: 2.6; }
.ob-foot { position: sticky; bottom: 16px; margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 12px 12px 20px; border-radius: 999px; background: var(--surface); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--float); z-index: 10; }
.ob-foot .count { font-size: 14px; font-weight: 500; color: var(--faint); }
.ob-foot .count b { color: var(--ink); }
.manual-list .li { grid-template-columns: 40px minmax(0, 1fr) auto auto; }
.manual-list .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--bg-warm); display: grid; place-items: center; }
.manual-list .ico svg { width: 16px; height: 16px; }
.profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile-form .full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .ob { padding: 0 16px 120px; }
  .tiles, .ob-form .two, .profile-form { grid-template-columns: 1fr; }
  .g-head { padding: 16px; }
  .g-body { padding: 0 16px 18px; }
  .ob-foot { border-radius: 20px; flex-direction: column; align-items: stretch; padding: 12px; text-align: center; }
}
@media (min-width: 861px) { .auth-brand { display: none !important; } }
.i14 svg { width: 14px; height: 14px; vertical-align: -2px; }

/* Wheat brand */
.brand { color: var(--ink); font-weight: 600; letter-spacing: -.035em; gap: 8px; }
.brand svg.wmark { width: auto; height: 18px; }
.brand:hover { opacity: .75; }

/* onboarding: tiles grouped by how they connect */
.tile-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; margin: 40px 0 0; }
.tile-head h3 { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.tile-head span { font-size: 13px; color: var(--faint); }
.tile-head + .tiles { margin-top: 14px; }
.tiles.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile.sm { grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 11px; padding: 12px; border-radius: 14px; }
.tile.sm .mark { width: 34px; height: 34px; border-radius: 10px; font-size: 11.5px; }
.tile.sm .t-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.sm .t-what { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.sm .tick { width: 20px; height: 20px; }
@media (max-width: 760px) { .tiles.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- offers before they exist (interest checks) ---------- */
.plus { margin-top: 40px; }
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.offers .plus { margin-top: 0; display: grid; }
.offers-top { margin-top: 56px; }
.offers .plus-in { display: flex; flex-direction: column; }
.offers .plus-row { margin-top: auto; padding-top: 22px; }
.plus-fisco .plus-in { background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--pos) 15%, transparent), transparent 60%), var(--bg-warm); }
.plus-fisco .plus-tag { color: var(--pos); }
@media (max-width: 760px) { .offers { grid-template-columns: 1fr; } }
.plus-in {
  position: relative; overflow: hidden; border-radius: 22px; padding: 28px 28px 22px;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--c-invest) 16%, transparent), transparent 60%), var(--bg-warm);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plus-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 560; letter-spacing: .01em; color: var(--c-invest); }
.plus-tag svg { width: 14px; height: 14px; animation: plus-twinkle 3.2s var(--ease) infinite; }
@keyframes plus-twinkle { 0%, 70%, 100% { transform: none; opacity: 1; } 80% { transform: rotate(18deg) scale(1.15); opacity: .7; } }
.plus h3 { margin: 12px 0 8px; font: 500 clamp(22px, 3.6vw, 28px)/1.12 var(--sans); letter-spacing: -.03em; color: var(--ink); }
.plus p { margin: 0; max-width: 52ch; font-size: 14.5px; line-height: 1.5; color: var(--lead); }
.plus-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 22px; }
.plus-price { font-size: 14px; color: var(--faint); font-weight: 500; }
.plus-price b { font: 500 22px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); margin-right: 2px; }
.plus-done { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 540;
  color: var(--pos); background: color-mix(in srgb, var(--pos) 11%, var(--bg)); }
.plus-done svg { width: 16px; height: 16px; }
.plus-done.in { animation: plus-pop .55s var(--ease) both; }
.plus-done.in svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: plus-draw .5s .15s var(--ease) forwards; }
@keyframes plus-pop { from { opacity: 0; transform: scale(.9); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes plus-draw { to { stroke-dashoffset: 0; } }
.plus-note { margin-top: 14px !important; font-size: 12.5px !important; color: var(--faint) !important; }
.plus-note .link { font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; background: none; border: 0; padding: 0; cursor: pointer; }
@media (max-width: 560px) { .plus-in { padding: 22px 20px 18px; } .plus-row .btn, .plus-row .plus-done { width: 100%; justify-content: center; } }

/* ---------- feedback dialog ---------- */
.fb { border: 0; padding: 0; background: transparent; max-width: min(520px, calc(100vw - 32px)); width: 100%; color: var(--text); }
.fb::backdrop { background: rgb(0 0 0 / 0); backdrop-filter: blur(0); transition: background .25s, backdrop-filter .25s; }
.fb.on::backdrop { background: rgb(0 0 0 / .32); backdrop-filter: blur(3px); }
.fb-card { background: var(--bg); border-radius: 22px; padding: 26px; box-shadow: 0 24px 80px rgb(0 0 0 / .22), inset 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(10px) scale(.98); filter: blur(4px); transition: opacity .25s var(--ease), transform .3s var(--ease), filter .25s; }
.fb.on .fb-card { opacity: 1; transform: none; filter: none; }
.fb h2 { margin: 0 0 8px; font: 500 22px/1.2 var(--sans); letter-spacing: -.025em; color: var(--ink); }
.fb p { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--lead); }
.fb p b { color: var(--ink); font-weight: 500; }
.fb-box { position: relative; border-radius: 14px; background: var(--bg-warm); transition: box-shadow .25s var(--ease), background .25s var(--ease); }
.fb-box:focus-within { background: var(--bg); box-shadow: 0 0 0 1px var(--border), 0 0 0 5px color-mix(in srgb, var(--c-invest) 13%, transparent); }
.fb-box.bad { box-shadow: 0 0 0 1.5px var(--neg); }
.fb textarea { display: block; box-sizing: border-box; width: 100%; min-height: 120px; resize: vertical; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: 400 15px/1.5 var(--sans); padding: 12px 14px; }
.fb-err { margin-top: 10px; font-size: 13px; color: var(--neg); font-weight: 500; }
.fb-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.acct-menu button[data-feedback] { width: 100%; }

/* ---------- the numbers page (owner only) ---------- */
.verdict { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nums .people { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.nums .people .stat .v { font-size: clamp(26px, 4vw, 36px); }
@media (max-width: 860px) { .verdict { grid-template-columns: 1fr; } .nums .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vd { border-radius: 20px; padding: 22px; background: var(--bg-warm); box-shadow: inset 0 0 0 1px var(--line); }
.vd .k { font-size: 13.5px; font-weight: 500; color: var(--faint); }
.vd .v { margin-top: 10px; font: 500 clamp(34px, 6vw, 48px)/1 var(--sans); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.vd .v small { font-size: .42em; color: var(--faint); letter-spacing: -.01em; margin-left: 6px; }
.vd .bar { position: relative; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 8%, transparent); margin-top: 18px; }
.vd .bar span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--faint); }
.vd .bar i { position: absolute; top: -5px; bottom: -5px; width: 2px; border-radius: 2px; background: var(--ink); }
.vd.ok .bar span { background: var(--pos); }
.vd.ok .v { color: var(--pos); }
.vd .s { margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--faint); }
.nums .li { grid-template-columns: minmax(0, 1fr) auto; }
.funnel .li .val small { color: var(--faint); font-weight: 500; margin-left: 8px; }
.spark { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; height: 120px; }
.spark span { position: relative; border-radius: 4px 4px 2px 2px; background: var(--c-invest); min-height: 2px; transform-origin: bottom; }
.spark span.calc { background: color-mix(in srgb, var(--c-invest) 40%, transparent); }
.spark .col { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: 0; }
.spark .col:hover span { filter: brightness(1.15); }
@media (prefers-reduced-motion: no-preference) {
  .spark span { transition: transform .8s var(--ease) calc(var(--i, 0) * 18ms + .1s); }
  .r:not([data-in]) .spark span { transform: scaleY(0); }
}
.spark-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--faint); font-weight: 500; }
.inv-form { display: flex; gap: 10px; margin-bottom: 18px; }
.inv-form .in { flex: 1; }
.inv-code { font: 500 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; color: var(--ink); }
.inv-off { opacity: .45; }
.fbk { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fbk p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; }
.fbk span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--faint); font-weight: 500; }
@media (max-width: 640px) { .inv-form { flex-direction: column; } }

/* ---------- onboarding: "Connetti i tuoi conti" (interest check) ---------- */
.connect { margin-top: 36px; padding: 24px; border-radius: 22px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); }
.connect[data-done] { box-shadow: inset 0 0 0 1px var(--line); background: var(--bg-warm); }
.cn-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.cn-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: var(--bg); }
.cn-ico svg { width: 20px; height: 20px; }
.connect h2 { margin: 0; font: 500 19px/1.25 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.cn-head p { margin: 3px 0 0; font-size: 14px; line-height: 1.45; color: var(--lead); }
.cn-pick { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.cn-q { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--ink); }
.cn-banks { display: flex; flex-wrap: wrap; gap: 8px; }
.cn-bank { height: 36px; padding: 0 14px; border: 0; border-radius: 99px; background: var(--bg-warm); box-shadow: inset 0 0 0 1px var(--line);
  font: 500 14px var(--sans); color: var(--ink); cursor: pointer; transition: background .2s, transform .2s var(--ease), box-shadow .2s; }
.cn-bank:hover { background: var(--bg); box-shadow: inset 0 0 0 1px var(--swatch); }
.cn-bank:active { transform: scale(.96); }
/* picked banks: a ring and a tick, never the solid black of a button */
.cn-bank { display: inline-flex; align-items: center; gap: 6px; }
.cn-bank[aria-pressed="true"] { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); padding-left: 10px; }
.cn-bank[aria-pressed="true"]::before { content: ""; width: 14px; height: 14px; background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.cn-send { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 13.5px; color: var(--faint); }
.cn-other { display: flex; gap: 10px; margin-top: 14px; }
.cn-other .field { flex: 1; }
.cn-other .btn { height: 46px; }
.cn-done { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.cn-done p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--lead); }
.cn-done b { color: var(--ink); font-weight: 500; }
.cn-check { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; color: var(--pos); background: color-mix(in srgb, var(--pos) 12%, transparent); }
.cn-check svg { width: 16px; height: 16px; }
.cn-or { display: flex; align-items: center; gap: 14px; margin: 34px 0 14px; font-size: 13px; font-weight: 500; color: var(--faint); }
.cn-or::before, .cn-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 640px) {
  .cn-head { grid-template-columns: auto minmax(0, 1fr); }
  .cn-head .btn { grid-column: 1 / -1; justify-content: center; }
  .cn-other { flex-direction: column; }
}

/* ---------- cookie consent ---------- */
.consent { position: fixed; left: 50%; bottom: 14px; z-index: 60; width: min(720px, calc(100vw - 24px)); transform: translate(-50%, 12px);
  opacity: 0; transition: opacity .3s var(--ease), transform .4s var(--ease); }
.consent.on { opacity: 1; transform: translate(-50%, 0); }
.consent-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 10px 10px 10px 16px; border-radius: 16px;
  background: var(--bg); box-shadow: 0 14px 44px rgb(0 0 0 / .16), inset 0 0 0 1px var(--line); }
.consent p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--lead); }
.consent-more { border: 0; background: none; padding: 0; cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; color: var(--ink); }
.consent-detail { grid-column: 1 / -1; display: grid; gap: 6px; padding: 4px 6px 6px 0; }
.consent-detail b { color: var(--ink); font-weight: 500; }
.consent-detail code { font-size: 12px; }
.consent-actions { display: flex; gap: 6px; }
@media (max-width: 560px) { .consent-in { grid-template-columns: 1fr; padding: 12px; } .consent-actions .btn { flex: 1; justify-content: center; } }

/* ---------- delete account ---------- */
.danger { border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.danger summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; }
.danger summary::-webkit-details-marker { display: none; }
.danger summary > span { display: grid; gap: 2px; }
.danger summary b { font-size: 15px; font-weight: 500; color: var(--neg); }
.danger summary span span { font-size: 13.5px; color: var(--faint); }
.danger summary svg { width: 16px; height: 16px; color: var(--faint); transition: transform .3s var(--ease); flex: none; }
.danger[open] summary svg { transform: rotate(45deg); }
.danger-form { display: grid; gap: 16px; padding: 4px 20px 20px; border-top: 1px solid var(--line); }
.danger-form p { margin: 16px 0 0; font-size: 14px; line-height: 1.55; color: var(--lead); }
.danger-check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink); cursor: pointer; }
.danger-check input { width: 16px; height: 16px; accent-color: var(--neg); }
.danger-actions { display: flex; justify-content: flex-end; }
.btn.danger-btn { background: var(--neg); color: #fff; }

/* ---------- public demo ---------- */
.demo-bar { position: relative; z-index: 21; display: flex; align-items: center; gap: 12px; padding: 9px 16px;
  background: var(--ink); color: var(--bg); font-size: 13.5px; }
.demo-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px;
  background: color-mix(in srgb, var(--bg) 18%, transparent); }
.demo-txt { flex: 1; min-width: 0; opacity: .85; }
.demo-bar .btn.sm { background: var(--bg); color: var(--ink); }
.demo-x { color: var(--bg); opacity: .7; font-weight: 500; white-space: nowrap; }
.demo-x:hover { opacity: 1; }
.btn.demo-exit { height: 34px; }
@media (max-width: 700px) {
  .demo-bar { flex-wrap: wrap; gap: 8px 10px; }
  .demo-txt { flex-basis: calc(100% - 70px); font-size: 12.5px; }
  .demo-x { margin-left: auto; }
  .btn.demo-exit { display: none; }
}
.u-li .sub + .sub { margin-top: 2px; }
.u-stuck { color: var(--neg); }

/* ---------- sign in with Google ---------- */
.or-line { display: flex; align-items: center; gap: 12px; margin: 4px 0; font-size: 12.5px; color: var(--faint); }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn.g-btn { gap: 10px; justify-content: center; }
.g-logo { width: 18px; height: 18px; flex: none; }
.btn.a-btn { gap: 10px; justify-content: center; background: #000; color: #fff; }
.a-logo { width: 16px; height: 19px; flex: none; margin-top: -2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.a-btn { background: #fff; color: #000; } }
:root[data-theme="dark"] .btn.a-btn { background: #fff; color: #000; }

/* ---------- phones: sections in a tab bar at the bottom, within thumb reach ---------- */
.nav .tab-ico { display: none; }
.btn.demo-join { display: none; }
.demo-short { display: none; }
@media (max-width: 720px) {
  /* the blur sits on a layer of its own: a backdrop-filter on .top would trap the fixed tab bar inside the header */
  .top { background: none; margin: 0 -16px; padding: 0 16px; height: 58px; }
  .top::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
  .actions { margin-left: auto; gap: 6px; }
  .brand span { display: inline; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; margin: 0; gap: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
    box-shadow: 0 -1px 0 var(--line); font-size: 11.5px; font-weight: 500; letter-spacing: 0; }
  .nav a { display: grid; justify-items: center; gap: 3px; padding: 5px 0 4px; color: var(--faint); -webkit-tap-highlight-color: transparent; }
  .nav a[aria-current] { color: var(--ink); }
  .nav .tab-ico { display: grid; place-items: center; width: 52px; height: 28px; border-radius: 999px; transition: background .3s var(--ease); }
  .nav a[aria-current] .tab-ico { background: var(--bg-warm); }
  .nav .tab-ico svg { width: 20px; height: 20px; }
  .nav a:active .tab-ico { transform: scale(.94); }
  .wrap { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  body:has(.top .nav) .dock { bottom: calc(82px + env(safe-area-inset-bottom)); }
  body:has(.top .nav) .picker { bottom: calc(146px + env(safe-area-inset-bottom)); }
  body:has(.top .nav) .consent { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body:has(.top .nav) .ob-foot { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .acct-menu { max-height: calc(100dvh - 140px); overflow-y: auto; }
  .acct-menu a, .acct-menu button { padding: 12px; font-size: 15px; }
  /* demo: one slim line on top, the "ask for access" button in the bar */
  .demo-bar { flex-wrap: nowrap; padding: 7px 8px 7px 16px; gap: 10px; }
  .demo-bar .btn.sm { display: none; }
  .demo-long { display: none; }
  .demo-short { display: inline; }
  .demo-txt { flex: 1 1 auto; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .demo-x { margin-left: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; }
  .demo-x svg { width: 16px; height: 16px; }
  .btn.demo-join { display: inline-flex; }
}
@media (max-width: 400px) { .brand span { display: inline; } }

/* ---------- your data: download, what Wheat can't do ---------- */
.data-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.data-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-warm); display: grid; place-items: center; color: var(--ink); }
.data-ico svg { width: 18px; height: 18px; }
.data-txt { display: grid; gap: 3px; min-width: 0; }
.data-txt b { font-size: 15px; }
.data-txt span { font-size: 13.5px; line-height: 1.45; color: var(--quiet); }
.data-facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.data-facts li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.5; color: var(--quiet); }
.data-facts svg { width: 16px; height: 16px; margin-top: 3px; color: var(--pos); }
.data-facts a { color: var(--ink); border-bottom: 1px solid var(--border); }
@media (max-width: 560px) { .data-row { grid-template-columns: 40px minmax(0, 1fr); } .data-row .btn { grid-column: 1 / -1; justify-content: center; } }
.trust-strip { list-style: none; padding: 16px 18px; margin: 28px 0 0; display: grid; gap: 10px; border-radius: 16px; background: var(--bg-warm); }
.trust-strip li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.45; color: var(--quiet); }
.trust-strip svg, .ob-safe svg { width: 16px; height: 16px; margin-top: 2px; color: var(--pos); }
.ob-safe { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--quiet); }

/* ---------- look-through (in arrivo): one ranked list, where each company comes from ---------- */
.lt .plus-tag svg { animation: none; }
.lt-demo { margin: 22px 0 0; padding: 16px 18px 14px; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.lt-demo figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12.5px; color: var(--faint); margin-bottom: 6px; }
.lt-ex { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--bg-warm); color: var(--lead); }
.lt-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 46px; align-items: center; gap: 12px; padding: 8px 0; }
.lt-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.lt-bar { display: flex; height: 8px; border-radius: 99px; background: var(--bg-warm); overflow: hidden; gap: 2px; }
.lt-bar i { display: block; height: 100%; }
.lt-s1 { background: var(--c-invest); }
.lt-s2 { background: color-mix(in srgb, var(--c-invest) 50%, var(--bg)); }
.lt-s3 { background: var(--pos); }
.lt-pct { font-size: 14px; font-weight: 500; text-align: right; color: var(--ink); }
.lt-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--quiet); }
.lt-key span { display: inline-flex; align-items: center; gap: 6px; }
.lt-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.src-safe { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; }
.src-safe svg { margin-top: 3px; color: var(--pos); }
.src-safe a { color: var(--ink); border-bottom: 1px solid var(--border); margin-left: 4px; }
@media (max-width: 560px) { .lt-row { grid-template-columns: 72px minmax(0, 1fr) 42px; gap: 10px; } .lt-demo { padding: 14px 14px 12px; } }
/* text with an icon and inline <code>: one flowing line, not separate flex pieces */
.colophon { display: block; line-height: 1.55; }
.colophon svg { display: inline; vertical-align: -2px; margin-right: 6px; }
.src-safe { flex-wrap: nowrap; line-height: 1.5; }

/* ---------- the promise: locks where the data lives ---------- */
.colophon.promise { color: var(--lead); }
.colophon.promise svg { color: var(--pos); }
.colophon.promise a { color: var(--ink); border-bottom: 1px solid var(--border); margin-left: 2px; }
.acct-safe { display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; padding: 0 !important; margin-top: 6px;
  font-size: 12.5px !important; font-weight: 500; color: var(--pos) !important; background: none !important; }
.acct-safe svg { width: 13px !important; height: 13px !important; color: var(--pos) !important; }
.g-safe { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--faint); }
.g-safe svg, .intro-safe svg, .auth-safe svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--pos); }
.intro-safe { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--lead); }
.auth-safe { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--quiet); }


/* ---------- glow only inside the cards that use it as an accent (never on the page background) ---------- */
/* the header is clear at the top of the page and turns into a frosted bar once it scrolls */
.top { background: none; }
.top::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1;
  pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
  background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line); }
.top.scrolled::before { opacity: 1; }
.plus-in, .plus-fisco .plus-in { background:
  radial-gradient(70% 90% at 100% 0%, var(--glow-c), transparent 65%),
  radial-gradient(60% 80% at 0% 0%, var(--glow-a), transparent 65%), var(--bg-warm); }
.plus-tag, .plus-fisco .plus-tag { color: var(--ink-2); }
.plus-tag svg { color: var(--pos); }

/* ---------- everything at once: drop-in, what we found, "which bank do you have?" ---------- */
.dropin { margin-top: 40px; }
.drop.big { padding: 48px 24px; border-radius: 22px; gap: 8px; }
.drop.big .d-ico { width: 52px; height: 52px; border-radius: 16px; }
.drop.big .d-ico svg { width: 22px; height: 22px; }
.drop.big b { font: 500 18px/1.3 var(--sans); letter-spacing: -.015em; }
.drop.big > span:last-child { max-width: 46ch; line-height: 1.5; }
.drop[aria-busy="true"] { pointer-events: none; opacity: .7; }
.dropin-kinds { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 16px; }
.dk-lead { font-size: 13px; font-weight: 500; color: var(--ink); margin-right: 2px; }
.dk { font: 500 12px/1 var(--sans); padding: 6px 10px; border-radius: 99px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--lead); }
.dr-item.soon .dr-sub { color: var(--lead); }
.dropin-safe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 14px 0 0; font-size: 13px; color: var(--faint); }
.dropin-safe svg { width: 13px; height: 13px; flex: none; color: var(--pos); margin-right: -3px; }
.dropin-safe .dot-sep { color: var(--faint-2); }
.dropin-link { display: flex; gap: 8px; max-width: 460px; margin: 14px auto 0; }
.dropin-link .field { flex: 1; }
.dropin-link .field .in { height: 38px; border-radius: 10px; }
.dropin-link input { font-size: 14px; }
.dropin-link .btn.sm { height: 38px; padding: 0 14px; }
.pl-list { display: grid; gap: 2px; margin-top: 10px; }
.pl-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; cursor: pointer; }
.pl-row + .pl-row { border-top: 1px solid var(--line); }
.pl-row input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--ink); }
.pl-row b { display: block; font-size: 14px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.pl-row span span { display: block; margin-top: 1px; font-size: 13px; line-height: 1.45; color: var(--lead); }
.pl-row:has(input:not(:checked)) span { opacity: .45; }
.pl-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--faint); }
.pl-ai { margin: 8px 0 0; font-size: 12px; color: var(--faint); }
.dr-item.plan .dr-act { display: flex; gap: 14px; align-items: center; }
.dropin-out { display: grid; gap: 10px; margin-top: 18px; }
.dropin-out:empty { display: none; }
.dropin-out .g-busy { padding: 6px 2px; }
.dr-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 16px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); animation: toast-in .5s var(--ease) both; }
.dr-item.ask { box-shadow: inset 0 0 0 1.5px var(--ink); }
.dr-name { font-size: 15px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.dr-sub { margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--lead); }
.dr-sub.bad, .dr-item.err .dr-sub { color: var(--neg); }
.dr-files { display: block; margin-top: 4px; font-size: 12px; color: var(--faint); overflow-wrap: anywhere; }
.dr-act { margin-top: 10px; }
.dr-act .link { font-size: 13.5px; color: var(--faint); }
.dr-act .link:hover { color: var(--ink); }
.dr-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dr-form .field { flex: 1 1 180px; }
.dr-form .field .in { height: 38px; border-radius: 10px; }
.dr-form .btn.sm { height: 38px; padding: 0 14px; }
.dr-state { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--sans); margin-top: 2px;
  background: var(--bg-warm); color: var(--faint); }
.dr-item.ok .dr-state { background: color-mix(in srgb, var(--pos) 14%, transparent); color: var(--pos); }
.dr-item.ask .dr-state { background: var(--ink); color: var(--bg); }
.dr-item.err .dr-state { background: color-mix(in srgb, var(--neg) 12%, transparent); color: var(--neg); }
.dr-state svg { width: 13px; height: 13px; }
.mark.sheet svg { width: 18px; height: 18px; color: var(--pos); }
.mark.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 11.5px; }

.finder { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.finder h2 { margin: 0; font: 500 21px/1.25 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.finder > p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--lead); }
.fd-search { margin-top: 18px; }
.fd-search .in { padding-left: 14px; }
.fd-search input { padding-left: 10px; }
.fd-ico { display: grid; color: var(--faint); }
.fd-ico svg { width: 16px; height: 16px; }
.fd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fd-chip { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px 0 4px; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font: 500 14px var(--sans); color: var(--ink);
  transition: box-shadow .2s, transform .2s var(--ease), background .2s; }
.fd-chip:hover { box-shadow: inset 0 0 0 1px var(--swatch); }
.fd-chip:active { transform: scale(.97); }
.fd-chip.on { box-shadow: inset 0 0 0 1.5px var(--ink); }
.fd-chip .mark.sm { width: 34px; height: 34px; border-radius: 99px; font-size: 10.5px; }
.fd-chip[hidden] { display: none; }
.fd-none { margin: 14px 0 0; font-size: 14px; color: var(--lead); }
.fd-none .link { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }
.fd-all { margin-top: 16px; }
.fd-all > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 500; color: var(--ink); }
.fd-all > summary::-webkit-details-marker { display: none; }
.fd-all > summary .chev { display: grid; width: 14px; height: 14px; transition: transform .35s var(--ease); }
.fd-all > summary .chev svg { width: 14px; height: 14px; }
.fd-all[open] > summary .chev { transform: rotate(180deg); }
.fd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.fd-grid + .fd-grid { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.fd-tile { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 10px 12px; border: 0; border-radius: 14px; cursor: pointer; text-align: left;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font: inherit; color: var(--ink); transition: box-shadow .2s, transform .2s var(--ease); }
.fd-tile:hover { box-shadow: inset 0 0 0 1px var(--swatch); }
.fd-tile:active { transform: scale(.98); }
.fd-tile.on { box-shadow: inset 0 0 0 1.5px var(--ink); }
.fd-t { display: grid; min-width: 0; }
.fd-t b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-t span { font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .fd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fd-guides { margin-top: 18px; }
.fd-guides:not(:has(> div:not([hidden]))) { display: none; }
.connect.compact { margin-top: 48px; padding: 18px 20px; box-shadow: inset 0 0 0 1px var(--line); background: var(--bg-warm); }
.connect.compact .cn-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.connect.compact .cn-ico svg { width: 17px; height: 17px; }
.connect.compact h2 { font-size: 16px; }
.connect.compact .cn-head p { font-size: 13.5px; }
@media (max-width: 560px) {
  .drop.big { padding: 36px 18px; }
  .ob-foot .link { display: none; }  /* the way back is the browser's: the bar stays two lines */
  .connect.compact .cn-head { grid-template-columns: auto minmax(0, 1fr); }
  .connect.compact #cn-go { grid-column: 1 / -1; }
}

/* "not sure how?": one list, then the steps in a sheet over the page */
.fd-grid { margin-top: 16px; }
.fd-grid .fd-tile[hidden] { display: none; }
.fd-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 14px var(--sans); color: var(--ink); }
.fd-more[hidden] { display: none; }
.fd-more .chev { display: grid; width: 14px; height: 14px; transition: transform .35s var(--ease); }
.fd-more .chev svg { width: 14px; height: 14px; }
.fd-more .chev.up { transform: rotate(180deg); }
.fd-sheet { width: min(560px, calc(100vw - 24px)); max-height: min(86vh, 760px); padding: 8px 4px 4px; border: 0; border-radius: 26px;
  background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.22); overflow: auto; }
.fd-sheet::backdrop { background: rgba(10, 10, 14, .32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fd-sheet[open] { animation: sheet-in .45s var(--ease) both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.fd-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-warm); color: var(--ink); cursor: pointer; }
.fd-x svg { width: 16px; height: 16px; }
/* in the sheet a guide is only: name, steps, one action */
.fd-sheet .guide { box-shadow: none; border-radius: 0; background: transparent; }
.fd-sheet .g-head { cursor: default; padding-right: 60px; grid-template-columns: 42px minmax(0, 1fr); }
.fd-sheet .g-head .g-sub, .fd-sheet .g-state, .fd-sheet .g-gives, .fd-sheet .g-tip, .fd-sheet .g-safe { display: none; }
.fd-sheet .g-head .g-name { font-size: 18px; }
@media (max-width: 560px) {
  .fd-sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; max-height: 88vh; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .fd-sheet[open] { animation: sheet-up .45s var(--ease) both; }
  @keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
}

/* ---------- onboarding → dashboard: "putting it together" ---------- */
.ob-loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); opacity: 0; transition: opacity .45s var(--ease); }
.ob-loader.on { opacity: 1; }
.ol-stage { display: grid; justify-items: center; gap: 30px; width: min(360px, calc(100vw - 48px)); }
.ol-grain { width: 54px; height: 90px; color: var(--ink); overflow: visible; }
.ol-grain path { transform-box: fill-box; transform-origin: 0% 100%; opacity: 0; }
.ob-loader.on .ol-grain path { animation: ol-leaf .9s cubic-bezier(.2,.9,.2,1.15) forwards, ol-sway 2.6s ease-in-out 1.2s infinite alternate; }
.ob-loader.on .ol-grain path:nth-child(1) { animation-delay: .36s, 1.5s; }
.ob-loader.on .ol-grain path:nth-child(2) { animation-delay: .2s, 1.35s; }
.ob-loader.on .ol-grain path:nth-child(3) { animation-delay: .04s, 1.2s; }
@keyframes ol-leaf { from { opacity: 0; transform: translateY(26px) rotate(-14deg) scale(.4); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ol-sway { to { transform: rotate(-3deg); } }
.ol-chart { width: 100%; height: auto; aspect-ratio: 300 / 90; overflow: visible; }
.ol-bars rect { fill: var(--line); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.ob-loader.on .ol-bars rect { animation: ol-bar .7s cubic-bezier(.2,.8,.2,1) forwards, ol-fill .6s ease forwards; animation-delay: calc(.55s + var(--i) * .045s), calc(1.1s + var(--i) * .045s); }
@keyframes ol-bar { to { transform: scaleY(1); } }
@keyframes ol-fill { to { fill: var(--swatch); } }
.ol-line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ob-loader.on .ol-line { animation: ol-draw 1.3s cubic-bezier(.6,0,.2,1) 1.7s forwards; }
@keyframes ol-draw { to { stroke-dashoffset: 0; } }
.ol-dot, .ol-ring { fill: var(--ink); transform-box: fill-box; transform-origin: center; transform: scale(0); }
.ol-ring { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: 0; }
.ob-loader.on .ol-dot { animation: ol-pop .5s cubic-bezier(.2,.9,.2,1.4) 2.95s forwards; }
.ob-loader.on .ol-ring { animation: ol-ping 1.1s ease-out 3.05s 2; }
@keyframes ol-pop { to { transform: scale(1); } }
@keyframes ol-ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3.4); opacity: 0; } }
.ol-msg { position: relative; height: 24px; width: 100%; margin: 0; text-align: center; font: 500 16px/24px var(--sans); letter-spacing: -.01em; color: var(--ink); }
.ol-msg span { position: absolute; inset: 0; opacity: 0; }
.ob-loader.on .ol-msg span { animation: ol-say 1s var(--ease) forwards; }
.ob-loader.on .ol-msg span:nth-child(1) { animation-delay: .2s; }
.ob-loader.on .ol-msg span:nth-child(2) { animation-delay: 1.15s; }
.ob-loader.on .ol-msg span:nth-child(3) { animation-delay: 2.1s; }
.ob-loader.on .ol-msg span:nth-child(4) { animation: ol-last .6s var(--ease) 3.05s forwards; }
@keyframes ol-say { 0% { opacity: 0; transform: translateY(8px); filter: blur(4px); } 20%, 75% { opacity: 1; transform: none; filter: none; }
                    100% { opacity: 0; transform: translateY(-8px); filter: blur(4px); } }
@keyframes ol-last { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.ol-progress { width: 140px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ol-progress i { display: block; height: 100%; width: 100%; background: var(--ink); border-radius: 3px; transform: scaleX(0); transform-origin: left; }
.ob-loader.on .ol-progress i { animation: ol-prog 3.5s cubic-bezier(.4,.1,.2,1) .2s forwards; }
@keyframes ol-prog { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .ob-loader.on .ol-grain path, .ob-loader.on .ol-bars rect, .ob-loader.on .ol-line, .ob-loader.on .ol-dot, .ob-loader.on .ol-msg span, .ob-loader.on .ol-progress i { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
  .ob-loader.on .ol-ring { animation: none; }
  .ob-loader.on .ol-msg span:not(:last-child) { opacity: 0; }
}

/* ---------- right after logging in: the lock opens, the grain grows, "rieccoti" ---------- */
html.wb-on { overflow: hidden; }
.wb { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: var(--bg); cursor: default;
  transition: opacity .6s var(--ease), filter .6s var(--ease), transform .6s var(--ease); }
.wb.out { opacity: 0; filter: blur(8px); transform: scale(1.03); pointer-events: none; }
.wb-stage { display: grid; justify-items: center; gap: 10px; text-align: center; }
.wb-lock { width: 64px; height: 76px; overflow: visible; margin-bottom: 18px; color: var(--ink); }
.wb-shackle, .wb-body { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.wb-shackle { transform-box: view-box; transform-origin: 47px 36px; animation: wb-draw .5s cubic-bezier(.6,0,.2,1) .05s forwards, wb-open .7s cubic-bezier(.2,.9,.25,1.3) .7s forwards; }
.wb-body { animation: wb-draw .6s cubic-bezier(.6,0,.2,1) .15s forwards; }
@keyframes wb-draw { to { stroke-dashoffset: 0; } }
@keyframes wb-open { to { transform: translate(0, -7px) rotate(28deg); } }
.wb-grain path { fill: currentColor; transform-box: fill-box; transform-origin: 0% 100%; opacity: 0; animation: ol-leaf .7s cubic-bezier(.2,.9,.2,1.15) forwards; }
.wb-grain path:nth-child(3) { animation-delay: .95s; }
.wb-grain path:nth-child(2) { animation-delay: 1.07s; }
.wb-grain path:nth-child(1) { animation-delay: 1.19s; }
.wb-hi { margin: 0; font: 500 clamp(26px, 5vw, 34px)/1.1 var(--display, var(--sans)); letter-spacing: -.035em; color: var(--ink); opacity: 0;
  animation: wb-say .7s var(--ease) 1.05s forwards; }
.wb-sub { margin: 0; font-size: 14.5px; color: var(--faint); opacity: 0; animation: wb-say .7s var(--ease) 1.3s forwards; }
@keyframes wb-say { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.wb-progress { margin-top: 22px; width: 96px; }
.wb-progress i { animation: ol-prog 2.1s cubic-bezier(.4,.1,.2,1) .1s forwards; }
@media (prefers-reduced-motion: reduce) {
  .wb-shackle, .wb-body, .wb-grain path, .wb-hi, .wb-sub, .wb-progress i { animation: none; opacity: 1; stroke-dashoffset: 0; transform: none; filter: none; }
}

/* net worth: the sections that follow the period fade while the new year loads */
#nw-details { transition: opacity .3s var(--ease); }
#nw-details.swapping { opacity: .35; pointer-events: none; }

/* "your accounts": what's already in, update or take out */
.loaded:empty { display: none; }
.loaded { margin-top: 26px; }
.ld-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.ld-head h3 { margin: 0; font: 500 15px var(--sans); color: var(--ink); }
.ld-n { font-size: 12.5px; color: var(--faint); font-weight: 500; }
.ld-list { display: grid; gap: 8px; }
.ld-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 10px 10px 12px; border-radius: 16px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: opacity .35s var(--ease), transform .35s var(--ease), box-shadow .3s; }
.ld-item.new { animation: ld-new 1.6s var(--ease); }
@keyframes ld-new { 0% { box-shadow: inset 0 0 0 1.5px var(--pos); transform: scale(.985); } 100% { box-shadow: inset 0 0 0 1px var(--line); } }
.ld-item.leaving, .dr-item.leaving { opacity: 0; transform: translateX(10px); }
.ld-item.confirming { box-shadow: inset 0 0 0 1.5px var(--neg); }
.ld-name { font-size: 14.5px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-detail { font-size: 12.5px; color: var(--faint); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-act { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ld-btn { height: 30px; padding: 0 10px; border: 0; border-radius: 99px; background: transparent; cursor: pointer; font: 500 13px var(--sans); color: var(--faint); }
.ld-btn:hover { color: var(--ink); background: var(--bg-warm); }
.ld-ask { font-size: 13px; color: var(--neg); margin-right: 4px; }
.ld-rename { min-width: 0; }
.btn.del { background: var(--neg); color: #fff; }
.dr-item { position: relative; }
.dr-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  font: 400 18px/1 var(--sans); color: var(--faint); }
.dr-x:hover { background: var(--bg-warm); color: var(--ink); }
.dr-item:has(.dr-x) .dr-state { margin-right: 26px; }
.dropin-out .dr-item { transition: opacity .35s var(--ease), transform .35s var(--ease); }
@media (max-width: 560px) {
  .ld-item { grid-template-columns: auto minmax(0, 1fr); }
  .ld-act { grid-column: 1 / -1; justify-content: flex-start; margin-left: 46px; }
}

/* "Ask your AI assistant": an example chat under the pitch, and the line that says where the data would go */
.ai .plus-tag svg { animation: none; }
.ai-demo { display: flex; flex-direction: column; gap: 10px; }
.ai-demo figcaption { margin-bottom: 2px; }
.ai-q, .ai-a { margin: 0 !important; max-width: 46ch !important; padding: 10px 14px; border-radius: 16px; font-size: 14px !important; line-height: 1.45 !important; }
.ai-q { align-self: flex-end; background: var(--bg-warm); color: var(--ink) !important; border-bottom-right-radius: 6px; }
.ai-a { align-self: flex-start; display: flex; gap: 8px; color: var(--ink-2, var(--ink)) !important; box-shadow: inset 0 0 0 1px var(--line); border-bottom-left-radius: 6px; }
.ai-a svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--c-invest); }
.ai-trust { display: flex; gap: 8px; margin-top: 14px !important; font-size: 13px !important; color: var(--quiet) !important; }
.ai-trust svg { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.plus.ai { margin-top: 110px; }
