/* ═══════════════════════════════════════════════════════════════════════
   TimeterestPay — Footer redesign
   Brand: navy #192F7A · red #F0445E  |  matches tp-header design system
   ═══════════════════════════════════════════════════════════════════════ */
.tp-footer {
  --tp-navy: #192F7A;
  --tp-red: #F0445E;
  --tp-ink: #141a2e;
  --tp-mut: #93a1c4;
  --tp-line: rgba(255, 255, 255, .10);
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(240, 68, 94, .16), transparent 60%),
    radial-gradient(900px 480px at -10% 10%, rgba(62, 88, 200, .22), transparent 55%),
    linear-gradient(180deg, #101a45 0%, #0c1436 55%, #0a102e 100%);
  color: #c9d2ec;
  overflow: hidden;
}

/* ── CTA band ──────────────────────────────────────────────────────── */
.tp-footer-cta {
  padding: clamp(44px, 6vw, 84px) 0 0;
}

.tp-footer-cta-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: clamp(30px, 4.5vw, 54px) clamp(26px, 4vw, 60px);
  border-radius: 28px;
  background: linear-gradient(120deg, #1c2f7c 0%, #14215c 45%, #1b2150 100%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 80px rgba(6, 10, 32, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow: hidden;
}

.tp-cta-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.tp-cta-glow--a {
  width: 340px; height: 340px;
  right: -80px; top: -140px;
  background: rgba(240, 68, 94, .35);
}
.tp-cta-glow--b {
  width: 300px; height: 300px;
  left: -100px; bottom: -160px;
  background: rgba(74, 104, 230, .35);
}

.tp-footer-cta-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.tp-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffb3c0;
  background: rgba(240, 68, 94, .14);
  border: 1px solid rgba(240, 68, 94, .30);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.tp-cta-title {
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.12;
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.tp-cta-text {
  font-size: 15.5px;
  line-height: 1.7;
  color: #aab6dd;
  margin: 0;
  max-width: 620px;
}

.tp-footer-cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.tp-cta-btn.tp-btn-solid {
  background: linear-gradient(135deg, #F0445E 0%, #d62a54 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(240, 68, 94, .35);
}
.tp-cta-btn.tp-btn-solid:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(240, 68, 94, .45);
}
.tp-cta-btn.tp-btn-ghost {
  background: rgba(255, 255, 255, .10);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.tp-cta-btn.tp-btn-ghost:hover {
  background: rgba(255, 255, 255, .20);
  border-color: rgba(255, 255, 255, .7);
  color: #ffffff !important;
  transform: translateY(-3px);
}

/* ── Main footer grid ──────────────────────────────────────────────── */
.tp-footer-main {
  padding: clamp(48px, 6vw, 84px) 0 56px;
}

.tp-footer-grid {
  display: grid;
  grid-template-columns: 1.55fr .8fr .9fr 1fr 1.15fr;
  gap: clamp(28px, 3.5vw, 56px);
}

.tp-footer-title {
  position: relative;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 22px;
  letter-spacing: .02em;
}
.tp-footer-title::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg, #F0445E, rgba(240, 68, 94, .2));
}

/* Brand column */
.tp-footer-logo img {
  height: 46px;
  width: auto;
  display: block;
  margin-bottom: 20px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35));
}

.tp-footer-about {
  font-size: 14.5px;
  line-height: 1.75;
  color: #aab6dd;
  margin: 0 0 26px;
  max-width: 380px;
}

.tp-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tp-footer-contact li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tp-fc-icon {
  flex: 0 0 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 17px;
  color: #ffb3c0;
  background: rgba(240, 68, 94, .12);
  border: 1px solid rgba(240, 68, 94, .22);
}
.tp-fc-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tp-fc-meta small {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6f7cab;
}
.tp-fc-meta a {
  font-size: 14.5px;
  font-weight: 700;
  color: #e8ecff;
  text-decoration: none;
  transition: color .2s ease;
}
.tp-fc-meta a:hover { color: #F0445E; }
.tp-fc-addr {
  font-size: 14px;
  line-height: 1.5;
  color: #c9d2ec;
  max-width: 240px;
}

/* Link columns */
.tp-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.tp-footer-links li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: #aab6dd;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}
.tp-footer-links li a i {
  font-size: 11px;
  color: #F0445E;
  opacity: .85;
  transition: transform .2s ease;
}
.tp-footer-links li a:hover {
  color: #fff;
  transform: translateX(4px);
}
.tp-footer-links li a:hover i { transform: translateX(2px); }

/* App column */
.tp-footer-app-text {
  font-size: 14px;
  line-height: 1.7;
  color: #aab6dd;
  margin: 0 0 18px;
  max-width: 260px;
}
.tp-footer-apps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tp-app-badge {
  display: inline-block;
  max-width: 190px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  background: rgba(255, 255, 255, .04);
}
.tp-app-badge img {
  width: 100%;
  height: auto;
  display: block;
}
.tp-app-badge:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 68, 94, .5);
  box-shadow: 0 12px 26px rgba(6, 10, 32, .5);
}

.tp-footer-nqr {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px dashed rgba(255, 255, 255, .18);
}
.tp-nqr-mark {
  flex: 0 0 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 19px;
  color: #fff;
  background: linear-gradient(135deg, #F0445E, #d62a54);
  box-shadow: 0 8px 18px rgba(240, 68, 94, .35);
}
.tp-nqr-txt {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}
.tp-nqr-txt small {
  font-size: 11.5px;
  font-weight: 500;
  color: #7f8dbd;
}

/* Newsletter column */
.tp-footer-news-text {
  font-size: 14px;
  line-height: 1.7;
  color: #aab6dd;
  margin: 0 0 20px;
}
.tp-news-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tp-news-field {
  position: relative;
}
.tp-news-field > i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: #7f8dbd;
  pointer-events: none;
  transition: color .2s ease;
}
.tp-news-field:focus-within > i { color: #F0445E; }
.tp-news-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.tp-news-input::placeholder { color: #7f8dbd; }
.tp-news-input:focus {
  border-color: rgba(240, 68, 94, .6);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 4px rgba(240, 68, 94, .12);
}
.tp-news-input.invalid-feedback { display: block; margin-top: 6px; font-size: 12px; }
.tp-news-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #F0445E 0%, #d62a54 100%);
  box-shadow: 0 12px 28px rgba(240, 68, 94, .30);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tp-news-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(240, 68, 94, .42);
}

/* ── Bottom bar ────────────────────────────────────────────────────── */
.tp-footer-bottom {
  border-top: 1px solid var(--tp-line);
  padding: 26px 0 64px;
  background: rgba(5, 8, 24, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.tp-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.tp-footer-copy {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #7f8dbd;
  padding-right: 8px;
}
.tp-footer-site {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.tp-footer-site:hover { color: #F0445E; }
.tp-footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.tp-footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}
.tp-footer-social li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 15px;
  color: #aab6dd;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  text-decoration: none;
  transition: all .25s ease;
}
.tp-footer-social li a:hover {
  color: #fff;
  background: linear-gradient(135deg, #F0445E, #d62a54);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(240, 68, 94, .35);
}
.tp-footer-secure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #7f8dbd;
}
.tp-footer-secure i { color: #3dd68c; font-size: 14px; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .tp-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
  .tp-footer-news { grid-column: 1 / -1; }
  .tp-footer-news-text { max-width: 420px; }
  .tp-news-form { flex-direction: row; flex-wrap: wrap; }
  .tp-news-form .tp-news-field { flex: 1 1 220px; }
  .tp-news-form .tp-news-submit { flex: 0 0 auto; }
}
@media (max-width: 900px) {
  .tp-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }
  .tp-footer-brand { grid-column: 1 / -1; }
  .tp-footer-news { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .tp-footer-grid { grid-template-columns: 1fr; }
  .tp-footer-cta-card { flex-direction: column; align-items: flex-start; }
  .tp-footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Footer never hides behind the reveal engine ───────────────────────
   The footer sits below the fold; if the IntersectionObserver misses it
   (slow load, cached layout edge case), content must still be visible. */
html.js .tp-footer [data-reveal],
html.js .tp-footer [data-reveal].is-visible {
  opacity: 1 !important;
  transform: none !important;
}
