/* Tracking Money Movement — the pages you see before you sign in.
   Same palette as the app itself, so signing up does not feel like leaving. */
:root {
  --bg: #121211; --surface-1: #1a1a19; --surface-2: #232322;
  --border: #2c2c2a; --border-strong: #3a3a37;
  --text-primary: #f4f3ef; --text-secondary: #b9b7b0; --text-muted: #86847d;
  --accent: #3987e5; --accent-soft: rgba(57,135,229,.14);
  --good: #4bb37f; --warning: #d9a441; --critical: #d1584f;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px; --radius-sm: 9px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text-secondary);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--text-primary); line-height: 1.2; margin: 0 0 .5em;
  letter-spacing: -.02em; font-weight: 640; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(23px, 3vw, 31px); }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* --- header ------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px);
  background: rgba(18,18,17,.86); border-bottom: 1px solid var(--border);
}
.site-head .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-primary);
  font-weight: 660; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), #7c4de0); color: #fff;
  font-size: 13px; font-weight: 700;
}
.site-head nav { display: flex; gap: 20px; margin-left: auto; align-items: center;
  font-size: 14px; }
.site-head nav a { color: var(--text-secondary); }
.site-head nav a:hover { color: var(--text-primary); text-decoration: none; }

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); font: inherit; font-size: 14px;
  font-weight: 560; cursor: pointer; border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text-primary); text-decoration: none;
}
.btn:hover { border-color: #4b4b47; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #2f78d2; }
.btn.big { padding: 13px 24px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* --- hero --------------------------------------------------------------- */
.hero { padding: 84px 0 64px; text-align: center; }
.hero p.lede { font-size: 19px; max-width: 660px; margin: 0 auto 28px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pill {
  display: inline-block; padding: 5px 13px; border-radius: 999px; font-size: 12.5px;
  background: var(--accent-soft); color: #8fbdf5; border: 1px solid rgba(57,135,229,.3);
  margin-bottom: 20px;
}
.hero .fineprint { margin-top: 16px; font-size: 13px; color: var(--text-muted); }

/* --- cards and sections ------------------------------------------------- */
section { padding: 56px 0; }
section.alt { background: var(--surface-1); border-block: 1px solid var(--border); }
.section-lede { max-width: 660px; margin-bottom: 34px; }
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: 14px; }
.card .ico { font-size: 19px; display: block; margin-bottom: 10px; opacity: .85; }

/* --- the demo ----------------------------------------------------------- */
.demo {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface-1);
}
.demo-tabs { display: flex; gap: 2px; padding: 10px 12px 0; border-bottom: 1px solid var(--border);
  overflow-x: auto; }
.demo-tab {
  padding: 9px 15px; border-radius: 9px 9px 0 0; font-size: 13px; cursor: pointer;
  color: var(--text-muted); border: 1px solid transparent; border-bottom: none;
  background: none; font-family: inherit; white-space: nowrap;
}
.demo-tab[aria-selected="true"] {
  color: var(--text-primary); background: var(--surface-2);
  border-color: var(--border); margin-bottom: -1px;
}
.demo-body { padding: 22px; min-height: 330px; }
.demo-panel[hidden] { display: none; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px;
  padding: 14px 16px; }
.kpi-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-muted); font-weight: 650; }
.kpi-value { font-size: 25px; color: var(--text-primary); font-weight: 620;
  font-variant-numeric: tabular-nums; margin-top: 4px; }
.kpi-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }
table.demo-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.demo-table th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-muted); padding: 9px 10px; border-bottom: 1px solid var(--border);
}
table.demo-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); }
table.demo-table td.num, table.demo-table th.num { text-align: right;
  font-variant-numeric: tabular-nums; font-family: var(--mono); }
.bar { height: 9px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-secondary); }
.tag.ok { color: #7fd3a8; border-color: rgba(75,179,127,.4); }
.tag.warn { color: #e5bd6f; border-color: rgba(217,164,65,.4); }

/* --- forms -------------------------------------------------------------- */
.form-page { min-height: calc(100vh - 62px); display: grid; place-items: center; padding: 40px 24px; }
.form-card { width: 100%; max-width: 460px; background: var(--surface-1);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.form-card h1 { font-size: 25px; margin-bottom: 6px; }
.form-card .sub { font-size: 14px; margin-bottom: 22px; color: var(--text-muted); }
label.field { display: block; margin-bottom: 14px; font-size: 12.5px;
  color: var(--text-muted); font-weight: 560; }
label.field span.lbl { display: block; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=tel] {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface-2);
  color: var(--text-primary); font: inherit; font-size: 14.5px;
}
input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px;
  color: var(--text-secondary); margin: 6px 0 18px; }
.check input { margin-top: 3px; }
.msg { padding: 10px 13px; border-radius: var(--radius-sm); font-size: 13.5px;
  margin-bottom: 16px; display: none; }
.msg.err { display: block; background: rgba(209,88,79,.12); border: 1px solid rgba(209,88,79,.4);
  color: #eda9a3; }
.msg.ok { display: block; background: rgba(75,179,127,.12); border: 1px solid rgba(75,179,127,.4);
  color: #97dcba; }
.hint { font-size: 12.5px; color: var(--text-muted); }
.code-input { font-family: var(--mono); font-size: 26px !important; letter-spacing: .38em;
  text-align: center; }

/* --- long-form text (terms, privacy) ------------------------------------ */
.prose { max-width: 760px; }
.prose h2 { margin-top: 34px; font-size: 21px; }
.prose li { margin-bottom: 7px; }
.prose .updated { color: var(--text-muted); font-size: 13px; }

/* --- footer ------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--border); padding: 34px 0; margin-top: 40px;
  font-size: 13px; color: var(--text-muted); }
.site-foot .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-foot nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.site-foot a { color: var(--text-muted); }

@media (max-width: 640px) {
  .row2 { grid-template-columns: 1fr; }
  .site-head nav { gap: 12px; font-size: 13px; }
  .hero { padding: 54px 0 40px; }
}
