/* ─────────────────────────────────────────────────────────────
   Campfire public site — style-pages.css   (CLOSERS & CHROME)

   What every page ends on, in this order:
     FAQ → Learn more (inc/crosslinks.php, L3 tiles) → CTA → footer   (+ the cookie notice)

   ⚠ LOADED LAST ON PURPOSE. Do not reorder the stylesheets.

   The accent rule: the accent TINTS the page, ORANGE IS ALWAYS
   THE ACTION. Nothing here paints a button, a CTA or a leading
   link in the accent.
   ───────────────────────────────────────────────────────────── */


/* ═══════════ FAQ ═══════════ */
.faq-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.faq-head h2 { margin-top: 14px; text-wrap: balance; }
.faq-list {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: transparent; border: none;
  text-align: left;
  font-family: inherit; font-size: 18px; font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ''; }
details.faq-item { padding: 0; }
.faq-a-inner {
  padding: 0 4px 24px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 660px;
}
.faq-q .ic {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: grid; place-items: center;
  flex: 0 0 32px;
  transition: transform .25s, background .15s, border-color .15s;
  color: var(--ink-2);
}
.faq-q .ic svg { width: 14px; height: 14px; }
details.faq-item[open] .faq-q .ic { transform: rotate(45deg); background: var(--orange); border-color: var(--orange); color: #fff; }

.faq-a-inner a { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 2px; }

/* ═══════════ CTA ═══════════ */
.cta {
  position: relative; overflow: hidden;
  /* Ember on all four pages — this is the action, not the accent.
     #FF7B30 is a one-off lift on --orange, used only here. */
  background: linear-gradient(135deg, #FF7B30 0%, var(--orange-dark) 100%);
  color: #fff;
}
.cta::before, .cta::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(40px);
}
.cta::before { width: 320px; height: 320px; background: rgba(255,255,255,.12); top: -120px; right: -60px; }
.cta::after { width: 280px; height: 280px; background: rgba(15,27,46,.18); bottom: -120px; left: -40px; }
.cta-inner { position: relative; text-align: center; }
.cta .eyebrow { background: rgba(255,255,255,.18); color: #fff; }
.cta h2 { color: #fff; text-wrap: balance; margin-top: 18px; }
.cta .lead { color: #fff; margin-top: 18px; }   /* solid: 85% measured 2.24-3.33:1 */
.cta-ctas { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.cta .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.cta .btn-light { background: #fff; color: var(--orange-ink); }  /* 6.49:1 */
.cta .btn-light:hover { background: var(--bg); }
.cta-meta { margin-top: 22px; font-size: 13px; color: #fff; letter-spacing: 0.03em; }  /* solid: 70% measured 1.94-2.72:1 */

/* ═══════════ FOOTER ═══════════ */
footer.foot {
  padding: 44px 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.foot-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 18px; text-align: center;
  font-size: 14px; color: var(--ink-3);
}
.foot-brand {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; justify-content: center;
}
.foot-links {
  display: flex; gap: 22px;
  flex-wrap: wrap; justify-content: center;
}
.foot-links a {
  color: var(--ink-3); transition: color .15s;
  /* 44px tap target. The padding is cancelled by the negative margin,
     so the footer's visual spacing is exactly what it was. */
  display: inline-block; padding: 12px 6px; margin: -12px -6px;
}
.foot-links a:hover { color: var(--ink); }
.foot-copy { font-size: 13px; color: var(--ink-3); }  /* --ink-4 measured 2.36:1 on --bg (session 08) */

/* ─── The analytics control (session 07) ───
   Empty in the HTML and filled by js/consent.js, so the page does
   not vary by cookie and stays cacheable. .linkish is the shared
   button-styled-as-link (style-pages.css §5g) — a real <button>,
   because turning analytics off is an action, not a destination. */
.foot-analytics {
  font-size: 13px; color: var(--ink-3);
  display: flex; align-items: baseline; gap: 6px;
  flex-wrap: wrap; justify-content: center;
}
.foot-analytics:empty { display: none; }   /* no gap before consent.js runs */

/* ═══════════ COOKIE NOTICE — .cookie-notice ═══════════
   Styled here, populated in session 07 (inc/cookie-notice.php)
   and shown by js/consent.js.

   ⚠ [hidden] until consent.js decides to show it, so a returning
   visitor never sees a flash of it. The [hidden] rule below is
   load-bearing: this element sets display:flex, which would
   otherwise beat the UA's [hidden] { display:none }.

   .linkish is the same control under a name the footer can
   use too (inc/foot.php #foot-analytics), which is why it sits
   here beside it rather than in style.css.

   This is an OPT-OUT notice, not a consent gate. Analytics runs
   by default — a deliberate, documented decision (00-INDEX.md,
   decision 4). Do not turn this into a consent banner here.
*/
.cookie-notice {
  position: fixed;
  left: 16px; bottom: 16px;
  z-index: 60;                 /* above the nav's 50, below nothing else */
  display: flex; flex-direction: column;
  gap: 14px;
  width: calc(100% - 32px);
  max-width: 380px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.cookie-notice[hidden] { display: none; }

.cookie-notice p {
  font-size: 14px; line-height: 1.5; color: var(--ink-2);
}
.cookie-notice a { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 2px; }

.cookie-actions {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.cookie-actions .btn { height: 42px; padding: 0 20px; font-size: 15px; }

/* Plain text control, not a second button — the choice is "carry
   on" or "turn it off", and only one of those is the action. */
.cookie-off, .linkish {
  background: none; border: 0; padding: 0;
  font-family: inherit; font-size: inherit; font-weight: 500;
  color: var(--ink-3);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.cookie-off { font-size: 14px; }
.cookie-off:hover, .linkish:hover { color: var(--ink); }

@media (max-width: 600px) {
  .cookie-notice {
    left: 12px; right: 12px; bottom: 12px;
    width: auto; max-width: none;
    border-radius: var(--r-sm);
  }
}
