/* ================================================================
   SUPRBAD FOOTER (FT1 parity + FT4 Jeep) — token-consuming from the
   first line (charter §5; audit:design enforced). Dark chrome band
   matching the live GreenShift footer; every colour/radius reads a
   Design System token with a same-value fallback.
   ================================================================ */

.sb-footer {
  padding: 3.5rem 2.5rem 2rem;
  color: var(--sb-color-bg, #edeae4);
  font-family: var(--sb-font-primary, inherit);
  background: var(--sb-color-ink, #1a1a1a);
}

.sb-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sb-footer__col {
  flex: 1 1 200px;
  min-width: 180px;
}

.sb-footer__col--about {
  flex: 2 1 320px;
}

.sb-footer__heading {
  margin: 0 0 1em;
  font-size: 1.15rem;
  font-weight: 700;
}

.sb-footer__text {
  margin: 0 0 1em;
  color: var(--sb-color-text-muted, #7a7772);
  font-size: 0.9rem;
  line-height: 1.7;
}

.sb-footer__text a {
  color: inherit;
}

.sb-footer__social {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sb-footer__social li {
  margin-bottom: 0.6em;
}

.sb-footer__social a {
  color: var(--sb-color-text-muted, #7a7772);
  text-decoration: none;
}

.sb-footer__social a:hover,
.sb-footer__social a:focus-visible {
  color: var(--sb-color-bg, #edeae4);
}

/* ── Subscribe (0.1.6, owner decision) ──────────────────────────
   Looks like the site's standard pill (SB Buttons Tier 2: 62px, 2.5px
   border, 900 weight, the six --sb-color-button-* tokens with the same
   fallbacks), and wobbles on hover the same way, but it is NOT an SB
   Buttons button: no Tier 2 class, so sb-morph.js never attaches and
   there is no spin-and-"Processing" morph. A sign-up opens a form; it
   does not navigate. The wobble is a footer-owned copy of sb-rb-squash,
   so the footer never depends on SB Buttons' keyframe name. It breathes
   once every 6s so it reads as clickable; hover and focus replace the
   breath with the wobble, and reduced motion stops both. */

.sb-footer__subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 62px;
  padding: 0 40px;
  color: var(--sb-color-button-fg, #000);
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--sb-color-button-bg, #fff);
  border: 2.5px solid var(--sb-color-button-border, #000);
  border-radius: var(--sb-radius-pill, 100px);
  -webkit-tap-highlight-color: transparent;
  animation: sb-footer-breathe 6s ease-in-out 3s infinite;
  transition:
    box-shadow 0.12s ease,
    background 0.1s ease-out,
    color 0.1s ease-out,
    border-color 0.1s ease-out;
}

.sb-footer__subscribe-btn:hover,
.sb-footer__subscribe-btn:focus-visible {
  animation: sb-footer-squash 0.44s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

.sb-footer__subscribe-btn:active {
  color: var(--sb-color-button-fg-active, #fff);
  background: var(--sb-color-button-bg-active, #000);
  border-color: var(--sb-color-button-border-active, #fff);
  box-shadow: inset 0 2px 6px rgb(0 0 0 / 55%);
  transform: scale(0.965);
}

@keyframes sb-footer-squash {
  0% {
    transform: scaleX(1) scaleY(1);
  }

  18% {
    transform: scaleX(1.024) scaleY(0.963);
  }

  44% {
    transform: scaleX(0.983) scaleY(1.02);
  }

  70% {
    transform: scaleX(1.008) scaleY(0.992);
  }

  100% {
    transform: scaleX(1) scaleY(1);
  }
}

@keyframes sb-footer-breathe {
  0%,
  84%,
  100% {
    transform: scale(1);
  }

  92% {
    transform: scale(1.03);
  }
}

/* Same narrow-phone tightening as SB Buttons F-BTN-6 (prefix syntax: the
   Safari 12 floor drops Level 4 range queries). */
@media (max-width: 22.5rem) {
  .sb-footer__subscribe-btn {
    padding: 0 1.25rem;
    font-size: 14px;
  }
}

/* ── The Jeep (FT4) ──────────────────────────────────────────────
   Drives across the footer band; wheels counter-rotate the travel
   direction; the antenna flag waves. CSS keyframes only — no
   animation library (recorded principle). All motion collapses
   under prefers-reduced-motion. Travel is a transform (0.1.1,
   F-FTR-3): the jeep is parked at left: -204px and translateX()
   carries it across, so no frame forces layout; reduced motion sets
   animation: none and the static `left` parks it in view.
   Since 0.1.5 (owner request) the strip has no rule of its own: the
   jeep drives on the legal row's rule. Since 0.1.9 (owner request) the
   jeep is 20% larger: the SVG is 192 x 86.4px (was 160 x 72) and its
   wheels end 15.4px above its bottom edge (was 12.8), so bottom: -15px
   (was -13px) puts them on the rule; the strip's overflow clips the
   empty band below them. 68px (was 56px) leaves about 7px above the
   flag's top at the height of its wave. Revert values: architecture 9.4. */

.sb-footer__jeep-strip {
  position: relative;
  max-width: 1200px;
  height: 68px;
  margin: 1rem auto 0;
  overflow: hidden;
  color: var(--sb-color-text-muted, #7a7772);
}

.sb-footer__jeep {
  position: absolute;
  bottom: -15px;
  left: -204px;
  animation: sb-jeep-drive 26s linear infinite;
}

.sb-jeep-wheel {
  animation: sb-jeep-roll 1.2s linear infinite;
}

.sb-jeep-wheel--front {
  transform-origin: 50px 62px;
}

.sb-jeep-wheel--rear {
  transform-origin: 156px 62px;
}

.sb-jeep-badge {
  font-family: var(--sb-font-primary, inherit);
  letter-spacing: 0.02em;
}

.sb-jeep-flag {
  transform-origin: 150px 18px;
  animation: sb-jeep-wave 1.6s ease-in-out infinite;
}

@keyframes sb-jeep-drive {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(100vw + 204px));
  }
}

@keyframes sb-jeep-roll {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes sb-jeep-wave {
  0%,
  100% {
    transform: skewY(0deg) scaleX(1);
  }

  50% {
    transform: skewY(-6deg) scaleX(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sb-footer__jeep,
  .sb-jeep-wheel,
  .sb-jeep-flag,
  .sb-footer__subscribe-btn,
  .sb-footer__subscribe-btn:hover,
  .sb-footer__subscribe-btn:focus-visible {
    animation: none;
  }

  .sb-footer__jeep {
    left: 40px;
  }
}

/* ── The legal row (0.1.4, P-F2; charter §9.1) ──────────────────
   Below the jeep: the rule the jeep drives on (0.1.5), then the
   policy links and the rights line, smaller and muted. Margins, not
   flex gap, so the spacing survives Safari 12. */

.sb-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  max-width: 1200px;
  padding-top: 1rem;
  margin: 0 auto;
  color: var(--sb-color-text-muted, #7a7772);
  font-size: 0.8rem;
  line-height: 1.6;
  border-top: 1px solid var(--sb-color-text-muted, #7a7772);
}

.sb-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 1.5rem 0.5rem 0;
  list-style: none;
}

.sb-footer__legal-links li + li::before {
  margin: 0 0.5em;
  content: '·';
}

.sb-footer__legal a {
  color: inherit;
  text-decoration: none;
}

.sb-footer__legal a:hover,
.sb-footer__legal a:focus-visible {
  color: var(--sb-color-bg, #edeae4);
  text-decoration: underline;
}

.sb-footer__rights {
  margin: 0 0 0.5rem;
}
