/* #EDIT (11122026): Site revamp. Rebuilt on the app's current design system (handoff 10/30):
   one canvas (white / Graphite), outlined modules with a 1px hairline, tinted callouts,
   Custom 3 status colors on shapes only, ink and gray text, medium-weight big numbers.
   The site follows the device's light/dark setting. */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --card: #ffffff;
  --fill: #f4f4f5;
  --fill2: #e9e9ec;
  --line: rgba(13, 13, 13, 0.1);
  --line-soft: rgba(13, 13, 13, 0.07);
  --fg: #0d0d0d;
  --fg2: rgba(13, 13, 13, 0.66);
  --fg3: rgba(13, 13, 13, 0.5);
  --track: rgba(13, 13, 13, 0.08);
  --pos: #28b24b;
  --bill: #5856d6; /* #EDIT (11122026) */
  /* #EDIT (11122026): Money flow colors — the app's CategoryPalette chart colors, light / dark. */
  --inc2: color-mix(in srgb, var(--inc) 58%, #000);
  --cat-rent: #5457b8;
  --cat-food: #c76f2e;
  --cat-shop: #a0509e;
  --cat-transport: #2c8bbf;
  --cat-travel: #2f6db5;
  --cat-fun: #c24f7e;
  --cat-health: #b9504f;
  --cat-other: rgba(13, 13, 13, 0.22);
  /* #END */
  --warn: #e09a0c;
  --neg: #ec5d29;
  --inc: #2a8ceb;
  --c-groceries: #1f9a8b;
  --c-dining: #e0742a;
  --c-shopping: #8a5ae6;
  --c-transport: #2f6fe0;
  --c-housing: #5f6b7a;
  --phone: #0d0d0d;
  --mark: rgba(224, 154, 12, 0.2);
  --shadow: 0 30px 80px rgba(13, 13, 13, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --card: #272729;
    --fill: #2c2c2e;
    --fill2: #3a3a3c;
    --line: rgba(255, 255, 255, 0.12);
    --line-soft: rgba(255, 255, 255, 0.08);
    --fg: #fefefe;
    --fg2: rgba(254, 254, 254, 0.7);
    --fg3: rgba(254, 254, 254, 0.52);
    --track: rgba(255, 255, 255, 0.12);
    --pos: #30d158;
    --bill: #5e5ce6; /* #EDIT (11122026) */
    /* #EDIT (11122026): Money flow colors, dark. */
    --inc2: color-mix(in srgb, var(--inc) 58%, #fff);
    --cat-rent: #6e6cf0;
    --cat-food: #f59a3c;
    --cat-shop: #c266e6;
    --cat-transport: #5cc8f0;
    --cat-travel: #3d95f5;
    --cat-fun: #f0628e;
    --cat-health: #f0605a;
    --cat-other: rgba(255, 255, 255, 0.4);
    /* #END */
    --warn: #ffb22e;
    --neg: #ff5a1f;
    --inc: #4aa8ff;
    --c-groceries: #2bb3a3;
    --c-dining: #f08a3c;
    --c-shopping: #a77bf3;
    --c-transport: #4c8dff;
    --c-housing: #8a96a6;
    --phone: #000000;
    --mark: rgba(255, 178, 46, 0.22);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.7;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 6px;
}

[id] {
  scroll-margin-top: 24px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

h1 {
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 650;
}

h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 650;
}

.dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.dot-pos { background: var(--pos); }
.dot-warn { background: var(--warn); }
.dot-neg { background: var(--neg); }
.dot-ring { background: transparent; box-shadow: inset 0 0 0 2px var(--neg); }

/* A module: a self-contained block, outlined like the app's cards. */
.module {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-mark { display: block; flex: none; }
.brand-mark path { fill: var(--fg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  color: var(--fg2);
}

.nav-links a[aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.menu {
  display: none;
  position: relative;
}

.menu > summary {
  list-style: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu > summary::-webkit-details-marker {
  display: none;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: 52px;
  min-width: 220px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.menu-panel a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 16px;
}

.menu-panel a:hover {
  background: var(--fill);
  opacity: 1;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu { display: block; }
}

/* ---------- Buttons and form ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover { opacity: 0.86; }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* Older pages use .btn-accent; it now means the same ink button. */
.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 480px;
}

.notify input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
}

.notify input::placeholder { color: var(--fg3); }
.notify .btn { flex: 1 0 auto; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notify-status:empty { display: none; }

.notify-status {
  max-width: 480px;
  font-size: 15px;
  font-weight: 600;
}

.notify-status.ok {
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--fill);
}

.note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg3);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 104px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.availability {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--fg2);
}

.lede {
  max-width: 30em;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.5;
  color: var(--fg2);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Live pace module (hero) ---------- */

/* #EDIT (11122026): Hero pace card rebuilt on the app's BudgetHero (see site.js). Status color lives on the dot
   and, when over budget, the line; text stays ink and gray. */
.pace {
  --status: var(--pos);
  --pad: clamp(18px, 2.4vw, 28px);
  position: relative;
  padding: 14px var(--pad) 18px;
  text-align: center;
}

.pace[data-state="ahead"] { --status: var(--warn); }
.pace[data-state="over"] { --status: var(--neg); }

/* Month strip (Overview's period strip), static here. */
.pace-months {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0 calc(var(--pad) * -1);
  overflow: hidden;
  font-size: 15px;
  white-space: nowrap;
  color: var(--fg3);
}

.pace-months span { padding: 7px 14px; border-radius: 999px; }
.pace-months span:first-child, .pace-months span:last-child { opacity: 0.55; }
.pace-months .on { background: var(--fill); color: var(--fg); font-weight: 600; opacity: 1; }

.pace-big {
  margin-top: 16px;
  font-size: clamp(44px, 4.6vw, 54px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.pace-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 15px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.pace-status .dot { background: var(--status); transition: background 0.2s ease; }

/* Chart: full bleed to the card's edges. */
.pace-chart {
  position: relative;
  height: 172px;
  margin: 18px calc(var(--pad) * -1) 0;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}

.no-js .pace-chart { height: auto; cursor: default; }
.pace-chart > svg { display: block; overflow: visible; }
.no-js .pace-chart > svg { width: 100%; height: auto; }

.pc-budget { stroke: var(--fg); stroke-opacity: 0.35; stroke-width: 1; stroke-dasharray: 3 3; }
.pc-pace { fill: none; stroke: var(--fg); stroke-opacity: 0.25; stroke-width: 1.5; stroke-dasharray: 0.1 5; stroke-linecap: round; }
.pc-prior { fill: none; stroke: var(--fg); stroke-opacity: 0.16; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-pill { fill: var(--card); }
.pc-pill-tint { fill: var(--fg); fill-opacity: 0.06; }
.pc-pill-text { fill: var(--fg); fill-opacity: 0.6; font-family: var(--font); font-size: 11px; font-weight: 600; }
.pc-dot { fill: var(--pcl); }
.pc-area { fill: url(#pc-dots); opacity: 0.62; }
.pc-line { fill: none; stroke: var(--pcl); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pc-guide { stroke: var(--fg); stroke-opacity: 0.18; stroke-width: 1; }
.pc-halo { fill: var(--pcl); fill-opacity: 0.16; }
.pc-pulse { fill: none; stroke: var(--pcl); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pc-end { fill: var(--pcl); stroke: var(--card); stroke-width: 1.5; }

@media (prefers-color-scheme: dark) {
  .pc-area { opacity: 0.75; }
}

@media (prefers-reduced-motion: no-preference) {
  .pc-line.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pc-draw 1s 0.15s cubic-bezier(0.3, 0.7, 0.2, 1) forwards; }
  .pc-pulse { animation: pc-pulse 2.4s ease-out infinite; }
}

@keyframes pc-draw { to { stroke-dashoffset: 0; } }
@keyframes pc-pulse {
  0% { opacity: 0.55; transform: scale(0.6); }
  70%, 100% { opacity: 0; transform: scale(1.9); }
}

/* Bill lane (PaceMarkerBadge): category glyph in a 16px circle. Ring = due, filled = paid. */
.pace-lane {
  position: relative;
  height: 18px;
  margin: 2px calc(var(--pad) * -1) 0;
}

.pace-lane[hidden] { display: none; }

.lane-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 8.5px;
  height: 1px;
  background: var(--fg);
  opacity: 0.12;
}

.lane-badge {
  position: absolute;
  top: 0;
  width: 30px;
  height: 18px;
  margin-left: -15px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.lane-badge .pbadge { margin: 1px auto 0; transition: transform 0.15s ease-out; }
.lane-badge.open .pbadge { transform: scale(1.25); }
.lane-badge:focus-visible { outline: 2px solid var(--fg); outline-offset: 1px; border-radius: 9px; }

.pbadge {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--c);
  color: var(--c);
}

.pbadge svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pbadge .fillg { fill: currentColor; stroke: none; }
.pbadge.paid { background: var(--c); box-shadow: none; color: var(--card); }

.lane-callout {
  position: absolute;
  bottom: 26px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
  text-align: left;
  white-space: nowrap;
  pointer-events: none;
  animation: fade-in 0.15s ease;
}

.lane-callout strong { display: block; font-size: 14px; font-weight: 600; }
.lane-callout small { display: block; font-size: 12px; color: var(--fg2); font-variant-numeric: tabular-nums; }

/* Legend: Spent, Pace (explains), Bills and Last month (show / hide). */
.pace-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--fg);
}

.pace-legend .lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  opacity: 0.55;
}

.pace-legend button.lg { cursor: pointer; }
.pace-legend .lg[aria-pressed="false"] { opacity: 0.3; }
.pace-legend u, .pace-stats u { text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

.pace-legend i { display: block; flex: 0 0 auto; }
.sw-spent { width: 14px; height: 2.5px; border-radius: 2px; background: var(--status); }
.pace[data-state="on"] .sw-spent, .pace[data-state="ahead"] .sw-spent { background: var(--pos); }
.sw-pace { width: 14px; height: 2px; background: radial-gradient(circle, currentColor 0.8px, transparent 1.1px) 0 50% / 4.5px 2px repeat-x; opacity: 0.7; }
.sw-bills { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.2px currentColor; }
.sw-prior { width: 14px; height: 2.5px; border-radius: 2px; background: currentColor; opacity: 0.35; }

/* Popover for How pace works and the stat explanations. */
.pace-pop {
  position: absolute;
  z-index: 3;
  width: min(300px, calc(100% - 24px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  text-align: left;
  animation: fade-in 0.15s ease;
}

.pace-pop[hidden] { display: none; }
.pace-pop strong { font-size: 14px; font-weight: 600; }
.pace-pop p { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--fg2); }

@media (prefers-color-scheme: dark) {
  .lane-callout, .pace-pop { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45); }
}

.pace-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg2);
}

.pace-note[hidden] { display: none; }

/* Stats (HeroStatsCard): centered columns with hairlines between, no card. */
.pace-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.pace-stats > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 2px 8px; }
.pace-stats > div + div { border-left: 1px solid var(--line); }
.pace-stats button, .pace-stats span {
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg3);
  font: inherit;
  font-size: 13px;
}

.pace-stats button { cursor: pointer; }
.pace-stats strong { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* Demo controls: the site's own, under a hairline. */
.pace-demo {
  margin: 16px calc(var(--pad) * -1) 0;
  padding: 12px var(--pad) 0;
  border-top: 1px solid var(--line-soft);
}

.pace-demo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 6px;
}

.pace-hint { font-size: 13px; color: var(--fg3); text-align: left; white-space: nowrap; }
.pace-demo .pace-range { margin: 0; }

@media (max-width: 420px) {
  .pace-demo-row { flex-direction: column; align-items: stretch; }
  .pace-hint { text-align: center; }
  .pace-demo .seg { align-self: center; }
}

/* Lines kept for the no-JS chart and the phone mockup. */
.ln-budget { fill: none; stroke: var(--fg3); stroke-width: 1; stroke-dasharray: 2 5; stroke-linecap: round; }
.ln-pace { fill: none; stroke: var(--fg3); stroke-width: 2; stroke-dasharray: 0.1 6; stroke-linecap: round; }
.ln-axis { stroke: var(--fg); stroke-width: 1; opacity: 0.15; }
.ln-today { stroke: var(--fg); stroke-width: 1; opacity: 0.25; }
.spend-line { fill: none; stroke: var(--status); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.spend-area { fill: url(#pace-dots); }
.pace-dots-dot { fill: var(--status); opacity: 0.5; }
.spend-dot { fill: var(--status); stroke: var(--card); stroke-width: 3; }
.chart-label { fill: var(--fg3); font-family: var(--font); font-size: 12px; }
.bill circle { fill: var(--card); stroke: var(--bill); stroke-width: 1.75; }
.bill .bill-icon { fill: none; stroke: var(--bill); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bill .bill-pip { fill: var(--bill); stroke: none; }
.bill.paid circle { fill: var(--bill); }
.bill.paid .bill-icon { stroke: #fff; }
.bill.paid .bill-pip { fill: #fff; }
.ph-bill { fill: var(--bg); stroke: var(--bill); stroke-width: 1.5; }
.ph-bill.paid { fill: var(--bill); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.no-js .pace-range,
.no-js .pace-demo,
.no-js .pace-legend button,
.no-js .pace-lane { display: none; }
/* #END */

/* #EDIT (11122026): With bills / Even pace toggle. */
.seg {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px;
  border-radius: 999px;
  background: var(--fill);
}

.seg button {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fg2);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.seg button[aria-pressed="true"] {
  background: var(--card);
  color: var(--fg);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.no-js .seg { display: none; }

.pace-range {
  display: block;
  width: 100%;
  height: 24px;
  margin: 14px 0 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.pace-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--track); }
.pace-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--track); }
.pace-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(0, 0, 0, 0.18);
}
.pace-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(0, 0, 0, 0.18);
}


/* ---------- Sections ---------- */

.section { padding-top: clamp(88px, 10vw, 144px); }
.section.first { padding-top: clamp(64px, 8vw, 112px); }
.section-head { max-width: 720px; }

.section-lede {
  margin-top: 16px;
  max-width: 36em;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.55;
  color: var(--fg2);
}

/* Older pages still carry an .eyebrow; keep it quiet. */
.eyebrow {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg3);
}

/* ---------- How pace works ---------- */

.states {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.states > div {
  padding: 22px 28px 0 0;
}

.states > div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line-soft);
}

.states h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
}

.states p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg2);
}

@media (max-width: 760px) {
  .states { grid-template-columns: minmax(0, 1fr); }
  .states > div,
  .states > div + div {
    padding: 20px 0;
    border-left: 0;
  }
  .states > div + div { border-top: 1px solid var(--line-soft); }
}

/* ---------- Budget rows (the app's Budget progress pattern) ---------- */

.brow + .brow { margin-top: 16px; }

.brow-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}

.brow-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brow-amt { white-space: nowrap; }
.brow-amt span { color: var(--fg3); }

.swatch {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sw-groceries { background: var(--c-groceries); }
.sw-dining { background: var(--c-dining); }
.sw-shopping { background: var(--c-shopping); }
.sw-transport { background: var(--c-transport); }

.bar {
  position: relative;
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--track);
}

.bar > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--pos);
}

.bar > b.warn { background: var(--warn); }
.bar > b.neg { background: var(--neg); }
.bar > b.flat { background: var(--fg); opacity: 0.35; }

.bar > i {
  position: absolute;
  top: -4px;
  width: 1.5px;
  height: 12px;
  border-radius: 1px;
  background: var(--fg);
  opacity: 0.45;
}

.brow-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  font-size: 13px;
  color: var(--fg2);
}

.brow-note .dot { width: 7px; height: 7px; }

/* ---------- Two ways to budget ---------- */

.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 48px;
}

.style h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.style > p {
  margin-top: 8px;
  max-width: 32em;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg2);
}

.style .module {
  margin-top: 22px;
  padding: 22px 24px;
}

.module-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 17px;
  font-weight: 600;
}

.module-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--fg3);
}

.module-head span i {
  width: 1.5px;
  height: 11px;
  background: var(--fg3);
}

.ledger {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}

.ledger span { color: var(--fg2); }
.ledger strong { font-weight: 500; }

.muted { color: var(--fg3); font-weight: 400; }

@media (max-width: 860px) {
  .two-up { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}

@media (max-width: 520px) {
  .style .muted { display: none; }
}

/* #EDIT (11122026): Shared two-column layout for the Daily spending and Budget setup sections. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.split-flip > .module { order: -1; }
.split-flip { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); }

.split-note {
  margin-top: 18px;
  font-size: 15px;
  color: var(--fg3);
}

@media (max-width: 900px) {
  .split,
  .split-flip { grid-template-columns: minmax(0, 1fr); }
  .split-flip > .module { order: 0; }
  .split > .module { max-width: 460px; width: 100%; }
}

/* Daily spending: the app's Overview calendar. Under-pace days get no tile; days over the daily
   pace take the Ahead of pace color, light at 1-2x pace and stronger at 2x and up. */
.daily { padding: 22px 20px 18px; }

.daily-head h3 { font-size: 17px; font-weight: 600; }

.daily-head p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 13px;
  color: var(--fg3);
}

.swatch-over {
  width: 10px;
  height: 10px;
  border-radius: 2.5px;
  background: var(--over2);
}

.daily {
  --over1: color-mix(in srgb, var(--warn) 17%, transparent);
  --over2: color-mix(in srgb, var(--warn) 34%, transparent);
  --over-ink: var(--fg);
}

@media (prefers-color-scheme: dark) {
  .daily {
    --over1: color-mix(in srgb, var(--warn) 50%, #fff);
    --over2: color-mix(in srgb, var(--warn) 80%, #fff);
    --over-ink: #000;
  }
}

.daily-week,
.daily-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.daily-week {
  margin-top: 14px;
  font-size: 11px;
  text-align: center;
  color: var(--fg3);
}

.daily-grid { margin-top: 8px; }

.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  height: 46px;
  padding: 4px 0 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  box-shadow: inset 0 0 0 0 var(--fg);
  transition: box-shadow 0.12s ease-out, transform 0.15s ease;
}

button.day { cursor: pointer; }
button.day:active { transform: scale(0.94); }

.day .n {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
}

.day .a {
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.day.today .n { font-weight: 700; }
.day.today .n::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.day.over1 { background: var(--over1); color: var(--over-ink); }
.day.over2 { background: var(--over2); color: var(--over-ink); }
.day.future { opacity: 0.32; }
.day[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--fg); }

.daily-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.daily-strip div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.daily-strip strong { font-size: 15px; font-weight: 400; }
.daily-strip span { font-size: 13px; color: var(--fg3); }
.daily-strip b { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }

.daily-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.daily-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
}

.daily-list li + li { border-top: 1px solid var(--line-soft); }
.daily-list span { display: flex; flex-direction: column; gap: 1px; }
.daily-list small { font-size: 12px; color: var(--fg3); }
.daily-list b { font-weight: 500; font-variant-numeric: tabular-nums; }

/* Budget setup: a clickable version of the app's guided setup. */
.audiences {
  display: grid;
  gap: 22px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.audiences h3 { font-size: 18px; font-weight: 600; }
.audiences p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--fg2); }

/* #EDIT (11122026): Walkthrough polish — the app's BudgetSetupFlow chrome, keypad pages and amount sheet.
   Fixed height with a scrolling body (like the app's ScrollView), so the card doesn't jump between steps. */
.setup {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 680px;
  padding: 10px 0 18px;
  overflow: hidden;
}

.setup-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.setup-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

.setup-icon:hover { background: var(--fill); }
.setup-icon[hidden] { display: grid; visibility: hidden; }

.setup-steps { flex: 1; display: flex; gap: 5px; }
.setup-steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--track); transition: background 0.25s ease; }
.setup-steps i.on { background: var(--fg); }

.setup-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 24px 8px;
  scrollbar-width: none;
}

.setup-body::-webkit-scrollbar { display: none; }

/* Keypad pages pin the keypad to the bottom, like BudgetSetupKeypadPage. */
.setup[data-step="income"] .setup-body,
.setup[data-step="savings"] .setup-body { display: flex; flex-direction: column; }
.setup[data-step="income"] .keypad,
.setup[data-step="savings"] .keypad { margin-top: auto; padding-top: 12px; }
.setup[data-step="spending"] .setup-body { -webkit-mask: linear-gradient(#000 calc(100% - 18px), transparent); mask: linear-gradient(#000 calc(100% - 18px), transparent); }
.setup-body h3:focus { outline: none; }
.setup-eyebrow { font-size: 14px; font-weight: 500; color: var(--fg3); }
.setup-body h3 { margin-top: 4px; font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.setup-msg { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--fg2); }

.setup-choices { display: grid; gap: 10px; margin-top: 20px; }

.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 48px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.choice strong { font-size: 16px; font-weight: 600; }
.choice span { font-size: 14px; line-height: 1.45; color: var(--fg2); }
.choice[aria-pressed="true"] { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }

.choice .radio {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.choice[aria-pressed="true"] .radio { box-shadow: inset 0 0 0 6px var(--fg); }

/* The big amount (CurrencyAmountDisplay): bold, centered, gray placeholder decimals. */
.amount {
  margin-top: 18px;
  font-size: 52px;
  font-weight: 700;
  line-height: 64px;
  letter-spacing: -0.02em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.amount .ghost { color: var(--fg); opacity: 0.35; }
.amount.shake { animation: setup-shake 0.4s linear; }

@keyframes setup-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

.setup-chips { display: flex; justify-content: center; min-height: 34px; margin-top: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--fill);
  color: var(--fg2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.chip b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }

/* The keypad (BudgetSetupKeypad): 3 x 4, no key borders, a soft round highlight on press. */
.keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 54px;
  margin-top: 12px;
}

.keypad button {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 28px;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.keypad button::before {
  content: "";
  position: absolute;
  inset: 3px calc(50% - 25px);
  border-radius: 50%;
  background: var(--fg);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
  transform: scale(0.8);
}

.keypad button:active::before { opacity: 0.08; transform: scale(1); transition: none; }
.keypad button:focus-visible { outline: 2px solid var(--fg); outline-offset: -4px; border-radius: 12px; }
.keypad svg { position: relative; display: block; margin: auto; }

.setup-lines { margin: 16px 0 0; padding: 0; list-style: none; }

.setup-lines li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 6px 0;
  font-size: 15px;
}

.setup-lines li + li { border-top: 1px solid var(--line-soft); }
.setup-lines li > span small { display: block; margin-top: 1px; font-size: 12px; color: var(--fg3); font-variant-numeric: tabular-nums; }
.setup-lines.review li b { font-weight: 500; font-variant-numeric: tabular-nums; }

/* Amount pill (BudgetSetupAmountPill): tap to open the amount sheet. */
.pill {
  flex: 0 0 auto;
  min-width: 76px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--fill);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.pill:hover { background: var(--fill2); }

.bucket { margin-top: 14px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 16px; }
.bucket .setup-lines { margin-top: 0; border-top: 1px solid var(--line-soft); }

.bucket-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
}

.bucket-head > span:nth-child(2) { flex: 1; min-width: 0; }
.bucket-head strong { display: block; font-size: 16px; font-weight: 600; }
.bucket-head small { display: block; font-size: 12px; color: var(--fg3); }
.bucket-head > b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

.bucket-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--fill);
  background-repeat: no-repeat;
  background-position: center;
}

.bucket-icon::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--fg);
  -webkit-mask: var(--icon) center / 16px no-repeat;
  mask: var(--icon) center / 16px no-repeat;
}

.bk-fixed { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.bk-flex { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7h14l-1.5 11a2 2 0 0 1-2 1.7H8.5a2 2 0 0 1-2-1.7z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E"); }
.bk-periodic { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M4 10h16M9 3v4M15 3v4'/%3E%3C/svg%3E"); }

/* Left to budget (BudgetSetupLeftRow): check at $0, amber with a true minus when over. */
.setup-left {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--fill);
  font-size: 15px;
}

.setup-left > div { flex: 1; min-width: 0; }
.setup-left strong { display: block; font-weight: 600; }
.setup-left small { display: block; font-size: 12px; color: var(--fg3); }
.setup-left b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.setup-left.over b { color: var(--warn); }
.setup-left .check circle { fill: var(--pos); }
.setup-left .check path { stroke: #fff; }

.setup-foot { padding: 8px 24px 0; }
.setup-foot .setup-left { margin: 0 0 10px; }
.setup-next { width: 100%; }

.setup-caption {
  margin-top: 8px;
  font-size: 13px;
  text-align: center;
  color: var(--fg3);
}

.setup-done { padding-top: 90px; text-align: center; }
.setup-done svg circle { fill: var(--pos); }
.setup-done svg path { stroke: #fff; }
.setup-done h3 { margin-top: 18px; }

/* The amount sheet, inside the card: a scrim and a panel that slides up from the bottom. */
.setup-sheet { position: absolute; inset: 0; z-index: 2; }
.setup-sheet[hidden] { display: none; }

.sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 20px 18px;
  border-radius: 22px 22px 0 0;
  background: var(--card);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet-panel:focus { outline: none; }
.setup.sheet-open .sheet-scrim { opacity: 1; }
.setup.sheet-open .sheet-panel { transform: none; }

.sheet-grabber { width: 36px; height: 5px; margin: 0 auto 4px; border-radius: 3px; background: var(--fill2); }

.sheet-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  text-align: center;
}

.sheet-head strong { font-size: 17px; font-weight: 600; }
.sheet-caption { font-size: 13px; text-align: center; color: var(--fg3); }
.sheet-panel .amount { margin-top: 10px; }
.sheet-panel .setup-next { margin-top: 10px; }

@media (prefers-color-scheme: dark) {
  .sheet-scrim { background: rgba(0, 0, 0, 0.55); }
}

@media (max-width: 520px) {
  .setup { height: 640px; }
  .setup-body { padding-inline: 20px; }
  .setup-foot { padding-inline: 20px; }
  .amount { font-size: 46px; }
  .keypad { grid-auto-rows: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet-panel, .sheet-scrim, .keypad button::before { transition: none; }
  .amount.shake { animation: none; }
}

.no-js .setup-top,
.no-js .setup-foot { display: none; }
/* #END */

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 32px;
  margin-top: 52px;
}

.feature-ui {
  height: 214px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.feature h3 {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg2);
}

@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .features { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}

.ui-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.ui-head span + span { font-weight: 400; color: var(--fg3); }

.txn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.txn + .txn {
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.txn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.icon-badge {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-badge::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.ib-groceries { color: var(--c-groceries); background: color-mix(in srgb, var(--c-groceries) 16%, transparent); }
.ib-dining { color: var(--c-dining); background: color-mix(in srgb, var(--c-dining) 16%, transparent); }
.ib-income { color: var(--inc); background: color-mix(in srgb, var(--inc) 16%, transparent); }

.txn-name { font-weight: 500; }
.txn-cat { font-size: 12px; color: var(--fg3); }

.feature-ui.rule {
  justify-content: center;
  gap: 14px;
}

.rule-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rule-key {
  flex: 0 0 40px;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg3);
}

.rule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--fill);
  font-size: 13px;
}

.rchip.soft { color: var(--fg2); }

.rule-sep {
  height: 1px;
  background: var(--line-soft);
}

.up {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.up-date {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--fill);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.up-date small { font-size: 10px; font-weight: 600; color: var(--fg3); }
.up-date b { margin-top: 2px; font-size: 15px; font-weight: 600; }
.up-main { flex: 1 1 auto; min-width: 0; }
.up-main span { display: block; font-size: 12px; color: var(--fg3); }

/* #EDIT (11122026): Money flow card + expanded view (MoneyFlowKit). */
.feature-ui.flow { gap: 6px; }

.flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.flow-expand {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -4px -4px -4px 0;
  border: 0;
  border-radius: 50%;
  background: var(--fill);
  color: var(--fg);
  cursor: pointer;
}

.flow-expand:hover { background: var(--fill2); }
.flow-expand[hidden] { display: none; }

.flow-cap {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.flow-cap b { font-weight: 500; color: var(--fg); }
.flow-cap span { color: var(--fg3); }

.flow-svg { position: relative; flex: 1; min-height: 0; }
.feature-ui.flow .flow-svg > svg { display: block; width: 100%; height: 100%; }

.fl-svg { display: block; overflow: visible; }
.fl-bg { fill: transparent; }
.fl-hub { fill: var(--fg); fill-opacity: 0.75; }
.fl-name { fill: var(--fg); font-size: 12px; font-weight: 500; }
.fl-amt { fill: var(--fg); fill-opacity: 0.6; font-size: 11px; font-variant-numeric: tabular-nums; }
.fl-chev { fill: var(--fg); fill-opacity: 0.35; font-weight: 600; }
.fl-hit { fill: transparent; }
.fl-node { cursor: pointer; transition: opacity 0.18s ease; }
.fl-node.dim { opacity: 0.45; }
.fl-node.focused .fl-name { font-weight: 700; }
.fl-node:focus { outline: none; }
.fl-node:focus-visible .fl-hit { fill: var(--fill); }
.fl-svg path, .fl-svg rect { transition: opacity 0.18s ease; }

.flow-svg.flow-in { animation: flow-in 0.24s ease-out; }

@keyframes flow-in {
  from { opacity: 0; transform: translateX(6px); }
  to { opacity: 1; transform: none; }
}

.flow-dialog {
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 20px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--fg);
  box-shadow: var(--shadow);
  overflow-y: auto;
}

.flow-dialog::backdrop { background: rgba(0, 0, 0, 0.4); }
.flow-dialog[open] { animation: flow-open 0.22s ease-out; }

@keyframes flow-open {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: none; }
}

.flow-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.flow-dialog-head h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.flow-dialog .flow-dialog-head p { margin-top: 2px; font-size: 14px; color: var(--fg3); }
.flow-dialog-head .setup-icon { margin: -6px -10px 0 0; background: var(--fill); }

.flow-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  margin-top: 14px;
  font-size: 13px;
}

.flow-crumb button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg2);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.flow-crumb span { color: var(--fg3); }
.flow-crumb b { font-weight: 600; }

.flow-cap2 { display: flex; flex-direction: column; gap: 3px; margin: 6px 0 16px; font-size: 14px; font-variant-numeric: tabular-nums; }
.flow-cap2 b { font-weight: 500; }
.flow-cap2 span { color: var(--fg3); }
.flow-dialog .flow-hint { margin-top: 14px; font-size: 13px; text-align: center; color: var(--fg3); }

@media (max-width: 640px) {
  .flow-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 32px); padding: 16px 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-svg.flow-in, .flow-dialog[open] { animation: none; }
}
/* #END */

/* #EDIT (11122026): Net worth card, interactive (AccountsHero): range chips, the change line in the budget hero's
   status style (color on the triangle only), a pixel-drawn trend with a dotted fill, hover / drag to read a day. */
.feature-ui.nw { gap: 0; }

.nw-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nw-label { font-size: 13px; color: var(--fg3); }

.nw-ranges { display: flex; gap: 2px; margin: -4px -6px -4px 0; }

.nw-ranges button {
  height: 24px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fg3);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.nw-ranges button[aria-pressed="true"] { background: var(--fill); color: var(--fg); }

.nw-big { margin-top: 2px; font-size: 28px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; font-variant-numeric: tabular-nums; }

.nw-delta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.nw-delta b { font-weight: 400; color: var(--fg); }
.nw-delta > span:last-child { color: var(--fg3); }

.tri { width: 0; height: 0; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; }
.tri.up { border-bottom: 7px solid var(--pos); }
.tri.down { border-top: 7px solid var(--neg); }

.nw-chart {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 8px -18px 8px;
  touch-action: pan-y;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}

.nw-chart > svg { display: block; overflow: visible; }
.no-js .nw-chart > svg { width: 100%; height: 100%; }
.nwg-dot { fill: var(--fg); }
.nwg-area { fill: url(#nw-grid); opacity: 0.62; }
.nwg-line { fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nwg-veil { fill: var(--card); opacity: 0.6; }
.nwg-guide { stroke: var(--fg); stroke-opacity: 0.25; stroke-width: 1; }
.nwg-dot-scrub { fill: var(--fg); stroke: var(--card); stroke-width: 2; }

@media (prefers-color-scheme: dark) {
  .nwg-area { opacity: 0.75; }
}

.nw-spark { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nw-fill { fill: url(#nw-dots); }
.nw-dots-dot { fill: var(--fg); opacity: 0.22; }

.nw-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
}

.nw-tiles span { display: block; font-size: 12px; color: var(--fg3); }
.nw-tiles strong { display: block; margin-top: 1px; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* #EDIT (11122026): AI chat preview card (opens the chat) and the chat itself (AIChatView). */
.feature-ui.chat { gap: 10px; cursor: pointer; }
.feature-ui.chat .flow-head { margin-bottom: 2px; }

.bubble {
  max-width: 86%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
}

.bubble.me {
  align-self: flex-end;
  border-radius: 18px 18px 6px 18px;
  background: var(--fg);   /* #EDIT (11122026): ink bubble (black / white), was the green accent */
  color: var(--bg);
}

.bubble.ai {
  align-self: flex-start;
  border-radius: 18px 18px 18px 6px;
  background: var(--fill);
  color: var(--fg2);
}

.bubble.ai strong { color: var(--fg); font-weight: 600; }

.chat-dialog {
  display: none;
  flex-direction: column;
  width: min(480px, calc(100vw - 16px));
  height: min(700px, calc(100vh - 32px));
  max-height: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--fg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-dialog[open] { display: flex; animation: flow-open 0.22s ease-out; }
.chat-dialog::backdrop { background: rgba(0, 0, 0, 0.4); }

.chat-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}

.chat-head h3 { grid-column: 2; font-size: 17px; font-weight: 600; }
.chat-head [data-chat-new] { grid-column: 1; grid-row: 1; }
.chat-head [data-chat-close] { grid-column: 3; grid-row: 1; }

.chat-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 0 16px;
  scroll-behavior: smooth;
}

.chat-empty { display: flex; flex-direction: column; align-items: center; padding: 20px 24px 8px; text-align: center; }

.chat-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--fill);
}

.chat-empty h4 { margin-top: 14px; font-size: 20px; font-weight: 600; }
.chat-dialog .chat-empty > p { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--fg2); }

.chat-suggest { display: grid; gap: 8px; width: 100%; margin-top: 18px; }
.chat-suggest.follow { margin: 18px 0 0; padding: 0 16px; }

.chat-suggest button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: var(--fill);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.chat-suggest button:hover { background: var(--fill2); }
.chat-suggest button:disabled { opacity: 0.5; cursor: default; }
.chat-suggest svg { flex: 0 0 auto; }

.chat-dialog .chat-privacy {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  color: var(--fg3);
}

.chat-privacy svg { flex: 0 0 auto; margin-top: 2px; }

.msg.me {
  width: fit-content;
  max-width: calc(100% - 64px);
  margin: 6px 16px 6px auto;
  padding: 10px 14px;
  border-radius: 18px 18px 6px 18px;
  background: var(--fg);   /* #EDIT (11122026): ink bubble (black / white), was the green accent */
  color: var(--bg);
  font-size: 16px;
  line-height: 1.4;
}

.msg.ai { margin: 10px 16px 4px; font-size: 16px; line-height: 1.5; }
/* The dialogs sit inside .feature cards; keep the card's paragraph style out of them. */
.chat-dialog p, .flow-dialog p { margin-top: 0; font-size: inherit; line-height: inherit; color: inherit; }
.chat-dialog .chat-p { margin-top: 8px; color: var(--fg); }

.chat-dialog .chat-status { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg3); }
.typing { display: inline-flex; gap: 3px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: none; }
  30% { opacity: 1; transform: translateY(-2px); }
}

.chat-dialog .chat-checked { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg3); white-space: nowrap; }
.chat-checked i { flex: 1; height: 1px; background: var(--line); }

.chat-p { margin-top: 8px; }
.chat-p strong { font-weight: 600; }

.caret {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--fg);
  opacity: 0.5;
  vertical-align: 1px;
}

.chat-table {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--fill);
  overflow-x: auto;
}

.chat-table table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.chat-table th { padding: 0 8px 6px 0; font-size: 12px; font-weight: 600; text-align: left; color: var(--fg2); border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: bottom; }
.chat-table td { padding: 6px 8px 0 0; vertical-align: top; }
.chat-table .r { white-space: nowrap; }   /* #EDIT (11122026): text columns wrap so a phone-width table fits */
.chat-table .r { text-align: right; padding-right: 0; padding-left: 12px; }
.chat-table strong { font-weight: 600; }
.chat-table tbody tr { animation: fade-in 0.18s ease; }

.chat-dialog .chat-end { margin: 18px 16px 0; font-size: 13px; text-align: center; color: var(--fg3); }

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line-soft);
}

.chat-input input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
}

.chat-input input::placeholder { color: var(--fg3); }

.chat-send {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--fill2);
  color: var(--fg3);
}

@media (max-width: 640px) {
  .chat-dialog { height: calc(100vh - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .typing i, .chat-table tbody tr, .chat-dialog[open] { animation: none; }
}
/* #END */

/* ---------- Try it first (phone) ---------- */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}

.checks {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checks svg { flex: 0 0 auto; }

@media (max-width: 860px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo .phone { justify-self: center; }
}

.phone {
  width: 320px;
  max-width: 100%;
  height: 660px;
  padding: 10px;
  border-radius: 52px;
  background: var(--phone);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 26px 14px 0;
  border-radius: 43px;
  background: var(--bg);
  overflow: hidden;
  font-size: 13px;
}

.demo-pin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--fill);
  font-size: 12px;
}

.demo-pin span { color: var(--fg2); }
.demo-pin strong { font-weight: 600; white-space: nowrap; }

.ph-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 14px;
  padding-inline: 4px;
}

.ph-title { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
.ph-month { font-size: 12px; color: var(--fg3); }

.ph-hero {
  margin-top: 14px;
  text-align: center;
}

.ph-big { font-size: 40px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }

.ph-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--fg2);
}

.ph-status .dot { width: 7px; height: 7px; background: var(--pos); }

.ph-chart {
  display: block;
  width: calc(100% + 28px);
  height: auto;
  margin: 10px -14px 0;
}

.ph-chart .spend-line { stroke: var(--pos); stroke-width: 2.4; }
.ph-chart .pace-dots-dot { fill: var(--pos); }
.ph-chart .spend-dot { fill: var(--pos); stroke: var(--bg); stroke-width: 2; }

.ph-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
  text-align: center;
}

.ph-stats span { display: block; font-size: 10px; color: var(--fg3); }
.ph-stats strong { display: block; font-size: 15px; font-weight: 500; }

.ph-card {
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
}

.ph-card .module-head { margin-bottom: 10px; font-size: 14px; }
.ph-card .brow-top { font-size: 12px; }
.ph-card .brow + .brow { margin-top: 10px; }
.ph-card .bar { margin-top: 6px; }
.ph-card .brow-note { margin-top: 5px; font-size: 11px; }

.tabbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 56px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--fg3);
}

.tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.tabbar .on { color: var(--fg); }

/* ---------- Security ---------- */

.assurances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  margin-top: 44px;
}

.assurance {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line-soft);
}

.assurance svg { flex: 0 0 auto; margin-top: 2px; }
.assurance h3 { font-size: 18px; font-weight: 600; }
.assurance p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--fg2); }

@media (max-width: 760px) {
  .assurances { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- FAQ (home) ---------- */

.faq {
  padding-block: clamp(88px, 10vw, 144px) clamp(88px, 10vw, 128px);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 64px;
  margin-top: 40px;
}

.faq-grid h3 { font-size: 18px; font-weight: 600; }
.faq-grid p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--fg2); }
.faq-grid a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 760px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  padding-block: 56px 40px;
}

.foot-id {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--fg2);
}

.foot-id .brand { margin-bottom: 10px; font-size: 18px; color: var(--fg); }
.foot-id a:not(.brand) { margin-top: 8px; color: var(--fg); }

.foot-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  font-size: 14px;
}

.foot-cols div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.foot-cols strong { font-weight: 600; }
.foot-cols a { color: var(--fg2); }

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px 32px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg3);
}

/* ---------- Support page ---------- */

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-top: clamp(48px, 7vw, 88px);
}

.page-head-copy { flex: 1 1 480px; min-width: 0; }
.page-head h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; }
.page-head .section-lede { max-width: 560px; }

.contact-card {
  flex: 0 1 400px;
  min-width: 0;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.contact-email {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.contact-card p { font-size: 15px; line-height: 1.55; color: var(--fg2); }

.tasks { padding-top: 56px; }

.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.task {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task h2 {
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 600;
}

.task p { font-size: 15px; line-height: 1.6; color: var(--fg2); }

.icon-chip {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--fill);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--warn);
  color: #0d0d0d;
  font-size: 12px;
  font-weight: 800;
  vertical-align: -3px;
}

.faq-head { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; }

.faq-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 40px;
}

.topic-nav {
  flex: 0 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
}

.topic-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--fg2);
}

.topic-nav a:hover {
  background: var(--fill);
  opacity: 1;
}

@media (max-width: 640px) {
  .topic-nav { display: none; }
}

.faq-groups {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.faq-group h3 {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg3);
}

.qa-list {
  padding: 0 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}

.qa + .qa {
  border-top: 1px solid var(--line-soft);
}

.qa summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary svg {
  flex: 0 0 auto;
  color: var(--fg3);
  transition: transform 0.15s ease;
}

.qa[open] summary svg {
  transform: rotate(180deg);
}

.qa p {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg2);
}

.qa p a {
  color: var(--fg);
  text-decoration: underline;
}

.cta-section {
  padding-block: clamp(72px, 9vw, 112px) clamp(80px, 9vw, 120px);
}

.cta-band {
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background: var(--fill);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band div { flex: 1 1 380px; min-width: 0; }
.cta-band h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.025em; }
.cta-band p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--fg2); }

/* ---------- Legal pages ---------- */

.legal {
  padding-block: clamp(48px, 7vw, 88px) clamp(80px, 9vw, 120px);
}

.legal h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; }

.meta {
  margin-top: 16px;
  font-size: 15px;
  color: var(--fg3);
}

.legal-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px;
  margin-top: 48px;
}

.toc {
  flex: 0 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--fg2);
}

@media (min-width: 900px) {
  .toc { position: sticky; top: 24px; }
}

.toc-title {
  padding: 0 12px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.toc a {
  padding: 8px 12px;
  border-radius: 10px;
}

.toc a:hover {
  background: var(--fill);
  opacity: 1;
}

.prose {
  flex: 999 1 560px;
  min-width: 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg2);
}

.prose section { margin-top: 40px; }

.prose h2 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--fg);
}

.prose p + p { margin-top: 12px; }
.prose ul + p,
.prose p + ul { margin-top: 12px; }

.prose ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

.summary-card {
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--fill);
}

.summary-card h2 { margin-bottom: 14px; font-size: 18px; }

.summary-card ul {
  padding: 0;
  list-style: none;
  gap: 10px;
}

.summary-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.summary-card svg {
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--fg);
}

mark {
  padding: 0 3px;
  border-radius: 4px;
  background: var(--mark);
  color: inherit;
}

/* ---------- Simple pages (thanks, 404) ---------- */

.simple {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding-block: clamp(72px, 10vw, 140px);
}

.simple h1 { font-size: clamp(40px, 5vw, 64px); }
.simple p { font-size: 18px; color: var(--fg2); max-width: 520px; }
.simple .btn-accent { margin-top: 10px; }
