/* Funnel Footer — spec §3
   Shared across every camp detail page. Data-driven via funnel-footer.js
   consuming /data/camp-capacity.json and /data/testimonials.json. */

/* TEMPORARY hides — flip back when the deliverables exist:
   - .ff-leadmagnet → hidden until the lead-magnet PDFs ship
     (see _notes/RESOURCES-TODO.md). The form would otherwise collect emails
     into Sendy with no actual deliverable.
   - .ff-lineup-band → hidden until thelineup.tricktionary.com is public. */
.ff-leadmagnet,
.ff-leadmagnet-success,
.ff-leadmagnet-error,
.ff-lineup-band {
  display: none !important;
}


.funnel-footer {
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
  padding: 4rem 0 3rem;
}

.funnel-footer .container { max-width: 1000px; }

/* ================================================================
   §3.1 Capacity meter
   ================================================================ */
.ff-capacity {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 560px;
}
.ff-capacity-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 0.75rem;
}
.ff-capacity-dots .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}
.ff-capacity-dots .dot-open {
  background: var(--gold, #c9a14a);
  box-shadow: 0 0 6px rgba(201,161,74,0.4);
}
.ff-capacity-dots .dot-taken {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
}
.ff-capacity-copy {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--white-dim, rgba(255,255,255,0.7));
  margin: 0;
}
.ff-capacity-copy strong { color: var(--gold, #c9a14a); }
.ff-capacity[data-status="sold-out"] .ff-capacity-copy strong { color: #e06666; }

/* ================================================================
   §3.2 Triple CTA stack
   ================================================================ */
.ff-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto 3.5rem;
  max-width: 560px;
  text-align: center;
}
.ff-ctas .btn { min-width: 260px; }
.ff-leadmagnet {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 520px;
  justify-content: center;
  flex-wrap: wrap;
}
.ff-leadmagnet input[type="email"] {
  flex: 1 1 220px;
  min-width: 220px;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: var(--white, #fff);
  font-family: inherit;
  font-size: 0.95rem;
}
.ff-leadmagnet input[type="email"]:focus {
  outline: none;
  border-color: var(--gold, #c9a14a);
  background: rgba(255,255,255,0.08);
}
.ff-leadmagnet button { flex: 0 0 auto; }
.ff-leadmagnet-success,
.ff-leadmagnet-error {
  display: none;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
}
.ff-leadmagnet-success {
  background: rgba(201,161,74,0.1);
  border: 1px solid rgba(201,161,74,0.4);
  color: var(--gold, #c9a14a);
}
.ff-leadmagnet-error {
  background: rgba(224,102,102,0.1);
  border: 1px solid rgba(224,102,102,0.4);
  color: #e06666;
}
.ff-tertiary {
  font-size: 0.9rem;
  color: var(--white-dim, rgba(255,255,255,0.6));
  margin: 0;
}
.ff-tertiary a {
  color: var(--white, #fff);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 0 0.25rem;
}
.ff-tertiary a:hover { color: var(--gold, #c9a14a); }

/* ================================================================
   §3.3 Not-ready-for-camp downsell block
   ================================================================ */
.ff-downsell {
  margin: 0 auto 3.5rem;
  max-width: 960px;
}
.ff-downsell h3 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 1.5rem;
  color: var(--white, #fff);
  letter-spacing: -0.01em;
}
.ff-downsell-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ff-downsell-card {
  display: block;
  padding: 1.5rem 1.4rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.ff-downsell-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201,161,74,0.4);
}
.ff-downsell-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--gold, #c9a14a);
  letter-spacing: 0.02em;
}
.ff-downsell-card p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--white-dim, rgba(255,255,255,0.75));
  line-height: 1.55;
}
.ff-downsell-card .ff-downsell-cta {
  font-size: 0.85rem;
  color: var(--gold, #c9a14a);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .ff-downsell-cards { grid-template-columns: 1fr; }
}

/* ================================================================
   §3.4 Lineup proof band
   ================================================================ */
.ff-lineup-band {
  max-width: 860px;
  margin: 0 auto 3.5rem;
  padding: 1.25rem 1.75rem;
  border: 1px solid rgba(201,161,74,0.35);
  background: rgba(201,161,74,0.05);
  border-radius: 10px;
  text-align: center;
}
.ff-lineup-band p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--white-dim, rgba(255,255,255,0.85));
}
.ff-lineup-band strong {
  color: var(--gold, #c9a14a);
  letter-spacing: 0.04em;
}
.ff-lineup-band a {
  color: var(--gold, #c9a14a);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* ================================================================
   §3.5 Testimonial row
   ================================================================ */
.ff-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}
.ff-testimonial {
  padding: 1.5rem 1.4rem;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--gold, #c9a14a);
  border-radius: 6px;
  margin: 0;
}
.ff-testimonial p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--white, rgba(255,255,255,0.9));
}
.ff-testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--white-dim, rgba(255,255,255,0.6));
  letter-spacing: 0.02em;
}

/* ================================================================
   §3.6 Sticky mobile CTA
   ================================================================ */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 100;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201,161,74,0.4);
  border-radius: 10px;
  padding: 10px 12px;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.sticky-mobile-cta .btn {
  flex: 1 1 auto;
  margin: 0;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
}
.sticky-mobile-cta .sticky-dismiss {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white-dim, rgba(255,255,255,0.6));
  border-radius: 6px;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}
.sticky-mobile-cta.visible { display: flex; }
@media (min-width: 768px) {
  .sticky-mobile-cta { display: none !important; }
}

/* ─── MOBILE POLISH (≤ 720px) — funnel footer ─── */
@media (max-width: 720px) {
  .funnel-footer { padding: 2.5rem 0 2rem; }
  .ff-capacity { margin-bottom: 1.75rem; }
  .ff-ctas { gap: 1.1rem; margin-bottom: 2.25rem; }
  .ff-ctas .btn { min-width: 0; width: 100%; }
  .ff-leadmagnet { flex-direction: column; gap: 0.6rem; }
  .ff-leadmagnet input[type="email"] { width: 100%; }
  .ff-leadmagnet button { width: 100%; }
  .ff-lineup-band { padding: 1rem 1.1rem; margin-bottom: 2.25rem; }
  .ff-testimonial { padding: 1.2rem 1.1rem; }
}

/* When sticky-mobile-cta is visible, leave room at the page bottom
   so the last bit of content isn't permanently hidden behind it. */
@media (max-width: 767px) {
  body:has(.sticky-mobile-cta.visible) { padding-bottom: 76px; }
}
