/* ============================================================
   FOOTER — Wynter structure, sitewide
   Wordmark top-left above four columns, then a bottom bar with social on the
   left and copyright plus legal on the right.

   This file is the footer's OWN stylesheet and the footer markup links it
   (scripts/build-footer.mjs emits the <link> inside the yp:footer block), so
   the rules travel with the markup to every page that carries the footer:
   the static pages, the five landing pages, and the server-rendered routes.
   It used to live in yieldpage.css, which the self-contained static pages
   (/contact, /message-market-fit, /ai-info, /privacy, /terms, /404) never
   load, and the footer shipped unstyled on all six. scripts/verify-footer.mjs
   asserts the link and this rule on every page after each build.
============================================================ */
/* The mono face for the column headings; pages that already load it dedupe. */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap');

.site-footer {
  /* The footer's own tokens. Same values as yieldpage.css, declared here so a
     self-contained page (contact, privacy, terms, ai-info, 404, /r) that defines
     none of them still renders the footer identically. */
  --mono: "IBM Plex Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --paper: #fafbff;
  --blue: #1e5bff;
  --slate-200: #e6e8f0;
  --slate-500: #5b6280;
  --slate-700: #2c3354;
  --slate-900: #0a0d24;
  border-top: 1px solid var(--slate-200); background: var(--paper);
}

.site-footer__top { max-width: 1180px; margin: 0 auto; padding: 52px 40px 26px; }
.site-footer__mark { display: inline-block; line-height: 0; }
.site-footer__mark img { height: 40px; width: auto; display: block; }

.site-footer__cols {
  max-width: 1180px; margin: 0 auto; padding: 0 40px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
.site-footer__col h4 {
  margin: 0 0 15px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue); font-weight: 500;
}
.site-footer__col a,
.site-footer__col > span {
  display: block; padding: 6px 0; color: var(--slate-700);
  text-decoration: none; font-size: 15px;
}
.site-footer__col a:hover { color: var(--blue); }
.site-footer__sub { padding-left: 14px !important; font-size: 14.5px !important; color: var(--slate-500) !important; }

.site-footer__bottom {
  max-width: 1180px; margin: 0 auto; padding: 20px 40px 44px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--slate-200);
}
.site-footer__social { display: flex; align-items: center; gap: 16px; }
.site-footer__social-link {
  display: inline-flex; color: var(--slate-900); line-height: 0;
  transition: color 150ms;
}
.site-footer__social-link:hover { color: var(--blue); }

/* Copyright then legal, right-aligned, split by hairline dividers. */
.site-footer__legal { display: flex; align-items: center; flex-wrap: wrap; }
.site-footer__legal a,
.site-footer__copy { font-size: 13.5px; color: var(--slate-500); text-decoration: none; padding: 0 14px; }
.site-footer__legal a:hover { color: var(--blue); }
.site-footer__legal a + a,
.site-footer__copy + a { border-left: 1px solid var(--slate-200); }
.site-footer__legal a:last-child { padding-right: 0; }
.site-footer__copy { padding-left: 0; }

@media (max-width: 860px) {
  .site-footer__top { padding: 40px 20px 22px; }
  .site-footer__mark img { height: 34px; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); gap: 28px; padding: 0 20px 30px; }
  .site-footer__bottom { padding: 20px 20px 36px; align-items: flex-start; }
  .site-footer__legal { gap: 0; }
}
@media (max-width: 460px) {
  .site-footer__cols { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  /* Dividers read as clutter once the row wraps; the copyright takes its own line. */
  .site-footer__copy { display: block; padding: 0 0 8px; width: 100%; }
  .site-footer__copy + a { border-left: 0; padding-left: 0; }
}
