/* ==========================================================================
   FedFinder shared site stylesheet (site.css)
   Site-wide look: design tokens, type scale, header/nav, footer, buttons,
   cards, badges, comparison chart, and scroll-reveal motion base.
   Loaded by every marketing page. No build step; plain CSS.
   ========================================================================== */

/* --- Brand tokens (must match the existing site exactly) ----------------- */
:root {
  --navy: #0b2545;
  --navy-2: #0a3161;
  --navy-3: #13386b;
  --red: #b31942;
  --red-2: #8b1331;
  --brass: #9b7d2e;
  --ink: #1b1b1b;
  --ink-2: #3d4551;
  --muted: #565c65;
  --line: #d9dee5;
  --line-2: #c6cdd6;
  --paper: #ffffff;
  --paper-2: #f6f8fb;
  --paper-3: #eef2f7;
  --ok: #1a7f4b;

  --serif: Tinos, Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, Arial, sans-serif;

  /* Section spacing rhythm */
  --sp: 88px;
  --radius: 12px;
  --maxw: 1200px;
}

@media (max-width: 720px) {
  :root { --sp: 56px; }
}

/* --- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Type scale ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.2; }
h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.22; }
h3 { font-size: 22px; line-height: 1.2; }
h4 { font-size: 18px; line-height: 1.25; }

p { margin: 0 0 1em; max-width: 68ch; }

.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 64ch;
}

/* Eyebrow / kicker */
.kicker, .eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--red);
  margin: 0 0 .75em;
}

.muted { color: var(--muted); }

/* --- Layout helpers ------------------------------------------------------ */
.wrap, .container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section { padding-top: var(--sp); padding-bottom: var(--sp); }
.section--tint { background: var(--paper-2); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.center { text-align: center; }
.grid { display: grid; gap: 24px; }

/* ==========================================================================
   Header / masthead + nav  (Task 1, Step 2: SEPARATORS polish item)
   ========================================================================== */
.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--navy);
  transition: box-shadow .2s ease;
}

.mast.scrolled { box-shadow: 0 2px 12px rgba(11, 37, 69, .12); }

.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand:hover { text-decoration: none; }

/* Nav: links read as distinct cells separated by hairline dividers. */
.nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav > a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 15px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Hairline divider BETWEEN nav links (not before the first). */
.nav > a + a { border-left: 1px solid var(--line-2); border-radius: 0; }

.nav > a:hover { background: var(--paper-2); text-decoration: none; }

/* Active page link gets the red underline. */
.nav > a.active {
  color: var(--navy);
  box-shadow: inset 0 -3px 0 var(--red);
}

/* Stronger divider separating the links from the Sign in / Start trial CTAs. */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--line-2);
}

/* Mobile nav toggle (hidden on desktop). */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--paper);
  color: var(--navy);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--navy);
    padding: 8px 16px 16px;
    box-shadow: 0 12px 24px rgba(11, 37, 69, .12);
    display: none;
  }
  .nav.open { display: flex; }
  .nav > a { padding: 12px 8px; border-radius: 0; }
  .nav > a + a { border-left: 0; border-top: 1px solid var(--line); }
  .nav-cta {
    margin-left: 0;
    margin-top: 10px;
    padding-left: 0;
    padding-top: 12px;
    border-left: 0;
    border-top: 1px solid var(--line-2);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-cta .btn { width: 100%; text-align: center; }
}

/* ==========================================================================
   Footer  (Task 1, Step 3: WHITE-LOGO polish item)
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: #cfd8e4;
  padding-top: 56px;
  padding-bottom: 40px;
  border-top: 4px solid var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 32px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* The logo MUST be visible on the dark navy footer: invert it to white. */
.footer-logo img {
  filter: brightness(0) invert(1);
  height: 34px;
  width: auto;
  margin-bottom: 12px;
}

/* Fallback if the inverted mark looks indistinct: a subtle white rounded
   chip behind the full-color logo. To use, add class "footer-logo--chip"
   to the .footer-logo element AND remove the invert filter above for it.
   .footer-logo--chip img {
     filter: none;
     background: #ffffff;
     padding: 8px 12px;
     border-radius: 10px;
   }
*/

.footer-col h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 10px; }

.footer-col a { color: #cfd8e4; font-size: 15px; }
.footer-col a:hover { color: #fff; }

.footer-tag { color: #aebbcc; font-size: 14px; max-width: 36ch; }
.footer-support { margin: 14px 0 0; }
.footer-support a { color: var(--brass); font-weight: 700; font-size: 15px; text-decoration: none; }
.footer-support a:hover { text-decoration: underline; }
.footer-disclaimer { color: #93a3b8; font-size: 13px; line-height: 1.55; max-width: 40ch; }

.footer-bottom {
  max-width: var(--maxw);
  margin: 32px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #93a3b8;
  font-size: 13px;
}

/* ==========================================================================
   Buttons  (Task 1, Step 4)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 13px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-2); border-color: var(--red-2); color: #fff; }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--paper-2); color: var(--navy); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }

/* On navy sections, ghost buttons need light borders. */
.section--navy .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.section--navy .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ==========================================================================
   Cards  (Task 1, Step 4)
   ========================================================================== */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 2px rgba(11, 37, 69, .05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(11, 37, 69, .12);
  border-color: var(--line-2);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--paper-3);
  color: var(--navy-2);
  margin-bottom: 14px;
  font-size: 22px;
}

.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--red); }
.card-link:hover { color: var(--red-2); }

/* Screenshot frame */
.shot {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 8px 28px rgba(11, 37, 69, .12);
}
.shot img { display: block; width: 100%; height: auto; }
.shot--sm { box-shadow: 0 4px 14px rgba(11, 37, 69, .1); }

/* Two-column copy + media layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
}

/* Prompt / example chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper-3);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   Badges / pills  (Task 1, Step 4: incl. popular-badge FLOAT polish item)
   ========================================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid var(--line-2);
  background: var(--paper-3);
  color: var(--ink-2);
  white-space: nowrap;
  flex: none;
  line-height: 1.4;
}
/* A small solid dot in the badge's own color, so a page with a couple dozen
   pills scans by color pattern first and label second. */
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* Tier-coded badges for the module catalog. Each tier gets its own hue
   (not just a lighter/darker shade of the same one) since Starter and Pro
   used to share --navy-2 as their text color and near-identical pastel
   backgrounds, making two of five tiers hard to tell apart at a glance. */
.pill--included { background: #e7f3ec; border-color: #bfe3cd; color: #1f7a48; }
.pill--starter  { background: #e2f2f8; border-color: #b7dfec; color: #146c8e; }
.pill--pro      { background: #e8eaf9; border-color: #c2c8f0; color: #33399e; }
.pill--intel    { background: #f3e9f5; border-color: #e0c7e6; color: #6b2d74; }
.pill--addon    { background: #fbeede; border-color: #ecc79e; color: #97600f; }

/* Comparison-chart status badges. */
.pill--yes     { background: #e7f3ec; border-color: #bfe3cd; color: var(--ok); }
.pill--partial { background: #fff5e0; border-color: #f0dca6; color: #8a6d12; }
.pill--no      { background: #f4e7ea; border-color: #e3c2cb; color: var(--red-2); }

/* --- Pricing plan cards + floating "popular" badge ----------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch; /* equal heights so titles align across cards */
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 1px 2px rgba(11, 37, 69, .05);
}

/* Featured plan: the popular badge FLOATS above the card so it never
   pushes the plan title down and titles stay aligned across cards. */
.plan.featured {
  position: relative;
  border-color: var(--red);
  box-shadow: 0 12px 30px rgba(179, 25, 66, .16);
}

.plan .badge-pop {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(179, 25, 66, .3);
}

.plan h3 { margin-top: 0; }
.plan .plan-price { font-family: var(--serif); font-size: 30px; color: var(--navy); margin: 6px 0; }
.plan ul { list-style: none; margin: 14px 0; padding: 0; flex: 1 1 auto; }
.plan li { margin: 0 0 10px; padding-left: 24px; position: relative; }
.plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan .btn { width: 100%; margin-top: auto; }

/* ==========================================================================
   Comparison chart
   ========================================================================== */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare th, .compare td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.compare thead th {
  background: var(--paper-3);
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 700;
}
.compare tbody th {
  text-align: left;
  color: var(--ink);
  font-weight: 600;
  font-family: var(--sans);
}

/* Highlighted FedFinder column. */
.compare .col-ff { background: rgba(179, 25, 66, .06); }
.compare thead .col-ff { background: var(--red); color: #fff; }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 0; }

/* Distinct cost row. */
.compare .row-cost th, .compare .row-cost td {
  background: var(--paper-2);
  font-weight: 700;
}
.compare .row-cost .col-ff { background: rgba(179, 25, 66, .12); color: var(--navy); }

.compare-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 18px; }
.compare-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }

/* ==========================================================================
   Stat tiles
   ========================================================================== */
.stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat {
  text-align: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.stat .stat-num { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); color: var(--navy); font-weight: 700; line-height: 1; }
.stat .stat-label { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ==========================================================================
   Scroll-reveal + reduced-motion base  (Task 1, Step 5)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(.985);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* Directional variants (opt-in via class). */
.reveal.reveal-left  { transform: translateX(-30px); }
.reveal.reveal-right { transform: translateX(30px); }
.reveal-left.in, .reveal-right.in { transform: none; }

.reveal[data-d="1"] { transition-delay: .06s; }
.reveal[data-d="2"] { transition-delay: .13s; }
.reveal[data-d="3"] { transition-delay: .20s; }
.reveal[data-d="4"] { transition-delay: .27s; }
.reveal[data-d="5"] { transition-delay: .34s; }
.reveal[data-d="6"] { transition-delay: .41s; }
.reveal[data-d="7"] { transition-delay: .48s; }
.reveal[data-d="8"] { transition-delay: .55s; }

/* ==========================================================================
   Core grid: "modules powering on" (proof strip). The available-now module
   cores light up in a staggered cascade, then the optional add-on core ignites
   in brass. A separate dashed "roadmap" cluster stays outlined (never navy) to
   show coming-soon modules without implying they ship today.
   Driven by site.js adding .lit on scroll-in; --i per core sets the stagger.
   ========================================================================== */
.coregrid { display: inline-flex; align-items: center; gap: 14px; margin: 2px 0 16px; }
.coregrid .cores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.coregrid .core,
.coregrid .core--addon {
  width: 15px; height: 15px; border-radius: 3px;
  background: var(--line-2); opacity: .28; transform: scale(.7);
  transition: opacity .4s ease, transform .45s cubic-bezier(.16, 1, .3, 1),
              background .4s ease, box-shadow .4s ease;
}
.coregrid.lit .core { opacity: 1; transform: none; background: var(--navy);
  transition-delay: calc(var(--i, 0) * 25ms); }
.coregrid .addon-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; }
.coregrid .core--addon { width: 17px; height: 17px;
  display: inline-flex; align-items: center; justify-content: center;
  font: 800 12px/1 var(--sans); color: #fff; }
.coregrid.lit .core--addon { opacity: 1; transform: none; background: var(--brass);
  box-shadow: 0 0 0 4px rgba(155, 125, 46, .16); transition-delay: calc(25 * 25ms + 140ms); }
.coregrid .addon-label { font: 700 9px/1 var(--sans); letter-spacing: .05em;
  text-transform: uppercase; color: var(--brass); opacity: 0;
  transition: opacity .4s ease; transition-delay: calc(25 * 25ms + 220ms); }
.coregrid.lit .addon-label { opacity: 1; }

/* Roadmap cluster: "on the way" modules stay outlined, never igniting navy. */
.coregrid .roadmap-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; }
.coregrid .roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.coregrid .core--soon {
  width: 15px; height: 15px; border-radius: 3px;
  background: transparent; border: 1.5px dashed var(--line-2);
  opacity: .45; transform: scale(.7);
  transition: opacity .4s ease, transform .45s cubic-bezier(.16, 1, .3, 1);
}
.coregrid.lit .core--soon { opacity: .6; transform: none;
  transition-delay: calc(25 * 25ms + 300ms); }
.coregrid .roadmap-label { font: 700 9px/1 var(--sans); letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted); opacity: 0;
  transition: opacity .4s ease; transition-delay: calc(25 * 25ms + 360ms); }
.coregrid.lit .roadmap-label { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .coregrid .core { opacity: 1; transform: none; background: var(--navy); transition: none; }
  .coregrid .core--addon { opacity: 1; transform: none; background: var(--brass); transition: none; }
  .coregrid .addon-label { opacity: 1; transition: none; }
  .coregrid .core--soon { opacity: .6; transform: none; transition: none; }
  .coregrid .roadmap-label { opacity: 1; transition: none; }
}

/* Top utility bar: US flag + specialization tagline + commercial disclaimer. */
/* Shared across every marketing page; markup sits directly after <body>.      */
.utility { background:var(--navy); color:#c8d3e3; font-size:12px; letter-spacing:0.02em; }
.utility .wrap { display:flex; align-items:center; justify-content:space-between; min-height:34px; gap:16px; }
.utility .flag { display:inline-flex; align-items:center; gap:8px; }
.flag-mark { width:20px; height:13px; border-radius:1px; overflow:hidden; box-shadow:0 0 0 1px rgba(255,255,255,.18); flex:none; }
.utility .right { color:#9fb0c9; }


/* ==========================================================================
   SIGNAL ROOM shared layer (v8) — scoped entirely under body.sr.
   Pages opt in by adding class="sr" to <body>. Gives every marketing page
   the dark navy chrome (utility bar, mast, footer), a dark hero band over
   the page's existing hero wrapper, warm-paper light sections, and the
   bronze/gold signal accents. Pages WITHOUT body.sr are untouched (the
   generated agency-X, naics-X, and blog pages keep the classic look until
   their generator templates are updated).
   ========================================================================== */
body.sr {
  --deep: #071a33;
  --gold: #c6a15b;
  --gold-2: #e3c88f;
  --brass-ink: #6d5716;
  --paper-warm: #f7f5f1;
  --slate: #3d4c63;
  --hair-gold: rgba(198, 161, 91, .25);
  background: var(--paper-warm);
}

/* --- chrome: utility bar + mast + footer --------------------------------- */
body.sr .utility { background: var(--deep); border-bottom: 1px solid var(--hair-gold); position: relative; z-index: 60; }
body.sr .mast {
  background: var(--deep);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
body.sr .mast .brand img {
  filter: none; background: #fff; padding: 3px 9px; border-radius: 8px;
  height: 40px; box-sizing: border-box;
}
body.sr .mast .nav > a { color: rgba(245,247,250,.95); }
body.sr .mast .nav > a:hover { background: rgba(255,255,255,.07); color: #fff; }
body.sr .mast .nav > a + a { border-left-color: rgba(255,255,255,.12); }
body.sr .mast .nav > a.active { color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
body.sr .mast .nav-cta { border-left-color: rgba(255,255,255,.14); }
body.sr .mast .btn-ghost { color: #f5f7fa; border-color: rgba(255,255,255,.35); }
body.sr .mast .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
body.sr .mast .nav-toggle { background: transparent; color: #f5f7fa; border-color: rgba(255,255,255,.3); }
body.sr .mast.scrolled {
  background: rgba(11,37,69,.78);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
          backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: var(--hair-gold);
  box-shadow: 0 8px 30px rgba(4,12,26,.35);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.sr .mast.scrolled { background: rgba(11,37,69,.97); }
}
@media (max-width: 920px) {
  body.sr .nav { background: var(--navy); border-bottom-color: var(--gold); box-shadow: 0 16px 30px rgba(4,12,26,.45); }
  body.sr .nav > a { color: rgba(245,247,250,.9); }
  body.sr .nav > a + a { border-top-color: rgba(255,255,255,.1); }
  body.sr .nav-cta { border-top-color: rgba(255,255,255,.14); }
}
body.sr .site-footer { background: var(--deep); border-top: 1px solid var(--hair-gold); }
body.sr .footer-logo img {
  filter: none; background: #fff; padding: 5px 12px; border-radius: 8px;
  height: 44px; width: auto; box-sizing: border-box;
}
body.sr .footer-col h4 { letter-spacing: .16em; font-size: 12px; }
body.sr .footer-support a { color: var(--gold); }

/* --- dark hero band over every page's existing hero wrapper --------------- */
body.sr .legal-hero, body.sr .platform-hero, body.sr .cap-hero, body.sr .why-hero,
body.sr .sec-hero, body.sr .phead, body.sr .hero, body.sr .rel-hero {
  position: relative;
  background:
    linear-gradient(rgba(198,161,91,.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(198,161,91,.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(180deg, var(--deep) 0%, var(--navy) 70%, #0d2747 100%);
  border-bottom: 1px solid var(--hair-gold);
}
body.sr .legal-hero h1, body.sr .platform-hero h1, body.sr .cap-hero h1, body.sr .why-hero h1,
body.sr .sec-hero h1, body.sr .phead h1, body.sr .hero h1, body.sr .rel-hero h1,
body.sr .legal-hero h2, body.sr .cap-hero h2, body.sr .phead h2 { color: #f5f7fa; }
body.sr .legal-hero .lede, body.sr .platform-hero .lede, body.sr .cap-hero .lede, body.sr .why-hero .lede,
body.sr .sec-hero .lede, body.sr .phead .lede, body.sr .hero .lede, body.sr .rel-hero .lede,
body.sr .legal-hero p, body.sr .phead p { color: rgba(245,247,250,.95); }
body.sr .legal-hero .kicker, body.sr .platform-hero .kicker, body.sr .cap-hero .kicker,
body.sr .why-hero .kicker, body.sr .sec-hero .kicker, body.sr .phead .kicker,
body.sr .hero .kicker, body.sr .rel-hero .kicker,
body.sr .legal-hero .eyebrow, body.sr .platform-hero .eyebrow, body.sr .cap-hero .eyebrow,
body.sr .why-hero .eyebrow, body.sr .sec-hero .eyebrow, body.sr .phead .eyebrow,
body.sr .hero .eyebrow, body.sr .rel-hero .eyebrow { color: var(--gold); }
/* buttons that assumed a light hero */
body.sr .platform-hero .btn-outline, body.sr .cap-hero .btn-outline, body.sr .why-hero .btn-outline,
body.sr .sec-hero .btn-outline, body.sr .hero .btn-outline, body.sr .rel-hero .btn-outline,
body.sr .phead .btn-outline {
  color: #f5f7fa; border-color: rgba(198,161,91,.45);
}
body.sr .platform-hero .btn-outline:hover, body.sr .cap-hero .btn-outline:hover,
body.sr .why-hero .btn-outline:hover, body.sr .sec-hero .btn-outline:hover,
body.sr .hero .btn-outline:hover, body.sr .rel-hero .btn-outline:hover,
body.sr .phead .btn-outline:hover { background: rgba(198,161,91,.12); color: #fff; border-color: rgba(198,161,91,.7); }
body.sr .hero-trust { color: rgba(245,247,250,.88); }
body.sr .hero-trust .ok { color: #7ed6a2; }

/* --- light-section retheme ------------------------------------------------ */
body.sr .eyebrow, body.sr .kicker { color: var(--brass-ink); }
body.sr .section--tint { background: #f1eee7; }
body.sr .card { border-radius: 14px; }
body.sr .card:hover { border-color: rgba(155,125,46,.5); }
body.sr .card-icon { background: #efe9dd; color: var(--navy); }
/* dark sections keep their own light text (see hero rules above) */
body.sr .section--navy .lede, body.sr .section--navy p { color: rgba(245,247,250,.8); }
body.sr .section--navy { background: linear-gradient(180deg, var(--navy), var(--deep)); }
body.sr .section--navy .eyebrow, body.sr .section--navy .kicker { color: var(--gold); }
