/* The two looks, Ledger (the usual one) and Graphite, laid on top of style.css.
   Font: Manrope, SIL Open Font License, fonts/manrope.LICENSE. Kept here so nothing is fetched from elsewhere. */
@font-face { font-family: Manrope; src: url(fonts/manrope.woff2) format("woff2"); font-weight: 200 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: Manrope; src: url(fonts/manrope-ext.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root { color-scheme: dark; --r: 8px; --bg: #0c1613; --surface: #12201b; --field: #0a120f; --edge: rgba(205,184,132,.17); --strong-edge: rgba(205,184,132,.45);
  --text: #eee8d8; --muted: #97a69c; --accent: #cbac6b; --on-accent: #151c16; --hover: rgba(205,184,132,.07);
  --in: #6f9f80; --in-text: #a6cdae; --out: #a8685a; --out-text: #dda392;
  --nav: #0f1b17; --nav-edge: rgba(205,184,132,.17); --nav-title: #eee8d8; --nav-text: #97a69c; --nav-on: rgba(198,167,102,.15); --nav-on-text: #e6d09b; --logo: grayscale(1) sepia(.9) saturate(.9) brightness(.95);
  --hero: #172a22; --hero-edge: rgba(205,184,132,.4); --hero-text: #f4eedd; --hero-muted: #aab7ab; --hero-in: #b9dcc0; --hero-out: #e9b3a2;
  --s1: #cbac6b; --s2: #6f9f80; --s3: #a8685a; --s4: #7d93a8; --s5: #8c7f9e; --s6: #5d6b62;
  --display: Manrope, "Segoe UI", sans-serif; --head-weight: 700; --num-weight: 650; }
:root[data-look="graphite"] { --bg: #0d0d0d; --surface: #161616; --field: #0a0a0a; --edge: #292929; --strong-edge: #58585d;
  --text: #f1f0ee; --muted: #96958f; --accent: #e6e4df; --on-accent: #111; --hover: rgba(255,255,255,.05);
  --in: #7d9b85; --in-text: #a9c8b0; --out: #a97272; --out-text: #d9a3a3;
  --nav: #101010; --nav-edge: #292929; --nav-title: #f1f0ee; --nav-text: #96958f; --nav-on: #262626; --nav-on-text: #fff; --logo: grayscale(1) brightness(1.15);
  --hero: #161616; --hero-edge: #3d3d3d; --hero-text: #fff; --hero-muted: #96958f; --hero-in: #c3dcc9; --hero-out: #e8bcbc;
  --s1: #e6e4df; --s2: #b4b2ad; --s3: #8b8a87; --s4: #6a6966; --s5: #504f4d; --s6: #3a3a38; }

body, button, input, select, textarea { font-family: Manrope, "Segoe UI", -apple-system, Roboto, sans-serif; }
.num, .big, .stat strong, .price { font-variant-numeric: lining-nums tabular-nums; }
:focus-visible, .file:focus-visible + label, .tile:has(:focus-visible), .results .row:has(:focus-visible) { outline-color: var(--accent); }
body { background: var(--bg); color: var(--text); }
body::before, .hero::after { display: none; }
h1, h2, .big, strong, .brand strong { font-family: var(--display); }
h1 { font-weight: var(--head-weight); letter-spacing: 0; }
h2 { font-weight: var(--head-weight); letter-spacing: .01em; }
a, summary, .link { color: var(--accent); }
.card, nav, dialog { background: var(--surface); border: 1px solid var(--edge); border-radius: var(--r) !important; box-shadow: none; backdrop-filter: none; }
.card:hover { border-color: var(--edge); }
.stat:hover, .btn:hover, .day:hover, .round:hover, .chips button:hover, .kind:hover, .tile:hover { transform: none; filter: none; }
.btn, .round, .chip, .badge, .day, .bank-line, #glide, .links a, input, select, textarea, .latest button, .periods, .periods button { border-radius: var(--r) !important; }
.btn { box-shadow: none !important; font-weight: 600; letter-spacing: .02em; }
.btn.income, .btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.expense, .btn.ghost { background: transparent; border-color: var(--strong-edge); color: var(--text); }
.round { background: transparent; color: var(--text); }
.chip { background: transparent; border: 1px solid var(--edge); color: var(--in-text); }
nav { background: var(--nav); border-color: var(--nav-edge); }
.brand { color: var(--nav-title); }
.brand img { filter: var(--logo); border-radius: var(--r); }
.links a, .device { color: var(--nav-text); }
.links a:hover, .links a[aria-current] { color: var(--nav-on-text); }
#glide { background: var(--nav-on); box-shadow: none; }
.hero { background: var(--hero); border-color: var(--hero-edge); }
.hero small, .hero .muted { color: var(--hero-muted); }
.big { font-weight: var(--num-weight); letter-spacing: -.01em; }
.big .num, .hero-chip .num { color: var(--hero-text); }
.big .num.pos { color: var(--hero-in); }
.big .num.neg { color: var(--hero-out); }
.hero-chip { background: transparent; border-top: 1px solid var(--hero-edge); border-radius: 0 !important; }
.stat strong { font-weight: var(--num-weight); }
.badge, .badge.income, .badge.expense { background: transparent; border: 1px solid var(--edge); }
.badge { color: var(--accent); }
.day { background: transparent; border-color: var(--edge); }
.day.pos { background: color-mix(in srgb, var(--in) 17%, transparent); border-color: transparent; box-shadow: none; }
.day.neg { background: color-mix(in srgb, var(--out) 19%, transparent); border-color: transparent; box-shadow: none; }
.day.is-today { border: 1px solid var(--accent); box-shadow: none; }
.day.pos .day-net { color: var(--in-text); }
.day.neg .day-net { color: var(--out-text); }
.day.active:not(.pos):not(.neg) { background: var(--hover); }
.bar-in, .bar-out, .trend, .done { filter: none; }
.trend { stroke: var(--accent); stroke-width: 1.6; }
.dot { fill: var(--surface); stroke: var(--accent); stroke-width: 1.6; }
.stop-a { stop-color: var(--accent); stop-opacity: .14; }
.stop-b { stop-color: var(--accent); stop-opacity: 0; }
.chart text.value { fill: var(--text); }
.grid { stroke: var(--edge); stroke-dasharray: none; }
.zero { stroke: var(--strong-edge); }
.partial { stroke: var(--text); }
.meter { background: var(--edge); border-radius: 0; height: 3px; }
.ring-base { stroke: var(--edge); }
.c0 { stroke: var(--s1); background: var(--s1); }
.c1 { stroke: var(--s2); background: var(--s2); }
.c2 { stroke: var(--s3); background: var(--s3); }
.c3 { stroke: var(--s4); background: var(--s4); }
.c4 { stroke: var(--s5); background: var(--s5); }
.c5, .rest { stroke: var(--s6); background: var(--s6); }
.latest button:hover, .entries li:hover { background: var(--hover); }
.cal-summary, .tile { background: var(--hover); border-radius: var(--r); }
#tip { background: var(--surface); border-color: var(--strong-edge); color: var(--text); border-radius: var(--r); }

/* forms, choices and the screens over the app */
#gate { background: var(--bg); }
input, select, textarea, .search { background: var(--field); border-color: var(--edge); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
select option { background: var(--surface); color: var(--text); }
.chips button, .checks label, .search, .tile, .results .row, .preview, .bank-line, .twin, .test-note { border-radius: var(--r); }
.chips button { background: transparent; }
.chips button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.kind { background: transparent; border-radius: var(--r); }
.kind:hover { background: var(--hover); }
.kind[aria-pressed="true"], .tile:has(:checked), .results .row:has(:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); box-shadow: none; }
.preview, .tile, .results .row { background: var(--hover); }
.brand img, .gate-card > img, .welcome-brand img, .start-brand img { filter: var(--logo); border-radius: var(--r); }
.tabs, .periods { background: transparent; border-color: var(--edge); }
.tabs button[aria-selected="true"], .periods button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
#plus { background: var(--accent); color: var(--on-accent); box-shadow: none; }
#toast { background: var(--surface); border-color: var(--strong-edge); border-radius: var(--r); box-shadow: none; }
.checks input, .agree input { accent-color: var(--accent); }
.links .count { background: var(--out); }
@media (max-width: 760px) { nav { background: var(--nav); } }

/* the start page: what the account is for, and its price */
.start { display: flex; flex-direction: column; gap: 22px; width: min(940px, 100%); margin: auto; }
.start-brand { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.start h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); text-wrap: balance; }
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.plan { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--r); }
.plan h2 { margin: 0; font-size: 1.15rem; }
.plan .about { flex: 1; }
.price { font-size: 2rem; font-weight: 700; line-height: 1.2; }
.price small { margin-left: 6px; font-size: .9rem; font-weight: 500; }
.start-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.looks .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.looks .kind { padding: 11px 14px; }
.looks .kind b { font-size: 1rem; }
.coupon { display: flex; gap: 8px; }
.coupon input { text-transform: uppercase; }
.code { font-size: 1.15rem; letter-spacing: .04em; user-select: all; }
a.btn { text-decoration: none; }
.tabs, .tabs button { border-radius: var(--r) !important; }
#plus { border-radius: 16px; }
