/* Ledgerra site, on the Revzio design system v0.1.
   Rail #04342C, primary #0F6E56, money at risk #E8A23A, escalation #A12A1F, money out #2E4A80.
   Nunito Sans for text, IBM Plex Mono for labels. */
:root {
  --rail: #04342c;
  --rail-text: #e1f5ee;
  --mint: #9fe1cb;
  --mint-strong: #1d9e75;
  --primary: #0f6e56;
  --primary-hover: #0b5a46;
  --page: #f3f7f5;
  --card: #ffffff;
  --border: #dce7e2;
  --border-strong: #cfddd7;
  --ink: #04342c;
  --ink-2: #2f4a44;
  --muted: #4e6660;
  --quiet: #5f756f;
  --risk-bg: #fff1dc;
  --risk-text: #8a4b00;
  --ok-bg: #e1f5ee;
  --ok-text: #0f6e56;
  --sans: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --measure: 70ch;
  --gutter: 24px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

a { color: var(--primary-hover); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--mint-strong); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header: the Revzio rail, laid horizontally */
.site-header { background: var(--rail); color: var(--rail-text); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-name { font-size: 23px; font-weight: 600; letter-spacing: -0.3px; color: var(--mint); line-height: 1; }
.site-nav { display: flex; gap: 22px; font-size: 14.5px; font-weight: 600; }
.site-nav a { color: var(--rail-text); opacity: 0.82; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--mint); }

/* Labels, Revzio style */
.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-hover);
  margin: 0 0 10px;
}

/* Hero */
.hero { padding: 64px 0 32px; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(36px, 5.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.8px;
  margin: 0 0 18px;
  max-width: 16ch;
}
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 54ch; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.button {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
}
.button:hover { background: var(--primary-hover); text-decoration: none; }
.text-link { font-weight: 600; }

/* The example checks, as a Revzio card */
.sheet-section { padding: 8px 0 72px; }
.sheet {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px 18px;
}
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 12px; }
.sheet-head h2 { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink-2); }
.sheet-head p { margin: 0; font-size: 13px; color: var(--quiet); }
.sheet table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sheet th {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.sheet th:first-child, .sheet td:first-child { text-align: left; padding-left: 0; }
.sheet th:last-child, .sheet td:last-child { padding-right: 0; }
.sheet td { padding: 12px 12px 2px; text-align: right; vertical-align: top; }
.sheet td:first-child { font-weight: 700; }
.sheet tr.note td {
  padding: 2px 0 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}
.sheet tbody tr.note:last-child td { border-bottom: 0; }
.sheet .none { color: var(--quiet); }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.chip-risk { background: var(--risk-bg); color: var(--risk-text); }
.chip-ok { background: var(--ok-bg); color: var(--ok-text); }
.sheet-total {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-weight: 700;
  color: var(--ink-2);
}

/* Sections */
.section { padding: 56px 0; border-top: 1px solid var(--border); }
.section h2 {
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin: 0 0 24px;
}
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.card h3 { font-size: 17px; font-weight: 800; margin: 0 0 6px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.status {
  display: inline-flex;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e8edf7;
  color: #2e4a80;
  font-size: 12px;
  font-weight: 700;
  vertical-align: 2px;
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--primary-hover);
  margin-bottom: 8px;
}
.steps h3 { font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.facts div { padding: 18px 20px; border-top: 1px solid var(--border); }
.facts div:nth-child(-n + 2) { border-top: 0; }
.facts div:nth-child(odd) { border-right: 1px solid var(--border); }
.facts dt { font-weight: 800; font-size: 16px; margin: 0 0 4px; }
.facts dd { margin: 0; color: var(--muted); font-size: 15px; }
.section .more { margin: 20px 0 0; font-weight: 600; }

.beta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.beta h2 { margin-bottom: 8px; }
.beta p { max-width: 58ch; margin: 0; color: var(--muted); font-size: 17px; }

/* Long-form pages */
.doc { padding: 48px 0 80px; }
.doc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 44px;
  max-width: 820px;
}
.doc-card > * { max-width: var(--measure); }
.doc h1 { font-weight: 800; font-size: clamp(30px, 4.4vw, 40px); line-height: 1.15; letter-spacing: -0.5px; margin: 0 0 6px; }
.doc .updated { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-weight: 800; font-size: 20px; line-height: 1.3; letter-spacing: -0.2px; margin: 36px 0 10px; }
.doc h3 { font-size: 16px; font-weight: 800; margin: 22px 0 6px; color: var(--ink-2); }
.doc p, .doc li { margin: 0 0 12px; color: var(--ink-2); }
.doc ul { padding-left: 22px; margin: 0 0 12px; }
.doc strong { color: var(--ink); }
.doc table { border-collapse: collapse; width: 100%; margin: 8px 0 18px; font-size: 14.5px; }
.doc th, .doc td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--ink-2); }
.doc th { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.doc .callout { background: var(--ok-bg); border-radius: 12px; padding: 14px 16px; color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 44px; font-size: 13.5px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); }

/* Tablet and phone */
@media (max-width: 860px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0 !important; }
  .facts div:nth-child(2) { border-top: 1px solid var(--border); }
}

@media (max-width: 640px) {
  .site-nav { gap: 16px; font-size: 14px; }
  .site-nav .optional { display: none; }
  .brand-name { font-size: 21px; }
  .hero { padding: 44px 0 24px; }
  .lede { font-size: 17px; }
  .sheet { padding: 16px; }
  .sheet thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sheet table, .sheet tbody, .sheet tr, .sheet td { display: block; width: 100%; }
  .sheet tr.item { padding-top: 10px; }
  .sheet tr.item td { padding: 3px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .sheet tr.item td::before { content: attr(data-label); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
  .sheet tr.item td:first-child { padding-bottom: 6px; }
  .sheet tr.item td:first-child::before { content: none; }
  .sheet tr.note td { padding: 6px 0 12px; }
  .section { padding: 44px 0; }
  .section h2 { font-size: 24px; }
  .doc { padding: 24px 0 56px; }
  .doc-card { padding: 24px 20px; border-radius: 12px; }
}
