 /* =========================================================
   ArticlePaid Footer — V2 (all-in-one, namespaced .fp-*)
   Drop-in: zero global selectors, won't conflict with any CSS.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Inter:wght@400;500;600;700&display=swap');

.fp-footer {
  --fp-ink: #0f172a;
  --fp-accent: #ff5a1f;
  --fp-green: #10b981;
  --fp-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --fp-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset only inside our scope */
.fp-footer, .fp-footer * { box-sizing: border-box; }

/* Hidden helper */
.fp-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ===== Footer shell ===== */
.fp-footer {
  position: relative;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 90, 31, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 184, 77, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, #0f172a 0%, #0a0e1a 100%);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--fp-sans);
  -webkit-font-smoothing: antialiased;
  padding: 80px 0 32px;
  margin-top: 80px;
  overflow: hidden;
}
.fp-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 31, 0.5) 50%, transparent);
}

.fp-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ===== Top: brand + columns ===== */
.fp-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 2fr);
  gap: 80px;
  margin-bottom: 64px;
}

.fp-brand { max-width: 420px; }

.fp-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--fp-serif);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.025em;
  color: #fff;
  text-decoration: none;
  margin-bottom: 20px;
  line-height: 1;
}
.fp-logo span {
  color: var(--fp-accent);
  font-weight: 600;
  margin-left: 1px;
}
.fp-logo:hover { opacity: 0.85; }

.fp-tagline {
  font-family: var(--fp-serif);
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.fp-tagline em {
  font-style: italic;
  font-weight: 400;
  color: var(--fp-accent);
}

.fp-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 28px;
}

/* CTA */
.fp-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.fp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 999px;
  font: 600 14px var(--fp-sans);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.fp-btn--primary { background: var(--fp-accent); color: #fff; }
.fp-btn--primary:hover {
  background: #fff; color: var(--fp-ink);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}
.fp-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.fp-btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Social */
.fp-social { display: flex; gap: 8px; flex-wrap: wrap; }
.fp-social__link {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all .2s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.fp-social__link svg { width: 16px; height: 16px; }
.fp-social__link:hover {
  background: var(--fp-accent);
  color: #fff;
  border-color: var(--fp-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 90, 31, 0.3);
}

/* Link columns */
.fp-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.fp-col__title {
  font-family: var(--fp-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fp-accent);
  margin: 0 0 18px;
}
.fp-col__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 12px;
}
.fp-col__list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .15s, transform .15s;
  display: inline-flex;
  align-items: center;
  position: relative;
}
.fp-col__list a::before {
  content: "→";
  position: absolute;
  left: -16px;
  opacity: 0;
  color: var(--fp-accent);
  transition: all .2s ease;
  transform: translateX(-4px);
}
.fp-col__list a:hover {
  color: #fff;
  transform: translateX(6px);
}
.fp-col__list a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Newsletter strip ===== */
.fp-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: 32px;
  align-items: center;
  padding: 32px 36px;
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.12) 0%, rgba(255, 184, 77, 0.06) 100%);
  border: 1px solid rgba(255, 90, 31, 0.2);
  border-radius: 20px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.fp-newsletter::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.fp-newsletter__copy { position: relative; z-index: 2; }
.fp-newsletter h3 {
  font-family: var(--fp-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.2;
}
.fp-newsletter p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.5;
}
.fp-newsletter__form {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.fp-newsletter__form input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: 500 14px var(--fp-sans);
  outline: none;
  transition: all .2s;
}
.fp-newsletter__form input::placeholder { color: rgba(255, 255, 255, 0.4); }
.fp-newsletter__form input:focus {
  border-color: var(--fp-accent);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.15);
}

/* ===== Bottom bar ===== */
.fp-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.fp-copy {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.fp-tagline-bottom {
  font-family: var(--fp-serif);
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
}
.fp-dot {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}
.fp-bottom__meta {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.fp-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}
.fp-status__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fp-green);
  position: relative;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: fp-pulse 2.5s infinite;
}
@keyframes fp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.fp-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  transition: color .15s;
}
.fp-rating:hover { color: #fff; }
.fp-stars {
  color: #facc15;
  letter-spacing: 1px;
  font-size: 13px;
}
.fp-stars__half {
  display: inline-block;
  width: 0.5em;
  overflow: hidden;
  color: #facc15;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .fp-top { grid-template-columns: 1fr; gap: 56px; }
  .fp-brand { max-width: 100%; }
  .fp-newsletter {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px;
  }
}
@media (max-width: 720px) {
  .fp-footer { padding: 60px 0 24px; margin-top: 60px; }
  .fp-cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .fp-tagline { font-size: 1.2rem; }
  .fp-newsletter h3 { font-size: 1.3rem; }
  .fp-newsletter__form { flex-direction: column; }
  .fp-newsletter__form input,
  .fp-newsletter__form button {
    width: 100%;
    justify-content: center;
  }
  .fp-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .fp-container { padding: 0 18px; }
  .fp-cols { grid-template-columns: 1fr; gap: 28px; }
  .fp-cta-row { flex-direction: column; }
  .fp-cta-row .fp-btn { width: 100%; justify-content: center; }
  .fp-newsletter { padding: 24px 20px; }
  .fp-bottom__meta { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .fp-status__dot, .fp-btn, .fp-social__link,
  .fp-col__list a, .fp-newsletter__form input {
    animation: none !important;
    transition: none !important;
  }
}
