/* Deliberately small: pages must load fast on low-end phones on prepaid data (ADR 0007). */
:root {
    --bg: #f8fafc;
    --fg: #0f172a;
    --muted: #64748b;
    --card: #ffffff;
    --border: #e2e8f0;
    --accent: #0f766e;
    --on-accent: #ffffff;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b1220;
        --fg: #e2e8f0;
        --muted: #94a3b8;
        --card: #111a2e;
        --border: #1e293b;
        --accent: #2dd4bf;
        --on-accent: #042f2e;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--fg);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.brand { font-weight: 700; color: var(--accent); text-decoration: none; }
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }
.page { max-width: 640px; margin: 0 auto; padding: 16px; }
.hero h1 { font-size: 1.5rem; line-height: 1.25; margin: 8px 0; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin: 16px 0; }
.card h2 { margin-top: 0; font-size: 1.1rem; }
.muted { color: var(--muted); }
.footer { max-width: 640px; margin: 24px auto; padding: 0 16px; font-size: 13px; color: var(--muted); }
.small { font-size: 13px; }
.button {
    display: inline-block;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: var(--on-accent);
    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.link-button { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.balance .amount { font-size: 2.25rem; font-weight: 700; margin: 0; }
.balance p { margin: 4px 0; }
a.tag { text-decoration: none; }
.doc h1 { font-size: 1.5rem; margin-bottom: 4px; }
.doc h2 { font-size: 1.1rem; margin-top: 24px; }
.doc li { margin: 6px 0; }
a { color: var(--accent); }
.footer-links { margin-top: 8px; }
.wall { width: 100%; height: 75vh; min-height: 480px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.form label { display: block; margin: 12px 0 4px; font-weight: 600; }
.form input, .form select, .form textarea {
    width: 100%; padding: 10px; font: inherit; color: var(--fg); background: var(--bg);
    border: 1px solid var(--border); border-radius: 8px;
}
.form .button { margin-top: 16px; }
.errors ul { margin: 0 0 8px; padding-left: 20px; color: #dc2626; }
.notice { padding: 12px; border-radius: 10px; border: 1px solid var(--accent); }
.claim { padding: 8px 0; border-top: 1px solid var(--border); }
.claim:first-of-type { border-top: 0; }
