/* owed - a statement, not a dashboard.
   paper ground, one ink, one money colour. three faces with one job each:
   Panchang (wordmark, headings, big balances) / Supreme (prose, labels, buttons) / Sometype Mono (addresses, hashes, amounts in tables).
   hairlines exist only inside tables and under the masthead. sections separate by space. radius 0. no shadows, no gradients. */

:root {
  --bg:    #f4f2ec;
  --plate: #ebe8df;   /* the one sunk surface: lookup result, claim card */
  --ink:   #151412;
  --ink2:  #4f4d47;
  --dim:   #8a877e;
  --rule:  #d8d4c8;
  --money: #0e7a45;   /* every balance that can be claimed */
  --out:   #a8432c;   /* claims leaving a vault */
  --disp:  "Panchang", "Supreme", system-ui, sans-serif;
  --sans:  "Supreme", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "Sometype Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --s1: 24px;
  --s2: 72px;
  --s3: 128px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 56px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a.l { text-decoration: underline; text-decoration-color: rgba(21,20,18,.3); text-underline-offset: 3px; }
a.l:hover { text-decoration-color: var(--ink); }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wrap { width: min(1440px, 100% - 112px); margin: 0 auto; }
.mono { font-family: var(--mono); }
.k { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.money { color: var(--money); }
.out { color: var(--out); }
.dim { color: var(--dim); }

/* masthead: the only hairline outside tables */
.mast { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--rule); height: 56px; }
.mast .wrap { display: flex; align-items: center; height: 100%; gap: 40px; }
.wm { font-family: var(--disp); font-weight: 700; font-size: 22px; letter-spacing: .02em; }
.wm span { display: inline-block; width: 13px; height: 13px; border: 4px solid var(--ink); border-radius: 50%; vertical-align: -1px; margin-right: 9px; }
.nav { display: flex; gap: 28px; font-size: 14px; color: var(--ink2); }
.nav a:hover { color: var(--ink); }
.net { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.net b { color: var(--ink2); font-weight: 500; }

/* hero */
.hero { padding: var(--s3) 0 var(--s2); }
h1 { font-family: var(--disp); font-weight: 700; font-size: clamp(56px, 6.2vw, 96px); line-height: .98; letter-spacing: -.01em; margin: 0 0 32px; max-width: 16ch; }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink2); max-width: 62ch; margin-bottom: 48px; }

/* lookup: a single big field, the demo of the whole product */
.look { display: flex; align-items: stretch; max-width: 760px; border: 2px solid var(--ink); }
.look .at { font-family: var(--disp); font-weight: 700; font-size: 34px; padding: 0 8px 0 20px; display: flex; align-items: center; }
.look input { flex: 1; border: 0; background: transparent; font-family: var(--disp); font-weight: 700; font-size: 34px; padding: 14px 8px; min-width: 0; letter-spacing: .01em; }
.look input::placeholder { color: var(--dim); font-weight: 500; }
.look button { border: 0; background: var(--ink); color: var(--bg); padding: 0 28px; font-size: 15px; font-weight: 500; cursor: pointer; }
.look button:hover { background: #2a2825; }
.hint { margin-top: 12px; font-size: 14px; color: var(--dim); }
.hint a { color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* result card */
.card { background: var(--plate); padding: 36px 40px; margin-top: 40px; max-width: 1040px; }
.card[hidden] { display: none; }
.card .row { display: grid; grid-template-columns: 180px 1fr; gap: 12px 32px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--rule); }
.card .row:first-child { border-top: 0; padding-top: 0; }
.card .h { font-family: var(--disp); font-weight: 700; font-size: 40px; line-height: 1; }
.card .big { font-family: var(--mono); font-weight: 500; font-size: 36px; line-height: 1; letter-spacing: -.02em; }
.card .big small { font-family: var(--sans); font-weight: 400; font-size: 16px; color: var(--ink2); margin-left: 8px; }
.addr { font-family: var(--mono); font-size: 15px; word-break: break-all; cursor: pointer; }
.addr:hover { text-decoration: underline; text-underline-offset: 3px; }
.copied { font-size: 13px; color: var(--money); margin-left: 10px; }
.card .sub { font-size: 14px; color: var(--ink2); }

/* send form inside the card */
.send { display: flex; gap: 12px; align-items: stretch; margin-top: 6px; flex-wrap: wrap; }
.send input { border: 1px solid var(--ink); background: var(--bg); padding: 10px 14px; font-size: 15px; }
.send input.amt { width: 150px; font-family: var(--mono); }
.send input.note { flex: 1; min-width: 240px; }
.btn { border: 0; background: var(--ink); color: var(--bg); padding: 11px 22px; font-size: 15px; font-weight: 500; cursor: pointer; }
.btn:hover { background: #2a2825; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: rgba(21,20,18,.06); }
.btn[disabled] { opacity: .45; cursor: default; }
.say { font-size: 14px; color: var(--ink2); margin-top: 14px; min-height: 20px; }
.say a { text-decoration: underline; text-underline-offset: 3px; }

/* sections */
section { padding: var(--s2) 0; }
section + section { padding-top: 0; }
h2 { font-family: var(--disp); font-weight: 700; font-size: 34px; line-height: 1.1; margin: 0 0 40px; letter-spacing: -.005em; }
h2 .n { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--dim); margin-right: 18px; vertical-align: middle; }

/* how: three columns of prose under big words, no cards, no icons */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.how .w { font-family: var(--disp); font-weight: 700; font-size: 52px; line-height: 1; margin-bottom: 20px; }
.how p { color: var(--ink2); font-size: 16px; max-width: 40ch; }
.how p b { color: var(--ink); font-weight: 500; }
.fee { margin-top: 56px; font-size: 18px; color: var(--ink2); max-width: 70ch; }
.fee b { color: var(--ink); font-weight: 500; }

/* ledger table: hairlines live here */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding: 0 14px 12px 0; border-bottom: 1px solid var(--ink); }
td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
td.m { font-family: var(--mono); font-size: 13px; }
td.amt { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
td.note { color: var(--ink2); max-width: 36ch; }
tr.empty td { color: var(--ink2); padding: 20px 0; border-bottom: 0; }
.tsub { margin-top: 14px; font-size: 13px; color: var(--dim); }

/* claim */
.claim { background: var(--plate); padding: 40px; max-width: 1040px; }
.claim .h { font-family: var(--disp); font-weight: 700; font-size: 40px; line-height: 1; margin-bottom: 8px; }
.claim .line { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.claim .big { font-family: var(--mono); font-weight: 500; font-size: 32px; line-height: 1; letter-spacing: -.02em; }
.claim .big small { font-family: var(--sans); font-weight: 400; font-size: 15px; color: var(--ink2); margin-left: 6px; }
.claim p { color: var(--ink2); max-width: 64ch; }

/* state block: prose lines with real links */
.state { display: grid; grid-template-columns: 220px 1fr; gap: 10px 32px; font-size: 15px; max-width: 1040px; }
.state .k { padding-top: 3px; }
.state .v { font-family: var(--mono); font-size: 14px; word-break: break-all; }
.state .v.s { font-family: var(--sans); font-size: 15px; color: var(--ink2); }

/* notes: numbered prose, open */
.notes { columns: 2; column-gap: 72px; max-width: 1200px; }
.notes div { break-inside: avoid; margin-bottom: 28px; padding-left: 40px; position: relative; color: var(--ink2); font-size: 15px; }
.notes div::before { content: attr(data-n); position: absolute; left: 0; top: 2px; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.notes b { color: var(--ink); font-weight: 500; }

footer { padding: var(--s2) 0 48px; font-size: 14px; color: var(--dim); display: flex; gap: 28px; }
footer a { color: var(--ink2); }

/* copy feedback */
.ca { font-family: var(--mono); cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .card, .claim { transition: background .2s; }
}
