/* Site footer — one stylesheet for every static marketing page, and for the
 * Next-rendered legal pages (/privacy, /terms, /legal/versions), which inline
 * it through src/generated/siteChrome.json. The markup is stamped INTO each
 * page by scripts/seo/stamp-footer.mjs — one definition, edit there.
 *
 * Everything is scoped under .dsd-footer. The pages still carry their own
 * `footer { … }` element rules (pricing paints a rule and a surface, about.html
 * paints the whole footer ink-dark), so the root selector is `footer.dsd-footer`
 * — one class heavier than any of those — and it sets every property they set,
 * explicitly, so what you see is this file and not the page underneath.
 */

footer.dsd-footer {
  display: block; margin: 72px 0 0; padding: 44px 24px 28px;
  width: auto; max-width: none;
  background: var(--surface, #f7f6f3); color: var(--ink, #15181c);
  border: 0; border-top: 1px solid var(--rule, rgba(21,24,28,.14));
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: 14px; line-height: 1.4; text-align: left;
}

/* brand + four columns */
.dsd-footer .dsd-foot-wrap {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(200px, 1.3fr) repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
}
.dsd-footer .dsd-foot-brand { display: flex; flex-direction: column; gap: 12px; }
.dsd-footer .dsd-foot-logo {
  display: inline-flex; align-items: center; gap: 9px; width: max-content;
  color: var(--ink, #15181c); text-decoration: none;
}
/* The mark, same presentation as the nav's .dsd-mark and the dashboard rail's
   .sideMark: the note knocked out of an ink square, currentColor the cream.
   overflow:hidden is load-bearing — the stem and the slash's keyline run past
   the edges by design and the square is what crops them. */
.dsd-footer .dsd-mark {
  width: 18px; height: 18px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--ink, #15181c); color: var(--paper, #eeedea); overflow: hidden;
}
.dsd-footer .dsd-mark svg { display: block; width: 18px; height: 18px; }
.dsd-footer .dsd-foot-logo > span:last-child {
  font-family: var(--mono, 'JetBrains Mono', Menlo, monospace);
  font-size: 12.5px; letter-spacing: .9px; text-transform: uppercase;
  color: var(--ink, #15181c);
}
.dsd-footer .dsd-foot-tag {
  margin: 0; font-family: var(--mono, 'JetBrains Mono', Menlo, monospace);
  font-size: 12px; letter-spacing: .3px; line-height: 1.5;
  color: var(--ink-soft, rgba(21,24,28,.7));
}

.dsd-footer .dsd-foot-col { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.dsd-footer .dsd-foot-h {
  display: block; margin: 0 0 4px;
  font-family: var(--mono, 'JetBrains Mono', Menlo, monospace);
  font-size: 10px; letter-spacing: .6px; text-transform: uppercase; font-weight: 500;
  color: var(--ink-mute, rgba(21,24,28,.62));
}
.dsd-footer .dsd-foot-col a {
  display: block; padding: 0; font-size: 14px; line-height: 1.35;
  color: var(--ink-soft, rgba(21,24,28,.7)); text-decoration: none;
  transition: color .12s;
}
.dsd-footer .dsd-foot-col a:hover { color: var(--ink, #15181c); text-decoration: underline; }

/* base line */
.dsd-footer .dsd-foot-base {
  max-width: 1180px; margin: 36px auto 0; padding-top: 18px;
  border-top: 1px solid var(--rule, rgba(21,24,28,.14));
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono, 'JetBrains Mono', Menlo, monospace);
  font-size: 11.5px; letter-spacing: .3px;
  color: var(--ink-mute, rgba(21,24,28,.62));
}

@media (max-width: 900px) {
  .dsd-footer .dsd-foot-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .dsd-footer .dsd-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  footer.dsd-footer { margin-top: 56px; padding: 36px 16px 24px; }
}
