/* ============================================================
   uicompose — Unified Site Footer (matches index visual style)
   Tokens are intentionally aligned with site-header.css
   ============================================================ */

:root {
  --uic-f-line: #e6e6e6;
  --uic-f-line-soft: #f0edf4;
  --uic-f-ink: #000;
  --uic-f-body: rgba(0, 0, 0, .68);
  --uic-f-muted: rgba(0, 0, 0, .4);
  --uic-f-purple: #8735ee;
  --uic-f-purple-hover: #a852ea;
  --uic-f-ink-dark: #1a1620;
  --uic-f-soft: #f4f4f5;
  --uic-f-ease: cubic-bezier(.22, 1, .36, 1);
  --uic-f-font: "Inter Display", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---- Footer container ---- */

.footer {
  width: min(1220px, calc(100% - 64px)) !important;
  margin: 0 auto !important;
  padding: 56px 0 40px !important;
  border-top: 1px solid var(--uic-f-line) !important;
  font-family: var(--uic-f-font) !important;
  color: var(--uic-f-ink) !important;
  background: transparent !important;
}

.footer .footer-bottom {
  padding-top: 0 !important;
}

/* ---- Newsletter row (sits ABOVE the footer on every page) ---- */

.newsletter {
  width: min(1220px, calc(100% - 64px)) !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1fr 540px !important;
  gap: 64px !important;
  padding: 84px 0 76px !important;
  align-items: end !important;
  font-family: var(--uic-f-font) !important;
  color: var(--uic-f-ink) !important;
  background: transparent !important;
}

.newsletter h2 {
  margin: 0 !important;
  font-family: var(--uic-f-font) !important;
  font-size: 52px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.025em !important;
  font-weight: 500 !important;
  color: var(--uic-f-ink) !important;
}

.newsletter label {
  display: block !important;
  margin: 0 0 16px !important;
  color: var(--uic-f-body) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

.newsletter form > div {
  height: 60px !important;
  display: grid !important;
  grid-template-columns: 1fr 140px !important;
  gap: 12px !important;
}

.newsletter input {
  width: 100% !important;
  height: 100% !important;
  border: 1px solid var(--uic-f-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  padding: 0 22px !important;
  font-family: var(--uic-f-font) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--uic-f-ink) !important;
  outline: 0 !important;
  transition: border-color .25s var(--uic-f-ease), box-shadow .25s var(--uic-f-ease);
}

.newsletter input::placeholder {
  color: var(--uic-f-muted) !important;
}

.newsletter input:focus {
  border-color: var(--uic-f-purple) !important;
  box-shadow: 0 0 0 3px rgba(135, 53, 238, .12) !important;
}

.newsletter button {
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--uic-f-purple), #a352ef) !important;
  color: #fff !important;
  font-family: var(--uic-f-font) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--uic-f-ease), box-shadow .3s var(--uic-f-ease) !important;
}

.newsletter button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 0 28%, rgba(255, 255, 255, .25) 42%, transparent 56%);
  transform: translateX(-120%);
  transition: transform .7s var(--uic-f-ease);
}

.newsletter button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 32px rgba(135, 53, 238, .3) !important;
}

.newsletter button:hover::before {
  transform: translateX(120%);
}

/* ---- Footer bottom (logo + nav columns) ---- */

.footer .footer-bottom {
  padding-top: 56px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 40px !important;
}

.footer .footer-bottom .brand {
  display: inline-flex !important;
  align-items: center !important;
  height: 36px !important;
  width: fit-content !important;
  font-size: 0 !important;
  line-height: 0 !important;
  margin: 0 !important;
}

.footer .footer-bottom .brand img {
  display: block !important;
  height: 32px !important;
  width: auto !important;
}

.footer .footer-bottom .brand .brand-mark,
.footer .footer-bottom .brand > span {
  display: none !important;
}

.footer .footer-nav {
  display: grid !important;
  grid-template-columns: 1fr 1.3fr !important;
  gap: 56px !important;
  font-family: var(--uic-f-font) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

.footer .footer-nav > div {
  display: grid !important;
  gap: 18px !important;
  align-content: start !important;
}

.footer .footer-nav a {
  color: var(--uic-f-ink) !important;
  font-family: var(--uic-f-font) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: color .25s var(--uic-f-ease);
}

.footer .footer-nav a:hover {
  color: var(--uic-f-purple-hover) !important;
}

.footer .legal-links {
  display: flex !important;
  gap: 22px !important;
  align-items: center !important;
  justify-self: end !important;
  align-self: start !important;
}

.footer .legal-links span {
  color: var(--uic-f-muted) !important;
}

/* ---- Copyright row ---- */

.footer .copyright {
  margin-top: 72px !important;
  padding-top: 22px !important;
  border-top: 1px solid var(--uic-f-line) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-family: var(--uic-f-font) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--uic-f-muted) !important;
}

.footer .copyright > span {
  color: var(--uic-f-muted) !important;
}

.footer .copyright em {
  color: var(--uic-f-muted) !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

.footer .copyright a {
  color: var(--uic-f-ink) !important;
  font-weight: 500 !important;
  transition: color .25s var(--uic-f-ease);
}

.footer .copyright a:hover {
  color: var(--uic-f-purple-hover) !important;
}

.footer .copyright b {
  width: 32px !important;
  height: 32px !important;
  margin-left: 10px !important;
  border-radius: 50% !important;
  background: var(--uic-f-ink-dark) !important;
  color: #fff !important;
  display: inline-grid !important;
  place-items: center !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  transition: background .25s var(--uic-f-ease), transform .25s var(--uic-f-ease);
}

.footer .copyright a:hover b {
  background: var(--uic-f-purple) !important;
  transform: translateY(-3px) !important;
}

/* ---- Responsive ---- */

@media (max-width: 1050px) {
  .newsletter {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .newsletter h2 {
    font-size: 38px !important;
  }

  .footer .footer-bottom {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .footer .footer-nav {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
}

@media (max-width: 720px) {
  .footer {
    padding-bottom: 52px !important;
  }

  .newsletter {
    padding: 44px 0 !important;
  }

  .newsletter h2 {
    font-size: 30px !important;
  }

  .newsletter form > div {
    grid-template-columns: 1fr !important;
    height: auto !important;
    gap: 10px !important;
  }

  .newsletter input,
  .newsletter button {
    height: 52px !important;
  }

  .footer .footer-nav {
    grid-template-columns: 1fr !important;
  }

  .footer .legal-links {
    justify-self: start !important;
    flex-wrap: wrap !important;
  }

  .footer .copyright {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }
}

/* ============================================================
   Cross-page consistency (Phase 1 fix)
   Inner pages don't load home.css, so the body gutter rules I'd
   added there weren't reaching them — product/product-details/
   privacy/terms had their footer logo flush at left 0 on mobile.
   Mirroring the rules here lets EVERY page (homepage + inner pages)
   share the same footer + newsletter layout. body-prefixed selectors
   beat the legacy higher-specificity rules above.
   ============================================================ */
body footer.footer {
  width: min(1220px, 100%) !important;
  max-width: 1220px !important;
  margin: 0 auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  border-top: 0 !important;
  box-sizing: border-box;
}
body section.newsletter {
  width: min(1220px, calc(100% - 64px)) !important;
  max-width: 1220px !important;
  margin: 0 auto !important;
  padding-left: clamp(24px, 4vw, 48px) !important;
  padding-right: clamp(24px, 4vw, 48px) !important;
  box-sizing: border-box !important;
}
