/*
 * Marketing footer, shared by public marketing and Docs pages
 * (templates/includes/marketing_footer.html). Class names keep the original
 * home-footer-* prefix.
 */

/* A vertical wordmark on the left, with one quiet row of tagline and legal
   links set along its foot. No link columns and no divider. */
.home-footer {
  background: var(--varial-marketing-dark, #232629);
  color: var(--varial-white, #ffffff);
  padding: 2.5rem clamp(1.5rem, 9vw, 9rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
  row-gap: 1rem;
}

.home-footer > #newsletter-signup {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.home-footer-row {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

.home-footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.home-footer-legal {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.home-footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* !important on color: the global .content a rule otherwise wins and paints
   these Bootstrap link blue. */
.home-footer-legal-link {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none;
  transition: color 0.15s;
}

.home-footer-legal-link:hover {
  color: var(--varial-white, #ffffff) !important;
}

/* Turned 90 degrees to read bottom to top: vertical writing mode lays it out
   as a tall, narrow column, and the half turn flips it to read upward. */
.home-footer-wordmark {
  grid-column: 1;
  grid-row: 1 / span 2;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--varial-marketing-serif, Georgia, serif);
  font-weight: 700;
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--varial-white, #ffffff) !important;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.home-footer-wordmark:focus-visible {
  outline: 3px solid var(--varial-marketing-x-accent, #1fcaa0);
  outline-offset: 4px;
}

/* Footer newsletter sign-up (#3686) — sits under the brand tagline in the dark
   footer, so inputs use a translucent-on-dark treatment to match the chrome.
   Tightened to a single inline row in #3731; the consent copy that used to
   sit below the footer divider now lives in the info tooltip instead. */
.home-footer-signup {
  margin-top: 1.25rem;
  max-width: 26rem;
}

.home-footer-signup-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  white-space: nowrap;
}

.home-footer-signup-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
}

/* Input + button rendered as one joined control (#3731) rather than two
   separate pieces, so the row reads as a single "type and go" field. */
.home-footer-signup-group {
  flex: 1 1 auto;
  min-width: 13rem;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 0.15s, background 0.15s;
}

.home-footer-signup-group:focus-within {
  border-color: var(--varial-amber, #f59e0b);
  background: rgba(255, 255, 255, 0.1);
}

.home-footer-signup-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--varial-white, #ffffff);
  background: none;
  border: none;
  border-radius: 0.375rem 0 0 0.375rem;
}

.home-footer-signup-input:focus {
  outline: none;
}

.home-footer-signup-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.home-footer-signup-btn {
  flex: 0 0 auto;
  padding: 0.5rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--chart-tech-black-coal, #1c1917);
  background: var(--varial-amber, #f59e0b);
  border: none;
  border-radius: 0 0.3125rem 0.3125rem 0;
  cursor: pointer;
  transition: filter 0.15s;
}

.home-footer-signup-btn:hover {
  filter: brightness(1.08);
}

.home-footer-signup-thanks {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.home-footer-signup-error {
  font-size: 0.75rem;
  color: #fca5a5;
  margin: 0.4rem 0 0;
}

@media (max-width: 480px) {
  .home-footer {
    padding-inline: 1rem;
  }

  .home-footer-copy {
    flex-basis: 100%;
  }
}
