/* Launch site. The palette and type are the app's own (web/src/styles.css in
   money-app), so the site and the app read as one thing. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 500 800;
  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: "Hanken Grotesk";
  src: url("/fonts/hanken.woff2") format("woff2");
  font-weight: 400 700;
  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;
}

:root {
  --bg: #edf1ef;
  --surface: #ffffff;
  --surface-2: #e2e9e6;
  --line: #d3dcd8;
  --line-strong: #a9b8b2;
  --text: #0f1f1c;
  --text-dim: #4c5c58;
  --accent: #0a6b63;
  --accent-ink: #07504a;
  --accent-soft: #d5ece7;
  --on-accent: #ffffff;
  --ink: #0f1f1c;
  --ink-fg: #ffffff;
  --ink-dim: #bfe9dc;
  --ink-track: #2a3d39;
  --mint: #6fd6b8;
  --warn: #8a3505;
  --warn-fill: #e07b2e;
  --warn-soft: #fbe5d3;
  --bad: #a3231c;
  --font: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Hanken Grotesk", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --gap: clamp(64px, 10vw, 120px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1513;
    --surface: #13201d;
    --surface-2: #182824;
    --line: #24362f;
    --line-strong: #3d544c;
    --text: #e8f0ed;
    --text-dim: #a3b5af;
    --accent: #6fd6b8;
    --accent-ink: #9be5cf;
    --accent-soft: #173b34;
    --on-accent: #06231e;
    --ink: #1d3631;
    --ink-track: #2f4a43;
    --warn: #f3b07a;
    --warn-fill: #e8975a;
    --warn-soft: #3a2413;
    --bad: #ff9c93;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 8.5vw + .4rem, 5.75rem); line-height: .93; letter-spacing: -.04em; font-weight: 700; }
h2 { font-size: clamp(1.95rem, 3.6vw + .8rem, 3.1rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; }
h3 { font-size: 1.4rem; line-height: 1.15; letter-spacing: -.015em; font-weight: 600; }

.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- frame */

.top, main > section, .foot, .prose {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.15rem/1 var(--display); letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.mark { width: 34px; height: 34px; flex: none; }
.mark-bg { fill: var(--accent); }
.mark-fg { stroke: var(--on-accent); }
.top-cta {
  font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--text);
  padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); white-space: nowrap;
}
.top-cta:hover { border-color: var(--text); color: var(--text); }

main > section + section { margin-top: var(--gap); }

.foot {
  margin-top: var(--gap); padding: 28px 0 40px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; color: var(--text-dim); font-size: .92rem;
}
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font: 700 1rem/1 var(--display); color: var(--text); }
.foot-brand .mark { width: 24px; height: 24px; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: var(--text-dim); }
.foot-note { margin-left: auto; }

/* ----------------------------------------------------------------- forms */

.join-row { display: flex; gap: 8px; }
input, select, button { font: inherit; }
input, select {
  min-width: 0; height: 54px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text);
}
input::placeholder { color: var(--text-dim); opacity: .8; }
input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.join-row input { flex: 1 1 auto; }
button, .store-button, .button-link {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font-weight: 600; white-space: nowrap; text-decoration: none;
}
button:hover, .store-button:hover, .button-link:hover { background: var(--accent-ink); color: var(--on-accent); }
button.ghost, a.ghost {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 18px; border-radius: 12px;
  background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); font-weight: 600; text-decoration: none;
}
button.ghost:hover, a.ghost:hover { border-color: var(--text); background: transparent; color: var(--text); }
button.danger { background: var(--bad); color: #fff; }
.fine { margin-top: 10px; font-size: .88rem; color: var(--text-dim); }
.fine a { color: var(--text-dim); }
.notice {
  margin-bottom: 18px; padding: 12px 16px; border-radius: 12px;
  background: var(--warn-soft); color: var(--warn); font-weight: 500;
}
.flash { margin-bottom: 18px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.on-list { padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.on-list a { color: inherit; }
.join[hidden], .on-list[hidden] { display: none; }

@media (max-width: 430px) {
  .join-row { flex-direction: column; }
  .join-row button { width: 100%; }
}

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

.hero {
  display: grid; gap: clamp(40px, 6vw, 72px); align-items: center;
  padding-top: clamp(16px, 4vw, 56px);
}
@media (min-width: 900px) { .hero { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { max-width: 9ch; }
.lede { margin-top: 22px; font-size: clamp(1.1rem, .9vw + .9rem, 1.3rem); line-height: 1.5; color: var(--text-dim); max-width: 34ch; }
.hero .join, .hero .get { margin-top: 30px; max-width: 470px; }
.hero .on-list { margin-top: 30px; max-width: 470px; }
.crowd { margin-top: 16px; font-weight: 600; color: var(--text-dim); }
.invited {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); font-weight: 600; font-size: .95rem;
}
.avatar {
  width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font: 700 .9rem/1 var(--display);
}

/* The day card: a to-do list ticking itself off, then the pot. */
.day { margin: 0; }
.day-card {
  background: var(--surface); border-radius: 30px; padding: 22px 20px 20px;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(15, 31, 28, .35);
  max-width: 440px; margin-inline: auto;
}
.day-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 10px; }
.day-head span:first-child { font: 700 1.35rem/1 var(--display); letter-spacing: -.02em; }
.day-count { font-size: .9rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 4px; border-top: 1px solid var(--line);
}
.box {
  position: relative; width: 24px; height: 24px; border-radius: 8px;
  border: 2px solid var(--line-strong);
}
.tick .box { background: var(--accent); border-color: var(--accent); }
.tick .box::after {
  content: ""; position: absolute; left: 7px; top: 2.5px; width: 6px; height: 11px;
  border: solid var(--on-accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.tick .what {
  color: var(--text-dim);
  text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--accent);
}
.amt { font-variant-numeric: tabular-nums; color: var(--text-dim); font-size: .95rem; }
.soon .box { border-color: var(--warn-fill); }
.soon .what { font-weight: 600; }

.pot {
  margin-top: 8px; padding: 20px 20px 18px; border-radius: 22px;
  background: var(--ink); color: var(--ink-fg);
}
.pot-label { font-size: .92rem; color: var(--ink-dim); }
.pot-amount {
  font: 700 clamp(2.6rem, 6vw, 3.3rem)/1 var(--display); letter-spacing: -.035em; margin: 6px 0 4px;
  font-variant-numeric: tabular-nums;
}
.pot-meta { font-size: .92rem; color: var(--ink-dim); }
.track { display: block; height: 8px; margin-top: 14px; border-radius: 99px; background: var(--ink-track); overflow: hidden; }
.fill { display: block; height: 100%; width: 62%; border-radius: 99px; background: var(--mint); }

/* One orchestrated moment: the four items tick in turn, then the pot fills.
   Base styles are the finished state, so reduced motion simply shows it. */
@media (prefers-reduced-motion: no-preference) {
  .tick .box { animation: box-in .32s cubic-bezier(.3, 1.4, .5, 1) backwards; }
  .tick .box::after { animation: check-in .32s ease-out backwards; }
  .tick .what { animation: strike .4s ease-out backwards; }
  .tick:nth-child(1) .box, .tick:nth-child(1) .box::after, .tick:nth-child(1) .what { animation-delay: .5s; }
  .tick:nth-child(2) .box, .tick:nth-child(2) .box::after, .tick:nth-child(2) .what { animation-delay: .85s; }
  .tick:nth-child(3) .box, .tick:nth-child(3) .box::after, .tick:nth-child(3) .what { animation-delay: 1.2s; }
  .tick:nth-child(4) .box, .tick:nth-child(4) .box::after, .tick:nth-child(4) .what { animation-delay: 1.55s; }
  .day .fill { animation: fill-in 1s cubic-bezier(.2, .8, .2, 1) 1.95s backwards; }
  .day .pot-amount { animation: rise .5s ease-out 1.9s backwards; }
}
@keyframes box-in { from { background: transparent; border-color: var(--line-strong); transform: scale(.85); } }
@keyframes check-in { from { opacity: 0; transform: rotate(45deg) scale(.3); } }
@keyframes strike { from { color: var(--text); text-decoration-color: transparent; } }
@keyframes fill-in { from { width: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* ------------------------------------------------------------------ swap */

.swap h2 { max-width: 14ch; }
.struck {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 28px;
}
.struck li {
  font: 600 clamp(1.5rem, 2.6vw + .7rem, 2.5rem)/1.2 var(--display); letter-spacing: -.025em;
  color: var(--text-dim);
  text-decoration: line-through; text-decoration-thickness: .09em; text-decoration-color: var(--accent);
}
.swap-note { margin-top: 26px; max-width: 52ch; color: var(--text-dim); }

/* ------------------------------------------------------------------ asks */

.asks > h2 { max-width: 18ch; margin-bottom: clamp(32px, 5vw, 56px); }
.ask {
  display: grid; gap: 22px 56px; align-items: center;
  padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line);
}
@media (min-width: 820px) {
  .ask { grid-template-columns: 1fr 1fr; }
  .ask:nth-of-type(even) .ask-copy { order: 2; }
}
.ask-copy p { margin-top: 12px; color: var(--text-dim); max-width: 46ch; }
.ask-demo { width: 100%; max-width: 420px; margin: 0; }
@media (min-width: 820px) { .ask:nth-of-type(odd) .ask-demo { justify-self: end; } }

.demo-pot { background: var(--ink); color: var(--ink-fg); border-radius: 24px; padding: 22px 24px; }
.demo-pot .pot-amount { color: var(--mint); }

.demo-bills { list-style: none; padding: 6px 18px; background: var(--surface); border-radius: 22px; }
.demo-bills li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center;
  padding: 13px 0; border-top: 1px solid var(--line);
}
.demo-bills li:first-child { border-top: 0; }
.demo-bills .when { color: var(--text-dim); font-variant-numeric: tabular-nums; font-size: .95rem; }
.demo-bills .tag {
  font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent-ink); min-width: 84px; text-align: center;
}
.demo-bills .up .tag { background: var(--warn-soft); color: var(--warn); }

.demo-toast {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px;
  background: var(--surface); box-shadow: 0 18px 40px -26px rgba(15, 31, 28, .45);
}
.toast-icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.toast-text { display: grid; gap: 2px; }
.toast-text span { color: var(--text-dim); font-size: .95rem; }

.demo-sets { border-collapse: separate; border-spacing: 0 4px; background: var(--surface); border-radius: 22px; padding: 10px 14px; }
.demo-sets th { font-size: .8rem; font-weight: 600; color: var(--text-dim); text-align: left; padding: 4px 10px; }
.demo-sets td { padding: 10px; font-variant-numeric: tabular-nums; }
.demo-sets tr.done td { color: var(--text-dim); }
.demo-sets tr.done td:last-child { color: var(--accent); font-weight: 700; }
.demo-sets tr.now td { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.demo-sets tr.now td:first-child { border-radius: 10px 0 0 10px; }
.demo-sets tr.now td:last-child { border-radius: 0 10px 10px 0; }

.demo-brief { background: var(--surface); border-radius: 22px; padding: 16px 18px; }
.brief-app { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-dim); font-weight: 600; }
.brief-title { margin-top: 8px; font-weight: 700; }
.brief-body { margin-top: 2px; color: var(--text-dim); }

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

.together { display: grid; gap: 32px 56px; align-items: center; }
@media (min-width: 820px) { .together { grid-template-columns: 1fr 1fr; } }
.together-copy p { margin-top: 16px; color: var(--text-dim); max-width: 46ch; }
.split { display: flex; gap: 2px; height: 96px; }
.split > span {
  display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px;
  font-size: .92rem; font-weight: 600;
}
.split strong { font: 700 1.6rem/1 var(--display); letter-spacing: -.02em; }
.split-a { flex: 35; background: var(--accent); color: var(--on-accent); border-radius: 16px 4px 4px 16px; }
.split-b { flex: 65; background: var(--accent-soft); color: var(--accent-ink); border-radius: 4px 16px 16px 4px; }

/* ------------------------------------------------------- trust and early */

.trust { padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.trust p { margin-top: 14px; color: var(--text-dim); max-width: 58ch; }

.early {
  background: var(--accent-soft); border-radius: 30px;
  padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 56px);
}
.early h2 { color: var(--accent-ink); }
.early > p { margin-top: 14px; max-width: 52ch; color: var(--text); }
.early .join, .early .get, .early .on-list { margin-top: 26px; max-width: 470px; }
.early .on-list { background: var(--surface); }
.early .fine, .early .fine a { color: var(--text-dim); }

/* -------------------------------------------------------------------- faq */

.faq h2 { margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--line); max-width: 760px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 500 1.6rem/1 var(--display); color: var(--accent);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; color: var(--text-dim); max-width: 60ch; }

/* --------------------------------------------------------- status page */

.status { max-width: 600px !important; padding-top: clamp(16px, 4vw, 48px); }
.status h1 { font-size: clamp(2.4rem, 6vw + .5rem, 3.8rem); }
.place { display: flex; align-items: baseline; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.place-n { font: 700 clamp(4rem, 14vw, 6.5rem)/.9 var(--display); letter-spacing: -.05em; color: var(--accent); font-variant-numeric: tabular-nums; }
.place-of { color: var(--text-dim); font-weight: 600; }
.place-note { margin-top: 16px; color: var(--text-dim); }
.share { margin-top: 36px; padding: 22px; border-radius: 22px; background: var(--surface); }
.share h2 { font-size: 1.35rem; letter-spacing: -.015em; }
.link-row { display: flex; gap: 8px; margin-top: 14px; }
.link-row input { flex: 1 1 auto; font-size: .95rem; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.share-row [hidden] { display: none; }
.name-form { margin-top: 28px; }
.name-form label { display: block; font-weight: 600; margin-bottom: 10px; }
.keep { margin-top: 28px; font-size: .92rem; color: var(--text-dim); }
.leave { margin-top: 28px; color: var(--text-dim); }
.leave summary { cursor: pointer; font-size: .92rem; }
.leave form { margin-top: 12px; display: grid; gap: 12px; justify-items: start; }

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

.prose { max-width: 720px !important; padding-top: clamp(16px, 4vw, 48px); }
.prose h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.prose h2 { font-size: 1.4rem; letter-spacing: -.015em; margin-top: 36px; }
.prose p { margin-top: 12px; max-width: 66ch; }
.prose .updated { color: var(--text-dim); }

/* ------------------------------------------------------------------ stats */

.stats-page .stats { max-width: var(--wrap); }
.stats-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.stats h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.ranges { display: flex; gap: 6px; }
.range { padding: 8px 14px; border-radius: 99px; text-decoration: none; color: var(--text); border: 1.5px solid var(--line-strong); font-weight: 600; font-size: .9rem; }
.range.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.muted { color: var(--text-dim); }
.stats > .muted { margin-top: 6px; font-size: .92rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 22px; }
.tile { background: var(--surface); border-radius: 18px; padding: 16px 18px; }
.tile-label { font-size: .9rem; color: var(--text-dim); font-weight: 600; }
.tile-value { font: 700 2.2rem/1.05 var(--display); letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile-note { font-size: .85rem; color: var(--text-dim); margin-top: 2px; }
.charts { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 820px) { .charts { grid-template-columns: 1fr 1fr; } }
.chart { margin: 0; background: var(--surface); border-radius: 18px; padding: 16px 18px; }
.chart figcaption { font-weight: 600; margin-bottom: 8px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .bar path { fill: var(--accent); }
.chart .bar .hit { fill: transparent; }
.chart .bar:hover path { fill: var(--accent-ink); }
.chart .base { stroke: var(--line-strong); stroke-width: 1; }
.chart text { font: 500 12px var(--font); fill: var(--text-dim); }
.chart .peak { fill: var(--text); font-weight: 700; }
.panel { background: var(--surface); border-radius: 18px; padding: 18px; margin-top: 12px; }
.panel h2 { font-size: 1.2rem; letter-spacing: -.01em; margin-bottom: 10px; }
.table-view summary { cursor: pointer; font-weight: 600; }
.table-view .table-wrap { margin-top: 10px; max-height: 360px; overflow: auto; }
.grid { display: grid; gap: 0 12px; }
@media (min-width: 820px) { .grid { grid-template-columns: 1fr 1fr; } }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); }
table.data thead th { border-top: 0; font-size: .82rem; color: var(--text-dim); font-weight: 600; }
table.data tbody th { font-weight: 600; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
.button-link { margin-top: 14px; height: 46px; font-size: .95rem; }
.builder-grid { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 720px) { .builder-grid { grid-template-columns: repeat(4, 1fr); } }
.builder label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.builder input, .builder select { height: 46px; }
.builder .link-row { margin-top: 16px; }
.builder .link-row button { height: 46px; }
.builder > .muted { margin-top: 12px; font-size: .9rem; }
