/* Landing page, ledger design: the app shown on this page matches the new dashboard
   (premium navy card, pill rows with a date column, the "who's behind" grid), figures in Geist Mono,
   and no green: positive amounts and status use brand navy and periwinkle. Loaded last on index.html. */

.num { font-family: var(--font-mono); font-weight: 500; letter-spacing: -0.02em; }

/* Date column used in every list, as in the app */
.dt { display: grid; justify-items: center; flex: none; width: 40px; font: 700 .625rem/1.15 var(--font-mono); font-style: normal; color: var(--ink-3); text-transform: uppercase; }
.dt b { font-size: var(--text-16); color: var(--ink); }

/* ---------- Hero fan: three cards from the new app ---------- */
.lh-card { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 2px; padding: clamp(10px, 1vw, 16px); border-radius: clamp(14px, 1.2vw, 18px); color: var(--on-brand);
  background: linear-gradient(135deg, var(--brand-750) 0%, var(--brand-950) 60%, var(--brand-1000) 100%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); }
.lh-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .07) 45%, transparent 60%), radial-gradient(80% 90% at 100% 0%, rgb(58 63 160 / .55), transparent 65%); }
.lh-card small { font-size: clamp(.6rem, .66vw, .76rem); color: rgb(201 204 248 / .9); font-weight: 700; }
.lh-card strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.15rem, 1.65vw, 1.9rem); letter-spacing: -0.035em; line-height: 1.1; color: #fff; }
.lh-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 2px; margin-bottom: 8px; border-radius: var(--r-pill); background: rgb(255 255 255 / .08); }
.lh-tabs em { font-style: normal; text-align: center; padding: 4px 0; border-radius: var(--r-pill); font-size: clamp(.48rem, .52vw, .62rem); font-weight: 700; color: rgb(244 245 250 / .7); }
.lh-tabs em.on { background: var(--brand-150); color: var(--brand-950); }
.lh-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lh-acts span { text-align: center; padding: clamp(5px, .5vw, 8px) 0; border-radius: var(--r-pill); font-size: clamp(.58rem, .62vw, .74rem); font-weight: 700; color: var(--brand-600); box-shadow: inset 0 0 0 1.5px var(--grey-300); }
.lh-acts span.p { background: var(--brand-600); color: #fff; box-shadow: none; }
.lp-rows { display: grid; gap: clamp(4px, .4vw, 6px); }
.lp-rows > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: clamp(5px, .5vw, 8px) clamp(8px, .8vw, 12px) clamp(5px, .5vw, 8px) clamp(4px, .5vw, 8px); border-radius: var(--r-pill); background: var(--grey-100); }
.lp-rows i { display: grid; justify-items: center; width: clamp(24px, 2vw, 32px); font: 700 clamp(.46rem, .5vw, .58rem)/1.1 var(--font-mono); font-style: normal; text-transform: uppercase; color: var(--grey-600); }
.lp-rows i b { font-size: clamp(.68rem, .75vw, .88rem); color: var(--brand-900); }
.lp-rows span { font-size: clamp(.68rem, .74vw, .86rem); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-rows b.num { font-size: clamp(.66rem, .74vw, .86rem); color: var(--brand-600); }
.lc-1 .lh-card strong { font-size: clamp(1.05rem, 1.5vw, 1.7rem); }
.lc-order { gap: 8px; }
.lc-order > div { border-radius: var(--r-pill); background: var(--grey-100); }
.lc-order i { background: var(--brand-600); color: var(--brand-150); font-family: var(--font-mono); }
.lc-order em.done { background: var(--brand-75); color: var(--brand-600); }
.lc-order .on { background: var(--brand-150); }
.lc-order .on i { background: var(--brand-950); color: var(--brand-150); }
.lc-order .on em { background: var(--brand-950); color: var(--brand-150); }
/* "Paid this round" proof point: periwinkle, not green */
.stat-r .dot { background: var(--brand-150); }
.stat-r .faces .avatar:nth-child(2) { background: var(--brand-150); color: var(--brand-950); }
.stat-r .faces .avatar:nth-child(3) { background: var(--brand-200); color: var(--brand-950); }

/* ---------- Feature cards ---------- */
/* Record payments: each entry a pill with a date column */
.receipt { border-radius: var(--r-pill); padding: 8px 24px 8px 12px; }
.receipt b.pos { color: var(--brand-600); }
:root[data-theme="dark"] .receipt b.pos { color: var(--brand-200); }

/* Member statement: the navy balance card and pill rows, as members now see it */
.phone-balance { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-card); color: var(--on-brand);
  background: linear-gradient(135deg, var(--brand-750) 0%, var(--brand-950) 60%, var(--brand-1000) 100%); }
.phone-balance::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 90% at 100% 0%, rgb(58 63 160 / .55), transparent 65%); }
.phone-balance span { color: rgb(201 204 248 / .9); font-weight: 700; }
.phone-balance strong { color: #fff; font-weight: 800; }
.phone-row { grid-template-columns: auto 1fr auto; align-items: center; padding: 8px 16px 8px 8px; border-top: 0; border-radius: var(--r-pill); background: var(--bg); }
.phone-row .dt { width: 32px; }
.phone-row span { font-weight: 600; color: var(--ink) !important; }
.phone-row strong { color: var(--brand-600); }
:root[data-theme="dark"] .phone-row strong { color: var(--brand-200); }

/* Who's behind: the grid from the app */
.who-grid { width: min(100%, 440px); display: grid; gap: 8px; transform: rotate(-2deg); }
.wg-head, .wg-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 78px; align-items: center; gap: 12px; }
.wg-head { padding: 0 16px; font-size: var(--text-12); font-weight: 700; color: var(--ink-3); }
.wg-head span:last-child { text-align: right; }
.wg-row { padding: 12px 16px; border-radius: var(--r-pill); background: var(--surface); box-shadow: 0 6px 18px -12px rgb(42 46 127 / .35); font-size: var(--text-14); font-weight: 600; }
.wg-row b { text-align: right; font-size: var(--text-14); color: var(--late-ink); }
.wg-row b.ok { color: var(--ink-3); font-weight: 500; font-family: var(--font-mono); }
.wg-sq { display: flex; gap: 4px; }
.wg-sq i { width: 14px; height: 14px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1.5px var(--grey-500); }
.wg-sq i.p { background: var(--brand-600); box-shadow: none; }
.wg-sq i.l { box-shadow: inset 0 0 0 2px var(--late); }
:root[data-theme="dark"] .wg-sq i.p { background: var(--brand-200); }
@media (max-width: 560px) {
  .wg-head, .wg-row { grid-template-columns: minmax(0, 1fr) auto 64px; gap: 8px; }
  .wg-row { padding: 8px 16px; font-size: var(--text-13); }
  .wg-head { padding: 0 16px; }
  .wg-sq i { width: 11px; height: 11px; border-radius: var(--r-xs); }
  .wg-sq { gap: 4px; }
}

/* Ledger switcher: pill rows */
.switch-item { border-radius: var(--r-pill); }
.switch-item.on { background: var(--brand-75); color: var(--brand-600); }
