/* WhereItWent home page.
 *
 * Built from the app's own design language (.atelier/DESIGN.md): the colour values are the ones in
 * lib/design/tokens/color.dart, dark authored first and light derived; one accent; depth as tone
 * with no shadow, blur or gradient; radii 12 / 16 / 20 plus a pill; motion on the app's three
 * curves. The subpages (privacy, support, get) keep /style.css and are untouched by this file. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-semibold.woff2") format("woff2"); }
/* The app's category glyphs, subset to the eighteen seed categories. Codepoint = 0xE000 + ordinal. */
@font-face { font-family: "WiwGlyphs"; font-display: block; src: url("/assets/fonts/wiw-glyphs.woff2") format("woff2"); }

:root {
  --bg: #0b1115;
  --bg-low: #11181c;
  --raised: #181f24;
  --raised-hi: #20282d;
  --overlay: #293238;
  --line: #232b30;
  --line-strong: #384248;
  --ink: #e4eff5;
  --muted: #afbdc6;
  --faint: #8494a0;
  --accent: #5bc7b1;
  --on-accent: #12221e;
  --accent-c: #19342e;
  --on-accent-c: #abddd1;
  --focus: #7fe9d3;
  --expense: #e8a571;
  --income: #80c479;
  --carry: #c79de1;
  --transfer: #7eaef4;
  --hole: #11181c;
  --seat: #020406;
  --placeholder: #20282d;
  --device: #04080b;
  --device-edge: #2a3338;

  --ease: cubic-bezier(.32, 0, .12, 1);
  --arrive: cubic-bezier(.05, 0, .12, 1);
  --depart: cubic-bezier(.32, 0, .9, .62);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  color-scheme: dark;
  interpolate-size: allow-keywords;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fbfc;
    --bg-low: #f1f5f8;
    --raised: #eaeff2;
    --raised-hi: #e3e9ec;
    --overlay: #dce2e6;
    --line: #dde3e7;
    --line-strong: #c3ccd2;
    --ink: #272f34;
    --muted: #505d65;
    --faint: #66737c;
    --accent: #176d5e;
    --on-accent: #ffffff;
    --accent-c: #c9efe5;
    --on-accent-c: #1b443b;
    --focus: #1e8674;
    --expense: #8f521c;
    --income: #2c6e27;
    --carry: #78518f;
    --transfer: #3561a2;
    --hole: #ffffff;
    --seat: #ced6da;
    --placeholder: #e3e9ec;
    --device: #0b1115;
    --device-edge: #2a3338;
    color-scheme: light;
  }
}

/* ------------------------------------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent-c); color: var(--on-accent-c); }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.money, .tnum { font-variant-numeric: tabular-nums; }

.i {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; }
.skip:focus { left: 16px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 12px; }

/* ------------------------------------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 32px; height: 68px; }
.lockup { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 600; font-size: 19px; letter-spacing: -.012em; }
.lockup:hover { text-decoration: none; }
/* The launcher icon, the running coin on its tile, rounded as a launcher would draw it. */
.lockup-mark { width: 32px; height: 32px; flex: none; border-radius: 9px; display: block; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav .btn-small { margin-left: 4px; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .btn-small { margin-left: auto; }
}

/* --------------------------------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 18px;
  border: 0; border-radius: 12px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 15px; line-height: 1;
  cursor: pointer; text-decoration: none;
  transition: transform 140ms var(--ease), background-color 140ms var(--ease), border-color 140ms var(--ease);
}
.btn:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn:active { transform: scale(.97); transition-duration: 90ms; }
.btn-small { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-large { height: 60px; padding: 0 26px 0 20px; gap: 12px; font-size: 19px; letter-spacing: -.01em; }
.btn-large .i { width: 24px; height: 24px; }
.btn-large small { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .01em; opacity: .82; margin-bottom: 3px; }
.btn-large span { text-align: left; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--raised); }
.btn-tonal { background: var(--accent-c); color: var(--on-accent-c); height: 48px; padding: 0 20px; }
.btn-tonal:hover { background: color-mix(in srgb, var(--accent-c) 85%, var(--accent)); }
.btn-tonal .i { width: 18px; height: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.text-link .i { width: 18px; height: 18px; transition: transform 200ms var(--ease); }
.text-link:hover .i { transform: translateY(2px); }
.text-link[href^="/"]:hover .i { transform: translateX(3px); }

/* ------------------------------------------------------------------------------------------ hero */

.hero { padding: clamp(24px, 3.5vw, 48px) 0 clamp(72px, 9vw, 128px); }
.hero-grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(40px, 6vw, 96px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 28px; padding: 6px 14px 6px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.eyebrow-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.display {
  margin: 0 0 28px;
  font-size: clamp(3rem, 1.25rem + 5.6vw, 6.6rem);
  font-weight: 600; line-height: .97; letter-spacing: -.048em;
  text-wrap: balance;
}
/* The full stop is set in the accent, the one colour on the page that marks where money landed. */
.landed {
  display: inline-block; width: .17em; height: .17em; margin-left: .05em;
  border-radius: 50%; background: var(--accent);
}
.js .display.reveal .landed { transform: translateY(-.9em); opacity: 0; }
.js .display.reveal.in .landed {
  transform: none; opacity: 1;
  transition: transform 450ms var(--arrive) 380ms, opacity 160ms linear 380ms;
}
.lede {
  margin: 0 0 36px; max-width: 34ch;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.5; color: var(--muted);
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cta-center { justify-content: center; }
.fine { margin: 18px 0 0; font-size: 14px; color: var(--faint); }

.hero-demo { display: flex; flex-direction: column; align-items: center; min-width: 0; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
}

/* ------------------------------------------------------------------------------------ the device */

.device {
  width: clamp(280px, 27vw, 360px);
  aspect-ratio: 9 / 19.4;
  padding: 9px;
  border-radius: 50px;
  background: var(--device);
  border: 1px solid var(--device-edge);
  touch-action: manipulation;
}
.screen {
  position: relative; width: 100%; height: 100%;
  overflow: hidden; border-radius: 41px;
  background: var(--bg);
  container-type: inline-size;
  isolation: isolate;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.screen-fallback { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* On a laptop the whole phone, its hints and the caption stay inside one screen. */
@media (min-width: 961px) { .device { width: clamp(272px, min(27vw, (100svh - 250px) * 9 / 19.4), 360px); } }
@media (max-width: 960px) { .device { width: min(340px, 100%); } }

/* Inside the phone everything is measured in em, and 1em is 16 logical pixels on a 360-wide
 * screen, so the demo keeps the app's proportions at any size the page gives it. */
.app {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  font-size: calc(100cqw / 22.5);
  line-height: 1.3;
}
.app .i { width: 1.5em; height: 1.5em; }
:where(.app) button { cursor: pointer; border: 0; background: none; padding: 0; }

.statusbar {
  flex: none; height: 2.5em; padding: .2em 1.75em 0;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--raised);
  font-size: .82em; font-weight: 600; font-variant-numeric: tabular-nums;
  position: relative;
}
.statusbar::after {
  content: ""; position: absolute; left: 50%; top: .62em;
  width: .78em; height: .78em; margin-left: -.39em;
  border-radius: 50%; background: var(--device);
}
.sb-icons { display: inline-flex; align-items: center; gap: .35em; }
.sb-signal { display: inline-flex; align-items: flex-end; gap: .12em; height: .8em; }
.sb-signal i { width: .2em; background: currentColor; border-radius: .1em; }
.sb-signal i:nth-child(1) { height: 35%; } .sb-signal i:nth-child(2) { height: 55%; }
.sb-signal i:nth-child(3) { height: 78%; } .sb-signal i:nth-child(4) { height: 100%; }
.sb-battery { width: 1.5em; height: .75em; border: .09em solid currentColor; border-radius: .22em; padding: .1em; position: relative; }
.sb-battery::before { content: ""; display: block; width: 72%; height: 100%; background: currentColor; border-radius: .08em; }

.views { position: relative; flex: 1; min-height: 0; }
.view {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--bg);
}

.appbar {
  flex: none; height: 3.6em; padding: 0 .4em;
  display: flex; align-items: center; gap: .1em;
  background: var(--raised);
}
.ab-icon {
  width: 2.75em; height: 2.75em; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  transition: background-color 140ms var(--ease);
}
button.ab-icon:active { background: var(--raised-hi); transition-duration: 90ms; }
.ab-title { flex: 1; min-width: 0; padding-left: .45em; line-height: 1.15; }
.ab-title b { display: block; font-size: 1.2em; font-weight: 600; letter-spacing: -.01em; }
.ab-title small { display: block; font-size: .82em; color: var(--muted); margin-top: .1em; }

/* The period strip: native scrolling, so a flick coasts the way the app's strip does. */
.strip {
  flex: none; height: 2.9em;
  display: flex; align-items: stretch;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; padding: 0 .4em;
  cursor: grab;
}
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; }
.strip button {
  flex: none; padding: 0 .95em;
  font-size: .9em; color: var(--muted); white-space: nowrap;
  transition: color 200ms var(--ease);
}
.strip button[aria-selected="true"] { color: var(--ink); font-weight: 600; }

.chart { position: relative; flex: 1; min-height: 0; touch-action: pan-y; overflow: hidden; cursor: default; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart .glyph { font-family: "WiwGlyphs"; }
.chart .pct { font-family: "Inter"; font-weight: 500; fill: var(--ink); font-variant-numeric: tabular-nums; }
.chart-inner { position: absolute; inset: 0; will-change: transform; }

.centre {
  position: absolute; transform: translate(-50%, -50%);
  display: grid; place-items: center;
  pointer-events: none;
}
.centre > div {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  font-variant-numeric: tabular-nums;
}
.centre .c-line { font-size: 1.2em; font-weight: 600; letter-spacing: -.01em; line-height: 1.22; white-space: nowrap; }
.centre .c-income { color: var(--income); }
.centre .c-expense { color: var(--expense); }
.centre .c-glyph { font-family: "WiwGlyphs"; font-size: 1.5em; line-height: 1; margin-bottom: .2em; }
.centre .c-label { font-size: .83em; font-weight: 500; color: var(--ink); max-width: 7.5em; line-height: 1.2; margin-bottom: .1em; }
.c-rest, .c-held { transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
.c-held { opacity: 0; transform: scale(.94); }
.centre.held .c-rest { opacity: 0; transition-duration: 150ms; }
.centre.held .c-held { opacity: 1; transform: none; transition: opacity 150ms var(--ease), transform 150ms var(--arrive); }

.panel {
  flex: none; height: 4.6em; width: 100%;
  display: grid; grid-template-columns: 3.25em 1fr 3.25em; align-items: center;
  background: var(--raised); text-align: center;
  position: relative; z-index: 3;
}
.panel .i { justify-self: center; color: var(--ink); transition: transform 300ms var(--ease); }
.panel[aria-expanded="true"] .i { transform: rotate(180deg); }
.panel-label { display: block; font-size: .83em; color: var(--muted); }
.panel-figure { display: block; font-size: 1.9em; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.panel-figure.pos { color: var(--income); }
.panel-figure.neg { color: var(--expense); }

.adds {
  flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25em;
  padding: .85em 1em 1.15em; background: var(--bg);
  position: relative; z-index: 3;
}
.add {
  height: 3.6em; border-radius: .75em;
  border: .125em solid currentColor;
  background: var(--raised);
  display: grid; place-items: center;
  transition: transform 140ms var(--ease);
}
.add:active, .add.pressing { transform: scale(.96); transition-duration: 90ms; }
.add.exp { color: var(--expense); }
.add.inc { color: var(--income); }

/* Records, pulled up from the panel. */
.records {
  position: absolute; inset: 0; z-index: 2;
  background: var(--bg);
  overflow-y: auto; scrollbar-width: none;
  transform: translateY(100%);
  transition: transform 400ms var(--ease);
  padding: .35em 0 .5em;
}
.records::-webkit-scrollbar { display: none; }
.records.open { transform: none; }
.rec-head { display: flex; justify-content: space-between; padding: .6em 1.25em .35em; font-size: .78em; color: var(--muted); }
.rec-row { display: grid; grid-template-columns: 2.5em 1fr auto; gap: .8em; align-items: center; padding: .55em 1.25em; }
.rec-disc {
  width: 2.5em; height: 2.5em; border-radius: 50%;
  display: grid; place-items: center;
  font-family: "WiwGlyphs"; font-size: 1em; line-height: 1;
}
.rec-disc span { font-size: 1.4em; }
.rec-name { font-size: .95em; line-height: 1.2; }
.rec-name small { display: block; font-size: .78em; color: var(--muted); margin-top: .15em; }
.rec-amt { font-size: .95em; font-weight: 600; font-variant-numeric: tabular-nums; }
.rec-amt.neg { color: var(--expense); }
.rec-amt.pos { color: var(--income); }

/* New expense / new income. */
.view-entry {
  z-index: 4;
  opacity: 0; visibility: hidden;
  transform: translateY(3%);
  transition: opacity 260ms var(--ease), transform 300ms var(--ease), visibility 0s linear 300ms;
}
.view-entry.open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 200ms var(--ease), transform 300ms var(--arrive), visibility 0s;
}
.amount-row { display: flex; align-items: center; justify-content: flex-end; gap: .35em; padding: 1.6em 1em .9em 1.25em; min-height: 5.2em; }
.figure {
  min-width: 0; overflow: hidden; white-space: nowrap; direction: rtl; text-align: right;
  font-size: 2.07em; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.figure.shake { animation: shake 180ms var(--ease); }
@keyframes shake { 25% { transform: translateX(.18em); } 75% { transform: translateX(-.18em); } }
.chips { display: flex; flex-wrap: wrap; gap: .55em; padding: 0 1.25em; }
.chip {
  display: inline-flex; align-items: center; gap: .45em;
  height: 2.5em; padding: 0 .85em; border-radius: .6em;
  border: 1px solid var(--accent); color: var(--accent);
  font-size: .8em; font-weight: 500; white-space: nowrap;
}
.chip .i { width: 1.35em; height: 1.35em; }
.chip .code { padding: .1em .45em; border-radius: .4em; background: var(--raised-hi); color: var(--muted); font-size: .85em; }
.chip .glyph-inline { font-family: "WiwGlyphs"; font-size: 1.35em; line-height: 1; }
.note-field {
  margin: .7em 1.25em 0; height: 2.9em; padding: 0 1em;
  display: flex; align-items: center;
  border-radius: .75em; background: var(--raised);
  font-size: .82em; color: var(--muted);
}
.keypad {
  margin-top: auto; padding: 0 1.25em;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .55em;
  position: relative;
}
.key {
  height: 3.15em; border-radius: .75em;
  background: var(--raised);
  font-size: 1.25em; font-weight: 500; color: var(--ink);
  transition: background-color 140ms var(--ease), transform 140ms var(--ease);
}
.key:active, .key.pressing { background: var(--raised-hi); transform: scale(.96); transition-duration: 90ms; }
.key.op { color: var(--accent); font-size: 1.3em; }
.key.eq { background: var(--accent-c); color: var(--on-accent-c); }
.action {
  margin: .7em 1.25em 1.2em; height: 3.4em; border-radius: .75em;
  background: var(--accent); color: var(--on-accent);
  font-size: .92em; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: .4em;
  transition: opacity 200ms var(--ease), transform 140ms var(--ease);
}
.action .i { width: 1.3em; height: 1.3em; }
.action:active { transform: scale(.98); transition-duration: 90ms; }
.action:disabled { opacity: .38; cursor: default; }

/* The category grid covers the keypad, as the app's does. */
.picker {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64%; z-index: 5;
  background: var(--raised);
  border-radius: 1.25em 1.25em 0 0;
  display: flex; flex-direction: column;
  transform: translateY(102%);
  transition: transform 300ms var(--ease);
}
.picker.open { transform: none; transition-timing-function: var(--arrive); }
.picker-head { display: flex; align-items: center; justify-content: space-between; padding: .8em .6em .3em 1.25em; }
.picker-head b { font-size: 1em; font-weight: 600; }
.picker-grid {
  flex: 1; overflow-y: auto; scrollbar-width: none;
  display: grid; grid-template-columns: repeat(4, 1fr); align-content: start; gap: .6em .2em;
  padding: .4em .8em 1.2em;
}
.picker-grid::-webkit-scrollbar { display: none; }
.pc { display: flex; flex-direction: column; align-items: center; gap: .3em; padding: .3em 0; }
.pc .rec-disc { width: 3em; height: 3em; transition: transform 140ms var(--ease); }
.pc .rec-disc span { font-size: 1.6em; }
.pc:active .rec-disc, .pc.pressing .rec-disc { transform: scale(.92); transition-duration: 90ms; }
.pc small { font-size: .7em; color: var(--ink); text-align: center; line-height: 1.15; }

.scrim {
  position: absolute; inset: 0; z-index: 4;
  background: #000; opacity: 0; pointer-events: none;
  transition: opacity 300ms var(--ease);
}
.scrim.on { opacity: .32; pointer-events: auto; }

/* Snackbar: a close button and a countdown bar, sliding down when it closes. */
.snack {
  position: absolute; left: .75em; right: .75em; bottom: 6.3em; z-index: 6;
  display: flex; align-items: center; gap: .3em;
  padding: .35em .3em .35em 1em; min-height: 3.4em;
  border-radius: .75em; background: var(--overlay);
  overflow: hidden;
  transform: translateY(calc(100% + 7em));
  transition: transform 300ms var(--depart);
}
.snack.open { transform: none; transition-timing-function: var(--arrive); }
.snack-text { flex: 1; min-width: 0; font-size: .82em; line-height: 1.25; }
.snack-undo { color: var(--accent); font-weight: 600; font-size: .85em; padding: .6em .7em; border-radius: .5em; }
.snack-close { width: 2.4em; height: 2.4em; display: grid; place-items: center; color: var(--muted); }
.snack-close .i { width: 1.2em; height: 1.2em; }
.snack-bar { position: absolute; left: 0; right: 0; bottom: 0; height: .15em; background: var(--accent); transform-origin: left; }

/* Under the phone. */
.demo-hints { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 0; }
.hint {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px 0 5px;
  border: 1px solid var(--line); border-radius: 999px; background: none;
  font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer;
  transition: border-color 140ms var(--ease), color 140ms var(--ease), transform 140ms var(--ease);
}
.hint:hover { border-color: var(--line-strong); color: var(--ink); }
.hint:active { transform: scale(.97); transition-duration: 90ms; }
.hint-key { padding: 4px 10px; border-radius: 999px; background: var(--raised-hi); color: var(--ink); font-size: 12.5px; font-weight: 600; }
.demo-caption { margin: 14px 0 0; min-height: 1.5em; font-size: 14px; color: var(--faint); text-align: center; font-variant-numeric: tabular-nums; }
.demo-caption.timing { color: var(--ink); }
.demo-caption b { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------------------------------- promises */

.promises { border-block: 1px solid var(--line); }
.promise-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; }
.promise { display: flex; align-items: center; gap: 14px; }
.promise p { margin: 0; line-height: 1.35; }
.promise b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.promise span { font-size: 15px; color: var(--muted); }
.disc {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-c); color: var(--on-accent-c);
}
@media (max-width: 960px) { .promise-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .promise-row { grid-template-columns: 1fr; gap: 18px; } }

/* -------------------------------------------------------------------------------------- sections */

.section { padding: clamp(88px, 11vw, 168px) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 64px; flex-wrap: wrap; }
.section-head-row .section-lede { max-width: 36ch; }
.kicker { margin: 0 0 16px; font-size: 15px; font-weight: 600; color: var(--accent); }
.title {
  margin: 0 0 22px;
  font-size: clamp(2.25rem, 1.25rem + 3.4vw, 4.4rem);
  font-weight: 600; line-height: 1.02; letter-spacing: -.038em;
  text-wrap: balance;
}
.title-xl { font-size: clamp(2.6rem, 1.1rem + 5.2vw, 6rem); line-height: .98; letter-spacing: -.048em; }
.section-lede { margin: 0; max-width: 56ch; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--muted); text-wrap: pretty; }

/* ---------------------------------------------------------------------------------------- steps */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  padding: 16px 16px 28px; border-radius: 20px;
  background: var(--bg-low); border: 1px solid var(--line);
}
.step > :not(.step-art) { margin-inline: 8px; }
.step-art {
  position: relative; height: 232px; margin-bottom: 26px;
  border-radius: 16px; background: var(--bg);
  display: grid; place-items: center; overflow: hidden;
}
.step-num {
  width: 28px; height: 28px; margin-top: 0; margin-bottom: 14px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.step h3 { margin-top: 0; margin-bottom: 8px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.step p { margin-top: 0; margin-bottom: 0; color: var(--muted); font-size: 16px; }
.step .step-num { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step-art { height: 210px; } }

.art-buttons { grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 28px; place-items: center stretch; }
.mini-add {
  height: 64px; border-radius: 12px; border: 2px solid currentColor;
  background: var(--raised); display: grid; place-items: center;
}
.mini-add .i { width: 24px; height: 24px; }
.mini-add.exp { color: var(--expense); }
.mini-add.inc { color: var(--income); }
.tap-ring {
  position: absolute; left: calc(28px + (100% - 70px) / 4); top: 50%;
  width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  background: var(--ink); opacity: 0; pointer-events: none;
}
.step.play .tap-ring { animation: tap 900ms var(--ease) 300ms 2; }
.step.play .mini-add.exp { animation: press 900ms var(--ease) 300ms 2; }
@keyframes tap { 0% { opacity: 0; transform: scale(.4); } 20% { opacity: .22; } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes press { 0%, 100% { transform: none; } 15% { transform: scale(.95); } 40% { transform: none; } }

.art-keypad { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 18px 40px; place-items: stretch; }
.mini-amount { text-align: right; font-size: 34px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; height: 40px; line-height: 40px; }
.mini-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini-keys span {
  height: 30px; border-radius: 8px; background: var(--raised);
  display: grid; place-items: center; font-size: 14px; font-weight: 500;
  transition: background-color 220ms var(--ease), color 220ms var(--ease);
}
.mini-keys span.op { background: var(--accent-c); color: var(--on-accent-c); }
.mini-keys span.hit { background: var(--accent); color: var(--on-accent); transition-duration: 60ms; }

.art-picker { padding: 20px 14px 0; place-items: start stretch; }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 2px; align-content: start; }
.mini-grid .pc { gap: 5px; padding: 0; }
.mini-grid .rec-disc { width: 42px; height: 42px; font-size: 16px; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.mini-grid small { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-grid .pc.picked .rec-disc { transform: scale(.9); outline: 2px solid var(--accent); outline-offset: 2px; }
.mini-toast {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 11px 14px; border-radius: 12px; background: var(--overlay);
  font-size: 13px; font-variant-numeric: tabular-nums;
  transform: translateY(calc(100% + 20px));
  transition: transform 300ms var(--depart);
}
.mini-toast b { color: var(--accent); font-weight: 600; }
.step.toasted .mini-toast { transform: none; transition-timing-function: var(--arrive); }

.timer-cta {
  margin-top: 16px; padding: 20px 20px 20px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  border-radius: 20px; background: var(--bg-low); border: 1px solid var(--line);
}
.timer-cta p { margin: 0; color: var(--muted); }

/* --------------------------------------------------------------------------------- the dashboard */

.section-glance { background: var(--bg-low); border-block: 1px solid var(--line); }
.glance-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.glance-copy .section-head, .glance-copy { max-width: 600px; }
.ticks { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 18px; }
.ticks li { display: flex; gap: 14px; }
.ticks p { margin: 0; color: var(--muted); }
.ticks b { color: var(--ink); font-weight: 600; }
.tick {
  width: 26px; height: 26px; flex: none; margin-top: 0;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-c); color: var(--on-accent-c);
}
.tick .i { width: 16px; height: 16px; stroke-width: 2; }
@media (max-width: 900px) { .glance-grid { grid-template-columns: 1fr; } }

.compare { margin: 0; justify-self: center; width: min(360px, 100%); }
.compare-device { padding: 9px; border-radius: 48px; background: var(--device); border: 1px solid var(--device-edge); }
.compare-stage {
  position: relative; overflow: hidden; border-radius: 39px;
  aspect-ratio: 720 / 1558;
  touch-action: pan-y;
}
.compare-stage img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.compare-dark { clip-path: inset(0 0 0 var(--split)); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split); width: 0;
  pointer-events: none;
}
.compare-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--accent); }
.compare-handle span {
  position: absolute; top: 50%; left: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: var(--accent);
  display: grid; place-items: center;
}
.compare-handle span::before, .compare-handle span::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border: solid var(--on-accent); border-width: 0 0 2px 2px;
}
.compare-handle span::before { left: 11px; transform: rotate(45deg); }
.compare-handle span::after { right: 11px; transform: rotate(-135deg); }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare-range:focus-visible + .compare-handle span, .compare-stage:has(.compare-range:focus-visible) .compare-handle span { outline: 2px solid var(--focus); outline-offset: 3px; }
.compare figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-size: 14px; color: var(--faint); }
.compare .cap-mid { color: var(--muted); text-align: center; }
.compare figcaption > span:first-child, .compare figcaption > span:last-child { font-weight: 600; color: var(--ink); min-width: 3em; }
.compare figcaption > span:last-child { text-align: right; }

/* ---------------------------------------------------------------------------------------- bento */

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 300px; padding: 24px;
  border-radius: 20px; background: var(--bg-low); border: 1px solid var(--line);
}
.card h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.card-icon {
  width: 42px; height: 42px; margin-bottom: 8px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px; background: var(--raised-hi); color: var(--accent);
}
.card-budget { grid-column: span 2; grid-row: span 2; justify-content: space-between; gap: 32px; padding: 32px; }
.card-budget h3 { font-size: 26px; letter-spacing: -.025em; margin-bottom: 10px; }
.card-budget .card-copy p { font-size: 17px; max-width: 44ch; }
.card .budget-label { margin: 0 0 6px; font-size: 16px; color: var(--muted); }
.card .budget-figure {
  margin: 0 0 28px; line-height: 1;
  font-size: clamp(56px, 7vw, 104px); font-weight: 600; letter-spacing: -.045em; color: var(--income);
}
/* What is available this month: the budget plus what carried over. Spent fills in from the left. */
.budget-bar { height: 12px; border-radius: 999px; background: var(--income); overflow: hidden; display: flex; }
.budget-bar span { display: block; height: 100%; width: 0; border-right: 2px solid var(--bg-low); transition: width 1100ms var(--ease) 200ms; }
.budget-spent { background: var(--expense); }
.card-budget.in .budget-spent { width: 92.7%; }
.budget-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.budget-legend span { display: inline-flex; align-items: center; gap: 8px; }
.budget-legend b { color: var(--ink); font-weight: 600; }
.sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sw-exp { background: var(--expense); }
.sw-carry { background: var(--carry); }
.sw-inc { background: var(--income); }

.mini-list { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--line); }
.mini-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.mini-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-list span { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list em { font-style: normal; font-size: 12.5px; color: var(--faint); }
.mini-list em.code { padding: 1px 6px; border-radius: 6px; background: var(--raised-hi); color: var(--muted); font-weight: 500; }
.mini-list b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-list .neg { color: var(--expense); }
.mini-list .pos { color: var(--income); }

.transfer-art { margin-top: auto; padding-top: 36px; display: flex; align-items: center; gap: 12px; }
.acct { padding: 8px 14px; border-radius: 999px; background: var(--raised-hi); font-size: 14px; font-weight: 500; }
.flow { position: relative; flex: 1; height: 2px; background: var(--line-strong); }
.flow i {
  position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--transfer);
}
.card.in .flow i { animation: travel 1400ms var(--ease) 300ms 2 both; }
@keyframes travel { from { left: 0; } to { left: 100%; } }
.flow b {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  font-size: 14px; font-weight: 600; color: var(--transfer); font-variant-numeric: tabular-nums; white-space: nowrap;
}

.search-art { margin-top: auto; display: grid; gap: 10px; }
.search-art .mini-list { margin: 0; border-top: 0; }
.search-field {
  height: 42px; padding: 0 14px; border-radius: 12px; background: var(--raised-hi);
  display: flex; align-items: center; gap: 10px; font-size: 14.5px;
}
.search-field .i { width: 18px; height: 18px; color: var(--muted); }
.typed { white-space: nowrap; }
.js .card:not(.in) .typed { clip-path: inset(0 100% 0 0); }
.card.in .typed { animation: type 700ms steps(6) 400ms both; }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.caret { width: 1.5px; height: 18px; background: var(--accent); margin-left: -8px; }
.card.in .caret { animation: blink 1s steps(1) 1100ms 3; }
@keyframes blink { 50% { opacity: 0; } }

.pin-art { margin-top: auto; display: flex; gap: 16px; justify-content: flex-start; padding: 8px 0; }
.pin-art i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--muted); transition: background-color 200ms var(--ease), border-color 200ms var(--ease); }
.card.in .pin-art i { animation: pin 300ms var(--ease) both; }
.card.in .pin-art i:nth-child(1) { animation-delay: 400ms; }
.card.in .pin-art i:nth-child(2) { animation-delay: 650ms; }
.card.in .pin-art i:nth-child(3) { animation-delay: 900ms; }
.card.in .pin-art i:nth-child(4) { animation-delay: 1150ms; }
@keyframes pin { from { background: transparent; border-color: var(--muted); } to { background: var(--accent); border-color: var(--accent); } }

.file-art { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.file { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 12px; background: var(--raised-hi); font-size: 14px; font-weight: 500; }
.file .i { width: 18px; height: 18px; color: var(--accent); }

.langs { margin-top: auto !important; display: flex; flex-wrap: wrap; gap: 6px; }
.langs span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--muted); }

.bento > .card:last-child { grid-column: span 2; }
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-budget { grid-row: auto; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .card-budget, .bento > .card:last-child { grid-column: auto; }
  .card { min-height: 0; }
  .card-budget { padding: 24px; }
}

/* -------------------------------------------------------------------------------------- privacy */

.zeros { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.zero { padding: 36px 24px 0 0; }
.zero + .zero { border-left: 1px solid var(--line); padding-left: 28px; }
.zero p { margin: 0; color: var(--muted); font-size: 17px; }
.zero .zero-figure {
  margin: 0 0 14px; color: var(--ink);
  font-size: clamp(96px, 13vw, 184px); font-weight: 600; line-height: .86; letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}
.privacy-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 32px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.privacy-notes p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 860px) {
  .zeros { grid-template-columns: 1fr; border-top: 0; }
  .zero, .zero + .zero { border-left: 0; padding: 28px 0 24px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 20px; }
  .zero .zero-figure { margin: 0; font-size: 88px; }
  .privacy-notes { grid-template-columns: 1fr; margin-top: 40px; }
}

/* -------------------------------------------------------------------------------------- screens */

.section-screens { padding-bottom: clamp(72px, 9vw, 136px); }
.rail {
  --edge: max(var(--gutter), (100vw - var(--max)) / 2);
  display: flex; gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 4px var(--edge) 12px;
  scrollbar-width: none; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging img { pointer-events: none; }
.shot { flex: none; width: clamp(220px, 23vw, 288px); margin: 0; scroll-snap-align: start; }
.shot-frame { padding: 7px; border-radius: 36px; background: var(--device); border: 1px solid var(--device-edge); }
.shot img { display: block; width: 100%; height: auto; border-radius: 29px; -webkit-user-drag: none; user-select: none; }
.shot figcaption { margin-top: 14px; text-align: center; font-size: 15px; font-weight: 500; color: var(--muted); }

/* ---------------------------------------------------------------------------------------- price */

.section-free { background: var(--bg-low); border-block: 1px solid var(--line); }
.free-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.jar { padding: 28px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }
.jar-title { margin: 0 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.jar-body { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; }
.jar-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.jar-tiers span { padding: 22px 0; border-radius: 12px; background: var(--raised); text-align: center; font-size: 15px; font-weight: 600; }
.jar-foot { margin: 18px 0 0; font-size: 14px; color: var(--faint); }
@media (max-width: 900px) { .free-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------------------------ questions */

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px clamp(40px, 7vw, 120px); align-items: start; }
.faq-grid .section-head { position: sticky; top: 108px; margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 24px 48px 24px 0;
  font-size: clamp(18px, 1rem + .3vw, 20px); font-weight: 600; letter-spacing: -.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; margin-top: -.75px;
  background: var(--muted); border-radius: 1px;
  transition: transform 300ms var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover::before, .faq summary:hover::after { background: var(--ink); }
.faq details p { margin: 0; padding: 0 0 26px; max-width: 62ch; color: var(--muted); }
.faq details::details-content {
  block-size: 0; overflow: clip;
  transition: block-size 300ms var(--ease), content-visibility 300ms allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
}

/* ------------------------------------------------------------------------------------ final call */

.final { padding: clamp(72px, 9vw, 136px) 0 clamp(96px, 11vw, 168px); text-align: center; overflow: hidden; }
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final .section-lede { margin: 0 auto 36px; max-width: 44ch; }
.coin { width: clamp(150px, 18vw, 220px); height: auto; margin-bottom: 12px; }
.js .coin { opacity: 0; transform: translateX(-60vw); }
.js .final.in .coin { opacity: 1; transform: none; transition: transform 800ms var(--arrive), opacity 200ms linear; }

/* --------------------------------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 8px 28px; flex-wrap: wrap; font-size: 15px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-fine { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-top: 28px; font-size: 14px; color: var(--faint); }
.footer-fine p { margin: 0; }

/* --------------------------------------------------------------------------------------- reveal */

.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 500ms var(--arrive) var(--d, 0ms), transform 600ms var(--arrive) var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .coin, .js .display.reveal .landed { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}
