/* Basisline Institutional Design System — v8 (Enterprise FinTech Precision, WCAG 2.2 AA & Restrained Craft) */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --ink: #09090b;
  --ink-2: #27272a;
  --muted: #52525b;
  --subtle: #5a5a63;                  /* WCAG AA 6.08:1 on #fafafa, 5.79:1 on #f4f4f5 */
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --dark: #0a0f1c;
  --dark-2: #111827;
  --dark-elevated: #0f172a;
  --dark-card: rgba(255, 255, 255, 0.035);
  --dark-border: rgba(255, 255, 255, 0.11);
  --dark-border-strong: rgba(255, 255, 255, 0.19);
  --dark-muted: #94a3b8;              /* WCAG AAA 7.45:1 on --dark */
  --dark-placeholder: #8b9bb2;        /* WCAG AA 6.30:1 on #0b1120 */
  --accent: #047857;                  /* WCAG AA 5.48:1 on #fff, 5.21:1 on #ecfdf5 */
  --accent-hover: #065f46;            /* WCAG AAA 7.53:1 with white text */
  --accent-bright: #10b981;
  --accent-glow: #34d399;             /* WCAG AAA 10.4:1 on --dark */
  --accent-soft: #ecfdf5;
  --accent-border: #a7f3d0;
  --amber-ink: #92400e;
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;
  --danger: #dc2626;
  --danger-ink: #b91c1c;              /* WCAG AA 6.09:1 on #fef2f2 */
  --danger-soft: #fef2f2;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring-soft: cubic-bezier(0.22, 1.04, 0.36, 1);
  --shadow-xs: 0 1px 2px rgba(9, 9, 11, 0.04);
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.05), 0 0 0 1px rgba(9, 9, 11, 0.025);
  --shadow-md: 0 14px 34px -16px rgba(9, 9, 11, 0.12), 0 2px 6px -1px rgba(9, 9, 11, 0.04);
  --shadow-chassis:
    0 32px 72px -24px rgba(10, 15, 28, 0.28),
    0 10px 24px -12px rgba(10, 15, 28, 0.14),
    0 0 0 1px rgba(9, 9, 11, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --dark-rim: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --specular-filament: linear-gradient(
    90deg,
    transparent 8%,
    rgba(52, 211, 153, 0.45) 36%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(125, 211, 252, 0.26) 66%,
    transparent 92%
  );
  --specular-filament-bad: linear-gradient(
    90deg,
    transparent 8%,
    rgba(248, 113, 113, 0.52) 36%,
    rgba(255, 255, 255, 0.30) 50%,
    rgba(251, 146, 60, 0.28) 66%,
    transparent 92%
  );
  --obsidian-dots: radial-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px);
  --datum-line: rgba(9, 9, 11, 0.055);
}

/* ---- Curated Custom Scrollbars ---- */
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #d4d4d8 transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(113, 113, 122, 0.28);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(39, 39, 42, 0.56);
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-corner { background: transparent; }

.dark-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
}
.dark-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.dark-scroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: 999px; }
.dark-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}
.dark-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(52, 211, 153, 0.52);
  border: 1px solid transparent;
  background-clip: padding-box;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  font-feature-settings: "cv05" 1;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html.drawer-open,
body.drawer-open {
  overflow: hidden;
  overscroll-behavior: none;
}
a, button, input, select, textarea, label, [role="button"], [tabindex] {
  -webkit-tap-highlight-color: transparent;
}
a, button, input, select, label { touch-action: manipulation; }

::selection { background: rgba(16, 185, 129, 0.20); color: inherit; }
.band-obsidian ::selection,
.mode-card.dark ::selection,
.cta-dark ::selection,
.quickfill ::selection,
.faq-sla-card ::selection,
.product-frame ::selection,
.calc-result ::selection,
.intake-card ::selection {
  background: rgba(52, 211, 153, 0.28);
  color: #ffffff;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
.hero-lead, .sec-sub { text-wrap: pretty; }
.nowrap { white-space: nowrap; }

/* WCAG 2.2 AA Skip-to-Content & Keyboard Focus */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 120;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-md);
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}
:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap, .wrap-narrow { padding: 0 16px; } }

/* ---- Navigation + Active Emerald Rail + Accessible Mobile Overlay Drawer ---- */
.site-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 250, 250, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease, box-shadow 0.22s ease;
}
.site-nav.scrolled {
  background: rgba(250, 250, 250, 0.96);
  box-shadow: 0 8px 24px -18px rgba(9, 9, 11, 0.16);
}
.scroll-progress {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, #047857, #10b981);
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
  pointer-events: none;
  opacity: 0.85;
  z-index: 4;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.035em; color: var(--ink);
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}
.brand:hover { opacity: 0.85; }
.brand img { display: block; width: 24px; height: 24px; }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-links {
  position: relative;
  display: flex; align-items: center; gap: 2px;
  height: 68px;
  font-size: 13.5px; font-weight: 500; color: var(--muted);
}
/* Strictly scoped to :not(.btn) so CTA buttons NEVER inherit nav link text color */
.nav-links > a:not(.btn) {
  position: relative; z-index: 1;
  padding: 7px 11px; border-radius: 7px; white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links > a:not(.btn):hover { color: var(--ink); }
.nav-links:not(.nav-enhanced) > a:not(.btn):hover { background: rgba(9, 9, 11, 0.045); }
.nav-links > a:not(.btn).active { color: var(--ink); font-weight: 500; }
.nav-links:not(.nav-enhanced) > a:not(.btn).active::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: -17px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-links > a.btn { margin-left: 10px; position: relative; z-index: 1; }

.nav-hover-pill {
  position: absolute; left: 0; top: 50%; height: 32px; width: 0;
  border-radius: 7px;
  background: rgba(9, 9, 11, 0.05);
  opacity: 0; pointer-events: none; z-index: 0;
  transform: translate3d(0, -50%, 0);
  transition: transform 0.22s var(--ease-out), width 0.22s var(--ease-out), opacity 0.14s ease;
  will-change: transform, width, opacity;
}
.nav-hover-pill.visible { opacity: 1; }
.nav-hover-pill.no-glide { transition: opacity 0.12s ease !important; }

.nav-active-rail {
  position: absolute; left: 0; bottom: -1px; width: 1px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform-origin: left center;
  transform: translate3d(0, 0, 0) scaleX(0);
  opacity: 0; pointer-events: none; z-index: 2;
  transition: transform 0.28s var(--ease-out), opacity 0.18s ease;
  will-change: transform, opacity;
}
.nav-active-rail.visible { opacity: 1; }
.nav-active-rail.no-glide { transition: none !important; }

/* Hamburger-to-X + Overlay Mobile Drawer */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--ink); cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.nav-toggle:hover { border-color: var(--ink); }
.nav-toggle[aria-expanded="true"] { border-color: var(--ink); background: var(--surface-2); }
.nav-toggle svg { width: 19px; height: 19px; }
.nav-toggle svg line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.24s var(--ease-out), opacity 0.14s ease;
}
.nav-toggle[aria-expanded="true"] .hb-1 { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hb-2 { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .hb-3 { transform: translateY(-5px) rotate(-45deg); }

.mobile-backdrop {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(10, 15, 28, 0.44);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; pointer-events: none;
  touch-action: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.mobile-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }

.mobile-drawer {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 62;
  display: grid; grid-template-rows: 0fr;
  opacity: 0; visibility: hidden; pointer-events: none;
  border-top: 1px solid transparent;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 250, 250, 0.98);
  box-shadow: 0 24px 48px -14px rgba(10, 15, 28, 0.24);
  transition: grid-template-rows 0.26s var(--ease-out), opacity 0.18s ease, border-color 0.18s ease, visibility 0.26s;
}
.mobile-drawer.open {
  grid-template-rows: 1fr;
  opacity: 1; visibility: visible; pointer-events: auto;
  border-top-color: var(--border);
}
.mobile-drawer-clip {
  overflow-y: auto; overflow-x: hidden; min-height: 0;
  max-height: calc(100dvh - 64px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-drawer-inner {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  max-width: 1120px; margin: 0 auto;
}
.mobile-drawer a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 46px; padding: 11px 12px; border-radius: 9px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: background-color 0.14s ease, color 0.14s ease;
}
.mobile-drawer a:not(.btn)::after {
  content: "\203A"; font-size: 18px; line-height: 1; color: #71717a;
}
.mobile-drawer a:not(.btn):hover,
.mobile-drawer a:not(.btn):active { background: var(--surface-2); color: var(--ink); }
.mobile-drawer a:not(.btn).active {
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent);
}
.mobile-drawer a:not(.btn).active::after { color: var(--accent); }
.mobile-drawer .drawer-cta {
  margin-top: 10px; width: 100%; min-height: 48px;
  padding: 12px 16px; font-size: 14.5px; border-radius: 9px; color: #ffffff;
}

@media (max-width: 960px) {
  .nav-links > a:not(.btn),
  .nav-hover-pill,
  .nav-active-rail { display: none !important; }
  .nav-links { height: auto; }
  .nav-links > a.btn {
    margin-left: 0; min-height: 40px; padding: 0 14px;
    font-size: 13px; border-radius: 8px;
  }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .site-nav { padding-top: env(safe-area-inset-top, 0px); }
  .nav-inner { height: 62px; gap: 10px; }
  .brand { font-size: 16.5px; gap: 9px; }
  .nav-right { gap: 8px; }
}
@media (max-width: 400px) {
  .nav-links > a.btn { padding: 0 11px; font-size: 12.5px; }
}

/* ---- Crisp Institutional Button System (Strict Contrast Guarded) ---- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px; border-radius: 8px; font-size: 14px; font-weight: 600; line-height: 1.2;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.16s var(--ease-out), background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.18s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active:not(:disabled) { transform: scale(0.985); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.56; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 7px; }

.btn-dark {
  background: #09090b;
  color: #ffffff;
  border-color: #09090b;
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.14);
}
.btn-dark:hover:not(:disabled), .btn-dark:focus-visible:not(:disabled) {
  background: #1c1c21;
  border-color: #1c1c21;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(9, 9, 11, 0.42);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(4, 120, 87, 0.22);
}
.btn-accent:hover:not(:disabled), .btn-accent:focus-visible:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px rgba(4, 120, 87, 0.48);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover:not(:disabled), .btn-ghost:focus-visible:not(:disabled) {
  border-color: var(--ink);
  background: #ffffff;
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -8px rgba(9, 9, 11, 0.14);
}

.btn-ghost-inv {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f8fafc;
}
.btn-ghost-inv:hover:not(:disabled), .btn-ghost-inv:focus-visible:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; line-height: 1.35; }
  .nav-links > a.btn { white-space: nowrap; }
}

/* ---- Full-Bleed Obsidian Band ---- */
section.band-obsidian {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0d1322 0%, #0a0f1c 55%, #070b14 100%);
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
section.band-obsidian::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 10%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 10%, transparent 100%);
}
section.band-obsidian::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  pointer-events: none; z-index: 2;
  background: var(--specular-filament);
}
section.band-obsidian > .wrap { position: relative; z-index: 1; }
section.band-obsidian .eyebrow { color: #6ee7b7; }
section.band-obsidian .sec-head h2 { color: #ffffff; }
section.band-obsidian .sec-sub { color: var(--dark-muted); }

/* ---- Editorial Typography ---- */
.eyebrow {
  display: inline-block; font-family: var(--mono);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.075em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.serif-em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em;
  padding-right: 0.04em;
}
.page-hero .serif-em,
.sec-head .serif-em {
  font-size: 1.12em;
  color: var(--accent);
}
section.band-obsidian .sec-head .serif-em {
  color: #6ee7b7;
}
.sec-head { max-width: 700px; margin-bottom: 40px; }
.sec-head h2 {
  font-size: clamp(27px, 3.2vw, 37px); line-height: 1.12;
  letter-spacing: -0.03em; font-weight: 700; margin: 0 0 12px;
}
.sec-sub { font-size: 16px; color: var(--muted); margin: 0; line-height: 1.6; max-width: 58ch; }

section { padding: 84px 0; border-bottom: 1px solid var(--border); }
section[id] { scroll-margin-top: 72px; }
section:last-of-type { border-bottom: none; }
section.white { background: var(--surface); }
@media (max-width: 640px) {
  section { padding: 54px 0; }
  section[id] { scroll-margin-top: 66px; }
  .sec-head { margin-bottom: 28px; }
  .sec-sub { font-size: 15px; line-height: 1.58; }
}

/* ---- Restrained Architectural Surface Light (Subtle, Non-Distracting) ---- */
.ambient-canvas {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  contain: strict;
}
.ambient-orb { position: absolute; border-radius: 50%; will-change: transform; }
.orb-1 {
  width: 780px; height: 520px; top: -280px; left: 12%;
  background: radial-gradient(closest-side, rgba(4, 120, 87, 0.065) 0%, rgba(4, 120, 87, 0.02) 48%, transparent 78%);
}
.orb-2 {
  width: 720px; height: 500px; top: -220px; right: 8%;
  background: radial-gradient(closest-side, rgba(15, 23, 42, 0.045) 0%, transparent 76%);
}

/* Telemetry Indicator Dot (Clean, Purposeful) */
.hero-badge-dot,
.live-pulse-dot {
  position: relative; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-bright);
}
.live-pulse-dot.is-bad { background: #f87171; }

/* Zero-Flicker Scroll Reveals */
.reveal {
  transition: opacity 0.44s var(--ease-out), transform 0.46s var(--ease-out);
}
.reveal-pending {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}
.reveal.in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s !important;
}
.reveal-pending.reveal-d1 { transition-delay: 0.05s; }
.reveal-pending.reveal-d2 { transition-delay: 0.10s; }
.reveal-pending.reveal-d3 { transition-delay: 0.15s; }

/* Animated SVG Checkmark Stroke-Draw for Copy Buttons */
.copy-ic-stack {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; flex-shrink: 0;
}
.copy-ic-stack svg { position: absolute; inset: 0; width: 14px; height: 14px; }
.copy-ic-clip { opacity: 1; transform: scale(1); transition: opacity 0.15s ease, transform 0.18s var(--ease-out); }
.copy-ic-check { opacity: 0; color: #34d399; transition: opacity 0.12s ease; }
.copy-ic-check path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.24s var(--ease-out) 0.04s; }
.copied .copy-ic-clip { opacity: 0; transform: scale(0.7); }
.copied .copy-ic-check { opacity: 1; }
.copied .copy-ic-check path { stroke-dashoffset: 0; }

/* Unified Subpage Editorial Header */
.page-hero {
  position: relative; overflow: hidden;
  padding: 54px 0 44px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(9, 9, 11, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 9, 11, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 78% 85% at 32% 24%, #000 18%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 78% 85% at 32% 24%, #000 18%, transparent 100%);
}
.page-hero .wrap, .page-hero .wrap-narrow { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(30px, 3.8vw, 44px); line-height: 1.08;
  letter-spacing: -0.035em; font-weight: 700; margin: 0 0 14px;
}
.page-hero p { font-size: 16.5px; color: var(--muted); max-width: 700px; margin: 0; }
@media (max-width: 640px) {
  .page-hero { padding: 34px 0 28px; }
  .page-hero h1 { font-size: clamp(26px, 7.2vw, 33px); line-height: 1.1; }
  .page-hero p { font-size: 15px; line-height: 1.58; }
}

/* Shared Institutional Notice / Disclosure Banner */
.notice-banner {
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  border-left: 3.5px solid #d97706;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--amber-ink);
  line-height: 1.56;
  margin-bottom: 24px;
}
.notice-banner strong { color: #78350f; }

/* Shared Cards, Prose Docs & Architectural Tables */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 26px; box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { border-color: var(--border-strong); }

.prose-doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--ink);
  border-radius: 14px;
  padding: 42px 48px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) { .prose-doc { padding: 24px 18px; } }
.prose-doc h2 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.015em;
  margin: 28px 0 10px; padding-top: 18px; border-top: 1px solid var(--border);
  color: var(--ink);
}
.prose-doc h2:first-of-type { margin-top: 8px; padding-top: 0; border-top: none; }
.prose-doc h3 { font-size: 15px; font-weight: 700; margin: 18px 0 6px; color: var(--ink); }
.prose-doc p, .prose-doc li { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.prose-doc ul, .prose-doc ol { padding-left: 20px; margin: 8px 0 14px; }
.prose-doc li { margin-bottom: 6px; }
.prose-doc a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose-doc a:hover { color: var(--accent-hover); }

.table-shell {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table-header-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 20px;
  background: #0d1322;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: #cbd5e1;
}
.table-header-pill {
  padding: 3px 9px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.16); color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.36); font-size: 10.5px;
}
.table-scroll {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.table-scroll table { min-width: 620px; }
.table-shell.has-overflow { position: relative; }
.table-shell.has-overflow::after {
  content: "";
  position: absolute; top: 46px; right: 0; bottom: 0; width: 28px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.94));
  opacity: 1; transition: opacity 0.2s ease;
}
.table-shell.has-overflow.scroll-end::after { opacity: 0; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td {
  padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
th.r, td.r { text-align: right; }
th {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--subtle); background: #fafafa;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background-color 0.14s ease; }
tbody tr:hover td { background: #f8fbfa; }
code {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--surface-2); color: var(--ink);
  padding: 2px 6px; border-radius: 4px;
  overflow-wrap: anywhere; word-break: break-word;
}
.table-note {
  padding: 14px 20px; background: #fafafa; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted); line-height: 1.55;
}
.spread-pill {
  display: inline-block; padding: 3px 9px; border-radius: 5px;
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 700;
}
.num-mono { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.num-muted { font-family: var(--mono); font-size: 13px; color: var(--subtle); }

/* Mobile Stacked Table Transformation */
@media (max-width: 640px) {
  .table-header-bar { padding: 12px 14px; font-size: 10.5px; gap: 8px; }
  .table-note { padding: 12px 14px; font-size: 12.5px; line-height: 1.52; }

  .table-shell.stack-mobile .table-scroll { overflow-x: visible; }
  .table-shell.stack-mobile .table-scroll table { min-width: 0; width: 100%; display: block; }
  .table-shell.stack-mobile thead { display: none; }
  .table-shell.stack-mobile tbody { display: flex; flex-direction: column; }
  .table-shell.stack-mobile tbody tr {
    display: flex; flex-direction: column; gap: 8px;
    padding: 14px; border-bottom: 1px solid var(--border); background: #ffffff;
  }
  .table-shell.stack-mobile tbody tr:last-child { border-bottom: none; }
  .table-shell.stack-mobile tbody tr:hover td { background: transparent; }
  .table-shell.stack-mobile td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 0; border: none; text-align: right; font-size: 13px; line-height: 1.45;
  }
  .table-shell.stack-mobile td::before {
    content: attr(data-label);
    font-family: var(--mono); font-size: 10px; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase; color: var(--subtle);
    text-align: left; flex-shrink: 0;
  }
  .table-shell.stack-mobile td:first-child {
    display: block; text-align: left; font-size: 14.5px; color: var(--ink);
    padding-bottom: 6px; margin-bottom: 2px; border-bottom: 1px dashed var(--border);
  }
  .table-shell.stack-mobile td:first-child::before { display: none; }
  .table-shell.stack-mobile td.stack-block {
    display: block; text-align: left; color: var(--muted); font-size: 13px;
  }
  .table-shell.stack-mobile td.stack-block::before { display: block; margin-bottom: 3px; }
  .table-shell.stack-mobile td.r { text-align: right; }
}

/* ---- Institutional Multi-Column Footer ---- */
.site-footer {
  padding: 56px 0 40px;
  font-size: 13px;
  color: var(--subtle);
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 24px; } }
.foot-brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); font-weight: 700; font-size: 15.5px; letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.foot-desc { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 340px; }
.foot-col h3 {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  margin: 0 0 12px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-col a {
  display: inline-flex; align-items: center; padding: 3px 0;
  color: var(--muted); font-size: 13.5px; transition: color 0.14s ease;
}
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 12px 24px;
  font-size: 12px; color: var(--subtle); line-height: 1.55;
}
.foot-disclaimer { max-width: 680px; }
@media (max-width: 640px) {
  .site-footer { padding: 40px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
  .foot-col a { min-height: 36px; }
}

/* Guard Hover Lifts Against Touch Sticky-Hover */
@media (hover: none) {
  .btn:hover:not(:disabled),
  .tier.in:hover,
  .ed-item:hover,
  .mode-card:not(.dark):hover,
  .fo-box:hover,
  .tx-row:hover,
  .flag-box:hover { transform: none; }
}

/* Exhaustive Reduced-Motion Support */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal, .reveal-pending {
    opacity: 1 !important;
    transform: none !important;
  }
}

@page { margin: 0.5in; }
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .no-print, .site-nav, .site-footer, .ambient-canvas, .mobile-drawer, .mobile-backdrop, .calc-sticky-pill, .skip-link { display: none !important; }
  .reveal, .reveal-pending { opacity: 1 !important; transform: none !important; }
  .table-scroll { overflow: visible !important; }
  .table-scroll table { min-width: 0 !important; width: 100% !important; display: table !important; }
  .table-shell.stack-mobile thead { display: table-header-group !important; }
  .table-shell.stack-mobile tbody { display: table-row-group !important; }
  .table-shell.stack-mobile tbody tr { display: table-row !important; padding: 0 !important; }
  .table-shell.stack-mobile td { display: table-cell !important; text-align: left !important; padding: 10px 14px !important; border-bottom: 1px solid var(--border) !important; }
  .table-shell.stack-mobile td::before { display: none !important; }
  h2, h3 { break-after: avoid; }
  tr { break-inside: avoid; }
  body { background: #ffffff !important; }
}
