/* Rollbook landing page. Direction B "Passbook", from the app
   (apps/rollbook/app/src/main/kotlin/dev/machado001/rollbook/ui/theme/RollbookTokens.kt):
   ink on ruled paper, a green cloth cover that carries only the balance, one red-brown ink for
   days spent. IBM Plex Sans speaks; IBM Plex Mono counts — every count and every date is mono.
   No animation, no blur, no gradients, no shadows. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/plex-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F5F3EC;
  --card: #FFFFFF;
  --ink: #1B1F1C;
  --ink2: #555B55;
  --rule: #C9CFC4;
  --cover: #1E4B3B;
  --on-cover: #FFFFFF;
  --action: #1E4B3B;
  --on-action: #FFFFFF;
  --today: #E8EEE6;
  --debit: #8E2F1F;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151916;
    --card: #1C211D;
    --ink: #E7EAE4;
    --ink2: #A6ADA5;
    --rule: #2E352F;
    --cover: #0F2A20;
    --on-cover: #F0EEE6;
    --action: #A8D5BF;
    --on-action: #102019;
    --today: #1D2620;
    --debit: #F08A73;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 600; }
p { margin: 0; }
.mono, .num, time { font-family: var(--mono); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; }
.head-nav { display: flex; align-items: center; gap: 6px; }
.head-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 4px; }
.head-nav a.get { background: var(--action); color: var(--on-action); }

/* Hero */
.hero { padding: 48px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; gap: 56px; } .hero { padding-top: 72px; } }
.kicker { font-family: var(--mono); font-size: 14px; color: var(--ink2); margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 52px); font-weight: 700; letter-spacing: -0.01em; max-width: 16ch; }
.hero .lead { font-size: 19px; margin-top: 18px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.badge { display: inline-block; border-radius: 8px; }
.cta-note { font-size: 15px; color: var(--ink2); max-width: 26em; }
.private { margin-top: 18px; font-size: 15px; padding-top: 14px; border-top: 1px solid var(--rule); max-width: 30em; }

/* The passbook (the hero's worked example) */
.book { margin: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.cover { background: var(--cover); color: var(--on-cover); padding: 20px 22px 18px; }
.cover-title { font-weight: 600; font-size: 15px; }
.cover-label { font-size: 15px; margin-top: 14px; }
.balance { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.balance b { font-family: var(--mono); font-weight: 500; font-size: 60px; line-height: 1; }
.balance span { font-family: var(--mono); font-size: 17px; }
.cover-date { font-size: 14px; margin-top: 8px; }
.cover-date .mono { font-size: 13px; }
.arrive { padding: 14px 22px; border-bottom: 1px solid var(--rule); }
.arrive p:first-child { font-weight: 600; font-size: 15px; }
.arrive p:last-child { font-size: 17px; }
.arrive b { font-family: var(--mono); font-weight: 500; }
.sheet-in { background: var(--paper); padding: 14px 22px 18px; }
.your-days { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink2); margin-bottom: 6px; }
.book figcaption { padding: 12px 22px 16px; font-size: 14px; color: var(--ink2); border-top: 1px solid var(--rule); background: var(--card); }

/* Ledger tables: rows divided by rules, not cards */
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink2); padding: 6px 0; border-bottom: 2px solid var(--ink); }
.ledger td { padding: 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger td:first-child, .ledger th:first-child { width: 6.2em; }
.ledger .date { font-family: var(--mono); font-size: 13px; color: var(--ink2); white-space: nowrap; }
.ledger .n { font-family: var(--mono); text-align: right; white-space: nowrap; padding-left: 10px; }
.ledger th.n { font-family: var(--sans); }
.ledger .debit { color: var(--debit); }
.ledger tr.today td { background: var(--today); font-weight: 600; border-bottom: 2px solid var(--ink); }
.ledger tr.today .date { color: var(--ink); }
.ledger tr.over td { color: var(--debit); font-weight: 600; }
.ledger tr.soft td { border-bottom-style: dashed; }
.ledger .note td { font-size: 13px; color: var(--ink2); border-bottom: 0; padding: 10px 0 2px; }

/* Bands */
.band { border-top: 1px solid var(--rule); padding: 56px 0; }
.band h2 { font-size: clamp(26px, 3.6vw, 34px); max-width: 22ch; }
.band-lead { font-size: 18px; margin-top: 14px; max-width: 40em; }
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.rows { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.rows li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.rows b { display: block; font-weight: 600; }
.rows .mono { font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 20px 22px; }
.verdict { font-size: 26px; font-weight: 700; }
.verdict + p { margin-top: 6px; }
.card .ledger { margin-top: 16px; }
.ways { margin-top: 16px; display: grid; gap: 10px; }
.way { border: 1px solid var(--cover); border-radius: 4px; padding: 10px 14px; }
@media (prefers-color-scheme: dark) { .way { border-color: var(--action); } }
.way b { display: block; font-weight: 600; }
.way span { font-size: 15px; color: var(--ink2); }
.small { font-size: 15px; color: var(--ink2); margin-top: 16px; max-width: 44em; }

/* The border statement */
.statement { text-align: left; }
.statement .head { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink2); }
.statement .total { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 4px; }
.statement .total b { font-family: var(--mono); font-weight: 500; font-size: 64px; line-height: 1; }
.statement .total span { font-family: var(--mono); font-size: 15px; }
.statement .foot { font-size: 13px; color: var(--ink2); margin-top: 12px; }

/* Free and Pro */
.plans { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.plan ul { margin: 12px 0 0; padding: 0; list-style: none; }
.plan li { padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.plan li:last-child { border-bottom: 0; }
.plan.pro { border-color: var(--cover); }
@media (prefers-color-scheme: dark) { .plan.pro { border-color: var(--action); } }
.tag { font-family: var(--mono); font-size: 12px; font-weight: 500; background: var(--cover); color: var(--on-cover); padding: 2px 7px; border-radius: 3px; }

/* What it doesn't do */
.nots { list-style: none; margin: 24px 0 0; padding: 0; max-width: 46em; border-top: 2px solid var(--ink); }
.nots li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--rule); position: relative; }
.nots li::before { content: "—"; position: absolute; left: 0; color: var(--debit); font-family: var(--mono); }

/* Guides */
.guide-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--ink); max-width: 46em; }
.guide-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 600; }
.guide-list a span { display: block; font-weight: 400; font-size: 15px; color: var(--ink2); }
.guide-list a:hover { text-decoration: underline; }

.closing .badge { margin-top: 24px; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 32px 0 48px; font-size: 14px; color: var(--ink2); }
.site-foot p + p { margin-top: 8px; }
.langs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 16px; }
.langs a { display: inline-flex; align-items: center; min-height: 44px; }
.langs a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; }

.lost { padding: 80px 0; }
.lost h1 { font-size: 36px; }
.lost .lead { margin: 12px 0 20px; font-size: 18px; }

@media (max-width: 420px) {
  .ledger { font-size: 13px; }
  .ledger td:first-child, .ledger th:first-child { width: 5.6em; }
  .cover, .arrive, .sheet-in, .book figcaption { padding-left: 16px; padding-right: 16px; }
  .head-nav a { padding: 0 10px; }
}
