/* ============================================================
 * Accadema · Public marketing mockups
 * Shared brand stylesheet — design tokens + reusable components
 *
 * Sourced from accadema-design-manual.html §04/§05/§06/§07/§24/§34
 * Marketing navbar = §15, Hero = §16, KPI tiles = §17, Footer = §24
 * Container width matrix = §31, Module identity = §26
 * ============================================================ */

/* ---------- 1. Design tokens (§04 + §34) ---------- */
:root {
  --primary: #0f172a;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;

  --accent: #3b82f6;
  --accent-hover: #2563eb;

  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  --hero-grad: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 100%);
  --code-bg: #f1f5f9;

  --r-sharp: 2px;
  --r-md: 4px;

  /* Typography — canonical stack + line-heights per §05 + §34 of accadema-design-manual.html */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: Monaco, 'Courier New', monospace;
  --line-body:    1.7;     /* body, paragraphs (§05 rule) */
  --line-tight:   1.25;    /* headings (§05 rule) */
  --line-display: 1.1;     /* Display 1 only (§05 type scale) */

  /* Per-module accents (§26 register; from module-icons.md) */
  --atena-from: #30b7d6;
  --atena-to:   #1e95b0;

  --tenant-primary: var(--primary);
}

/* ---------- 2. Base reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; }
@supports not (scrollbar-gutter: stable) { html { overflow-y: scroll; } }

body {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: var(--line-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Headings: weight 600–700, color --primary, line-height --line-tight (§05 rule). */
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--primary); line-height: var(--line-tight); }
/* Display variants. `display-1` = big bold marketing display (700, per §05 Display 1 spec).
 * `display-2/-3` are LIGHT (300) section-display heads — mirrors the Bootstrap `.display-5/-6`
 * pattern used in the original `index27.html` reference; gives marketing section heads an
 * elegant, airy feel distinct from product-page section h2s (which stay 600 per §05 rule). */
.display-1 { font-size: clamp(2.4rem, 4.6vw, 4rem);    font-weight: 700; letter-spacing: -.02em;  line-height: var(--line-display); }
.display-2 { font-size: clamp(1.85rem, 4.5vw, 3.2rem); font-weight: 300; letter-spacing: -.02em;  line-height: var(--line-tight); }
.display-3 { font-size: clamp(1.65rem, 3.5vw, 2.4rem); font-weight: 300; letter-spacing: -.015em; line-height: var(--line-tight); }
.lead-xl { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--text); font-weight: 400; max-width: 64ch; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
a.link-quiet { color: var(--text); }
a.link-quiet:hover { color: var(--primary); }

code, .mono { font-family: var(--font-mono); font-size: .85em; }
code { background: var(--code-bg); padding: .1rem .35rem; border-radius: var(--r-sharp); color: var(--primary); }

/* ---------- 3. Container width matrix (§31) ---------- */
.container { width: 100%; padding-left: 1rem; padding-right: 1rem; margin-left: auto; margin-right: auto; }
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }
@media (min-width: 1440px) { .container { max-width: 1440px; } }
@media (min-width: 1600px) { .container { max-width: 1600px; } }
@media (min-width: 1920px) { .container { max-width: 1680px; } }
@media (min-width: 2560px) { .container { max-width: 1840px; } }

/* ---------- 4. Marketing navbar (§15) — matches index27 dimensions ---------- */
/* Default: transparent, sits inside cosmic hero card */
.nav-bar {
  position: relative; z-index: 100;
  padding: 1.5rem 0;    /* index27 parity */
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease, padding .2s ease;
}
/* Nav uses container-fluid: spans full width of parent (hero card or page), no max-width cap (index27 pattern §15) */
.nav-bar > .container {
  max-width: none;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1200px) { .nav-bar > .container { padding-left: 2rem; padding-right: 2rem; } }
/* Sticky variant — pinned to viewport top after scroll, glassmorphic on light bg */
.nav-bar.is-sticky {
  position: fixed; top: 0; left: 30px; right: 30px;
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .35);
  border-top: 0;
  box-shadow: 0 8px 32px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255, 255, 255, .55);
  padding: .75rem 0;
}
@supports not (backdrop-filter: blur(24px)) {
  .nav-bar.is-sticky { background: rgba(255, 255, 255, .96); }
}
@media (max-width: 768px) { .nav-bar.is-sticky { left: 0; right: 0; border-left: 0; border-right: 0; } }
/* Light variant — for subpages where there is no cosmic hero */
.nav-bar.is-light {
  position: relative;
  background: var(--bg-alt);  /* match page-head outer bg — seamless visual flow into dark inset card below */
  /* border-bottom removed */
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; }
.nav-brand {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 800; font-size: 1.85rem;   /* index27 .brand-full parity */
  letter-spacing: -.5px;
  color: #fff; text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
}
.nav-brand:hover, .nav-brand:focus {
  color: #fff;  /* canonical wordmark: never recolor on hover */
  text-decoration: none;
}
.nav-brand-short { display: none; font-size: 2rem; }  /* index27 .brand-short sticky parity */
.nav-bar.is-sticky .nav-brand, .nav-bar.is-light .nav-brand { color: var(--primary); }
.nav-bar.is-sticky .nav-brand:hover, .nav-bar.is-sticky .nav-brand:focus,
.nav-bar.is-light .nav-brand:hover, .nav-bar.is-light .nav-brand:focus { color: var(--primary); text-decoration: none; }
.nav-bar.is-sticky .nav-brand-long { display: none; }
.nav-bar.is-sticky .nav-brand-short { display: inline; }

/* Nav menu pushed RIGHT (index27 pattern: brand-left, everything else right via margin-left:auto) */
/* index27 parity: Bootstrap navbar uses zero gap between .nav-item; spacing comes from nav-link padding only */
.nav-menu {
  display: flex; gap: 0; align-items: center;
  list-style: none; margin: 0 0 0 auto; padding: 0;
}
.nav-menu .nav-item { position: relative; }
.nav-menu .nav-link {
  display: inline-flex; align-items: center;
  padding: .5rem 1rem;       /* index27 parity */
  font-size: 1rem; font-weight: 500;
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  border-radius: var(--r-sharp);
  transition: color .15s;
  background: transparent; border: 0; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.nav-menu .nav-link:hover,
.nav-menu .nav-link:focus { color: #fff; background: transparent; text-decoration: none; }
.nav-bar.is-sticky .nav-menu .nav-link,
.nav-bar.is-light .nav-menu .nav-link { color: var(--text-muted); }
.nav-bar.is-sticky .nav-menu .nav-link:hover,
.nav-bar.is-light .nav-menu .nav-link:hover { color: var(--primary); background: transparent; }
/* Active page indicator — dark nav (default, inside hero card): white text + subtle pill.
 * Sticky / `.is-light` nav (light bg): dark text + subtle dark pill. The pre-v1.17 rule had only
 * `color: var(--primary)` which is near-black and invisible on the dark nav-bar. */
.nav-menu .nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}
.nav-bar.is-sticky .nav-menu .nav-link.is-active,
.nav-bar.is-light .nav-menu .nav-link.is-active {
  color: var(--primary);
  background: rgba(15, 23, 42, .06);
}
/* Hide the chevron icons inside nav-link triggers — they were creating visual density */
.nav-menu .nav-link > i.fa-chevron-down { display: none; }

/* ---------- Mega menu — full-overlay (click-triggered, Clarivate-style) ----------
 * Each `.nav-mega` is a viewport-filling overlay with a 30px inset matching the hero-card
 * gutter. Triggered by CLICK on its parent `.nav-link` (hover behaviour removed). One mega
 * may be open at a time; opening another closes the previous; clicking the same trigger
 * toggles closed; Escape closes; click outside the overlay closes.
 *
 * `body.mega-open` flips the navbar colours (brand wordmark + Sign in + Contact) from
 * light-on-dark to dark-on-light because the white overlay sits behind the navbar (z-index
 * 1000 vs nav-bar 1100), so the dark cosmic surface is masked. The X close button lives at
 * top-right of the overlay; JS injects it into every `.nav-mega` on page load. */
.nav-bar { position: relative; }
.nav-item.has-mega { position: static; }

/* Overlay sits ABOVE the navbar (z-index 1200 > navbar 1100). Covers the viewport with side
 * + bottom 30px gutters; top edge is at 0 so the dark cosmic surface behind the navbar does
 * NOT bleed through. The overlay has its own top strip (brand wordmark + close X) — a "white
 * navbar replica" — so the dark navbar is naturally hidden underneath without needing CSS
 * transparency tricks on the inset hero card.
 *
 * Layer order: backdrop 999 → page content 0 → navbar 1100 (hidden) → overlay 1200 (visible). */
.nav-mega {
  position: fixed;
  top: 0;
  left: 30px;
  right: 30px;
  bottom: 30px;
  background: var(--bg);                /* opaque white */
  border: 1px solid var(--border);
  border-top: 0;                       /* viewport edge — no border line at the very top */
  border-radius: 0 0 var(--r-sharp) var(--r-sharp);
  box-shadow: 0 30px 80px rgba(15, 23, 42, .18),
              0 1px 3px  rgba(15, 23, 42, .05);
  z-index: 1200;
  overflow-y: auto;
  /* Opacity stays at 1 once visible — animating opacity made the overlay read as a dim layer
   * during the entrance because the user always saw a moment with 0 < opacity < 1. Visibility
   * is the discrete on/off; transform handles the visual entrance (slide-up). No scale (that
   * blurred text). No opacity transition (that read as a translucent overlay). */
  opacity: 1;
  visibility: hidden;
  transform: translateY(8px);
  transition: visibility 0s linear .22s,
              transform .22s cubic-bezier(.2,.6,.2,1);
  pointer-events: none;
}
.nav-mega.is-open {
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: visibility 0s linear 0s,
              transform .22s cubic-bezier(.2,.6,.2,1);
}
@media (max-width: 768px) {
  .nav-mega { left: 12px; right: 12px; bottom: 12px; }
}
@media (max-width: 575.98px) {
  .nav-mega { left: 0; right: 0; bottom: 0; border: 0; border-radius: 0; }
}

/* Overlay top strip — injected by JS into each `.nav-mega`. Replaces the dark navbar visually
 * (overlay z-index 1200 > navbar 1100, so navbar is hidden underneath). Brand wordmark left +
 * close X right, dark-on-white. Pinned to the top of the overlay; padding mirrors the cosmic
 * navbar's height so the layout feels continuous when the user clicks a trigger. */
.nav-mega-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}
@media (max-width: 768px) { .nav-mega-header { padding: 1.1rem 1.25rem; } }
.nav-mega-brand {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -.4px;
  color: var(--primary);
}
.nav-mega-close {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sharp);
  color: var(--primary);
  font-size: .95rem;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.nav-mega-close:hover,
.nav-mega-close:focus-visible {
  background: var(--bg-alt);
  border-color: var(--primary);
  outline: none;
}
@media (max-width: 768px) { .nav-mega-close { width: 38px; height: 38px; } }

/* No `.mega-backdrop` element. The overlay covers the viewport with side+bottom 30px gutters;
 * the dark hero / page-head card visible through those gutters already reads as "outside the
 * menu" without an extra dim layer. (Previous backdrop attempts stacked above the overlay
 * because `.hero-content { z-index: 2 }` trapped overlay z-index inside that parent context.) */

/* Body scroll lock + navbar hidden when an overlay is open. Reason: the navbar sits inside
 * `.hero-content { z-index: 2 }` (and on subpages inside `.page-head > .container { position:
 * relative }`), which traps nav-mega's z-index inside that parent stacking context. Even with
 * `.nav-mega { z-index: 1200 }` and `.nav-bar { z-index: 1100 }`, the body-level comparison
 * is hero-content's z=2 vs `.mega-backdrop` z=999, so the backdrop renders above the entire
 * hero-content stack — covering the overlay. JS moves `.nav-mega` to body root (so its z-index
 * 1200 lands at body level above backdrop), and we hide the navbar entirely while open so the
 * overlay's own brand+close strip is the only chrome visible. Cleaner than colour-flip tricks. */
body.mega-open { overflow: hidden; }
body.mega-open .nav-bar { visibility: hidden; pointer-events: none; }

/* Inner content of the overlay — generous canvas. Left links columns + right thematic panel.
 * Larger gap + larger padding than the old dropdown variant, because the overlay now has
 * full viewport height to work with. */
.nav-mega-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}
@media (min-width: 1440px) { .nav-mega-inner { max-width: 1440px; padding: 4rem 3rem 3.5rem; gap: 5rem; } }
@media (min-width: 1600px) { .nav-mega-inner { max-width: 1600px; } }
@media (min-width: 1920px) { .nav-mega-inner { max-width: 1680px; } }
@media (min-width: 2560px) { .nav-mega-inner { max-width: 1840px; } }
@media (max-width: 991.98px) {
  .nav-mega-inner { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.5rem; }
}
.nav-item.has-mega.mega-2 .nav-mega-inner { grid-template-columns: 1.4fr 1.4fr 1fr; }
.nav-item.has-mega.mega-3 .nav-mega-inner { grid-template-columns: 1fr 1fr 1fr 1.1fr; }
.nav-item.has-mega.mega-4 .nav-mega-inner { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991.98px) {
  .nav-item.has-mega.mega-2 .nav-mega-inner,
  .nav-item.has-mega.mega-3 .nav-mega-inner,
  .nav-item.has-mega.mega-4 .nav-mega-inner { grid-template-columns: 1fr; }
}

.nav-mega-col h6 {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); font-weight: 700;
  margin: 0 0 1.25rem;
  padding-bottom: .75rem; border-bottom: 1px solid var(--border);
}
.nav-mega-col h6:not(:first-child) { margin-top: 2rem; }
.nav-mega-col .nav-mega-link + .nav-mega-link { margin-top: .25rem; }
.nav-item.has-mega.mega-3 .nav-mega-col:first-child .nav-mega-link {
  display: grid; grid-template-columns: auto 1fr; align-items: start;
}
/* On Products mega, list applications in a 2-col grid inside the first col */
.nav-mega-col.col-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 .5rem;
}
.nav-mega-col.col-grid-2 h6 { grid-column: 1 / -1; }

.nav-mega-link {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: .6rem .65rem; border-radius: var(--r-sharp);
  color: var(--text); text-decoration: none;
  transition: background .12s, color .12s;
}
.nav-mega-link:hover { background: var(--bg-alt); color: var(--primary); text-decoration: none; }
.nav-mega-link .mega-ico {
  width: 38px; height: 38px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-sharp);
  color: var(--primary); font-size: .95rem;
  transition: background .12s, color .12s, border-color .12s;
}
.nav-mega-link:hover .mega-ico { background: var(--primary); color: #fff; border-color: var(--primary); }
.nav-mega-link.mega-athena .mega-ico { background: #f8fbff; color: var(--accent); border-color: #dbeafe; }
.nav-mega-link.mega-athena:hover .mega-ico { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Atena module mark in navbar mega — canonical brand presence (white circle on cyan-teal
 * gradient, mirroring `apps/Atena/kiosk/favicon.svg` and `.mod-mark-atena` on module tiles).
 * Without this rule Atena rendered as a neutral generic mega-ico in the Platform mega,
 * which broke unified brand identity across surfaces (per module-icons.md registry). */
.nav-mega-link.mega-atena .mega-ico {
  background: linear-gradient(135deg, var(--atena-from), var(--atena-to));
  color: #fff;
  border-color: transparent;
}
.nav-mega-link.mega-atena:hover .mega-ico {
  background: linear-gradient(135deg, var(--atena-from), var(--atena-to));
  color: #fff;
  border-color: transparent;
  filter: brightness(1.08);
}
.nav-mega-link .mega-body { min-width: 0; }
.nav-mega-link .mega-title { display: block; font-size: .92rem; font-weight: 600; color: var(--primary); line-height: 1.3; }
.nav-mega-link .mega-desc { display: block; font-size: .78rem; color: var(--text-muted); line-height: 1.45; margin-top: .15rem; }

/* Featured panel — right column of the overlay. Book proportions (~2:3 portrait), dark cosmic
 * gradient + CSS star-field background, light text. The "book" framing intentionally contrasts
 * with the bright, type-led mega body — it's the featured story / CTA for that nav category.
 * Stars are pure CSS (multiple radial gradients) — no canvas, no image, no JS. Subtle accent
 * glow at top-right adds depth without distraction. */
.nav-mega-feature {
  position: relative;
  background:
    radial-gradient(500px circle at 80% 0%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(420px circle at 10% 100%, rgba(139,92,246,.16), transparent 60%),
    var(--hero-grad);
  color: rgba(255,255,255,.85);
  padding: 2.5rem 1.75rem 2rem;
  border-radius: var(--r-sharp);
  display: flex; flex-direction: column; gap: 1rem;
  overflow: hidden;
  /* Book aspect — taller-than-wide but compact; v1.36 reduced from 2/3 + 520 to 3/4 + 380
   * so the feature does not dominate the overlay and the bottom strip has breathing room. */
  aspect-ratio: 3 / 4;
  min-height: 380px;
}
/* Star field — pure CSS via stacked tiny radial gradients. Two layers for parallax-like depth:
 * smaller dim stars + brighter highlight stars. Position pseudo-randomly placed across the panel. */
.nav-mega-feature::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 18%, rgba(255,255,255,.7),  transparent 60%),
    radial-gradient(1px 1px   at 50% 12%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(2px 2px   at 80% 25%, rgba(255,255,255,.8),  transparent 60%),
    radial-gradient(1px 1px   at 30% 45%, rgba(255,255,255,.5),  transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(1px 1px   at 20% 75%, rgba(255,255,255,.5),  transparent 60%),
    radial-gradient(2px 2px   at 85% 88%, rgba(255,255,255,.7),  transparent 60%),
    radial-gradient(1px 1px   at 40% 92%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 60% 35%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px   at 10% 55%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(2px 2px   at 92% 50%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(1px 1px   at 35% 22%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 70%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px   at 25% 30%, rgba(255,255,255,.5),  transparent 60%),
    radial-gradient(1px 1px   at 55% 80%, rgba(255,255,255,.55), transparent 60%);
  pointer-events: none;
  opacity: .85;
}
.nav-mega-feature > * { position: relative; z-index: 1; }

.nav-mega-feature .feature-eyebrow {
  font-family: var(--font-mono);
  font-size: .68rem; text-transform: uppercase; letter-spacing: .14em;
  color: rgba(255,255,255,.55); font-weight: 500;
}
.nav-mega-feature .feature-title {
  font-size: 1.35rem; font-weight: 600; color: #fff;
  line-height: 1.25; letter-spacing: -.015em;
  margin: .35rem 0 .5rem;
}
.nav-mega-feature p {
  color: rgba(255,255,255,.72);
  font-size: .9rem; line-height: 1.6; margin: 0;
}
/* Optional "key facts" strip inside the feature panel — small mono bullets that read as a
 * book's back-cover blurb. Used where the mega has a concrete data point to anchor the story. */
.nav-mega-feature .feature-facts {
  display: flex; flex-direction: column; gap: .45rem;
  margin-top: .5rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255,255,255,.18);
}
.nav-mega-feature .feature-facts li {
  list-style: none;
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .04em;
  color: rgba(255,255,255,.68);
  display: flex; align-items: baseline; gap: .55rem;
}
.nav-mega-feature .feature-facts li::before {
  content: "·";
  color: var(--accent);
  font-weight: 700;
}
.nav-mega-feature .feature-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: auto;
  padding-top: 1.25rem;
  color: #fff; font-weight: 600; font-size: .9rem;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,.14);
  transition: gap .15s ease;
}
.nav-mega-feature .feature-cta:hover { color: #fff; gap: .55rem; text-decoration: none; }
.nav-mega-feature .feature-cta i { font-size: .72rem; transition: transform .2s ease; }
.nav-mega-feature .feature-cta:hover i { transform: translateX(3px); }
/* Secondary link below CTA (e.g. "See all products" under Platform mega's Athena feature) */
.nav-mega-feature .feature-secondary {
  margin-top: .65rem;
  font-size: .75rem;
  color: rgba(255,255,255,.55);
}
.nav-mega-feature .feature-secondary a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
}
.nav-mega-feature .feature-secondary a:hover { color: #fff; text-decoration: none; }

/* Mobile / tablet — feature panel drops book proportions, stacks naturally below nav links */
@media (max-width: 991.98px) {
  .nav-mega-feature {
    aspect-ratio: auto;
    min-height: auto;
    padding: 2rem 1.5rem;
  }
}

/* Footer strip inside mega panel */
.nav-mega-footer {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .85rem;
}
.nav-mega-footer .mega-footer-link {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--primary); font-weight: 600; text-decoration: none;
}
.nav-mega-footer .mega-footer-link:hover { color: var(--accent); }
.nav-mega-footer .mega-footer-meta { color: var(--text-muted); font-size: .82rem; }

/* v1.36 — Mega bottom strip. Spans the full width of `.nav-mega-inner` (grid-column 1/-1)
 * across all three grid cells. Fills the empty space below the link columns / feature card
 * with a value statement on the left and a mono "credential" line on the right. Intentionally
 * NOT another row of nav links — per project direction, the strip should add positioning
 * substance for a first-time visitor scanning the overlay, not enrich the existing links. */
.nav-mega-strip {
  grid-column: 1 / -1;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 2rem; flex-wrap: wrap;
}
.nav-mega-strip .strip-statement {
  flex: 1 1 0;
  min-width: 280px;
  font-size: .95rem;
  line-height: var(--line-tight, 1.35);
  color: var(--text);
  font-weight: 400;
  letter-spacing: -.005em;
  margin: 0;
}
.nav-mega-strip .strip-statement strong {
  color: var(--primary);
  font-weight: 600;
}
.nav-mega-strip .strip-meta {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: normal;
}
.nav-mega-strip .strip-meta span + span::before {
  content: " · ";
  color: var(--border);
  margin: 0 .25rem;
}
@media (max-width: 991.98px) {
  .nav-mega-strip { margin-top: 1.25rem; padding-top: 1.25rem; gap: 1rem; }
  .nav-mega-strip .strip-statement { font-size: .9rem; min-width: 0; }
  .nav-mega-strip .strip-meta { font-size: .68rem; }
}

.nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: 1rem; }
.nav-actions .btn { white-space: nowrap; }
/* Sign in button (right side) — hidden on tablet/mobile so brand + Contact + burger fit on one row.
 * Existing customers reach `auth.accadema.com` directly from a desktop or via in-product deep links. */
@media (max-width: 991.98px) {
  .nav-actions a[href*="auth.accadema.com"] { display: none; }
}

.nav-burger {
  display: none;
  background: transparent; border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: var(--r-sharp);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-bar.is-sticky .nav-burger, .nav-bar.is-light .nav-burger { color: var(--primary); border-color: rgba(15, 23, 42, .35); }

@media (max-width: 991.98px) {
  .nav-menu { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-bar.is-open .nav-menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 1rem; box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
    max-height: 80vh; overflow-y: auto;
  }
  .nav-bar.is-open .nav-menu .nav-link { color: var(--text); padding: .75rem 1rem; border-radius: var(--r-sharp); justify-content: flex-start; width: 100%; }
  .nav-bar.is-open .nav-menu .nav-link:hover { background: var(--bg-alt); color: var(--primary); }
  .nav-bar.is-open .nav-mega { position: static; box-shadow: none; border: 0; padding: .5rem 0 .75rem 1rem; min-width: 0; display: grid !important; grid-template-columns: 1fr; gap: 0; }
  .nav-bar.is-open .nav-mega-col h6 { margin-top: .75rem; }
}

/* ---------- 5. Buttons (§11) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.4rem;
  font-size: .92rem; font-weight: 600;
  border-radius: var(--r-sharp); border: 1px solid transparent;
  cursor: pointer; transition: all .15s ease;
  text-decoration: none; white-space: nowrap;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-lg { padding: .85rem 1.75rem; font-size: 1rem; }

.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: #1e293b; border-color: #1e293b; color: #fff; }

.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg-alt); border-color: var(--text-muted); color: var(--primary); }

.btn-light { background: #fff; border-color: #fff; color: var(--primary); }
.btn-light:hover { background: rgba(255, 255, 255, .92); color: var(--primary); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }

.btn-outline-light { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); color: #fff; }

.btn-ghost-light { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .25); color: #fff; }

/* ---------- 6. Sections + grid helpers ---------- */
/* More generous vertical rhythm — Elsevier-style breathing room */
.section { padding: 8rem 0; }
.section-tight { padding: 5rem 0; }
@media (max-width: 768px) { .section { padding: 4.5rem 0; } .section-tight { padding: 3.5rem 0; } }
.section-narrow > .container { max-width: 920px; }

.bg-alt { background: var(--bg-alt); }
.bg-primary-dark { background: var(--primary); color: rgba(255, 255, 255, .88); }
.bg-primary-dark h1, .bg-primary-dark h2, .bg-primary-dark h3, .bg-primary-dark h4 { color: #fff; }

.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-center { text-align: center; }
.text-end { text-align: right; }

.row { display: flex; flex-wrap: wrap; margin: 0 -.75rem; }
.row > [class*="col-"] { padding: 0 .75rem; width: 100%; }
.row.g-0 { margin: 0; } .row.g-0 > [class*="col-"] { padding: 0; }
.row.g-3 { margin: 0 -.5rem; row-gap: 1rem; } .row.g-3 > [class*="col-"] { padding: 0 .5rem; }
.row.g-4 { margin: 0 -.75rem; row-gap: 1.5rem; } .row.g-4 > [class*="col-"] { padding: 0 .75rem; }
.row.g-5 { margin: 0 -1rem; row-gap: 2rem; } .row.g-5 > [class*="col-"] { padding: 0 1rem; }

.col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-8 { flex: 0 0 66.667%; max-width: 66.667%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
}
@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-5 { flex: 0 0 41.667%; max-width: 41.667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333%; max-width: 58.333%; }
  .col-lg-8 { flex: 0 0 66.667%; max-width: 66.667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
}

.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-block { display: block; }
.d-none { display: none; }
@media (min-width: 768px) { .d-md-flex { display: flex; } .d-md-block { display: block; } .d-md-none { display: none; } }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: .75rem; } .mb-4 { margin-bottom: 1rem; } .mb-5 { margin-bottom: 1.5rem; } .mb-6 { margin-bottom: 2rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.5rem; } .mt-6 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ms-auto { margin-left: auto; }
.me-2 { margin-right: .5rem; }

/* ---------- 7. Hero — cosmic-card pattern (§16) ---------- */
/* The signature Accadema hero is a dark gradient card floating on a light page,
 * with stars, ambient glows, the navbar AND the hero content all inside the card.
 * This is the "premium" surface and is built once per page. */
.hero-cosmic {
  position: relative;
  padding: 0 0 2rem;
  background: var(--bg-alt);
  overflow: hidden;
}
.hero-wrap {
  padding: 0 30px;
  max-width: 100%;
}
@media (max-width: 768px) { .hero-wrap { padding: 0 12px; } }

.hero-inner {
  position: relative;
  background: var(--hero-grad);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-sharp);
  padding: 1rem 3rem 3rem;
  overflow: visible;  /* let mega menu break out below */
  color: #fff;
}
@media (max-width: 768px) { .hero-inner { padding: .5rem 1.25rem 2rem; } }

/* Decorative bg layer — separate so it can clip while mega menu breaks out */
.hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: var(--r-sharp);
  pointer-events: none;
  z-index: 0;
}

.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; z-index: 1; pointer-events: none; }
.hero-glow {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,.15) 0%, transparent 70%);
  border-radius: 50%; top: -200px; right: -100px;
  z-index: 0; pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}
.hero-glow.glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,.12) 0%, transparent 70%);
  top: auto; right: auto; bottom: -150px; left: -80px;
  animation-duration: 10s; animation-delay: 2s;
}
@keyframes pulse {
  0%, 100% { opacity: .5; transform: scale(1); }
  50% { opacity: .8; transform: scale(1.1); }
}

.hero-content {
  position: relative; z-index: 2;
}
.hero-content h1 { color: #fff; font-size: clamp(1.85rem, 4.5vw, 3.2rem); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; margin: 1.5rem 0 1rem; }
.hero-content .hero-lead { color: rgba(255, 255, 255, .8); font-size: 1.05rem; max-width: 68ch; }
.hero-content .hero-lead-center { margin: 0 auto 1.8rem; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: .82rem; font-weight: 600;
  border-radius: var(--r-sharp);
  backdrop-filter: blur(10px);
  transition: background .2s, border-color .2s, transform .2s;
}
.hero-badge:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); transform: translateY(-2px); }

.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-cta-center { justify-content: center; }

/* Legacy alias — kept so existing module pages render until they're rebuilt */
.hero { position: relative; padding: 8rem 0 5rem; background: var(--hero-grad); overflow: hidden; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 80% 20%, rgba(59,130,246,.15), transparent 60%), radial-gradient(500px 350px at 15% 85%, rgba(139,92,246,.12), transparent 60%); z-index: 1; pointer-events: none; }
.hero > .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2rem,5vw,3.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 1.5rem 0 1rem; }
.hero .hero-lead { color: rgba(255,255,255,.82); font-size: 1.1rem; max-width: 68ch; }
.hero .hero-lead-center { margin: 0 auto 2rem; }

/* ---------- 8. KPI tiles (§17) ---------- */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.kpi-tile {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-sharp);
  padding: 1.25rem 1rem;
  transition: background .15s, border-color .15s;
}
.kpi-tile:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .22); }
.kpi-tile .kpi-value { display: block; font-size: 1.75rem; font-weight: 700; color: #fff; letter-spacing: -.02em; margin-bottom: .15rem; }
.kpi-tile .kpi-label { display: block; font-size: .72rem; color: rgba(255, 255, 255, .65); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.kpi-tile .kpi-trend { display: flex; align-items: center; gap: .3rem; font-size: .72rem; color: #4ade80; margin-top: .45rem; }
.kpi-tile .kpi-trend.down { color: #f87171; }

.kpi-tile-light {
  background: #fff; border: 1px solid var(--border);
  padding: 1.25rem;
}
.kpi-tile-light .kpi-value { color: var(--primary); }
.kpi-tile-light .kpi-label { color: var(--text-muted); }
.kpi-tile-light .kpi-trend { color: #15803d; }

/* ---------- 9. Cards (§13) ---------- */
.card-clean {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sharp);
  padding: 2rem;
  height: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.card-clean:hover { border-color: var(--text-muted); }
.card-clean h3, .card-clean h4 { margin-bottom: .5rem; }
.card-clean p { color: var(--text-muted); margin-bottom: 0; }
.card-rule { border-left: 3px solid var(--primary); }
.card-rule-accent { border-left-color: var(--accent); }

/* Eyebrow tag */
.eyebrow {
  display: inline-block;
  padding: .25rem .65rem;
  background: rgba(15, 23, 42, .06);
  color: var(--primary);
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  border-radius: var(--r-sharp);
  margin-bottom: 1rem;
}
.eyebrow-accent { background: rgba(59, 130, 246, .08); color: var(--accent); }
.eyebrow i { margin-right: .3rem; }

/* ---------- 10. Module mark + tile ---------- */
.mod-mark {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  font-size: 1.15rem;
  border-radius: var(--r-sharp);
  flex-shrink: 0;
}
.mod-mark-sm { width: 36px; height: 36px; font-size: .95rem; }
.mod-mark-lg { width: 72px; height: 72px; font-size: 1.7rem; border-radius: var(--r-md); }
.mod-mark-atena { background: linear-gradient(135deg, var(--atena-from), var(--atena-to)); }
.mod-mark-athena { background: #fff; color: var(--accent); border: 1px solid var(--border); }

.mod-tile {
  display: flex; flex-direction: column; gap: .75rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sharp);
  text-decoration: none; color: inherit;
  height: 100%;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.mod-tile:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(15, 23, 42, .06); color: inherit; text-decoration: none; transform: translateY(-2px); }
.mod-tile-head { display: flex; align-items: flex-start; gap: .75rem; }
.mod-tile-name { font-size: 1.15rem; font-weight: 600; color: var(--primary); margin-bottom: .1rem; }
.mod-tile-tag { font-size: .72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.mod-tile p { font-size: .9rem; color: var(--text-muted); margin: 0; line-height: 1.55; }
.mod-tile-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--border); font-size: .82rem; }
.learn-more { font-weight: 600; color: var(--primary); font-size: .82rem; }

/* ---------- 11. Status pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .18rem .55rem;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  border-radius: var(--r-sharp);
}
.pill-prod   { background: #dcfce7; color: #15803d; }
.pill-design { background: #dbeafe; color: #1d4ed8; }
.pill-plan   { background: #fef3c7; color: #a16207; }
.pill-tbd    { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }
.pill-draft  { background: #f3e8ff; color: #7e22ce; }

/* ---------- 12. Lists (§14) ---------- */
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}
.list-clean li:last-child { border-bottom: 0; }
.list-clean li i { color: var(--text-muted); margin-top: .25rem; flex-shrink: 0; }

.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li {
  display: flex; align-items: flex-start; gap: .55rem;
  padding: .4rem 0;
  font-size: .92rem;
  color: var(--text);
}
.list-check li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  color: var(--success); font-size: .8rem;
  margin-top: .3rem; flex-shrink: 0;
}

/* ---------- 13. Audience cards ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.audience-card {
  display: block;
  padding: 2rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sharp);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.audience-card:hover { border-color: var(--primary); transform: translateY(-2px); color: inherit; text-decoration: none; }
.audience-card .audience-ico {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-alt); color: var(--primary);
  border-radius: var(--r-md);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.audience-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.audience-card p { color: var(--text-muted); font-size: .92rem; margin-bottom: 1rem; }
.audience-card .audience-arrow {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .85rem; font-weight: 600;
  color: var(--primary);
}

/* ---------- 13b. Use-case card (homepage abstract product reveal) ---------- */
.use-case {
  display: flex; flex-direction: column;
  height: 100%;
  padding: 2.5rem 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sharp);
  text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.use-case:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,23,42,.08); color: inherit; text-decoration: none; }
.use-case .use-case-num {
  display: inline-block;
  font-size: .75rem; font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .08em;
  font-family: var(--font-mono);
  margin-bottom: 2rem;
}
.use-case h3 { font-size: 1.5rem; margin-bottom: 1.25rem; letter-spacing: -.015em; line-height: 1.25; }
.use-case p { color: var(--text-muted); font-size: .95rem; line-height: 1.65; margin-bottom: 2rem; flex: 1; }
.use-case .use-case-cta { font-size: .85rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; }
.use-case:hover .use-case-cta { color: var(--accent); }

.use-case-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.use-case-foot a { color: var(--primary); font-weight: 600; }
.use-case-foot a:hover { color: var(--accent); }

/* ---------- 14. Insights / story cards ---------- */
.story-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sharp);
  text-decoration: none; color: inherit;
  overflow: hidden;
  height: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.story-card:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(15, 23, 42, .06); color: inherit; text-decoration: none; }
.story-card .story-thumb {
  height: 180px;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .25);
  font-size: 2.5rem;
}
.story-card .story-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.story-card .story-meta { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.story-card h4 { font-size: 1.1rem; margin: 0; line-height: var(--line-tight); }
.story-card p { font-size: .88rem; color: var(--text-muted); margin: 0; }
.story-card .story-cta { margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: .35rem; }

/* Image variant of the story-thumb — used by the article cards on /resources/insights.html
 * so each card can display its hero photograph rather than a FontAwesome icon. Image is
 * object-cover at the same 180px thumb height; tint overlay keeps text-on-image legible
 * if the card body ever overlaps on hover. */
.story-card .story-thumb-image {
  height: 180px;
  background: var(--bg-alt);
  display: block;
  overflow: hidden;
  position: relative;
}
.story-card .story-thumb-image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .35s cubic-bezier(.2,.6,.2,1);
}
.story-card:hover .story-thumb-image img { transform: scale(1.03); }

/* ---------- 14b. Insights article layout (long-form editorial under /resources/insights/) ----------
 * Editorial template used by every article page: full-bleed hero photograph at the top,
 * centered narrow column for meta + lead + body. Restraint principle applies — no gradient
 * overlays on the hero unless text sits on it (it does not — title is placed BELOW the photo).
 * Typography reflects long-form reading: 1.05rem body / 1.7 line-height / 720px column. */
/* Inset hero — mirrors the §16 cosmic-card / §19 page-head pattern. Outer wrapper carries
 * the bg-alt fill that extends edge-to-edge so the inset image floats inside a 30px gutter
 * matching the rest of the site's hero rhythm. Mobile (<768px) drops gutter to 12px; phone
 * (<576px) goes edge-to-edge. */
.article-hero {
  position: relative;
  background: var(--bg-alt);
  padding: 1.5rem 30px;
  overflow: hidden;
}
.article-hero img {
  width: 100%; height: 480px;
  object-fit: cover; display: block;
  border-radius: var(--r-sharp);
  border: 1px solid var(--border);
}
@media (max-width: 768px) {
  .article-hero { padding: 1rem 12px; }
  .article-hero img { height: 320px; }
}
@media (max-width: 575.98px) {
  .article-hero { padding: 0; }
  .article-hero img { border-radius: 0; border: 0; }
}

/* Any inline article-body image (figure.article-image) inherits the same inset rule so
 * mid-article photographs sit in the same 30px gutter as the hero. Negative horizontal
 * margin lets the figure break out of the 720px text column while keeping the same gutter. */
.article-body .article-image {
  margin: 3rem calc(-50vw + 50%);
  padding: 0 30px;
  text-align: center;
}
.article-body .article-image img {
  width: 100%;
  max-width: 1080px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--r-sharp);
  border: 1px solid var(--border);
}
.article-body .article-image figcaption {
  margin-top: .75rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}
@media (max-width: 768px) {
  .article-body .article-image { padding: 0 12px; }
}
@media (max-width: 575.98px) {
  .article-body .article-image { padding: 0; }
  .article-body .article-image img { border-radius: 0; border: 0; }
}

.article-meta {
  max-width: 760px;
  margin: 3.5rem auto 0;
  padding: 0 1.5rem;
  text-align: center;
}
.article-meta .eyebrow { display: block; margin-bottom: 1.25rem; }
.article-meta .article-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: var(--line-tight);
  letter-spacing: -.02em;
  margin: 0 0 1.5rem;
  font-weight: 600;
  color: var(--primary);
}
.article-meta .article-lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text);
  font-weight: 300;
  margin: 0 0 2rem;
}
.article-meta .article-byline {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.article-meta .article-byline span + span::before {
  content: " \00B7 ";
  margin: 0 .35rem;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin: 3rem 0 1rem;
  letter-spacing: -.01em;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 2rem 0 .75rem;
}
.article-body p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 1.25rem;
}
.article-body ul, .article-body ol {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}
.article-body li { margin-bottom: .5rem; }
.article-body strong { color: var(--primary); font-weight: 600; }
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--primary); }

/* Pull-quote — accent left border, bg-alt fill, larger weight-medium text. Used 1–2x per
 * article to break up long reading. */
.article-pullquote {
  margin: 3rem -1rem;
  padding: 2rem 2rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  font-size: 1.35rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -.01em;
}
.article-pullquote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 500;
  color: var(--text-muted);
  font-style: normal;
}

/* Fact strip — small grid of "stat / label" pairs used when the article anchors a few hard
 * numbers (deposit-gap percentages, response-time figures, etc.) */
.article-fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.article-fact-strip .fact-value {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--primary);
  line-height: 1;
}
.article-fact-strip .fact-label {
  display: block;
  margin-top: .5rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* End-of-article CTA — sits between body and footer; full-width bg-alt band with centered
 * inner column. */
.article-end-cta {
  background: var(--bg-alt);
  padding: 4rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}
.article-end-cta-inner { max-width: 720px; margin: 0 auto; }
.article-end-cta .eyebrow { margin-bottom: 1rem; display: block; }
.article-end-cta h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 1rem;
  letter-spacing: -.01em;
}
.article-end-cta p {
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 2rem;
}

/* Related articles row — sits below the end CTA on every article. Reuses .story-card. */
.article-related {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.article-related .eyebrow { margin-bottom: 1.5rem; display: block; }
.article-related h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 2.5rem;
}

/* ---------- 15. Partner / standard badges ---------- */
.partner-row {
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center;
  margin-top: 2rem;
}
.partner-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sharp);
  font-size: .82rem; font-weight: 600;
  color: var(--text);
}
.partner-chip i { color: var(--accent); }

/* ---------- 15b. Search preview (§18 on-dark hero variant) ---------- */
.search-preview {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--r-sharp);
  padding: 1rem;
  margin-top: 2rem;
  backdrop-filter: blur(10px);
}
.search-input-demo {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-sharp);
  padding: .7rem 1rem;
  color: #fff;
  font-size: .9rem;
  width: 100%;
  outline: none;
  transition: all .2s;
  font-family: inherit;
}
.search-input-demo:focus { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); }
.search-input-demo::placeholder { color: rgba(255, 255, 255, .45); }
.search-results-demo { margin-top: .75rem; }
.search-result-item {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-sharp);
  padding: .6rem .8rem;
  margin-bottom: .4rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .8);
  display: flex; align-items: center; gap: .6rem;
  transition: all .2s;
}
.search-result-item:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
.search-result-item i { color: #60a5fa; font-size: .9rem; }

/* ---------- 15c. Feature item — bordered split layout ---------- */
.feature-item {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
}
.feature-item:nth-child(odd) { border-right: 1px solid var(--border); }
@media (max-width: 768px) { .feature-item { border-right: 0 !important; } }
.feature-item .icon-simple {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  font-size: 1.1rem;
  border-radius: var(--r-sharp);
  margin-bottom: .75rem;
}

/* ---------- 16. Workflow viz (§19) ---------- */
.workflow {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem; flex-wrap: wrap;
  margin-top: 2rem;
}
.workflow .wnode {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--r-sharp);
  color: rgba(255, 255, 255, .9);
  font-size: .85rem; font-weight: 600;
}
.workflow .warrow { color: rgba(255, 255, 255, .3); font-size: .9rem; }

/* ---------- 17. CTA banner — inset dark card, structurally identical to hero pattern ---------- */
/* Pattern mirrors hero-cosmic > hero-wrap > hero-inner:
 *   outer section = light bg + vertical+horizontal padding (the 30px gutter)
 *   inner container = dark card with margin:0, fills the padded area
 * This avoids scrollbar-shift artifacts caused by margin-based positioning. */
.cta-band {
  padding: 5rem 30px;
  background: var(--bg-alt);
}
.cta-band > .container {
  background: var(--primary);
  color: rgba(255, 255, 255, .88);
  text-align: center;
  padding: 4rem 3rem;
  margin: 0;
  max-width: 100%;        /* fill the padded area; ignore container width tiers */
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-sharp);
  position: relative;
  overflow: hidden;
}
.cta-band > .container::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 350px at 75% 30%, rgba(59,130,246,.15), transparent 60%);
  pointer-events: none;
}
.cta-band > .container > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; font-size: clamp(1.65rem, 3.5vw, 2.4rem); }
.cta-band p { max-width: 60ch; margin: 0 auto 1.5rem; color: rgba(255, 255, 255, .78); }
.cta-band .cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
@media (max-width: 768px) {
  .cta-band { padding: 3rem 12px; }
  .cta-band > .container { padding: 2.5rem 1.5rem; }
}

/* ---------- 18. Footer (§24) ---------- */
.site-footer {
  padding: 5rem 0 2.5rem;
  background: var(--bg);
  color: var(--text);
}
.site-footer .footer-mark {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--primary);
  letter-spacing: -.5px;
  margin-bottom: .25rem;
}
.site-footer .footer-mark sup { font-size: 35%; font-weight: 600; }
.site-footer .footer-status { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--text-muted); margin-top: .25rem; }
.site-footer .footer-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.site-footer .footer-manifest { max-width: 60ch; margin: .75rem 0 1.5rem; color: var(--text); }
.site-footer .footer-gdpr { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; font-size: .92rem; }
.site-footer .footer-gdpr i { color: var(--primary); }

.site-footer .footer-sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}
.site-footer .footer-sitemap h6 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); font-weight: 700;
  margin-bottom: 1rem;
}
.site-footer .footer-sitemap ul { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-sitemap li { margin-bottom: .55rem; }
.site-footer .footer-sitemap a { color: var(--text); font-size: .92rem; text-decoration: none; }
.site-footer .footer-sitemap a:hover { color: var(--primary); }

.site-footer .footer-legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  margin-top: 2.5rem; padding-top: 1rem;
  font-size: .85rem; color: var(--text-muted);
}
.site-footer .footer-legal a { color: var(--text-muted); margin-right: 1rem; text-decoration: none; }
.site-footer .footer-legal a:hover { color: var(--primary); }

/* Light footer (§24-light) */
.light-footer {
  text-align: center;
  margin: 2rem 0 1rem;
  font-size: .82rem; font-weight: 500;
  color: var(--text-muted);
  opacity: .65;
}
.light-footer .logo-mark.small { font-weight: 800; letter-spacing: -.5px; color: var(--primary); }

/* ---------- 19. Page-head for subpages — dark inset block (mirrors hero/cta-band pattern) ---------- */
.page-head {
  padding: 2rem 30px 1rem;          /* bottom slim so breadcrumb-bar sits visually attached below */
  background: var(--bg-alt);
}
.page-head > .container {
  background: var(--hero-grad);
  color: rgba(255, 255, 255, .82);
  padding: 1rem 0 3.5rem;           /* zero horizontal — content children self-align via .container tier widths */
  margin: 0;
  max-width: 100%;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-sharp);
  position: relative;
  overflow: visible;
}
.page-head > .container::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(59,130,246,.15), transparent 60%),
    radial-gradient(500px 350px at 15% 85%, rgba(139,92,246,.12), transparent 60%);
  pointer-events: none;
}
/* Content inside dark card EXACTLY matches .container tier widths + padding — left edges align with body content below */
.page-head > .container > *,
.module-head > .container > * {
  position: relative; z-index: 1;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}
@media (min-width: 576px)  { .page-head > .container > *, .module-head > .container > * { max-width: 540px; } }
@media (min-width: 768px)  { .page-head > .container > *, .module-head > .container > * { max-width: 720px; } }
@media (min-width: 992px)  { .page-head > .container > *, .module-head > .container > * { max-width: 960px; } }
@media (min-width: 1200px) { .page-head > .container > *, .module-head > .container > * { max-width: 1140px; } }
@media (min-width: 1400px) { .page-head > .container > *, .module-head > .container > * { max-width: 1320px; } }
@media (min-width: 1440px) { .page-head > .container > *, .module-head > .container > * { max-width: 1440px; } }
@media (min-width: 1600px) { .page-head > .container > *, .module-head > .container > * { max-width: 1600px; } }
@media (min-width: 1920px) { .page-head > .container > *, .module-head > .container > * { max-width: 1680px; } }
@media (min-width: 2560px) { .page-head > .container > *, .module-head > .container > * { max-width: 1840px; } }
/* Nav-bar inside dark card spans FULL dark card width (mega menu anchors to nav-bar and inherits this
 * full width naturally). Overrides the tier-max + z-index from `.page-head > .container > *`. */
.page-head > .container > .nav-bar,
.module-head > .container > .nav-bar {
  position: relative;                 /* anchor for absolutely-positioned .nav-mega (top:100% = under nav-bar) */
  z-index: 100;                       /* restore default nav-bar stacking — beats the z-index:1 from `> *` so mega (z:200) paints on top of the hero text wrapper below */
  max-width: none;                    /* defeat the tier cap from `.page-head > .container > *` */
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
/* Nav-bar's inner .container inside dark card: tier-bounded so nav items left-align with body content.
 * (Default `.nav-bar > .container` strips max-width — we re-instate the tier matrix here.) */
.page-head > .container > .nav-bar > .container,
.module-head > .container > .nav-bar > .container {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 768px)  { .page-head > .container > .nav-bar > .container, .module-head > .container > .nav-bar > .container { max-width: 720px; } }
@media (min-width: 992px)  { .page-head > .container > .nav-bar > .container, .module-head > .container > .nav-bar > .container { max-width: 960px; } }
@media (min-width: 1200px) { .page-head > .container > .nav-bar > .container, .module-head > .container > .nav-bar > .container { max-width: 1140px; } }
@media (min-width: 1400px) { .page-head > .container > .nav-bar > .container, .module-head > .container > .nav-bar > .container { max-width: 1320px; } }
@media (min-width: 1440px) { .page-head > .container > .nav-bar > .container, .module-head > .container > .nav-bar > .container { max-width: 1440px; } }
@media (min-width: 1600px) { .page-head > .container > .nav-bar > .container, .module-head > .container > .nav-bar > .container { max-width: 1600px; } }
@media (min-width: 1920px) { .page-head > .container > .nav-bar > .container, .module-head > .container > .nav-bar > .container { max-width: 1680px; } }
@media (min-width: 2560px) { .page-head > .container > .nav-bar > .container, .module-head > .container > .nav-bar > .container { max-width: 1840px; } }
/* First content child after nav (now eyebrow/h1 wrapper since breadcrumb moved out) — keep spacing from nav-bar */
.page-head > .container > .nav-bar + *,
.module-head > .container > .nav-bar + * {
  margin-top: 2.5rem;
}
@media (max-width: 768px) {
  .page-head, .module-head { padding: 1rem 0 2.5rem; }
  .page-head > .container, .module-head > .container { padding: .5rem 0 2rem; border-radius: 0; border-left: 0; border-right: 0; }
}
.page-head.bg-alt-head { background: var(--bg); }
.page-head h1 { color: #fff; font-size: clamp(1.85rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; margin: .25rem 0 .75rem; }
.page-head .page-lead { color: rgba(255, 255, 255, .8); font-size: 1.05rem; max-width: 72ch; }
.page-head .eyebrow { background: rgba(255, 255, 255, .1); color: #fff; }
/* Breadcrumb bar — light strip below the dark hero, tier-aligned with body content (§24-like).
 * Lives OUTSIDE .page-head / .module-head, between hero and first body section. */
.breadcrumb-bar {
  background: var(--bg-alt);
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}
/* Section directly after the breadcrumb-bar — shorter top padding so it doesn't feel disconnected from the hero block above */
.breadcrumb-bar + .section,
.breadcrumb-bar + section { padding-top: 4rem; }
.breadcrumb-bar .breadcrumb {
  display: flex; gap: .5rem; align-items: center; flex-wrap: wrap;
  font-size: .82rem; color: var(--text-muted);
  list-style: none; padding: 0; margin: 0;
}
.breadcrumb-bar .breadcrumb li { display: flex; align-items: center; }
.breadcrumb-bar .breadcrumb li::after { content: "/"; margin-left: .5rem; color: var(--border); }
.breadcrumb-bar .breadcrumb li:last-child::after { content: ""; }
.breadcrumb-bar .breadcrumb li:last-child { color: var(--primary); font-weight: 500; }
.breadcrumb-bar .breadcrumb a,
.breadcrumb-bar .breadcrumb a.link-quiet { color: var(--text-muted); text-decoration: none; }
.breadcrumb-bar .breadcrumb a:hover,
.breadcrumb-bar .breadcrumb a.link-quiet:hover { color: var(--primary); }
@media (max-width: 768px) {
  .breadcrumb-bar { padding: .65rem 0; }
  .breadcrumb-bar .breadcrumb { font-size: .78rem; gap: .35rem; }
  .breadcrumb-bar .breadcrumb li::after { margin-left: .35rem; }
}
/* .lead-xl inside dark page-head/module-head — white-on-dark */
.page-head .lead-xl, .module-head .lead-xl { color: rgba(255, 255, 255, .82); }

/* Module-specific page head — dark inset block (mirrors hero pattern) */
.module-head {
  padding: 2rem 30px 1rem;          /* unified with .page-head — slim bottom so breadcrumb-bar attaches visually */
  background: var(--bg-alt);
  position: relative;
}
.module-head > .container {
  background: var(--hero-grad);
  color: rgba(255, 255, 255, .82);
  padding: 1rem 0 3.5rem;           /* zero horizontal; matches .page-head inner bottom (3.5rem = airy without leaving the breadcrumb stranded) */
  margin: 0;
  max-width: 100%;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-sharp);
  position: relative;
  overflow: visible;
}
.module-head > .container::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(59,130,246,.15), transparent 60%),
    radial-gradient(500px 350px at 15% 85%, rgba(139,92,246,.12), transparent 60%);
  pointer-events: none;
}
/* `.module-head > .container > *` cascades from the unified `.page-head > .container > *, .module-head > .container > *`
 * rule above — tier widths + 1rem padding so left edges align with body content. Mobile rule also unified above. */

.module-head-inner { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; position: relative; z-index: 1; }
.module-head .mod-mark-lg { width: 80px; height: 80px; font-size: 2rem; flex-shrink: 0; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.module-head .mod-mark-atena { background: linear-gradient(135deg, var(--atena-from), var(--atena-to)); border-color: rgba(255, 255, 255, .25); }
.module-head .mod-mark-athena { background: #fff; color: var(--accent); border-color: rgba(255, 255, 255, .3); }
.module-head .module-head-body { flex: 1; min-width: 280px; max-width: 720px; }
.module-head h1 { color: #fff; font-size: clamp(2.4rem, 4.5vw, 3.4rem); margin: .25rem 0 1rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.module-head .lead { font-size: 1.25rem; line-height: 1.55; color: rgba(255, 255, 255, .82); max-width: 60ch; margin: 0 0 1.5rem; }
.module-head .module-meta { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; font-size: .85rem; color: rgba(255, 255, 255, .65); }
.module-head .module-meta .meta-sep { color: rgba(255, 255, 255, .25); }
.module-head .eyebrow { background: rgba(255, 255, 255, .1); color: #fff; }
/* Breadcrumb no longer lives inside .module-head — see .breadcrumb-bar (below the hero). */

/* Legacy dark module-head — kept for backwards compat with old pages */
.module-head-dark {
  padding: 7rem 0 3rem;
  background: var(--hero-grad);
  color: #fff;
  position: relative; overflow: hidden;
}
/* Removed dark module-head overrides — module-head is now light by default */

/* ---------- 20. Spec data grid ---------- */
.spec-grid { display: grid; grid-template-columns: 160px 1fr; gap: .5rem 1.25rem; margin: 0; padding: 0; }
.spec-grid dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); padding-top: .5rem; }
.spec-grid dd { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.spec-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: var(--r-sharp);
  padding: .25rem .55rem;
  font-size: .8rem; color: var(--primary);
  font-family: var(--font-mono);
}
.spec-pill-accent { background: #ebf5ff; border-color: #bfdbfe; color: var(--accent); }
@media (max-width: 768px) { .spec-grid { grid-template-columns: 1fr; gap: .25rem; } .spec-grid dt { padding-top: .75rem; } }

/* ---------- 21. Misc utilities ---------- */
.fs-5 { font-size: 1.15rem; }
.fs-6 { font-size: 1rem; }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.lh-tight { line-height: var(--line-tight); }

/* ---------- 23. Country jurisdiction explorer (list + detail) ----------
 * Two-area grid: searchable list (left), detail panel (right). Honest "status" indicator
 * (active / partner recruitment open / pack in preparation) so the page never claims
 * coverage it doesn't have. Pure tokens, no shadows / gradients (restraint per
 * [[ai-default-cliche-rejection]]). v1.38 dropped the schematic Europe map — list is the
 * primary navigation now. */
.ce {
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-areas: "list panel";
  gap: 0;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--r-sharp);
  overflow: hidden;
}
@media (max-width: 768px) {
  .ce {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "list"
      "panel";
  }
}

.ce-list {
  grid-area: list;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  max-height: 620px;
  background: var(--bg);
}
@media (max-width: 768px) {
  .ce-list { max-height: 320px; border-right: 0; border-bottom: 1px solid var(--border); }
}

.ce-search {
  appearance: none;
  width: 100%;
  padding: 1rem 1.25rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: .9rem;
}
.ce-search:focus { outline: none; background: var(--bg-alt); }
.ce-search::placeholder { color: var(--text-muted); }

.ce-items {
  padding: 0; margin: 0;
  overflow-y: auto;
  flex: 1;
}

/* Region groups inside the list — UN M49 buckets (Western / Northern / Southern / Eastern).
 * Subhead is sticky inside the scroll container so the active region label stays visible while
 * the user scrolls a long region; subhead hides via `.ce-region.is-empty` when the search filter
 * leaves a region with zero matches. */
.ce-region { /* group container — no padding; lets .ce-item rows span full list width */ }
.ce-region.is-empty { display: none; }
.ce-region-head {
  position: sticky;
  top: 0;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
  padding: 1rem 1.25rem .55rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.ce-region-items {
  list-style: none; padding: 0; margin: 0;
}

.ce-item {
  display: flex; align-items: baseline; gap: .85rem;
  width: 100%;
  padding: .85rem 1.25rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--text);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.ce-item:last-child { border-bottom: 0; }
.ce-item:hover { background: var(--bg-alt); }
.ce-item.is-active {
  background: var(--bg-alt);
  border-left-color: var(--primary);
  color: var(--primary);
}
.ce-item.is-hidden { display: none; }
.ce-code {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-muted);
  letter-spacing: .1em;
  min-width: 22px;
}
.ce-item.is-active .ce-code { color: var(--primary); }
.ce-name { font-size: .92rem; flex: 1; }

.ce-panel {
  grid-area: panel;
  padding: 2.5rem 2.5rem 2rem;
  max-height: 640px;
  overflow-y: auto;
}
@media (max-width: 768px) { .ce-panel { padding: 1.5rem; max-height: none; } }

.ce-pack { display: none; }
.ce-pack.is-active { display: block; }

.ce-pack-head {
  display: flex; align-items: baseline; gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.ce-pack-code {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--text-muted);
  letter-spacing: .12em;
}
.ce-pack-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -.015em;
  margin: 0;
  line-height: 1.2;
}

.ce-pack-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.1rem 1.75rem;
  margin: 0;
}
@media (max-width: 768px) {
  .ce-pack-grid { grid-template-columns: 1fr; gap: 0; }
  .ce-pack-grid dt { padding-top: 1rem; }
}
.ce-pack-grid dt {
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  font-weight: 500;
  padding-top: .15rem;
}
.ce-pack-grid dd {
  margin: 0;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.55;
}

.ce-pack-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.ce-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--primary);
  font-size: .9rem; font-weight: 600;
  text-decoration: none;
  transition: color .15s ease, gap .15s ease;
}
.ce-link:hover { color: var(--accent); gap: .55rem; text-decoration: none; }
.ce-link i { font-size: .75rem; }

/* ---------- 22. Platform Pillars — pure type + grid (no gradients, no spotlight) ----------
 * Light section. Left-aligned heading. 4-column grid of full-card anchor links separated by
 * vertical hairline dividers — NO background fills, NO border-radius, NO radial gradients,
 * NO mouse-tracking spotlight, NO dotted backdrop. The "modern AI default" (Aceternity-style
 * radial-spotlight + dotted grid) is intentionally avoided: it has become the no-code happy-path
 * cliché that real Vercel / Linear / Kowalski work rejects. The signal here is **restraint** —
 * type carries the weight, hairlines structure the grid, accents (arrow translate + link colour)
 * are the only state change on interaction. */
.k-pillars {
  padding: 7rem 0 8rem;
  background: var(--bg);
}

.kh-head {
  text-align: left;
  max-width: 720px;
  margin: 0 0 4.5rem;
}
.kh-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.kh-title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}
.kh-title .kt-light  { font-weight: 300; color: var(--text);    display: inline; }
.kh-title .kt-strong { font-weight: 600; color: var(--primary); display: inline; }
.kh-lead {
  max-width: 60ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

/* Grid as a column-divided list — hairlines, no cells, no gap. */
.k-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Card — anchor; no fill, no border-radius, no shadow. Hairline divider on the right (except last). */
.k-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.25rem;
  padding: 2.5rem 1.75rem;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  color: inherit;
  text-decoration: none;
  opacity: 0;
  transition: opacity .5s ease;
}
.k-card:last-child { border-right: none; }
.k-card.is-visible { opacity: 1; }
.k-card:hover, .k-card:focus-visible {
  color: inherit;
  text-decoration: none;
  outline: none;
}
.k-card:nth-child(2) { transition-delay: .08s; }
.k-card:nth-child(3) { transition-delay: .16s; }
.k-card:nth-child(4) { transition-delay: .24s; }

.k-card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.k-step { font-variant-numeric: tabular-nums; }
.k-tag  { font-weight: 500; }

.k-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -.015em;
  line-height: 1.25;
  margin: 0 0 .85rem;
}
.k-card-text {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0;
}

.k-card-foot {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.k-link  { transition: color .2s ease; }
.k-arrow {
  font-size: .8rem;
  transition: transform .3s cubic-bezier(.2,.6,.2,1), color .2s ease;
}
.k-card:hover .k-link,
.k-card:focus-visible .k-link  { color: var(--primary); }
.k-card:hover .k-arrow,
.k-card:focus-visible .k-arrow { color: var(--primary); transform: translateX(4px); }

@media (max-width: 991px) {
  .k-grid { grid-template-columns: repeat(2, 1fr); }
  .k-card { border-right: 1px solid var(--border); }
  .k-card:nth-child(2n) { border-right: none; }
  .k-card:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 575.98px) {
  .k-pillars { padding: 4.5rem 0 5rem; }
  .k-grid { grid-template-columns: 1fr; }
  .k-card { border-right: none !important; border-bottom: 1px solid var(--border); padding: 2rem 0; }
  .k-card:last-child { border-bottom: none; }
  .kh-title { font-size: 1.75rem; }
  .kh-head  { margin-bottom: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .k-card  { opacity: 1; transition: none; }
  .k-arrow { transition: color .2s ease; }
  .k-card:hover .k-arrow, .k-card:focus-visible .k-arrow { transform: none; }
}

/* ---------- 22-LEGACY. v1.24 light pillars (kept for reference, classes unused after v1.25) ---------- */

/* ---------- 22. Platform Pillars (light interactive section, §08 body-section level) ----------
 * "What Accadema does" — four flip cards over a light bg-alt surface. Front face shows num/glyph/
 * title/summary; back face fades in on hover/focus with detail copy + a learn-more link. Fixed
 * card height so the row never reflows. Subtle accent line draws in from left on hover. Geometric
 * glyphs (dot / square / line / ring) keep the section object-only — no images, no video. Stagger
 * fade-in via small inline script + IntersectionObserver. Respects `prefers-reduced-motion`. */
.section-pillars {
  padding: 7rem 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
/* Geometric backdrop accent — radial-only, no image. Subtle. */
.section-pillars::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 360px at 50% -10%, rgba(59,130,246,.07), transparent 60%),
    radial-gradient(600px 300px at 90% 110%, rgba(15,23,42,.04), transparent 60%);
  pointer-events: none;
}

.pillars-head { position: relative; z-index: 1; text-align: center; max-width: 820px; margin: 0 auto 4rem; }
.pillars-title {
  font-size: clamp(1.85rem, 3.5vw, 2.8rem);
  letter-spacing: -.015em;
  line-height: var(--line-tight);
  margin: 1rem 0 1.25rem;
}
.pillars-title .pt-light  { font-weight: 300; color: var(--text);    display: inline; }
.pillars-title .pt-strong { font-weight: 700; color: var(--primary); display: inline; }
.pillars-lead {
  max-width: 60ch; margin: 0 auto;
  color: var(--text-muted); font-size: 1rem; line-height: 1.65;
}

.pillars-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

/* Card shell — fixed height, two stacked faces inside. */
.pillar {
  position: relative;
  height: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sharp);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  opacity: 0;
  transform: translateY(20px);
  transition: border-color .25s ease, box-shadow .25s ease, transform .35s ease, opacity .35s ease;
}
.pillar.is-visible { opacity: 1; transform: translateY(0); }
.pillar:hover, .pillar:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 14px 36px rgba(15, 23, 42, .09);
  transform: translateY(-3px);
}

/* Accent rule that draws in from the left on hover — geometric, not decorative-clip. */
.pillar::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--accent);
  transition: width .35s cubic-bezier(.2,.6,.2,1);
}
.pillar:hover::before, .pillar:focus-visible::before { width: 100%; }

/* Two faces stacked exactly. Front visible by default, back fades in on hover. */
.pillar-face {
  position: absolute; inset: 0;
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column;
  transition: opacity .3s ease, transform .3s ease;
}
.pillar-front { opacity: 1; transform: translateY(0); }
.pillar-back  { opacity: 0; transform: translateY(8px); }
.pillar:hover .pillar-front, .pillar:focus-visible .pillar-front { opacity: 0; transform: translateY(-8px); }
.pillar:hover .pillar-back,  .pillar:focus-visible .pillar-back  { opacity: 1; transform: translateY(0); }

.pillar-num {
  font-family: var(--font-mono);
  font-size: .72rem; color: var(--text-muted);
  letter-spacing: .1em;
}
.pillar-glyph {
  margin: 1.5rem 0 1.25rem;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
}
.pillar-title {
  font-size: 1.15rem; font-weight: 600;
  color: var(--primary);
  margin: 0 0 .5rem;
  letter-spacing: -.005em;
  line-height: var(--line-tight);
}
.pillar-summary {
  color: var(--text-muted);
  font-size: .9rem; line-height: 1.55;
  margin: 0;
}
.pillar-back .pillar-num { margin-bottom: .5rem; }
.pillar-back .pillar-title { margin-bottom: .75rem; }
.pillar-back p {
  color: var(--text);
  font-size: .87rem; line-height: 1.55;
  margin: 0 0 .9rem;
}
.pillar-link {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: auto;
  font-size: .82rem; font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color .15s, gap .15s;
}
.pillar-link:hover { color: var(--accent); gap: .5rem; text-decoration: none; }
.pillar-link i { font-size: .72rem; }

/* Geometric glyphs — pure CSS objects, no image, no font icon. */
.pg-dot {
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
}
.pg-dot::after {
  content: ""; position: absolute; inset: -6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: .35;
  transition: inset .35s ease, opacity .35s ease;
}
.pillar:hover .pg-dot::after, .pillar:focus-visible .pg-dot::after { inset: -10px; opacity: .55; }

.pg-square {
  width: 14px; height: 14px;
  background: var(--accent);
  position: relative;
  transition: transform .35s ease;
}
.pg-square::after {
  content: ""; position: absolute; inset: -6px;
  border: 1px solid var(--accent);
  opacity: .35;
  transition: inset .35s ease, opacity .35s ease, transform .35s ease;
}
.pillar:hover .pg-square { transform: rotate(45deg); }
.pillar:hover .pg-square::after { inset: -10px; opacity: .55; }

.pg-line {
  width: 22px; height: 2px;
  background: var(--accent);
  position: relative;
}
.pg-line::before, .pg-line::after {
  content: ""; position: absolute;
  width: 22px; height: 1px;
  background: var(--accent); opacity: .35;
  transition: transform .35s ease;
}
.pg-line::before { top: -7px; }
.pg-line::after  { top:  6px; }
.pillar:hover .pg-line::before { transform: translateX(-4px); }
.pillar:hover .pg-line::after  { transform: translateX(4px); }

.pg-ring {
  width: 18px; height: 18px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: relative;
  transition: transform .35s ease;
}
.pg-ring::after {
  content: ""; position: absolute;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .35s ease;
}
.pillar:hover .pg-ring { transform: rotate(45deg); }
.pillar:hover .pg-ring::after { transform: translate(-50%, -50%) scale(1); }

/* Stagger fade-in delays — driven by JS adding `.is-visible`, but offsets via nth-child. */
.pillar:nth-child(2) { transition-delay: .07s; }
.pillar:nth-child(3) { transition-delay: .14s; }
.pillar:nth-child(4) { transition-delay: .21s; }

@media (max-width: 991px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .pillar { height: 260px; }
}
@media (max-width: 575.98px) {
  .section-pillars { padding: 4.5rem 0; }
  .pillars-grid { grid-template-columns: 1fr; gap: .85rem; }
  .pillar { height: auto; min-height: 230px; }
  .pillar-face { padding: 1.5rem 1.25rem; }
  .pillars-title { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pillar { opacity: 1; transform: none; transition: border-color .2s, box-shadow .2s; }
  .pillar::before, .pillar-face, .pg-dot::after, .pg-square, .pg-square::after,
  .pg-line::before, .pg-line::after, .pg-ring, .pg-ring::after { transition: none; animation: none; }
  /* keep hover state reachable; just no entry animation */
}
.w-100 { width: 100%; }
.shadow-sm { box-shadow: 0 1px 4px rgba(0, 0, 0, .05); }

/* ---------- 24. Accadema-www admin (REMOVED 2026-05-21) ----------
 * The §24 admin block added 2026-05-20 violated Princíp 11 + 8a (no design-manual read
 * before UI code) and §40 Admin profile (used custom `.admin-nav` / `.admin-table` etc.
 * instead of canonical `.nav-acc` / `.tbl` / `.kpi-tile`). Replaced by `public/admin/
 * admin.css` which implements §38 / §40 / §35 / §17 / §11 directly per the design manual
 * reference (services/Iris/ui-mockups/admin-inbox.html). The 4 admin HTML pages reference
 * /admin/admin.css, not this file. */
/* (admin styles moved to public/admin/admin.css per §40 Admin profile compliance pass v1.43) */
