/* Catchallleads — shared design system (Builder A)
   Mobile-first. Plain CSS, no framework. */

/* ---------- Tokens ---------- */
:root {
  --navy: #1a2b4a;          /* headers, footer */
  --navy-deep: #101d33;     /* footer */
  --ink: #222b38;           /* body text */
  --muted: #5b6575;         /* secondary text */
  --bg: #ffffff;
  --bg-soft: #f4f6f9;       /* alt section background */
  --line: #e2e6ec;          /* borders */
  --green: #1e7e46;         /* CTA buttons ONLY */
  --green-dark: #166139;    /* CTA hover */
  --wrap: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
}

img { max-width: 100%; height: auto; }

a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #0f1e38; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main { padding: 2rem 0 3rem; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  padding: 0.9rem 0;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}
.site-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: 0.2px;
}
.site-brand:hover { color: #fff; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-left: auto;
}
.site-nav a {
  color: #cfd8e6;
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #aeb9cc;
  padding: 2rem 0 2.5rem;
  font-size: 0.9rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-bottom: 1rem;
}
.footer-nav a { color: #dfe6f2; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-note { max-width: 60ch; }
.copyright { margin-top: 1rem; font-size: 0.85rem; color: #8b97ad; }

/* ---------- Typography ---------- */
h1, h2, h3 { color: var(--navy); line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 1rem; }
h2 { font-size: 1.45rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.lede { font-size: 1.2rem; color: var(--muted); }

.byline {
  font-size: 0.9rem;
  color: var(--muted);
  margin: -0.5rem 0 1.5rem;
}
.byline .updated { display: inline-block; margin-left: 0.5rem; }

/* ---------- Disclosure strip (top of money pages) ---------- */
.disclosure-strip {
  background: #fff8e6;
  border: 1px solid #e8d48b;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #4a4128;
  margin: 0 0 1.5rem;
}
.disclosure-strip a { color: #4a4128; font-weight: 600; }

/* ---------- Buttons (green = CTA only) ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.4;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* Pending affiliate link (not yet wired up) */
a.aff-link-pending {
  outline: 2px dashed #b98a00;
  outline-offset: 3px;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}
@media (min-width: 560px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  background: #fff;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.card p { margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--muted); }
.card .card-link { font-weight: 600; font-size: 0.95rem; }

/* ---------- Email capture ---------- */
.email-capture {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem;
  margin: 2.5rem 0;
}
.email-capture h2 { margin-top: 0; font-size: 1.3rem; }
.email-capture form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.email-capture input[type="email"] {
  flex: 1 1 220px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font);
}
.form-msg { width: 100%; margin: 0; font-size: 0.95rem; }
.form-msg.success { color: var(--green); font-weight: 600; }
.form-msg.error { color: #a43434; font-weight: 600; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Screenshot placeholder slot ---------- */
.shot-placeholder {
  border: 2px dashed #b6bdc9;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 3rem 1rem;
  margin: 1.25rem 0;
}

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
th { background: var(--bg-soft); color: var(--navy); }
.table-scroll { overflow-x: auto; }

/* ---------- Misc ---------- */
.hero { padding: 1.5rem 0 0.5rem; }
.hero h1 { margin-bottom: 0.5rem; }
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin: 2.5rem 0 0;
}
.tool-list { list-style: none; padding: 0; margin: 1rem 0; }
.tool-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.tool-list li span { font-weight: 600; }
.checklist { margin: 1rem 0; }
.checklist li { margin-bottom: 0.5rem; }
hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
small, .fine { font-size: 0.85rem; color: var(--muted); }
