/* ==========================================================================
   SafeScaleAI — Financial Instruments & Canadian AI Finance
   Theme: Dark Slate · Institutional · Refined
   Fonts: Libre Baskerville (display) + Source Sans 3 (body) + JetBrains Mono
   ========================================================================== */

:root {
  /* Core palette — slate & dark navy */
  --bg:        #0d1117;
  --bg-2:      #131920;
  --bg-3:      #1a2230;
  --bg-card:   #16202d;
  --bg-card-2: #1e2d3e;
  --border:    rgba(99, 140, 177, 0.18);
  --border-hi: rgba(99, 140, 177, 0.38);

  /* Text */
  --ink:   #e8edf2;
  --ink-2: #a8b8c8;
  --ink-3: #6a8099;
  --ink-4: #3d5068;

  /* Accent: steel blue + gold */
  --accent:       #3d82c4;
  --accent-2:     #2e6aa8;
  --accent-glow:  rgba(61, 130, 196, 0.15);
  --gold:         #c8993a;
  --gold-soft:    rgba(200, 153, 58, 0.12);
  --positive:     #3d9970;
  --warn:         #d4842a;
  --danger:       #c0414f;

  /* Layout */
  --max: 1280px;
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Horizontal rule utility */
hr { border: none; border-top: 1px solid var(--border); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.display {
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.serif-em {
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.mono {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.875em;
}
.label-caps {
  font-family: "Source Sans 3", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  border-radius: var(--radius);
  white-space: nowrap;
  text-decoration: none;
}
.btn-sm  { font-size: 13px; padding: 7px 16px; }
.btn-md  { font-size: 14px; padding: 10px 22px; }
.btn-lg  { font-size: 15px; padding: 13px 28px; }

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(61,130,196,0.3); }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1.5px solid var(--border-hi);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }

.btn-gold {
  background: var(--gold);
  color: #0d1117;
  font-weight: 700;
}
.btn-gold:hover { background: #d4a84a; transform: translateY(-1px); }

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(13, 17, 23, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.topbar-band .band-item { display: flex; align-items: center; gap: 6px; }
.topbar-band .band-sep { color: var(--border-hi); }
.topbar-band .band-flag { font-size: 12px; }

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.logo .accent-dot { color: var(--gold); }
.logo .reg { font-size: 10px; color: var(--ink-3); vertical-align: super; margin-left: 1px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin-left: 24px;
  flex-wrap: wrap;
}
.nav > a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.nav > a:hover { color: var(--ink); background: rgba(99,140,177,0.08); }

.nav-item { position: relative; }
.nav-trigger {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s, background 0.15s;
  font-family: inherit;
}
.nav-trigger:hover { color: var(--ink); background: rgba(99,140,177,0.08); }
.nav-trigger .caret {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--ink-3);
  transition: transform 0.2s;
}
.nav-item:hover .caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  min-width: 260px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 4px;
  color: var(--ink-2);
  transition: background 0.12s, color 0.12s;
}
.nav-dropdown a:hover { background: rgba(61,130,196,0.1); color: var(--ink); }
.nav-dropdown a .label { font-size: 13px; font-weight: 600; color: var(--ink); }
.nav-dropdown a .sub { font-size: 11px; color: var(--ink-3); margin-top: 1px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Mobile nav toggle */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-2);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ==========================================================================
   TICKER
   ========================================================================== */
.hero-ticker {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 8px 0;
}
.hero-ticker-inner {
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
}
.live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--danger);
  text-transform: uppercase;
  flex-shrink: 0;
}
.pulse {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.hero-ticker-track {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}
.hero-ticker-track span { color: var(--ink-2); }
.tk-label { font-weight: 700; color: var(--ink-3); letter-spacing: 0.08em; }
.tk-val { color: var(--ink); }
.tk-delta-up { color: var(--positive); }
.tk-delta-dn { color: var(--gold); }
.tk-sep { color: var(--border-hi); }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  border-bottom: 1px solid var(--border);
}
.hero-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.hero-top .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--positive);
  margin-right: 7px;
  animation: pulse 2s infinite;
}

.hero-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 28px 72px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: start;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-soft);
  border: 1px solid rgba(200, 153, 58, 0.3);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}
.badge .star { color: var(--gold); font-size: 8px; }
.hero-kicker > span:last-child { font-size: 12px; color: var(--ink-3); font-family: "JetBrains Mono", monospace; }

.hero h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero h1 .em {
  color: var(--gold);
  font-style: italic;
}
.hero h1 .ul {
  border-bottom: 3px solid var(--accent);
  padding-bottom: 2px;
}
.hero h1 .small-line {
  display: block;
  font-size: clamp(15px, 1.8vw, 18px);
  font-family: "Source Sans 3", sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  color: var(--ink-2);
  margin-top: 16px;
  line-height: 1.55;
  border-left: 3px solid var(--border-hi);
  padding-left: 16px;
}
.hero-lede {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}
.hero-lede strong { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero meta sidebar */
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}
.hero-meta-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
  transition: border-color 0.2s;
}
.hero-meta-block:hover { border-color: var(--border-hi); }
.hero-meta-block .lbl {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.hero-meta-block .val {
  display: block;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1;
}
.hero-meta-block .val em { color: var(--gold); font-style: normal; }
.hero-meta-block p { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

.hero-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.hero-visual-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-visual-label .tk { color: var(--accent); }
.diagram { display: block; width: 100%; padding: 16px; }

/* ==========================================================================
   SECTION UTILITIES
   ========================================================================== */
.section-header {
  max-width: var(--max);
  margin: 0 auto 48px;
  padding: 0 28px;
}
.section-header h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-header h2 .em { color: var(--gold); font-style: italic; }
.section-header .section-lede {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 640px;
  line-height: 1.7;
}
.section-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
section:nth-child(even) { background: var(--bg-2); }

/* ==========================================================================
   PROBLEM STRIP
   ========================================================================== */
.problem-strip {
  background: var(--bg-3) !important;
  padding: 52px 0 !important;
}
.problem-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.prob-card {
  background: var(--bg-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s;
}
.prob-card:hover { background: var(--bg-card-2); }
.prob-icon {
  font-size: 22px;
  margin-bottom: 4px;
}
.prob-stat {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--danger);
  letter-spacing: -0.02em;
  line-height: 1;
}
.prob-stat.warn { color: var(--warn); }
.prob-stat.gold { color: var(--gold); }
.prob-stat.accent { color: var(--accent); }
.prob-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.prob-sub { font-size: 12px; color: var(--ink-3); line-height: 1.5; }

/* ==========================================================================
   CLIENTELE TABS (Financial Parties)
   ========================================================================== */
.client-section { background: var(--bg) !important; }
.client-tabs {
  max-width: var(--max);
  margin: 0 auto 0;
  padding: 0 28px;
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.client-tab {
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  color: var(--ink-3);
  font-family: "Source Sans 3", sans-serif;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  text-align: left;
}
.client-tab .ct-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.client-tab .ct-name { font-size: 13.5px; font-weight: 600; color: inherit; }
.client-tab:hover { color: var(--ink-2); }
.client-tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.client-tab.active .ct-num { color: var(--accent); }

.client-panels { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.client-panel { display: none; padding: 40px 0; }
.client-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.client-panel h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.client-panel .panel-sub { font-size: 15px; color: var(--ink-2); line-height: 1.65; margin-bottom: 24px; }
.client-panel ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.client-panel ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.client-panel ul li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.client-panel .panel-right { display: flex; flex-direction: column; gap: 14px; }
.panel-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.panel-stat-card:hover { border-color: var(--border-hi); }
.psc-num {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  min-width: 80px;
}
.psc-body .psc-label { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.psc-body .psc-note { font-size: 12px; color: var(--ink-3); line-height: 1.4; }

/* ==========================================================================
   RISK MATRIX SECTION
   ========================================================================== */
.risk-matrix {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.risk-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 24px;
  position: relative;
  transition: all 0.2s;
  overflow: hidden;
}
.risk-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.risk-card.high::before { background: var(--danger); }
.risk-card.medium::before { background: var(--warn); }
.risk-card.low::before { background: var(--positive); }
.risk-card:hover { border-color: var(--border-hi); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

.risk-tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.high .risk-tag { background: rgba(192,65,79,0.12); color: var(--danger); }
.medium .risk-tag { background: rgba(212,132,42,0.12); color: var(--warn); }
.low .risk-tag { background: rgba(61,153,112,0.12); color: var(--positive); }

.risk-card h4 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.risk-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.risk-card .risk-metric {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-3);
}
.risk-card .risk-metric strong { color: var(--ink); }

/* ==========================================================================
   INSTRUMENTS SECTION
   ========================================================================== */
.instruments-section { background: var(--bg) !important; }
.instruments-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.instrument-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.instrument-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.instrument-card:hover { border-color: var(--border-hi); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.instrument-card:hover::after { opacity: 1; }

.instrument-card.featured {
  border-color: rgba(61,130,196,0.4);
  background: linear-gradient(135deg, var(--bg-card), rgba(61,130,196,0.06));
}
.instrument-card.featured::after { opacity: 1; }

.ic-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.ic-tag.gold { color: var(--gold); }
.ic-tag.positive { color: var(--positive); }
.ic-tag.warn { color: var(--warn); }

.instrument-card h4 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.instrument-card p { font-size: 14px; color: var(--ink-2); line-height: 1.65; margin-bottom: 18px; }
.instrument-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.instrument-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
}
.instrument-card ul li::before {
  content: "◆";
  color: var(--accent);
  font-size: 7px;
  flex-shrink: 0;
  margin-top: 5px;
}
.ic-meta {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.ic-meta-item { display: flex; flex-direction: column; gap: 2px; }
.ic-meta-item .ic-meta-lbl { font-size: 10px; font-family: "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-4); }
.ic-meta-item .ic-meta-val { font-size: 13px; font-weight: 600; color: var(--ink); }

/* ==========================================================================
   GOVERNMENT PROGRAMS SECTION
   ========================================================================== */
.gov-section { background: var(--bg-2) !important; }
.gov-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.gov-intro h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.gov-intro h2 .em { color: var(--gold); font-style: italic; }
.gov-intro p { font-size: 15px; color: var(--ink-2); line-height: 1.7; margin-bottom: 16px; }

.program-list { display: flex; flex-direction: column; gap: 12px; }
.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.program-card:hover { border-color: var(--border-hi); }
.program-card.active { border-color: var(--accent); background: rgba(61,130,196,0.06); }
.program-card .pc-org {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.program-card .pc-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.program-card .pc-amount { font-family: "Libre Baskerville", serif; font-size: 18px; font-weight: 700; color: var(--gold); }
.program-card .pc-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.program-card .pc-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.pc-tag {
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(61,130,196,0.1);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}
.pc-tag.gold { background: rgba(200,153,58,0.1); color: var(--gold); }
.pc-tag.positive { background: rgba(61,153,112,0.1); color: var(--positive); }

/* ==========================================================================
   DEMAND VISIBILITY SECTION (Price hedging, forward curves)
   ========================================================================== */
.demand-section { background: var(--bg) !important; }
.demand-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}
.demand-chart-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.demand-chart-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.demand-chart-header .dch-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.demand-chart-header .dch-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--positive);
  font-family: "JetBrains Mono", monospace;
}
.chart-canvas { padding: 20px; }

.demand-text .section-eyebrow { margin-bottom: 16px; }
.demand-text h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.demand-text h2 .em { color: var(--gold); font-style: italic; }
.demand-text p { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: 16px; }

.hedging-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 13px;
}
.hedging-table thead tr { border-bottom: 1px solid var(--border-hi); }
.hedging-table th {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 8px 12px 10px;
  text-align: left;
  font-weight: 500;
}
.hedging-table td {
  padding: 10px 12px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--border);
}
.hedging-table td:first-child { font-weight: 600; color: var(--ink); }
.hedging-table tr:hover td { background: rgba(61,130,196,0.04); }
.tag-pill {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}
.tag-new { background: rgba(61,130,196,0.15); color: var(--accent); }
.tag-emerging { background: rgba(200,153,58,0.15); color: var(--gold); }
.tag-active { background: rgba(61,153,112,0.15); color: var(--positive); }

/* ==========================================================================
   SIZING / APPROACH SECTION
   ========================================================================== */
.sizing-section { background: var(--bg-2) !important; }
.sizing-tabs {
  max-width: var(--max);
  margin: 0 auto 0;
  padding: 0 28px;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.size-tab {
  padding: 14px 22px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-family: "Source Sans 3", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  transition: all 0.15s;
  white-space: nowrap;
}
.size-tab:hover { color: var(--ink-2); }
.size-tab.active { color: var(--ink); border-bottom-color: var(--gold); }

.sizing-panels { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.size-panel { display: none; padding: 40px 0; }
.size-panel.active { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.sp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 22px;
  transition: all 0.2s;
}
.sp-card:hover { border-color: var(--border-hi); }
.sp-card h5 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.sp-card p { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin-bottom: 12px; }
.sp-card ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.sp-card ul li {
  font-size: 12.5px;
  color: var(--ink-3);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.sp-card ul li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ==========================================================================
   METHOD SECTION
   ========================================================================== */
.method-section { background: var(--bg) !important; }
.method-table { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.method-row {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.method-row:hover { background: rgba(61,130,196,0.04); }
.method-row-head {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 16px;
}
.method-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.method-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.method-toggle {
  font-size: 20px;
  color: var(--ink-3);
  transition: transform 0.25s;
  width: 24px;
  text-align: center;
  user-select: none;
}
.method-row.expanded .method-toggle { transform: rotate(45deg); color: var(--accent); }
.method-body {
  display: none;
  padding: 0 16px 24px;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.method-row.expanded .method-body { display: grid; }
.method-body p { font-size: 14px; color: var(--ink-2); line-height: 1.65; }
.method-body ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.method-body ul li { font-size: 13px; color: var(--ink-2); padding-left: 16px; position: relative; line-height: 1.5; }
.method-body ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* ==========================================================================
   ENGAGEMENTS / PRICING
   ========================================================================== */
.pricing-section { background: var(--bg-2) !important; }
.pricing-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: all 0.2s;
}
.price-card:hover { border-color: var(--border-hi); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.2); }
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--bg-card), rgba(61,130,196,0.07));
}
.price-card .ribbon {
  position: absolute;
  top: -1px; right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0 0 4px 4px;
}
.price-card h4 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.price-card .tagline { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.price-card .scope {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 8px;
  letter-spacing: -0.02em;
}
.price-card .scope-sub { font-size: 11px; color: var(--ink-3); font-family: "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: 0.08em; }
.price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  flex: 1;
}
.price-card ul li { font-size: 13px; color: var(--ink-2); padding-left: 16px; position: relative; line-height: 1.4; }
.price-card ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-section { background: var(--bg) !important; }
.faq-list { max-width: 800px; margin: 0 auto; padding: 0 28px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Source Sans 3", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  width: 100%;
  gap: 16px;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--accent); }
.faq-mark { font-size: 20px; color: var(--ink-3); flex-shrink: 0; font-weight: 300; }
.faq-a { display: none; padding-bottom: 20px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-mark { color: var(--accent); }

/* ==========================================================================
   CTA / CONTACT
   ========================================================================== */
.cta-section { background: var(--bg-3) !important; padding: 80px 0 !important; }
.cta-card {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.cta-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.cta-card h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.cta-card h3 .em { color: var(--gold); font-style: italic; }
.cta-card > div > p { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "JetBrains Mono", monospace;
}
.form-field input, .form-field select, .form-field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-4); }
.form-field select option { background: var(--bg-card); color: var(--ink); }

.form-message {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 4px;
  display: none;
  margin-top: 4px;
}
.form-message.show { display: block; }
.form-message.success { background: rgba(61,153,112,0.1); color: var(--positive); border: 1px solid rgba(61,153,112,0.2); }
.form-message.error { background: rgba(192,65,79,0.1); color: var(--danger); border: 1px solid rgba(192,65,79,0.2); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 28px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-brand .logo { font-size: 18px; margin-bottom: 12px; display: flex; }
.footer-brand p { font-size: 13px; color: var(--ink-3); line-height: 1.6; max-width: 280px; }
.footer-col h6 {
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 9px;
  transition: color 0.15s;
  cursor: pointer;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-4);
  font-family: "JetBrains Mono", monospace;
}
.footer-bottom .status { display: flex; align-items: center; gap: 6px; }
.footer-bottom .dot { width: 6px; height: 6px; background: var(--positive); border-radius: 50%; animation: pulse 2.5s infinite; }
.canada-flag { font-size: 14px; }

/* ==========================================================================
   CHART SVG (forward curve)
   ========================================================================== */
.chart-svg { width: 100%; height: 200px; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; }
.chart-line-gold { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 5 3; }
.chart-area { fill: url(#chartGrad); opacity: 0.15; }
.chart-axis { stroke: var(--border); stroke-width: 1; }
.chart-label { font-family: "JetBrains Mono", monospace; font-size: 9px; fill: var(--ink-4); }

/* ==========================================================================
   404 PAGE
   ========================================================================== */
.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 28px;
  text-align: center;
}
.not-found h1 { font-family: "Libre Baskerville", serif; font-size: 80px; font-weight: 700; color: var(--ink-4); letter-spacing: -0.04em; margin-bottom: 16px; }
.not-found p { color: var(--ink-2); margin-bottom: 24px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-main { grid-template-columns: 1fr; }
  .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .risk-grid { grid-template-columns: 1fr 1fr; }
  .instruments-grid { grid-template-columns: 1fr; }
  .gov-grid { grid-template-columns: 1fr; }
  .demand-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .topbar-band { display: none; }
  .nav { display: none; }
  .nav-right { display: none; }
  .nav-hamburger { display: flex; margin-left: auto; }
  .hero-main { padding: 40px 20px 48px; }
  .hero-meta { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .section-header { padding: 0 20px; }
  .risk-grid { grid-template-columns: 1fr; }
  .size-panel.active { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .client-panel.active { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .topbar-inner { padding: 12px 20px; }
  .method-body { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .problem-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .sizing-panels .size-panel.active { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Scroll-reveal utility (JS adds .visible) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
