/* Prop Ledger. Dark, calm, one accent (blue) spent on the hero number and the one primary action.
   Green and red are only for money in and money out. One family (Inter). */
:root {
  --bg: #000000;
  --surface: #111216;      /* raised level 1: cards */
  --well: #1b1c21;         /* raised level 2: inputs, rows */
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f2f3f5;
  --text-2: rgba(235, 237, 245, .72);
  --text-3: rgba(235, 237, 245, .52);
  --accent: #6e9bff;
  --accent-muted: rgba(110, 155, 255, .35);
  --on-accent: #0a0d14;
  --gain: #3fd08f;
  --loss: #ff6f61;
  --warn: #f3b94d;
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 22px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, .86);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
@supports (backdrop-filter: blur(1px)) {
  .site-head { background: rgba(0, 0, 0, .6); backdrop-filter: blur(24px) saturate(190%); }
}
@media (prefers-reduced-transparency: reduce) {
  .site-head { background: #000; backdrop-filter: none; }
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 24px; height: 24px; flex: none; }
.head-link { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.head-link:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--well); color: var(--text);
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .1s ease-out, background-color .15s ease-out, border-color .15s ease-out;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--text-2); padding: 0 12px; }
.btn-danger { color: var(--loss); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
@media (hover: hover) {
  .btn:hover { border-color: rgba(255, 255, 255, .28); }
  .btn-primary:hover { background: #82a9ff; border-color: #82a9ff; }
  .btn-quiet:hover { color: var(--text); border-color: transparent; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* Small label text */
.eyebrow { font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; }

/* Fields */
label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); min-width: 0; }
input, select, textarea {
  font: 400 15px/1.3 var(--font); color: var(--text);
  background: var(--well); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 12px; min-height: 44px; width: 100%; min-width: 0;
}
input:focus, select:focus { border-color: var(--accent-muted); outline: none; }
input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent-muted); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--accent-muted) transparent; }
}

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 64px; padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); color: var(--text-3); font-size: 13px; }
.site-foot .wrap { display: grid; gap: 8px; }
.site-foot p { margin: 0; max-width: 70ch; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0s !important; animation-duration: 0s !important; }
}
