/* tally marketing site. Tokens and rules come from the repo's DESIGN.md (the web UI's design system):
   green-grey neutrals, one deep green accent, amber only for things that need a person, Figtree throughout,
   hairlines and tonal surfaces, one shadow (the detail sheet). No JavaScript. */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #f3f5f3;
  --surface: #ffffff;
  --surface-2: #eaeeeb;
  --surface-3: #dfe5e1;
  --ink: #15201a;
  --ink-2: #536059;
  --ink-3: #5f6c66;
  --line: #e1e6e2;
  --line-strong: #c7cfca;
  --accent: #157a5b;
  --accent-hover: #0f6449;
  --accent-ink: #ffffff;
  --accent-soft: #dff1e8;
  --warn: #8f5400;
  --warn-soft: #fff1d6;
  --focus: #1f8f6a;
  --shadow: 0 18px 48px -16px rgba(15, 32, 24, .35), 0 2px 6px -2px rgba(15, 32, 24, .12);
  --cat-teal: #1c9c9c;
  --cat-none: #b5bdb8;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1311;
    --surface: #171c19;
    --surface-2: #1f2622;
    --surface-3: #29312c;
    --ink: #e9ede9;
    --ink-2: #b0b8b3;
    --ink-3: #8a958f;
    --line: #252c28;
    --line-strong: #38423c;
    --accent: #4fc79a;
    --accent-hover: #6fd6ae;
    --accent-ink: #0a1b13;
    --accent-soft: #173627;
    --warn: #f1b75c;
    --warn-soft: #3a2a10;
    --focus: #5fd4a8;
    --shadow: 0 18px 48px -12px rgba(0, 0, 0, .7), 0 2px 6px -2px rgba(0, 0, 0, .5);
    --cat-teal: #3fbcbc;
    --cat-none: #5b655f;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent-soft); }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
code { font-family: var(--mono); font-size: .85em; overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { width: min(100% - 40px, 1040px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }

/* Alpha bar: amber is for things that need a person, and this does. */
.alpha-bar { background: var(--warn-soft); color: var(--warn); font-size: .9rem; padding: 10px 0; padding-top: calc(10px + env(safe-area-inset-top)); }
.alpha-bar a { color: inherit; font-weight: 600; }
.alpha-bar strong { font-weight: 700; }

.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; }
.brand-mark rect { fill: #157a5b; }
.brand-mark g { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.site-head nav ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-head nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .95rem; text-decoration: none; transition: background-color .12s ease, color .12s ease; }
.site-head nav a:hover { background: var(--surface-2); color: var(--ink); }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .02em; line-height: 1.5; background: var(--surface-2); color: var(--ink-2); vertical-align: middle; }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.brand .badge { font-size: .75rem; letter-spacing: .02em; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; transition: background-color .12s ease, color .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-soon { background: var(--surface-2); color: var(--ink-2); cursor: default; }
.btn-quiet { color: var(--ink-2); border-color: var(--line-strong); }
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); }

/* Hero */
.hero { display: grid; gap: 40px; padding: 48px 0 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.1rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; max-width: 16ch; }
.lede { color: var(--ink-2); font-size: 1.1rem; max-width: 62ch; margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.meta { margin-top: 16px; color: var(--ink-3); font-size: .875rem; }

/* Demo: a static rendering of the app's row-to-sheet moment, with example data. */
.demo { margin: 0; }
.demo-frame { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 0; overflow: hidden; }
.strip { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.strip-title { font-weight: 650; font-size: 1.05rem; letter-spacing: -0.01em; }
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 0; align-items: end; }
.fig dt { font-size: .8rem; font-weight: 500; color: var(--ink-3); }
.fig dd { margin: 0; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.015em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.fig-net { grid-column: 1 / -1; }
.fig-net dd { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; }
.tone-pos { color: var(--accent); }
.day { margin: 16px 0 4px; font-size: .8rem; font-weight: 600; color: var(--ink-3); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 10px; margin: 0 -10px; border-radius: 10px; border-bottom: 1px solid var(--line); }
.row.is-open { background: var(--surface-2); }
.dot { width: 10px; height: 10px; border-radius: 999px; background: var(--c); }
.c-teal { --c: var(--cat-teal); }
.c-none { background: transparent; box-shadow: inset 0 0 0 2px var(--cat-none); }
.row-main { display: grid; min-width: 0; }
.row-title { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { color: var(--ink-2); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-amt, .num { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; letter-spacing: -0.01em; }
.sheet { position: relative; margin: -22px -6px 0; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: var(--shadow); padding: 14px 18px 16px; }
.sheet-cap { font-size: .8rem; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.sheet-amt { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; margin-top: 2px; }
.sheet-merchant { font-weight: 650; }
.sheet-books { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.postings { list-style: none; margin: 6px 0 0; padding: 0; font-size: .875rem; }
.postings li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.postings li > span:first-child { display: grid; font-weight: 500; min-width: 0; }
.postings code, .tech code { color: var(--ink-3); font-size: .78rem; }
.tech { margin-top: 6px; }
figcaption { margin-top: 10px; color: var(--ink-3); font-size: .82rem; }

/* Sections */
.band { background: var(--surface); border-block: 1px solid var(--line); padding: 56px 0; }
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.band + .section { border-top: 0; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
h3 { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.4; }
.section > .lede { margin-top: 8px; font-size: 1rem; }

.claims { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0 40px; }
.claims li { padding: 20px 0; border-top: 1px solid var(--line); }
.claims p, .steps p, .split p { margin-top: 6px; color: var(--ink-2); max-width: 62ch; }

.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: span 2; width: 2rem; height: 2rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }

.feeds { list-style: none; margin: 24px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.feeds li { display: grid; gap: 2px 20px; padding: 14px 20px; border-top: 1px solid var(--line); }
.feeds li:first-child { border-top: 0; }
.feed-name { font-weight: 600; }
.feed-note { color: var(--ink-2); font-size: .925rem; }
.feed-note .badge { margin-left: 4px; }
.note { margin-top: 16px; color: var(--ink-2); max-width: 62ch; }

.split { display: grid; gap: 24px 40px; margin-top: 24px; }
.callout { margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); max-width: 70ch; }

.warning { background: var(--warn-soft); border-radius: 16px; padding: 28px 24px; }
.warning h2 { color: var(--ink); }
.warning-lead { margin-top: 8px; font-weight: 600; color: var(--warn); font-size: 1.1rem; }
.warning ul { margin: 16px 0 0; padding-left: 1.2em; display: grid; gap: 10px; max-width: 70ch; }
.warning li::marker { color: var(--warn); }

.kv { margin: 20px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.kv > div { display: grid; gap: 2px 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.kv > div:first-child { border-top: 0; }
.kv dt { font-size: .85rem; font-weight: 500; color: var(--ink-3); }
.kv dd { margin: 0; }
#try > p { margin-top: 12px; max-width: 62ch; color: var(--ink-2); }

.site-foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--ink-3); font-size: .875rem; }
.foot-row { display: grid; gap: 6px; }

@media (min-width: 600px) {
  .figs { grid-template-columns: 1.4fr 1fr 1fr; }
  .fig-net { grid-column: auto; }
}
@media (min-width: 720px) {
  .claims { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .feeds li, .kv > div { grid-template-columns: 13rem minmax(0, 1fr); align-items: baseline; }
  .warning { padding: 36px 40px; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); padding: 72px 0 80px; gap: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
