/* Expense Now: its own look. A ledger: cool paper, near-black ink, money set in a mono face
   with the app's own red for money out and green for money in. The hero holds a working
   month you can add to. The Bitmesh bar on top comes from /assets/css/appnav.css. */
:root {
  --paper: #f3f4f6;
  --paper-2: #e8eaee;
  --card: #ffffff;
  --ink: #14171d;
  --ink-2: #5a6170;
  --line: #d9dce3;
  --out: #c62f3c;       /* money out */
  --in: #0b7a4c;        /* money in */
  --blue: #2f8fe6;      /* the app's button blue */
  --blue-ink: #1b6fc0;
  --night: #0e1014;

  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1180px;
  --gut: clamp(20px, 4.5vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }

h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3 { font: 600 1.15rem/1.3 var(--sans); letter-spacing: -.01em; }
.lede { color: var(--ink-2); font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 33rem; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.out { color: var(--out); }
.in { color: var(--in); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 12px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--sans); text-decoration: none; transition: background-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--main { background: var(--ink); color: #fff; }
.btn--main:hover { background: #2b303b; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper-2); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn:active { transform: scale(.97); }

section { padding-block: clamp(72px, 9vw, 128px); }

/* ------------------------------------------------------------------ hero -- */
.hero { padding-block: clamp(44px, 6vw, 84px) clamp(64px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); }
.hero .lede { margin-top: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.hero__fine { margin-top: 16px; color: var(--ink-2); font-size: 14.5px; }

/* the working month */
.month { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 60px -40px rgba(20, 23, 29, .5); overflow: hidden; }
.month__top { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: end; padding: 22px 22px 18px; }
.month__label { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--ink-2); font-size: 13.5px; }
.month__fig { font-size: clamp(1.25rem, 5.6vw, 2.4rem); line-height: 1.1; min-width: 0; white-space: nowrap; }
.month__fig small { display: block; margin-top: 4px; font: 400 13.5px/1 var(--sans); letter-spacing: 0; color: var(--ink-2); }
.month__fig + .month__fig { text-align: right; }
.split { display: flex; height: 10px; margin: 0 22px; border-radius: 999px; overflow: hidden; background: var(--paper-2); }
.split i { display: block; height: 100%; width: 0; background: var(--c); transition: width .5s var(--ease); }
.split i + i { box-shadow: -2px 0 0 #fff; }
.month__key { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 22px 0; min-height: 34px; font-size: 13px; color: var(--ink-2); }
.month__key span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--c); }
.feed { margin-top: 12px; border-top: 1px solid var(--line); height: 196px; overflow: hidden; }
.row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; height: 49px; padding: 0 22px; border-bottom: 1px solid var(--paper-2); font-size: 15px; }
.row i { width: 34px; height: 34px; border-radius: 50%; background: var(--c); }
.row b { font-weight: 500; }
.row b small { display: block; font-weight: 400; font-size: 12.5px; line-height: 1.2; color: var(--ink-2); }
.row.is-new { animation: row-in .42s var(--ease); }
@keyframes row-in { from { opacity: 0; transform: translateY(-14px); } }
.month__add { padding: 16px 22px 20px; background: var(--paper); border-top: 1px solid var(--line); }
.month__add p { font-size: 13.5px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; }
.month__reset { border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; }
.adds { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.adds button { min-height: 52px; padding: 6px 8px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; font-weight: 500; line-height: 1.2;
  transition: border-color .2s, transform .15s var(--ease); }
.adds button span { display: block; font: 400 12.5px/1.3 var(--mono); letter-spacing: -.03em; }
.adds button:hover { border-color: var(--ink); }
.adds button:active { transform: scale(.95); }

/* -------------------------------------------------------------- features -- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 9vw, 128px); }
.feature--flip .feature__art { order: 2; }
.feature__art { display: flex; justify-content: center; gap: 16px; align-items: flex-start; }
.screen { width: min(100%, 264px); border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 34px 50px -34px rgba(20, 23, 29, .55); }
.feature__art .screen:nth-child(2) { margin-top: 52px; }
.feature p { margin-top: 18px; color: var(--ink-2); max-width: 31rem; }
.ticks { margin-top: 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--in); border-bottom: 2px solid var(--in); transform: rotate(-45deg); }

/* a budget, drawn the way the app draws it */
.bars { margin-top: 28px; display: grid; gap: 14px; max-width: 30rem; }
.bar { font-size: 14.5px; }
.bar__top { display: flex; justify-content: space-between; gap: 12px; }
.bar__track { margin-top: 6px; height: 12px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.bar__track i { display: block; height: 100%; width: var(--w); background: var(--blue); }
.bar--over .bar__track i { background: var(--out); }

.band { background: var(--paper-2); }

/* dark theme band */
.dark { background: var(--night); color: #fff; }
.dark .lede, .dark .feature p { color: #a4abb8; }
.dark .screen { box-shadow: 0 0 0 1px #2a2e37, 0 34px 50px -30px #000; background: #000; }

/* scanner strip */
.scan { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.scan__pill { display: flex; align-items: center; height: 64px; border-radius: 999px; background: var(--blue); color: #fff; }
.scan__pill span { width: 64px; display: grid; place-items: center; }
.scan__pill span + span { border-left: 1px solid rgba(255, 255, 255, .3); }
.scan__pill svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scan h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.scan p { margin-top: 10px; color: var(--ink-2); max-width: 40rem; }
.tag { display: inline-block; margin-left: 10px; padding: 3px 9px; border-radius: 6px; background: var(--ink); color: #fff; font: 500 12.5px/1.4 var(--sans); letter-spacing: 0; vertical-align: middle; }

/* pricing */
.plans { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan { border-radius: 18px; padding: clamp(24px, 3vw, 38px); background: var(--card); border: 1px solid var(--line); }
.plan--pro { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan__price { margin-top: 10px; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.05; }
.plan__price span { display: block; margin-top: 8px; font: 400 15px/1.45 var(--sans); letter-spacing: 0; opacity: .78; }
.plan--pro .ticks li::before { border-color: #58d39b; }
.pricing__fine { margin-top: 22px; color: var(--ink-2); font-size: 14.5px; max-width: 46rem; }

/* faq */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 40rem; }

/* end */
.end { text-align: center; background: var(--ink); color: #fff; padding-block: clamp(88px, 11vw, 150px); }
.end img { margin: 0 auto 26px; width: 88px; height: 88px; border-radius: 21px; }
.end h2 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
.end .hero__cta { justify-content: center; }
.end .hero__fine { color: #a4abb8; }
.foot { padding: 28px 0 40px; font-size: 14.5px; color: var(--ink-2); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.foot nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.foot a:hover { color: var(--blue-ink); }

/* reveal: content is visible without script; the script only adds the lift */
.js [data-rise] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-rise].is-in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero__grid, .feature, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .feature__art, .feature--flip .feature__art { order: 2; }   /* words first on one column */
  .month { max-width: 520px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .scan { grid-template-columns: minmax(0, 1fr); }
  .scan__pill { justify-self: start; }
  .feature__art .screen { width: min(48%, 220px); border-radius: 22px; }
  .feature__art .screen:only-child { width: min(68%, 250px); }
  .btn { width: 100%; }
  .foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-rise] { opacity: 1; transform: none; }
}

/* legal */
.legal { padding-block: clamp(48px, 6vw, 88px) clamp(72px, 9vw, 120px); }
.legal__col { max-width: 46rem; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.legal .updated { margin-top: 14px; color: var(--ink-2); font: 400 14px/1.5 var(--mono); }
.legal h2 { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.2; }
.legal p, .legal ul { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.legal a { color: var(--blue-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
