/* The marketing site: the app's own type (Geist) and colours (frontend/src/index.css), light
   and dark following the system. No framework and no JavaScript: every animation is CSS, and
   all of it stops under prefers-reduced-motion. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --bg: hsl(240 7% 97%);
  --surface: hsl(0 0% 100%);
  --tint: hsl(225 75% 95%);
  --tint-warm: hsl(152 45% 93%);
  --fg: hsl(240 10% 6%);
  --muted: hsl(240 4% 38%);
  --border: hsl(240 6% 88%);
  --primary: hsl(225.4 80.4% 53.9%);
  --primary-fg: hsl(0 0% 100%);
  --green: hsl(152 55% 42%);
  --grid: hsl(225 30% 50% / 0.09);
  --shadow: 0 1px 2px hsl(225 30% 20% / 0.06), 0 12px 32px -12px hsl(225 40% 25% / 0.18);
  --shadow-lg: 0 2px 4px hsl(225 30% 20% / 0.05), 0 40px 80px -24px hsl(225 45% 25% / 0.32);
  --c1: hsl(225.4 80.4% 53.9%); --c2: hsl(17 82.1% 56.3%); --c3: hsl(158.5 73.3% 39.6%); --c4: hsl(40.8 100% 46.5%);
  --c5: hsl(337.4 70.3% 69.6%); --c6: hsl(248.8 48.4% 44.1%); --c7: hsl(60 100% 23.9%); --c8: hsl(299.3 38.8% 40.4%);
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(240 8% 5%);
    --surface: hsl(240 6% 9%);
    --tint: hsl(225 35% 13%);
    --tint-warm: hsl(152 25% 10%);
    --fg: hsl(240 5% 96%);
    --muted: hsl(240 5% 66%);
    --border: hsl(240 5% 17%);
    --primary: hsl(225 88% 73%);
    --primary-fg: hsl(240 10% 6%);
    --green: hsl(152 50% 55%);
    --grid: hsl(225 40% 70% / 0.07);
    --c1: hsl(224.3 82.6% 61.8%); --c2: hsl(17.1 70.2% 50%); --c3: hsl(159.2 72.7% 35.9%); --c4: hsl(39.7 100% 39.4%);
    --c5: hsl(338.2 61.1% 57.6%); --c6: hsl(246.6 69.4% 71.8%); --c7: hsl(60 71.1% 35.3%); --c8: hsl(299.2 32.7% 56.3%);
    --shadow: 0 1px 2px hsl(0 0% 0% / 0.4), 0 16px 40px -16px hsl(0 0% 0% / 0.7);
    --shadow-lg: 0 2px 4px hsl(0 0% 0% / 0.4), 0 40px 90px -20px hsl(0 0% 0% / 0.85);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul[role="list"] { list-style: none; margin-block: 0; padding: 0; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Buttons: pill shaped, labels on one line. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px; border-radius: 999px; white-space: nowrap;
  font: 600 15px/1 "Geist", ui-sans-serif, system-ui, sans-serif; text-decoration: none;
  border: 1px solid transparent;
  transition: transform 300ms var(--ease), background-color 200ms ease, box-shadow 300ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--primary); color: var(--primary-fg);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.2), 0 6px 18px -6px color-mix(in srgb, var(--primary) 60%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 90%, var(--fg)); }
.btn-ghost { border-color: var(--border); background: var(--surface); color: var(--fg); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--border) 50%, var(--fg)); }
.btn-invert { background: var(--primary-fg); color: var(--primary); }
.ctas .btn-primary, .btn-invert { position: relative; overflow: hidden; }
.ctas .btn-primary::after, .btn-invert::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 35%, hsl(0 0% 100% / 0.4) 50%, transparent 65%); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.btn .icon { width: 18px; height: 18px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 24px; margin-right: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color 150ms; }
.nav-links a:hover { color: var(--fg); }
.lang { font-size: 14px; color: var(--muted); text-decoration: none; }
.lang:hover { color: var(--fg); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .wrap { gap: 14px; }
  .nav .brand { margin-right: auto; }
}
@media (max-width: 400px) { .nav .brand { font-size: 15px; } .nav .lang { display: none; } }

/* Hero: the words left, the real app right, tilted in space with the phone in front. A soft
   brand glow and a faint grid sit behind it. */
.hero { position: relative; padding: 72px 0 56px; isolation: isolate; overflow-x: clip; }
.hero::before, .hero::after { content: ""; position: absolute; inset: -64px 0 0; z-index: -1; pointer-events: none; }
.hero::before {
  background:
    radial-gradient(50% 55% at 78% 38%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%),
    radial-gradient(30% 35% at 96% 82%, color-mix(in srgb, var(--green) 16%, transparent), transparent 70%);
}
.hero::after {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent 75%);
}
.hero .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.3rem); font-weight: 720; letter-spacing: -0.045em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 31ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stage { position: relative; perspective: 2400px; margin-right: -12vw; padding: 24px 0 48px 40px; }
.screen { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-lg); overflow: hidden; }
.stage .screen { aspect-ratio: 16 / 10.4; transform: rotateY(-11deg) rotateX(5deg) rotateZ(0.5deg);
  transform-origin: 0 50%; transition: transform 900ms var(--ease); }
.stage .screen img { width: 128%; max-width: none; }
.phone { border-radius: 36px; padding: 9px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); }
.phone img { border-radius: 28px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; }
.phone-hero { position: absolute; left: 0; bottom: 0; width: 26%; }
@media (max-width: 960px) {
  .hero { padding: 40px 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .stage { margin-right: -20px; padding: 16px 0 40px 24px; }
  .phone-hero { width: 30%; border-radius: 24px; padding: 6px; }
  .phone-hero img { border-radius: 19px; }
}

/* Event cards that pop in over the hero's dashboard, one after another. */
.toasts { position: absolute; top: 2%; right: 14%; width: 300px; height: 76px; }
.toast { position: absolute; inset: 0 auto auto 0; width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.toast:not(:first-child) { opacity: 0; }
.toast > .icon { width: 36px; height: 36px; padding: 8px; border-radius: 11px; }
.toast div { display: grid; line-height: 1.3; }
.toast b { font-size: 14px; font-weight: 600; }
.toast span { font-size: 13px; color: var(--muted); }
.toast.good > .icon { color: var(--green); background: var(--tint-warm); }
.toast.warn > .icon { color: var(--c4); background: color-mix(in srgb, var(--c4) 14%, transparent); }
.toast.info > .icon { color: var(--primary); background: var(--tint); }
@media (max-width: 960px) { .toasts { top: -4px; right: 4%; width: 260px; transform: scale(0.88); transform-origin: top right; } }

/* One moving strip of what the app knows about. */
.marquee { display: flex; overflow: hidden; padding: 18px 0; border-block: 1px solid var(--border);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee ul { display: flex; flex: none; gap: 36px; padding-right: 36px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.marquee li { display: flex; align-items: center; gap: 36px; }
.marquee li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); opacity: 0.5; }

/* The money-flow diagram: income on the left, the month, where it went. */
.flow-card { margin: 0; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); padding: 28px 28px 32px; }
.flow-scroll { overflow-x: auto; margin-top: 12px; }
.flow-svg { display: block; width: 100%; min-width: 760px; height: auto; font-family: "Geist", ui-sans-serif, system-ui, sans-serif; }
.flow-svg .lbl { fill: var(--fg); font-size: 15px; font-weight: 600; }
.flow-svg .amt { fill: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.flow-svg .rib { fill: currentColor; fill-opacity: 0.18; }
.flow-svg .drop { fill: none; stroke: currentColor; stroke-linecap: round; stroke-dasharray: 0.1 26; stroke-opacity: 0.9; }
.flow-svg .node { fill: currentColor; }
.flow-svg .in { color: var(--green); }
.flow-svg .mid { fill: var(--fg); }
.flow-svg .c1 { color: var(--c1); } .flow-svg .c2 { color: var(--c2); } .flow-svg .c3 { color: var(--c3); } .flow-svg .c4 { color: var(--c4); }
.flow-svg .c5 { color: var(--c5); } .flow-svg .c6 { color: var(--c6); } .flow-svg .c7 { color: var(--c7); } .flow-svg .c8 { color: var(--c8); } .flow-svg .rest { color: var(--muted); }
/* Counters: the numbers count up as they scroll in (registered so the browser can animate them). */
@property --n { syntax: "<integer>"; inherits: false; initial-value: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.stat { display: grid; gap: 2px; }
.count { --n: var(--to); counter-reset: n var(--n); font-size: clamp(32px, 4vw, 48px); font-weight: 720; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.count::after { content: attr(data-pre) counter(n) attr(data-post); }
.stat small { color: var(--muted); font-size: 15px; }
.k300 { --to: 300; } .k18 { --to: 18; } .k370 { --to: 370; }
@media (max-width: 560px) { .stats { gap: 10px; } .stat small { font-size: 13px; } }

section { padding: 96px 0; }
.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head h2, .vault h2, .devices h2, .qa h2, .closing h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }
@media (max-width: 640px) { section { padding: 64px 0; } }

/* Features: six tiles of different sizes, each with a piece of the real app. */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile { position: relative; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
  padding: 28px; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  transition: translate 500ms var(--ease), box-shadow 500ms var(--ease); }
.tile:hover { translate: 0 -3px; box-shadow: var(--shadow); }
.tile h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; }
.tile p { color: var(--muted); font-size: 16px; max-width: 46ch; }
.tile.tint { background: var(--tint); border-color: transparent; }
.tile.tint-warm { background: var(--tint-warm); border-color: transparent; }
.t-tx { grid-column: 1 / span 8; grid-row: 1 / span 2; padding-bottom: 0; }
.t-budgets { grid-column: 9 / span 4; }
.t-loan { grid-column: 9 / span 4; }
.t-recurring { grid-column: span 5; }
.t-currency { grid-column: span 3; }
.t-goal { grid-column: span 4; }
.cut { margin-top: auto; padding-top: 14px; }
.cut img { border-radius: 14px; box-shadow: var(--shadow); transition: transform 600ms var(--ease); }
.tile:hover .cut img { scale: 1.02; }
.t-budgets .cut img { max-height: 260px; width: 100%; object-fit: cover; object-position: top; }
.pan { flex: 1 0 auto; display: flex; flex-direction: column; padding-top: 18px; }
/* Zoomed past the app's sidebar (15% of the shot) so the list fills the tile and has room to scroll. */
.pan picture { flex: 1 0 auto; display: block; border-radius: 14px 14px 0 0; border: 1px solid var(--border);
  border-bottom: 0; overflow: hidden; aspect-ratio: 16 / 11; }
.pan img { width: 160%; max-width: none; margin-left: -24%; }
/* The rolling currency code: the tile's one looping animation. */
.roll { height: 1.1em; overflow: hidden; font-size: clamp(52px, 6vw, 76px); font-weight: 750;
  letter-spacing: -0.05em; line-height: 1.1; color: var(--green); margin-bottom: auto; }
.roll span { display: block; height: 1.1em; }
.t-currency { justify-content: flex-end; min-height: 280px; }
@media (max-width: 960px) {
  .t-tx { grid-column: 1 / -1; grid-row: auto; }
  .t-budgets, .t-loan, .t-recurring, .t-goal { grid-column: span 6; }
  .t-currency { grid-column: span 6; }
  .t-recurring { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento .tile { grid-column: auto; }
  .t-currency { min-height: 0; }
}

/* Analytics: the real tab names, then the screen flattens toward you as you scroll. */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 36px; }
.tabs li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-size: 14px; color: var(--muted); }
.tabs li:first-child { background: var(--fg); color: var(--bg); border-color: var(--fg); }
/* Stacked screens that take turns (analytics tabs, phone screens); only the first shows without motion. */
.fades { display: grid; }
.fade { grid-area: 1 / 1; }
.fade:not(:first-child) { opacity: 0; }

/* Chains of nodes with dots moving along the links: where data goes, how devices stay in step. */
.chain { display: flex; align-items: flex-start; }
.chain .node { display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 14px; line-height: 1.35; width: 120px; flex: none; }
.chain .node .icon { width: 48px; height: 48px; padding: 12px; border-radius: 15px; color: var(--primary); background: var(--tint); }
.chain .link { position: relative; flex: 1; min-width: 20px; height: 2px; margin-top: 23px;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px); }
.chain .link i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary) 70%, transparent); opacity: 0; }
.data-path { position: relative; grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 32px; }
.data-path h3 { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 22px; }
.path-chain { justify-content: space-between; }
.sync { display: grid; justify-items: center; gap: 16px; margin-top: 36px; }
.sync .chain { width: min(560px, 100%); }
.sync p { color: var(--muted); }
.sync-chain .link i:nth-child(2) { background: var(--green); box-shadow: 0 0 10px color-mix(in srgb, var(--green) 70%, transparent); }
@media (max-width: 720px) {
  .path-chain { flex-direction: column; align-items: center; }
  .path-chain .node { width: auto; }
  .path-chain .link { flex: none; width: 2px; height: 28px; min-width: 0; margin: 8px 0;
    background: repeating-linear-gradient(180deg, var(--border) 0 6px, transparent 6px 12px); }
  .path-chain .link i { top: 0; left: -3px; }
  .chain .node { width: 96px; font-size: 13px; }
}

.reviews figure { margin: 0 0 16px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.reviews blockquote { margin: 0; font-size: 18px; }
.reviews figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }
.tilt-wrap { perspective: 1800px; }
.tilt { transform-origin: 50% 0; }

/* Privacy: one panel with a light running round its edge. */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 140deg; }
.vault { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center;
  border-radius: 28px; padding: clamp(28px, 5vw, 64px); overflow: hidden;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--a), var(--border) 0 55%, color-mix(in srgb, var(--primary) 85%, transparent) 72%, var(--border) 88%) border-box;
  border: 1px solid transparent; }
.vault::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(45% 60% at 0% 0%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%); }
.vault-head { position: relative; }
.vault-head > .icon { width: 52px; height: 52px; padding: 12px; border-radius: 14px; color: var(--primary);
  background: var(--tint); margin-bottom: 24px; }
.vault-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.promises { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
.promise .icon { width: 26px; height: 26px; color: var(--primary); }
.promise h3 { font-size: 18px; font-weight: 650; margin-top: 14px; letter-spacing: -0.015em; }
.promise p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 960px) { .vault { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .promises { grid-template-columns: 1fr; gap: 26px; } }

/* Example months: pick one of three people, or hide the amounts the way the app does. Plain
   radio buttons and a checkbox; :has() shows the chosen month, so it works without scripts. */
.flow-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.who { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 4px; min-width: 0;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
.who::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3);
  border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); transition: translate 550ms var(--ease); }
.flow-card:has(#m-1:checked) .who::before { translate: 100% 0; }
.flow-card:has(#m-2:checked) .who::before { translate: 200% 0; }
.who label { position: relative; display: flex; align-items: center; gap: 10px; padding: 5px 18px 5px 5px; border-radius: 999px;
  cursor: pointer; color: var(--muted); transition: color 250ms; }
.who label:has(:checked) { color: var(--fg); }
.who label:has(:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.who b { display: block; font-size: 14px; font-weight: 650; line-height: 1.2; }
.who small { display: block; font-size: 12px; line-height: 1.25; white-space: nowrap; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; font-size: 14px; font-weight: 700; }
.a0 { color: var(--c1); background: color-mix(in srgb, var(--c1) 14%, transparent); }
.a1 { color: var(--c3); background: color-mix(in srgb, var(--c3) 14%, transparent); }
.a2 { color: var(--c2); background: color-mix(in srgb, var(--c2) 14%, transparent); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 550; color: var(--muted); cursor: pointer; user-select: none; }
.switch .icon { width: 18px; height: 18px; }
.switch .track { position: relative; width: 40px; height: 24px; flex: none; border-radius: 99px; background: var(--border); transition: background-color 250ms; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 1px 3px hsl(240 10% 6% / 0.25); transition: translate 400ms var(--ease); }
.switch:has(:checked) { color: var(--fg); }
.switch:has(:checked) .track { background: var(--primary); }
.switch:has(:checked) .track::after { translate: 16px 0; }
.switch:has(:focus-visible) .track { outline: 2px solid var(--primary); outline-offset: 2px; }
.flow-card .amt, .flow-card .count { transition: filter 400ms var(--ease); }
.flow-card:has(#hide:checked) :is(.amt, .count) { filter: blur(7px); }
.month:not(.m0) { display: none; }
.flow-card:has(#m-1:checked) .m0, .flow-card:has(#m-2:checked) .m0 { display: none; }
.flow-card:has(#m-1:checked) .m1, .flow-card:has(#m-2:checked) .m2 { display: block; }
.note { margin-top: 22px; color: var(--muted); max-width: 72ch; }
.note b { color: var(--fg); font-weight: 600; }
.flow-foot { margin-top: 18px; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) {
  .flow-card { padding: 20px 16px 24px; }
  .who { width: 100%; }
  .who label { padding-right: 8px; gap: 8px; }
  .who small { display: none; }
}

/* A month in your pocket: the phone stays put on its stage while the chapters scroll past. Its
   screen and the card beside it follow the chapter being read. Where the browser cannot link
   them, each chapter shows its own phone. */
.story-grid { display: grid; grid-template-columns: minmax(300px, 5fr) 6fr; gap: clamp(32px, 5vw, 80px); timeline-scope: --ch2, --ch3, --ch4; }
.story-phone { position: sticky; top: max(88px, calc(50vh - 340px)); align-self: start; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; padding: 40px 24px; border-radius: 32px; border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--tint), color-mix(in srgb, var(--tint-warm) 80%, var(--tint)) 75%); }
.story-phone::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(60% 60% at 50% 45%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 45%, #000, transparent 80%); }
.story-phone .phone { width: min(270px, 62%); }
/* The screens stack inside the phone; the next one slides up over the last, never see-through. */
.screens { display: grid; overflow: hidden; border-radius: 28px; }
.screens > div { grid-area: 1 / 1; }
.screens > div:not(.screen-1) { translate: 0 101%; }
.screens > div:not(.screen-1) img { box-shadow: 0 -14px 32px hsl(240 10% 6% / 0.22); }
/* The card beside the phone, one per chapter, with the numbers on its screen. */
.chip { position: absolute; display: flex; align-items: center; gap: 10px; width: max-content; max-width: 270px; padding: 10px 14px;
  border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--surface); }
.chip > .icon { width: 32px; height: 32px; padding: 7px; border-radius: 10px; }
.chip div { display: grid; line-height: 1.3; }
.chip b { font-size: 13.5px; font-weight: 600; }
.chip span { font-size: 12.5px; color: var(--muted); }
.chip.good > .icon { color: var(--green); background: var(--tint-warm); }
.chip.info > .icon { color: var(--primary); background: var(--tint); }
.chip-1 { top: 15%; left: 16px; } .chip-2 { top: 34%; right: 16px; } .chip-3 { top: 56%; left: 16px; } .chip-4 { bottom: 14%; right: 16px; }
.chip:not(.chip-1) { opacity: 0; }
.chapters { display: grid; }
.chapter { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  max-width: 46ch; padding: 24px 0; }
.ch-icon { margin-bottom: 18px; }
.ch-icon .icon { width: 52px; height: 52px; padding: 13px; border-radius: 16px; color: var(--primary); background: var(--tint); }
.when { padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--primary); background: var(--tint); }
.chapter:nth-child(2) :is(.ch-icon .icon, .when) { color: var(--c2); background: color-mix(in srgb, var(--c2) 13%, transparent); }
.chapter:nth-child(3) :is(.ch-icon .icon, .when) { color: var(--c3); background: color-mix(in srgb, var(--c3) 13%, transparent); }
.chapter:nth-child(4) :is(.ch-icon .icon, .when) { color: var(--c6); background: color-mix(in srgb, var(--c6) 13%, transparent); }
.chapter h3 { margin-top: 14px; font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; letter-spacing: -0.03em; }
.chapter p { margin-top: 12px; color: var(--muted); font-size: 18px; }
.inline-phone { display: none; width: min(250px, 72%); margin-top: 28px; }
.ch2 { view-timeline-name: --ch2; } .ch3 { view-timeline-name: --ch3; } .ch4 { view-timeline-name: --ch4; }
@supports not (timeline-scope: none) {
  .story-grid { grid-template-columns: 1fr; }
  .story-phone { display: none; }
  .chapters { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px 32px; }
  .chapter { min-height: 0; justify-content: flex-start; padding: 0; }
  .inline-phone { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .story-grid { grid-template-columns: 1fr; }
  .story-phone { display: none; }
  .chapters { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px 32px; }
  .chapter { min-height: 0; justify-content: flex-start; padding: 0; }
  .inline-phone { display: block; }
}
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-phone { display: none; }
  .chapters { grid-template-columns: 1fr; gap: 56px; }
  .chapter { min-height: 0; justify-content: flex-start; padding: 0; }
  .inline-phone { display: block; }
}

/* A spreadsheet next to the app: the old way gets crossed out as it scrolls in. */
.vs { border-radius: 24px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.vs-row { display: grid; grid-template-columns: 1fr 1fr; }
.vs-row + .vs-row { border-top: 1px solid var(--border); }
.vs-row > * { margin: 0; padding: 18px 28px; display: flex; gap: 12px; align-items: flex-start; }
.vs .new { background: color-mix(in srgb, var(--tint) 60%, transparent); }
.vs-head h3 { align-items: center; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.vs-head .old { color: var(--muted); }
.vs-head .icon { width: 26px; height: 26px; color: var(--c3); }
.vs-head img { border-radius: 7px; }
.vs-row .icon { width: 20px; height: 20px; margin-top: 3px; }
.vs .old .icon { color: var(--c2); }
.vs .new .icon { color: var(--green); }
.vs .old span { color: var(--muted); background: linear-gradient(var(--c2), var(--c2)) 0 58% / 100% 1.5px no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.vs .new span { font-weight: 550; }
@media (max-width: 720px) {
  .vs-row { grid-template-columns: 1fr; }
  .vs-row > * { padding: 14px 20px; }
  .vs-head { display: none; }
  .vs-row + .vs-row { border-top-width: 6px; border-top-color: var(--bg); }
}

/* The little things: three tiles that show what they do, then the rest in a grid of nine. */
.showcase { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-bottom: 16px; }
.show { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 28px;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.show h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.015em; }
.show p { color: var(--muted); font-size: 15.5px; max-width: 42ch; }
.show-theme { grid-column: 1 / span 7; grid-row: span 2; padding: 0; gap: 0; }
.show-hide, .show-lang { grid-column: 8 / span 5; border-color: transparent; }
.show-hide { background: var(--tint); }
.show-lang { background: var(--tint-warm); }
/* Light and dark: the same screen in both, split by a line that wanders across. */
@property --split { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.theme-shot { position: relative; flex: 1; min-height: 280px; overflow: hidden; border-bottom: 1px solid var(--border); }
.theme-shot .layer { position: absolute; inset: 0; overflow: hidden; }
.theme-shot img { position: absolute; top: 0; left: -24%; width: 150%; max-width: none; }
.theme-shot .dark { clip-path: inset(0 0 0 var(--split)); }
.theme-shot::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; translate: -1px 0; background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.show-text { display: grid; gap: 8px; padding: 24px 28px 28px; }
.show-text > .icon { width: 26px; height: 26px; color: var(--primary); }
/* Hide amounts: the balance blurs as if H were pressed. */
.hide-demo { display: flex; align-items: center; gap: 16px; margin-bottom: auto; padding-bottom: 20px; }
kbd { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 11px; border: 1px solid var(--border);
  border-bottom-width: 3px; background: var(--surface); color: var(--fg); font: 650 18px/1 "Geist", ui-sans-serif, system-ui, sans-serif; }
.big-amt { font-size: clamp(30px, 3.2vw, 42px); font-weight: 720; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
  transition: filter 400ms var(--ease); }
.show-hide:hover .big-amt { filter: blur(9px); }
/* Two languages: the app's own menu names, in step. */
.lang-demo { display: grid; gap: 10px; margin-bottom: auto; padding-bottom: 20px; }
.lang-row { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.03em; }
.lang-row .code { flex: none; width: 38px; padding: 4px 0; text-align: center; border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: 0;
  color: var(--primary); background: var(--surface); }
.lang-row:nth-child(2) .code { color: var(--green); }
.words { height: 1.1em; overflow: hidden; line-height: 1.1; }
.words .track, .words .track span { display: block; }
.words .track span { height: 1.1em; }
/* The rest: nine small features, a hairline between them. */
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--border); }
.extra { display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 4px 16px; padding: 24px;
  background: var(--surface); transition: background-color 300ms ease; }
.extra:hover { background: color-mix(in srgb, var(--tint) 45%, var(--surface)); }
.extra .icon { grid-row: span 2; width: 42px; height: 42px; padding: 10px; border-radius: 12px; color: var(--primary); background: var(--tint);
  transition: transform 500ms var(--ease); }
.extra:nth-child(3n + 2) .icon { color: var(--c3); background: color-mix(in srgb, var(--c3) 13%, transparent); }
.extra:nth-child(3n + 3) .icon { color: var(--c2); background: color-mix(in srgb, var(--c2) 13%, transparent); }
.extra:hover .icon { transform: rotate(-8deg) scale(1.08); }
.extra h3 { margin-top: 2px; font-size: 16.5px; font-weight: 650; letter-spacing: -0.01em; }
.extra p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 960px) {
  .show-theme { grid-column: 1 / -1; grid-row: auto; }
  .show-hide { grid-column: 1 / span 6; }
  .show-lang { grid-column: 7 / span 6; }
  .extras { grid-template-columns: repeat(2, 1fr); }
  .extra:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .show-hide, .show-lang { grid-column: 1 / -1; }
  .theme-shot { min-height: 200px; flex: none; }
  .extras { grid-template-columns: 1fr; }
  .extra { padding: 20px; }
}

/* Devices: the web app on the left, the Windows app with a look at it on the right. */
.devices h2 { text-align: center; max-width: 16ch; margin-inline: auto; }
.duo { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; margin-top: 56px; }
.side { display: grid; align-content: center; gap: 34px; padding: 8px 12px; }
.side .icon, .windows-text > .icon { width: 26px; height: 26px; color: var(--primary); }
.side h3, .windows h3 { font-size: 19px; font-weight: 650; margin-top: 12px; letter-spacing: -0.015em; }
.side p, .windows p { margin-top: 6px; color: var(--muted); }
.windows { position: relative; display: grid; overflow: hidden; padding: 32px 32px 0; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); }
.windows-text { display: grid; justify-items: start; }
.windows .btn { margin-top: 22px; }
.win-shot { margin: 32px -32px 0 0; overflow: hidden; border-radius: 14px 0 0 0; border: 1px solid var(--border); border-right: 0; border-bottom: 0;
  aspect-ratio: 16 / 7; box-shadow: var(--shadow); }
.win-shot img { width: 118%; max-width: none; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } .side { padding: 0; } }
@media (max-width: 560px) { .windows { padding: 24px 20px 0; } .win-shot { margin-right: -20px; } }

/* A word from the maker. */
.founder { position: relative; overflow: hidden; isolation: isolate; margin: 0; display: grid; gap: 32px;
  padding: clamp(32px, 6vw, 72px); border-radius: 28px; background: var(--tint); }
.founder::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 60%; aspect-ratio: 1; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--green) 22%, transparent), transparent); }
.founder blockquote { margin: 0; max-width: 28ch; font-size: clamp(24px, 3.2vw, 40px); font-weight: 650; line-height: 1.25; letter-spacing: -0.03em; }
.founder blockquote::before { content: "\201C"; display: block; font-size: 1.9em; line-height: 0.6; color: var(--primary); margin-bottom: 14px; }
.founder figcaption { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.founder figcaption img { border-radius: 11px; }
.founder figcaption span { display: grid; }
.founder figcaption b { color: var(--fg); font-size: 15px; }

/* Guides: one big card and two small ones, on the home page and on every guide. */
.guide-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 16px; }
.guide-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); text-decoration: none;
  transition: translate 500ms var(--ease), box-shadow 500ms var(--ease), border-color 300ms ease; }
.guide-card:hover { translate: 0 -3px; box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.guide-card > .icon { width: 44px; height: 44px; padding: 11px; border-radius: 13px; color: var(--primary); background: var(--tint); }
.guide-card.big { grid-row: span 2; justify-content: flex-end; min-height: 340px; border-color: transparent; background: var(--tint); }
.guide-card.big > .icon { width: 60px; height: 60px; padding: 15px; border-radius: 17px; background: var(--surface); margin-bottom: auto; }
.guide-card h3 { margin-top: 8px; font-size: 21px; font-weight: 650; letter-spacing: -0.02em; }
.guide-card.big h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; }
.guide-card p { color: var(--muted); font-size: 15.5px; }
.guide-card .meta { display: flex; align-items: center; gap: 8px; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--primary); }
.guide-card .meta .icon, .more .icon { width: 16px; height: 16px; transition: translate 400ms var(--ease); }
.guide-card:hover .meta .icon, .more:hover .icon { translate: 4px 0; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 600; color: var(--primary); text-decoration: none; }
@media (max-width: 760px) { .guide-grid { grid-template-columns: 1fr; } .guide-card.big { grid-row: auto; min-height: 0; } }

/* A guide: a readable column, an example box and the call to try the app. */
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.guide article { padding: 40px 0 8px; }
.guide-head { margin-top: 32px; max-width: 780px; }
.guide-icon .icon { width: 56px; height: 56px; padding: 14px; border-radius: 16px; color: var(--primary); background: var(--tint); }
.guide-head h1 { margin-top: 24px; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 720; letter-spacing: -0.04em; line-height: 1.06; }
.lead { margin-top: 20px; max-width: 60ch; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
.guide-head .meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.guide-layout { display: grid; grid-template-columns: minmax(0, 720px) 260px; justify-content: space-between; gap: 64px; align-items: start;
  margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--border); }
.prose { min-width: 0; }
.prose h2 { scroll-margin-top: 88px; }
.toc { position: sticky; top: 96px; display: grid; gap: 14px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.toc-h { font-size: 13px; font-weight: 650; color: var(--muted); }
.toc ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; line-height: 1.4; }
.toc li a { color: var(--muted); text-decoration: none; transition: color 150ms; }
.toc li a:hover { color: var(--fg); }
.toc .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 960px) { .guide-layout { grid-template-columns: 1fr; } .toc { display: none; } }
.prose h2 { margin-top: 44px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 680; letter-spacing: -0.025em; }
.prose > h2:first-child { margin-top: 0; }
.prose p, .prose li { color: color-mix(in srgb, var(--fg) 84%, var(--muted)); font-size: 18px; line-height: 1.7; }
.prose p { margin-top: 16px; }
.prose ul, .prose ol { margin: 16px 0 0; padding-left: 24px; }
.prose li { margin-top: 10px; padding-left: 4px; }
.prose li::marker { color: var(--primary); font-weight: 700; }
.prose strong { color: var(--fg); font-weight: 650; }
.example { margin-top: 28px; padding: 24px 28px; border-radius: var(--radius); background: var(--tint-warm); }
.example h3 { font-size: 15px; font-weight: 650; color: var(--green); }
.example ul { padding-left: 20px; }
.example p, .example li { font-size: 17px; }
.example p:first-of-type { margin-top: 8px; }
.cta-box { position: relative; overflow: hidden; margin-top: 48px; padding: clamp(28px, 4vw, 40px); border-radius: 24px; background: var(--primary); color: var(--primary-fg); }
.cta-box::before { content: ""; position: absolute; inset: -50% -20% auto auto; width: 70%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, hsl(152 60% 60% / 0.35), transparent); }
.prose .cta-box h2 { position: relative; margin-top: 0; color: inherit; }
.prose .cta-box p { position: relative; color: inherit; opacity: 0.9; max-width: 48ch; }
.cta-box .btn { position: relative; margin-top: 22px; background: var(--primary-fg); color: var(--primary); }
.prose .not-advice { margin-top: 40px; font-size: 14px; color: var(--muted); }
.related { padding: 72px 0 0; }
.related h2 { margin-bottom: 28px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; }
.related .guide-grid { grid-template-columns: 1fr 1fr; }
.hub { padding: 40px 0 24px; }
.hub h1 { margin-top: 28px; font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 720; letter-spacing: -0.045em; }
.hub .lead { margin-bottom: 48px; }
@media (max-width: 760px) { .related .guide-grid { grid-template-columns: 1fr; } }
/* The 50/30/20 split, to scale. */
.split-bar { display: flex; gap: 6px; margin-top: 24px; }
.seg { display: grid; gap: 2px; min-width: 0; padding: 16px; border-radius: 14px; border-top: 4px solid currentColor;
  background: color-mix(in srgb, currentColor 11%, var(--surface)); }
.seg b { font-size: 28px; font-weight: 720; letter-spacing: -0.03em; }
.seg span { font-size: 14px; color: var(--fg); }
.seg .amount { color: var(--muted); }
.s0 { color: var(--c1); } .s1 { color: var(--c2); } .s2 { color: var(--c3); }
.w50 { flex: 50 1 0; } .w30 { flex: 30 1 0; } .w20 { flex: 20 1 0; }
@media (max-width: 480px) { .seg { padding: 12px 10px; } .seg b { font-size: 22px; } .seg span { font-size: 13px; } }

/* Scroll progress: a thin line along the top edge that fills as you read. */
.progress { position: fixed; inset: 0 0 auto; z-index: 6; height: 2px; background: linear-gradient(90deg, var(--primary), var(--green));
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.hero h1 .w, .kin .w { display: inline-block; }

/* Questions */
.qa { display: grid; grid-template-columns: 4fr 7fr; gap: 56px; align-items: start; }
.qa-head { position: sticky; top: 104px; }
.qa-head p { margin-top: 14px; color: var(--muted); }
.qa-head a { color: var(--primary); }
.faq details { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 24px; line-height: 1;
  transition: transform 300ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-top: 12px; color: var(--muted); }
.faq a { color: var(--primary); }
@media (max-width: 860px) { .qa { grid-template-columns: 1fr; gap: 28px; } .qa-head { position: static; } }

/* Closing call to action */
.closing .box { position: relative; overflow: hidden; border-radius: 28px; padding: 72px 24px; text-align: center;
  background: var(--primary); color: var(--primary-fg); }
.closing .box::before { content: ""; position: absolute; inset: -40%; pointer-events: none;
  background: radial-gradient(40% 80% at 15% 0%, hsl(0 0% 100% / 0.22), transparent 70%),
    radial-gradient(35% 70% at 90% 100%, hsl(152 60% 60% / 0.28), transparent 70%); }
.closing h2, .closing p, .closing .btn { position: relative; }
.closing p { margin: 16px auto 32px; max-width: 44ch; font-size: 18px; opacity: 0.88; }

footer { padding: 40px 0 56px; border-top: 1px solid var(--border); font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer .brand { color: var(--fg); margin-right: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

/* Legal pages */
.legal { padding: 56px 0 88px; }
.legal article { max-width: 720px; }
.legal h1 { font-size: clamp(2.1rem, 4vw, 2.9rem); font-weight: 700; }
.legal .updated { margin-top: 10px; color: var(--muted); }
.legal h2 { font-size: 22px; font-weight: 650; margin-top: 40px; }
.legal p, .legal li { color: color-mix(in srgb, var(--fg) 82%, var(--muted)); }
.legal p { margin-top: 14px; }
.legal ul { margin: 14px 0 0; padding-left: 22px; }
.legal li { margin-top: 8px; }
.legal a { color: var(--primary); }

/* Motion. Everything below is skipped under prefers-reduced-motion. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-reduced-motion: no-preference) {
  /* On load: the words rise in order, the screen swings into place, the phone follows. */
  .enter { animation: rise 900ms var(--ease) backwards; }
  .d2 { animation-delay: 90ms; }
  .d3 { animation-delay: 180ms; }
  .stage .screen { animation: swing-in 1500ms var(--ease) 120ms backwards, sway 14s ease-in-out 1.7s infinite; }
  .phone-hero { animation: rise-far 1200ms var(--ease) 500ms backwards, float 6s ease-in-out 1.8s infinite; }

  /* Always something moving: these loop for as long as the page is open. */
  .hero::before { animation: drift 18s ease-in-out infinite alternate; }
  .toast { animation: toast 14s var(--ease) infinite backwards; }
  .toast:not(:first-child) { opacity: 1; }
  .toast:nth-child(1) { animation-delay: 1.6s; } .toast:nth-child(2) { animation-delay: 5.1s; }
  .toast:nth-child(3) { animation-delay: 8.6s; } .toast:nth-child(4) { animation-delay: 12.1s; }
  .marquee ul { animation: marquee 48s linear infinite; }
  .marquee:hover ul { animation-play-state: paused; }
  .flow-svg .drop { animation: drip 1.4s linear infinite; }
  .pan img { animation: pan 18s ease-in-out infinite alternate; }
  .cut img { animation: bob 7s ease-in-out infinite; }
  .t-loan .cut img { animation-delay: -2s; } .t-recurring .cut img { animation-delay: -4s; } .t-goal .cut img { animation-delay: -5.5s; }
  .fade { animation: take-turns 16s ease-in-out infinite; opacity: 0; }
  .fade:not(:first-child) { opacity: 0; }
  .fade:nth-child(2) { animation-delay: 4s; } .fade:nth-child(3) { animation-delay: 8s; } .fade:nth-child(4) { animation-delay: 12s; }
  .tabs.cycle li { animation: tab-on 16s ease-in-out infinite; }
  .tabs.cycle li:nth-child(2) { animation-delay: 4s; } .tabs.cycle li:nth-child(3) { animation-delay: 8s; } .tabs.cycle li:nth-child(4) { animation-delay: 12s; }
  .chain .link i { animation: travel 2.6s linear infinite; }
  .chain .link i:nth-child(2) { animation-delay: 1.3s; }
  .sync-chain .link i:nth-child(2) { animation-direction: reverse; }
  .path-chain .link:nth-of-type(2n) i { animation-duration: 3.2s; }
  .vault { animation: edge 9s linear infinite; }
  .vault-head > .icon { animation: ping 3.5s ease-out infinite; }
  .closing .box::before { animation: spin 28s linear infinite; }
  .ctas .btn-primary::after, .btn-invert::after { animation: shine 6s ease-in-out 2.5s infinite; }

  /* The headline's words rise one after another. */
  .hero h1 .w { animation: word 900ms var(--ease) backwards; }
  .hero h1 .w:nth-child(2) { animation-delay: 70ms; } .hero h1 .w:nth-child(3) { animation-delay: 140ms; }
  .hero h1 .w:nth-child(4) { animation-delay: 210ms; } .hero h1 .w:nth-child(5) { animation-delay: 280ms; }
  .hero h1 .w:nth-child(6) { animation-delay: 350ms; }
  .hero h1 em { background: linear-gradient(100deg, var(--primary) 40%, var(--green) 50%, var(--primary) 60%) 0 0 / 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: ink 7s ease-in-out 1.2s infinite; }
  .flow-svg .drop.slow { animation-duration: 2.2s; }
  .extra .icon { animation: bob 7s ease-in-out infinite; }
  .theme-shot { animation: split 10s ease-in-out infinite; }
  .big-amt { animation: blur-cycle 5s ease-in-out infinite; }
  kbd { animation: key-press 5s ease-in-out infinite; }
  .lang-row .track { animation: roll 12s var(--ease) infinite; }
  .extra:nth-child(3n + 2) .icon { animation-delay: -2.3s; } .extra:nth-child(3n + 3) .icon { animation-delay: -4.6s; }
  .win-shot img { animation: pan 20s ease-in-out infinite alternate; }
  .founder::before { animation: drift 16s ease-in-out infinite alternate; }
  .story-phone::before { animation: grid-drift 24s linear infinite; }
  /* A newly picked month draws itself in and counts up. */
  .month:not(.m0) .flow-svg { animation: wipe 1100ms var(--ease) both; }
  .month:not(.m0) .count { animation: count 1400ms var(--ease) both; animation-timeline: auto; }
  .month .note { animation: rise 600ms var(--ease) both; }

  /* The currency code rolls through six currencies and back. */
  .roll div { animation: roll 12s var(--ease) infinite; }

  /* The open answer slides open, where the browser can animate to auto height. */
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip;
    transition: height 400ms var(--ease), content-visibility 400ms allow-discrete; }
  .faq details[open]::details-content { height: auto; }

  /* On scroll, where supported (not yet Firefox): sections rise in as they arrive, the
     transactions list scrolls inside its tile, the analytics screen flattens and the phone rises. */
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 24%; }
    .count { animation: count linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    .tilt { animation: flatten linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
    .m0 .flow-svg { animation: wipe linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
    /* Headings: each word rises a beat after the one before it. */
    .kin .w { animation: word linear both; animation-timeline: view(); animation-range: entry 10% cover 28%; }
    .kin .w:nth-child(2) { animation-range: entry 16% cover 31%; } .kin .w:nth-child(3) { animation-range: entry 22% cover 34%; }
    .kin .w:nth-child(4) { animation-range: entry 28% cover 37%; } .kin .w:nth-child(5) { animation-range: entry 34% cover 40%; }
    .kin .w:nth-child(n + 6) { animation-range: entry 40% cover 43%; }
    /* The spreadsheet's lines get crossed out, the app's get their tick. */
    .vs .old span { animation: strike linear both; animation-timeline: view(); animation-range: entry 70% cover 45%; }
    .vs .new .icon { animation: pop linear both; animation-timeline: view(); animation-range: entry 80% cover 45%; }
    .split-bar { animation: wipe linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; }
  }
  @supports (animation-timeline: scroll()) {
    .progress { animation: progress linear both; animation-timeline: scroll(root); }
    /* Depth in the hero: the screen drifts up slower than the page, the event cards faster. */
    .stage { animation: drift-up linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .toasts { animation: drift-up-fast linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  }
  /* The phone's screen follows the chapter being read. */
  @supports (timeline-scope: none) {
    .screens .screen-2 { animation: screen-in linear both; animation-timeline: --ch2; animation-range: entry 40% entry 100%; }
    .screens .screen-3 { animation: screen-in linear both; animation-timeline: --ch3; animation-range: entry 40% entry 100%; }
    .screens .screen-4 { animation: screen-in linear both; animation-timeline: --ch4; animation-range: entry 40% entry 100%; }
    .chapter { animation: focus linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    /* The old card is gone before the new one arrives, so two never overlap. */
    .chip-1 { animation: chip-out linear both; animation-timeline: --ch2; animation-range: entry 20% entry 45%; }
    .chip-2 { animation: chip-in linear both, chip-out linear both; animation-timeline: --ch2, --ch3; animation-range: entry 70% entry 100%, entry 20% entry 45%; }
    .chip-3 { animation: chip-in linear both, chip-out linear both; animation-timeline: --ch3, --ch4; animation-range: entry 70% entry 100%, entry 20% entry 45%; }
    .chip-4 { animation: chip-in linear both; animation-timeline: --ch4; animation-range: entry 70% entry 100%; }
  }
}
@keyframes word { from { opacity: 0; transform: translateY(0.45em); filter: blur(6px); } }
@keyframes ink { 0%, 55%, 100% { background-position: 100% 0; } 80% { background-position: 0 0; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes strike { from { background-size: 0 1.5px; } }
@keyframes pop { from { transform: scale(0) rotate(-60deg); } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes drift-up { to { translate: 0 -56px; } }
@keyframes drift-up-fast { to { translate: 0 -150px; } }
@keyframes screen-in { from { translate: 0 101%; } to { translate: 0 0; } }
@keyframes focus { 0% { opacity: 0.25; } 32%, 68% { opacity: 1; } 100% { opacity: 0.25; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes rise-far { from { opacity: 0; transform: translateY(80px) rotate(-3deg); } }
@keyframes swing-in { from { opacity: 0; transform: rotateY(-28deg) rotateX(16deg) translateY(60px) scale(0.94); } }
@keyframes reveal { from { opacity: 0; transform: translateY(44px) scale(0.98); } }
@keyframes pan { from { transform: translateY(0); } to { transform: translateY(-12%); } }
@keyframes sway { 0%, 100% { transform: rotateY(-11deg) rotateX(5deg) rotateZ(0.5deg); } 50% { transform: rotateY(-6deg) rotateX(2.5deg) rotateZ(0deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { to { transform: translate(-4%, 3%) scale(1.08); } }
@keyframes toast {
  0% { opacity: 0; transform: translateY(14px) scale(0.96); }
  4%, 22% { opacity: 1; transform: none; }
  26%, 100% { opacity: 0; transform: translateY(-10px) scale(0.98); }
}
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes drip { to { stroke-dashoffset: -26.1; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent); }
  18%, 100% { box-shadow: 0 0 0 14px transparent; }
}
@keyframes take-turns { 0% { opacity: 0; } 4%, 25% { opacity: 1; } 29%, 100% { opacity: 0; } }
@keyframes tab-on {
  0%, 25% { background: var(--fg); color: var(--bg); border-color: var(--fg); }
  29%, 100% { background: var(--surface); color: var(--muted); border-color: var(--border); }
}
@keyframes travel { 0% { left: 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes edge { to { --a: 500deg; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shine { 0% { transform: translateX(-120%); } 25%, 100% { transform: translateX(120%); } }
@keyframes count { from { --n: 0; } }
@keyframes flatten { from { opacity: 0.4; transform: rotateX(24deg) scale(0.9) translateY(40px); } }
@keyframes roll {
  0%, 13% { transform: translateY(0); }
  16.67%, 30% { transform: translateY(-1.1em); }
  33.33%, 46% { transform: translateY(-2.2em); }
  50%, 63% { transform: translateY(-3.3em); }
  66.67%, 80% { transform: translateY(-4.4em); }
  83.33%, 96% { transform: translateY(-5.5em); }
  100% { transform: translateY(-6.6em); }
}
/* Two properties so the in and the out never undo each other: opacity comes in, filter takes it away.
   Each card is see-through only for a moment, then moves solid. */
@keyframes chip-in { from { opacity: 0; transform: translateY(24px) scale(0.92); } 25% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes chip-out { 75% { filter: opacity(1); } to { filter: opacity(0); translate: 0 -18px; } }
@keyframes split { 0%, 100% { --split: 28%; } 50% { --split: 74%; } }
@keyframes blur-cycle { 0%, 38% { filter: blur(0); } 48%, 86% { filter: blur(9px); } 96%, 100% { filter: blur(0); } }
@keyframes key-press {
  0%, 40%, 50%, 88%, 98%, 100% { translate: 0 0; border-bottom-width: 3px; }
  44%, 92% { translate: 0 2px; border-bottom-width: 1px; }
}
@keyframes grid-drift { to { background-position: 40px 40px; } }
