/* ────────────────────────────────────────────────────────────────────────────
   PBF Site — carries the creator homepage look to every other public page.
   Load LAST in <head> (after the page's own <style>) so the token overrides win.
   1. Palette: homepage warm charcoal + soft gold instead of the old navy.
   2. .site-hero: the homepage opening (left aligned, gold eyebrow rule, big
      uppercase headline with a gold last line, lede, actions, Scripture with a
      gold rule, candles-and-shield art fading in on the right).
   3. Section heads, cards and buttons in the homepage weight.
   Prepared by: Ryan Berroa · "Let all things be done decently and in order." 1 Corinthians 14:40
   ──────────────────────────────────────────────────────────────────────────── */

/* 1 ── Palette ─────────────────────────────────────────────────────────────── */
:root {
  --black: #090b0d;
  --bg: #090b0d;
  --navy: #12171d;
  --navy2: #171c22;
  --navy3: #1b2027;
  --panel: #12171d;
  --card: #12171d;
  --line: rgba(255, 255, 255, 0.09);
  --text: #efece4;
  --muted: #a3a8af;
  --dim: #7d828a;
  --gold: #c9a84c;
  --gold2: #e2c377;

  --pbfsh-black: #090b0d;
  --pbfsh-navy: #0d1013;
  --pbfsh-navy2: #151a20;
  --pbfsh-line: rgba(255, 255, 255, 0.09);
  --pbfsh-text: #efece4;
  --pbfsh-muted: #a3a8af;

  --pbfw-black: #090b0d;
  --pbfw-navy: #12171d;
  --pbfw-navy2: #171c22;
  --pbfw-line: rgba(255, 255, 255, 0.09);
  --pbfw-card: #12171d;

  --t-black: #090b0d;
  --t-navy: #12171d;
  --t-navy2: #171c22;
  --t-line: rgba(255, 255, 255, 0.09);
  --t-text: #efece4;
  --t-muted: #a3a8af;

  --site-ink: #f5f3ee;
  --site-gold: #d8b75b;
  --site-rule: #c9a84c55;
  --site-max: 1180px;
  --site-pad: max(32px, calc((100% - var(--site-max)) / 2));
}
body.site-page { background: #090b0d; color: var(--text); }
/* Guides: wide tables scroll inside themselves, long code/paths wrap, so the page never scrolls sideways on a phone */
body.site-article table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.site-article code, body.site-article kbd { overflow-wrap: anywhere; word-break: break-word; }
body.site-article pre { max-width: 100%; overflow-x: auto; }
body.site-article .steps li { display: block; position: relative; padding-left: 34px; }
body.site-article .steps li::before { position: absolute; left: 0; top: 10px; width: 22px; }
body.site-article .checklist li { display: block; position: relative; padding-left: 26px; }
body.site-article .checklist li > .check { position: absolute; left: 0; top: 7px; }
body.site-page { font-synthesis: none; }   /* Bebas Neue ships one weight; never fake-bold it */
body.site-page #pbf-support-search-strip { background: #0d1013 !important; border-bottom-color: #ffffff12 !important; }
body.site-page #pbf-support-search-strip input { background: #12171d !important; border-color: #ffffff1c !important; color: var(--text) !important; }
body.site-page :focus-visible { outline: 2px solid #e7c670; outline-offset: 4px; }

/* 2 ── Page opening ────────────────────────────────────────────────────────── */
.site-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: left !important;
  padding: 88px var(--site-pad) 76px !important;
  margin: 0 !important;
  max-width: none !important;
  background: radial-gradient(ellipse at 84% 32%, #c9a84c0b, transparent 53%), #090b0d !important;
  border-bottom: 1px solid #ffffff10;
}
.site-hero::before {
  content: "";
  position: absolute; z-index: -2;
  top: 0; bottom: 0; right: 0; left: auto; width: 52%; height: auto;
  transform: none; border-radius: 0; filter: none; animation: none;
  background: url(/assets/brand/pbf-candles-shield-1600.webp) 50% 45% / cover no-repeat;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 42%);
          mask-image: linear-gradient(90deg, transparent, #000 42%);
  pointer-events: none;
}
.site-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  width: auto; height: auto; transform: none; border-radius: 0; filter: none; animation: none; opacity: 1;
  background: linear-gradient(90deg, #090b0d 0%, #090b0df0 46%, #090b0d50 80%),
              linear-gradient(0deg, #090b0d, transparent 35%, transparent 75%, #090b0d70);
  pointer-events: none;
}
.site-hero > * { max-width: 660px; margin-left: 0 !important; margin-right: 0 !important; }
.site-hero--split > * { max-width: none; }

.site-eyebrow {
  display: flex !important; align-items: center; gap: 12px;
  font: 700 10px/1.4 'DM Sans', sans-serif !important;
  letter-spacing: 0.23em !important; text-transform: uppercase;
  color: #d2b96b !important;
  margin: 0 0 26px !important; padding: 0 !important;
  background: none !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important; width: auto !important;
}
.site-eyebrow > span:first-child { flex: 0 0 30px; height: 1px; width: 30px; background: #d2b96b; border-radius: 0; box-shadow: none; }

.site-hero h1 {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(54px, 5.6vw, 84px) !important;
  line-height: 0.99 !important;
  letter-spacing: 0.005em !important;
  text-transform: uppercase;
  color: var(--site-ink) !important;
  margin: 0 !important;
  text-align: left !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
  filter: none !important;
  animation: none !important;
}
.site-hero h1 em, .site-hero h1 .gold, .site-hero h1 span {
  font-style: normal;
  color: var(--site-gold) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
.site-hero h1 img { display: block; margin: 0 !important; }

.site-lede {
  max-width: 540px !important;
  margin: 26px 0 0 !important;
  font: 400 17px/1.75 'DM Sans', sans-serif !important;
  letter-spacing: 0 !important;
  color: #cbc8c1 !important;
  text-align: left !important;
}
.site-lede strong { color: var(--site-ink); font-weight: 600; }
.site-lede em { color: var(--site-gold); font-style: normal; }

.site-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0 !important; justify-content: flex-start !important; }
.site-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 22px;
  min-height: 48px; padding: 14px 22px; border-radius: 7px;
  font: 700 12px/1 'DM Sans', sans-serif; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; transition: filter .2s, border-color .2s, color .2s;
}
.site-btn--gold { background: linear-gradient(115deg, #c9a84c, #efd17b); color: #12120f; border: 0; }
.site-btn--gold:hover { filter: brightness(1.08); }
.site-btn--outline { background: transparent; color: #eeeae0; border: 1px solid #ffffff38; }
.site-btn--outline:hover { border-color: #d8b75b; color: #e2c377; }
.site-btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }

.site-note {
  margin: 22px 0 0 !important; padding: 0 !important;
  font: 600 10px/1.8 'DM Sans', sans-serif !important; letter-spacing: 0.08em !important;
  text-transform: uppercase; color: #a3a8af !important; text-align: left !important;
}
.site-note strong, .site-note span { color: #e1ded5; }

.site-scripture {
  max-width: 430px !important;
  margin: 32px 0 0 !important;
  padding: 0 0 0 15px !important;
  border-left: 1px solid var(--site-rule) !important;
  font: italic 13px/1.7 Georgia, serif !important;
  color: #8f8d86 !important;
  text-align: left !important;
  background: none !important;
}
.site-scripture cite {
  display: block; font: 600 9px/2.2 'DM Sans', sans-serif; font-style: normal;
  letter-spacing: 0.12em; text-transform: uppercase; color: #b89a4c;
}

/* Hero chips/badges sit left, in the quiet homepage chip style */
.site-hero .hero-badges, .site-hero .hero-chip-row, .site-hero .status-pills, .site-hero .pills {
  justify-content: flex-start !important; margin-left: 0 !important; margin-right: 0 !important;
}
.site-hero .hero-badges, .site-hero .hero-chip-row { margin-top: 22px !important; gap: 8px !important; }
.site-chip, .site-hero .hero-badge, .site-hero .hero-chip {
  background: #ffffff06 !important; border: 1px solid #ffffff1c !important; color: #cfc9b8 !important;
  border-radius: 999px !important; box-shadow: none !important;
  font-size: 10px !important; padding: 7px 12px !important; letter-spacing: .1em !important;
}

.site-hero .hero-actions, .site-hero .platform-row, .site-hero .dl-actions, .site-hero .cta,
.site-hero .status-banner, .site-hero [data-waitlist] form, .site-hero [data-waitlist] > div { justify-content: flex-start !important; text-align: left !important; }
.site-hero .platform-row, .site-hero .status-banner { margin-top: 22px !important; }
.site-hero .site-row { justify-content: flex-start !important; margin: 22px 0 0 !important; }
.site-hero .site-search { margin: 28px 0 0 !important; max-width: 560px !important; background: #12171d !important; border: 1px solid #ffffff1c !important; border-radius: 8px !important; }
.site-hero .site-search input { background: transparent !important; color: var(--text) !important; }
.site-hero .site-lede + .site-lede { margin-top: 14px !important; font-size: 15.5px !important; color: #a8adb6 !important; }
.site-lede--lead { font-size: clamp(18px, 1.7vw, 22px) !important; font-weight: 600 !important; color: var(--site-ink) !important; line-height: 1.45 !important; }
.site-hero h1 img { width: min(560px, 100%) !important; }
.site-hero--split { display: grid !important; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .site-hero--split { grid-template-columns: 1fr; } }

/* Article variant (methodology, weekly report): no full bleed, same type */
.site-hero--article { padding: 56px 0 40px !important; background: none !important; border-bottom: 1px solid #ffffff10; margin-bottom: 36px !important; }
.site-hero--article::before, .site-hero--article::after { display: none; }
.site-hero--article h1 { font-size: clamp(46px, 5vw, 70px) !important; }
.site-hero--article > * { max-width: 760px; }

/* Guide / article pages (support guides, methodology, weekly report, EULA):
   same opening type, done in CSS so the guide markup stays untouched. */
body.site-article .breadcrumb, body.site-article .crumb, body.site-article .legal-back {
  display: flex; align-items: center; gap: 12px;
  font: 700 10px/1.4 'DM Sans', sans-serif !important; letter-spacing: 0.2em !important;
  text-transform: uppercase; color: #a3a8af !important; margin-bottom: 24px !important;
}
body.site-article .breadcrumb::before, body.site-article .crumb::before, body.site-article .legal-back::before {
  content: ""; flex: 0 0 30px; height: 1px; background: #d2b96b;
}
body.site-article .breadcrumb a, body.site-article .crumb a { color: #d2b96b !important; text-decoration: none; }
body.site-article .legal-back { color: #d2b96b !important; text-decoration: none; }
body.site-article .article-title, body.site-article .page-title, body.site-article main > h1, body.site-article .legal-wrap > h1 {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(46px, 5vw, 70px) !important; line-height: 1 !important;
  letter-spacing: 0.005em !important; text-transform: uppercase;
  color: var(--site-ink) !important; -webkit-text-fill-color: currentColor !important; background: none !important;
  margin: 0 0 18px !important; text-align: left !important;
}
body.site-article .article-title .gold, body.site-article .page-title .gold, body.site-article main > h1 span { color: var(--site-gold) !important; -webkit-text-fill-color: currentColor !important; }
body.site-article .verse {
  max-width: 520px; margin: 22px 0 34px !important; padding: 0 0 0 15px !important;
  border-left: 1px solid var(--site-rule) !important; background: none !important;
  font: italic 13.5px/1.7 Georgia, serif !important; color: #8f8d86 !important; text-align: left !important;
}
body.site-article .intro, body.site-article .page-sub, body.site-article .subhead, body.site-article .sub {
  font-size: 17px !important; line-height: 1.75 !important; color: #cbc8c1 !important; max-width: 700px;
}
body.site-article main h2:not(.site-keep) {
  font-family: 'Bebas Neue', sans-serif; color: var(--site-ink) !important; -webkit-text-fill-color: currentColor;
  letter-spacing: 0.02em; border-color: #ffffff12 !important;
}
body.site-article main h3 { color: #e8dcb5; }

/* 3 ── Section heads ───────────────────────────────────────────────────────── */
.site-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid #c9a84c55; background: #c9a84c0d;
  font: 700 11px/1 'DM Sans', sans-serif; letter-spacing: 0.02em; color: #e2c377;
  margin-bottom: 18px;
}
.site-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d39988; }
body.site-page .section-title, body.site-page .section-h, body.site-page .site-h2 {
  font-family: 'Bebas Neue', sans-serif !important;
  color: var(--site-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
  letter-spacing: 0.02em !important;
}
body.site-page .site-h2 em, body.site-page .site-h2 .gold, body.site-page .site-h2 span { color: var(--site-gold) !important; font-style: normal; }

/* Cards everywhere pick up the homepage card */
body.site-page .site-card {
  background: #12171d !important;
  border: 1px solid #ffffff17 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}
body.site-page .site-card:hover { border-color: #c9a84c55 !important; }

/* Line icon slot (replaces emoji in card heads) */
.site-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid #c9a84c40; background: #c9a84c0d; color: #d8b75b; }
.site-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Auth / single-card pages: the brand art sits faint behind the card */
body.site-auth {
  background: radial-gradient(ellipse at 50% 30%, #c9a84c10, transparent 60%),
              linear-gradient(#090b0de6, #090b0df2),
              url(/assets/brand/pbf-candles-shield-1600.webp) 50% 30% / cover no-repeat fixed,
              #090b0d !important;
}
body.site-auth .site-card { background: #12171dee !important; backdrop-filter: blur(4px); }

/* 4 ── Phone ───────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .site-hero { padding: 44px 22px 42px !important; }
  .site-hero::before { width: 100%; opacity: .22; -webkit-mask-image: none; mask-image: none; background-position: 60% 50%; }
  .site-hero::after { background: linear-gradient(90deg, #090b0dd8, #090b0d90), linear-gradient(0deg, #090b0d, transparent); }
  .site-hero h1 { font-size: clamp(46px, 11.4vw, 72px) !important; }
  .site-hero--article { padding: 32px 0 28px !important; }
  .site-hero--article h1 { font-size: clamp(40px, 10.5vw, 60px) !important; }
  .site-eyebrow { font-size: 8.5px !important; margin-bottom: 20px !important; }
  .site-lede { font-size: 15px !important; margin-top: 20px !important; }
  .site-actions { gap: 10px; }
  .site-actions .site-btn { flex: 1 1 100%; }
  .site-scripture { margin-top: 26px !important; }
}
@media (prefers-reduced-motion: reduce) { .site-btn { transition: none; } }
