/* ==========================================================================
   SITE FOOTER
   --------------------------------------------------------------------------
   neon.com structure (29 Sep): brand + tagline top-left, link columns on
   the right with small uppercase heads, then a full-width hairline and a
   thin bottom bar. Plain ground, no illustration.

   Content is the live-site footer verbatim: tagline, the Platform /
   Products / Resources columns, "© 2026 Unlock.ai" and "Built for complex
   engineering systems." Deliberately NOT carried over from the reference:
   a compliance column (pack §6 bars certification claims without an
   evidence record) and a systems-status line (no status page exists).

   Colours come from whatever section vars the page sets on .footer —
   teal on v1, black on v2. No literal colours.
   ========================================================================== */

.site-footer {
  position: relative;
  padding-top: 0;          /* base .footer adds 40px; the top grid owns spacing */
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-nav, var(--font-body));
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--space-9);
  row-gap: var(--space-7);
  padding-block: var(--space-8) var(--space-9);
}

/* .site-footer a would grey the logo out; it stays the heading colour. */
.site-footer .wordmark { flex: none; color: var(--heading); }
.site-footer .wordmark:hover { color: var(--heading); opacity: 0.8; }
.site-footer__brand .wordmark__logo { height: 32px; }
.site-footer__tag {
  margin-top: var(--space-4);
  max-width: 21.45em;   /* = 34ch of Inter; em so the width holds while fonts load (11 Nov, QA) */
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 232px));   /* 232 (was 200) so "Specs and requirements" and its arrow hold one line (10 Nov) */
  column-gap: var(--space-7);
  row-gap: var(--space-7);
}
.site-footer__cols h2 {
  margin: 0 0 var(--space-5);
  font-family: var(--font-nav, var(--font-body));
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--heading);
}
.site-footer__cols ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a {
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--motion-base) var(--motion-ease);
}
.site-footer a:hover { color: var(--heading); }
/* The column links as label + arrow side by side (11 Nov, QA): inline, the
   hover arrow wrapped onto a line of its own wherever a label filled its
   column (phones), leaving an empty row under it. */
.site-footer__cols a { display: inline-grid; grid-template-columns: auto auto; align-items: baseline; }
/* Touch: the links' hit areas grow to 34px tall (the 14px list gap halved
   either side) without moving them (11 Nov, QA: 20px before). */
@media (pointer: coarse) {
  .site-footer__cols a { padding-block: 7px; margin-block: -7px; }
  .site-footer__legal a { display: inline-block; padding-block: 8px; margin-block: -8px; }
}

/* Bottom bar: the text sits on the grid (its edge-to-edge hairline went 30 Nov, user). */
.site-footer__bar { border-top: 0; }   /* no line over the bar (30 Nov, user: "remove that top border"; it read as an ember line, --line is ember bark) */
.site-footer__bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-5);
  font-size: 14px;
  color: var(--ink-muted);
}
.site-footer__bar p { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.site-footer__legal a { color: inherit; font-size: inherit; line-height: inherit; text-decoration: none; transition: color var(--motion-base) var(--motion-ease); }
.site-footer__legal a:hover, .site-footer__legal a:focus-visible { color: var(--heading); }

@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The name, outlined and fading out downward, above the bar (14 Nov,
   user, after coderabbit.ai's footer; an agreed exception to the logo
   rules, for this graphic only). Sage on the footer's dark, the content's
   full width; the line holds 1.25px at any size (the outer half of a
   2.5px stroke, the inner half masked by the letters). */
.site-footer__word { display: block; width: 100%; height: auto; margin-top: var(--space-8); overflow: visible; }
.site-footer__word-line { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.site-footer__word-stop { stop-color: var(--accent-text); }

/* The column heads at 14px (27 Nov, user; 13 before, a size outside the scale). */
.site-footer .site-footer__cols h2 { font-size: 14px; }

/* The tagline keeps a readable width beside the link columns (27 Nov, QA: at
   1024 it wrapped to five lines in a 90px column): the brand column is at
   least 240px, the columns give way first. */
.site-footer__top { grid-template-columns: minmax(240px, 1fr) minmax(0, auto); }
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr; } }
