/* boopr.com night skin (2026-09). Loaded AFTER each page's inline <style>, so
   equal-specificity rules here win. Navy sky + stars behind the top block of
   every page, cooler surfaces, signature cream for all type and controls.
   No amber anywhere: that belonged to the retired lake scene. */
:root {
  --night-0: #04050C; --night-1: #080C1B; --night-2: #0B1122;
  --cream-soft: rgba(232, 220, 200, 0.62);
  /* cooler raised surfaces (were warm greys) */
  --surface0: #08090F;
  --surface1: #0F1119;
  --surface2: #161822;
  --surface3: #1F212C;
}
body > nav { background: rgba(4, 5, 12, 0.62); }

/* ── the top block of any page becomes sky ─────────────────────── */
.hero, [class$="-hero"], [class*="-hero "], .article-head, .doc-header {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(to bottom, var(--night-0) 0%, var(--night-1) 40%, var(--night-2) 70%, #000 100%);
}
.hero {  /* the home and channel heroes are a full screen tall: hold the navy longer */
  background:
    radial-gradient(ellipse 60% 22% at 50% 80%, rgba(232, 134, 70, 0.10), transparent 70%),
    linear-gradient(to bottom, var(--night-0) 0%, #070B18 46%, #0D1529 78%, #000 100%);
}
.hero-glow, .hero-ring, [class$="-hero-glow"] { display: none; }
.night-sky {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 58%, transparent 100%);
  opacity: 0; transition: opacity 1.2s ease;
}
.night-sky.on { opacity: 1; }
.night-sky .tw { animation: night-twinkle 6s ease-in-out infinite; }
@keyframes night-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* single-screen pages with no header block (class set by night.js) */
body.night-page { position: relative; isolation: isolate; min-height: 100vh; background: linear-gradient(to bottom, var(--night-0) 0%, #070B18 46%, #0D1529 82%, #05060C 100%) fixed; }
body.night-page > .night-sky { position: fixed; -webkit-mask-image: none; mask-image: none; }

/* ── type and controls: cream only ─────────────────────────────── */
[class*="eyebrow"], [class$="-hero-label"], .hero-invite, .feature-label, .step-num { color: var(--cream-soft); }
.scroll-line { background: linear-gradient(to bottom, var(--cream-soft), transparent); }
/* signature control: hollow, 1.5px cream border, cream label, faint glow. Never filled. */
.btn--accent { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); box-shadow: 0 0 20px rgba(244, 235, 216, 0.06); }
.btn--accent:hover { background: rgba(232, 220, 200, 0.10); box-shadow: 0 0 28px rgba(244, 235, 216, 0.14); transform: translateY(-1px); }

/* ── home page sections ────────────────────────────────────────── */
.section--bordered:nth-of-type(odd) { background: linear-gradient(to bottom, #000 0%, rgba(8, 12, 27, 0.6) 50%, #000 100%); }
.feature-icon { color: var(--accent); background: rgba(232, 220, 200, 0.06); border-color: rgba(232, 220, 200, 0.14); }
.feature { background: linear-gradient(160deg, #11131C 0%, #0D0E13 60%); border-color: rgba(150, 170, 230, 0.10); transition: border-color .3s ease, transform .3s ease; }
.feature:hover { border-color: rgba(232, 220, 200, 0.30); transform: translateY(-3px); }
.faq-item.open .faq-item__q, .faq-item__q:hover { color: var(--accent); }

/* ── closing call to action: the sky comes back ────────────────── */
.final-cta { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(to bottom, #000 0%, #060915 60%, #0D1428 100%); }
.final-cta::before {
  content: ''; position: absolute; left: 50%; bottom: -300px; transform: translateX(-50%); width: 1200px; height: 600px; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(232, 134, 70, 0.18), rgba(60, 70, 130, 0.14) 42%, transparent 68%);
}
.final-cta .night-sky { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40%); mask-image: linear-gradient(to bottom, transparent 0, #000 40%); }

@media (prefers-reduced-motion: reduce) { .night-sky { transition: none; } .night-sky .tw { animation: none; } }
