/* =========================================================
   SIMPLEXITUDE — Design System v2 (May 2026 renovation)
   "Luminous Technical Precision"
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* Brand navies */
  --c-navy:        #1e3a5f;
  --c-navy-mid:    #2d5278;
  --c-navy-light:  #3d5a80;
  --c-navy-mute:   #4a6583;
  --c-primary:     #1e3a5f;          /* alias kept for back-compat */
  --c-primary-hover: #2d5278;
  --c-primary-3:   #3d5a80;
  --c-primary-4:   #4a6583;

  /* Slate scale */
  --c-white:       #ffffff;
  --c-slate-50:    #f8fafc;
  --c-slate-100:   #f1f5f9;
  --c-slate-200:   #e2e8f0;
  --c-slate-300:   #cbd5e1;
  --c-slate-400:   #94a3b8;
  --c-slate-500:   #64748b;
  --c-slate-600:   #475569;
  --c-slate-700:   #334155;
  --c-slate-800:   #1f2937;

  /* Light-blue accents (for dark-bg highlights) */
  --c-blue-50:     #eff6ff;
  --c-blue-100:    #dbeafe;
  --c-blue-200:    #bfdbfe;
  --c-blue-300:    #93c5fd;
  --c-blue-400:    #60a5fa;
  --c-blue-500:    #3b82f6;
  --c-blue-600:    #2563eb;

  /* Dimension accents (use SPARINGLY — only when a dimension is referenced) */
  --c-cyan-text:    #0e7490;
  --c-cyan-bg:      #cffafe;
  --c-emerald-text: #047857;
  --c-emerald-bg:   #d1fae5;
  --c-amber-text:   #b45309;
  --c-amber-bg:     #fef3c7;
  --c-violet-text:  #6d28d9;
  --c-violet-bg:    #ede9fe;

  /* State */
  --c-success: #10b981;
  --c-warning: #f59e0b;
  --c-error:   #ef4444;

  /* Radii */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 12px;
  --r-2xl: 16px;

  /* Shadows — brief: never heavier than 0 4px 14px rgba(30,58,95,0.08) */
  --sh-sm: 0 1px 2px rgba(30, 58, 95, 0.04);
  --sh-md: 0 4px 14px rgba(30, 58, 95, 0.08);
  --sh-lg: 0 4px 14px rgba(30, 58, 95, 0.08); /* alias — keep flat */

  /* Type */
  --f-sans: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-serif: 'Instrument Serif', ui-serif, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  font-variant-numeric: tabular-nums;
  color: var(--c-slate-700);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection { background: rgba(96,165,250,0.30); color: var(--c-navy); }

/* ---------- Layout ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 32px; }
section { padding: 96px 0; }
@media (max-width: 900px) { section { padding: 72px 0; } .container, .container-narrow { padding: 0 22px; } }
@media (max-width: 640px) { section { padding: 56px 0; } }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-family: var(--f-sans); font-weight: 700; letter-spacing: -0.022em; margin: 0; line-height: 1.08; color: var(--c-navy); }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); letter-spacing: -0.025em; line-height: 1.08; }
h3 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); }
h4 { font-size: 1.125rem; }
p  { margin: 0; color: var(--c-slate-600); line-height: 1.65; }

.serif { font-family: var(--f-serif); font-weight: 400; letter-spacing: -0.01em; }
.italic { font-style: italic; }
.muted { color: var(--c-slate-500); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--c-slate-600); line-height: 1.6; max-width: 64ch; }
.lead-lg { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-navy);
}
.eyebrow.accent { color: var(--c-navy-light); }
.eyebrow.light { color: var(--c-blue-300); }
.eyebrow .dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--c-blue-400);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}

/* ---------- Section header pattern ---------- */
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--c-navy); color: white; border-color: var(--c-navy); }
.btn-primary:hover { background: var(--c-navy-mid); border-color: var(--c-navy-mid); transform: translateY(-1px); }
.btn-white { background: white; color: var(--c-navy); border-color: white; }
.btn-white:hover { background: var(--c-slate-50); }
.btn-outline { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.btn-outline:hover { background: var(--c-navy); color: white; }
.btn-outline-light { background: transparent; color: white; border-color: rgba(255,255,255,0.35); }
.btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: white; }
.btn-ghost { background: transparent; color: var(--c-navy); border-color: transparent; padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--c-navy-mid); }
.btn-ghost::after { content: " →"; transition: transform .2s ease; display: inline-block; margin-left: 4px; }
.btn-ghost:hover::after { transform: translateX(4px); }
.btn-lg { padding: 14px 26px; font-size: 15px; }

:focus-visible { outline: 2px solid var(--c-blue-400); outline-offset: 3px; border-radius: 6px; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: white;
  border: 1px solid var(--c-slate-200);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--sh-md); border-color: var(--c-slate-300); }
.card-flat { background: white; border: 1px solid var(--c-slate-200); border-radius: var(--r-xl); padding: 28px; }

/* The brand signature: thin left accent bar (4px) */
/* NEUTRALIZED (Level 1 cleanup) — stripes removed site-wide. Padding kept so layouts don't shift. */
.card.accent-left {
  border-left: 0;
  padding-left: 28px;
}
.card.accent-left::before {
  display: none;
}
/* Legacy color rules retained but no longer render anything visible. */
.card.accent-cyan::before    { background: var(--c-cyan-text); }
.card.accent-blue::before    { background: var(--c-blue-400); }
.card.accent-emerald::before { background: var(--c-emerald-text); }
.card.accent-amber::before   { background: var(--c-amber-text); }
.card.accent-violet::before  { background: var(--c-violet-text); }

/* Featured (navy) card */
.card-navy {
  background: var(--c-navy);
  color: white;
  border: 2px solid var(--c-navy);
  border-radius: var(--r-xl);
  padding: 28px;
}
.card-navy h2, .card-navy h3, .card-navy h4 { color: white; }
.card-navy p { color: rgba(207,225,255,0.92); }
.card-navy .eyebrow { color: var(--c-blue-300); }

/* ---------- Stat block ---------- */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .num {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--c-navy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .lbl {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-slate-500);
}
.stat .note { font-size: 13px; color: var(--c-slate-600); font-style: italic; }
.card-navy .stat .num { color: white; }
.card-navy .stat .lbl { color: var(--c-blue-300); }
.card-navy .stat .note { color: rgba(207,225,255,0.85); }

/* ---------- Engine pill ---------- */
.engine-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  background: transparent;
  border: 1.5px solid currentColor;
}
.engine-pill.clarity      { color: var(--c-cyan-text); }
.engine-pill.lucidity     { color: var(--c-blue-500); }
.engine-pill.simplexitude { color: var(--c-emerald-text); }
.engine-pill.monitor      { color: var(--c-violet-text); }
.engine-pill.forge        { color: var(--c-amber-text); }

/* Solid engine swatch */
.engine-swatch {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.engine-swatch.clarity      { background: var(--c-cyan-bg);    color: var(--c-cyan-text); }
.engine-swatch.lucidity     { background: var(--c-blue-50);    color: var(--c-blue-600); }
.engine-swatch.simplexitude { background: var(--c-emerald-bg); color: var(--c-emerald-text); }
.engine-swatch.monitor      { background: var(--c-violet-bg);  color: var(--c-violet-text); }
.engine-swatch.forge        { background: var(--c-amber-bg);   color: var(--c-amber-text); }
.engine-swatch svg { width: 20px; height: 20px; stroke-width: 1.8; }

/* ---------- Tag (legacy, kept) ---------- */
.tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(30,58,95,0.08);
  color: var(--c-navy);
}
.tag.outline { background: transparent; border: 1px solid rgba(30,58,95,0.18); }
.tag.cyan    { background: var(--c-cyan-bg);    color: var(--c-cyan-text); }
.tag.emerald { background: var(--c-emerald-bg); color: var(--c-emerald-text); }
.tag.amber   { background: var(--c-amber-bg);   color: var(--c-amber-text); }
.tag.violet  { background: var(--c-violet-bg);  color: var(--c-violet-text); }
.tag.light   { background: rgba(255,255,255,0.12); color: white; border: 1px solid rgba(255,255,255,0.18); }

/* ---------- Backgrounds ---------- */
.bg-white { background: var(--c-white); }
.bg-slate { background: var(--c-slate-50); }
.bg-mist  { background: var(--c-slate-50); }
.bg-soft  { background: var(--c-slate-50); }

.bg-navy, .bg-dark {
  background: var(--c-navy);
  color: white;
}
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4,
.hero-navy h1, .hero-navy h2, .hero-navy h3, .hero-navy h4 { color: white; }
.bg-navy p, .bg-dark p, .hero-navy p { color: rgba(207,225,255,0.92); }
.bg-navy .lead, .bg-dark .lead, .hero-navy .lead { color: rgba(207,225,255,0.92); }
.bg-navy .muted, .bg-dark .muted, .hero-navy .muted { color: rgba(207,225,255,0.6); }
.hero-navy { color: white; }

/* Stats on dark sections — keep numbers visible */
.bg-navy .stat .num, .bg-dark .stat .num, .hero-navy .stat .num { color: white; }
.bg-navy .stat .lbl, .bg-dark .stat .lbl, .hero-navy .stat .lbl { color: var(--c-blue-300); }
.bg-navy .stat .note, .bg-dark .stat .note, .hero-navy .stat .note { color: rgba(207,225,255,0.85); }
/* Eyebrow on dark sections */
.bg-navy .eyebrow, .bg-dark .eyebrow, .hero-navy .eyebrow { color: var(--c-blue-300); }

/* Deep navy hero variant with subtle right-side ambient glow */
.hero-navy {
  background: var(--c-navy);
  color: white;
  position: relative;
  overflow: hidden;
}
.hero-navy .glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(96,165,250,0.15), transparent 60%);
  pointer-events: none;
}
.hero-navy .accent-line {
  position: absolute;
  left: max(16px, calc((100% - 1280px) / 2 - 28px));
  top: 96px; bottom: 96px;
  width: 3px;
  background: var(--c-blue-400);
  opacity: 0.55;
}
@media (max-width: 1344px) {
  .hero-navy .accent-line { left: 12px; }
}
@media (max-width: 900px) {
  .hero-navy .accent-line { display: none; }
}

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .grid-5 { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1000px) {
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .grid-5 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--c-slate-200);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
@media (max-width: 900px) { .nav-inner { padding: 0 22px; } }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--c-navy);
}
.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}
@media (max-width: 900px) {
  .nav-logo-img { height: 34px; }
}
.nav-logo .logo-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--c-navy);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex; align-items: center; justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 24px;
}
.nav-links > .nav-item, .nav-links > a {
  position: relative;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--c-slate-700);
  transition: color .15s ease, background .15s ease;
  cursor: pointer;
}
.nav-links a:hover { color: var(--c-navy); }
.nav-links a.active { color: var(--c-navy); font-weight: 600; }

.nav-item-dropdown { position: relative; }
.nav-item-dropdown > .nav-trigger { display: inline-flex; align-items: center; gap: 4px; }
.nav-item-dropdown > .nav-trigger::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  margin-left: 4px;
  opacity: 0.6;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 280px;
  background: white;
  border: 1px solid var(--c-slate-200);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.nav-item-dropdown:hover > .nav-dropdown,
.nav-item-dropdown:focus-within > .nav-dropdown { display: flex; }
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--c-slate-700);
  font-weight: 500;
}
.nav-dropdown a:hover { background: var(--c-slate-50); color: var(--c-navy); }
.nav-dropdown a .swatch {
  width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0;
}
.nav-dropdown a .meta { color: var(--c-slate-500); font-size: 12px; margin-left: auto; font-weight: 400; }

.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-cta .btn { padding: 9px 16px; font-size: 13.5px; }

.nav-hamburger {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--c-slate-200);
  border-radius: 8px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--c-navy);
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--c-slate-200);
  background: white;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--c-navy);
  border-bottom: 1px solid var(--c-slate-100);
}
.mobile-menu a.btn {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 14px;
}
.mobile-menu .submenu a { padding-left: 44px; font-size: 14px; color: var(--c-slate-600); }
.mobile-menu .btn { margin: 16px 24px; }

@media (max-width: 1100px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: inline-flex; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--c-slate-50);
  border-top: 1px solid var(--c-slate-200);
  color: var(--c-slate-600);
  padding: 64px 0 32px;
}
.footer h4 {
  color: var(--c-navy);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin: 0 0 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--c-slate-600);
  transition: color .15s ease;
}
.footer a:hover { color: var(--c-navy); }
.footer .brand-line {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: var(--c-navy);
  margin-bottom: 0;
  text-decoration: none;
}
.footer .brand-line img {
  height: 40px;
  width: auto;
  display: block;
}
.footer .brand-line .logo-mark {
  width: 28px; height: 28px;
  background: var(--c-navy);
  color: white; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.footer .tagline { font-size: 13.5px; color: var(--c-slate-500); line-height: 1.6; max-width: 320px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--c-slate-200);
  font-size: 12px;
  color: var(--c-slate-500);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .disclaimer { font-style: italic; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   GRAPH VIZ
   ========================================================= */
.cgraph {
  position: relative;
  width: 100%;
}
.cgraph svg { display: block; width: 100%; height: auto; overflow: visible; }
.cgraph .node {
  cursor: pointer;
  transition: transform .25s ease;
}
.cgraph .node:hover { transform: scale(1.06); }
.cgraph .node-circle {
  transition: fill .2s ease, stroke .2s ease, filter .2s ease;
}
.cgraph .node-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--c-slate-700);
  pointer-events: none;
}
.cgraph.on-dark .node-label { fill: rgba(255,255,255,0.9); }
.cgraph .edge {
  stroke: var(--c-slate-300);
  stroke-width: 1.2;
  fill: none;
  transition: stroke .2s ease, stroke-width .2s ease, opacity .2s ease;
}
.cgraph.on-dark .edge { stroke: rgba(147,197,253,0.28); }
.cgraph .edge.active { stroke: var(--c-blue-400); stroke-width: 2; opacity: 1; }
.cgraph .edge-label {
  font-size: 9.5px;
  fill: var(--c-slate-500);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.cgraph.on-dark .edge-label { fill: rgba(147,197,253,0.7); }
.cgraph .edge-label.show { opacity: 1; }
.cgraph .node.is-active .node-circle { filter: drop-shadow(0 0 0 var(--c-blue-400)); stroke: var(--c-blue-400); stroke-width: 2; }
.cgraph .node.is-dim { opacity: 0.32; }
.cgraph .edge.is-dim { opacity: 0.18; }

.cgraph .pulse {
  transform-origin: center center;
  transform-box: fill-box;
  animation: nodePulse 3s ease-in-out infinite;
}
@keyframes nodePulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50%      { transform: scale(1.18); opacity: 0; }
}

.cgraph-panel {
  margin-top: 18px;
  border: 1px solid var(--c-slate-200);
  border-radius: var(--r-xl);
  padding: 18px 20px;
  background: white;
  min-height: 110px;
}
.cgraph-panel .ttl {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-slate-500);
  margin-bottom: 8px;
}
.cgraph-panel .body { font-size: 14px; color: var(--c-slate-700); line-height: 1.55; }
.cgraph-panel .precedent { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; border-top: 1px solid var(--c-slate-100); }
.cgraph-panel .precedent:first-of-type { border-top: 0; }
.cgraph-panel .precedent .yr { font-size: 11px; color: var(--c-slate-500); width: 56px; flex-shrink: 0; font-variant-numeric: tabular-nums; padding-top: 2px; }
.cgraph-panel .precedent .txt { font-size: 13px; color: var(--c-slate-700); }
.cgraph-panel.on-dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}
.cgraph-panel.on-dark .ttl { color: var(--c-blue-300); }
.cgraph-panel.on-dark .body, .cgraph-panel.on-dark .precedent .txt { color: rgba(255,255,255,0.92); }
.cgraph-panel.on-dark .precedent { border-color: rgba(255,255,255,0.08); }
.cgraph-panel.on-dark .precedent .yr { color: var(--c-blue-300); }

/* =========================================================
   TWEAKS PANEL
   ========================================================= */
.tweaks {
  position: fixed;
  bottom: 18px; right: 18px;
  width: 280px;
  background: white;
  border: 1px solid var(--c-slate-200);
  border-radius: var(--r-xl);
  box-shadow: 0 12px 32px rgba(30,58,95,0.18);
  z-index: 90;
  padding: 14px 16px 18px;
  font-size: 13px;
  display: none;
}
.tweaks.open { display: block; }
.tweaks header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.tweaks header h5 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-navy);
  margin: 0;
}
.tweaks header .close {
  background: transparent; border: 0; cursor: pointer;
  color: var(--c-slate-500); font-size: 16px; line-height: 1;
}
.tweaks .group { margin-bottom: 14px; }
.tweaks .group:last-child { margin-bottom: 0; }
.tweaks .group-lbl { font-size: 11px; color: var(--c-slate-500); font-weight: 600; letter-spacing: 0.06em; margin-bottom: 8px; }
.tweaks .opt-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks .opt {
  border: 1px solid var(--c-slate-200);
  background: white;
  color: var(--c-slate-600);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s ease;
}
.tweaks .opt:hover { border-color: var(--c-slate-300); }
.tweaks .opt.on { background: var(--c-navy); color: white; border-color: var(--c-navy); }

/* =========================================================
   MISC
   ========================================================= */
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.row-center { justify-content: center; }
.col { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-md { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }

.divider { height: 1px; background: var(--c-slate-200); width: 100%; }

.reveal { opacity: 0; transform: translateY(10px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* "Available as" badge strip on engine pages */
.avail-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.avail-card {
  border: 1px solid var(--c-slate-200);
  border-radius: var(--r-xl);
  padding: 18px 20px;
  background: white;
}
.avail-card .badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-navy);
}
.avail-card .ttl { font-size: 15px; font-weight: 600; color: var(--c-navy); margin: 6px 0 4px; }
.avail-card .desc { font-size: 13px; color: var(--c-slate-600); }
@media (max-width: 1000px) {
  .avail-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .avail-strip { grid-template-columns: 1fr; }
}

/* Engine page step list (How it works) */
.flow-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.flow-list .step {
  border: 1px solid var(--c-slate-200);
  border-radius: var(--r-xl);
  padding: 18px;
  position: relative;
  background: white;
}
.flow-list .step .step-num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--c-slate-400);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.flow-list .step .step-name { font-weight: 600; color: var(--c-navy); font-size: 15px; }
.flow-list .step .step-meta { font-size: 12.5px; color: var(--c-slate-500); margin-top: 4px; line-height: 1.5; }
@media (max-width: 900px) { .flow-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flow-list { grid-template-columns: 1fr; } }

/* Surfaces grid — 4 cards (per renovation brief v1.1) */
.surface-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.surface-grid .surface { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--r-xl); }
.surface .surface-num { font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.surface .surface-name { font-size: 20px; font-weight: 700; color: var(--c-navy); letter-spacing: -0.02em; line-height: 1.15; }
.surface .surface-tag  { font-size: 12.5px; font-style: italic; color: var(--c-slate-500); }
.surface .surface-price { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--c-navy); font-size: 14px; }
.surface .surface-audience { font-size: 13px; color: var(--c-slate-600); }
.surface .surface-how { font-size: 13px; color: var(--c-slate-700); line-height: 1.55; }
.surface.s-light { background: white; border: 1px solid var(--c-slate-200); }
.surface.s-navy {
  background: var(--c-navy);
  border: 2px solid var(--c-navy);
  color: white;
}
.surface.s-navy .surface-name { color: white; }
.surface.s-navy .surface-num { color: var(--c-blue-300); }
.surface.s-navy .surface-tag { color: rgba(207,225,255,0.75); }
.surface.s-navy .surface-price { color: white; }
.surface.s-navy .surface-audience, .surface.s-navy .surface-how { color: rgba(207,225,255,0.92); }
@media (max-width: 1100px) { .surface-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .surface-grid { grid-template-columns: 1fr; } }

/* Page-bottom "next" footer band */
.next-band {
  background: var(--c-slate-50);
  border-top: 1px solid var(--c-slate-200);
  padding: 28px 0;
}
.next-band .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.next-band .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-slate-500); }
.next-band .ttl { font-size: 18px; font-weight: 600; color: var(--c-navy); }
