/* Lumex SaaS Prototype - Design System
* A polished, modern SaaS aesthetic. Indigo primary, amber accent (subtle lightning ref).
* Built on top of Tailwind CDN. This file holds design tokens + reusable components.
*/

:root {
  --color-bg: #ffffff;
  --color-bg-subtle: #f8fafc;
  --color-bg-muted: #f1f5f9;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  /* Font colours — Ajuni text ramp (heading / sub-body / labels). */
  --color-text: #071437;           /* Ajuni heading + primary body */
  --color-text-muted: #4B5675;     /* Ajuni text-2 — sub-body, lead */
  --color-text-subtle: #78829D;    /* Ajuni text-3 — eyebrows, labels */
  /* Brand primary — the Lumex #2F50E4 ramp (matches --lx-primary). */
  --color-primary: #2F50E4;
  --color-primary-hover: #193EE4;
  --color-primary-soft: #EBEEFD;
  /* Keep Bootstrap's primary utilities (text-primary / btn-primary / etc.)
  pinned to the brand blue (matches the compiled site.css primary). */
  --bs-primary: #2F50E4;
  --bs-primary-rgb: 47, 80, 228;
  --bs-link-color: #2F50E4;
  --bs-link-color-rgb: 47, 80, 228;
  --bs-link-hover-color: #193EE4;
  --color-accent: #f59e0b;
  --color-accent-soft: #fef3c7;
  --color-success: #10b981;
  --color-success-soft: #d1fae5;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-danger-soft: #fee2e2;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  /* Horizontal page gutter used by full-bleed sections (.energy-hero-inner, etc.). */
  --page-pad: 24px;
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }

/* GSAP word-reveal: clip mask per word + translatable inner span. */
.mtn-word { display: inline-block; overflow: hidden; vertical-align: top; }
.mtn-word-i { display: inline-block; will-change: transform; }

/* Lenis smooth scroll cooperation (onething.design-style inertia). */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-mono { font-family: 'JetBrains Mono', 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
.font-display { font-family: 'Inter', sans-serif; letter-spacing: -0.025em; }

/* ----------------- Brand mark ----------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2F50E4 0%, #4764E4 50%, #97A8F2 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.18) 60%, transparent 80%);
}
.brand-mark svg { position: relative; z-index: 1; }
/* Full Lumex logo (mark + wordmark). The wordmark path uses currentColor, so it
inherits the .brand color — dark on the light nav/footer, and it flips to white
automatically on any dark background (e.g. .footer-brand .brand color override). */
.brand-logo {
  display: block;
  height: 30px;
  width: auto;
}

/* ----------------- Buttons ----------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.12s ease;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover { background: var(--color-bg-muted); border-color: var(--color-border-strong); }
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}
.btn-ghost:hover { background: var(--color-bg-muted); color: var(--color-text); }
.btn-danger {
  background: white;
  color: var(--color-danger);
  border-color: #fecaca;
}
.btn-danger:hover { background: var(--color-danger-soft); }
.btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 10px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-icon { padding: 8px; }

/* ----------------- Inputs ----------------- */
.input, .select, .textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: white;
  font-size: 14px;
  color: var(--color-text);
  transition: border-color 0.12s, box-shadow 0.12s;
  font-family: inherit;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(47, 80, 228, 0.15);
}
.input::placeholder, .textarea::placeholder { color: #94a3b8; }
.label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}
.label-hint { color: var(--color-text-subtle); font-weight: 400; margin-left: 2px; font-size: 12px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ----------------- Cards ----------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title { font-weight: 600; font-size: 15px; color: var(--color-text); }
.card-body { padding: 22px; }
.card-compact .card-body { padding: 16px; }

/* ----------------- Badges ----------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--color-bg-muted);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.badge-primary { background: var(--color-primary-soft); color: var(--color-primary); border-color: #C1CBF7; }
.badge-success { background: var(--color-success-soft); color: #047857; border-color: #a7f3d0; }
.badge-warn { background: var(--color-accent-soft); color: #b45309; border-color: #fde68a; }
.badge-danger { background: var(--color-danger-soft); color: #b91c1c; border-color: #fecaca; }
.badge-info { background: #eef2ff; color: #4338ca; border-color: #C1CBF7; }

/* =======================================================
PROJECT JOURNEY BAR - shows the 4-step product flow:
Add site -> Add zones -> Risk assessment -> Create & download report
Used on site-new.html, assessment.html, report-preview.html
======================================================= */
.journey-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 22px;
  margin-bottom: 22px;
}
.journey-step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.journey-dot {
  width: 32px; height: 32px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  background: white;
  border: 2px solid var(--color-border-strong);
  color: var(--color-text-subtle);
  transition: all 0.15s;
}
.journey-step.done .journey-dot {
  background: #10b981;
  border-color: #10b981;
  color: white;
}
.journey-step.active .journey-dot {
  background: var(--lx-primary);
  border-color: var(--lx-primary);
  color: white;
}
.journey-text { min-width: 0; }
.journey-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--color-text-subtle);
  line-height: 1.2;
}
.journey-step.done .journey-label { color: #047857; }
.journey-step.active .journey-label { color: #2F50E4; }
.journey-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 2px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.journey-step.active .journey-title { color: #1e1b4b; }
.journey-line {
  height: 2px;
  width: 32px;
  background: var(--color-border-strong);
  margin: 0 6px;
}
.journey-line.done { background: #10b981; }
@media (max-width: 1100px) {
  .journey-bar { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .journey-line { display: none; }
}
.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

/* ----------------- Tables ----------------- */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border);
}
.table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  vertical-align: middle;
}
.table tr:hover td { background: var(--color-bg-subtle); }
.table tr:last-child td { border-bottom: none; }
/* Action-needed project rows — highlighted in red so they stand out */
.table tr[data-status="action-needed"] > td { background: #fef2f2; }
.table tr[data-status="action-needed"] > td:first-child { box-shadow: inset 3px 0 0 0 #dc2626; }
.table tr[data-status="action-needed"]:hover > td { background: #fee2e2; }

/* ----------------- App shell (sidebar layout) ----------------- */
.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: var(--color-bg-subtle); }
.sidebar {
  background: white;
  border-right: 1px solid var(--color-border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-section { margin-top: 18px; }
.sidebar-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  margin-bottom: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.1s;
  position: relative;
}
.nav-item:hover { background: var(--color-bg-muted); color: var(--color-text); }
.nav-item.active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item-badge {
  margin-left: auto;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--color-bg-muted);
  color: var(--color-text-subtle);
  font-weight: 500;
}
.nav-item.active .nav-item-badge { background: white; color: var(--color-primary); }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-subtle);
}
.crumb a { color: var(--color-text-subtle); text-decoration: none; }
.crumb a:hover { color: var(--color-text); }
.crumb-sep { color: var(--color-border-strong); }
.crumb-current { color: var(--color-text); font-weight: 500; }

.search-input {
  width: 280px;
  padding: 7px 12px 7px 34px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
  font-size: 13px;
  transition: all 0.12s;
}
.search-input:focus { background: white; border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px rgba(47,80,228,0.15); }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--color-text-subtle); width: 16px; height: 16px; }

.content { padding: 32px 28px; flex: 1; }
.content-narrow { max-width: 1180px; margin: 0 auto; }
.page-header { margin-bottom: 24px; }
.page-title { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; color: var(--color-text); }
.page-subtitle { font-size: 14px; color: var(--color-text-muted); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; align-items: center; }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #C1CBF7, #9d97ff);
  color: white;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.avatar-lg { width: 48px; height: 48px; font-size: 16px; }
.avatar-sm { width: 24px; height: 24px; font-size: 10px; }

/* ----------------- KPI / stat cards ----------------- */
.kpi { padding: 18px 20px; }
.kpi-label { font-size: 13px; color: var(--color-text-subtle); font-weight: 500; }
.kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; margin-top: 6px; color: var(--color-text); }
.kpi-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; margin-top: 6px; }
.kpi-delta-up { color: #059669; }
.kpi-delta-down { color: var(--color-danger); }

/* ----------------- Marketing pages ----------------- */
.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: transform .45s cubic-bezier(.4,0,.2,1),
  background-color .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  will-change: transform;
}
/* Scrolled state: frosted white at 60%, blurred backdrop, no shadow, no border. */
.marketing-nav.is-scrolled {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: transparent;
  box-shadow: none;
}
/* Smart-sticky: tuck out of view on scroll-down, glide back on scroll-up. */
.marketing-nav.is-hidden { transform: translateY(-100%); }

/* Width + responsive step-downs come from Bootstrap's .container-xxl;
this layer only adds the flex layout and the vertical shrink animation. */
.marketing-nav-inner {
  min-height: 70px;
  padding-block: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: min-height .3s ease;
}
.marketing-nav.is-scrolled .marketing-nav-inner { min-height: 70px; }
.marketing-nav .brand { transition: transform .3s ease; }

/* Black pill CTA — shared by every header (transparent home + solid inner pages),
so the two headers are identical apart from background + logo colour. */
.marketing-nav .btn-primary {
  background: #0b0b0f;
  border-color: #0b0b0f;
  border-radius: 999px;
  font-weight: 500;
}
.marketing-nav .btn-primary:hover {
  background: #000;
  border-color: #000;
}

.marketing-nav-links { display: flex; gap: 6px; }
.marketing-nav-link {
  position: relative;
  padding: 7px 14px;
  font-size: 16px;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 400;
  transition: color .2s ease;
}
.marketing-nav-link:hover { color: var(--color-primary); text-decoration: none; }
/* No underline — hover and the active page are indicated by text colour only. */
.marketing-nav-link.is-active { color: var(--color-text); font-weight: 600; }
/* Tighten link padding below lg so the links fit on tablet widths. */
@media (max-width: 991.98px) {
  .marketing-nav-link { padding: 7px 10px;}
}

.section { padding: 80px 24px; }
@media (max-width: 600px) { .section { padding-left: 20px; padding-right: 20px; } }

/* ---------------------------------------------------------------------------
Container model ported from Capnix's .container-cx: ONE fluid container that
fills the viewport minus the gutter, caps at 1320px, then bumps to 1440px on
screens wider than 1600px. Gutter is 24px (20px on phones ≤600px). No stepped
width ladder — content is fluid between breakpoints. This single model is
shared by the marketing sections (.section-narrow), the header & footer
(Bootstrap .container / .container-xxl) and .aj-wrap, so every page lines up
at every screen size. .section-tight stays a narrower reading measure for prose.
--------------------------------------------------------------------------- */
.section-narrow { width: 100%; max-width: 1320px; margin-inline: auto; }
.section-tight  { width: 100%; margin-inline: auto; }
@media (min-width: 576px) { .section-tight { max-width: 540px; } }
@media (min-width: 768px) { .section-tight { max-width: 720px; } }
@media (min-width: 992px) { .section-tight { max-width: 960px; } }

/* Bootstrap container → same fluid-then-capped model. styles.css loads after
Bootstrap, so this plain rule overrides Bootstrap's stepped max-width ladder.
24px side padding aligns the header/footer edges with the section content. */
.container,
.container-xxl { max-width: 1320px; padding-left: 24px; padding-right: 24px; }

@media (min-width: 1600px) {
  .container,
  .container-xxl,
  .section-narrow,
  .aj-wrap { max-width: 1440px; }
}

/* Two-column "split" rows (text + figure) carry an inline `--bs-gutter-x:100px`
for a wide column gap. Bootstrap turns that into -50px row margins; only at
>=1440px does the centred container leave enough slack to absorb them, so below
that the row overhangs the viewport (~26px each side) and triggers horizontal
scroll on every page that uses the pattern (About, For/*). Cap the gutter on
smaller screens to a value the container's padding can absorb. The >=1440
desktop baseline keeps the full 100px gap unchanged. */
@media (max-width: 1439.98px) {
  .section-narrow > .row[style*="--bs-gutter-x"] { --bs-gutter-x: 40px !important; }
}

/* Defensive horizontal clip on the content wrapper for small/medium screens.
The wide comparison table (.cmp, min-width:760px) lives in an `overflow-x:auto`
box so it scrolls internally; on narrow viewports a few px of that table still
leaked into page-level horizontal scroll (its inner scroll context didn't fully
contain it). Clipping the section wrapper's x-axis stops the leak without
affecting the table's own internal scroll. Scoped to <=1200px so the >=1440
desktop baseline (where nothing overflows) is never touched. Nothing in
.section-narrow bleeds horizontally by design — full-bleed blocks (e.g. the
image marquee) are their own sections outside this wrapper. */
@media (max-width: 1200px) {
  .section-narrow { overflow-x: clip; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-eyebrow-pill {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Display heading — Ajuni scale: locked weight 500 + tight -0.03em tracking. */
.h-display {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--color-text);
}
.h-display .accent { color: var(--color-primary); }
.h-display .gradient {
  background: linear-gradient(135deg, #2F50E4 0%, #6E86F0 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 620px;
  line-height: 1.6;
  margin: 18px 0 0;
}

/* ---- Global page hero (every non-home page) -------------------------
Cloned from the NextSaaS "Core features" hero: centered tinted-pill
eyebrow, large tight heading in the header colour (no accent word),
text-1 lead. Rendered by Shared/_PageHero from ViewData["Hero*"]. */
.page-hero { padding: 120px 10px; text-align: center; }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; height: 30px; padding: 0 16px; margin: 0 0 22px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border-radius: 9999px;
}
.page-hero h1 {
  font-size: 56px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.06;
  color: var(--lx-heading); margin: 0 auto; max-width: 880px;
}
.page-hero .lead {
  font-size: 19px; color: var(--color-text); line-height: 1.6;
  max-width: 800px; margin: 22px auto 0;
}
.page-hero .lead a { color: var(--color-primary); font-weight: 500; }
@media (max-width: 760px) {
  .page-hero { padding: 50px 10px; }
  .page-hero h1 { font-size: 38px; }
}

/* ---- Ajuni eyebrows -------------------------------------------------
Accent-dot label for hero/section kickers, plus a tracked uppercase
variant for section headers. Ported from the Ajuni design system. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);   /* brand primary #2F50E4 */
}
.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--color-primary);
}
.eyebrow--on-dark { color: rgba(255, 255, 255, 0.85); }
.eyebrow--on-dark::before { background: #ffffff; }

/* Tracked uppercase section kicker (Ajuni section-eyebrow). */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);   /* brand primary #2F50E4 */
}

/* ---------------------------------------------------------------
Global section header — the canonical eyebrow + title + lead
block from the home "How it works" section, lifted into one
reusable component. Centered by default; add .section-head--start
to left-align it inside split/column layouts.
--------------------------------------------------------------- */
.section-head { text-align: center; margin: 0 auto 80px; }
@media (max-width:575px){
  .section-head { margin: 0 auto 50px; }
}
.section-head-eyebrow {
  display: inline-block; margin: 0 0 12px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--color-primary);   /* brand primary #2F50E4 */
}
.section-head-title {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 42px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.15; color: #071437;
}
.section-head-lead {
  max-width: 800px; margin: 18px auto 0;
  font-size: 18px; font-weight: 400; color: var(--color-text-muted); line-height: 1.6;
}
/* Left-aligned variant for in-column headers; spacing handled by the
following element's own margin, so no forced bottom gap here. */
.section-head--start { text-align: left; margin: 0; }
.section-head--start .section-head-lead { margin-left: 0; margin-right: 0; }

/* ----------------- Footer (dark) ----------------- */
/* Layout (width, columns, gutters) comes from Bootstrap .container + .row/.col-*. */
.footer {
  background: #0b0e16;
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 28px 36px;
  margin-top: 0;
  border-top: 0;
}
.footer a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 15px; transition: color .15s ease; }
.footer a:hover { color: #ffffff; }

/* Top band: brand (left) + newsletter (right) */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand .brand { color: #ffffff; }   /* wordmark → white (mark stays brand blue) */
.footer .footer-top > .brand { color: #ffffff; }
.footer-brand .brand-logo, .footer .footer-top > .brand .brand-logo { height: 36px; }   /* larger logo in the footer */
.footer-tagline { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.02em; color: #ffffff; }

/* Newsletter */
.footer-newsletter { flex: 1 1 380px; min-width: 300px; max-width: 480px; }
.footer-news-label { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: #ffffff; margin-bottom: 16px; }
.footer-news-form { display: flex; flex-direction: column; gap: 8px; }
.footer-news-row { display: flex; gap: 10px; }
.footer-news-input {
  flex: 1; min-width: 0;
  height: 45px;
  padding: 0 24px;
  border-radius: 999px;
  
  border: 1px solid transparent;
  background: #ffffff;
  color: var(--color-text);            /* filled text → text 1 */
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.footer-news-input::placeholder { color: var(--color-text-muted); font-size: 14px; font-weight: 400; }   /* placeholder → text 2 */
.footer-news-input:focus { background: #ffffff; border-color: transparent; box-shadow: none; outline: none; }    /* active → no border, bg stays white */
/* Warning / error state — amber border + soft amber wash (no shadow) */
.footer-news-input.is-invalid,
.footer-news-input.is-invalid:focus {
  border-color: var(--color-warning);
  background: #FFFBEB;
}
.footer-news-msg {
  display: none; align-items: center; gap: 6px;
  margin: 0; font-size: 12.5px; font-weight: 500; color: #FBBF24;
}
.footer-news-msg svg, .footer-news-msg .ic { width: 14px; height: 14px; flex: 0 0 auto; }
.footer-news-msg.show { display: inline-flex; }

.footer-news-btn {
  position: relative; overflow: hidden; isolation: isolate;
  height: 45px;
  padding: 0 30px;
  border-radius: 999px;
  
  border: 0;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
/* Circle fluid fill on hover — same motion as the marketing CTAs */
.footer-news-btn .btn-label { position: relative; z-index: 2; }
.footer-news-btn::before {
  content: ""; position: absolute; top: 50%; left: 0; z-index: 1;
  width: 165%; aspect-ratio: 1 / 1; border-radius: 50%;
  background: color-mix(in srgb, var(--color-primary) 74%, #000);
  transform: translateY(-50%) scale(0); transform-origin: left center;
  transition: transform .6s cubic-bezier(.45,0,.18,1);
}
.footer-news-btn:hover::before { transform: translateY(-50%) scale(1); }
@media (prefers-reduced-motion: reduce) { .footer-news-btn::before { transition-duration: .3s; } }
.footer-news-hint { margin: 12px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.4); }

/* Divider */
.footer-divider { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); margin: 44px 0; opacity: 1; }

/* Link columns */
.footer h4 { color: #ffffff; font-size: 15px; font-weight: 600; margin: 0 0 18px; text-transform: none; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }

/* Column grid: 3 link columns, contact info, then the waitlist form (divided off). */
.footer-grid { display: grid; grid-template-columns: 1.1fr 0.9fr 0.9fr 1.5fr 1.4fr; gap: 40px; align-items: start; }
.footer-contact address { font-style: normal; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, 0.6); margin: 0 0 18px; max-width: 22em; }
.footer-contact a { display: block; font-size: 15px; line-height: 1.9; }
.footer-cta { border-left: 1px solid rgba(255, 255, 255, 0.12); padding-left: 40px; }
.footer-cta .footer-news-form { gap: 10px; max-width: 320px; }
.footer-cta .footer-news-row { flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
.footer-cta .footer-news-input { flex: 0 0 auto; width: 100%; height: 45px; }
.footer-cta .footer-news-btn { width: auto; align-self: flex-start; }
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 40px;
    column-gap: 10px;
  }
  .footer-cta { border-left: 0; padding-left: 0; grid-column: 1 / -1; }
}
@media (max-width: 992px) {
  .footer-grid {  grid-template-columns: repeat(4, 1fr);
    row-gap: 40px;
    column-gap: 10px;}
    .footer-cta { border-left: 0; padding-left: 0; grid-column: 1 / -1; }
  }
  @media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
  
  /* Bottom bar */
  .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
  }
  .footer-copy strong { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
  .footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
  .footer-legal a { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.55); }
  
  /* ----------------- Back-to-top ----------------- */
  .back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    corner-shape: round; -webkit-corner-shape: round;
    background: #0b0e16;   /* black by default */
    color: #ffffff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease, background .15s ease, color .15s ease;
  }
  .back-to-top.is-visible { opacity: 1; visibility: visible; }
  .back-to-top:hover { background: var(--color-primary); color: #ffffff; }   /* hover → primary */
  /* Inverted while sitting over a dark section (e.g. the footer). */
  .back-to-top.on-dark { background: #ffffff; color: #0b0e16; }
  .back-to-top.on-dark:hover { background: var(--color-primary); color: #ffffff; }
  .back-to-top svg { width: 20px; height: 20px; }
  @media (max-width: 560px) { .back-to-top { right: 16px; bottom: 16px; } }
  
  /* ----------------- Stepper ----------------- */
  .stepper {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 0 8px;
    margin-bottom: 32px;
  }
  .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 0;
  }
  /* Connecting line between circles - sits behind the circle, centered vertically on it */
  .step + .step::before {
    content: '';
    position: absolute;
    top: 13px;            /* matches half of circle height (28/2 = 14, -1 for centering on 2px line) */
    left: calc(-50% + 18px);
    right: calc(50% + 18px);
    height: 2px;
    background: var(--color-border);
    z-index: 0;
  }
  .step.done + .step::before { background: var(--color-primary); }
  .step-circle {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: white;
    border: 1.5px solid var(--color-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-subtle);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }
  .step.active .step-circle {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
  }
  .step.done .step-circle {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
  }
  .step-label {
    font-size: 13px;
    color: var(--color-text-subtle);
    font-weight: 500;
    white-space: normal;
    line-height: 1.25;
    max-width: 130px;
    word-wrap: break-word;
  }
  .step.active .step-label, .step.done .step-label { color: var(--color-text); }
  
  /* Make stepper steps that are <a> elements behave as deep-link affordances */
  a.step {
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease;
  }
  a.step:hover .step-circle {
    transform: scale(1.04);
  }
  a.step:hover .step-label {
    color: var(--color-primary);
  }
  a.step:focus-visible {
    outline: none;
  }
  a.step:focus-visible .step-circle {
    box-shadow: 0 0 0 4px var(--color-primary-soft), 0 0 0 6px var(--color-primary);
  }
  
  /* ----------------- Plan cards ----------------- */
  .plan-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.15s ease;
    position: relative;
  }
  .plan-card.featured {
    border-color: var(--color-primary);
    transform: scale(1.02);
  }
  .plan-card.featured::before {
    content: 'Most popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .plan-name { font-size: 17px; font-weight: 600; color: var(--color-text); }
  .plan-price { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: var(--color-text); margin-top: 14px; line-height: 1; }
  .plan-price-unit { font-size: 15px; font-weight: 500; color: var(--color-text-subtle); }
  .plan-tagline { font-size: 13px; color: var(--color-text-muted); margin-top: 8px; min-height: 36px; }
  .plan-features { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 10px; }
  .plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--color-text); }
  .plan-features svg { color: var(--color-primary); flex-shrink: 0; margin-top: 2px; width: 16px; height: 16px; }
  
  /* ----------------- Risk-assessment specific ----------------- */
  .risk-meter {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .risk-bar {
    height: 8px;
    border-radius: 999px;
    background: var(--color-bg-muted);
    overflow: hidden;
    position: relative;
  }
  .risk-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
    transition: width 0.3s ease;
  }
  .risk-bar-marker {
    position: absolute;
    top: -3px;
    width: 2px;
    height: 14px;
    background: var(--color-text);
  }
  
  .zone-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.12s;
    cursor: pointer;
  }
  .zone-card:hover { border-color: var(--color-primary); }
  .zone-card.selected { border-color: var(--color-primary); background: var(--color-primary-soft); }
  .zone-icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  /* ----------------- Misc utilities ----------------- */
  .divider { height: 1px; background: var(--color-border); margin: 16px 0; }
  .dropdown-menu {
    position: absolute;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 6px;
    min-width: 200px;
    display: none;
    z-index: 50;
  }
  .dropdown-menu.open { display: block; }
  .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
    cursor: pointer;
  }
  .dropdown-item:hover { background: var(--color-bg-muted); }
  
  /* tabs */
  .tabs { display: flex; gap: 0; border-bottom: 1px solid var(--color-border); margin-bottom: 24px; }
  .tab {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: -1px;
  }
  .tab:hover { color: var(--color-text); }
  .tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
  
  /* small svg icon helper */
  .icon { display: inline-block; vertical-align: middle; }
  
  /* Empty state */
  .empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--color-text-subtle);
  }
  .empty-state-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
  }
  
  /* ----------------- Tooltip system ----------------- */
  [data-tip] {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted var(--color-text-subtle);
  }
  [data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #0f172a;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    width: max-content;
    max-width: 280px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s, transform 0.12s;
    z-index: 100;
  }
  [data-tip]::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-1px);
    border: 5px solid transparent;
    border-top-color: #0f172a;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s;
    z-index: 100;
  }
  [data-tip]:hover::after,
  [data-tip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
  }
  
  .tip-icon {
    display: inline-flex;
    vertical-align: middle;
    color: var(--color-text-subtle);
    margin-left: 4px;
    cursor: help;
  }
  .tip-icon:hover { color: var(--color-primary); }
  
  /* ----------------- Help drawer ----------------- */
  .help-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    transition: transform 0.15s;
  }
  .help-fab:hover { transform: scale(1.06); background: var(--color-primary-hover); }
  
  .drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: white;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
  }
  .drawer.open { transform: translateX(0); }
  .drawer-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 150;
  }
  .drawer-backdrop.open { opacity: 1; pointer-events: auto; }
  .drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, white 0%, var(--color-bg-subtle) 100%);
  }
  .drawer-title { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
  .drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
  
  .glossary-search {
    width: 100%;
    padding: 9px 12px 9px 36px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--color-bg-subtle);
    margin-bottom: 14px;
  }
  .glossary-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }
  .glossary-item:last-child { border-bottom: none; }
  .glossary-term {
    font-weight: 600;
    font-size: 13px;
    color: var(--color-text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .glossary-source {
    font-size: 10px;
    padding: 1px 6px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
  }
  .glossary-def {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
  }
  
  /* ----------------- Comparison table (vs X) ----------------- */
  .vs-table {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  .vs-table table { width: 100%; border-collapse: collapse; }
  .vs-table th, .vs-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
  }
  .vs-table tr:last-child td { border-bottom: none; }
  .vs-table th { background: var(--color-bg-subtle); font-weight: 600; font-size: 13px; }
  .vs-table th.us {
    background: var(--color-primary-soft);
    color: var(--color-primary);
  }
  .vs-table td.us {
    background: rgba(99, 91, 255, 0.04);
    font-weight: 500;
  }
  .vs-yes { color: #10b981; font-weight: 600; }
  .vs-partial { color: #f59e0b; font-weight: 500; }
  .vs-no { color: var(--color-text-subtle); }
  
  /* ----------------- AI Co-Pilot panel ----------------- */
  .copilot-panel {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #2F50E4 130%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
  }
  .copilot-panel::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  }
  .copilot-panel > * { position: relative; z-index: 1; }
  .copilot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }
  .copilot-badge {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .copilot-spark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .copilot-msg {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 14px;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255,255,255,0.9);
    margin-bottom: 10px;
  }
  .copilot-quick {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    font-size: 12px;
    color: white;
    cursor: pointer;
    transition: background 0.12s;
    text-decoration: none;
  }
  .copilot-quick:hover { background: rgba(255,255,255,0.18); }
  
  /* ----------------- Why-this-matters callout ----------------- */
  .why-callout {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%);
    border: 1px solid #C1CBF7;
    border-radius: 10px;
    font-size: 12px;
    color: #3730a3;
    line-height: 1.5;
  }
  .why-callout-icon {
    background: white;
    color: var(--color-primary);
    padding: 4px;
    border-radius: 6px;
    flex-shrink: 0;
    height: fit-content;
  }
  .why-callout strong { color: #1e1b4b; font-weight: 600; }
  
  /* ----------------- Risk meter (enhanced log scale) ----------------- */
  .risk-meter-pro {
    position: relative;
    height: 50px;
    background: linear-gradient(90deg,
    #d1fae5 0%, #d1fae5 33%,
    #fef3c7 33%, #fef3c7 50%,
    #fee2e2 50%, #fee2e2 100%);
    border-radius: 8px;
    overflow: visible;
    margin: 18px 0;
    border: 1px solid var(--color-border);
  }
  .risk-meter-pro .threshold {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 2px;
    background: #0f172a;
  }
  .risk-meter-pro .threshold-label {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
  }
  .risk-meter-pro .marker {
    position: absolute;
    top: -8px;
    width: 4px;
    height: calc(100% + 16px);
    background: white;
    border: 2px solid var(--color-text);
    border-radius: 2px;
  }
  .risk-meter-pro .marker::after {
    content: attr(data-value);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text);
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
  }
  .risk-meter-pro .scale-label {
    position: absolute;
    bottom: -22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--color-text-subtle);
  }
  
  /* ----------------- Scenario comparison ----------------- */
  .scenario-compare {
    display: grid;
    grid-template-columns: 1fr 36px 1fr;
    gap: 0;
    margin: 18px 0;
    background: var(--color-bg-subtle);
    border-radius: 12px;
    padding: 6px;
  }
  .scenario-col {
    background: white;
    border-radius: 9px;
    padding: 16px 18px;
  }
  .scenario-col.current { border: 1px solid var(--color-border); }
  .scenario-col.proposed { border: 1.5px solid var(--color-primary); }
  .scenario-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
  }
  .scenario-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-subtle);
    margin-bottom: 8px;
  }
  .scenario-col.proposed .scenario-label { color: var(--color-primary); }
  .scenario-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 700;
  }
  .scenario-meta {
    font-size: 11px;
    color: var(--color-text-subtle);
    margin-top: 6px;
    line-height: 1.4;
  }
  
  /* ----------------- Compliance badges ----------------- */
  .compliance-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
  .compliance-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: white;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    white-space: nowrap;
  }
  .compliance-badge svg { color: #10b981; flex-shrink: 0; }
  
  /* ----------------- ROI calculator ----------------- */
  .roi-card {
    background: linear-gradient(135deg, #f0fdf4 0%, white 100%);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-lg);
    padding: 24px 28px;
  }
  .roi-result {
    font-family: 'JetBrains Mono', monospace;
    font-size: 36px;
    font-weight: 800;
    color: #059669;
    letter-spacing: -0.025em;
  }
  
  /* ----------------- Template card ----------------- */
  .template-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
  }
  .template-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
  }
  .template-thumb {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
  }
  .template-body { padding: 16px 18px; }
  
  /* ----------------- Report preview (PDF-look) ----------------- */
  .pdf-page {
    background: white;
    width: 100%;
    max-width: 820px;
    margin: 0 auto 20px;
    padding: 44px 56px 80px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    position: relative;
    min-height: 920px;
  }
  .pdf-header {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 18px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  .pdf-h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 28px 0 10px;
    color: var(--color-text);
  }
  .pdf-h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 22px 0 8px;
    color: var(--color-text);
  }
  .pdf-h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    margin: 18px 0 8px;
  }
  .pdf-p { font-size: 13px; line-height: 1.6; color: #1e293b; margin: 0 0 10px; }
  .pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 16px;
    font-size: 12px;
  }
  .pdf-table th, .pdf-table td {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    text-align: left;
  }
  .pdf-table th { background: #f1f5f9; font-weight: 600; }
  .pdf-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 120px;
    font-weight: 900;
    color: rgba(99, 91, 255, 0.06);
    pointer-events: none;
    z-index: 0;
  }
  
  /* ----------------- Reassessment / compliance row ----------------- */
  .compliance-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: white;
    margin-bottom: 8px;
  }
  .compliance-row.due { border-color: #fde68a; background: #fffbeb; }
  .compliance-row.overdue { border-color: #fecaca; background: #fef2f2; }
  
  /* ----------------- User profile dropdown ----------------- */
  .user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: background 0.1s;
  }
  .user-menu-trigger:hover { background: var(--color-bg-muted); }
  .user-dropdown {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 6px;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: all 0.15s;
  }
  .user-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .user-dropdown-section {
    padding: 8px 10px 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--color-text-subtle);
  }
  .user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--color-text);
    text-decoration: none;
    cursor: pointer;
  }
  .user-dropdown-item:hover { background: var(--color-bg-muted); }
  .user-dropdown-item.danger { color: var(--color-danger); }
  .user-dropdown-item.danger:hover { background: var(--color-danger-soft); }
  .user-dropdown-item .role-tag {
    margin-left: auto;
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--color-bg-muted);
    color: var(--color-text-subtle);
  }
  .user-dropdown-item.active-role .role-tag {
    background: var(--color-primary-soft);
    color: var(--color-primary);
  }
  .user-dropdown hr { border: none; border-top: 1px solid var(--color-border); margin: 4px 0; }
  
  /* Role-context banner shown when ?role=pm or sm */
  .role-banner {
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
    border-bottom: 1px solid #fde68a;
    padding: 8px 24px;
    font-size: 12px;
    color: #78350f;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .role-banner strong { color: #1e1b4b; }
  .role-banner a { color: #1e1b4b; text-decoration: underline; font-weight: 600; }
  
  /* Responsive */
  @media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .footer-bottom { flex-direction: column-reverse; align-items: center; gap: 18px; }
    .field-row { grid-template-columns: 1fr; }
    .drawer { width: 100vw; }
    .scenario-compare { grid-template-columns: 1fr; gap: 8px; }
    .scenario-arrow { transform: rotate(90deg); }
  }
  
  /* filter pills (projects list) */
  .filter-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 8px;
    border: 1px solid var(--color-border); background: white;
    font-size: 13px; font-weight: 500; color: var(--color-text-muted);
    cursor: pointer;
  }
  .filter-pill:hover { background: var(--color-bg-muted); }
  .filter-pill.active { background: var(--color-primary-soft); color: var(--color-primary); border-color: #C1CBF7; }
  .filter-pill .count { font-size: 11px; padding: 1px 6px; background: var(--color-bg-muted); border-radius: 999px; color: var(--color-text-subtle); }
  .filter-pill.active .count { background: white; color: var(--color-primary); }
  
  /* =======================================================================
  AJUNI-STYLE MARKETING REDESIGN — deep blue brand
  Mirrors ajuni.io: Inter + JetBrains Mono, weight-500 display headings,
  line-height 1.05, 1320px container, deep navy ink (#071437) + blue (#056EE9).
  Scoped to the `aj-*` component layer + a brand token override.
  ======================================================================= */
  :root {
    /* ============ OFFICIAL LUMEX COLOR SYSTEM ============ */
    /* Primary — royal blue */
    --lx-primary: #2F50E4;
    --lx-primary-hover: #4764E4;
    --lx-primary-pressed: #193EE4;
    --lx-primary-50: #97A8F2;
    --lx-primary-30: #C1CBF7;
    --lx-primary-20: #D5DCFA;
    --lx-primary-15: #E0E5FB;
    --lx-primary-10: #EBEEFD;
    --lx-primary-5:  #F4F6FD;
    
    /* Neutrals — heading + text ramp + surfaces */
    --lx-heading: #071437;
    --lx-text-1: #252F4A;
    --lx-text-2: #4B5675;
    --lx-text-3: #78829D;
    --lx-text-4: #99A1B7;
    --lx-text-5: #C4CADA;
    --lx-white: #FFFFFF;
    --lx-border-dark: #EBEDF3;
    --lx-border-light: #F4F6F8;
    --lx-bg-dark: #F5F6FA;
    --lx-bg-light: #F9FBFC;
    
    /* Info */
    --lx-info: #056EE9;        --lx-info-100: #1B84FF;   --lx-info-10: #E9F3FF;
    /* Success */
    --lx-success: #04B440;     --lx-success-100: #17C653; --lx-success-10: #E8FAEE;
    /* Warning */
    --lx-warning: #DFA000;     --lx-warning-100: #F6B100; --lx-warning-10: #FFF8E6;
    /* Error */
    --lx-error: #E82646;       --lx-error-100: #F8285A;   --lx-error-10: #FFEAEF;
    
    /* ---- Re-point the existing design tokens onto the Lumex system ---- */
    --color-primary: var(--lx-primary);
    --color-primary-hover: var(--lx-primary-hover);
    --color-primary-soft: var(--lx-primary-10);
    --color-success: var(--lx-success-100);
    --color-warning: var(--lx-warning-100);
    --color-danger: var(--lx-error);
    
    /* Text ramp — body, muted, subtle (headings use --lx-heading via --aj-ink) */
    --color-text: var(--lx-text-1);           /* #252F4A — body */
    --color-text-muted: var(--lx-text-2);     /* #4B5675 — secondary */
    --color-text-subtle: var(--lx-text-3);    /* #78829D — tertiary/labels */
    
    /* Surfaces & borders */
    --color-bg-subtle: var(--lx-bg-light);    /* #F9FBFC */
    --color-bg-muted: var(--lx-bg-dark);      /* #F5F6FA */
    --color-border: var(--lx-border-dark);    /* #EBEDF3 */
    --color-border-strong: var(--lx-text-5);  /* #C4CADA */
    
    /* ajuni-layout aliases now bound to the Lumex palette */
    --aj-ink: var(--lx-heading);       /* headings, dark sections, footer */
    --aj-body: var(--lx-text-1);       /* body text */
    --aj-muted: var(--lx-text-2);      /* secondary text */
    --aj-bg-light: var(--lx-bg-light); /* alternating section background */
    --aj-border: var(--lx-border-dark);/* hairlines */
    --aj-blue: var(--lx-primary);      /* marketing accent = primary royal blue */
    --aj-blue-soft: var(--lx-primary-10);
    
    /* Motion — ajuni's easing curves */
    --aj-ease-out: cubic-bezier(0.22, 1, 0.36, 1);  /* ease-out-quart */
    --aj-ease-ui:  cubic-bezier(0.32, 0.72, 0, 1);
  }
  
  /* Refresh the indigo-soft chips that lean on the old hue */
  .badge-primary { background: var(--color-primary-soft); color: var(--color-primary); border-color: var(--lx-primary-30); }
  .filter-pill.active { border-color: var(--lx-primary-30); }
  
  .aj { color: var(--aj-body); }
  .aj-wrap { max-width: 1320px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
  .aj-section { padding: 96px 0; }
  .aj-section-sm { padding: 64px 0; }
  .aj-light { background: var(--aj-bg-light); }
  
  /* ---- Display typography — EXACT ajuni sizes ----
  Hero heading  : clamp(36px,5.5vw,56px)  (.inner-hero-title)
  Section h2    : clamp(28px,6vw,36px)     (.use-case-section__heading-centered)
  Subheading h3 : 1.25rem / 20px           (Bootstrap h4 / ajuni card titles)
  Lead          : 1.25rem / 20px           (.lead, weight 300)
  Body text     : 1rem / 16px              (--bs-body-font-size)
  Eyebrow/kicker: 12px uppercase           (.eyebrow)                            */
  .aj-display {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--aj-ink);
    font-size: clamp(36px, 5.5vw, 56px);
    margin: 0;
  }
  .aj-h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--aj-ink);
    font-size: clamp(28px, 6vw, 36px);
    margin: 0;
  }
  .aj-h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.3; color: var(--aj-ink); letter-spacing: -0.01em; margin: 0; }
  .aj-lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--aj-muted);
    margin: 20px 0 0;
    max-width: 640px;
  }
  .aj-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
    color: var(--color-primary);   /* brand primary #2F50E4 */
    text-transform: none;
  }
  .aj-kicker {
    font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--aj-blue); margin-bottom: 14px;
  }
  
  /* ---- Buttons — EXACT ajuni pill spec ----
  .btn-pill    : min-height 48px, padding 0 20px, radius 16px, 14px/500, gap 6px
  .btn-pill-sm : min-height 40px, padding 0 14px, radius 12px
  press        : transition transform 80ms ease-out; :active scale(0.96)
  hover        : colour change only (flat — no lift, no shadow)                  */
  .aj-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 48px; padding: 0 20px; border-radius: 16px;
    font-size: 14px; font-weight: 500; line-height: 1.25;
    text-decoration: none; cursor: pointer; border: 1px solid transparent;
    transition: background-color .2s var(--aj-ease-out), color .2s var(--aj-ease-out),
    border-color .2s var(--aj-ease-out), transform 80ms ease-out;
    white-space: nowrap;
  }
  .aj-btn:active:not(:disabled) { transform: scale(0.96); }
  .aj-btn-sm { min-height: 40px; padding: 0 14px; border-radius: 12px; }
  .aj-btn-lg { min-height: 52px; padding: 0 26px; font-size: 15px; }
  
  .aj-btn-primary { background: var(--aj-blue); color: #fff; }
  .aj-btn-primary:hover { background: var(--color-primary-hover); }
  .aj-btn-ghost { background: #fff; color: var(--aj-ink); border-color: var(--aj-border); }
  .aj-btn-ghost:hover { border-color: var(--aj-ink); }
  .aj-btn-white { background: #fff; color: var(--aj-ink); }
  .aj-btn-white:hover { background: #eef2f7; }
  .aj-btn-dark { background: var(--aj-ink); color: #fff; border-radius: 999px; padding: 0 26px; }
  .aj-btn-dark:hover { background: #14224d; color: #fff; }
  .aj-btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
  .aj-btn-outline-light:hover { background: #fff; color: var(--aj-ink); border-color: #fff; }
  /* Icons inside buttons: ~16px, with the signature arrow nudge on hover */
  .aj-btn [data-lucide] { width: 16px; height: 16px; flex-shrink: 0; }
  .aj-btn [data-lucide="arrow-right"] { transition: transform .15s var(--aj-ease-out); }
  .aj-btn:hover [data-lucide="arrow-right"] { transform: translateX(3px); }
  /* Press feedback on legacy buttons too (page-local marketing CTAs) */
  .btn:active:not(:disabled) { transform: scale(0.97); }
  
  /* ---- Hero ---- */
  .aj-hero { padding: 80px 0 64px; }
  .aj-hero-grid {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  }
  .aj-hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
  .aj-hero-note { margin-top: 22px; font-size: 13.5px; color: var(--aj-muted); }
  /* Hero feature chips (flat, replaces decorative-dot note) */
  .aj-hero-tags { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .aj-hero-tags li {
    font-size: 12.5px; font-weight: 500; color: var(--aj-muted);
    background: #fff; border: 1px solid var(--aj-border); border-radius: 999px; padding: 6px 13px;
  }
  .aj-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 6px; border-radius: 999px;
    background: #fff; border: 1px solid var(--aj-border);
    font-size: 13px; color: var(--aj-muted); font-weight: 500; margin-bottom: 24px;
  }
  .aj-pill b {
    background: var(--aj-blue-soft); color: var(--aj-blue);
    padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
  }
  
  /* ---- Product mockup frame (flat — no shadow, ajuni style) ---- */
  .aj-frame {
    background: linear-gradient(180deg, var(--aj-bg-light) 0%, #fff 100%);
    border: 1px solid var(--aj-border);
    border-radius: 18px; padding: 12px;
  }
  .aj-frame-inner { background: #fff; border: 1px solid var(--aj-border); border-radius: 12px; overflow: hidden; }
  
  /* ---- Trust strip ---- */
  .aj-trust { padding: 40px 0; border-top: 1px solid var(--aj-border); border-bottom: 1px solid var(--aj-border); }
  .aj-trust-label { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--aj-muted); margin-bottom: 22px; }
  .aj-trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; }
  .aj-trust-item {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 15px; font-weight: 600; color: var(--aj-ink);
    padding: 10px 18px; border: 1px solid var(--aj-border); border-radius: 12px; background: #fff;
  }
  .aj-trust-item svg { color: var(--aj-blue); }
  
  /* ---- Stats ---- */
  .aj-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .aj-stat-value { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; color: var(--aj-ink); line-height: 1; }
  .aj-stat-label { margin-top: 10px; font-size: 14px; color: var(--aj-muted); line-height: 1.45; }
  
  /* ---- Section heading block ---- */
  .aj-head { max-width: 720px; }
  .aj-head.center { margin: 0 auto; text-align: center; }
  .aj-head .aj-lead { margin-left: 0; margin-right: 0; }
  .aj-head.center .aj-lead { margin-left: auto; margin-right: auto; }
  
  /* ---- Solutions / feature cards ---- */
  .aj-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
  .aj-card {
    background: #fff; border: 1px solid var(--aj-border); border-radius: 16px;
    padding: 28px; transition: transform .2s var(--aj-ease-out), border-color .2s var(--aj-ease-out), background-color .2s var(--aj-ease-out);
    text-decoration: none; color: inherit; display: block;
  }
  .aj-card:hover { transform: translateY(-3px); border-color: var(--lx-primary-30); background: var(--lx-primary-5); }
  .aj-card-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--aj-blue-soft); color: var(--aj-blue);
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
  }
  .aj-card p { margin: 10px 0 0; font-size: 1rem; line-height: 1.6; color: var(--aj-muted); }
  
  /* ---- What you get: sticky aside + cards that stack on scroll ---- */
  .aj-get { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 64px; align-items: start; margin-top: 8px; }
  .aj-get-aside { position: sticky; top: 120px; align-self: start; }
  .aj-get-aside .aj-h2 { margin-top: 4px; }
  .aj-get-aside .aj-lead { margin-top: 18px; max-width: 460px; }
  .aj-get-aside .aj-btn-dark { margin-top: 30px; }
  
  .aj-get-stack { display: flex; flex-direction: column; gap: 24px; }
  .aj-get-card {
    position: sticky;
    display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
    min-height: 300px; padding: 36px 36px 40px;
    background: #fff; border: 1px solid var(--aj-border); border-radius: 24px;
  }
  /* staggered stick points: each prior card's top edge peeks behind the next */
  .aj-get-card:nth-child(1) { top: 110px; }
  .aj-get-card:nth-child(2) { top: 126px; }
  .aj-get-card:nth-child(3) { top: 142px; }
  .aj-get-card:nth-child(4) { top: 158px; }
  .aj-get-card:nth-child(5) { top: 174px; }
  .aj-get-card:nth-child(6) { top: 190px; }
  .aj-get-card-icon { color: var(--aj-ink); line-height: 0; }
  .aj-get-card-icon svg { width: 40px; height: 40px; stroke-width: 1.5; }
  .aj-get-card-body h3 { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--aj-ink); }
  .aj-get-card-body p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--aj-muted); }
  @media (prefers-reduced-motion: reduce) {
    .aj-get-aside, .aj-get-card { position: static; }
  }
  
  /* ---- Platform: three stage cards, each with a product mockup ---- */
  .aj-layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
  .aj-layer {
    display: flex; flex-direction: column;
    padding: 30px 28px 32px;
    border: 1px solid var(--aj-border); border-radius: 16px; background: #fff;
    transition: border-color 150ms var(--aj-ease-out);
  }
  .aj-layer:hover { border-color: var(--lx-primary-30); }
  .aj-layer-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .aj-layer-title { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--aj-ink); }
  .aj-layer-stage { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lx-text-3); white-space: nowrap; }
  .aj-layer-desc { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: var(--aj-muted); }
  
  /* Mockup panel (decorative, aria-hidden in markup) */
  .aj-mock { margin-top: 24px; padding: 16px; border: 1px solid var(--aj-border); border-radius: 12px; background: var(--aj-bg-light); }
  
  /* Stage 1: building-model input panel */
  .aj-mock-bar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--aj-border); }
  .aj-mock-ico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--aj-blue-soft); color: var(--aj-blue); }
  .aj-mock-pill { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--aj-ink); border-radius: 9999px; padding: 7px 14px; }
  .aj-mock-label { margin: 16px 0 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lx-text-3); }
  .aj-mock-rows { display: flex; flex-direction: column; gap: 8px; }
  .aj-mock-row { font-size: 14px; color: var(--aj-body); background: #fff; border: 1px solid var(--aj-border); border-radius: 10px; padding: 11px 14px; }
  
  /* Stage 2: risk readout with status badges + risk-type chips */
  .aj-mock-tiles { display: flex; gap: 8px; }
  .aj-mock-tile { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; }
  .aj-mock-tile.ok   { background: var(--lx-success-10); color: var(--lx-success); }
  .aj-mock-tile.info { background: var(--lx-info-10);    color: var(--lx-info); }
  .aj-mock-tile.warn { background: var(--lx-warning-10); color: var(--lx-warning); }
  .aj-mock-lines { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
  .aj-mock-lines span { height: 8px; border-radius: 9999px; background: var(--lx-border-dark); }
  .aj-mock-lines span:first-child { width: 100%; }
  .aj-mock-lines span:last-child  { width: 62%; }
  .aj-mock-badges { display: flex; flex-wrap: wrap; gap: 8px; }
  .aj-mock-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; border-radius: 9999px; padding: 5px 11px; }
  .aj-mock-badge.ok   { background: var(--lx-success-10); color: var(--lx-success); }
  .aj-mock-badge.warn { background: var(--lx-warning-10); color: var(--lx-warning); }
  .aj-mock-dot { width: 7px; height: 7px; border-radius: 9999px; background: currentColor; flex-shrink: 0; }
  .aj-mock-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--aj-border); }
  .aj-mock-chips span { font-size: 12px; color: var(--aj-muted); background: #fff; border: 1px solid var(--aj-border); border-radius: 9999px; padding: 5px 11px; }
  
  /* Stage 3: report preview with calculation trail */
  .aj-mock-doc { padding: 0; overflow: hidden; }
  .aj-mock-chrome { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--aj-border); background: #fff; }
  .aj-mock-dots { display: inline-flex; gap: 6px; }
  .aj-mock-dots i { width: 10px; height: 10px; border-radius: 9999px; }
  .aj-mock-dots i:nth-child(1) { background: var(--lx-error-100); }
  .aj-mock-dots i:nth-child(2) { background: var(--lx-warning-100); }
  .aj-mock-dots i:nth-child(3) { background: var(--lx-success-100); }
  .aj-mock-file { font-size: 12px; color: var(--lx-text-3); font-family: "JetBrains Mono", monospace; }
  .aj-mock-code { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 16px; font-family: "JetBrains Mono", monospace; font-size: 12.5px; line-height: 1.7; }
  .aj-mock-ln { color: var(--lx-text-4); text-align: right; user-select: none; }
  .aj-mock-cl { color: var(--aj-body); white-space: nowrap; }
  .aj-mock-cl em { font-style: normal; font-weight: 500; color: var(--aj-blue); }
  .aj-mock-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--aj-border); }
  .aj-mock-run { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: #fff; background: var(--aj-ink); border-radius: 9999px; padding: 7px 14px; }
  .aj-mock-link { font-size: 12.5px; font-weight: 500; color: var(--aj-blue); }
  
  /* ---- Workflow timeline ---- */
  /* ---- How-it-works flow: numbered cards + chevron connector capsules ---- */
  .aj-flow { display: flex; align-items: stretch; gap: 6px; margin-top: 48px; }
  .aj-flow-step {
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
    min-height: 280px; padding: 30px 28px;
    background: #EEF0F5; border-radius: 24px;
  }
  .aj-flow-num {
    font-size: clamp(40px, 4vw, 54px); font-weight: 600; line-height: 1;
    color: var(--aj-ink); letter-spacing: -0.02em;
  }
  .aj-flow-body h4 { margin: 0 0 8px; font-size: 19px; font-weight: 600; color: var(--aj-ink); letter-spacing: -0.01em; }
  .aj-flow-body p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--aj-muted); }
  .aj-flow-arrow {
    flex: 0 0 auto; align-self: center;
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 66px; border-radius: 999px;
    background: #fff; border: 1px solid var(--aj-border); color: var(--lx-text-4);
  }
  .aj-flow-arrow svg { width: 18px; height: 18px; }
  
  /* ---- FAQ ---- */
  .aj-faq { max-width: 820px; margin: 48px auto 0; }
  .aj-faq details { border-bottom: 1px solid var(--aj-border); padding: 6px 0; }
  .aj-faq summary {
    list-style: none; cursor: pointer; padding: 18px 0;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    font-size: 17px; font-weight: 600; color: var(--aj-ink);
  }
  .aj-faq summary::-webkit-details-marker { display: none; }
  .aj-faq summary .aj-faq-ico { transition: transform .2s ease; color: var(--aj-muted); flex-shrink: 0; }
  .aj-faq details[open] summary .aj-faq-ico { transform: rotate(45deg); }
  .aj-faq-answer { padding: 0 0 20px; font-size: 1rem; line-height: 1.65; color: var(--aj-muted); max-width: 700px; }
  
  /* ---- FAQ — two-column accordion (ajuni-style) ---- */
  .aj-faq2 { display: grid; grid-template-columns: 1fr; gap: 48px; }
  .aj-faq2-aside { }
  .aj-faq2-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--color-primary);   /* brand primary #2F50E4 */
  }
  .aj-faq2-eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 9999px; background: var(--aj-blue); }
  .aj-faq2-title { margin: 20px 0 0; font-size: clamp(28px, 5vw, 36px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--aj-ink); }
  .aj-faq2-lead { margin: 20px 0 0; max-width: 24rem; font-size: 16px; line-height: 1.5; color: var(--aj-muted); }
  .aj-faq2-lead a { color: var(--aj-blue); }
  
  .aj-faq2-item { border-bottom: 1px solid var(--aj-border); }
  .aj-faq2-row {
    width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    text-align: left; background: transparent; border: 0; cursor: pointer; padding: 20px 0; margin: 0; font: inherit;
  }
  .aj-faq2-q { flex: 1 1 auto; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.5; color: var(--aj-ink); }
  .aj-faq2-chip {
    flex-shrink: 0; width: 32px; height: 32px; margin-top: 2px; border-radius: 9999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--aj-ink); color: #fff;
    transition: background-color .3s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .aj-faq2-row[aria-expanded="true"] .aj-faq2-chip { background: var(--aj-blue); }
  .aj-faq2-ico-close { display: none; }
  .aj-faq2-row[aria-expanded="true"] .aj-faq2-ico-plus { display: none; }
  .aj-faq2-row[aria-expanded="true"] .aj-faq2-ico-close { display: inline-block; }
  .aj-faq2-row:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(47, 80, 228, 0.3); border-radius: 6px; }
  
  .aj-faq2-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(0.32, 0.72, 0, 1); }
  .aj-faq2-panel.is-open { grid-template-rows: 1fr; }
  .aj-faq2-panel > div { overflow: hidden; min-height: 0; }
  .aj-faq2-answer { margin: 0; padding: 0 3.5rem 24px 0; font-size: 14px; line-height: 1.6; color: var(--aj-muted); }
  .aj-faq2-answer a { color: var(--aj-blue); }
  .aj-faq2-answer strong { color: var(--aj-body); }
  
  @media (min-width: 980px) {
    .aj-faq2 { grid-template-columns: 400px 1fr; gap: 80px; }
    .aj-faq2-aside { position: sticky; top: 110px; align-self: start; }
  }
  
  /* ---- Responsive ---- */
  @media (max-width: 980px) {
    .aj-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .aj-stats { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
    .aj-cards { grid-template-columns: 1fr; }
    .aj-layers { grid-template-columns: 1fr; }
    .aj-flow { flex-direction: column; gap: 12px; }
    .aj-flow-step { min-height: 0; gap: 24px; }
    .aj-flow-arrow { transform: rotate(90deg); }
    .aj-get { grid-template-columns: 1fr; gap: 36px; }
    .aj-get-aside { position: static; }
    .aj-get-card { position: static; min-height: 0; gap: 28px; padding: 30px 28px 32px; }
    .aj-section { padding: 64px 0; }
  }
  @media (max-width: 560px) {
    .aj-stats { grid-template-columns: 1fr 1fr; }
  }
  
  /* =======================================================================
  LEGACY → ajuni compatibility. Makes pages still on the old class system
  (.section / .h-display / .hero-eyebrow / Tailwind indigo utils) inherit
  the flat, weight-500, royal-blue ajuni look without per-line rewrites.
  ======================================================================= */
  /* ajuni headings are medium weight, not bold */
  .h-display { font-weight: 500; letter-spacing: -0.02em; }
  /* Kill the old indigo→amber gradient text; use a solid royal-blue accent */
  .h-display .gradient,
  .h-display .accent {
    background: none !important;
    -webkit-text-fill-color: currentColor;
    color: var(--lx-primary) !important;
  }
  /* Remap legacy Tailwind indigo/violet utilities onto the Lumex primary */
  .text-indigo-600, .text-indigo-700, .text-violet-600 { color: var(--lx-primary) !important; }
  .bg-indigo-600, .bg-violet-600 { background-color: var(--lx-primary) !important; }
  /* Legacy section headings used Tailwind bold — soften to ajuni medium */
  .section h2.text-4xl, .section h2.text-3xl { font-weight: 500; letter-spacing: -0.015em; }
  /* Flat: neutralise the old card/mock drop intent (borders carry structure) */
  .mock { box-shadow: none !important; }
  
  /* ── Legal pages (Privacy, Terms, Cookies, Data Deletion) ── */
  .legal-hero { padding: 64px 28px 8px; }
  .legal-dates {
    display: inline-flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center;
    margin-top: 18px; font-size: 13px; color: var(--color-text-subtle);
    font-family: 'JetBrains Mono', monospace;
  }
  .legal-dates span { display: inline-flex; align-items: center; gap: 6px; }
  .legal-prose { max-width: 760px; }
  .legal-sec { padding: 50px 0 0; }
  .legal-sec:first-child { padding-top: 8px; }
  .legal-sec h2 {
    font-size: 32px; font-weight: 400; letter-spacing: -0.01em;
    color: var(--lx-heading);
    display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px;
  }
  .legal-num { display: none; }
  .legal-sec p, .legal-sec li { color: var(--lx-text-1); font-size: 16px; font-weight: 400; line-height: 1.7; }
  .legal-sec p { margin: 0 0 12px; }
  .legal-sec p:last-child { margin-bottom: 0; }
  .legal-sec ul { margin: 0 0 12px; padding-left: 20px; }
  .legal-sec li { margin-bottom: 6px; }
  .legal-sec a { color: var(--color-primary); font-weight: 500; }
  .legal-sec strong { color: var(--color-text); }
  /* Two-column legal layout: sticky title aside (left) + prose (right) */
  .legal-layout { display: grid; grid-template-columns: 3fr 7fr; column-gap: 100px; align-items: start; }
  .legal-layout .legal-prose { max-width: none; }
  .legal-aside { position: sticky; top: 100px; }
  .legal-aside h1 { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; color: var(--color-text); margin: 0 0 14px; }
  .legal-updated { font-size: 14px; color: var(--color-text-muted); margin: 0; }
  @media (max-width: 980px) { .legal-layout { grid-template-columns: 1fr; gap: 28px; } .legal-aside { position: static; } }
  .legal-callout {
    background: var(--color-bg-subtle); border: 1px solid var(--color-border);
    border-radius: 12px; padding: 16px 18px; margin: 4px 0 12px;
  }
  .legal-contact {
    background: none; border: 0; border-radius: 0; padding: 0;
    font-size: 16px; line-height: 1.7; color: var(--lx-text-1);
  }
  .legal-steps { counter-reset: step; list-style: none; padding-left: 0; }
  .legal-steps li { position: relative; padding-left: 40px; margin-bottom: 14px; }
  .legal-steps li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: -2px;
    width: 26px; height: 26px; border-radius: 999px;
    background: var(--color-primary); color: white;
    font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
  }
  
  /* Mobile nav — full-screen overlay menu (shown under the md breakpoint) */
  .marketing-nav-mobile {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    padding: 14px 18px 30px;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .marketing-nav-mobile.show { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  body.mkt-menu-open { overflow: hidden; }

  .marketing-nav-mobile-head {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 44px;
  }
  .marketing-nav-mobile-close {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-text);
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
  }
  .marketing-nav-mobile-close:hover { background: var(--color-bg-muted); }

  .marketing-nav-mobile-links { display: flex; flex-direction: column; margin-top: 24px; flex: 1 1 auto; }
  .marketing-nav-mobile-links > a {
     display: block;
    padding: 14px 2px;
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
  }
  .marketing-nav-mobile-links > a:last-child { border-bottom: 0; }
  .marketing-nav-mobile-links > a.is-active { font-weight: 700; }

  .marketing-nav-mobile-cta { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 24px; }
  
  .padding-block-mobile { padding-block: 0 100px; }
  .section.padding-block-100 { padding-block: 100px; }
  @media (max-width:575px){
    .padding-block-mobile { padding-block: 0 50px; }
    .section.padding-block-100 { padding-block: 60px; }
    .footer .container { padding-left: 0; padding-right: 0; }
    
    .footer-legal {
      display: flex;
      gap: 0px;
      flex-wrap: wrap;
      flex-direction: row;
      align-items: center;
      column-gap: 20px;
      justify-content: center;
    }
    .footer-copy{
      text-align: center;
    }
  }