/* ── Overlay ──────────────────────────────────────────────────────────────── */
#fap-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
  pointer-events: none;
}
#fap-overlay.fap-visible {
  background: rgba(0, 0, 0, 0.65);
  pointer-events: all;
}
#fap-overlay.fap-closing {
  background: rgba(0, 0, 0, 0) !important;
  pointer-events: none;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
#fap-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: 20px;
  padding: 36px 32px 30px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.3s cubic-bezier(.2, .8, .3, 1), transform 0.3s cubic-bezier(.2, .8, .3, 1);
  pointer-events: all;
  max-height: 90dvh;
  overflow-y: auto;
  scrollbar-width: thin;
}
#fap-card.fap-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
#fap-card.fap-closing {
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition-duration: 0.25s;
}

/* ── Close ────────────────────────────────────────────────────────────────── */
#fap-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
#fap-close:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.fap-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.fap-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}
.fap-brand-name {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fap-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

/* ── Typography ───────────────────────────────────────────────────────────── */
.fap-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(19px, 4vw, 23px);
  font-weight: 800;
  line-height: 1.25;
}
.fap-subtitle {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 500;
}
.fap-desc {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13.5px;
  line-height: 1.65;
}

/* ── Features ─────────────────────────────────────────────────────────────── */
.fap-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fap-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13.5px;
}
.fap-feature svg { flex-shrink: 0; width: 22px; height: 22px; }

/* ── CTA ──────────────────────────────────────────────────────────────────── */
.fap-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: filter 0.2s, transform 0.15s;
  margin-bottom: 14px;
}
.fap-cta:hover { filter: brightness(1.12); transform: translateY(-1px); }
.fap-cta:active { transform: translateY(0); filter: brightness(0.95); }

.fap-secondary-cta {
  display: block;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.fap-secondary-cta:hover { color: rgba(255, 255, 255, 0.7); }

/* ── Floating button ──────────────────────────────────────────────────────── */
#fap-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99998;
  padding: 11px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2962ff, #00b4d8);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(41, 98, 255, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fap-float-in 0.5s cubic-bezier(.2, .8, .3, 1) both;
}
#fap-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(41, 98, 255, 0.5);
}

@keyframes fap-float-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  #fap-card { padding: 28px 18px 24px; border-radius: 16px; }
  #fap-float { bottom: 16px; right: 16px; padding: 10px 16px; font-size: 12px; }
}
