/* ===========================================================
   CivSaver — Version 1 "Executive Dark"
   Dark navy / teal theme, direct translation of the pitch deck
   =========================================================== */

:root {
  --bg:            #0a1420;
  --bg-alt:        #0d1c2b;
  --card:          #131f30;
  --card-border:   rgba(45, 212, 167, 0.16);
  --card-border-hover: rgba(45, 212, 167, 0.35);
  --accent:        #2dd4a7;
  --accent-strong: #10b981;
  --accent-soft:   rgba(45, 212, 167, 0.12);
  --danger:        #f87171;
  --danger-soft:   rgba(248, 113, 113, 0.12);
  --text:          #e8eef5;
  --text-muted:    #93a4b8;
  --text-faint:    #5c6c80;
  --border:        rgba(255, 255, 255, 0.08);
  --radius:        14px;
  --radius-sm:     8px;
  --shadow:        0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --max:           1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
@media (max-width: 720px) {
  section { padding: 56px 0; }
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; color: var(--text-muted); }
.lede { font-size: 1.15rem; color: var(--text); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.pill {
  background: var(--accent-soft);
  border: 1px solid var(--card-border);
  padding: 7px 16px;
  border-radius: 999px;
}
.eyebrow.pill::before { display: none; }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin-top: 10px; color: #fff; }
.text-accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #05130f;
}
.btn-primary:hover { box-shadow: 0 10px 30px -10px rgba(45, 212, 167, 0.55); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 20, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo-badge {
  background: #f4f8fb;
  border-radius: 10px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 16px -6px rgba(0,0,0,0.5);
}
.logo-badge img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 8px 12px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 96px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 980px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: center; }
}
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 34px; }
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.hero-badge svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  background: var(--card);
}
.hero-visual .top-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.hero-visual img { width: 100%; height: 260px; object-fit: cover; }
.hero-visual-body { padding: 22px 24px 26px; }
.hero-visual-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-visual-body p { color: var(--text); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.hero-stats .stat-num { font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.hero-stats .stat-label { font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

/* ---------- Cards / grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
}
.card-accent-left {
  border-left: 3px solid var(--accent);
}
.cause-card .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); display: inline-block; margin-right: 10px;
}
.cause-card h4 { font-size: 1rem; color: #fff; margin-bottom: 4px; }
.cause-card p { font-size: 0.92rem; }

/* ---------- Process steps ---------- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: stretch;
  position: relative;
}
@media (max-width: 900px) {
  .steps-row { grid-template-columns: 1fr; gap: 22px; }
}
.step-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  margin-right: 22px;
}
.steps-row .step-card:last-child { margin-right: 0; }
.step-num-badge {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--card-border);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 18px;
}
.step-ghost-num {
  position: absolute;
  top: 14px; right: 20px;
  font-size: 3.2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.03);
  line-height: 1;
}
.step-card h3 { color: #fff; margin-bottom: 10px; }
.step-card h3 span { color: var(--accent); }
.step-arrow {
  display: none;
}
@media (min-width: 901px) {
  .step-arrow {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 50%; transform: translate(-11px, -50%);
    width: 22px; height: 22px; color: var(--accent); z-index: 2;
  }
}

/* ---------- Table mockup ---------- */
.mockup-window {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mockup-titlebar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-faint);
}
.mockup-titlebar .dots { display: flex; gap: 6px; }
.mockup-titlebar .dots span { width: 10px; height: 10px; border-radius: 50%; }
.dots span:nth-child(1) { background: #f87171; }
.dots span:nth-child(2) { background: #fbbf24; }
.dots span:nth-child(3) { background: #34d399; }
.mockup-body { padding: 22px 18px 26px; }
.mockup-head-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 10px; margin-bottom: 16px;
}
.mockup-head-row h4 { color: #fff; font-size: 1rem; margin-bottom: 3px; }
.mockup-head-row .sub { font-size: 0.85rem; color: var(--text-faint); }
.anomaly-flag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--danger-soft); color: var(--danger);
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: 999px; padding: 5px 12px; font-size: 0.78rem; font-weight: 700;
}
.audit-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; table-layout: fixed; }
.audit-table th {
  text-align: left; padding: 8px 6px; font-size: 0.66rem;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint);
  border-bottom: 1px solid var(--border);
}
.audit-table td { padding: 9px 6px; border-bottom: 1px solid var(--border); color: var(--text); }
.audit-table th:nth-child(1), .audit-table td:nth-child(1) { width: 13%; white-space: nowrap; }
.audit-table th:nth-child(2), .audit-table td:nth-child(2) { width: 23%; word-break: break-word; }
.audit-table th:nth-child(3), .audit-table td:nth-child(3) { width: 17%; white-space: nowrap; }
.audit-table th:nth-child(4), .audit-table td:nth-child(4) { width: 14%; white-space: nowrap; }
.audit-table th:nth-child(5), .audit-table td:nth-child(5) { width: 14%; white-space: nowrap; }
.audit-table th:nth-child(6), .audit-table td:nth-child(6) { width: 19%; white-space: nowrap; }
.audit-table tr.flag-row td { color: var(--danger); }
.status-pill { display: inline-block; white-space: nowrap; padding: 3px 7px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; }
.status-active { background: rgba(52,211,153,0.12); color: #34d399; }
.status-flag { background: var(--danger-soft); color: var(--danger); }
.audit-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding: 14px 16px;
  background: var(--danger-soft); border: 1px solid rgba(248,113,113,0.25);
  border-radius: var(--radius-sm); font-weight: 700; color: var(--danger);
}
.audit-table-scroll { overflow-x: auto; }
.mockup-footnote { font-size: 0.75rem; color: var(--text-faint); margin-top: 10px; font-style: italic; }

/* ---------- Comparison (legacy vs modern) ---------- */
.compare-wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
@media (max-width: 780px) { .compare-wrap { grid-template-columns: 1fr; } }
.compare-col { text-align: center; }
.compare-col img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  margin-bottom: 12px;
}
.compare-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 10px; display: inline-block;
}
.compare-label.old { color: var(--danger); }
.compare-label.new { color: var(--accent); }
.compare-vs {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-alt); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--text-faint); margin: 0 auto;
}
.compare-caption { font-size: 0.88rem; color: var(--text-muted); margin-top: 8px; }

/* ---------- Stat tiles ---------- */
.stat-tile {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-sm); padding: 18px 20px; text-align: left;
}
.stat-tile .num { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.stat-tile .label { font-size: 0.75rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }

/* ---------- Checklist pills ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pill-check {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); border: 1px solid var(--card-border);
  color: var(--text); border-radius: 999px; padding: 9px 16px; font-size: 0.88rem; font-weight: 600;
}
.pill-check svg { width: 14px; height: 14px; color: var(--accent); }

/* ---------- Photo card w/ caption ---------- */
.photo-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); box-shadow: var(--shadow); }
.photo-card img { width: 100%; height: 340px; object-fit: cover; }
.photo-caption {
  background: var(--card); padding: 16px 20px; font-size: 0.88rem; color: var(--text-muted);
  display: flex; gap: 10px; align-items: flex-start;
}
.photo-caption strong { color: #fff; }
.avatar-dot {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-soft); border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}

/* ---------- Benefits list ---------- */
.benefit-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.benefit-item:last-child { border-bottom: none; }
.benefit-check {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: var(--accent-soft); border: 1px solid var(--card-border);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
}
.benefit-item h4 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.benefit-item h4 span { color: var(--accent); }
.benefit-item p { font-size: 0.92rem; }

/* ---------- Recovery flow (how it works) ---------- */
.flow-list { display: flex; flex-direction: column; gap: 0; }
.flow-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-sm); padding: 20px 22px; position: relative;
}
.flow-item + .flow-item { margin-top: 26px; }
.flow-item + .flow-item::before {
  content: ""; position: absolute; top: -26px; left: 32px;
  width: 1px; height: 26px; background: var(--border);
}
.flow-item.recovered { background: rgba(45,212,167,0.08); border-color: var(--card-border-hover); }
.flow-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.flow-text { flex: 1; }
.flow-text h4 { color: #fff; font-size: 0.98rem; margin-bottom: 3px; }
.flow-text p { font-size: 0.86rem; }
.flow-badge {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.flow-badge.gap { background: var(--danger-soft); color: var(--danger); }
.flow-badge.recovered-badge { background: rgba(45,212,167,0.16); color: var(--accent); }

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(45,212,167,0.12), transparent 60%), var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-banner .icon-circle {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 24px;
  border: 1px solid var(--card-border); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.cta-banner h2 { color: #fff; max-width: 720px; margin: 0 auto; }
.cta-banner p.lede { max-width: 620px; margin: 20px auto 34px; }
.cta-card {
  display: inline-block; margin: 0 auto 30px;
  background: var(--card); border: 1px solid var(--card-border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius); padding: 22px 40px;
}
.cta-card strong { display: block; color: #fff; font-size: 1.05rem; }
.cta-card span { font-size: 0.78rem; color: var(--text-faint); letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { padding: 50px 0 34px; border-top: 1px solid var(--border); }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 30px; margin-bottom: 30px;
}
.footer-links { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-faint);
}
.footer-tag { font-size: 0.82rem; color: var(--text-faint); margin-top: 6px; }

/* ---------- Page header (interior pages) ---------- */
.page-header { padding: 64px 0 20px; text-align: left; }
.page-header .eyebrow { margin-bottom: 16px; }
.page-header h1 { color: #fff; }
.page-header p { margin-top: 16px; max-width: 640px; font-size: 1.05rem; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 0.92rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.78rem; color: var(--text-faint); margin-top: 14px; }

.info-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.info-card h3 { color: #fff; margin-bottom: 14px; }
.info-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.info-row:last-child { margin-bottom: 0; }
.info-row .ic { width: 34px; height: 34px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-row strong { display: block; color: #fff; font-size: 0.92rem; }
.info-row span { font-size: 0.86rem; color: var(--text-muted); }

.mini-steps { list-style: none; margin: 0; padding: 0; }
.mini-steps li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; color: var(--text-muted); }
.mini-steps li:last-child { border-bottom: none; }
.mini-steps .n { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 16px 24px 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 0; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }
