/* ==========================================================================
   6ixmerchandise — guide mesh, footer, bottom tab bar.
   Values ported from the live footer's own inline <style> block
   (docs/frontend/html/home.html) plus FRONTEND_ARCHITECTURE §3.5, §3.6.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GUIDE-LINK MESH (§3.5.0) — renders before the footer proper.
   -------------------------------------------------------------------------- */

.s6m-guides {
  background: #0a0a0a;
  color: #fff;
  padding: 36px 20px;
}

.s6m-guides__inner { max-width: 1280px; margin: 0 auto; }

.s6m-guides__head { text-align: center; margin-bottom: 28px; }

.s6m-guides__title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.s6m-guides__sub {
  margin: 8px 0 0;
  color: #b3b3b3;
  font-size: 0.9rem;
}

.s6m-guides__all {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.s6m-guides__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.s6m-guides__col-head {
  color: #888;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.s6m-guides__list { list-style: none; margin: 0; padding: 0; line-height: 2; }

.s6m-guides__link {
  color: #e5e5e5;
  text-decoration: none;
  font-size: 0.92rem;
}

.s6m-guides__link:hover { color: var(--6m-signal); }

/* --------------------------------------------------------------------------
   2. FOOTER (§3.5.1)
   -------------------------------------------------------------------------- */

.s6m-footer {
  background: #0a0a0a;
  color: #fff;
  padding: 48px 18px 130px;      /* extra bottom reserves the tab bar on mobile */
}

@media (min-width: 768px) {
  .s6m-footer { padding: 80px 48px 56px; }
}

.s6m-footer__inner { max-width: 1440px; margin: 0 auto; }

.s6m-footer__top {
  display: grid;
  /* minmax(0,…): a bare 1fr track cannot shrink below its content's min-width,
     which blew the signup row past the viewport on phones. */
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

@media (min-width: 900px) {
  .s6m-footer__top {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
    gap: 64px;
    align-items: start;
  }
}

.s6m-footer__lead {
  margin: 0;
  font-family: var(--6m-display);
  font-size: clamp(48px, 11vw, 112px);
  line-height: 0.92;
  text-transform: uppercase;
  color: #fff;
}

.s6m-footer__accent { color: var(--6m-signal); }

.s6m-footer__body {
  font-size: 13px;
  color: rgb(255 255 255 / 0.65);
  margin-top: 16px;
  line-height: 1.5;
  max-width: 480px;
}

@media (min-width: 768px) {
  .s6m-footer__body { font-size: 15px; }
}

.s6m-footer__signup {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  max-width: 480px;
}

/* Specificity note: Kadence's global.min.css styles bare `input[type=email]`
   with a white background and a #cbd5e0 border. Scoping through `.s6m-footer`
   beats it without !important. */
.s6m-footer .s6m-footer__email {
  flex: 1;
  min-width: 0;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.18);
  color: #fff;
  padding: 14px 16px;
  font-size: 14px;
  font-family: var(--6m-sans);
  border-radius: 2px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s, background 0.2s;
}

.s6m-footer .s6m-footer__email::placeholder { color: rgb(255 255 255 / 0.5); }
.s6m-footer .s6m-footer__email:hover { border-color: rgb(255 255 255 / 0.35); }
.s6m-footer .s6m-footer__email:focus { border-color: var(--6m-signal); background: rgb(255 255 255 / 0.08); }

.s6m-footer__socials { margin-top: 20px; display: flex; gap: 10px; }

.s6m-footer__social {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.s6m-footer__social:hover {
  background: var(--6m-signal);
  border-color: var(--6m-signal);
  color: #0a0a0a;
  transform: translateY(-1px);
}

.s6m-footer__app { margin-top: 32px; max-width: 300px; }

.s6m-footer__app-title {
  margin: 0;
  font-family: var(--6m-sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.s6m-footer__app-description {
  margin: 8px 0 0;
  color: rgb(255 255 255 / 0.65);
  font-size: 13px;
  line-height: 1.5;
}

.s6m-footer__app-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 116px;
  margin-top: 18px;
  color: #fff;
  text-decoration: none;
}

.s6m-footer__app-qr img { display: block; width: 100%; height: auto; }

.s6m-footer__app-store-label {
  margin-top: 10px;
  font-family: var(--6m-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.s6m-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 18px;
}

@media (min-width: 600px) {
  .s6m-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
}

.s6m-footer__col-head { color: var(--6m-signal); margin-bottom: 14px; }

.s6m-footer__link {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  color: rgb(255 255 255 / 0.7);
  text-decoration: none;
  transition: color 0.2s;
  overflow-wrap: break-word;
}

.s6m-footer__link:hover { color: var(--6m-signal); }

.s6m-footer__locale { margin-top: 12px; }

.s6m-footer .s6m-footer__locale-select {
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.18);
  color: #fff;
  padding: 10px 28px 10px 12px;
  font-size: 12px;
  font-family: var(--6m-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  border-radius: 2px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%23ffffff' stroke-width='2'><polyline points='1 1, 5 5, 9 1'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  max-width: 100%;
}

.s6m-footer .s6m-footer__locale-select:focus { border-color: var(--6m-signal); }
.s6m-footer .s6m-footer__locale-select option { color: #0a0a0a; }

.s6m-footer__pay {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.s6m-footer__pay-label { color: rgb(255 255 255 / 0.55); }

.s6m-footer__pay-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.s6m-footer__pay-icon {
  height: 22px;
  width: auto;
  background: #fff;
  border-radius: 3px;
  padding: 2px;
}

.s6m-footer__legal {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--6m-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.s6m-footer__legal a { color: rgb(255 255 255 / 0.5); text-decoration: none; }
.s6m-footer__legal a:hover { color: var(--6m-signal); }

.s6m-footer__bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-family: var(--6m-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgb(255 255 255 / 0.5);
}

/* --------------------------------------------------------------------------
   3. BOTTOM TAB BAR (§3.6) — mobile only.
   -------------------------------------------------------------------------- */

.s6m-tabbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--layer-window-overlay);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid var(--6m-line);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.s6m-tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  color: var(--6m-muted);
  text-decoration: none;
}

.s6m-tabbar__item.is-active { color: var(--6m-ink); }

.s6m-tabbar__label {
  font-family: var(--6m-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

@media (min-width: 768px) {
  .s6m-tabbar { display: none; }
}
