/* Layout: one narrow column that mirrors the app screen — bold mono wordmark, the live meter panel with its pill button, then plain iOS-style reading text. Shared by the home and privacy pages. */
:root {
  --bg: #FFFFFF;
  --surface: #F2F2F7;
  --fg: #111111;
  --muted: #6E6E73;
  --rule: #E5E5EA;
  --btn-bg: #000000;
  --btn-fg: #FFFFFF;
  --danger: #E5332A;
  --link: #0A6FE0;
  --panel: #171511;
  --panel-edge: #2A2721;
  --digit: #F7A823;
  --digit-dim: #9C7424;
  --font-mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, monospace;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #1C1C1E; --fg: #F2F2F2; --muted: #98989F;
    --rule: #2C2C2E; --btn-bg: #F2F2F2; --btn-fg: #000000; --danger: #FF5A50;
    --link: #3D9BFF; --panel: #171511; --panel-edge: #3A362E;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1C1C1E; --fg: #F2F2F2; --muted: #98989F;
  --rule: #2C2C2E; --btn-bg: #F2F2F2; --btn-fg: #000000; --danger: #FF5A50;
  --link: #3D9BFF; --panel: #171511; --panel-edge: #3A362E;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding-inline: 20px;
  padding-block: 1.75rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

a { color: var(--link); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

/* top */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
}
.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--step-2);
  letter-spacing: .02em;
  color: var(--fg);
  text-decoration: none;
}
.top nav { display: flex; gap: 1.25rem; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.top nav a:hover, .top nav a:focus-visible, .top nav a[aria-current="page"] { color: var(--fg); }

/* hero */
.hero { display: flex; flex-direction: column; gap: 1.25rem; }
.hero h1 {
  font-size: var(--step-3);
  line-height: 1.12;
  margin: 0;
  font-weight: 700;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.hero > p { margin: 0 0 .5rem; color: var(--muted); max-width: 34rem; font-size: var(--step-1); }

.demo { display: flex; flex-direction: column; gap: .9rem; max-width: 30rem; width: 100%; }
.panel {
  background: var(--panel);
  border: 1.5px solid var(--panel-edge);
  border-radius: 22px;
  padding: 1.35rem 1.5rem 1.6rem;
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.panel .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--digit-dim);
  font-size: 1.05rem;
  padding-inline: .9rem 0;
  font-variant-numeric: tabular-nums;
}
.panel .amount {
  color: var(--digit);
  font-size: clamp(3.2rem, 15vw, 4.6rem);
  line-height: 1.05;
  font-weight: 500;
  font-variant-numeric: tabular-nums slashed-zero;
  font-feature-settings: "zero" 1, "tnum" 1;
}
.btn-done {
  font: inherit;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 0;
  border-radius: 999px;
  padding: 1rem 1.5rem;
  cursor: pointer;
  width: 100%;
}
.btn-done:active { transform: scale(.985); }
.btn-discard {
  font: inherit;
  font-size: 1.05rem;
  color: var(--danger);
  background: none;
  border: 0;
  padding: .25rem;
  cursor: pointer;
  align-self: center;
}
.banked {
  color: var(--muted);
  font-size: .95rem;
  text-align: center;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.demo-note { color: var(--muted); font-size: .8rem; text-align: center; margin: 0; }

/* sections */
section.doc {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  scroll-margin-top: calc(1rem + env(safe-area-inset-top, 0px));
}
section.doc.ruled { border-top: 1px solid var(--rule); padding-top: 2rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
section.doc h1 { font-size: var(--step-3); margin: 0; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
section.doc h2 { font-size: var(--step-2); margin: 0; line-height: 1.2; text-wrap: balance; }
.meta { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); margin: 0; }
.summary {
  background: var(--surface);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 0;
}
.summary strong { display: block; margin-bottom: .25rem; }
.doc h3 { font-size: var(--step-1); margin: .75rem 0 0; }
.doc p, .doc ul { margin: 0; max-width: 65ch; }
.doc ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .35rem; }

.contact { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.contact code {
  font-family: var(--font-mono);
  font-size: 1rem;
  background: var(--surface);
  border-radius: 8px;
  padding: .4rem .7rem;
  user-select: all;
}
.contact button {
  font: inherit;
  font-size: .9rem;
  color: var(--link);
  background: none;
  border: 0;
  padding: .4rem .25rem;
  cursor: pointer;
}

.faq { display: flex; flex-direction: column; gap: 1rem; margin: 0; }
.faq div { display: flex; flex-direction: column; gap: .25rem; }
.faq dt { font-weight: 700; }
.faq dd { margin: 0; max-width: 65ch; }

footer {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  color: var(--muted);
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1rem;
}
footer a { color: var(--muted); }
