
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  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: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  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: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); }

:root {
  --paper: #eef3ec;
  --sheet: #fbfcfa;
  --ink: #1d2b3a;
  --muted: #56636f;
  --rule: #c9d6e2;
  --rule-strong: #9db4c8;
  --collected: #2f6b4f;
  --collected-soft: #d7e8dc;
  --red: #b3261e;
  --red-soft: #f6dedb;
  --link: #1f4e79;
  --focus: #1f4e79;
  --radius: 6px;
  --font: "Geist", "Plus Jakarta Sans", sans-serif;
  --font-display: "Plus Jakarta Sans", "Geist", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111916;
    --sheet: #18221e;
    --ink: #e4ebe6;
    --muted: #9eabb5;
    --rule: #2d3b45;
    --rule-strong: #4a6070;
    --collected: #79c29b;
    --collected-soft: #23392d;
    --red: #ff8f85;
    --red-soft: #3c2422;
    --link: #93bbe8;
    --focus: #93bbe8;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  font-variant-numeric: tabular-nums;
}
a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }

/* top bar */
.bar { border-bottom: 1px solid var(--rule); background: var(--sheet); }
.bar .wrap { display: flex; align-items: center; gap: 20px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.brand small { font-weight: 400; color: var(--muted); margin-left: 8px; }
.bar nav { margin-left: auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.bar nav a { text-decoration: none; color: var(--ink); font-size: 15px; }
.bar nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }

main { padding: 28px 0 64px; }
h1, h2 { font-family: var(--font-display); }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.015em; }
h2 { font-size: 19px; margin: 36px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 16px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* notices */
.notice { border-left: 4px solid var(--rule-strong); background: var(--sheet); padding: 12px 16px; margin: 0 0 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.notice.warn { border-color: var(--red); background: var(--red-soft); }
.notice.ok { border-color: var(--collected); background: var(--collected-soft); }

/* totals strip: a ledger header row, not cards */
.totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); margin: 18px 0 8px; }
.totals div { padding: 14px 16px 12px 0; }
.totals div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.totals dt { font-size: 13px; color: var(--muted); }
.totals dd { margin: 2px 0 0; font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
.totals dd.alert { color: var(--red); }
@media (max-width: 720px) {
  .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .totals div:nth-child(3) { padding-left: 0; border-left: 0; }
  .totals div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* the ledger: one row per plan */
.ledger { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); }
.ledger-head, .row { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(200px, 2fr) 120px 120px; gap: 16px; align-items: center; padding: 12px 16px; }
.ledger-head { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--rule-strong); }
.row { border-top: 1px solid var(--rule); text-decoration: none; color: inherit; }
.row:first-of-type { border-top: 0; }
a.row:hover { background: var(--paper); }
.row .who { min-width: 0; }
.row .who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .who span { font-size: 14px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .num { text-align: right; }
.row .num .sub { display: block; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .ledger-head { display: none; }
  .row { grid-template-columns: 1fr auto; }
  .row .track-cell { grid-column: 1 / -1; order: 3; }
  .row .last { display: none; }
}

/* the payment track: collected payments as segments on a ruled strip */
.track { position: relative; display: flex; height: 12px; border-radius: 2px; overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 8px), var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule); }
.track i { display: block; height: 100%; background: var(--collected); border-right: 2px solid var(--sheet); }
.track i.refunded { background: repeating-linear-gradient(135deg, var(--red) 0 2px, transparent 2px 5px); }
.track.overdue { box-shadow: inset 0 0 0 1px var(--red); background: repeating-linear-gradient(90deg, var(--red-soft) 0 1px, transparent 1px 8px), var(--red-soft); }
.track-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

.status { display: inline-block; font-size: 13px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--rule-strong); white-space: nowrap; }
.status.overdue, .status.failed, .status.closed_short { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.status.completed { border-color: var(--collected); color: var(--collected); background: var(--collected-soft); }
.status.canceled, .status.refunded { color: var(--muted); }

.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; align-items: center; }
.filters a { font-size: 14px; padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); background: var(--sheet); }
.filters a[aria-current="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.filters .spacer { flex: 1; }

/* activity feed */
.feed { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule-strong); }
.feed li { position: relative; padding: 0 0 14px 18px; }
.feed li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--rule-strong); }
.feed li.money::before { background: var(--collected); border-color: var(--collected); }
.feed li.alert::before { background: var(--red); border-color: var(--red); }
.feed .when { font-size: 13px; color: var(--muted); }
.feed .title { font-weight: 600; }
.feed .body { font-size: 14px; }

/* forms */
form.stack { display: grid; gap: 16px; max-width: 560px; }
label { font-weight: 600; font-size: 15px; display: block; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=password] {
  width: 100%; font: inherit; padding: 9px 11px; margin-top: 6px; border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--sheet); color: var(--ink);
}
fieldset { border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 16px; margin: 0; }
legend { font-weight: 600; padding: 0 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 6px 0; }
.check input { margin-top: 4px; accent-color: var(--collected); }
.btn { display: inline-block; font: inherit; font-weight: 600; padding: 9px 16px; border-radius: var(--radius); border: 1px solid var(--ink);
  background: var(--ink); color: var(--sheet); text-decoration: none; cursor: pointer; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

table.plain { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); }
table.plain th, table.plain td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--rule); font-size: 15px; }
table.plain th { font-size: 13px; color: var(--muted); font-weight: 600; border-top: 0; }
table.plain td.num, table.plain th.num { text-align: right; }

/* landing */
.hero { padding: 56px 0 24px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 18px; }
.hero p.lede { font-size: 19px; max-width: 34em; }
.conn-badge { font-size: 14px; border: 1px solid var(--rule); border-radius: 99px; padding: 4px 12px; background: var(--sheet); }
.hero .actions { align-items: center; }
.hero-shot { margin: 0; }
.hero-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); }
.hero-shot figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.specimen { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 6px 0; box-shadow: 0 1px 0 var(--rule); }
.specimen .row { grid-template-columns: 1fr 150px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; } }
.twocol { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; border-top: 1px solid var(--rule); padding-top: 28px; margin-top: 44px; }
.twocol h2 { margin-top: 0; }
.twocol ol { margin: 0; padding-left: 20px; }
.twocol ol li { margin-bottom: 8px; }
@media (max-width: 760px) { .twocol { grid-template-columns: 1fr; gap: 8px; } }
.alerts-list { list-style: none; padding: 0; margin: 0; }
.alerts-list li { padding: 10px 0; border-top: 1px solid var(--rule); }
.alerts-list li:first-child { border-top: 0; padding-top: 0; }
.alerts-list li strong { display: block; }
.price { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
footer { border-top: 1px solid var(--rule); padding: 20px 0 40px; font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); }
.prose { max-width: 720px; }
.prose h2 { margin-top: 28px; }
.prose li { margin-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
