/* The Echo root site's one stylesheet (root-site.ts). The pages are plain text pages, served without
   the portal's bundle, so the design tokens they use are copied here from packages/ui/src/tokens.css
   (the same values, light and dark), as the receipt and statement pages do. Everything below the
   token block is by role only: no colour of its own. */
:root {
  color-scheme: light dark;
  --bg: #ffffff; --bg-2: #fbfbfc; --card: #ffffff; --line: #e5e6e9;
  --ink: #0c0d0f; --ink-2: #3f454f; --muted: #5b626c;
  --accent: #0d7a70; --accent-ink: #0a655d; --accent-soft: #e4f3f0; --accent-line: #b5ddd6;
  --radius: 10px; --radius-l: 16px;
  --sans: "Inter Variable", Inter, -apple-system, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0b0d; --bg-2: #0d0f12; --card: #121418; --line: #23272e;
    --ink: #eceef0; --ink-2: #c3c8d0; --muted: #969ca6;
    --accent: #7bcbb6; --accent-ink: #9bdccb; --accent-soft: #11302a; --accent-line: #1f5449;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* header */
.hero { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.hero-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { color: var(--accent-ink); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav a { color: var(--ink-2); text-decoration: none; padding: 6px 0; min-height: 36px; display: inline-flex; align-items: center; }
nav a:hover { color: var(--accent-ink); }

/* body */
main { padding: 28px 20px 48px; }
h1 { font-size: 30px; line-height: 1.2; font-weight: 650; letter-spacing: -0.015em; margin: 0 0 12px; }
h2 { font-size: 19px; line-height: 1.3; font-weight: 650; margin: 28px 0 8px; }
p, li { color: var(--ink); }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 22px; }
li { margin: 4px 0; }
a { color: var(--accent-ink); }
.lead { font-size: 18px; color: var(--ink-2); }
.muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 14px 16px; margin: 12px 0; }
.card p:last-child { margin-bottom: 0; }
strong { font-weight: 650; }

/* footer */
footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 20px 0 28px; font-size: 14px; }
footer nav { margin-bottom: 8px; }
footer .muted { margin: 0; }

@media (max-width: 480px) {
  h1 { font-size: 26px; }
  main { padding-top: 20px; }
}
