/* ============================================================
   CIVICS LAB — Web 1.2
   Palette: warm white, slate blue, terracotta
   ============================================================ */

:root {
  --warm-white: #f2ece0;
  --warm-white-2: #e9e1d2;
  --ink: #20272e;
  --ink-soft: #3a444d;
  --ink-mute: #6a7078;
  --slate: #2f5673;
  --slate-deep: #223f54;
  --slate-light: #dde6ec;
  --terra: #b3552f;
  --terra-soft: #f6e2d8;
  --rule: #ccc4b3;
  --rule-soft: #ddd5c6;
  --white: #fdfbf7;
  --maxw: 760px;
  --maxw-wide: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--warm-white);
  line-height: 1.65;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Nav ---------- */
.nav {
  border-bottom: 1px solid var(--rule);
  background: var(--warm-white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.nav-brand {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--slate-deep);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-brand span { color: var(--terra); }
.nav-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.nav-links a {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.nav-links a:hover { color: var(--slate); border-bottom-color: var(--terra); }
.nav-links a.active { color: var(--slate-deep); border-bottom-color: var(--terra); }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.wrap-wide {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 64px 0; }
.section-tint { background: var(--warm-white-2); }
.section-slate { background: var(--slate-light); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: var(--slate-deep);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hero-pitch {
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
}
.hero-pitch strong { color: var(--slate-deep); font-weight: 700; }

.eyebrow {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 20px;
}
h1.page-title { font-size: 40px; margin-bottom: 20px; }
h2 { font-size: 28px; margin-bottom: 18px; }
h3 { font-size: 20px; margin-bottom: 12px; }
p { margin-bottom: 20px; }
p:last-child { margin-bottom: 0; }
a { color: var(--slate); }
.lead { font-size: 21px; color: var(--ink-soft); }

.rule-terra {
  width: 60px;
  height: 3px;
  background: var(--terra);
  border: none;
  margin: 0 0 28px 0;
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--rule);
}
.hero .eyebrow { margin-bottom: 24px; }

/* ---------- Segue / learn-more ---------- */
.segue {
  border-left: 3px solid var(--terra);
  padding: 6px 0 6px 24px;
  margin: 8px 0 0;
  font-size: 18px;
  color: var(--ink-soft);
}
.segue a { font-weight: 600; color: var(--slate); text-decoration: none; border-bottom: 1px solid var(--terra); }
.segue a:hover { color: var(--terra); }

/* ---------- Branch cards ---------- */
.branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.branch {
  display: block;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 26px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, transform 0.15s;
}
.branch:hover { border-color: var(--terra); transform: translateY(-2px); }
.branch h3 {
  font-size: 17px;
  color: var(--slate-deep);
  margin-bottom: 8px;
}
.branch p {
  font-size: 15px;
  color: var(--ink-mute);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
}
.branch .arrow { color: var(--terra); font-weight: 700; }

/* ---------- Cards (features) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 12px;
}
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 30px 28px;
}
.card-num {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--terra);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card .card-tag {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--slate);
  font-size: 17px;
  margin-bottom: 14px;
}
.card p { font-size: 16px; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Steps ---------- */
.step {
  border-left: 2px solid var(--rule);
  padding: 0 0 32px 28px;
  position: relative;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--terra);
}
.step-num {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--terra);
  margin-bottom: 4px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 16px; color: var(--ink-soft); }
.step.loop::before { background: var(--slate); }
.step.loop .step-num { color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}
.btn-primary { background: var(--terra); color: var(--white); }
.btn-primary:hover { background: #a04d2c; }
.btn-slate { background: var(--slate); color: var(--white); }
.btn-slate:hover { background: var(--slate-deep); }
.btn-ghost {
  background: transparent;
  color: var(--slate);
  border: 1px solid var(--slate);
}
.btn-ghost:hover { background: var(--slate); color: var(--white); }

/* ---------- Track / intake blocks ---------- */
.track {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 32px 30px;
  margin-bottom: 24px;
}
.track h3 { color: var(--terra); font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
.track h4 { font-size: 22px; margin-bottom: 14px; color: var(--slate-deep); }
.track ul { margin: 16px 0 0 0; padding-left: 22px; }
.track li { font-size: 16px; color: var(--ink-soft); margin-bottom: 8px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: Georgia, serif;
  font-size: 17px;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--slate);
}

/* ---------- Gate ---------- */
.gate {
  max-width: 420px;
  margin: 80px auto;
  text-align: center;
  padding: 0 24px;
}
.gate h2 { margin-bottom: 12px; }
.gate p { color: var(--ink-mute); font-size: 17px; margin-bottom: 24px; }
.gate input {
  width: 100%;
  font-size: 18px;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin-bottom: 14px;
  text-align: center;
}
.gate .err { color: var(--terra); font-size: 15px; min-height: 20px; margin-bottom: 8px; }
.gated-content { display: none; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--rule);
  background: var(--warm-white-2);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--slate-deep);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  color: var(--ink-mute);
  text-decoration: none;
}
.footer-links a:hover { color: var(--terra); }
.footer-fine {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  color: var(--ink-mute);
}

/* ---------- Utility ---------- */
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: 44px; }
.center { text-align: center; }
.muted { color: var(--ink-mute); }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

@media (max-width: 640px) {
  body { font-size: 18px; }
  .hero-pitch { font-size: 22px; }
  h1.page-title { font-size: 32px; }
  h2 { font-size: 24px; }
  section { padding: 48px 0; }
  .nav-inner { padding: 14px 20px; }
  .wrap, .wrap-wide { padding: 0 20px; }
}
