/* Site footer (scoped to footer.pt-footer-new) + sticky bar (#sbar) — loads globally. */

/* ============ FOOTER ============ */
footer.pt-footer-new {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 32px 32px;
}

footer.pt-footer-new .footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

footer.pt-footer-new .footer-grid {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

footer.pt-footer-new .footer-brand .logo {
  font-size: 28px;
  margin-bottom: 20px;
  display: inline-block;
}

footer.pt-footer-new .footer-brand .logo .logo-t {
  color: #fff;
}

footer.pt-footer-new .footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .6);
  max-width: 360px;
  margin-bottom: 24px;
}

footer.pt-footer-new .footer-trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
}

footer.pt-footer-new .footer-trust .stars {
  color: var(--brand-trust);
  letter-spacing: 1px;
}

footer.pt-footer-new .footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-lime);
  margin-bottom: 20px;
  letter-spacing: .02em;
}

footer.pt-footer-new .footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
  transition: color 200ms;
}

footer.pt-footer-new .footer-col a:hover {
  color: var(--bg);
}

footer.pt-footer-new .footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  flex-wrap: wrap;
  gap: 16px;
}

footer.pt-footer-new .footer-bottom .social {
  display: flex;
  gap: 16px;
}

footer.pt-footer-new .footer-bottom a {
  color: rgba(255, 255, 255, .5);
  transition: color 200ms;
}

footer.pt-footer-new .footer-bottom a:hover {
  color: var(--bg);
}

@media (max-width: 900px) {
  footer.pt-footer-new .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  footer.pt-footer-new .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ============ STICKY BAR ============ */
#sbar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 90;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-pill);
  padding: 12px 12px 12px 24px;
  display: none;
  align-items: center;
  gap: 20px;
  box-shadow: 0 12px 40px rgba(10, 14, 20, .25);
  transition: transform 500ms var(--ease-bounce);
  max-width: calc(100% - 32px);
}

#sbar.show {
  display: inline-flex;
  transform: translateX(-50%) translateY(0);
}

#sbar .txt {
  font-size: 14px;
  font-weight: 500;
}

#sbar .txt b {
  color: var(--brand-lime);
  font-weight: 600;
}

#sbar button,
#sbar .pt-sbar-cta {
  background: var(--brand-lime);
  color: var(--ink);
  border: none;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 300ms;
}

#sbar button:hover,
#sbar .pt-sbar-cta:hover {
  background: var(--bg);
}

#sbar .txt {
  min-width: 0;
}

@media (max-width: 640px) {
  #sbar {
    bottom: 12px;
    gap: 10px;
    padding: 8px 8px 8px 16px;
    /* Stretch to near-full viewport so text has room to stay single-line. */
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }

  #sbar .txt {
    font-size: 12px;
    line-height: 1.3;
    min-width: 0;
    flex: 1;
  }

  #sbar button,
  #sbar .pt-sbar-cta {
    padding: 9px 14px;
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  /* Drop the trailing microcopy on very narrow viewports — the lead
   * claim ("92% pass on the first try") is what converts. */
  #sbar .txt .secondary {
    display: none;
  }
}

@media (max-width: 480px) {
  footer.pt-footer-new { padding: 56px 16px 28px; }
  footer.pt-footer-new .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  footer.pt-footer-new .footer-brand .logo { font-size: 24px; }
  footer.pt-footer-new .footer-bottom { flex-direction: column; text-align: center; gap: 14px; }
}
