/* ==========================================================================
   RIGFOA — Rigorous Financial Oversight & Analytics
   Design system: government-trusted, conservative, modern.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --navy-900: #0d1442;
  --navy-800: #141c5c;
  --navy: #1a237e;
  --navy-600: #283593;
  --navy-500: #303f9f;
  --navy-400: #3f51b5;

  --gold: #c8a951;
  --gold-dark: #a8873a;
  --gold-light: #e2cd92;

  --mist: #e8eaf6;
  --mist-50: #f4f6fb;
  --paper: #ffffff;
  --page: #fbfcfe;

  --ink: #1b1f2a;
  --ink-70: #444b5c;
  --ink-55: #626a7d;
  --ink-35: #9aa1b1;

  --line: #dfe3ee;
  --line-strong: #c6ccdd;

  --ok: #1b7f5a;
  --warn: #a8873a;
  --alert: #9b2c2c;

  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --wrap-narrow: 780px;

  --r-sm: 3px;
  --r: 5px;
  --r-lg: 10px;

  --sh-1: 0 1px 2px rgba(13, 20, 66, .06), 0 1px 3px rgba(13, 20, 66, .05);
  --sh-2: 0 2px 6px rgba(13, 20, 66, .07), 0 8px 24px rgba(13, 20, 66, .07);
  --sh-3: 0 4px 12px rgba(13, 20, 66, .10), 0 18px 44px rgba(13, 20, 66, .12);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 700; color: var(--navy-900); margin: 0 0 .55em; line-height: 1.25; letter-spacing: -.008em; }
h1 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.05rem); line-height: 1.16; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: clamp(1.16rem, 1.05rem + .45vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.35em; }
li { margin-bottom: .5em; }
strong { font-weight: 700; color: var(--navy-900); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--mist); padding: .12em .4em; border-radius: var(--r-sm); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

/* --- Layout helpers ----------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--mist { background: var(--mist-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy { background: var(--navy-900); color: #cdd3ee; }
.section--navy h2, .section--navy h3 { color: #fff; }

.grid { display: grid; gap: 26px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* --- Eyebrow / section head --------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: block; }
.section--navy .eyebrow { color: var(--gold-light); }
.sec-head { max-width: 720px; margin-bottom: 42px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head.center .eyebrow::before { display: none; }
.sec-head p { color: var(--ink-70); font-size: 1.05rem; margin-bottom: 0; }
.section--navy .sec-head p { color: #b6bee4; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  padding: 13px 24px; border-radius: var(--r); border: 1.5px solid transparent;
  cursor: pointer; transition: all .2s var(--ease); text-decoration: none !important;
  line-height: 1.2;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-900); transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-600); color: #fff; transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy); background: var(--mist-50); color: var(--navy); }
.btn-sm { padding: 9px 16px; font-size: .84rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .9rem; color: var(--navy-600); }
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link-arrow:hover { text-decoration: none; color: var(--navy); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --- Top utility bar ---------------------------------------------------- */
.utility {
  background: var(--navy-900); color: #a9b2da;
  font-size: .78rem; letter-spacing: .02em;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 38px; }
.utility a { color: #cdd3ee; }
.utility a:hover { color: var(--gold-light); text-decoration: none; }
.utility-left { display: flex; align-items: center; gap: 9px; }
.utility-left svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
.utility-right { display: flex; align-items: center; gap: 20px; }
@media (max-width: 860px) { .utility-left span { display: none; } .utility .wrap { justify-content: flex-end; } }

/* --- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: var(--sh-1); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand:hover { text-decoration: none; }
.brand svg { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { margin: 0; position: relative; }
.nav-links > li > a {
  display: block; padding: 10px 13px; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 600; color: var(--ink-70); letter-spacing: .005em;
}
.nav-links > li > a:hover { color: var(--navy); background: var(--mist-50); text-decoration: none; }
.nav-links > li > a.is-active { color: var(--navy); }
.nav-links > li > a.is-active::after {
  content: ""; display: block; height: 2px; background: var(--gold);
  margin: 6px 13px -12px; border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 10px; flex: none; }

.has-sub > a::after { content: "▾"; font-size: .7em; margin-left: 6px; color: var(--ink-35); }
.subnav {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-3); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s var(--ease);
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav li { margin: 0; }
.subnav a { display: block; padding: 10px 12px; border-radius: var(--r-sm); font-size: .88rem; font-weight: 600; color: var(--navy-900); }
.subnav a:hover { background: var(--mist-50); text-decoration: none; }
.subnav a small { display: block; font-weight: 400; font-size: .78rem; color: var(--ink-55); margin-top: 2px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--r); cursor: pointer; padding: 0;
  align-items: center; justify-content: center; color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .nav-links > li > a { padding: 10px 9px; font-size: .86rem; }
  .nav { gap: 14px; }
}
@media (max-width: 980px) {
  /* The off-canvas panel sits outside the viewport when closed; clip so it cannot
     create a horizontal scrollbar. The viewport stays the scroll container, so
     position: sticky on the header is unaffected. */
  html { overflow-x: hidden; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw);
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 90px 20px 40px; box-shadow: var(--sh-3); overflow-y: auto;
    transform: translateX(102%); transition: transform .28s var(--ease); z-index: 70;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links > li > a { padding: 14px 10px; font-size: .98rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links > li > a.is-active::after { display: none; }
  .nav-links > li > a.is-active { color: var(--navy); background: var(--mist-50); }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 10px; min-width: 0; }
  .has-sub > a::after { display: none; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(13,20,66,.45); z-index: 65; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 46%, var(--navy-500) 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-main { padding: 96px 0 84px; display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-lede { font-size: 1.14rem; color: #c5cbec; max-width: 34em; margin-bottom: 30px; }
.hero .eyebrow { color: var(--gold-light); }
.hero-rule { width: 74px; height: 3px; background: var(--gold); margin-bottom: 26px; border-radius: 2px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 30px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); }
@media (max-width: 560px) { .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; } }
.hero-stats div strong { display: block; font-family: var(--serif); font-size: 1.72rem; color: var(--gold-light); line-height: 1.1; }
.hero-stats div span { font-size: .8rem; color: #a8b0d8; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }

.hero-visual { position: relative; }
.hero-panel {
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg); padding: 20px; backdrop-filter: blur(6px);
  box-shadow: 0 30px 70px rgba(0,0,0,.34);
}
.hero-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-panel-head b { font-family: var(--serif); font-size: .95rem; color: #fff; }
.hero-panel-head span { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-light); border: 1px solid rgba(200,169,81,.45); padding: 3px 9px; border-radius: 20px; }

/* --- Page hero (interior pages) ----------------------------------------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy) 100%);
  color: #fff; padding: 62px 0 58px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 420px; height: 420px;
  border: 1px solid rgba(200,169,81,.22); border-radius: 50%;
}
.page-hero::before {
  content: ""; position: absolute; right: 40px; top: 40px; width: 260px; height: 260px;
  border: 1px solid rgba(255,255,255,.09); border-radius: 50%;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 14px; max-width: 20em; }
.page-hero p { color: #c0c7ea; font-size: 1.06rem; max-width: 46em; margin-bottom: 0; }

.crumbs { font-size: .8rem; color: #97a0cc; margin-bottom: 18px; }
.crumbs a { color: #c8cee9; }
.crumbs a:hover { color: var(--gold-light); }
.crumbs span { margin: 0 8px; color: #6b74a5; }

/* --- Cards -------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 26px; position: relative; overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  display: flex; flex-direction: column;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-70); font-size: .95rem; margin-bottom: 1em; }
.card > :last-child { margin-bottom: 0; }
.card > a:last-child, .card > .btn:last-child, .card > .btn-row:last-child { margin-top: auto; padding-top: 6px; }

.icon-badge {
  width: 50px; height: 50px; border-radius: var(--r); background: var(--mist);
  color: var(--navy); display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px; flex: none; border: 1px solid #dbe0f2;
}
.icon-badge svg { width: 26px; height: 26px; }
.card:hover .icon-badge { background: var(--navy); color: var(--gold-light); border-color: var(--navy); }
.icon-badge--gold { background: rgba(200,169,81,.14); border-color: rgba(200,169,81,.34); color: var(--gold-dark); }

.card-num {
  font-family: var(--serif); font-size: .8rem; font-weight: 700; color: var(--gold-dark);
  letter-spacing: .1em; margin-bottom: 10px; display: block;
}

/* --- Feature list ------------------------------------------------------- */
.checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checks li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 13px; font-size: .95rem; color: var(--ink-70); }
.checks li svg { width: 19px; height: 19px; flex: none; color: var(--gold-dark); margin-top: 3px; }
.checks li b { color: var(--navy-900); }
.section--navy .checks li { color: #c3caea; }
.section--navy .checks li b { color: #fff; }
.section--navy .checks li svg { color: var(--gold-light); }

/* --- Stats band --------------------------------------------------------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat-band > div { background: #fff; padding: 28px 24px; }
.stat-band strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--navy); line-height: 1.1; margin-bottom: 6px; }
.stat-band span { font-size: .84rem; color: var(--ink-55); font-weight: 600; letter-spacing: .03em; }

/* --- Partner / trusted band --------------------------------------------- */
.logo-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.logo-slot {
  background: #fff; min-height: 96px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 18px 12px; text-align: center;
}
.logo-slot svg { width: 30px; height: 30px; color: var(--ink-35); }
.logo-slot span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-35); font-weight: 700; }
@media (max-width: 900px) { .logo-row { grid-template-columns: repeat(2, 1fr); } }

/* --- Article cards ------------------------------------------------------ */
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.post-thumb { height: 132px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.post-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-cat {
  font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 10px; display: block;
}
.post-card h3 { font-size: 1.06rem; line-height: 1.35; margin-bottom: .5em; }
.post-card h3 a { color: var(--navy-900); }
.post-card h3 a:hover { color: var(--navy-600); text-decoration: none; }
.post-card p { font-size: .9rem; color: var(--ink-70); margin-bottom: 1em; }
.post-meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-35); display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Research index controls -------------------------------------------- */
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin-bottom: 34px; box-shadow: var(--sh-1); }
.search-field { position: relative; margin-bottom: 18px; }
.search-field svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--ink-35); pointer-events: none; }
.search-field input {
  width: 100%; padding: 13px 16px 13px 46px; font-family: var(--sans); font-size: .95rem;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--mist-50); color: var(--ink);
}
.search-field input:focus { outline: none; border-color: var(--navy-400); background: #fff; box-shadow: 0 0 0 3px rgba(63,81,181,.13); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--ink-70);
  background: var(--mist-50); border: 1px solid var(--line); border-radius: 30px;
  padding: 7px 15px; cursor: pointer; transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--navy-400); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip small { opacity: .65; margin-left: 5px; font-weight: 600; }
.filter-label { font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-35); margin-bottom: 11px; }
.result-count { font-size: .87rem; color: var(--ink-55); margin: 0 0 20px; }
.no-results { text-align: center; padding: 60px 20px; color: var(--ink-55); border: 1px dashed var(--line-strong); border-radius: var(--r); }

/* --- Article page ------------------------------------------------------- */
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 56px; align-items: start; }
.prose { font-size: 1.045rem; line-height: 1.82; color: var(--ink-70); }
.prose > h2 { margin-top: 2.1em; padding-top: .2em; }
.prose > h3 { margin-top: 1.7em; }
.prose p { margin-bottom: 1.3em; }
.prose ul, .prose ol { margin-bottom: 1.5em; }
.prose li { margin-bottom: .6em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.prose blockquote {
  margin: 2em 0; padding: 22px 28px; background: var(--mist-50);
  border-left: 3px solid var(--gold); border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--serif); font-size: 1.02rem; color: var(--navy-900); font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.callout {
  margin: 2em 0; padding: 22px 26px; border: 1px solid var(--line);
  border-left: 3px solid var(--navy-400); background: #fff; border-radius: 0 var(--r) var(--r) 0;
}
.callout h4 { margin-bottom: .5em; font-size: .95rem; }
.callout p:last-child { margin-bottom: 0; }
.callout--gold { border-left-color: var(--gold); background: #fdfaf1; }

.article-head { margin-bottom: 34px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: .82rem; color: var(--ink-55); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 15px; height: 15px; color: var(--ink-35); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tag { font-size: .76rem; font-weight: 600; color: var(--navy-600); background: var(--mist); border-radius: 3px; padding: 5px 11px; }
.tag:hover { background: var(--navy); color: #fff; text-decoration: none; }

.sidebar { position: sticky; top: 100px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 22px; }
.side-box h4 { font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-dark); font-family: var(--sans); font-weight: 800; margin-bottom: 15px; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: .89rem; line-height: 1.5; }
.side-box li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.side-box a { color: var(--navy-900); font-weight: 600; }
.toc { counter-reset: toc; }
.toc a { font-weight: 500; color: var(--ink-70); }
.toc a:hover { color: var(--navy); }

/* --- Tables ------------------------------------------------------------- */
.table-scroll { overflow-x: auto; margin: 2em 0; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; min-width: 520px; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--mist-50); font-weight: 700; color: var(--navy-900); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--mist-50); }

/* --- Product mockup (solutions) ----------------------------------------- */
.mockup {
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-3);
}
.mockup-bar { background: var(--navy-900); padding: 11px 16px; display: flex; align-items: center; gap: 9px; }
.mockup-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.24); }
.mockup-bar b { color: #cdd3ee; font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .06em; margin-left: 10px; }
.mockup-body { padding: 0; background: var(--mist-50); }
.mockup-body svg { width: 100%; height: auto; display: block; }

/* --- Forms -------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 34px; box-shadow: var(--sh-1); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .84rem; font-weight: 700; color: var(--navy-900); margin-bottom: 7px; }
.field label .req { color: var(--alert); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: var(--sans); font-size: .95rem; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-400); box-shadow: 0 0 0 3px rgba(63,81,181,.13);
}
.field .hint { font-size: .78rem; color: var(--ink-35); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .84rem; color: var(--ink-55); margin-bottom: 22px; }
.consent input { width: 17px; height: 17px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.form-note { font-size: .82rem; color: var(--ink-35); margin-top: 16px; margin-bottom: 0; }
.form-status { display: none; padding: 15px 18px; border-radius: var(--r); font-size: .9rem; margin-bottom: 20px; }
.form-status.ok { display: block; background: #eaf6f1; border: 1px solid #b8e0cf; color: var(--ok); }
.form-status.err { display: block; background: #fdeded; border: 1px solid #f1c5c5; color: var(--alert); }

/* --- Contact detail ----------------------------------------------------- */
.contact-item { display: flex; gap: 15px; margin-bottom: 26px; }
.contact-item svg { width: 21px; height: 21px; color: var(--gold-dark); flex: none; margin-top: 3px; }
.contact-item b { display: block; color: var(--navy-900); font-size: .93rem; margin-bottom: 3px; }
.contact-item span, .contact-item a { font-size: .93rem; color: var(--ink-70); }

/* --- Pricing / membership ----------------------------------------------- */
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 34px 30px; display: flex; flex-direction: column; position: relative; }
.plan.is-featured { border-color: var(--navy); box-shadow: var(--sh-2); }
.plan.is-featured::after {
  content: "Most popular"; position: absolute; top: -12px; left: 30px;
  background: var(--gold); color: var(--navy-900); font-size: .7rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 13px; border-radius: 20px;
}
.plan-name { font-family: var(--serif); font-size: 1.28rem; color: var(--navy-900); margin-bottom: 6px; }
.plan-price { font-family: var(--serif); font-size: 2.3rem; color: var(--navy); line-height: 1.1; margin-bottom: 4px; }
.plan-price small { font-family: var(--sans); font-size: .84rem; color: var(--ink-55); font-weight: 600; }
.plan-desc { font-size: .9rem; color: var(--ink-55); margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.plan .btn { margin-top: auto; justify-content: center; }

/* --- Accordion (FAQ) ---------------------------------------------------- */
.acc { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:last-child { border-bottom: 0; }
.acc summary {
  cursor: pointer; padding: 19px 24px; font-weight: 700; color: var(--navy-900);
  font-size: .98rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.3rem; color: var(--gold-dark); font-weight: 400; flex: none; }
.acc details[open] summary::after { content: "–"; }
.acc summary:hover { background: var(--mist-50); }
.acc .acc-body { padding: 0 24px 22px; color: var(--ink-70); font-size: .95rem; }
.acc .acc-body p:last-child { margin-bottom: 0; }

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-500) 100%);
  color: #fff; border-radius: var(--r-lg); padding: 52px 56px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px;
  border: 1px solid rgba(200,169,81,.28); border-radius: 50%;
}
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { color: #c5cbec; margin-bottom: 0; max-width: 42em; }
.cta-band .btn-row { position: relative; z-index: 2; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #9aa3cf; padding: 66px 0 0; font-size: .9rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 46px; }
.site-footer h5 { color: #fff; font-family: var(--sans); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { color: #a9b2da; }
.site-footer a:hover { color: var(--gold-light); text-decoration: none; }
.footer-brand svg { height: 42px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: #8f98c6; font-size: .88rem; max-width: 32em; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--r);
  display: inline-flex; align-items: center; justify-content: center; color: #a9b2da;
}
.social-row a:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(200,169,81,.1); }
.social-row svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0 30px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .82rem; color: #7d86b4;
}
.footer-bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom li { margin: 0; }
.footer-disclaimer {
  background: rgba(0,0,0,.22); border-top: 1px solid rgba(255,255,255,.07);
  font-size: .79rem; color: #a2abd6; padding: 18px 0; line-height: 1.65;
}

/* --- Cookie banner ------------------------------------------------------ */
.cookie-bar {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 90;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r);
  box-shadow: var(--sh-3); padding: 22px 26px; max-width: 660px; margin: 0 auto;
  display: none; align-items: center; gap: 26px;
}
.cookie-bar.is-shown { display: flex; }
.cookie-bar p { margin: 0; font-size: .87rem; color: var(--ink-70); }
.cookie-bar .btn-row { flex: none; }
@media (max-width: 660px) { .cookie-bar { flex-direction: column; align-items: stretch; } }

/* --- Reveal animation --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --- Utility ------------------------------------------------------------ */
.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--navy-900);
  padding: 10px 18px; border-radius: var(--r); font-weight: 700; z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.lead { font-size: 1.12rem; color: var(--ink-70); line-height: 1.72; }
.muted { color: var(--ink-55); }
.small { font-size: .86rem; }

/* --- Breakpoints -------------------------------------------------------- */
@media (max-width: 1280px) { :root { --wrap: 1120px; } }
@media (max-width: 1024px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .hero-main { grid-template-columns: 1fr; gap: 46px; padding: 68px 0 64px; }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { position: static; }
  .split { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .g-3, .g-2, .split { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 38px 30px; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 26px 22px; }
  .hero-stats { gap: 24px; }
}
@media (max-width: 480px) {
  body { font-size: 15.5px; }
  .wrap, .wrap-narrow { padding: 0 18px; }
  .section { padding: 44px 0; }
  .g-4, .stat-band, .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; }
  .cta-band { padding: 30px 22px; }
  .hero-stats div strong { font-size: 1.45rem; }
}

/* --- Print -------------------------------------------------------------- */
@media print {
  .utility, .site-header, .site-footer, .cookie-bar, .cta-band, .sidebar { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .article-layout { grid-template-columns: 1fr; }
  a { color: #000; text-decoration: none; }
}
