/* Shared product-page footer — CRM / ERP / Connect
   All themes share a black surface; accents differ by product.
   Theme via .hx-footer--crm | .hx-footer--erp | .hx-footer--connect | .hx-footer--connect-light */

.hx-footer {
  --hx-fg: #faf9f7;
  --hx-muted: #a1a1aa;
  --hx-faint: #71717a;
  --hx-border: color-mix(in srgb, #faf9f7 10%, transparent);
  --hx-bg: #000000;
  --hx-accent: #ff4301;
  --hx-heading: #faf9f7;
  --hx-link: #d4d4d8;
  --hx-link-hover: #ff4301;
  --hx-max: 72rem;
  --hx-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2rem) clamp(2rem, 4vw, 2.75rem);
  background: var(--hx-bg);
  color: var(--hx-muted);
  border-top: 1px solid var(--hx-border);
  font-family: var(--hx-font);
  -webkit-font-smoothing: antialiased;
}

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

.hx-footer-inner {
  max-width: var(--hx-max);
  margin-inline: auto;
}

.hx-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 2.75rem);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--hx-border);
}

@media (min-width: 640px) {
  .hx-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .hx-footer-grid {
    grid-template-columns: minmax(14rem, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem 2rem;
    align-items: start;
  }
}

.hx-footer-brand {
  max-width: 22rem;
}

.hx-footer-logo {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.5rem;
  color: var(--hx-heading);
  text-decoration: none;
}

.hx-footer-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.hx-footer-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.hx-footer-product {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hx-accent);
  line-height: 1.1;
}

.hx-footer-tagline {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--hx-muted);
  text-wrap: pretty;
}

.hx-footer-col {
  min-width: 0;
}

.hx-footer-heading {
  margin: 0 0 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hx-faint);
}

.hx-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.hx-footer-col a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--hx-link);
  transition: color 0.2s ease;
}

.hx-footer-col a:hover,
.hx-footer-col a:focus-visible {
  color: var(--hx-link-hover);
}

.hx-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding-top: 1.35rem;
  font-size: 0.8rem;
  color: var(--hx-faint);
  background: transparent;
}

.hx-footer-bottom > p {
  margin: 0;
}

.hx-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.hx-footer-legal a {
  color: var(--hx-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.hx-footer-legal a:hover,
.hx-footer-legal a:focus-visible {
  color: var(--hx-link-hover);
}

/* —— Shared black surface tokens —— */
.hx-footer--crm,
.hx-footer--erp,
.hx-footer--connect,
.hx-footer--connect-light,
:root.dark-mode .hx-footer--crm {
  --hx-bg: #000000;
  --hx-fg: #faf9f7;
  --hx-heading: #faf9f7;
  --hx-muted: #a1a1aa;
  --hx-faint: #71717a;
  --hx-border: color-mix(in srgb, #faf9f7 10%, transparent);
  --hx-link: #d4d4d8;
}

/* —— CRM / ERP / Connect pricing: ember accent —— */
.hx-footer--crm,
.hx-footer--erp,
.hx-footer--connect-light,
:root.dark-mode .hx-footer--crm {
  --hx-accent: #ff4301;
  --hx-link-hover: #ff4301;
}

/* —— Connect product: lime accent —— */
.hx-footer--connect {
  --hx-accent: #cff245;
  --hx-link-hover: #cff245;
}
