
/* Layout concept: a paper bill on a cobalt desk. The bill is the interface; the stamp is the reward. Single deliberate look. */
:root {
  color-scheme: light;
  --desk: #1a2ec4;
  --desk-deep: #101c8a;
  --desk-line: #4556e0;
  --on-desk: #ffffff;
  --on-desk-soft: #d4daff;
  --paper: #f4f6fc;
  --paper-2: #e4e8f6;
  --ink: #111849;
  --ink-soft: #505a8c;
  --rule: #c3cae4;
  --stamp: #cf1430;
  --sun: #ffcb3d;
  --sage: #0d7a5b;
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --body: "Instrument Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --stencil: "Saira Stencil One", Impact, "Arial Black", sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--desk-deep);
  color: var(--on-desk);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  overflow: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; text-wrap: balance; }

.shell { height: 100%; display: flex; justify-content: center; gap: 72px; align-items: stretch; }
.pitch { display: none; }
.app {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: var(--desk);
  overflow: hidden;
}
.demo-note {
  background: var(--sun);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  text-align: center;
  padding: 4px 12px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.mark {
  font-family: var(--stencil);
  font-size: 18px;
  letter-spacing: .04em;
  border: 2px solid currentColor;
  border-radius: 3px;
  padding: 1px 8px 0;
  white-space: nowrap;
  flex: none;
  transform: rotate(-2deg);
}
.streak { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--on-desk); text-align: right; }
.streak span { color: var(--sun); }

.panel {
  min-height: 0;
  overflow-y: auto;
  padding-block: 4px 16px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.panel[hidden] { display: none; }
#panel-today { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; overflow: hidden; }
#panel-today[hidden] { display: none; }
.stack-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stack-head h2 { font-size: 21px; }
.stack-count { font-family: var(--mono); font-size: 13px; color: var(--on-desk-soft); white-space: nowrap; }

.deck { position: relative; min-height: 0; }
.bill {
  position: absolute;
  inset: 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(8, 14, 80, .4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.bill.under { transform: translateY(8px) scale(.965); filter: brightness(.9); }
.bill.top-card { cursor: grab; }
.bill.dragging { cursor: grabbing; }
.bill.snap { transition: transform .22s ease; }
.bill.exit { transition: transform .32s ease-in, opacity .32s ease-in; opacity: 0; }
.bill-body { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 9px; flex: 1; min-height: 0; overflow: hidden; }
.bill-meta { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); }
.bill-kind { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 8.6vw, 38px); line-height: 1; }
.bill-place { font-size: 15px; color: var(--ink-soft); }
.lines { display: grid; gap: 4px; font-family: var(--mono); font-size: 13px; border-top: 1px solid var(--rule); padding-top: 8px; }
.line { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.line b { font-weight: 600; }
.bar { height: 10px; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--desk); transition: width .5s ease; }
.verified { font-size: 13.5px; color: var(--sage); font-weight: 600; }
.praying { font-size: 13.5px; color: var(--ink-soft); }
.tear {
  margin-top: auto;
  border-top: 2px dashed var(--rule);
  padding: 10px 16px;
  display: grid;
  gap: 6px;
  background: var(--paper-2);
}
.tear-row, .tear-hint { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tear small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; color: var(--ink-soft); }
.tear-hint small { font-size: 9px; text-align: center; }
.tear-hint span { font-size: 13px; font-weight: 700; white-space: nowrap; }
.tear strong { font-family: var(--mono); font-size: clamp(26px, 8vw, 36px); line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.intent {
  position: absolute;
  top: 18px;
  font-family: var(--stencil);
  font-size: 34px;
  padding: 0 10px;
  border: 3px solid currentColor;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
}
.intent.pay { left: 14px; color: var(--stamp); transform: rotate(-9deg); }
.intent.pray { right: 14px; color: var(--desk); transform: rotate(9deg); }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn {
  min-height: 50px;
  border-radius: 4px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 16px;
  padding: 8px 14px;
}
.btn-pray { background: transparent; border-color: var(--on-desk); color: var(--on-desk); }
.btn-pay { background: var(--paper); color: var(--ink); }
.btn-ink { background: var(--desk); color: var(--on-desk); width: 100%; }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 6px; text-decoration: underline; color: inherit; font-size: 14.5px; }

.empty { align-self: center; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.empty h2 { font-size: 34px; }
.empty p { color: var(--on-desk-soft); }

.nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--desk-deep);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
.nav button {
  background: none;
  border: 0;
  border-top: 3px solid transparent;
  color: var(--on-desk-soft);
  padding: 11px 2px 12px;
  font-size: 14px;
  font-weight: 600;
}
.nav button[aria-current="page"] { color: var(--on-desk); border-top-color: var(--sun); }

.sheet-wrap { position: absolute; inset: 0; background: rgba(8, 13, 70, .62); display: flex; align-items: flex-end; z-index: 20; }
.sheet {
  width: 100%;
  max-height: 92%;
  overflow-y: auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px 10px 0 0;
  padding-block: 18px 18px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: rise .22s ease-out;
}
@keyframes rise { from { transform: translateY(40px); opacity: .4; } }
.sheet h2 { font-size: 25px; }
.sheet-sub { color: var(--ink-soft); font-size: 14.5px; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip {
  min-height: 46px;
  border: 2px solid var(--rule);
  background: #fff;
  border-radius: 4px;
  font-family: var(--mono);
  font-weight: 600;
}
.chip[aria-pressed="true"] { border-color: var(--desk); background: var(--desk); color: #fff; }
.chip-rest { grid-column: 1 / -1; font-family: var(--body); font-weight: 700; }
.field { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select {
  min-height: 46px;
  width: 100%;
  min-width: 0;
  border: 2px solid var(--rule);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  font-weight: 400;
  font-size: 16px;
}
.check { display: flex; gap: 8px; align-items: center; font-size: 14.5px; }
.check input { width: 20px; height: 20px; accent-color: var(--desk); }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-grid .btn { background: var(--ink); color: #fff; font-size: 15px; }
.note { font-size: 13px; color: var(--ink-soft); }

.moment {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: var(--desk);
  color: var(--on-desk);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  overflow-y: auto;
  padding-block: 16px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.receipt { position: relative; background: var(--paper); color: var(--ink); border-radius: 4px; padding: 16px; display: grid; gap: 9px; overflow: hidden; }
.receipt h3 { font-size: 27px; }
.bigstamp {
  position: absolute;
  left: 50%;
  top: 66%;
  white-space: nowrap;
  mix-blend-mode: multiply;
  font-family: var(--stencil);
  font-size: clamp(36px, 11vw, 46px);
  line-height: 1;
  padding: 7px 12px 4px;
  border: 5px solid var(--stamp);
  border-radius: 6px;
  color: var(--stamp);
  transform: translate(-50%, -50%) rotate(-11deg);
  animation: slam .34s cubic-bezier(.2, 1.3, .4, 1) .12s backwards;
}
@keyframes slam { from { transform: translate(-50%, -50%) rotate(-3deg) scale(3); opacity: 0; } }
.moment h2 { font-size: 30px; }
.verse { color: var(--on-desk-soft); font-size: 15px; }
.moment-actions { display: grid; gap: 8px; }
.moment .btn-line { border-color: var(--on-desk); color: var(--on-desk); }

.sec { display: grid; gap: 12px; }
.sec-head h2 { font-size: 27px; }
.sec-head p { color: var(--on-desk-soft); font-size: 14.5px; margin-top: 4px; }
.plate { background: var(--paper); color: var(--ink); border-radius: 4px; padding: 14px; display: grid; gap: 10px; }
.plate h3 { font-size: 19px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.stat b { display: block; font-family: var(--mono); font-size: 26px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13.5px; color: var(--ink-soft); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.day { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.day i { display: block; aspect-ratio: 1; max-width: 100%; border: 2px solid var(--rule); border-radius: 50%; margin-bottom: 3px; }
.day.on i { background: var(--stamp); border-color: var(--stamp); }
.day.today b { color: var(--ink); }
.day b { font-weight: 600; }
.entry { display: flex; justify-content: space-between; gap: 12px; padding-top: 9px; border-top: 1px solid var(--rule); font-size: 14.5px; }
.entry > div { min-width: 0; }
.entry small { display: block; color: var(--ink-soft); font-size: 13px; }
.tag { font-family: var(--mono); font-size: 11.5px; font-weight: 600; align-self: flex-start; white-space: nowrap; }
.tag.paid { color: var(--stamp); }
.tag.wait { color: var(--ink-soft); }
.tag.pray { color: var(--desk); }
.goal-num { font-family: var(--mono); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.goal-num small { font-size: 15px; color: var(--ink-soft); font-weight: 400; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.tile { aspect-ratio: 3 / 4; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 2px; display: grid; place-items: center; font-family: var(--stencil); font-size: 11px; color: transparent; }
.tile.done { background: #fff; border-color: var(--stamp); color: var(--stamp); }
.tile.done span { transform: rotate(-14deg); animation: tile .18s ease-out; }
@keyframes tile { from { transform: rotate(-14deg) scale(2.4); } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.steps li { display: grid; grid-template-columns: 26px 1fr; gap: 9px; font-size: 14.5px; }
.steps li span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--rule); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.steps li.done span { background: var(--sage); border-color: var(--sage); color: #fff; }
.steps li.now span { border-color: var(--desk); color: var(--desk); }
.promise { display: grid; gap: 5px; margin: 0; padding-left: 18px; font-size: 14.5px; }
.toast {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 62px;
  z-index: 40;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(8, 14, 80, .45);
}

@media (min-width: 900px) {
  body { overflow: hidden; }
  .shell { padding-block: 24px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .app { width: 430px; flex: none; border-radius: 12px; box-shadow: 0 24px 60px rgba(4, 8, 60, .6); }
  .pitch { display: flex; flex-direction: column; justify-content: center; gap: 20px; max-width: 470px; min-width: 0; }
  .pitch h1 { font-size: clamp(50px, 6vw, 76px); line-height: .96; }
  .pitch h1 em { font-style: normal; color: var(--sun); }
  .pitch p { font-size: 18px; color: var(--on-desk-soft); max-width: 42ch; }
  .pitch .verse-line { font-family: var(--mono); font-size: 14px; }
}
@media (min-height: 700px) {
  .bill-body { gap: 14px; padding-top: 18px; }
  .lines { font-size: 15px; gap: 9px; padding-top: 12px; }
  .bar { height: 14px; }
  .verified, .praying { font-size: 15px; }
}
@media (max-height: 640px) {
  .bill-body { gap: 6px; padding-top: 10px; }
  .tear-hint small { display: none; }
  .bill-kind { font-size: 28px; }
  .praying { display: none; }
  .btn { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.top-right { display: grid; justify-items: end; gap: 4px; }
.lang { display: flex; border: 1.5px solid var(--on-desk-soft); border-radius: 4px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--on-desk); font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 3px 9px; min-height: 28px; }
.lang button[aria-pressed="true"] { background: var(--on-desk); color: var(--desk); }
.moment { justify-content: safe center; }
.sticker { background: var(--sun); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: clamp(22px, 6.4vw, 27px); line-height: 1.12; padding: 12px 14px; border-radius: 4px; transform: rotate(-1.5deg); text-wrap: balance; animation: pop .3s cubic-bezier(.2, 1.4, .4, 1) .34s backwards; }
@keyframes pop { from { transform: rotate(-6deg) scale(.7); opacity: 0; } }
.again { justify-self: start; color: var(--on-desk); }
.vibes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--on-desk-soft); }
.vibes button { background: none; border: 1px solid var(--on-desk-soft); border-radius: 3px; color: var(--on-desk); padding: 5px 8px; font-size: 12px; font-family: var(--mono); }
.vibes button[aria-pressed="true"] { background: var(--on-desk); color: var(--desk); }
.panel-stack { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; overflow: hidden; }
.bill-meta span:only-child { width: 100%; }
.unverified { font-size: 13.5px; color: var(--stamp); font-weight: 600; }
.actions.one { align-items: center; }
.yours { font-weight: 700; }
.howbox { background: var(--paper-2); border-radius: 4px; padding: 10px 12px; display: grid; gap: 4px; font-size: 14.5px; }
.howbox p { white-space: pre-wrap; overflow-wrap: anywhere; }
.banner { background: var(--sun); color: var(--ink); border-radius: 4px; padding: 10px 12px; font-weight: 600; font-size: 14.5px; }
.field textarea { min-height: 80px; width: 100%; min-width: 0; border: 2px solid var(--rule); border-radius: 4px; background: #fff; color: var(--ink); padding: 8px 10px; font-weight: 400; font-size: 16px; resize: vertical; }
.roles { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.roles legend { font-size: 14px; font-weight: 600; padding: 0 0 6px; }
.link.small { font-size: 13px; padding: 4px 0; color: var(--ink-soft); }
.entry.stack { display: grid; }
.decide { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.decide .btn { min-height: 44px; font-size: 14.5px; }
.empty { min-height: 100%; }
.panel .stat b { font-size: 24px; }

/* Full site layout */
html, body { height: auto; }
body { overflow: auto; background: var(--desk); min-height: 100vh; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.site-top { background: var(--desk-deep); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
.site-top .wrap { display: flex; align-items: center; gap: 12px 18px; padding-block: 10px; flex-wrap: wrap; }
.site-top .mark { text-decoration: none; }
.site-nav { display: flex; gap: 4px 14px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.site-nav a, .site-nav button { background: none; border: 0; padding: 6px 2px; font-weight: 600; font-size: 15px; color: var(--on-desk-soft); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--on-desk); box-shadow: inset 0 -3px 0 var(--sun); }
.top-right { display: block; }
.page { padding-block: 18px 40px; min-height: 60vh; }
.page-feed { max-width: 460px; }
.feed { display: grid; gap: 10px; }
.feed .deck { height: min(540px, 66vh); min-height: 440px; }
.narrow { max-width: 460px; margin: 0 auto; }
.grid-2 { display: grid; gap: 14px; align-items: start; }
.tiles-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile-stat { background: var(--paper); color: var(--ink); border-radius: 4px; padding: 12px 14px; display: grid; gap: 2px; }
.tile-stat b { font-family: var(--mono); font-size: 25px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile-stat span { font-size: 13.5px; color: var(--ink-soft); }
.tile-stat.alert { box-shadow: inset 0 0 0 2px var(--stamp); }
.bill-row { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--rule); min-width: 0; }
.bill-row:first-of-type { border-top: 0; padding-top: 0; }
.bill-row-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.bill-row-head > div { min-width: 0; }
.bill-row small { display: block; color: var(--ink-soft); font-size: 13.5px; overflow-wrap: anywhere; }
.pill { font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 3px 7px; border-radius: 3px; white-space: nowrap; background: var(--paper-2); color: var(--ink); }
.pill.live { background: var(--desk); color: #fff; }
.pill.paid { background: var(--stamp); color: #fff; }
.pill.rejected { background: var(--ink); color: #fff; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.stepper li { font-size: 11.5px; color: var(--ink-soft); display: grid; gap: 4px; min-width: 0; }
.stepper li::before { content: ""; height: 6px; border-radius: 2px; background: var(--paper-2); }
.stepper li.done { color: var(--ink); font-weight: 600; }
.stepper li.done::before { background: var(--desk); }
.mini-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.error { color: var(--stamp); font-size: 14px; font-weight: 600; min-height: 1.2em; }
.plate .link { color: var(--ink); justify-self: start; }
.link-on-desk { color: var(--on-desk); }
.auth-links { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.feed-empty { color: var(--on-desk); display: grid; gap: 12px; padding-block: 30px; }
.toast { position: fixed; left: 50%; right: auto; bottom: 18px; transform: translateX(-50%); width: min(430px, calc(100% - 32px)); }
#overlay-root .sheet-wrap, #overlay-root .moment { position: fixed; }
#overlay-root .sheet { max-width: 520px; margin: 0 auto; }
#overlay-root .moment { align-items: center; }
#overlay-root .moment > * { width: 100%; max-width: 440px; }
.foot { background: var(--desk-deep); color: var(--on-desk-soft); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-block: 18px; }
.mid { margin-left: auto; }

/* Landing */
.hero { display: grid; gap: 32px; padding-block: 40px 44px; align-items: center; }
.hero h1 { font-size: clamp(46px, 12vw, 84px); line-height: .96; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero-copy { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.hero-copy p { font-size: 19px; color: var(--on-desk-soft); max-width: 46ch; }
.cta { display: inline-block; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 17px; padding: 14px 20px; border-radius: 4px; text-decoration: none; }
.cta.ghost { background: transparent; color: var(--on-desk); box-shadow: inset 0 0 0 2px var(--on-desk); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-bill { position: relative; background: var(--paper); color: var(--ink); border-radius: 4px; padding: 20px; display: grid; gap: 12px; box-shadow: 0 16px 34px rgba(8, 14, 80, .45); transform: rotate(1.5deg); max-width: 420px; width: 100%; justify-self: center; overflow: hidden; }
.hero-bill .bigstamp { top: 62%; animation-delay: .7s; }
.hero-bill h2 { font-size: 38px; }
.band { background: var(--paper); color: var(--ink); }
.band .wrap { padding-block: 40px; display: grid; gap: 22px; }
.band h2 { font-size: clamp(30px, 6vw, 44px); }
.band.dark { background: var(--desk-deep); color: var(--on-desk); }
.how { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.how li { counter-increment: s; display: grid; gap: 4px; }
.how li::before { content: counter(s); font-family: var(--stencil); font-size: 30px; color: var(--stamp); }
.band.dark .how li::before { color: var(--sun); }
.how h3 { font-size: 21px; }
.how p, .qa p { color: inherit; opacity: .86; max-width: 58ch; }
.counters { display: flex; flex-wrap: wrap; gap: 12px 34px; }
.counters b { display: block; font-family: var(--mono); font-size: 34px; font-weight: 600; line-height: 1.1; }
.qa { display: grid; gap: 16px; }
.qa h3 { font-size: 19px; margin-bottom: 3px; }
.prose { max-width: 720px; display: grid; gap: 12px; }
.prose h1 { font-size: 38px; } .prose h2 { font-size: 22px; margin-top: 8px; }
.legal-flag { background: var(--sun); color: var(--ink); padding: 10px 12px; border-radius: 4px; font-weight: 600; }

/* Admin */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-tabs button { background: none; border: 2px solid var(--on-desk-soft); color: var(--on-desk); border-radius: 4px; padding: 7px 12px; font-weight: 600; }
.admin-tabs button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.admin-tabs .count { font-family: var(--mono); margin-left: 4px; }
.chart-grid { display: grid; gap: 12px; }
.chart h3 { font-size: 16px; }
.chart svg { width: 100%; height: 130px; display: block; }
.chart .big { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.chart rect.hit { fill: transparent; }
.chart rect.hit:hover { fill: var(--paper-2); }
.chart rect.bm { fill: var(--desk); pointer-events: none; }
.chart text { fill: var(--ink-soft); font-family: var(--mono); font-size: 9px; }
.chart line { stroke: var(--rule); stroke-width: 1; }
.table-wrap { overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; color: var(--ink-soft); padding: 5px 10px 5px 0; border-bottom: 2px solid var(--rule); white-space: nowrap; }
table.data td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.funnel { display: grid; gap: 7px; }
.funnel-row { display: grid; grid-template-columns: 125px 1fr 50px; gap: 8px; align-items: center; font-size: 13.5px; }
.funnel-row i { display: block; height: 14px; background: var(--desk); border-radius: 0 3px 3px 0; min-width: 2px; }
.funnel-row b { font-family: var(--mono); font-weight: 600; text-align: right; }
.review-card { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--rule); }
.review-actions { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.review-actions .btn { min-height: 42px; font-size: 14.5px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar input, .toolbar select { min-height: 42px; border: 2px solid var(--rule); border-radius: 4px; padding: 6px 10px; background: #fff; color: var(--ink); }

@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1.15fr .85fr; padding-block: 64px; }
  .how { grid-template-columns: repeat(3, 1fr); }
  .qa { grid-template-columns: 1fr 1fr; gap: 22px 36px; }
  .chart-grid { grid-template-columns: repeat(3, 1fr); }
}
.bar i.full { width: 100%; }
.bar i { width: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.site-top .lang { order: 2; margin-left: auto; }
.site-top .site-nav { order: 3; margin-left: 0; width: 100%; }
@media (min-width: 760px) {
  .site-top .site-nav { order: 2; width: auto; margin-left: auto; }
  .site-top .lang { order: 3; margin-left: 0; }
}
.logo-link { display: block; flex: none; line-height: 0; }
.logo { height: 50px; width: auto; display: block; }
.hero-stamp { position: absolute; left: 50%; top: 66%; width: 92%; transform: translate(-50%, -50%); mix-blend-mode: multiply; animation: slam-logo .34s cubic-bezier(.2, 1.3, .4, 1) .7s backwards; }
@keyframes slam-logo { from { transform: translate(-50%, -50%) scale(2.6); opacity: 0; } }
.hero-stamp { position: static; width: 100%; transform: none; mix-blend-mode: normal; animation-name: land-logo; }
@keyframes land-logo { from { transform: scale(2.2); opacity: 0; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cur-pick { order: 2; }
.cur-pick select { min-height: 30px; border: 1.5px solid var(--on-desk-soft); border-radius: 4px; background: var(--desk-deep); color: var(--on-desk); font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 2px 4px; max-width: 104px; }
.plate h4 { font-family: var(--display); font-size: 16px; margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--rule); }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 10px; margin-top: 6px; }
.qr { margin: 0; display: grid; gap: 4px; justify-items: center; font-size: 13px; text-align: center; min-width: 0; }
.qr img { width: 100%; max-width: 200px; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--rule); border-radius: 4px; }
.qr figcaption { overflow-wrap: anywhere; }
.qr .link { display: block; margin: 0 auto; }
.send-exact { font-family: var(--mono); font-weight: 600; }
.prayer-text { font-family: var(--display); font-size: 21px; font-weight: 500; line-height: 1.2; }
.rates-note { font-size: 12px; color: var(--on-desk-soft); }
.line.billed { color: var(--ink-soft); font-size: 12px; }
.qr-saved { display: grid; gap: 4px; font-size: 14px; }
