/* =================================================================
   BlueMetric — shared.css
   Design system extracted from Homepage.html.
   Loaded on every page before page-specific <style> blocks.
   ================================================================= */

/* ─────────── TOKENS ─────────── */
:root {
  /* Ink scale */
  --ink-0: #1A1A2E;
  --ink-1: #1A1A2E;
  --ink-2: #3B3B55;
  --ink-3: #6B7280;
  --ink-4: #9CA3AF;

  /* Paper / surfaces */
  --paper:   #FFFFFF;
  --paper-2: #FAFAFC;
  --paper-3: #F3F4F6;
  --line:    #E5E7EB;
  --line-2:  #D1D5DB;

  /* Brand accent */
  --accent:      #635AFF;
  --accent-ink:  #4A42CC;
  --accent-soft: #EBE9FF;
  --accent-med:  #B3ADFF;

  /* Signal */
  --live: #0FAB6D;
  --warn: #C27A17;

  /* Radii */
  --radius:    6px;
  --radius-lg: 10px;

  /* Fonts — Arial is the default sans per Montclair house style */
  --font-sans:  Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ─────────── RESET ─────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink-1);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ─────────── LAYOUT ─────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* ─────────── ACCESSIBILITY HELPERS ─────────── */
.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.sr-only-focusable {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-0);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  z-index: 100;
}
.sr-only-focusable:focus,
.sr-only-focusable:focus-visible {
  left: 20px;
  top: 12px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible,
.nav-link:focus-visible,
.dd-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ─────────── NAV ─────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--paper) 78%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid color-mix(in oklch, var(--line) 60%, transparent);
  padding: 0;
  margin: 0;
  height: 160px;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 160px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-top: 0;
  margin-bottom: 0;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.02em; color: var(--ink-0);
  font-size: 17px;
  margin: 0;
  padding: 0;
}
/* Nav logo — tightly-cropped wordmark. The PNG has no transparent
   padding, so no negative margin or mix-blend-mode hack is needed —
   the image's left edge sits flush with the content column. */
.nav .logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex; gap: 4px; align-items: center;
}
.nav-link {
  padding: 8px 12px; border-radius: 6px;
  font-size: 14px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 120ms, color 120ms;
  cursor: pointer;
}
.nav-link:hover { background: var(--paper-3); color: var(--ink-0); }
.nav-link[aria-current="page"] { color: var(--ink-0); background: var(--paper-3); }
.nav-link .chev { width: 10px; height: 10px; opacity: 0.5; }

.nav-cta { display: flex; gap: 8px; align-items: center; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 7px;
  align-items: center; justify-content: center;
  color: var(--ink-0);
}
.nav-toggle:hover { background: var(--paper-3); }
.nav-toggle svg { width: 20px; height: 20px; }

/* ─────────── BUTTONS ─────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 7px;
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  transition: background 120ms, border-color 120ms, color 120ms, transform 120ms;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn-ghost { color: var(--ink-1); }
.btn-ghost:hover { background: var(--paper-3); }
.btn-secondary {
  background: var(--paper);
  border-color: var(--line-2);
  color: var(--ink-0);
}
.btn-secondary:hover { background: var(--paper-2); }
.btn-primary {
  background: var(--ink-0);
  color: var(--paper);
}
.btn-primary:hover { background: oklch(0.22 0.015 240); }
.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover { background: var(--accent-ink); }
.btn .arr { transition: transform 160ms; }
.btn:hover .arr { transform: translateX(2px); }

/* ─────────── DROPDOWN (desktop) ─────────── */
.dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 460px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 20px 50px -20px oklch(0.2 0.02 240 / 0.25), 0 1px 0 oklch(1 0 0 / 0.6) inset;
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity 140ms, transform 140ms;
  z-index: 60;
}
.nav-item { position: relative; }
.nav-item.open .dropdown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-item.open .chev { transform: rotate(180deg); }
.chev { transition: transform 140ms; }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dd-item {
  display: block; padding: 10px 12px; border-radius: 8px;
  transition: background 120ms;
}
.dd-item:hover { background: var(--paper-2); }
.dd-title { font-size: 13px; font-weight: 500; color: var(--ink-0); display: flex; align-items: center; gap: 8px; }
.dd-desc { font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }

/* ─────────── EYEBROWS ─────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  font-size: 12px; color: var(--ink-2);
  font-weight: 500;
}
.eyebrow-tag {
  background: var(--ink-0); color: var(--paper);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em;
  padding: 2px 7px; border-radius: 999px;
  text-transform: uppercase;
}

/* ─────────── DISPLAY TYPE ─────────── */
h1.display {
  font-size: 64px; line-height: 1.02; letter-spacing: -0.03em;
  font-weight: 500; color: var(--ink-0);
  margin: 22px 0 20px;
  text-wrap: balance;
}
h1.display em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent-ink);
}
.lede {
  font-size: 18px; line-height: 1.55; color: var(--ink-2);
  max-width: 520px; margin: 0 0 32px;
}

/* ─────────── SECTION CHROME ─────────── */
.section { padding: 100px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--accent-ink);
  font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--accent-ink);
  display: inline-block;
}
h2.section-title {
  font-size: 68px; line-height: 1.04; letter-spacing: -0.03em;
  font-weight: 700; color: var(--ink-0);
  margin: 0 0 20px;
  text-wrap: balance;
}
h2.section-title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--accent-ink);
}
.section-sub {
  font-size: 19px; color: var(--ink-2); line-height: 1.55;
  max-width: 680px;
}

/* ─────────── STAT STRIP ─────────── */
.stats { padding: 20px 0 40px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 36px 28px 32px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-size: 44px; font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--accent-ink); line-height: 1;
  font-feature-settings: "ss01", "tnum";
}
.stat-num .sub { font-size: 20px; color: var(--accent-ink); margin-left: 2px; font-weight: 400; font-style: normal; }
.stat-num em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--accent-ink);
  font-size: 0.82em;
}
.stat-num em .sub { font-style: normal; }
.stat-label {
  margin-top: 14px;
  font-size: 13px; color: var(--ink-2); line-height: 1.5;
  max-width: 200px;
}

/* ─────────── PILLARS ─────────── */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color 160ms, transform 160ms;
}
.pillar:hover { border-color: var(--line-2); }
.pillar-ico {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.pillar-ico svg { width: 18px; height: 18px; }
.pillar h3 {
  font-size: 19px; font-weight: 600; color: var(--ink-0);
  margin: 0 0 10px; letter-spacing: -0.015em;
}
.pillar p {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.55;
  margin: 0 0 20px;
}
.pillar-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3);
}
.pillar-meta .v { color: var(--ink-0); }

/* ─────────── SECTORS (dark section) ─────────── */
.sectors { background: var(--ink-0); color: var(--paper); }
.sectors .section-eyebrow { color: var(--accent-med); }
.sectors .section-eyebrow::before { background: var(--accent-med); }
.sectors h2.section-title { color: var(--paper); }
.sectors h2.section-title em { color: var(--accent-med); }
.sectors .section-sub { color: #B8BCC4; }

.sectors-tabs {
  display: flex; gap: 0;
  border-top: 1px solid oklch(0.28 0.015 240);
  margin-top: 32px;
}
.sector-tab {
  flex: 1; padding: 22px 24px;
  background: transparent; border: 0;
  border-right: 1px solid oklch(0.28 0.015 240);
  color: oklch(0.7 0.01 240); text-align: left;
  display: flex; flex-direction: column; gap: 4px;
  transition: background 140ms, color 140ms;
  position: relative;
  cursor: pointer;
}
.sector-tab:last-child { border-right: 0; }
.sector-tab:hover { color: var(--paper); background: oklch(0.18 0.02 240); }
.sector-tab.active { color: var(--paper); background: oklch(0.18 0.02 240); }
.sector-tab.active::after {
  content: ""; position: absolute; top: -1px; left: 0; right: 0;
  height: 2px; background: var(--accent);
}
.sector-tab .s-num { font-family: var(--font-mono); font-size: 11px; color: #6B7280; }
.sector-tab .s-name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.sector-tab .s-tier { font-size: 12px; color: var(--accent-med); margin-top: 2px; }

.sector-panel {
  padding: 44px 40px; background: oklch(0.18 0.02 240);
  border-bottom: 1px solid oklch(0.28 0.015 240);
  display: grid; grid-template-columns: minmax(0,1fr) 420px;
  gap: 48px; align-items: stretch;
}
.sector-panel > div:first-child { display: flex; flex-direction: column; }
.sector-panel > div:first-child > .btn { margin-top: auto; align-self: flex-start; }
.sector-panel h3 {
  font-size: 28px; font-weight: 500; letter-spacing: -0.02em;
  color: var(--paper); margin: 0 0 14px;
}
.sector-panel p {
  font-size: 15.5px; color: oklch(0.78 0.008 240); line-height: 1.6;
  margin: 0 0 20px; max-width: 480px;
}
.sector-features {
  display: grid; gap: 10px; margin-bottom: 24px;
  padding: 0; list-style: none;
}
.sector-features li {
  font-size: 14px; color: oklch(0.82 0.008 240);
  display: flex; gap: 10px; align-items: flex-start;
}
.check {
  width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in oklch, var(--accent) 30%, transparent);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-med); flex-shrink: 0; margin-top: 1px;
}
.check svg { width: 9px; height: 9px; }
.sector-viz {
  background: oklch(0.14 0.015 240);
  border: 1px solid oklch(0.28 0.015 240);
  border-radius: 10px;
  padding: 20px; min-height: 260px;
  font-family: var(--font-mono);
  font-size: 11.5px; color: oklch(0.72 0.01 240);
}
.viz-row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid oklch(0.24 0.015 240); align-items: start; }
.viz-row:last-child { border-bottom: 0; }
.viz-row .l { color: #8A93A3; padding-top: 1px; }
.viz-row .r { color: var(--paper); text-align: left; }
.viz-row .r.ok { color: var(--accent-med); }
.viz-row .r.warn { color: oklch(0.76 0.14 60); }
.viz-row .sub-meta { display: block; color: #8A93A3; font-weight: 400; font-size: 11px; margin-top: 3px; letter-spacing: 0.01em; }

/* ─────────── PROCESS ─────────── */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.step {
  padding: 36px 28px 32px;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; }
.step-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.08em;
  margin-bottom: 32px;
}
.step h4 {
  font-size: 20px; font-weight: 500; letter-spacing: -0.015em;
  margin: 0 0 10px; color: var(--ink-0);
}
.step p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin: 0; }

/* ─────────── CTA BAND ─────────── */
.cta-band {
  padding: 100px 0;
  text-align: center;
  position: relative;
}
.cta-band h2 {
  font-size: 54px; line-height: 1.05; letter-spacing: -0.028em;
  font-weight: 500; color: var(--ink-0);
  margin: 0 0 16px;
  max-width: 760px; margin-left: auto; margin-right: auto;
  text-wrap: balance;
}
.cta-band h2 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--accent-ink);
}
.cta-band p {
  font-size: 17px; color: var(--ink-2); max-width: 520px;
  margin: 0 auto 32px;
}
.cta-ctas { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ─────────── REGULATORY NOTE ─────────── */
.regulatory-note {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 40px;
  border-top: 1px solid var(--line);
  text-align: left;
}

/* ─────────── FOOTER ─────────── */
footer {
  background: var(--ink-0); color: oklch(0.72 0.01 240);
  padding: 80px 0 36px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid oklch(0.28 0.015 240);
}
.foot-brand .logo { color: var(--paper); }
.foot-brand p {
  font-size: 13.5px; line-height: 1.6;
  color: oklch(0.68 0.01 240);
  margin: 16px 0 20px; max-width: 300px;
}
.foot-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 5px;
  border: 1px solid oklch(0.28 0.015 240); border-radius: 999px;
  font-size: 12px; color: oklch(0.78 0.01 240);
}
.foot-badge .chip {
  background: oklch(0.26 0.03 220); color: oklch(0.85 0.05 220);
  font-size: 10px; font-weight: 500; letter-spacing: 0.04em;
  padding: 2px 7px; border-radius: 999px; text-transform: uppercase;
}
.foot-col h5 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: oklch(0.6 0.01 240); font-weight: 500;
  margin: 0 0 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { font-size: 13.5px; color: oklch(0.82 0.01 240); }
.foot-col a:hover { color: var(--paper); }
.foot-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: oklch(0.56 0.01 240);
  gap: 20px; flex-wrap: wrap;
}
.foot-bottom a { color: inherit; margin-left: 20px; }
.foot-bottom a:hover { color: var(--paper); }

/* ─────────── KEYFRAMES ─────────── */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in oklch, var(--live) 20%, transparent); }
  50%      { box-shadow: 0 0 0 8px color-mix(in oklch, var(--live) 5%,  transparent); }
}

/* ─────────── RESPONSIVE: 1024px (narrow desktop / large tablet) ─────────── */
@media (max-width: 1024px) {
  .wrap { padding: 0 28px; }
  h1.display { font-size: 52px; }
  h2.section-title { font-size: 52px; }
  .cta-band h2 { font-size: 44px; }
  .sector-panel { grid-template-columns: 1fr; gap: 32px; padding: 32px 28px; }
  .sector-panel p { max-width: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ─────────── RESPONSIVE: 768px (tablet) ─────────── */
@media (max-width: 768px) {
  .wrap { padding: 0 22px; }

  /* Mobile nav — smaller logo + shorter container */
  .nav { height: 90px; }
  .nav-inner { height: 90px; padding-top: 8px; padding-bottom: 8px; }
  .nav .logo img { height: 36px; }

  /* Nav collapses to hamburger */
  .nav-links {
    position: absolute;
    top: 90px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 22px 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 220ms ease, opacity 160ms ease, padding 220ms ease;
    pointer-events: none;
  }
  .nav.open .nav-links {
    max-height: calc(100vh - 90px);
    opacity: 1;
    padding: 12px 22px 22px;
    pointer-events: auto;
    overflow-y: auto;
  }
  .nav-link {
    padding: 12px 8px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-link:last-child { border-bottom: 0; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }

  /* Dropdown becomes inline within drawer */
  .dropdown {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: 0;
    padding: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: none;
    background: transparent;
    margin-top: 6px;
  }
  .nav-item.open .dropdown { display: block; }
  .dd-grid { grid-template-columns: 1fr; }
  .dd-item { padding: 10px 8px; }

  /* Type scale */
  h1.display { font-size: 40px; line-height: 1.05; margin: 16px 0 16px; }
  h2.section-title { font-size: 40px; line-height: 1.1; }
  .cta-band h2 { font-size: 34px; }
  .lede, .section-sub { font-size: 16px; }

  /* Layout collapses */
  .section { padding: 72px 0; }
  .pillars { grid-template-columns: 1fr; gap: 16px; }
  .process-grid { grid-template-columns: 1fr; border-top: 0; margin-top: 24px; }
  .step { border-right: 0; border-top: 1px solid var(--line); padding: 28px 0 24px; }
  .step-num { margin-bottom: 18px; }

  /* Sector tabs → vertical accordion-style list */
  .sectors-tabs { flex-direction: column; border-top: 1px solid oklch(0.28 0.015 240); }
  .sector-tab {
    flex: none;
    border-right: 0;
    border-bottom: 1px solid oklch(0.28 0.015 240);
    padding: 18px 20px;
  }
  .sector-tab:last-child { border-bottom: 0; }
  .sector-tab.active::after { top: 0; left: 0; bottom: 0; right: auto; width: 2px; height: auto; }

  /* Footer stacks */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .foot-bottom a { margin-left: 0; margin-right: 16px; }

  /* Regulatory note bumps slightly for readability */
  .regulatory-note { font-size: 13px; padding: 20px 0; }
}

/* ─────────── RESPONSIVE: 480px (phone) ─────────── */
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  h1.display { font-size: 34px; }
  h2.section-title { font-size: 32px; }
  .cta-band h2 { font-size: 28px; }
  .section { padding: 56px 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .stat:last-child { border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-brand { grid-column: auto; }
  .cta-ctas { flex-direction: column; width: 100%; align-items: stretch; }
  .cta-ctas .btn { justify-content: center; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
}

/* ─────────── REUSABLE COMPONENTS (non-home pages) ─────────── */

/* Page hero — shared shell for every page except Home.html.
   Sits under the nav, provides eyebrow / display H1 / lede / CTA pattern
   with a subtle radial-gradient backdrop in the brand accent. */
.page-hero {
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 900px 420px at 85% -10%, color-mix(in oklch, var(--accent) 9%, transparent), transparent 60%),
    radial-gradient(ellipse 700px 320px at 0% 110%, color-mix(in oklch, var(--accent) 5%, transparent), transparent 60%);
  pointer-events: none;
}
.page-hero > .wrap { position: relative; }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.page-hero h1.display { margin-top: 20px; font-size: 56px; line-height: 1.04; }
.page-hero .lede { font-size: 18px; max-width: 560px; }
.page-hero-ctas { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Tag chips — pill-style labels for sector chips, metadata rows, filters */
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  font-size: 12px; color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
}
.tag-chip.is-accent { color: var(--accent-ink); border-color: var(--accent-med); background: var(--accent-soft); }
.tag-chip.is-dark { color: oklch(0.82 0.008 240); border-color: oklch(0.28 0.015 240); background: oklch(0.18 0.02 240); }
.chip-strip { display: flex; gap: 8px; flex-wrap: wrap; }

/* Form components — Stripe-style labels-above-inputs */
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-field > label {
  font-size: 12px; font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-field > label .req { color: var(--accent-ink); margin-left: 3px; font-weight: 600; }
.form-input, .form-textarea, .form-select {
  font-family: var(--font-sans);
  font-size: 15px; line-height: 1.4;
  color: var(--ink-0);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 11px 13px;
  width: 100%;
  transition: border-color 120ms, box-shadow 120ms;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 18%, transparent);
}
.form-textarea { resize: vertical; min-height: 108px; }
.form-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none' stroke='%236B7280' stroke-width='1.6'><path d='M2 4l3 3 3-3'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}
.form-helper { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; line-height: 1.5; }

/* Tabs — horizontal tab list + panels (desktop). Variant-neutral. */
.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 0; margin-bottom: 24px; overflow-x: auto; }
.tab {
  background: transparent; border: 0;
  padding: 14px 18px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-3);
  position: relative;
  white-space: nowrap;
  cursor: pointer;
  transition: color 120ms;
}
.tab:hover { color: var(--ink-1); }
.tab[aria-selected="true"] { color: var(--ink-0); }
.tab[aria-selected="true"]::after {
  content: ""; position: absolute; bottom: -1px; left: 14px; right: 14px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* Accordion — FAQ style */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  text-align: left;
  font-size: 16.5px; font-weight: 500;
  color: var(--ink-0);
  letter-spacing: -0.005em;
  background: transparent; border: 0;
  cursor: pointer;
}
.accordion-trigger:hover { color: var(--accent-ink); }
.accordion-trigger svg {
  width: 16px; height: 16px;
  transition: transform 180ms;
  color: var(--ink-3);
  flex-shrink: 0;
  margin-left: 16px;
}
.accordion-item.is-open .accordion-trigger svg { transform: rotate(45deg); color: var(--accent); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease, padding 260ms ease;
}
.accordion-item.is-open .accordion-body {
  max-height: 600px;
  padding-bottom: 20px;
}
.accordion-body p {
  margin: 0 0 10px;
  font-size: 14.5px; line-height: 1.6; color: var(--ink-2);
  max-width: 720px;
}

/* Feature grid — cards with icon + title + body (used on non-home pages) */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.feature-card {
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  display: flex; flex-direction: column;
}
.feature-card-ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card-ico svg { width: 16px; height: 16px; }
.feature-card h3 {
  font-size: 16.5px; font-weight: 600; color: var(--ink-0);
  margin: 0 0 8px; letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14px; color: var(--ink-2); line-height: 1.55;
  margin: 0;
}
.feature-card-meta {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  display: flex; justify-content: space-between;
}
.feature-card-meta .v { color: var(--ink-0); }

/* Standards badge — for Compliance / Trust grid cards */
.standard-card {
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color 160ms;
}
.standard-card:hover { border-color: var(--line-2); }
.standard-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; gap: 12px; }
.standard-card .tag-chip { flex-shrink: 0; }
.standard-card h3 {
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 500;
  color: var(--accent-ink);
  letter-spacing: 0.02em;
  margin: 0 0 4px;
  text-transform: uppercase;
}
.standard-card h4 {
  font-size: 15px; font-weight: 600;
  color: var(--ink-0);
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.standard-card p {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.55;
  margin: 0 0 12px;
}
.standard-card-how {
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-3);
  line-height: 1.5;
}
.standard-card-how strong { color: var(--ink-0); font-weight: 500; }

/* KPI row — compact, used in dashboard-style hero moments on several pages */
.kpi-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.kpi-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.kpi {
  padding: 14px 14px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper);
}
.kpi-label { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.kpi-val {
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 500; color: var(--ink-0);
  margin-top: 3px; letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 4px;
}
.kpi-val .unit { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.kpi-delta { font-size: 11px; color: var(--live); margin-top: 3px; font-family: var(--font-mono); }
.kpi-delta.warn { color: var(--warn); }

/* Mono metadata — bracketed inline technical labels */
.mono-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.02em; }

/* Pulse dot (reused) */
.pulse-dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--live) 20%, transparent);
  animation: pulse 2s infinite;
  vertical-align: middle;
}

/* ─────────── RESPONSIVE — shared components ─────────── */
@media (max-width: 1024px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .page-hero h1.display { font-size: 44px; }
  .feature-grid, .feature-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-hero { padding: 36px 0 48px; }
  .page-hero h1.display { font-size: 36px; }
  .feature-grid, .feature-grid.cols-2, .feature-grid.cols-4 { grid-template-columns: 1fr; }
  .kpi-row, .kpi-row.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .tabs { font-size: 13px; }
}
@media (max-width: 480px) {
  .kpi-row, .kpi-row.cols-4 { grid-template-columns: 1fr; }
  .page-hero h1.display { font-size: 30px; }
}

/* ─────────── REDUCED MOTION ─────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
