body.fn-funnel,
body.fn-acquisition,
body.bl-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#fn-footer-mount {
  margin-top: auto;
}
.fn-footer {
  position: relative;
  margin-top: auto;
  background: #04060f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.875rem;
  line-height: 1.6;
}

.fn-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 58, 58, 0.45), transparent);
}

.fn-footer__inner {
  width: min(1180px, 92vw);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2rem);
}

.fn-footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 2.5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .fn-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .fn-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  }
}

.fn-footer__brand img {
  height: 36px;
  width: auto;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.fn-footer__tagline {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, "Montserrat", sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.fn-footer__sub {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 28ch;
}

.fn-footer__heading {
  margin: 0 0 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.fn-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fn-footer__list li {
  margin-bottom: 0.5rem;
}

.fn-footer__list a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.fn-footer__list a:hover {
  color: #fff;
  transform: translateX(3px);
}

.fn-footer__contact a {
  color: rgba(255, 255, 255, 0.75);
  word-break: break-all;
}

.fn-footer__contact a:hover {
  color: var(--fn-accent, #e93a3a);
}

.fn-footer__address {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

.fn-footer__newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 280px;
}

/* Shared newsletter form (footer + blog) */
.fn-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 100%;
}

.fn-newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fn-newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(233, 58, 58, 0.5);
  box-shadow: 0 0 0 3px rgba(233, 58, 58, 0.12);
}

.fn-newsletter-form input[type="email"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fn-newsletter-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #f04a4a, #e93a3a);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.fn-newsletter-form__btn:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.fn-newsletter-form__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.fn-newsletter-form__spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: fn-nl-spin 0.7s linear infinite;
}

.fn-newsletter-form.is-loading .fn-newsletter-form__spinner {
  display: inline-block;
}

.fn-newsletter-form.is-loading .fn-newsletter-form__label {
  opacity: 0.85;
}

@keyframes fn-nl-spin {
  to { transform: rotate(360deg); }
}

.fn-newsletter-form__msg {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  min-height: 1rem;
}

.fn-newsletter-form__msg--success {
  color: #6ee7a0;
}

.fn-newsletter-form__msg--error {
  color: #ff8a8a;
}

/* Premium footer newsletter box */
.fn-newsletter-box {
  margin-top: 0.25rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.fn-newsletter-box__desc {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
}

.fn-newsletter-box__hint {
  margin: 0.45rem 0 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.32);
  line-height: 1.4;
}

.fn-newsletter-form--footer .fn-newsletter-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

@media (min-width: 480px) {
  .fn-newsletter-form--footer .fn-newsletter-form__row {
    flex-direction: row;
    align-items: stretch;
  }

  .fn-newsletter-form--footer input[type="email"] {
    flex: 1;
    min-width: 0;
  }

  .fn-newsletter-form--footer .fn-newsletter-form__btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

.fn-newsletter-form input[type="email"][aria-invalid="true"] {
  border-color: rgba(255, 100, 100, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 100, 100, 0.12);
}

.fn-newsletter-form.is-success input[type="email"] {
  border-color: rgba(110, 231, 160, 0.45);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fn-footer__newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 0.78rem;
}

/* legacy footer newsletter button — use .fn-newsletter-form__btn */
.fn-footer__newsletter-form button {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.35);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: not-allowed;
}

.fn-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.fn-footer__social a,
.fn-footer__social-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.fn-footer__social a:hover,
.fn-footer__social-link:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: rgba(233, 58, 58, 0.45);
  background: rgba(233, 58, 58, 0.12);
  color: #fff;
  box-shadow: 0 8px 24px rgba(233, 58, 58, 0.15);
}

.fn-footer__social a:focus-visible,
.fn-footer__social-link:focus-visible {
  outline: 2px solid rgba(233, 58, 58, 0.6);
  outline-offset: 2px;
}

.fn-footer__social svg {
  width: 18px;
  height: 18px;
}

.fn-footer__divider {
  height: 1px;
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 1.25rem;
  background: rgba(255, 255, 255, 0.08);
}

.fn-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
}

.fn-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.fn-footer__legal a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.fn-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* —— Cookie consent —— */
.fn-cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.fn-cookie-overlay.is-visible {
  opacity: 1;
  pointer-events: none;
}

.fn-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 9995;
  width: min(560px, calc(100vw - 1.5rem));
  padding: 0;
  transform: translate(-50%, 120%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.fn-cookie-banner.is-visible {
  transform: translate(-50%, calc(-1rem - env(safe-area-inset-bottom, 0px)));
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 769px) {
  .fn-cookie-banner {
    bottom: 1.5rem;
    width: min(480px, calc(100vw - 2rem));
  }

  .fn-cookie-banner.is-visible {
    transform: translate(-50%, 0);
  }
}

.fn-cookie-banner__glass {
  padding: clamp(1.25rem, 3vw, 1.5rem);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 21, 56, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.fn-cookie-banner__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display, "Montserrat", sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.fn-cookie-banner__text {
  margin: 0 0 1.15rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}

.fn-cookie-banner__text a {
  color: var(--fn-accent, #e93a3a);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fn-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fn-cookie-btn {
  flex: 1;
  min-width: calc(50% - 0.25rem);
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.fn-cookie-btn:active {
  transform: scale(0.98);
}

.fn-cookie-btn--primary {
  background: linear-gradient(135deg, #f04a4a, #e93a3a);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.fn-cookie-btn--primary:hover {
  filter: brightness(1.06);
}

.fn-cookie-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
}

.fn-cookie-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.fn-cookie-btn--text {
  flex: 1 1 100%;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: none;
  min-width: 100%;
}

.fn-cookie-btn--text:hover {
  color: #fff;
}

/* Preferences panel */
.fn-cookie-prefs {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.fn-cookie-prefs.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.fn-cookie-prefs__panel {
  width: min(420px, 100%);
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 28, 0.96);
  backdrop-filter: blur(24px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(12px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.fn-cookie-prefs.is-visible .fn-cookie-prefs__panel {
  transform: none;
}

.fn-cookie-prefs__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fn-cookie-prefs__row:last-of-type {
  border-bottom: none;
}

.fn-cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.25s ease;
}

.fn-cookie-toggle[aria-checked="true"] {
  background: var(--fn-accent, #e93a3a);
}

.fn-cookie-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s ease;
}

.fn-cookie-toggle[aria-checked="true"]::after {
  transform: translateX(20px);
}

/* Back to top */
.fn-back-top {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 800;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 21, 56, 0.9);
  backdrop-filter: blur(12px);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  cursor: pointer;
}

.fn-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.fn-back-top:hover {
  border-color: rgba(233, 58, 58, 0.4);
  background: rgba(233, 58, 58, 0.15);
}

body.has-cookie-banner .fn-back-top {
  bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 769px) {
  body.has-cookie-banner .fn-back-top {
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .fn-cookie-banner,
  .fn-cookie-prefs,
  .fn-back-top,
  .fn-footer__list a {
    transition: none;
  }
}

/* Floating WhatsApp — shared across funnel + blog */
.fn-wa-float {
  position: fixed;
  right: 1rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 880;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.fn-wa-float:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.fn-wa-float svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

body.has-cookie-banner .fn-wa-float {
  bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 769px) {
  .fn-wa-float {
    right: 1.25rem;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }

  body.has-cookie-banner .fn-wa-float {
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }
}

body.bl-page .fn-back-top {
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 769px) {
  body.bl-page .fn-back-top {
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
}
