/* CivicVault public site + member portal — dark charcoal / midnight, emerald accents */
:root {
  --bg: #0a0d10;
  --bg-2: #0d1116;
  --panel: #10151b;
  --panel-2: #131a21;
  --line: #1c242e;
  --text: #e8ecef;
  --muted: #8b98a5;
  --dim: #5d6b78;
  --emerald: #1fa987;
  --teal: #14b8a6;
  --amber: #fbbf24;
  --red: #f87171;
  --accent-soft: rgba(45, 212, 167, .12);
  --radius: 12px;
  --font: Inter, "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
ul.check { list-style: none; }
ul.check li { padding: 5px 0 5px 26px; position: relative; }
ul.check li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); opacity: .8; }

/* ── header/nav ─────────────────────────────────────────── */
header.site { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(10px); background: rgba(10,13,16,.85); border-bottom: 1px solid var(--line); }
.nav { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: .01em; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.logo b { color: var(--emerald); font-weight: 700; }
.nav nav { display: flex; gap: 20px; margin-left: 12px; }
.nav nav a { color: var(--muted); font-size: 14px; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.nav .grow { flex: 1; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 14px; padding: 9px 18px; cursor: pointer; transition: border-color .15s, background .15s; }
.btn:hover { border-color: #2a3642; }
.btn.primary { background: var(--emerald); border-color: var(--emerald); color: #05221a; font-weight: 600; }
.btn.primary:hover { background: #24c79e; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.small { padding: 6px 12px; font-size: 13px; }
#navToggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; font-size: 18px; padding: 4px 12px; cursor: pointer; }
@media (max-width: 860px) {
  .nav nav { display: none; position: absolute; top: 58px; left: 0; right: 0; background: var(--bg-2); flex-direction: column; padding: 14px 20px; gap: 12px; border-bottom: 1px solid var(--line); }
  .nav nav.open { display: flex; }
  #navToggle { display: block; }
  .nav .desktop-cta { display: none; }
}

/* ── sections ───────────────────────────────────────────── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.tight { padding: 44px 0; }
.section h2 { font-size: 26px; letter-spacing: -.01em; margin-bottom: 10px; }
.section .lead { color: var(--muted); max-width: 640px; }
.eyebrow { color: var(--emerald); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.center { text-align: center; } .center .lead { margin: 0 auto; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .g3, .g2 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 17px; margin: 12px 0 8px; }
.card p { color: var(--muted); font-size: 14px; }
.card .ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); }
.card .ico svg { width: 20px; height: 20px; }

/* ── hero ───────────────────────────────────────────────── */
.hero { padding: 92px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 320px at 18% 0%, rgba(45,212,167,.09), transparent 60%), radial-gradient(700px 380px at 85% 20%, rgba(20,184,166,.06), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(30px, 5.2vw, 46px); line-height: 1.15; letter-spacing: -.02em; max-width: 720px; }
.hero h1 span { color: var(--emerald); }
.hero p.sub { color: var(--muted); font-size: 17px; max-width: 620px; margin: 18px 0 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .trustline { margin-top: 26px; color: var(--dim); font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero .trustline b { color: var(--muted); font-weight: 600; }

/* ── faq ────────────────────────────────────────────────── */
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; background: var(--panel); margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; color: var(--emerald); font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; font-size: 14px; }

/* ── forms ──────────────────────────────────────────────── */
form.cvf { display: grid; gap: 14px; }
form.cvf button[type="submit"] { width: 100%; padding: 12px 18px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.consent input { width: 17px; height: 17px; accent-color: var(--emerald); margin-top: 2px; flex: none; }
.consent span { flex: 1; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.field label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 1px solid var(--teal); }
.field textarea { min-height: 90px; resize: vertical; }
.statusline { font-size: 13px; min-height: 18px; }
.statusline.ok { color: var(--emerald); }
.statusline.err { color: var(--red); }
.statusline.info { color: var(--muted); }
.auth-card { max-width: 460px; margin: 60px auto; }
.auth-card .card { display: grid; gap: 14px; padding: 28px; }

/* ── dashboards ─────────────────────────────────────────── */
.dash { display: grid; grid-template-columns: 210px 1fr; min-height: calc(100vh - 57px); }
.dash-side { background: var(--panel); border-right: 1px solid var(--line); padding: 18px 10px; display: flex; flex-direction: column; gap: 3px; }
.dash-side .logo { padding: 4px 10px 16px; font-size: 15px; }
.dash-side button { border: none; background: transparent; color: var(--muted); text-align: left; font: inherit; font-size: 14px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.dash-side button:hover { color: var(--text); }
.dash-side button.active { background: var(--accent-soft); color: var(--emerald); font-weight: 600; }
.dash-side .spacer { flex: 1; }
.dash-side .who { border-top: 1px solid var(--line); padding: 12px 10px; font-size: 12px; color: var(--dim); font-family: var(--mono); }
.dash-main { padding: 26px 30px; max-width: 980px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; }
.stat .v { font-size: 21px; font-weight: 700; }
.stat .l { color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; margin-top: 3px; }
.kv { display: grid; grid-template-columns: 170px 1fr; }
.kv > div { padding: 7px 0; border-bottom: 1px solid rgba(28,36,46,.55); }
.kv .k { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; padding-top: 10px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 10px; font-weight: 700; letter-spacing: .06em; background: rgba(255,255,255,.06); color: var(--muted); }
.badge.good { background: rgba(45,212,167,.14); color: var(--emerald); }
.badge.warn { background: rgba(251,191,36,.14); color: var(--amber); }
.badge.bad { background: rgba(248,113,113,.14); color: var(--red); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding: 9px 10px; border-bottom: 1px solid var(--line); }
td { padding: 8px 10px; border-bottom: 1px solid rgba(28,36,46,.55); font-size: 14px; }
tr:last-child td { border-bottom: none; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } .dash-side { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--line); } .dash-side .spacer { display: none; } }

/* ── footer ─────────────────────────────────────────────── */
footer.site { border-top: 1px solid var(--line); padding: 40px 0 30px; margin-top: 40px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 22px; }
footer.site h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--dim); margin-bottom: 10px; }
footer.site a { display: block; color: var(--muted); font-size: 13px; padding: 3px 0; }
footer.site a:hover { color: var(--text); text-decoration: none; }
footer.site .fine { margin-top: 28px; color: var(--dim); font-size: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 800px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }

.note { background: var(--accent-soft); border: 1px solid rgba(45,212,167,.25); color: var(--text); border-radius: 10px; padding: 12px 16px; font-size: 13px; }
.note.warn { background: rgba(251,191,36,.07); border-color: rgba(251,191,36,.25); }
.note b { color: var(--emerald); } .note.warn b { color: var(--amber); }
.hidden { display: none !important; }
.success-screen { min-height: calc(100vh - 260px); display: grid; place-items: center; }
.success-card { text-align: center; max-width: 520px; padding: 44px 38px; }
.success-card .ok-ico { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); }
.success-card .ok-ico svg { width: 30px; height: 30px; }
.success-card h2 { margin-bottom: 8px; }
.success-card .mono-id { font-family: var(--mono); font-size: 18px; color: var(--emerald); letter-spacing: .04em; }
.success-card ol { text-align: left; color: var(--muted); font-size: 14px; margin: 18px 0 8px 20px; }
.success-card ol li { padding: 4px 0; }