/* ============================================================
   CivicPulse — Design System v1.0
   Fonts: Playfair Display (headings) + DM Sans (body) + DM Mono (labels)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  /* Core palette */
  --navy:      #0D1B2A;
  --ink:       #1C2E40;
  --slate:     #2E4057;
  --steel:     #4A6274;
  --mist:      #7A94A6;
  --silver:    #C4D4DE;
  --fog:       #EDF2F5;
  --white:     #FAFCFD;

  /* Semantic */
  --accent:    #E03A1E;   /* action red */
  --accent-dk: #B82E16;
  --blue:      #1A6FA8;
  --blue-dk:   #125380;
  --blue-lt:   #E8F3FB;
  --green:     #1A7A50;
  --green-lt:  #E6F5EE;
  --amber:     #B86018;
  --amber-lt:  #FBF1E6;
  --red:       #C0392B;
  --red-lt:    #FDECEA;
  --purple:    #5E3A8A;
  --purple-lt: #F1ECF9;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Spacing scale */
  --sp-4:  4px;  --sp-8:  8px;  --sp-12: 12px; --sp-16: 16px;
  --sp-20: 20px; --sp-24: 24px; --sp-32: 32px; --sp-40: 40px;
  --sp-48: 48px; --sp-64: 64px; --sp-80: 80px;

  /* Shape */
  --r:    6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(13,27,42,.07), 0 1px 2px rgba(13,27,42,.05);
  --shadow:    0 3px 12px rgba(13,27,42,.09), 0 1px 4px rgba(13,27,42,.06);
  --shadow-md: 0 8px 28px rgba(13,27,42,.13), 0 2px 8px rgba(13,27,42,.07);
  --shadow-lg: 0 20px 60px rgba(13,27,42,.22), 0 4px 16px rgba(13,27,42,.1);

  /* Transitions */
  --transition: .18s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
button { font-family: var(--font-body); cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--navy);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }
p  { color: var(--slate); font-size: .975rem; line-height: 1.7; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 500;
  color: var(--accent);
  letter-spacing: .14em;
  text-transform: uppercase;
  display: block; margin-bottom: var(--sp-8);
}
.lead { font-size: 1.1rem; line-height: 1.75; color: var(--slate); }

/* ── Layout ──────────────────────────────────────────────── */
.container    { max-width: 1120px; margin: 0 auto; padding: 0 var(--sp-24); }
.container-sm { max-width:  760px; margin: 0 auto; padding: 0 var(--sp-24); }
.container-md { max-width:  940px; margin: 0 auto; padding: 0 var(--sp-24); }

.section { padding: var(--sp-80) 0; }
.section-sm { padding: var(--sp-48) 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-24); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-20); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-20); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-20); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8  { gap: var(--sp-8);  }
.gap-12 { gap: var(--sp-12); }
.gap-16 { gap: var(--sp-16); }
.gap-24 { gap: var(--sp-24); }
.flex-wrap { flex-wrap: wrap; }

/* ── Spacing utilities ───────────────────────────────────── */
.mt-4  { margin-top: var(--sp-4);  } .mt-8  { margin-top: var(--sp-8);  }
.mt-12 { margin-top: var(--sp-12); } .mt-16 { margin-top: var(--sp-16); }
.mt-24 { margin-top: var(--sp-24); } .mt-32 { margin-top: var(--sp-32); }
.mt-40 { margin-top: var(--sp-40); }
.mb-4  { margin-bottom: var(--sp-4);  } .mb-8  { margin-bottom: var(--sp-8);  }
.mb-12 { margin-bottom: var(--sp-12); } .mb-16 { margin-bottom: var(--sp-16); }
.mb-24 { margin-bottom: var(--sp-24); } .mb-32 { margin-bottom: var(--sp-32); }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--mist); }
.text-small  { font-size: .85rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-8);
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  padding: 11px 22px; border-radius: var(--r-md);
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap; cursor: pointer; line-height: 1;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dk); border-color: var(--accent-dk);
  transform: translateY(-1px); box-shadow: 0 4px 16px rgba(224,58,30,.3);
}

.btn-blue {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--blue-dk); border-color: var(--blue-dk);
  transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,111,168,.3);
}

.btn-green {
  background: var(--green); color: #fff; border-color: var(--green);
}
.btn-green:hover {
  background: #145c3c; border-color: #145c3c;
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.45);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8);
}

.btn-outline {
  background: transparent; color: var(--ink); border-color: var(--silver);
}
.btn-outline:hover {
  border-color: var(--blue); color: var(--blue); background: var(--blue-lt);
}

.btn-ghost {
  background: var(--fog); color: var(--ink); border-color: var(--silver);
}
.btn-ghost:hover { background: var(--silver); }

.btn-sm  { font-size: .8rem;  padding: 7px 14px;  border-radius: var(--r); }
.btn-lg  { font-size: 1rem;   padding: 14px 28px; border-radius: var(--r-lg); }
.btn-xl  { font-size: 1.05rem;padding: 16px 32px; border-radius: var(--r-lg); }
.btn-full { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: var(--r-lg);
  padding: var(--sp-24);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card-hover:hover {
  box-shadow: var(--shadow-md); transform: translateY(-3px);
}
.card-top-accent-red    { border-top: 3px solid var(--accent); }
.card-top-accent-blue   { border-top: 3px solid var(--blue); }
.card-top-accent-green  { border-top: 3px solid var(--green); }
.card-top-accent-amber  { border-top: 3px solid var(--amber); }
.card-top-accent-purple { border-top: 3px solid var(--purple); }

/* ── Badges / Tags ───────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500;
  padding: 3px 9px; border-radius: 20px; white-space: nowrap;
  border: 1px solid transparent;
}
.badge-div-high   { background: var(--red-lt);    color: var(--red);    border-color: #f5c0bb; }
.badge-div-medium { background: var(--amber-lt);  color: var(--amber);  border-color: #f0ceac; }
.badge-div-low    { background: var(--green-lt);  color: var(--green);  border-color: #a8d8bc; }
.badge-federal    { background: var(--blue-lt);   color: var(--blue);   border-color: #b0d0ec; }
.badge-state      { background: var(--purple-lt); color: var(--purple); border-color: #c8b0e8; }

/* Action tags */
.action-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 600; padding: 4px 10px;
  border-radius: 20px; cursor: pointer; border: 1.5px solid transparent;
  transition: all var(--transition); text-decoration: none;
}
.action-tag:hover { transform: scale(1.04); text-decoration: none; }
.tag-email   { background: var(--blue-lt);   color: var(--blue);   border-color: #b0d0ec; }
.tag-bill    { background: var(--purple-lt); color: var(--purple); border-color: #c8b0e8; }
.tag-recall  { background: var(--red-lt);    color: var(--red);    border-color: #f5c0bb; }
.tag-boycott { background: var(--amber-lt);  color: var(--amber);  border-color: #f0ceac; }
.tag-ref     { background: var(--green-lt);  color: var(--green);  border-color: #a8d8bc; }

/* ── Section header ──────────────────────────────────────── */
.section-header { margin-bottom: var(--sp-40); }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }
.section-header h2 { margin-bottom: var(--sp-12); }
.section-header p { max-width: 540px; }

/* ── Stat strip ──────────────────────────────────────────── */
.stat-strip {
  background: var(--navy); padding: var(--sp-40) 0;
}
.stat-strip-inner {
  display: flex; justify-content: center;
}
.stat-item {
  flex: 1; text-align: center; padding: 0 var(--sp-20);
  border-right: 1px solid rgba(255,255,255,.1);
  max-width: 240px;
}
.stat-item:last-child { border-right: none; }
.stat-val {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 900;
  color: var(--accent); line-height: 1;
}
.stat-label {
  font-size: .8rem; color: var(--silver); margin-top: var(--sp-8);
  line-height: 1.4;
}

/* ── Action strip (4 quick actions) ─────────────────────── */
.action-strip {
  background: var(--fog); border-top: 1px solid var(--silver);
  border-bottom: 1px solid var(--silver);
  padding: var(--sp-32) 0;
}
.action-strip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-16);
}
.action-strip-card {
  background: var(--white); border: 1px solid var(--silver);
  border-radius: var(--r-lg); padding: var(--sp-24) var(--sp-20);
  text-align: center; cursor: pointer;
  transition: all var(--transition);
  text-decoration: none; display: block;
}
.action-strip-card:hover {
  border-color: var(--blue); box-shadow: var(--shadow-md);
  transform: translateY(-3px); text-decoration: none;
}
.action-strip-icon {
  font-size: 2rem; margin-bottom: var(--sp-12);
  display: block; line-height: 1;
}
.action-strip-card h4 {
  font-size: .95rem; margin-bottom: var(--sp-4); color: var(--navy);
}
.action-strip-card p {
  font-size: .8rem; color: var(--mist); line-height: 1.45;
}

/* ── Issue cards ─────────────────────────────────────────── */
.issue-card {
  background: var(--white); border: 1px solid var(--silver);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  cursor: pointer; display: flex; flex-direction: column;
}
.issue-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-3px);
  border-color: var(--silver);
}
.issue-card-header {
  padding: var(--sp-20) var(--sp-20) var(--sp-16);
  display: flex; gap: var(--sp-12); align-items: flex-start;
}
.issue-icon {
  width: 46px; height: 46px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.issue-meta { flex: 1; min-width: 0; }
.issue-meta h3 {
  font-size: 1rem; margin-bottom: var(--sp-4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.issue-meta-tags { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.issue-card-body {
  padding: 0 var(--sp-20) var(--sp-16); flex: 1;
}
.issue-card-body p { font-size: .85rem; color: var(--mist); line-height: 1.55; }
.issue-card-footer {
  padding: var(--sp-12) var(--sp-20);
  background: var(--fog); border-top: 1px solid var(--silver);
  display: flex; gap: var(--sp-6); flex-wrap: wrap;
}

/* ── How it works steps ──────────────────────────────────── */
.how-step {
  text-align: center; padding: var(--sp-24);
}
.how-step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-16);
}
.how-step h3 { font-size: 1.05rem; margin-bottom: var(--sp-8); }
.how-step p  { font-size: .875rem; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: var(--sp-20); }
label {
  display: block; font-size: .875rem; font-weight: 600;
  color: var(--ink); margin-bottom: var(--sp-6);
}
.label-hint { font-weight: 400; color: var(--mist); margin-left: 6px; font-size: .8rem; }
input[type="text"], input[type="email"], input[type="tel"],
input[type="search"], input[type="number"], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: .9rem;
  padding: 10px 14px; border: 1.5px solid var(--silver);
  border-radius: var(--r-md); background: var(--white); color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; line-height: 1.5;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,111,168,.14);
}
textarea { resize: vertical; min-height: 140px; }
.form-hint { font-size: .78rem; color: var(--mist); margin-top: var(--sp-4); }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
.form-error { font-size: .8rem; color: var(--red); margin-top: var(--sp-4); }

/* Pill checkboxes */
.pill-group { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin-top: var(--sp-8); }
.pill-input { display: none; }
.pill-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 500; padding: 6px 14px;
  border: 1.5px solid var(--silver); border-radius: 20px;
  cursor: pointer; transition: all var(--transition); color: var(--slate);
  user-select: none;
}
.pill-label:hover { border-color: var(--blue); color: var(--blue); }
.pill-input:checked + .pill-label {
  background: var(--blue); border-color: var(--blue); color: #fff;
}

/* ── Tabs ────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--silver); margin-bottom: var(--sp-24);
}
.tab-btn {
  font-family: var(--font-body); font-size: .875rem; font-weight: 600;
  color: var(--mist); padding: 10px 20px; background: none; border: none;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: color var(--transition), border-color var(--transition);
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn .2s ease; }

/* ── Accordion ───────────────────────────────────────────── */
.accordion-item {
  border: 1px solid var(--silver); border-radius: var(--r-md);
  margin-bottom: var(--sp-8); overflow: hidden;
}
.accordion-btn {
  width: 100%; padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--fog); border: none; font-family: var(--font-body);
  font-size: .9rem; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: background var(--transition);
  text-align: left;
}
.accordion-btn:hover { background: #e2eaef; }
.accordion-btn.open  { background: var(--blue-lt); color: var(--blue); }
.accordion-chevron   { transition: transform .22s; font-size: 1rem; flex-shrink: 0; margin-left: 8px; }
.accordion-btn.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body {
  display: none; padding: var(--sp-16) var(--sp-20);
  font-size: .9rem; color: var(--slate); line-height: 1.65;
  border-top: 1px solid var(--silver); background: var(--white);
  animation: fadeIn .15s ease;
}
.accordion-body.open { display: block; }

/* ── Position blocks (left/center/right) ─────────────────── */
.pos-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-12); margin: var(--sp-12) 0;
}
.pos-block {
  padding: 12px 14px; border-radius: var(--r-md);
  font-size: .82rem; line-height: 1.55; border: 1px solid transparent;
}
.pos-block .pos-lbl {
  font-weight: 700; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 5px; display: block;
}
.pos-left   { background: var(--blue-lt);   color: #02233d; border-color: #b0d0ec; }
.pos-left   .pos-lbl { color: var(--blue); }
.pos-center { background: var(--green-lt);  color: #0a2218; border-color: #a8d8bc; }
.pos-center .pos-lbl { color: var(--green); }
.pos-right  { background: var(--red-lt);    color: #3d0e08; border-color: #f5c0bb; }
.pos-right  .pos-lbl { color: var(--red); }
.pos-compromise {
  background: #F0EDF8; color: #280d50; border-color: #c8b0e8;
  border-radius: var(--r-md); padding: 14px 16px;
  margin-top: var(--sp-12); font-size: .88rem; line-height: 1.6;
  border: 1px solid #c8b0e8;
}
.pos-compromise .pos-lbl { color: var(--purple); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 6px; }

/* ── Alert / info boxes ──────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--r-md);
  font-size: .875rem; line-height: 1.55;
  border-left: 3px solid; margin-bottom: var(--sp-16);
  display: flex; gap: 10px; align-items: flex-start;
}
.alert-icon { flex-shrink: 0; font-size: 1rem; }
.alert-info  { background: var(--blue-lt);   border-color: var(--blue);   color: #0a3a5c; }
.alert-warn  { background: var(--amber-lt);  border-color: var(--amber);  color: #5a2e0a; }
.alert-good  { background: var(--green-lt);  border-color: var(--green);  color: #0a3020; }
.alert-error { background: var(--red-lt);    border-color: var(--red);    color: #5a1008; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(13,27,42,.55); backdrop-filter: blur(3px);
  z-index: 1000; align-items: center; justify-content: center; padding: var(--sp-20);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--r-xl);
  width: 100%; max-width: 660px; max-height: 92vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: slideUp .25s ease;
}
@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.modal-header {
  padding: 22px 24px 18px; border-bottom: 1px solid var(--silver);
  display: flex; justify-content: space-between; align-items: flex-start;
  position: sticky; top: 0; background: var(--white); z-index: 2;
}
.modal-header h3 { font-size: 1.1rem; margin-bottom: 2px; }
.modal-header p  { font-size: .82rem; color: var(--mist); margin: 0; }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--silver);
  background: var(--fog); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; flex-shrink: 0; margin-left: var(--sp-12);
  transition: background var(--transition); color: var(--ink);
}
.modal-close:hover { background: var(--silver); }
.modal-body   { padding: var(--sp-24); }
.modal-footer {
  padding: 16px var(--sp-24); border-top: 1px solid var(--silver);
  display: flex; gap: var(--sp-10); justify-content: flex-end;
  position: sticky; bottom: 0; background: var(--white); z-index: 2;
}

/* ── Toast notifications ─────────────────────────────────── */
.toast-container {
  position: fixed; bottom: var(--sp-24); right: var(--sp-24);
  z-index: 9999; display: flex; flex-direction: column; gap: var(--sp-8);
  pointer-events: none;
}
.toast {
  background: var(--navy); color: var(--white);
  padding: 13px 18px; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); font-size: .88rem; line-height: 1.45;
  display: flex; align-items: flex-start; gap: var(--sp-10);
  min-width: 280px; max-width: 360px; pointer-events: auto;
  transform: translateX(110%); opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.toast-content { flex: 1; }
.toast-title { font-weight: 600; font-size: .88rem; }
.toast-msg   { font-size: .8rem; color: var(--silver); margin-top: 2px; }
.toast-close {
  background: none; border: none; color: var(--mist); cursor: pointer;
  font-size: 1rem; flex-shrink: 0; line-height: 1; padding: 0;
}
.toast-close:hover { color: var(--white); }
.toast.toast-success { border-left: 3px solid var(--green); }
.toast.toast-error   { border-left: 3px solid var(--red); }
.toast.toast-info    { border-left: 3px solid var(--blue); }
.toast.toast-warn    { border-left: 3px solid var(--amber); }

/* ── Progress steps (wizard) ─────────────────────────────── */
.wizard-steps {
  display: flex; align-items: center; margin-bottom: var(--sp-32);
  gap: 0;
}
.wizard-step {
  display: flex; align-items: center; flex: 1;
}
.wizard-step:last-child { flex: 0; }
.wizard-step-circle {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; border: 2px solid var(--silver);
  background: var(--white); color: var(--mist);
  transition: all .2s; position: relative; z-index: 1;
}
.wizard-step-label {
  font-size: .72rem; color: var(--mist); white-space: nowrap;
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 4px; font-weight: 500;
}
.wizard-step-wrap {
  position: relative; display: flex; flex-direction: column; align-items: center;
}
.wizard-connector {
  flex: 1; height: 2px; background: var(--silver); margin: 0 4px;
  position: relative; top: -10px;
}
.wizard-step-wrap.done .wizard-step-circle {
  background: var(--green); border-color: var(--green); color: #fff;
}
.wizard-step-wrap.active .wizard-step-circle {
  background: var(--blue); border-color: var(--blue); color: #fff;
  box-shadow: 0 0 0 4px rgba(26,111,168,.18);
}
.wizard-step-wrap.active .wizard-step-label { color: var(--blue); font-weight: 600; }
.wizard-connector.done { background: var(--green); }

/* ── Navigation ──────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--navy);
  border-bottom: 2px solid var(--accent);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 var(--sp-24);
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 900;
  color: var(--white); letter-spacing: -.02em; cursor: pointer;
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-size: .875rem; font-weight: 500; color: var(--silver);
  padding: 7px 14px; border-radius: var(--r); cursor: pointer;
  transition: all var(--transition); text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,.1); color: var(--white); text-decoration: none;
}
.nav-act {
  background: var(--accent) !important; color: var(--white) !important;
  font-weight: 600 !important; margin-left: var(--sp-8);
}
.nav-act:hover { background: var(--accent-dk) !important; }
.nav-hamburger {
  display: none; background: none; border: none; color: var(--white);
  font-size: 1.5rem; cursor: pointer; padding: 4px;
}

/* Mobile nav drawer */
.nav-drawer {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--navy); z-index: 199; flex-direction: column;
  padding: var(--sp-24); gap: var(--sp-4); overflow-y: auto;
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-link {
  font-size: 1rem; padding: 12px 16px; border-radius: var(--r-md);
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--navy); color: var(--silver);
  padding: var(--sp-64) 0 var(--sp-32); margin-top: var(--sp-80);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-40);
  margin-bottom: var(--sp-40);
}
.footer-brand-logo {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 900;
  color: var(--white); margin-bottom: var(--sp-12);
}
.footer-brand-logo span { color: var(--accent); }
.footer-brand p { font-size: .875rem; color: var(--mist); line-height: 1.65; }
.footer-col h4 {
  font-family: var(--font-body); font-size: .75rem; font-weight: 700;
  color: var(--white); text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: var(--sp-16);
}
.footer-col ul li { margin-bottom: var(--sp-10); }
.footer-col ul li a {
  font-size: .875rem; color: var(--mist);
  transition: color var(--transition); cursor: pointer;
}
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--sp-20);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-12);
}
.footer-bottom p { font-size: .8rem; color: var(--mist); }
.footer-disclaimer {
  font-size: .75rem; color: var(--steel); line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: var(--sp-20); margin-top: var(--sp-20);
}

/* ── Hero section ────────────────────────────────────────── */
.hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse 60% 80% at 15% 60%, rgba(26,111,168,.2) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(224,58,30,.14) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 60% 90%, rgba(26,122,80,.1) 0%, transparent 50%);
  padding: var(--sp-80) 0 var(--sp-64); color: var(--white);
}
.hero h1 { color: var(--white); margin-bottom: var(--sp-20); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: var(--silver); margin-bottom: var(--sp-32); }
.hero-actions { display: flex; gap: var(--sp-12); flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px; padding: 5px 14px;
  font-size: .78rem; font-weight: 500; color: var(--silver);
  margin-bottom: var(--sp-20);
}
.hero-badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.8)} }

/* ── Intro band ──────────────────────────────────────────── */
.intro-band {
  background: var(--white); padding: var(--sp-48) 0;
  border-bottom: 1px solid var(--silver);
}

/* ── Page routing ────────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Divider ─────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--silver); margin: var(--sp-32) 0; }

/* ── Chip (filter pill) ──────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8rem; font-weight: 500; padding: 5px 12px;
  border: 1.5px solid var(--silver); border-radius: 20px;
  cursor: pointer; transition: all var(--transition); color: var(--slate);
  background: var(--white); user-select: none;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .action-strip-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-32); }
  .pos-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .stat-strip .stat-item { min-width: 50%; border-right: none; padding: var(--sp-16); }
  .wizard-steps { overflow-x: auto; padding-bottom: var(--sp-24); }
  .modal { max-width: 100%; min-height: 50vh; border-radius: var(--r-lg) var(--r-lg) 0 0; align-self: flex-end; }
  .modal-overlay { align-items: flex-end; padding: 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .action-strip-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: var(--sp-48) 0 var(--sp-40); }
  .section { padding: var(--sp-48) 0; }
  .toast-container { left: var(--sp-16); right: var(--sp-16); }
}
