/* Budz landing — built on the app's own tokens (src/theme/tokens.ts):
   Planner 5D language — one fresh green accent, neutral greys, white cards on a soft grey canvas,
   pills for every action, big continuous corners, very soft elevation, SF Pro type. */

:root {
  /* light palette — mirrors `light` in tokens.ts */
  --canvas: #f4f4f4;
  --surface: #ffffff;
  --raised: #ffffff;
  --field: #f6f6f6;
  --fill: #efefef;
  --fill-strong: #e8e8e8;
  --ink: #121212;
  --ink2: #6b6b6b;
  --ink3: #a3a3a3;
  --line: #ebebeb;
  --green: #19b54a;
  --green-deep: #0b6b2e;
  --brand: #1ba25f;
  --green-tint: #e9f8ee;
  --green-tint2: #d2f5dc;
  --on-green: #ffffff;
  --cta-from: #35c85c;
  --cta-to: #14a743;
  --link: #147d4b;
  /* soft elevation — shadow() in theme/index.ts */
  --sh-card: 0 6px 24px rgba(0, 0, 0, 0.055);
  --sh-float: 0 10px 32px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.04);
  --sh-chip: 0 4px 14px rgba(0, 0, 0, 0.08);
  /* pastel pairs — wallet folders and category tiles */
  --mint-from: #e3f7ea;
  --mint-ink: #1e6b3d;
  --pink-from: #fbe3f6;
  --pink-ink: #8a2f72;
  --sky-from: #e2f1ff;
  --sky-ink: #245c8e;
  --butter-from: #fff2d6;
  --butter-ink: #86601a;
  --lilac-from: #eee9fd;
  --lilac-ink: #4f3e98;
  --peach-from: #ffe9df;
  --peach-ink: #8d4426;
  --slate: #44505c;
  /* shape lock: actions are pills; cards 24; sheets 32; tiles 20; plan 16; fields 12 */
  --r-sheet: 32px;
  --r-card: 24px;
  --r-tile: 20px;
  --r-plan: 16px;
  --r-field: 12px;
  /* motion vocabulary — motion in tokens.ts */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-pop: cubic-bezier(0.34, 1.45, 0.64, 1);
  --crossfade: 380ms;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", "Helvetica Neue", sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(84px, 10vw, 140px);
  color-scheme: light;
}

/* dark palette — mirrors `dark` in tokens.ts (the app follows the system appearance) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0d0e0d;
    --surface: #181a18;
    --raised: #202220;
    --field: #222422;
    --fill: #2a2c2a;
    --fill-strong: #2f312f;
    --ink: #f3f4f3;
    --ink2: #a2a6a2;
    --ink3: #6c706c;
    --line: #2a2c2a;
    --green: #2bc45a;
    --green-deep: #5fd785;
    --brand: #1a9c5b;
    --green-tint: #15301f;
    --green-tint2: #1c4429;
    --cta-from: #38cb5f;
    --cta-to: #16a845;
    --link: #2bc45a;
    --sh-card: 0 0 0 1px rgba(255, 255, 255, 0.04);
    --sh-float: 0 6px 20px rgba(0, 0, 0, 0.45);
    --sh-chip: 0 6px 20px rgba(0, 0, 0, 0.45);
    --mint-from: #1d3a28;
    --mint-ink: #bdf0cf;
    --pink-from: #3d2237;
    --pink-ink: #f7cdeb;
    --sky-from: #1c2f40;
    --sky-ink: #cbe6ff;
    --butter-from: #3b321c;
    --butter-ink: #fce7b4;
    --lilac-from: #2a2540;
    --lilac-ink: #dcd3ff;
    --peach-from: #3d2a22;
    --peach-ink: #ffd9c8;
    --slate: #2a3138;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #0d0e0d;
  --surface: #181a18;
  --raised: #202220;
  --field: #222422;
  --fill: #2a2c2a;
  --fill-strong: #2f312f;
  --ink: #f3f4f3;
  --ink2: #a2a6a2;
  --ink3: #6c706c;
  --line: #2a2c2a;
  --green: #2bc45a;
  --green-deep: #5fd785;
  --brand: #1a9c5b;
  --green-tint: #15301f;
  --green-tint2: #1c4429;
  --cta-from: #38cb5f;
  --cta-to: #16a845;
  --link: #2bc45a;
  --sh-card: 0 0 0 1px rgba(255, 255, 255, 0.04);
  --sh-float: 0 6px 20px rgba(0, 0, 0, 0.45);
  --sh-chip: 0 6px 20px rgba(0, 0, 0, 0.45);
  --mint-from: #1d3a28;
  --mint-ink: #bdf0cf;
  --pink-from: #3d2237;
  --pink-ink: #f7cdeb;
  --sky-from: #1c2f40;
  --sky-ink: #cbe6ff;
  --butter-from: #3b321c;
  --butter-ink: #fce7b4;
  --lilac-from: #2a2540;
  --lilac-ink: #dcd3ff;
  --peach-from: #3d2a22;
  --peach-ink: #ffd9c8;
  --slate: #2a3138;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
}
.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-fill {
  fill: currentColor;
  stroke: none;
}
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

/* ---------- logo (the app's blueprint B — src/art/Logo.tsx, scripts/render-icon.mjs) ---------- */

.app-icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 22.4%;
}
.mark-stroke {
  fill: none;
  stroke: #fff;
  vector-effect: non-scaling-stroke;
  stroke-width: 1.3;
}
.mark-fill {
  fill: #fff;
  opacity: 0.3;
}
.mark-lg .mark-stroke {
  stroke-width: 2.2;
}
.js .draw .mark-stroke {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.js .draw .mark-fill {
  opacity: 0;
}
.js .draw.go .mark-stroke {
  animation: mk-draw var(--d) var(--s) cubic-bezier(0.33, 1, 0.68, 1) forwards;
}
.js .draw.go .mark-fill {
  animation: mk-fill 0.29s 1.31s ease-out forwards;
}
@keyframes mk-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes mk-fill {
  to {
    opacity: 0.32;
  }
}
/* the app's draw windows over 1.6s: lines [0,.34] [.12,.42] [.24,.54] [.34,.64], bowls [.46,.74] [.56,.84], fill [.82,1] */
.w1 {
  --s: 0s;
  --d: 0.54s;
}
.w2 {
  --s: 0.19s;
  --d: 0.48s;
}
.w3 {
  --s: 0.38s;
  --d: 0.48s;
}
.w4 {
  --s: 0.54s;
  --d: 0.48s;
}
.w5 {
  --s: 0.74s;
  --d: 0.45s;
}
.w6 {
  --s: 0.9s;
  --d: 0.45s;
}

/* ---------- launch splash (DrawnLogo + LaunchCurtain) ---------- */

.splash {
  display: none;
}
.js .splash {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: #1ba25f;
  transition: opacity 0.3s cubic-bezier(0.55, 0, 1, 0.45);
}
.splash svg {
  width: 128px;
  height: 128px;
  transition: transform 0.3s var(--ease-out);
}
.js .splash.out {
  opacity: 0;
  pointer-events: none;
}
.splash.out svg {
  transform: scale(1.04);
}
.js .splash.gone {
  display: none;
}

/* ---------- type ---------- */

.title-xl {
  font-size: clamp(44px, 6.6vw, 92px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.title-lg {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lede {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--ink2);
  max-width: 34em;
  text-wrap: pretty;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.chip svg {
  width: 15px;
  height: 15px;
}
.chip-tint {
  background: var(--green-tint2);
  color: var(--green-deep);
  font-weight: 600;
}
.chip-green {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}
.kicker {
  margin-bottom: 18px;
}
.head {
  max-width: 820px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.head .lede {
  margin-top: 20px;
}
.center {
  text-align: center;
  margin-inline: auto;
}
.center .lede {
  margin-inline: auto;
}

/* ---------- buttons (src/ui/Button.tsx) ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: 600 18px/1 var(--font);
  letter-spacing: -0.2px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.11s var(--ease-out),
    filter 0.2s,
    background-color 0.2s;
}
.btn:active {
  transform: scale(0.97);
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn-md {
  height: 48px;
  font-size: 17px;
  padding: 0 24px;
}
.btn-sm {
  height: 42px;
  font-size: 16px;
  padding: 0 20px;
}
.btn-primary {
  background: linear-gradient(90deg, var(--cta-from), var(--cta-to));
  color: var(--on-green);
}
.btn-primary:hover {
  filter: brightness(1.05) saturate(1.05);
}
.btn-white {
  background: var(--raised);
  color: var(--ink);
  box-shadow: var(--sh-chip);
}
.btn-white:hover {
  background: var(--field);
}
.btn-grey {
  background: var(--fill);
  color: var(--ink);
}
.btn-grey:hover {
  background: var(--fill-strong);
}
.circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--raised);
  color: var(--ink);
  box-shadow: var(--sh-chip);
  flex: none;
}
.circle svg {
  width: 18px;
  height: 18px;
}
.circle-green {
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- nav: a floating capsule like the app's tab bar ---------- */

.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 100;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav-bar {
  pointer-events: auto;
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  height: 64px;
  padding: 0 10px 0 13px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--raised) 92%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: var(--sh-float);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-word {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tabs-nav {
  position: relative;
  display: flex;
  gap: 2px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.tabs-nav a {
  position: relative;
  z-index: 1;
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink2);
  text-decoration: none;
  transition: color 0.25s;
}
.tabs-nav a:hover,
.tabs-nav a.on {
  color: var(--ink);
}
.capsule {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--fill);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.42s var(--ease-out),
    width 0.42s var(--ease-out),
    opacity 0.25s;
}
.nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-btn {
  display: none;
  border: 0;
  cursor: pointer;
  box-shadow: none;
  background: var(--fill);
}

/* ---------- welcome hero (app/(onboarding)/index.tsx + features/welcome/Collage.tsx) ---------- */

.welcome {
  position: relative;
  min-height: max(720px, min(100svh, 980px));
  background: #0b0b0b;
  color: #fff;
  overflow: hidden;
  display: grid;
  align-items: end;
}
.collage {
  position: absolute;
  inset: -40px 0 0;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.col {
  --cw: clamp(140px, 17vw, 250px);
  width: var(--cw);
  flex: none;
}
.col.big {
  --cw: clamp(160px, 20vw, 290px);
}
.track {
  display: grid;
  gap: 14px;
  animation: drift var(--t, 90s) linear infinite;
  animation-delay: var(--o, 0s);
}
.col.up .track {
  animation-direction: reverse;
}
.track img {
  width: 100%;
  aspect-ratio: 720 / 1565;
  object-fit: cover;
  border-radius: calc(var(--cw) * 0.13);
}
@keyframes drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}
.welcome-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.15) 0%, rgba(11, 11, 11, 0.22) 30%, rgba(11, 11, 11, 0.78) 62%, #0b0b0b 92%);
}
.welcome-copy {
  position: relative;
  text-align: center;
  padding-top: 220px;
  padding-bottom: clamp(56px, 8vw, 96px);
}
.welcome-copy .lede {
  color: #9b9b9b;
  margin: 22px auto 34px;
  max-width: 30em;
}
.welcome-copy .cta-row {
  justify-content: center;
}
.welcome-note {
  margin-top: 22px;
  color: #9b9b9b;
  font-size: 15px;
}
.welcome-note b {
  color: #19b54a;
  font-weight: 600;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.welcome .btn-white {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(10px);
}
.welcome .btn-white:hover {
  background: rgba(255, 255, 255, 0.2);
}
.js .welcome-copy > * {
  opacity: 0;
  transform: translateY(16px);
}
.js.ready .welcome-copy > * {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.js.ready .welcome-copy > :nth-child(2) {
  transition-delay: 0.08s;
}
.js.ready .welcome-copy > :nth-child(3) {
  transition-delay: 0.16s;
}
.js.ready .welcome-copy > :nth-child(4) {
  transition-delay: 0.24s;
}

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

.section {
  padding: var(--section) 0;
}
.surface {
  background: var(--surface);
}
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
}
.surface .card {
  background: var(--canvas);
  box-shadow: none;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.points {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 17px;
}
.points svg {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 5px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  margin-top: 1px;
}
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- safe to spend (Home) ---------- */

.home-card {
  padding: 26px 26px 24px;
  text-align: center;
}
.pill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.pill-row .lead {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--raised);
  box-shadow: var(--sh-chip);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.pill svg {
  width: 16px;
  height: 16px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5ad37b, #19b54a);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  flex: none;
}
.avatar.alt {
  background: linear-gradient(135deg, #f7bca2, #f3a27f);
  color: #5a2a10;
}
.home-art {
  width: 132px;
  margin: 0 auto 4px;
}
.safe-label {
  color: var(--ink2);
  font-size: 15px;
}
.safe-num {
  font-size: clamp(52px, 5.4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.safe-sub {
  color: var(--ink2);
  font-size: 15px;
  margin-top: 4px;
}
.actions {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 24px;
}
.action {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink2);
}
.action .circle {
  width: 52px;
  height: 52px;
}
.action .circle svg {
  width: 20px;
  height: 20px;
}
.ask-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--raised);
  box-shadow: var(--sh-chip);
  color: var(--ink2);
  font-size: 16px;
  text-align: left;
}
.ask-row svg {
  width: 18px;
  height: 18px;
  color: var(--ink);
}
.stack {
  display: grid;
  gap: 16px;
}
.list {
  padding: 4px 20px;
}
.list-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 14px 0 4px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.row:last-child {
  border-bottom: 0;
}
.row .op {
  color: var(--ink2);
  display: inline-block;
  width: 20px;
}
.row .val {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.row.total .val,
.row.total .lbl {
  color: var(--green-deep);
  font-weight: 700;
}
.row.result {
  min-height: 74px;
}
.row.result .val {
  font-size: 36px;
  letter-spacing: -0.03em;
  color: var(--green-deep);
}
.js .list .row {
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.6s var(--ease-out);
  transition-delay: calc(0.2s + var(--i, 0) * 0.12s);
}
.js .list.in .row {
  opacity: 1;
  transform: none;
}

/* ---------- phone ---------- */

.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.16);
  background: #111;
  box-shadow:
    inset 0 0 0 1.5px #2c2c2c,
    0 40px 80px -30px rgba(0, 0, 0, 0.35),
    0 16px 32px -16px rgba(0, 0, 0, 0.2);
}
.phone-screen {
  position: relative;
  aspect-ratio: 720 / 1565;
  border-radius: calc(var(--w) * 0.13);
  overflow: hidden;
  background: #f4f4f4;
}
.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- story ---------- */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
}
.step {
  min-height: 74vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}
.js .step {
  opacity: 0.3;
  transition: opacity var(--crossfade);
}
.js .step.active {
  opacity: 1;
}
.step-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 0 0 4px var(--green-tint2);
  flex: none;
}
.step-kicker {
  font-size: 15px;
  font-weight: 600;
  color: var(--green-deep);
}
.step-art {
  width: 96px;
  height: 96px;
  margin-left: auto;
  object-fit: contain;
}
.step h3 {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 20px 0 14px;
}
.step p {
  color: var(--ink2);
  max-width: 30em;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.step-shot {
  display: none;
}
.story-stage {
  position: sticky;
  top: calc(50vh - 330px);
  height: 660px;
  display: grid;
  place-items: center;
}
.halo {
  position: absolute;
  width: min(540px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--halo, var(--mint-from));
  transition: background-color 0.6s var(--ease-out);
}
.story-stage .phone {
  --w: 290px;
}
.shots img {
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity var(--crossfade) var(--ease-out),
    transform 0.6s var(--ease-out);
}
.shots img.on {
  opacity: 1;
  transform: none;
}
.dots {
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  gap: 8px;
}
.dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--fill-strong);
  transition:
    height 0.42s var(--ease-out),
    background-color 0.25s;
}
.dots i.on {
  height: 28px;
  background: var(--green);
}

/* ---------- builder (app/(app)/builder.tsx) ---------- */

.builder {
  background-color: var(--canvas);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
}
.board {
  position: relative;
}
.board-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ask-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--raised);
  box-shadow: var(--sh-chip);
  color: var(--ink2);
  font-size: 16px;
}
.ask-pill svg {
  width: 16px;
  height: 16px;
  color: var(--ink);
}
.board-mid {
  margin: 14px 0;
}
.left-pill {
  font-variant-numeric: tabular-nums;
  transition:
    background-color 0.4s,
    color 0.4s;
}
.left-pill.done {
  background: var(--green);
  color: #fff;
}
.board-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: start;
}
.rail {
  display: grid;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--raised);
  box-shadow: var(--sh-chip);
}
.rail span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.rail svg {
  width: 18px;
  height: 18px;
}
.treemap {
  position: relative;
  aspect-ratio: 1.12;
  border-radius: 6px;
  overflow: hidden;
  background: var(--slate);
  padding: 5px;
  container-type: size;
  box-shadow: var(--sh-float);
}
.tm-inner {
  position: relative;
  width: 100%;
  height: 100%;
}
.tile {
  position: absolute;
  padding: 2.5px;
  transition:
    left 0.9s var(--ease-out),
    top 0.9s var(--ease-out),
    width 0.9s var(--ease-out),
    height 0.9s var(--ease-out);
}
.tile > div {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: var(--c);
  color: var(--k);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-align: center;
  overflow: hidden;
  padding: 3px;
  font-size: clamp(8px, 2cqw, 12px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}
.tile .nm {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile .amt {
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.tile.xs .nm {
  display: none;
}
.tile.xxs > div > span {
  display: none;
}
.tile.free > div {
  background: var(--canvas);
  color: var(--ink2);
  outline: 1.5px dashed var(--ink3);
  outline-offset: -4px;
}
.tile.bump > div {
  animation: bump 0.48s var(--ease-pop);
}
@keyframes bump {
  40% {
    transform: scale(1.04);
  }
}
.board-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink2);
}
.board-foot b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.undo {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: var(--raised);
  box-shadow: var(--sh-chip);
}
.undo span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.undo svg {
  width: 17px;
  height: 17px;
}
.board-phone {
  width: fit-content;
  margin-top: 44px;
}
.board-phone .phone {
  --w: 180px;
}

/* ---------- goals ---------- */

.goals-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.piggy {
  border-radius: var(--r-sheet);
  overflow: hidden;
  background: #f4f4f4;
  aspect-ratio: 1.2;
}
.piggy video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.goal-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.goal {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.goal-cover {
  position: relative;
  aspect-ratio: 1.6;
}
.goal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.goal-cover .chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  height: 28px;
  font-size: 13px;
}
.goal-body {
  padding: 18px 18px 18px;
  display: grid;
  gap: 8px;
}
.goal h3 {
  font-size: 18px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.goal-note {
  color: var(--ink2);
  font-size: 15px;
  line-height: 1.35;
}
.goal .amounts {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-top: 6px;
}
.goal .amounts b {
  font-weight: 700;
}
.goal .amounts span:last-child {
  color: var(--green-deep);
  font-weight: 600;
}
.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--fill);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: var(--v);
  border-radius: inherit;
  background: var(--green);
  transform-origin: left;
}
.js .bar i {
  transform: scaleX(0);
  transition: transform 1.2s calc(0.2s + var(--i, 0) * 0.12s) var(--ease-out);
}
.js .in .bar i {
  transform: none;
}
.goal .pace {
  color: var(--ink2);
  font-size: 13px;
}
.goal .btn {
  margin-top: 8px;
  width: 100%;
}
.chip-done {
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
}

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

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.tile-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--sh-card);
  padding: clamp(24px, 2.6vw, 34px);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tile-card h3 {
  font-size: clamp(24px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.tile-card p {
  color: var(--ink2);
  font-size: 17px;
  max-width: 24em;
}
.tile-copy {
  position: relative;
  z-index: 1;
  max-width: 64%;
}
.tile-art {
  position: absolute;
  top: 12px;
  right: 12px;
  width: clamp(110px, 11vw, 160px);
  pointer-events: none;
}
.tile-art img {
  animation: float 6s var(--ease-in-out) infinite;
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}
.tile-visual {
  margin-top: auto;
  position: relative;
}
.c7 {
  grid-column: span 7;
}
.c5 {
  grid-column: span 5;
}
.c4 {
  grid-column: span 4;
}
.c4 .tile-copy {
  max-width: 100%;
}
.p-butter {
  background: var(--butter-from);
}
.p-sky {
  background: var(--sky-from);
}
.p-mint {
  background: var(--mint-from);
}
.p-butter p,
.p-butter h3 {
  color: var(--butter-ink);
}
.p-sky p,
.p-sky h3 {
  color: var(--sky-ink);
}
.p-mint p,
.p-mint h3 {
  color: var(--mint-ink);
}

/* TxnRow-style bill rows */
.txns {
  display: grid;
  border-radius: var(--r-tile);
  background: var(--canvas);
  padding: 4px 16px;
}
.txn {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}
.txn:last-child {
  border-bottom: 0;
}
.cat {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.cat svg {
  width: 19px;
  height: 19px;
}
.cat.sky {
  background: var(--sky-from);
  color: var(--sky-ink);
}
.cat.lilac {
  background: var(--lilac-from);
  color: var(--lilac-ink);
}
.cat.mint {
  background: var(--mint-from);
  color: var(--mint-ink);
}
.txn b {
  display: block;
  font-weight: 600;
  font-size: 16px;
}
.txn small {
  display: block;
  color: var(--ink2);
  font-size: 14px;
}
.txn .amt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.due {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-deep);
  background: var(--green-tint2);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: 1px;
}
.tick {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink3);
  color: transparent;
  animation: tick 6s var(--d, 0s) infinite;
}
.tick svg {
  width: 13px;
  height: 13px;
}
@keyframes tick {
  0%,
  18% {
    background: transparent;
    border-color: var(--ink3);
    color: transparent;
    transform: scale(1);
  }
  23% {
    transform: scale(1.2);
  }
  27%,
  92% {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    transform: scale(1);
  }
  100% {
    background: transparent;
    border-color: var(--ink3);
    color: transparent;
  }
}

/* face id */
.faceid {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 40px;
  background: var(--green-tint);
  display: grid;
  place-items: center;
}
.faceid svg {
  width: 92px;
  height: 92px;
  overflow: visible;
}
.fid {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fid-face {
  animation: fid-face 4.5s infinite;
}
.fid-scan {
  stroke: var(--green);
  stroke-width: 2.5;
  opacity: 0;
  animation: fid-scan 4.5s infinite;
}
.fid-ok {
  fill: none;
  stroke: var(--green);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: fid-ok 4.5s infinite;
}
@keyframes fid-scan {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  8% {
    opacity: 0.8;
  }
  40% {
    transform: translateY(58px);
    opacity: 0.8;
  }
  46%,
  100% {
    transform: translateY(58px);
    opacity: 0;
  }
}
@keyframes fid-face {
  0%,
  46% {
    opacity: 1;
  }
  52%,
  92% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fid-ok {
  0%,
  50% {
    stroke-dashoffset: 1;
  }
  62%,
  90% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 1;
  }
}
.chips-c {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

/* ask sheet (app/(app)/ask.tsx) */
.ask {
  border-radius: var(--r-tile);
  background: var(--canvas);
  padding: 16px;
  display: grid;
  gap: 12px;
  min-height: 236px;
  align-content: start;
}
.q {
  justify-self: end;
  max-width: 82%;
  background: var(--fill);
  border-radius: 18px;
  padding: 10px 14px;
  font-size: 15px;
  animation: chat-a 9s infinite both;
}
.a-wrap {
  position: relative;
}
.typing {
  position: absolute;
  left: 0;
  top: 2px;
  display: flex;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--fill);
  animation: chat-b 9s infinite both;
}
.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink3);
  animation: dot 1s infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
.answer {
  animation: chat-c 9s infinite both;
}
.answer b {
  display: block;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.answer p {
  font-size: 15px;
  color: var(--ink);
  max-width: none;
}
.answer .lnk {
  display: block;
  color: var(--link);
  font-size: 15px;
  margin-top: 8px;
}
@keyframes dot {
  50% {
    transform: translateY(-3px);
    opacity: 0.5;
  }
}
@keyframes chat-a {
  0%,
  4% {
    opacity: 0;
    transform: translateY(10px);
  }
  10%,
  90% {
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    opacity: 0;
  }
}
@keyframes chat-b {
  0%,
  14% {
    opacity: 0;
  }
  18%,
  34% {
    opacity: 1;
  }
  38%,
  100% {
    opacity: 0;
  }
}
@keyframes chat-c {
  0%,
  36% {
    opacity: 0;
    transform: translateY(10px);
  }
  44%,
  90% {
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    opacity: 0;
  }
}

/* spend chart (features/home/SpendChart.tsx) */
.spend {
  border-radius: var(--r-tile);
  background: var(--canvas);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
}
.spend-head b {
  display: block;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.spend-head small {
  color: var(--ink2);
  font-size: 14px;
}
.spend svg {
  width: 100%;
  height: auto;
  margin-top: 10px;
  overflow: visible;
}
.ln-past {
  fill: none;
  stroke: var(--ink3);
  stroke-width: 2;
  stroke-dasharray: 3 5;
}
.ln-now {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.js .ln-now {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2s 0.3s var(--ease-out);
}
.js .in .ln-now {
  stroke-dashoffset: 0;
}
.ln-dot {
  fill: var(--green);
  stroke: var(--canvas);
  stroke-width: 3;
}
.ax {
  font: 500 10px var(--font);
  fill: var(--ink2);
}
.cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 14px;
}
.cats .lbl {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.cats .lbl span:last-child {
  color: var(--ink2);
  font-variant-numeric: tabular-nums;
}

/* currency reel */
.reel {
  display: flex;
  align-items: center;
  gap: 16px;
}
.reel-win {
  width: 108px;
  height: 108px;
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
  flex: none;
  box-shadow: var(--sh-card);
}
.reel-strip {
  display: grid;
  animation: reel 14s var(--ease-out) infinite;
}
.reel-strip span {
  height: 108px;
  display: grid;
  place-items: center;
  font-size: 50px;
  font-weight: 700;
  color: var(--butter-ink);
}
@keyframes reel {
  0%,
  10% {
    transform: translateY(0);
  }
  12.5%,
  22.5% {
    transform: translateY(-108px);
  }
  25%,
  35% {
    transform: translateY(-216px);
  }
  37.5%,
  47.5% {
    transform: translateY(-324px);
  }
  50%,
  60% {
    transform: translateY(-432px);
  }
  62.5%,
  72.5% {
    transform: translateY(-540px);
  }
  75%,
  85% {
    transform: translateY(-648px);
  }
  87.5%,
  97.5% {
    transform: translateY(-756px);
  }
  100% {
    transform: translateY(-864px);
  }
}
.codes {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--butter-ink);
}

/* csv */
.sheet {
  border-radius: var(--r-tile);
  background: var(--surface);
  overflow: hidden;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--sh-card);
}
.sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.sheet-head svg {
  width: 17px;
  height: 17px;
  color: var(--sky-ink);
}
.sheet-body {
  height: 128px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}
.sheet-rows {
  animation: rows 12s linear infinite;
}
.sheet-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink2);
}
.sheet-row span:last-child {
  color: var(--ink);
  font-weight: 600;
}
@keyframes rows {
  to {
    transform: translateY(-50%);
  }
}

/* notification stack */
.notes {
  position: relative;
  height: 190px;
}
.notes .note {
  position: absolute;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--sh-chip);
  font-size: 14px;
  line-height: 1.35;
  animation: note 9s var(--d) infinite both;
}
.notes .note .app-icon {
  width: 38px;
  height: 38px;
}
.notes .note b {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}
.notes .note b small {
  font-weight: 400;
  color: var(--ink2);
}
.notes .note .msg {
  color: var(--ink2);
}
@keyframes note {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.96);
    z-index: 3;
  }
  6%,
  30% {
    opacity: 1;
    transform: none;
    z-index: 3;
  }
  36%,
  63% {
    opacity: 1;
    transform: translateY(64px) scale(0.97);
    z-index: 2;
  }
  69%,
  94% {
    opacity: 0.8;
    transform: translateY(122px) scale(0.94);
    z-index: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(146px) scale(0.9);
    z-index: 0;
  }
}

/* ---------- together ---------- */

.together-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.together-art {
  width: clamp(150px, 15vw, 220px);
  justify-self: end;
  animation: float 7s var(--ease-in-out) infinite;
}
.video-frame {
  position: relative;
  border-radius: var(--r-sheet);
  overflow: hidden;
  aspect-ratio: 16 / 8.2;
  background: #222;
  transform: scale(var(--s, 1));
  transform-origin: 50% 0;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vchip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--ink);
  box-shadow: var(--sh-float);
  font-size: 15px;
  line-height: 1.25;
}
.vchip small {
  display: block;
  color: var(--ink2);
  font-size: 13px;
}
.vchip b {
  font-weight: 600;
}
.vchip .money {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.vchip-1 {
  left: 4%;
  top: 7%;
  padding: 8px 16px 8px 8px;
}
.vchip-2 {
  right: 4%;
  bottom: 9%;
  border-radius: var(--r-card);
  padding: 12px 18px;
}
.vchip-3 {
  left: 5%;
  bottom: 11%;
}
.avatars {
  display: flex;
}
.avatars .avatar + .avatar {
  margin-left: -10px;
  box-shadow: 0 0 0 2.5px var(--raised);
}
.js .vchip {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition:
    opacity 0.48s var(--ease-out),
    transform 0.48s var(--ease-pop);
}
.js .video-frame.in .vchip {
  opacity: 1;
  transform: none;
}
.js .video-frame.in .vchip-2 {
  transition-delay: 0.4s;
}
.js .video-frame.in .vchip-3 {
  transition-delay: 0.8s;
}
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(28px, 3vw, 44px);
}
.trio .card {
  padding: 24px;
}
.trio b {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.trio p {
  color: var(--ink2);
  font-size: 16px;
}

/* ---------- onboarding (how) ---------- */

.onb {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.onb-card {
  padding: 24px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.onb-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-deep);
}
.onb-step .num {
  width: 30px;
  height: 30px;
  font-size: 14px;
  box-shadow: 0 0 0 3px var(--green-tint2);
}
.onb-card h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  text-align: center;
}
.opts {
  display: grid;
  gap: 10px;
}
.opt {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 14px 10px 8px;
  border-radius: var(--r-tile);
  background: var(--surface);
  border: 2px solid var(--fill-strong);
  transition:
    border-color 0.25s,
    background-color 0.25s;
}
.opt.selected {
  border-color: var(--green);
  background: var(--green-tint);
}
.opt img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.opt b {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.opt span {
  display: block;
  color: var(--ink2);
  font-size: 14px;
  line-height: 1.35;
}
.paycheck {
  text-align: center;
  padding: 18px 12px;
  border-radius: var(--r-tile);
  background: var(--surface);
}
.paycheck .amt {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.paycheck .per {
  color: var(--ink2);
  font-size: 15px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.chip-row .chip {
  height: 34px;
  background: var(--surface);
  border: 1.5px solid var(--fill-strong);
  transition:
    border-color 0.25s,
    background-color 0.25s,
    color 0.25s;
}
.chip-row .chip.sel {
  background: var(--green-tint);
  border-color: var(--green);
  color: var(--green-deep);
  font-weight: 600;
}
.mini-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.building {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 10px 0;
}
.sq-loader {
  display: grid;
  grid-template-columns: repeat(3, 18px);
  gap: 6px;
}
.sq-loader i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--green);
  animation: sq 1.6s var(--ease-in-out) infinite;
}
.sq-loader i:nth-child(2) {
  animation-delay: 0.1s;
}
.sq-loader i:nth-child(3) {
  animation-delay: 0.2s;
}
.sq-loader i:nth-child(4) {
  animation-delay: 0.3s;
}
.sq-loader i:nth-child(5) {
  animation-delay: 0.4s;
}
.sq-loader i:nth-child(6) {
  animation-delay: 0.5s;
}
.sq-loader i:nth-child(7) {
  animation-delay: 0.6s;
}
.sq-loader i:nth-child(8) {
  animation-delay: 0.7s;
}
.sq-loader i:nth-child(9) {
  animation-delay: 0.8s;
}
@keyframes sq {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.85);
  }
  40% {
    opacity: 1;
    transform: none;
  }
}
.caption-stack {
  position: relative;
  height: 24px;
  width: 100%;
  text-align: center;
  font-weight: 600;
}
.caption-stack span {
  position: absolute;
  inset: 0;
  animation: cap 7.5s infinite both;
}
.caption-stack span:nth-child(2) {
  animation-delay: 2.5s;
}
.caption-stack span:nth-child(3) {
  animation-delay: 5s;
}
@keyframes cap {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  6%,
  28% {
    opacity: 1;
    transform: none;
  }
  34%,
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  width: 100%;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-field);
  background: var(--surface);
  font-size: 15px;
}
.checks .tick {
  animation-duration: 7.5s;
}

/* ---------- pricing (features/paywall/PlanPicker.tsx) ---------- */

.pay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.timeline {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  min-height: 84px;
}
.timeline li:last-child {
  min-height: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: var(--green-tint2);
}
.timeline li:last-child::before {
  display: none;
}
.tl-dot {
  width: 40px;
  height: 40px;
  margin: 6px auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
}
.timeline li:first-child .tl-dot {
  width: 52px;
  height: 52px;
  margin-top: 0;
  box-shadow: 0 0 0 4px var(--green-tint2);
}
.tl-dot svg {
  width: 18px;
  height: 18px;
}
.timeline b {
  display: block;
  font-size: 18px;
  font-weight: 600;
  padding-top: 10px;
}
.timeline li:first-child b {
  padding-top: 4px;
}
.timeline p {
  color: var(--ink2);
  font-size: 16px;
  padding-bottom: 12px;
}
.pay-card {
  padding: clamp(24px, 3vw, 36px);
}
.pay-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.feat {
  list-style: none;
  margin: 14px 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.feat li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  font-size: 16px;
}
.feat svg {
  width: 24px;
  height: 24px;
  padding: 5px;
  border-radius: 50%;
  background: var(--green-tint2);
  color: var(--green-deep);
}
.feat b {
  font-weight: 600;
}
.feat span {
  color: var(--ink2);
}
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.plan {
  height: 116px;
  border-radius: var(--r-plan);
  border: 2px solid var(--fill-strong);
  background: var(--surface);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  font-size: 17px;
  transition:
    border-color 0.2s,
    transform 0.11s var(--ease-out);
}
.plan:active {
  transform: scale(0.97);
}
.radio {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--ink3);
  display: grid;
  place-items: center;
  color: transparent;
  transition: all 0.2s;
}
.radio svg {
  width: 14px;
  height: 14px;
}
.plan[aria-checked="true"] {
  border-color: var(--green);
}
.plan[aria-checked="true"] .radio {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.plan span {
  font-variant-numeric: tabular-nums;
}
.pay-cta {
  margin-top: 18px;
  width: 100%;
}
.pay-fine {
  text-align: center;
  margin-top: 12px;
  font-size: 16px;
}
.pay-fine small {
  display: block;
  color: var(--ink2);
  font-size: 13px;
  margin-top: 2px;
}
.cancel {
  margin-top: 16px;
  text-align: center;
}
.cancel summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  text-decoration: underline;
  display: inline-block;
}
.cancel summary::-webkit-details-marker {
  display: none;
}
.cancel p {
  margin-top: 10px;
  color: var(--ink2);
  font-size: 15px;
}
[hidden] {
  display: none !important;
}

/* ---------- faq: grouped list like the app's ListRow ---------- */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  padding: 4px 22px;
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:last-child {
  border-bottom: 0;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 600;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.chev {
  width: 18px;
  height: 18px;
  color: var(--ink3);
  flex: none;
  transition: transform 0.38s var(--ease-out);
}
.faq-list details[open] .chev {
  transform: rotate(90deg);
}
.faq-a {
  padding: 0 34px 18px 0;
  color: var(--ink2);
  font-size: 16px;
}
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
  details::details-content {
    block-size: 0;
    overflow: hidden;
    transition:
      block-size 0.38s var(--ease-out),
      content-visibility 0.38s allow-discrete;
  }
  details[open]::details-content {
    block-size: auto;
  }
}

/* ---------- brand cta: the green splash ---------- */

.brand-cta {
  background: linear-gradient(180deg, #22b061, #178f53);
  color: #fff;
  text-align: center;
  padding: clamp(90px, 11vw, 150px) 0;
  overflow: hidden;
}
.brand-cta .mark-lg {
  width: 128px;
  height: 128px;
  margin: 0 auto 30px;
}
.brand-cta .lede {
  color: rgba(255, 255, 255, 0.88);
  margin: 20px auto 34px;
}
.brand-cta .btn-white {
  color: #121212;
  background: #fff;
}
.brand-cta .cta-row {
  justify-content: center;
}
.brand-cta .welcome-note {
  color: rgba(255, 255, 255, 0.82);
}

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

.footer {
  padding: 56px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.5fr));
  gap: 32px;
}
.footer p {
  color: var(--ink2);
  font-size: 15px;
  margin-top: 14px;
}
.footer h4 {
  font-size: 13px;
  color: var(--ink2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 12px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer ul a {
  text-decoration: none;
  font-size: 15px;
}
.footer ul a:hover {
  color: var(--link);
}
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink2);
  font-size: 13px;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .c7,
  .c5,
  .c4 {
    grid-column: span 6;
  }
  .c4.last {
    grid-column: span 12;
  }
  .tile-copy {
    max-width: 100%;
  }
  .tile-card h3 {
    padding-right: 110px;
  }
  .tile-art {
    width: 110px;
  }
  .spend {
    grid-template-columns: minmax(0, 1fr);
  }
  .onb {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .onb .onb-card:last-child {
    grid-column: 1 / -1;
  }
  .goals-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tabs-nav a {
    padding: 9px 12px;
  }
}

@media (max-width: 900px) {
  .tabs-nav {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  .nav.open .tabs-nav {
    display: grid;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px;
    border-radius: var(--r-card);
    background: var(--raised);
    box-shadow: var(--sh-float);
  }
  .nav.open .tabs-nav a {
    padding: 14px 16px;
    font-size: 17px;
    color: var(--ink);
  }
  .nav.open .capsule {
    display: none;
  }
  .nav-end {
    margin-left: auto;
  }
  .split,
  .story-grid,
  .together-head,
  .pay {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-stage {
    display: none;
  }
  .step,
  .js .step {
    min-height: 0;
    opacity: 1;
    padding: 34px 0;
  }
  .step-shot {
    display: block;
    margin-top: 28px;
    padding: 26px 0;
    border-radius: var(--r-sheet);
    background: var(--halo-m, var(--mint-from));
  }
  .step-shot .phone {
    --w: min(64vw, 270px);
    margin-inline: auto;
  }
  .board-phone {
    display: none;
  }
  .bento-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .c7,
  .c5,
  .c4,
  .c4.last {
    grid-column: auto;
  }
  .trio,
  .onb {
    grid-template-columns: minmax(0, 1fr);
  }
  .onb .onb-card:last-child {
    grid-column: auto;
  }
  .together-art {
    justify-self: start;
    order: -1;
  }
  .video-frame {
    aspect-ratio: 4 / 3.8;
  }
  .vchip-3 {
    display: none;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }
  .nav {
    top: 10px;
  }
  .nav-bar {
    height: 58px;
    padding: 0 8px 0 10px;
    gap: 8px;
  }
  .brand-word {
    font-size: 19px;
  }
  .nav-end .btn {
    height: 42px;
    padding: 0 16px;
    font-size: 15px;
  }
  .welcome-copy .btn {
    flex: 1 1 100%;
  }
  .goal-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .tile-card {
    min-height: 0;
  }
  .tile-card h3 {
    padding-right: 90px;
  }
  .tile-art {
    width: 90px;
  }
  .actions .action:nth-child(5) {
    display: none;
  }
  .vchip {
    font-size: 13px;
  }
  .vchip .money {
    font-size: 20px;
  }
  .plans {
    gap: 10px;
  }
  .faq-a {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  html {
    scroll-behavior: auto;
  }
  .track,
  .reel-strip,
  .sheet-rows,
  .q,
  .answer,
  .typing,
  .tick,
  .fid-face,
  .fid-scan,
  .fid-ok,
  .caption-stack span,
  .sq-loader i {
    animation: none !important;
  }
  .typing,
  .fid-scan,
  .fid-ok,
  .caption-stack span + span {
    display: none;
  }
  .notes {
    height: auto;
    display: grid;
    gap: 8px;
  }
  .notes .note {
    position: relative;
    animation: none !important;
  }
}

/* splash bookkeeping + fail-safes if the script never runs */
.title-lg + .lede {
  margin-top: 20px;
}
.no-splash .splash {
  display: none !important;
}
.js .splash {
  animation: failsafe-hide 0s 5s forwards;
}
.js:not(.ready) .welcome-copy > * {
  animation: failsafe-show 0s 5s forwards;
}
@keyframes failsafe-hide {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
@keyframes failsafe-show {
  to {
    opacity: 1;
    transform: none;
  }
}
.nav-bar > nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}
@media (max-width: 900px) {
  .nav-bar > nav {
    flex: 0;
  }
}
@media (max-width: 560px) {
  .tile-art {
    position: static;
    width: 84px !important;
    margin-bottom: -10px;
  }
  .tile-card h3 {
    padding-right: 0;
  }
}

/* ---------- legal pages (privacy.html, terms.html) ---------- */

.legal-hero {
  padding: 150px 0 36px;
}
.legal-hero .meta {
  margin-top: 14px;
  color: var(--ink2);
  font-size: 15px;
}
/* the app's segmented control (Plan / Spending) */
.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  margin-top: 28px;
  border-radius: 999px;
  background: var(--fill);
}
.seg a {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink2);
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.seg a:hover {
  color: var(--ink);
}
.seg a[aria-current="page"] {
  background: var(--raised);
  color: var(--ink);
  box-shadow: var(--sh-chip);
}
.glance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.glance .card {
  padding: 22px;
}
.glance .ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--green-tint2);
  color: var(--green-deep);
}
.glance .ico svg {
  width: 20px;
  height: 20px;
}
.glance b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.glance p {
  color: var(--ink2);
  font-size: 15px;
  line-height: 1.45;
}
.legal-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 110px;
}
.toc {
  position: sticky;
  top: 100px;
  padding: 18px 10px;
}
.toc h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink2);
  padding: 0 12px 8px;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.toc a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-field);
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink2);
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.toc a:hover {
  background: var(--fill);
  color: var(--ink);
}
.toc a.on {
  background: var(--green-tint);
  color: var(--green-deep);
  font-weight: 600;
}
.doc {
  padding: clamp(24px, 4vw, 52px);
}
.doc section + section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.doc h2 {
  font-size: clamp(22px, 2vw, 26px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  scroll-margin-top: 100px;
}
.doc h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 26px 0 8px;
}
.doc p,
.doc li {
  color: var(--ink2);
  font-size: 17px;
  line-height: 1.6;
}
.doc p + p {
  margin-top: 12px;
}
.doc ul {
  margin: 12px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.doc li::marker {
  color: var(--green);
}
.doc strong {
  color: var(--ink);
  font-weight: 600;
}
.doc a {
  color: var(--link);
}
.doc .callout {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: var(--r-tile);
  background: var(--green-tint);
  color: var(--ink);
}
.doc .caps {
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.ph {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--butter-from);
  color: var(--butter-ink);
  font-weight: 600;
  white-space: nowrap;
}
.pay-legal {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--ink2);
}
.pay-legal a {
  color: var(--link);
}
@media (max-width: 900px) {
  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
  }
  .glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .legal-hero {
    padding-top: 116px;
  }
  .glance {
    grid-template-columns: minmax(0, 1fr);
  }
}
