/* bitsnacks shared footer band.

   CANONICAL SOURCE: bitsnacks/web/shared/footer/bitsnacks-band.css
   Do not edit the vendored copy in any product repo. Edit here, then run
   `python3 web/shared/footer/sync.py sync`.

   Spec: web/shared/footer/SPEC.md.

   This file shares a page with a Tailwind build on Chicken Strip and with three
   sets of hand written CSS elsewhere. It must be immune to all of them, so:
   every selector is under .bsb, nothing is inherited that matters, no custom
   properties are defined or consumed, and there is no !important. */

.bsb {
  border-top: 3px solid #0039e8;
  background: #090909;
  color: #fdfdfd;
  font-family: "Avenir Next", "Helvetica Neue", system-ui, -apple-system,
    "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.bsb *,
.bsb *::before,
.bsb *::after {
  box-sizing: border-box;
}

.bsb p {
  margin: 0;
}

.bsb ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.bsb a:hover,
.bsb a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.bsb :focus-visible {
  outline: 2px solid #fdfdfd;
  outline-offset: 3px;
}

.bsb-shell,
.bsb-legal {
  width: min(1320px, calc(100vw - 4rem));
  margin: 0 auto;
}

.bsb-shell {
  padding: 3.5rem 0 2.25rem;
}

.bsb-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

/* The mark and the wordmark are one lockup, so they share one link and one
   focus ring. */
.bsb-wordmark-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.bsb-logomark {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
}

.bsb-wordmark {
  display: block;
  width: 157px;
  height: auto;
}

.bsb-strapline {
  margin-top: 0.85rem;
  color: rgba(253, 253, 253, 0.84);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.bsb-heading {
  margin-bottom: 0.7rem;
  color: rgba(253, 253, 253, 0.5);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bsb-nav {
  display: grid;
  justify-items: end;
}

.bsb-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.5rem;
}

.bsb-nav a {
  color: rgba(253, 253, 253, 0.88);
  font-size: 0.88rem;
}

.bsb-machine {
  margin-top: 2.75rem;
  padding: 0.7rem;
  border: 1px solid rgba(123, 158, 255, 0.7);
  border-radius: 1.6rem;
  background: linear-gradient(145deg, #245cff 0%, #0039e8 58%, #002aa8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 24px 60px rgba(0, 40, 170, 0.25);
}

.bsb-machine-header {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 1.1rem 0.95rem;
  color: #ffffff;
}

.bsb-machine-header p {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bsb-machine-ready {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bsb-machine-ready i {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #b8d0ff;
  box-shadow: 0 0 0 4px rgba(184, 208, 255, 0.12), 0 0 11px #b8d0ff;
}

.bsb-machine-window {
  padding: clamp(1rem, 2.4vw, 1.75rem);
  border: 2px solid #101a2b;
  border-radius: 0.75rem 0.75rem 1.05rem 1.05rem;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.44), transparent 18% 82%, rgba(19, 34, 72, 0.05)),
    #f4f0e7;
  box-shadow:
    inset 0 14px 28px rgba(255, 255, 255, 0.72),
    inset 16px 0 30px rgba(45, 55, 77, 0.04),
    inset -16px 0 30px rgba(45, 55, 77, 0.04);
  color: #111318;
}

.bsb-product-groups {
  display: grid;
  gap: 1rem;
}

.bsb-product-group,
.bsb-group-shelves {
  min-width: 0;
}

.bsb-group-heading {
  display: grid;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
  grid-template-columns: minmax(1rem, 1fr) auto minmax(1rem, 1fr);
}

.bsb-group-heading::before,
.bsb-group-heading::after {
  height: 1px;
  background: #a9bcf5;
  content: "";
}

.bsb-group-heading p {
  color: #0039e8;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.bsb-group-shelves {
  display: grid;
  gap: 0.65rem;
}

.bsb-product-group ul {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bsb-product-group-space ul {
  width: calc(50% - 0.375rem);
  margin: 0 auto;
}

.bsb-product-group a {
  min-height: 8.5rem;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(177, 174, 164, 0.76);
  border-radius: 0.85rem 0.85rem 0.24rem 0.24rem;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 5px 14px rgba(25, 28, 36, 0.06);
  color: #111318;
  grid-template-rows: minmax(0, 1fr) 2.25rem;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.bsb-product-group a:hover {
  border-color: #8ba7ef;
  box-shadow: 0 10px 24px rgba(0, 33, 130, 0.12);
  text-decoration: none;
  transform: translateY(-2px);
}

.bsb-product-group a:focus-visible {
  outline-color: #0039e8;
}

.bsb-product-pack {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0.9rem 1rem;
}

.bsb-product-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 4rem;
  height: 4rem;
  border-radius: 1.05rem;
  filter: drop-shadow(0 9px 9px rgba(0, 0, 0, 0.2));
  transition: transform 160ms ease;
}

.bsb-product-group a:hover .bsb-product-icon {
  transform: translateY(-2px);
}

.bsb-product-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border-top: 1px solid rgba(177, 174, 164, 0.72);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 -4px 10px rgba(25, 28, 36, 0.04);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.bsb-legal {
  display: grid;
  padding: 1.35rem 0 2.5rem;
  border-top: 1px solid rgba(253, 253, 253, 0.12);
  color: rgba(253, 253, 253, 0.55);
  font-size: 0.74rem;
  gap: 0.5rem 1.5rem;
  grid-template-columns: auto 1fr;
}

.bsb-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  justify-content: flex-end;
}

@media (prefers-reduced-motion: reduce) {
  .bsb-product-group a,
  .bsb-product-icon {
    transition: none;
  }

  .bsb-product-group a:hover,
  .bsb-product-group a:hover .bsb-product-icon {
    transform: none;
  }
}

@media (max-width: 980px) {
  .bsb-shell,
  .bsb-legal {
    width: min(100% - 3rem, 1320px);
  }
}

@media (max-width: 700px) {
  .bsb-shell {
    padding-top: 2.75rem;
  }

  .bsb-top {
    display: grid;
  }

  .bsb-nav {
    justify-items: start;
  }

  .bsb-nav ul {
    justify-content: flex-start;
  }

  .bsb-machine {
    margin-top: 2rem;
    padding: 0.45rem;
    border-radius: 1.2rem;
  }

  .bsb-machine-header {
    min-height: 2.8rem;
    padding: 0.35rem 0.8rem 0.75rem;
  }

  .bsb-legal {
    display: flex;
    flex-direction: column;
  }

  .bsb-contact {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .bsb-shell,
  .bsb-legal {
    width: min(100% - 1.5rem, 1320px);
  }

  .bsb-nav ul {
    display: grid;
    justify-content: start;
    gap: 0.35rem;
    grid-template-columns: 1fr;
  }

  .bsb-machine-header p {
    font-size: 0.64rem;
  }

  .bsb-machine-window {
    padding: 0.85rem;
  }

  .bsb-product-group ul {
    grid-template-columns: 1fr;
  }

  .bsb-product-group-space ul {
    width: 100%;
  }

  .bsb-product-group a {
    min-height: 5.75rem;
    grid-template-columns: 5.75rem minmax(0, 1fr);
    grid-template-rows: 1fr;
  }

  .bsb-product-pack {
    padding: 0.7rem 0.9rem;
  }

  .bsb-product-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.9rem;
  }

  .bsb-product-label {
    min-height: 100%;
    justify-content: flex-start;
    border-top: 0;
    border-left: 1px solid rgba(177, 174, 164, 0.72);
  }
}
