/* site-footer.css — THE ONE adperch.ai FOOTER (Bret 2026-10-22). The markup lives in scripts/site-footer.mjs and is written into
   every page by it (`--check` keeps them identical); this file is its only stylesheet, self-contained, so a page that does not load
   /styles.css (/mcp, /intro) renders it exactly like one that does.
   ⚖️ The ruling: the homepage's light-footer structure everywhere — logo + tagline, the AdPerch icon row with one text line under it
   for Warm Paths, three labelled groups (Explore / Company / Account), then a base line, "© 2026 AdPerch, Inc." left and
   Privacy · Terms right. Dark pages take the same layout in dark colours (`.sf--dark`). © in a readable light gray, never underlined.
   On a phone the groups sit three across (four on /warmpaths: two by two), so nothing wraps into an orphan.
   ⚠ Selectors are `footer.sf …` on purpose: page sheets style bare `a` (/intro), `.hiw a` (/how-it-works) and `.wp footer …`
   (/warmpaths), and the footer must outrank all of them without !important. */
footer.sf {
  --sf-bg: #f5f2ec; --sf-ink: #2b2420; --sf-link: #4a413a; --sf-hover: #a9472a; --sf-head: #a9472a; --sf-line: #e2dbd1;
  --sf-icon-border: #d8cfc3; --sf-muted: #6f665d; --sf-accent: #c65a36;
  background: var(--sf-bg); color: var(--sf-ink); border-top: 1px solid var(--sf-line);
  font: 400 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif; text-align: left;
  -webkit-font-smoothing: antialiased; margin: 0;
}
footer.sf.sf--dark {
  --sf-bg: #1f1a17; --sf-ink: #f5f2ed; --sf-link: rgba(245, 242, 237, .82); --sf-hover: #e8906c; --sf-head: #e8906c;
  --sf-line: rgba(245, 242, 237, .12); --sf-icon-border: rgba(245, 242, 237, .22); --sf-muted: #b8afa4; --sf-accent: #e8906c;
}
footer.sf *, footer.sf *::before, footer.sf *::after { box-sizing: border-box; }
/* ⚠ RESETS, because the footer keeps the `footer-social` / `footer-links` class names the social-row check keys on, and styles.css
   still styles those names for the old footer (faded 0.34 icons, a centred row), while /warmpaths styles bare `nav` as its header bar
   (flex, space-between, 22px padding). Each property any of them sets is set back here. */
footer.sf nav { display: block; padding: 0; margin: 0; background: none; position: static; justify-content: normal; align-items: normal; }
footer.sf .footer-social a, footer.sf .footer-links a { opacity: 1; padding: 0; font-size: inherit; text-decoration: none; }
footer.sf .footer-links a:hover { text-decoration: none; }
footer.sf a { color: var(--sf-link); text-decoration: none; font-weight: 400; }
footer.sf a:hover, footer.sf a:focus-visible { color: var(--sf-hover); }
footer.sf .sf-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
footer.sf .sf-main { display: flex; flex-wrap: wrap; gap: 40px 48px; justify-content: space-between; padding-top: 56px; }
footer.sf .sf-brand { flex: 1 1 300px; max-width: 420px; }
footer.sf .sf-mark { display: inline-flex; align-items: center; gap: 12px; color: var(--sf-ink); }
footer.sf .sf-mark img { width: 32px; height: 32px; display: block; }
footer.sf .sf-mark span { font: 500 28px/1 'Playfair Display', Georgia, 'Times New Roman', serif; color: var(--sf-ink); }
footer.sf .sf-room { font: 400 22px/1 'Playfair Display', Georgia, serif; color: var(--sf-muted); }
footer.sf .sf-line { font: 500 20px/1.35 'Playfair Display', Georgia, 'Times New Roman', serif; color: var(--sf-ink); margin: 18px 0 0; }
footer.sf .sf-line em { color: var(--sf-accent); }
footer.sf a.sf-mail { display: inline-block; margin-top: 14px; color: var(--sf-hover); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
footer.sf .footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; justify-content: flex-start; align-items: center; white-space: normal; }
footer.sf .footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--sf-icon-border); color: var(--sf-ink);
  display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s, color .2s; }
footer.sf .footer-social a:hover, footer.sf .footer-social a:focus-visible { background: var(--sf-accent); border-color: var(--sf-accent); color: #fff; }
footer.sf .footer-social svg { width: 17px; height: 17px; fill: currentColor; display: block; }
footer.sf .sf-wp { margin: 12px 0 0; font-size: 14px; color: var(--sf-muted); }
footer.sf .sf-wp a { color: var(--sf-link); font-weight: 500; }
footer.sf .footer-links { display: flex; flex-wrap: wrap; gap: 32px 56px; margin: 0; padding: 0; justify-content: flex-start; text-align: left; }
footer.sf .fcol { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; min-width: 110px; }
footer.sf .fh { font: 500 11px/1 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sf-head); margin: 0 0 6px; }
footer.sf .sf-base { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--sf-line); font-size: 13px; color: var(--sf-muted); }
footer.sf .sf-base nav { display: flex; gap: 20px; }
footer.sf .sf-base a { color: var(--sf-muted); }
footer.sf .sf-base a:hover, footer.sf .sf-base a:focus-visible { color: var(--sf-hover); }
@media (max-width: 640px) {
  footer.sf .sf-main { padding-top: 40px; gap: 32px; }
  footer.sf .sf-brand { flex-basis: 100%; }
  footer.sf .footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; width: 100%; }
  footer.sf .footer-links.sf-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer.sf .fcol { min-width: 0; }
  footer.sf .sf-base { margin-top: 36px; }
}
