/* The app's Material 3 scheme (mockups/src/android.css), with a matching dark scheme. */
:root {
  --primary: #0b6b58;
  --on-primary: #ffffff;
  --primary-container: #cdebe1;
  --on-primary-container: #00201a;
  --surface: #fafcfa;
  --surface-low: #f1f5f2;
  --surface-container: #eaefec;
  --on-surface: #171d1b;
  --on-surface-variant: #46504c;
  --outline-variant: #d5dcd8;
  --hero: var(--primary);
  --on-hero: var(--on-primary);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #84d6bd;
    --on-primary: #00382d;
    --primary-container: #005143;
    --on-primary-container: #a0f2d8;
    --surface: #0f1513;
    --surface-low: #171d1b;
    --surface-container: #1b2220;
    --on-surface: #dee4e1;
    --on-surface-variant: #bfc9c4;
    --outline-variant: #3f4945;
    --hero: var(--primary-container);
    --on-hero: var(--on-primary-container);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font: 400 16px/24px Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 44rem; margin: 0 auto; padding-inline: 16px; }

/* Top app bar */
.bar { border-bottom: 1px solid var(--outline-variant); }
.bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-surface); text-decoration: none; font-size: 22px; line-height: 28px; }
.brand svg { width: 32px; height: 32px; flex: none; }
nav { display: flex; align-self: stretch; margin-right: -12px; }
nav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 12px; position: relative;
  font-weight: 500; font-size: 14px; color: var(--on-surface-variant); text-decoration: none;
}
nav a:hover { color: var(--on-surface); }
nav a[aria-current] { color: var(--primary); }
nav a[aria-current]::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--primary);
}

/* Text */
main { padding-block: 24px 48px; }
h1 { font-size: 32px; line-height: 40px; font-weight: 400; margin: 8px 0; }
h2 { font-size: 22px; line-height: 28px; font-weight: 400; margin: 40px 0 8px; }
h3 { font-size: 16px; line-height: 24px; font-weight: 500; margin: 24px 0 4px; }
p, ul { margin: 0 0 12px; }
ul { padding-left: 20px; }
li { margin-bottom: 6px; }
a { color: var(--primary); text-underline-offset: 2px; }
.label { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .4px; color: var(--on-surface-variant); margin: 0 0 4px; }
.muted { color: var(--on-surface-variant); }
.summary { background: var(--surface-low); border-radius: 16px; padding: 16px 20px; margin: 16px 0 8px; }
.summary > :last-child { margin-bottom: 0; }

/* Summary card, like the ledger's totals card */
.hero { background: var(--hero); color: var(--on-hero); border-radius: 16px; padding: 20px; margin-top: 8px; }
.hero p { margin: 0; }
.hero .label { color: inherit; opacity: .78; }
.hero .split { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.hero .split > div { flex: 1 1 12rem; }
.hero .split .label + p { font-weight: 500; }
.hero .examples { opacity: .78; font-size: 14px; line-height: 20px; margin-top: 4px; }

/* App screenshots */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 15rem)); justify-content: center; gap: 42px; margin-top: 24px; }
.shots img { display: block; width: 100%; height: auto; border-radius: 24px; border: 1px solid var(--outline-variant); }

/* List rows, like the ledger's entries */
.rows { list-style: none; padding: 0; margin: 0 0 12px; }
.rows li { display: flex; align-items: center; gap: 16px; padding-block: 10px; margin: 0; }
.rows .icon {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface-container); color: var(--on-surface-variant);
}
.rows .icon svg { width: 22px; height: 22px; fill: currentColor; }
.rows .text { flex: 1; min-width: 0; }
.rows .text p { margin: 0; }
.rows .text p + p { color: var(--on-surface-variant); font-size: 14px; line-height: 20px; }
.rows .amount { font-weight: 500; white-space: nowrap; }

footer { border-top: 1px solid var(--outline-variant); padding-block: 16px 32px; color: var(--on-surface-variant); font-size: 14px; line-height: 20px; }
footer p { margin: 0; }
footer a { color: inherit; }
.brand .mark { fill: var(--primary); }
.brand .glyph { fill: var(--on-primary); }
