/* ============================================================
   AICS — Shared Stylesheet
   Release 01 — Design system per build brief v3
   ============================================================ */

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #2D2D2D;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: #0055FF; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---- Design tokens ---- */
:root {
  --navy: #001540;
  --navy-2: #002080;
  --action: #0055FF;
  --action-hover: #003FCC;
  --light-blue: #F0F4FF;
  --white: #FFFFFF;
  --body-dark: #2D2D2D;
  --body-gray: #6B7280;
  --before-red: #CC0000;
  --after-green: #00875A;
  --paper: #F7F4EE;
  --ink: #1A1A1A;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;

  --max-w: 1200px;
  --focused-w: 800px;
  --reading-w: 720px;

  --pad-section: clamp(64px, 8vw, 112px);
  --pad-section-sm: clamp(48px, 6vw, 80px);
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.2;
}
h1 { font-size: clamp(36px, 5.2vw, 52px); line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; letter-spacing: -0.005em; }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; }
h4 { font-size: 20px; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: 19px; line-height: 1.6; color: var(--body-dark); }
.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--action);
  margin: 0 0 16px;
}
.eyebrow--on-dark { color: #6EA0FF; }
.small { font-size: 14px; line-height: 1.5; color: var(--body-gray); }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--focused-w); }
.container--reading { max-width: var(--reading-w); }
.section { padding: var(--pad-section) 0; }
.section--tight { padding: var(--pad-section-sm) 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--light { background: var(--light-blue); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper h1, .section--paper h2, .section--paper h3 { color: var(--ink); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  min-height: 48px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:disabled,
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none; /* belt-and-suspenders: prevents click on <a class="btn"> */
}
.btn--primary {
  background: var(--action);
  color: var(--white);
  border-color: var(--action);
}
.btn--primary:hover { background: var(--action-hover); border-color: var(--action-hover); color: var(--white); }
.btn--secondary {
  background: transparent;
  color: var(--action);
  border-color: var(--action);
}
.btn--secondary:hover { background: var(--light-blue); color: var(--action); }
.btn--secondary-on-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--secondary-on-dark:hover { background: rgba(255,255,255,0.08); color: var(--white); border-color: var(--white); }

/* Text-only CTA for use on dark backgrounds when the secondary should recede */
.btn--text-on-dark {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 0;
  padding: 14px 8px;
  min-height: 48px;
  font-weight: 500;
  font-size: 16px;
  border-radius: 0;
}
.btn--text-on-dark::after {
  content: '→';
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.15s ease;
}
.btn--text-on-dark:hover { color: var(--white); text-decoration: none; }
.btn--text-on-dark:hover::after { transform: translateX(3px); }
.btn--lg { padding: 16px 28px; min-height: 56px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- AICS Wordmark — per AICS_Wordmark_Standard_v2 ----
   Canonical lockup: AI | COMMAND SYSTEM
   - Single line
   - Montserrat ExtraBold (800)
   - All caps via copy (no transform)
   - Same font size for every letter
   - Letter-spacing 0.04em across the wordmark
   - Color #001540 for every element including divider on light backgrounds
   - Divider: drawn vertical rule, 3px × 0.92em, optically centered
   - On dark backgrounds (.site-header, .site-footer, .mobile-nav, or the
     .site-logo--on-dark variant): wordmark and divider are #FFFFFF, and the
     flat-white AICS logo mark is prepended via a CSS pseudo-element.
*/
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: #001540;
}
.site-logo:hover { text-decoration: none; color: #001540; }
.site-logo-ai,
.site-logo-name {
  color: #001540;
  font-size: inherit;
}
.site-logo-divider {
  display: inline-block;
  width: 3px;
  height: 0.92em;
  background: #001540;
  border-radius: 1px;
  transform: translateY(0.02em);
  flex-shrink: 0;
}

/* Container for dark / complex backgrounds (legacy — retained for
   compatibility; the dark-context overrides below convert footer/header
   instances to the reverse-wordmark + logo-mark pattern). */
.site-logo--contained {
  background: #FFFFFF;
  padding: 10px 20px;
  border-radius: 6px;
  color: #001540;
}
.site-logo--contained-paper { background: #F7F4EE; }

/* Size variants (used by context — mobile nav overlay, hero) */
.site-logo--lg { font-size: 24px; }
.site-logo--xl { font-size: 32px; }

/* ---- Reverse wordmark + flat-white logo mark (dark contexts) ----
   Applies automatically when the wordmark sits inside the site header,
   footer, mobile-nav overlay, or carries the .site-logo--on-dark class.
   The mark renders as a CSS ::before so existing page HTML doesn't need
   per-page edits.
*/
.site-logo--on-dark,
.site-header .site-logo,
.site-header .site-logo:hover,
.site-footer .site-logo,
.site-footer .site-logo:hover,
.mobile-nav .site-logo,
.mobile-nav .site-logo:hover {
  color: #FFFFFF;
}
.site-logo--on-dark .site-logo-ai,
.site-logo--on-dark .site-logo-name,
.site-header .site-logo .site-logo-ai,
.site-header .site-logo .site-logo-name,
.site-footer .site-logo .site-logo-ai,
.site-footer .site-logo .site-logo-name,
.mobile-nav .site-logo .site-logo-ai,
.mobile-nav .site-logo .site-logo-name {
  color: #FFFFFF;
}
.site-logo--on-dark .site-logo-divider,
.site-header .site-logo .site-logo-divider,
.site-footer .site-logo .site-logo-divider,
.mobile-nav .site-logo .site-logo-divider {
  background: #FFFFFF !important;
  width: 4px;
  height: 1em;
  opacity: 1;
}

/* Logo mark — a real <img.site-logo__mark> is injected by main.js at the
   start of every .site-logo that sits in a dark context (.site-header,
   .site-footer, .mobile-nav, or with .site-logo--on-dark). Real images
   render predictably across browsers; CSS only sizes them here.
   1.55em scales with the wordmark's font-size so it stays balanced at
   header, mobile-nav, hero, and footer scales without manual tuning. */
.site-logo__mark {
  display: inline-block;
  width: 1.55em;
  height: 1.55em;
  flex-shrink: 0;
  margin-right: 0.05em;
  vertical-align: middle;
  user-select: none;
  pointer-events: none;
}

/* ---- Combo logo (white-on-navy) for dark surfaces ----
   The brand-approved combined logo+wordmark PNG (Combo - White on Navy).
   Injected by main.js into every dark-context .site-logo, replacing both
   the standalone mark and the text wordmark on those surfaces. Per the
   updated wordmark standard in CLAUDE.md, the PNG combo is the canonical
   rendering on dark backgrounds; the text spans are kept in the HTML for
   accessibility / screen readers but hidden via the rules below. */
.site-logo__combo {
  display: block;
  height: 1.3em;
  width: auto;
  flex-shrink: 0;
  user-select: none;
  pointer-events: none;
}
.site-logo--lg .site-logo__combo { height: 1.1em; }
.site-logo--xl .site-logo__combo { height: 1em; }

/* In dark contexts, the combo image is the only visible element of the
   wordmark. Hide the standalone mark (whether inline-authored or
   JS-injected) and the text wordmark spans so they don't double-render. */
.site-header .site-logo .site-logo__mark,
.site-header .site-logo .site-logo-ai,
.site-header .site-logo .site-logo-divider,
.site-header .site-logo .site-logo-name,
.site-footer .site-logo .site-logo__mark,
.site-footer .site-logo .site-logo-ai,
.site-footer .site-logo .site-logo-divider,
.site-footer .site-logo .site-logo-name,
.mobile-nav .site-logo .site-logo__mark,
.mobile-nav .site-logo .site-logo-ai,
.mobile-nav .site-logo .site-logo-divider,
.mobile-nav .site-logo .site-logo-name,
.site-logo--on-dark .site-logo__mark,
.site-logo--on-dark .site-logo-ai,
.site-logo--on-dark .site-logo-divider,
.site-logo--on-dark .site-logo-name {
  display: none;
}
/* And drop the inline-flex gap, which would otherwise leave a hole where
   the text used to sit. */
.site-header .site-logo,
.site-footer .site-logo,
.mobile-nav .site-logo,
.site-logo--on-dark {
  gap: 0;
}

/* Footer wordmark: the legacy .site-logo--contained pill is suppressed in
   the footer so the reverse wordmark + mark reads directly on navy, matching
   the rest of the brand. */
.site-footer .site-logo--contained {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

/* ---- Founder portrait (About) ---- */
.founder-portrait {
  margin: 0;
  width: 200px;
  height: 200px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(0, 21, 64, 0.08);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 12px 32px -10px rgba(0, 21, 64, 0.25),
    0 4px 12px -4px rgba(0, 21, 64, 0.15);
}
.founder-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Kit photograph treatments ---- */
.kit-photo {
  margin: 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 24px 60px -20px rgba(0,0,0,0.55),
    0 8px 24px -8px rgba(0,0,0,0.35);
}
.kit-photo img { display: block; width: 100%; height: auto; }
.kit-photo--hero { max-width: 560px; margin-left: auto; }
.kit-photo--inline { max-width: 880px; margin: 0 auto; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 80px;
}
.nav__brand { display: flex; align-items: center; flex-shrink: 0; }
.nav__links {
  display: flex;
  gap: 24px;
  margin: 0 auto 0 12px;
  padding: 0;
  list-style: none;
}
.nav__links a {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.nav__links a:hover { color: #FFFFFF; border-bottom-color: var(--action); text-decoration: none; }
.nav__links a.is-active { color: #FFFFFF; border-bottom-color: var(--action); }
.nav__cta { flex-shrink: 0; }

/* Header CTA: on a navy header, the outlined-blue secondary recedes too much.
   Promote it to the on-dark outlined-white variant without requiring per-page
   HTML edits. */
.site-header .nav__cta.btn--secondary {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.55);
}
.site-header .nav__cta.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.nav__hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}
.nav__hamburger:hover { color: #FFFFFF; }
.nav__hamburger svg { width: 28px; height: 28px; }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy);
  color: #FFFFFF;
  z-index: 100;
  display: none;
  flex-direction: column;
  padding: 24px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav__close {
  background: transparent;
  border: 0;
  padding: 8px;
  color: #FFFFFF;
  cursor: pointer;
}
.mobile-nav__close:hover { color: rgba(255, 255, 255, 0.7); }
.mobile-nav__links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav__links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;
}
.mobile-nav__links a:hover { color: rgba(255, 255, 255, 0.7); }
.mobile-nav__cta { padding-bottom: 24px; }
.mobile-nav__cta .btn { width: 100%; }

@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: block; }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 32px;
}
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--white); text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.65); margin: 0; max-width: 360px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 55% at 18% 0%, rgba(0, 85, 255, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 100%, rgba(0, 85, 255, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #001a52 0%, #001540 65%, #000d2e 100%);
  color: var(--white);
  padding: clamp(64px, 8vw, 96px) 0 clamp(56px, 7vw, 80px);
  overflow: hidden;
}
/* Fine paper-grain overlay — elevates flat fill into atmosphere */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/></svg>");
  background-size: 240px 240px;
}
.hero > * { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__title {
  color: var(--white);
  margin: 0 0 24px;
  font-size: clamp(40px, 5.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
/* Brand stamp above the headline. 3D mark sits as a feature element
   without competing with the hero workflow diagram. The drop shadow
   matches the navy gradient depth and keeps the dimensional mark from
   feeling pasted-on. */
.hero__mark {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 0 28px;
  filter: drop-shadow(0 10px 24px rgba(0, 85, 255, 0.28))
          drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
  user-select: none;
  -webkit-user-drag: none;
}
@media (max-width: 900px) {
  .hero__mark { width: 56px; height: 56px; margin-bottom: 20px; }
}
.hero__lead {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 0 0 28px;
  max-width: 540px;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__visual { position: relative; min-height: 380px; }
.hero--center { text-align: center; }
.hero--center .hero__grid { grid-template-columns: 1fr; }
.hero--center .hero__lead { margin-left: auto; margin-right: auto; }
.hero--center .hero__ctas { justify-content: center; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { min-height: 320px; }
}

/* Editorial publication marker (home hero) */
.hero__publication {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 40px;
  white-space: nowrap;
}
.hero__pub-sep { color: rgba(255, 255, 255, 0.3); }
.hero__publication::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 85, 255, 0.5) 0%, rgba(0, 85, 255, 0.18) 40%, transparent 100%);
  max-width: 220px;
  margin-left: 4px;
}

/* Meta line under hero CTAs */
.hero__meta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  margin: 24px 0 0;
}

/* ---- Tristate strip (Scattered → Structured → Reusable) ----
   Signature AICS motif. Reusable across pages.
*/
.tristate {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
}
.tristate__step {
  text-align: center;
  padding: 8px 0;
}
.tristate__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: 0.02em;
  margin: 0 0 6px;
  line-height: 1.1;
}
.tristate__sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--body-gray);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tristate__arrow {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  color: var(--action);
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tristate--on-dark .tristate__label { color: var(--white); }
.tristate--on-dark .tristate__sub { color: rgba(255,255,255,0.6); }
.tristate--on-dark .tristate__arrow { color: #6EA0FF; }
.tristate__step--scattered .tristate__label { color: var(--navy); }
.tristate__step--structured .tristate__label { color: var(--action); }
.tristate__step--reusable .tristate__label { color: var(--after-green); }
.tristate--on-dark .tristate__step--scattered .tristate__label { color: rgba(255,255,255,0.88); }
.tristate--on-dark .tristate__step--structured .tristate__label { color: #6EA0FF; }
.tristate--on-dark .tristate__step--reusable .tristate__label { color: #5BD8A5; }

@media (max-width: 720px) {
  .tristate {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tristate__arrow {
    transform: rotate(90deg);
    font-size: 18px;
  }
}

/* Hero zone caption strip (labels under SVG, aligned to 3 zones) */
.hero-zones {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  padding: 0 4px;
}
.hero-zones__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
}
.hero-zones__label--scattered { color: rgba(255,255,255,0.55); }
.hero-zones__label--structured { color: #6EA0FF; }
.hero-zones__label--reusable { color: #5BD8A5; }

/* ---- Section header ---- */
.section-head { max-width: 760px; margin: 0 0 56px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { font-size: 18px; line-height: 1.6; color: var(--body-gray); margin: 0; }
.section--navy .section-head p { color: rgba(255,255,255,0.78); }

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1024px) {
  .card-grid--5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .card-grid, .card-grid--2, .card-grid--5 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card__num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--action);
  letter-spacing: 0.04em;
}
.card h3 { font-size: 22px; margin-bottom: 4px; }
.card p { color: var(--body-gray); margin: 0; }

.card--feature {
  padding: 28px;
}
.card--feature h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 8px;
}
.card--feature p { font-size: 15px; color: var(--body-gray); margin: 0; }

/* ---- Before / After ---- */
.beforeafter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.beforeafter__col { padding: 40px; }
.beforeafter__col--before { background: #FFF6F6; border-right: 1px solid var(--border); }
.beforeafter__col--after { background: #F0FAF5; }
.beforeafter__label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.beforeafter__col--before .beforeafter__label { color: var(--before-red); }
.beforeafter__col--after .beforeafter__label { color: var(--after-green); }
.beforeafter__col h3 { font-size: 22px; margin: 0 0 16px; }
.beforeafter__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.beforeafter__list li {
  position: relative;
  padding-left: 28px;
  color: var(--body-dark);
}
.beforeafter__list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
.beforeafter__col--before .beforeafter__list li::before { content: '×'; color: var(--before-red); font-size: 22px; line-height: 1.1; }
.beforeafter__col--after .beforeafter__list li::before { content: '✓'; color: var(--after-green); font-size: 16px; line-height: 1.4; }

@media (max-width: 768px) {
  .beforeafter { grid-template-columns: 1fr; }
  .beforeafter__col--before { border-right: 0; border-bottom: 1px solid var(--border); }
}

/* ---- Featured offer block ---- */
.offer-block {
  background: var(--light-blue);
  border-radius: 12px;
  padding: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.offer-block__price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 24px;
}
.offer-block__price .num {
  font-family: 'Montserrat', sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.offer-block__price .unit {
  font-size: 15px;
  color: var(--body-gray);
}
.offer-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.offer-features li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--body-dark);
}
.offer-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  background: var(--action);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
@media (max-width: 900px) {
  .offer-block { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .offer-features { grid-template-columns: 1fr; }
}

/* ---- Final CTA banner ---- */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin: 0 0 16px; }
.cta-banner p {
  font-size: 19px;
  color: rgba(255,255,255,0.78);
  max-width: 640px;
  margin: 0 auto 32px;
}

/* ---- Page header (interior pages) ---- */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: clamp(80px, 10vw, 120px) 0 clamp(64px, 8vw, 88px);
  text-align: center;
}
.page-header h1 { color: var(--white); max-width: 880px; margin: 8px auto 24px; }
.page-header__lead {
  font-size: clamp(18px, 1.6vw, 21px);
  color: rgba(255,255,255,0.82);
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.page-header__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.page-header__meta {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

/* Standardized supporting line under a primary diagnostic CTA button.
   Default = light surfaces; --on-dark for navy sections/banners. */
.cta-meta {
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--body-gray);
}
.cta-meta--on-dark { color: rgba(255,255,255,0.6); }
/* Restore the top gap inside navy components whose `p` rule (higher
   specificity) would otherwise zero .cta-meta's margin-top. */
.briefing-cta .cta-meta,
.cta-banner .cta-meta { margin-top: 16px; margin-bottom: 0; }

/* ---- Featured content card (full-width) ---- */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}
.featured-card__visual {
  background: var(--paper);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.featured-card__visual .briefing-mark {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: 16px;
}
.featured-card__visual h3 {
  font-size: 30px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.featured-card__visual p {
  font-size: 15px;
  color: #4B5563;
  margin: 0;
}
.featured-card__body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.featured-card__body h3 { font-size: 24px; margin: 0 0 12px; }
.featured-card__body p { color: var(--body-gray); margin: 0 0 24px; }

@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card__visual { border-right: 0; border-bottom: 1px solid var(--border); padding: 40px; }
  .featured-card__body { padding: 32px; }
}

/* ---- Stub label ---- */
.stub-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B45309;
  background: #FFFBEB;
  border: 1px dashed #F59E0B;
  padding: 4px 8px;
  border-radius: 4px;
  margin: 8px 0;
}

/* ---- Forms ---- */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.form-field input,
.form-field textarea,
.form-field select {
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--white);
  color: var(--body-dark);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--action);
  box-shadow: 0 0 0 3px rgba(0,85,255,0.15);
}
.form-field textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.form-note { font-size: 14px; color: var(--body-gray); }

/* ---- Diagnostic ---- */
.diagnostic-shell {
  min-height: calc(100vh - 72px);
  background: var(--light-blue);
  padding: 48px 0 96px;
}
.diagnostic-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(32px, 5vw, 56px);
}
.diagnostic-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.diagnostic-progress__bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.diagnostic-progress__fill {
  height: 100%;
  background: var(--action);
  border-radius: 99px;
  transition: width 0.3s ease;
}
.diagnostic-progress__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--body-gray);
  letter-spacing: 0.04em;
}
.diagnostic-question h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0 0 24px;
  color: var(--navy);
}
.diagnostic-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.diagnostic-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body-dark);
  text-align: left;
  font-family: inherit;
  width: 100%;
}
.diagnostic-option:hover { border-color: var(--action); background: var(--light-blue); }
.diagnostic-option.is-selected { border-color: var(--action); background: var(--light-blue); }
.diagnostic-option__letter {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--light-blue);
  color: var(--action);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.diagnostic-option.is-selected .diagnostic-option__letter { background: var(--action); color: var(--white); }
.diagnostic-controls { display: flex; justify-content: space-between; gap: 12px; }
.diagnostic-back {
  background: transparent;
  border: 0;
  color: var(--body-gray);
  font-weight: 500;
  padding: 8px 0;
}
.diagnostic-back:hover { color: var(--navy); }
.diagnostic-back[disabled] { opacity: 0.3; cursor: default; }

.email-gate { text-align: left; }
.email-gate h2 { margin-bottom: 0; }
.email-gate p { color: var(--body-gray); max-width: none; margin: 0; }
.email-gate .form { margin: 0; align-items: stretch; }
.email-gate .form-field { width: 100%; max-width: none; }

/* ---- Refined diagnostic email gate (D-001) ----
   Two-column layout: redacted result preview on the left so the user can
   see the shape of what is being held back; AICS-voice form + skip link
   on the right. Stacks under 880px. */
.gate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 880px) {
  .gate-grid { grid-template-columns: 1fr; gap: 28px; }
}
.gate-preview {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: clamp(20px, 2.4vw, 28px);
  position: relative;
}
.gate-preview::before {
  content: "";
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 2px;
  background: var(--action);
  border-radius: 0 0 2px 2px;
}
.gate-preview__stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: 14px;
}
.gate-preview__stamp::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--action);
  box-shadow: 0 0 0 4px rgba(0, 85, 255, 0.18);
}
.gate-preview__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 18px;
  letter-spacing: -0.005em;
}
.gate-preview__rows { display: grid; gap: 14px; margin: 0 0 18px; }
.gate-preview__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px dashed #E5E9F0;
}
.gate-preview__row:last-child { border-bottom: 0; padding-bottom: 0; }
.gate-preview__key {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--body-gray);
}
.gate-preview__val {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--body-dark);
}
.gate-redact {
  display: inline-block;
  vertical-align: middle;
  height: 0.9em;
  border-radius: 3px;
  background: repeating-linear-gradient(
    135deg,
    #E4E9F1 0 8px,
    #EEF1F7 8px 16px
  );
}
.gate-redact--name { height: 24px; width: 180px; border-radius: 4px; }
.gate-redact--line { width: 100%; height: 11px; }
.gate-redact--line + .gate-redact--line { margin-top: 6px; width: 78%; }
.gate-ladder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.gate-ladder__rung {
  position: relative;
  height: 32px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    135deg,
    #ECF1F8 0 8px,
    #F4F7FB 8px 16px
  );
  border: 1px solid #E4E9F1;
}
.gate-ladder__rung::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px #C9D2E1;
}
.gate-preview__inside {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: #F8FAFD;
  border-radius: 5px;
  border-left: 2px solid var(--action);
}
.gate-preview__inside-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--body-gray);
  margin: 0 0 8px;
}
.gate-preview__inside ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.gate-preview__inside li {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--body-dark);
  padding-left: 18px;
  position: relative;
}
.gate-preview__inside li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 10px; height: 1px;
  background: var(--action);
}

/* Right column — the form. */
.gate-form__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--action);
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.gate-form__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--action);
}
.gate-form__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--navy);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.gate-form__lead {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-dark);
  margin: 0 0 24px;
  max-width: 44ch;
}
.gate-form__field { display: flex; flex-direction: column; gap: 8px; }
.gate-form__label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--body-gray);
}
.gate-form__input {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid #C9D2E1;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.gate-form__input:focus {
  outline: 0;
  border-color: var(--action);
  box-shadow: 0 0 0 3px rgba(0,85,255,0.15);
}
.gate-form__input.is-error {
  border-color: #B6332C;
  box-shadow: 0 0 0 3px rgba(182,51,44,0.12);
}
.gate-form__error {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #B6332C;
  display: none;
  margin: 4px 0 0;
}
.gate-form__error.is-on { display: block; }
.gate-form__submit { margin-top: 12px; justify-content: center; gap: 10px; }
.gate-form__skip-row {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gate-form__skip {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--body-dark);
  background: transparent;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 2px;
}
.gate-form__skip span {
  color: var(--action);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.gate-form__skip:hover span { color: var(--action-hover); }
.gate-form__skip:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.gate-form__skip-note {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: var(--body-gray);
  margin: 0;
  max-width: 42ch;
}
.gate-form__trust {
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: var(--body-gray);
}
.gate-form__trust svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--body-gray);
  margin-top: 2px;
}
.gate-form__trust a {
  color: var(--body-dark);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 2px;
}
.gate-form__trust a:hover { color: var(--navy); }

.resume-banner {
  max-width: 760px;
  margin: 0 auto 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--action);
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.resume-banner__text { font-size: 15px; color: var(--body-dark); }
.resume-banner__actions { display: flex; gap: 8px; }
.resume-banner button {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--navy);
}
.resume-banner button.is-primary { background: var(--action); border-color: var(--action); color: var(--white); }

/* ---- Maturity level block ---- */
.level-banner {
  background: var(--navy);
  color: var(--white);
  padding: clamp(64px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
}
.level-banner .eyebrow { color: #6EA0FF; }
.level-banner h1 {
  color: var(--white);
  font-size: clamp(36px, 5.2vw, 52px);
  margin: 0 0 16px;
}
.level-banner__name {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.level-banner__num {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--action);
  background: rgba(0,85,255,0.18);
  padding: 6px 14px;
  border-radius: 99px;
}
.level-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
.level-detail h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-gray);
  margin: 0 0 12px;
}
.level-detail p {
  font-size: 17px;
  color: var(--body-dark);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 900px) { .level-detail-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---- Specimen preview cards (workflow kit) ---- */
.specimen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .specimen-grid { grid-template-columns: 1fr; } }

.specimen {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.specimen__preview {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink);
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.specimen__preview .pg-mark {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: 8px;
}
.specimen__preview h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.2;
}
.specimen__preview .pg-section {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--body-gray);
  letter-spacing: 0.06em;
  margin: 10px 0 4px;
}
.specimen__preview .pg-line {
  height: 6px;
  background: #E5E1D8;
  border-radius: 2px;
  margin: 4px 0;
}
.specimen__preview .pg-line.w-70 { width: 70%; }
.specimen__preview .pg-line.w-90 { width: 90%; }
.specimen__preview .pg-line.w-50 { width: 50%; }
.specimen__preview .pg-line.w-80 { width: 80%; }
.specimen__preview .pg-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin: 4px 0;
}
.specimen__preview .pg-check::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--body-gray);
  border-radius: 2px;
  flex-shrink: 0;
}
.specimen__body { padding: 24px; }
.specimen__body h4 { font-size: 18px; margin: 0 0 6px; color: var(--navy); }
.specimen__body p { font-size: 14px; color: var(--body-gray); margin: 0; }

/* ---- Article ---- */
.article {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(64px, 8vw, 96px) 0 var(--pad-section);
}
.article__head { max-width: var(--reading-w); margin: 0 auto 48px; }
.article__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: 16px;
}
.article__head h1 {
  font-size: clamp(36px, 4.8vw, 48px);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.015em;
}
.article__dek {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: #4B5563;
  margin: 0 0 24px;
  font-family: 'Inter', sans-serif;
}
.article__meta {
  font-size: 13px;
  color: var(--body-gray);
  letter-spacing: 0.04em;
}
.article__body {
  max-width: var(--reading-w);
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
  color: var(--body-dark);
}
.article__body h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin: 48px 0 16px;
  letter-spacing: -0.005em;
}
.article__body p { margin: 0 0 20px; }
.article__body p strong { color: var(--ink); }
.article__cta-block {
  max-width: var(--reading-w);
  margin: 64px auto 0;
  padding: 32px;
  background: var(--white);
  border: 1px solid #E5DDD0;
  border-radius: 8px;
  text-align: center;
}
.article__cta-block h3 { font-size: 22px; color: var(--ink); margin: 0 0 12px; }
.article__cta-block p { margin: 0 0 20px; color: var(--body-gray); font-size: 16px; }
.article__cta-block .btn + .btn { margin-left: 12px; }
.article__cta-block .btn--secondary { background: transparent; color: var(--action); border-color: var(--action); }
.article__cta-block .cta-fine {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--body-gray);
}
.article__cta-block .cta-fine a { color: var(--body-dark); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Tier ladder ---------------------------------------------------
   Shared design-system component used on Field Briefings and the D-001
   result page. Each of the four segments is a clickable button: clicking
   reveals (or hides) a detail panel underneath with that tier's full
   Diagnosis / Failure / Missing Layer / Next Step block. The briefing's
   own tier is highlighted in navy AND expanded by default. */
.tier-ladder-block {
  max-width: var(--reading-w);
  margin: 0 auto 32px;
}
.tier-ladder {
  max-width: none;
  margin: 0 0 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: stretch;
  font-family: 'Inter', sans-serif;
}
.tier-ladder__step {
  position: relative;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--body-gray);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 10px 12px;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.tier-ladder__step:hover {
  border-color: var(--navy);
  background: #F2F5FA;
  color: var(--navy);
}
.tier-ladder__step:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 2px;
}
.tier-ladder__step.is-active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}
.tier-ladder__step.is-active:hover {
  background: var(--navy-2);
  color: var(--white);
}
.tier-ladder__num {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.65;
  margin-bottom: 4px;
  font-weight: 600;
}
.tier-ladder__step.is-active .tier-ladder__num { opacity: 0.85; }
.tier-ladder__score {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--navy);
  white-space: nowrap;
}
.tier-ladder__score b { font-size: 12px; }
.tier-ladder__score .band-word { color: var(--action); }
.tier-ladder__step.is-active .tier-ladder__score,
.tier-ladder__step.is-active .tier-ladder__score .band-word { color: var(--white); }
.tier-ladder__chev {
  display: none;
}
.tier-ladder__caption {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 13px;
  color: var(--body-gray);
  font-style: italic;
  letter-spacing: 0;
}
.tier-ladder__caption b {
  color: var(--ink);
  font-style: normal;
  font-weight: 600;
}
.tier-here {
  margin: 0 0 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-style: italic;
  color: var(--body-gray);
}
.tier-here b {
  color: var(--ink);
  font-style: normal;
  font-weight: 600;
}
.tier-here__hint {
  color: var(--body-gray);
  font-style: italic;
}

/* Detail panels — one per tier, stacked under the ladder. Multiple may
   be open at once; the briefing's own tier starts open. */
.tier-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.tier-detail {
  display: none;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--navy);
  border-radius: 6px;
  padding: 22px 26px;
}
.tier-detail.is-open {
  display: block;
  animation: tier-detail-in 220ms ease both;
}
@keyframes tier-detail-in {
  0%   { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}
.tier-detail__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}
.tier-detail__num {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--body-gray);
  background: #F2F5FA;
  padding: 3px 8px;
  border-radius: 3px;
}
.tier-detail__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.005em;
}
.tier-detail__rows {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px 24px;
  margin: 0;
}
.tier-detail__rows dt {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--body-gray);
  padding-top: 4px;
}
.tier-detail__rows dd {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body-dark);
  text-wrap: pretty;
}

@media (max-width: 720px) {
  .tier-ladder { grid-template-columns: repeat(2, 1fr); }
  .tier-ladder__step { font-size: 10px; padding: 8px 10px; padding-right: 22px; }
  .tier-detail { padding: 18px 20px; }
  .tier-detail__rows { grid-template-columns: 1fr; gap: 4px 0; }
  .tier-detail__rows dt { padding-top: 16px; }
}

/* ---- Briefing orientation block ----------------------------------
   The "You may be in X Mode if…" checklist that sits above the body.
   Surface Blue background per spec; the "What this briefing covers"
   sentence is the last item inside this block so the offramp link,
   the signals list, and the briefing premise stay together. */
.briefing-orient {
  max-width: var(--reading-w);
  margin: 0 auto 40px;
  background: var(--light-blue);
  border-radius: 6px;
  padding: 28px 32px;
}
.briefing-orient h3 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 16px;
}
.briefing-orient ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.briefing-orient ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--body-dark);
}
.briefing-orient ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 1px;
  background: var(--navy);
}
.briefing-orient p {
  font-size: 14px;
  color: var(--body-dark);
  margin: 0;
  line-height: 1.55;
}
.briefing-orient p + p { margin-top: 12px; }
.briefing-orient p.briefing-orient__covers {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 21, 64, 0.12);
  color: var(--ink);
}
.briefing-orient p.briefing-orient__covers b { font-weight: 700; color: var(--navy); }
.briefing-orient a { color: var(--action); }

/* ---- Briefing CTA banner (full-bleed navy) -----------------------
   Replaces the inline paper-tone CTA box on Field Briefings. Spec: navy
   background, white text, electric-blue button. */
.briefing-cta {
  background: var(--navy);
  color: var(--white);
  padding: clamp(56px, 8vw, 88px) 0;
  text-align: center;
}
.briefing-cta__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.briefing-cta h2 {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 16px;
}
.briefing-cta p {
  color: rgba(255, 255, 255, 0.78);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 28px;
}
.briefing-cta .btn--primary {
  background: var(--action);
  border-color: var(--action);
  color: var(--white);
}
.briefing-cta .btn--primary:hover {
  background: var(--action-hover);
  border-color: var(--action-hover);
}
.briefing-cta__fine {
  margin: 24px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}
.briefing-cta__fine a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.briefing-cta__fine a:hover { color: var(--white); }
.briefing-back {
  text-align: center;
  padding: 28px 0 48px;
  background: var(--paper);
}
.briefing-back a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--body-gray);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}
.briefing-back a:hover { color: var(--navy); }

/* Override the article body's dek when used for a Field Briefing subtitle:
   spec calls for italic gray, single line treatment. */
.article__dek--subtitle {
  font-style: italic;
  color: var(--body-gray);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.5;
}

/* ---- Field Guide index -------------------------------------------
   Grouped cards listing every Field Briefing, organised by tier. */
.fb-section { padding: 48px 0; }
.fb-section + .fb-section { padding-top: 0; }
.fb-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 28px;
}
.fb-section__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.005em;
}
.fb-section__count {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-gray);
}
.fb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 800px) { .fb-grid { grid-template-columns: 1fr; } }
.fb-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 26px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.fb-card:hover {
  border-color: var(--border-strong);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px -8px rgba(0, 21, 64, 0.18);
}
.fb-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fb-card__id { color: var(--body-gray); }
.fb-card__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}
.fb-card__tier { color: var(--action); }
.fb-card__tier--neutral { color: var(--body-gray); }
.fb-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.fb-card__dek {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--body-gray);
  margin: 0;
  text-wrap: pretty;
}
.fb-card__cta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--action);
  margin-top: auto;
  padding-top: 4px;
}
.fb-section--featured .fb-card {
  background: var(--paper);
  border-color: rgba(0, 21, 64, 0.1);
}

/* ---- Pain card with icon ---- */
.pain-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}
.pain-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--light-blue);
  color: var(--action);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.pain-card h3 { font-size: 20px; margin: 0 0 8px; color: var(--navy); }
.pain-card p { color: var(--body-gray); margin: 0; }

/* ---- Misc ---- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---- Bullet list ---- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-dark);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 14px;
  height: 14px;
  background: var(--action);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.section--navy .checklist li { color: rgba(255,255,255,0.85); }

/* ---- Offer ladder (offers.html) ----
   Stacked rungs, one per level. Sits on a light surface; each rung is a
   white card with an action-blue accent rail on the left, the level
   eyebrow, the offer name + 1-line positioning, a meta row (format +
   length), price on the right, and a CTA. The flagship offer gets a
   filled action-blue rail and a "Flagship" chip. */
.offer-ladder {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.offer-rung {
  display: grid;
  grid-template-columns: 6px 1fr 264px;
  gap: 0 32px;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.offer-rung:hover {
  border-color: var(--action);
  box-shadow: 0 12px 32px -18px rgba(0,21,64,0.18);
}
.offer-rung__rail {
  background: var(--border);
  transition: background 160ms ease;
}
.offer-rung:hover .offer-rung__rail { background: var(--action); }
.offer-rung--featured .offer-rung__rail { background: var(--action); }
.offer-rung--featured::after {
  content: "Flagship";
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--white);
  background: var(--action);
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 1;
}
.offer-rung__body {
  padding: 32px 0 32px 4px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.offer-rung__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.offer-rung__level {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--action);
  margin: 0;
  flex: 0 0 auto;
}
.offer-rung__num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--body-gray);
  letter-spacing: 0.04em;
}
.offer-rung__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.18;
  text-wrap: pretty;
}
.offer-rung__desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body-dark);
  margin: 0;
  max-width: 58ch;
  text-wrap: pretty;
}
.offer-rung__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--body-gray);
  margin-top: 4px;
}
.offer-rung__meta > span { display: inline-flex; gap: 6px; align-items: center; }
.offer-rung__meta strong { color: var(--navy); font-weight: 600; }
.offer-rung__side {
  padding: 32px 32px 32px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
  text-align: left;
  border-left: 1px dashed var(--border);
  padding-left: 32px;
}
.offer-rung__price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.01em;
}
.offer-rung__price--free { color: var(--after-green); }
.offer-rung__price-unit {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--body-gray);
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.offer-rung__cta {
  width: 100%;
  white-space: nowrap;
}
.offer-rung__stub {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--body-gray);
  margin: 0;
}
@media (max-width: 880px) {
  .offer-rung {
    grid-template-columns: 6px 1fr;
  }
  .offer-rung__body {
    padding: 24px 24px 8px 18px;
  }
  .offer-rung__title { font-size: 22px; }
  .offer-rung__side {
    grid-column: 1 / -1;
    align-items: flex-start;
    text-align: left;
    border-left: 0;
    border-top: 1px dashed var(--border);
    padding: 20px 24px 24px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .offer-rung__price { font-size: 28px; }
  .offer-rung__cta { width: auto; }
  .offer-rung--featured::after { top: 12px; right: 12px; }
}

/* ---- Two-column content ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- Section break / hr ---- */
.hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 64px 0;
}

/* ---- Dependency signals (offer pages) ----
   Names how an offer relates to others in the AICS offer system.
   Three labeled slots: Builds on / Works with / Opens.
   Reuse across O-001, O-004, O-006, O-007 and future offer pages.
*/
.dep-signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}
.dep-signals__cell {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}
.dep-signals__cell:last-child { border-right: 0; }
.dep-signals__label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-gray);
}
.dep-signals__codes {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--navy);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  line-height: 1.2;
}
.dep-signals__code {
  display: inline-flex;
  align-items: center;
}
.dep-signals__note {
  font-size: 13px;
  color: var(--body-gray);
  margin-top: auto;
  line-height: 1.5;
}
.dep-signals__none {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--body-gray);
  font-style: italic;
  letter-spacing: 0;
}
@media (max-width: 768px) {
  .dep-signals { grid-template-columns: 1fr; }
  .dep-signals__cell { border-right: 0; border-bottom: 1px solid var(--border); min-height: 0; }
  .dep-signals__cell:last-child { border-bottom: 0; }
}


/* ---- Field Guide index — Browse-a-mode strip ----
   The intro section uses a labeled jump-nav rather than free-floating
   pills so it reads as navigation, not as inline filters. Each link
   carries the full mode name plus its briefing count. */
.fg-jump {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.fg-jump__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--body-gray);
  margin-right: 4px;
}
.fg-jump__link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.fg-jump__link:hover {
  background: var(--light-blue);
  border-color: var(--action);
  text-decoration: none;
}
.fg-jump__link--neutral {
  color: var(--body-dark);
}
.fg-jump__count {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--body-gray);
  background: #F2F5FA;
  border-radius: 99px;
  padding: 1px 8px;
  min-width: 22px;
  text-align: center;
}
.fg-jump__link:hover .fg-jump__count { background: var(--white); color: var(--navy); }

/* Inline count after the section title — replaces the old right-aligned
   .fb-section__count. The count now sits next to the mode name where the
   eye reads it as a single “mode · count” unit. */
.fb-section__head { justify-content: flex-start; }
.fb-section__inline-count {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--body-gray);
  margin-left: 6px;
  white-space: nowrap;
}


/* ============================================================
   Field Guide — library treatment
   ============================================================ */

/* Evolution strip: visualizes the four-mode progression as a sequence
   joined by arrows. Tier-Neutral sits to the right of a divider since
   it is not part of the sequence. Clicks scroll to the matching section. */
.fg-evolution {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.fg-evolution__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--body-gray);
  margin-right: 10px;
}
.fg-evolution__chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.fg-evolution__chip:hover {
  background: var(--light-blue);
  border-color: var(--action);
  text-decoration: none;
}
.fg-evolution__count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--body-gray);
  background: #F2F5FA;
  border-radius: 99px;
  padding: 1px 7px;
  min-width: 18px;
  text-align: center;
}
.fg-evolution__chip:hover .fg-evolution__count { background: var(--white); color: var(--navy); }
.fg-evolution__arrow {
  color: var(--action);
  font-size: 16px;
  font-weight: 600;
  padding: 0 2px;
}
.fg-evolution__divider {
  display: inline-block;
  width: 1px;
  height: 26px;
  background: var(--border);
  margin: 0 10px;
}
.fg-evolution__chip--neutral {
  background: #F8FAFD;
  color: var(--body-dark);
}

/* Expand-all / Collapse-all toggle */
.fg-controls {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}
.fg-controls__toggle {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--action);
  background: transparent;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}
.fg-controls__toggle:hover { color: var(--action-hover); text-decoration-color: var(--action-hover); }

/* Collapsible section head */
.fb-section__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  justify-content: flex-start;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 14px 0 12px;
  margin-bottom: 0;
  font: inherit;
  text-align: left;
  color: inherit;
}
.fb-section__sub {
  font-size: 14px;
  color: var(--body-gray);
  max-width: 720px;
  margin: 8px 0 16px;
}
.fb-section__body {
  overflow: visible;
}

/* Library list — dense single-column rows. No word wrap on titles;
   long titles ellipsize. Description sits on a second line at smaller
   weight, also ellipsized. The whole row is the click target. */
.fb-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.fg-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 24px;
  align-items: baseline;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  background: var(--white);
  transition: background 0.12s ease, border-color 0.12s ease;
}
.fg-row:first-child { border-top: 1px solid var(--border); }
.fg-row:hover {
  background: var(--light-blue);
  text-decoration: none;
}
.fg-row__title {
  grid-column: 1;
  grid-row: 1;
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.fg-row__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--action);
  align-self: center;
  font-weight: 600;
}
.fg-row__dek {
  grid-column: 1;
  grid-row: 2;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--body-gray);
  margin: 3px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

@media (max-width: 720px) {
  .fg-evolution { gap: 4px 6px; }
  .fg-evolution__chip { font-size: 13px; padding: 6px 10px; }
  .fg-evolution__divider { display: none; }
  .fg-row { padding: 12px 14px; }
  .fg-row__title { font-size: 15px; }
  .fg-row__dek { font-size: 12px; }
}

/* ============================================================
   Analytics consent banner
   Injected by main.js only when a GA4 Measurement ID is set.
   Opt-in: GA4 loads only after the visitor clicks Accept.
   ============================================================ */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.22);
}
.consent-banner__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 640px;
}
.consent-banner__text a { color: #fff; text-decoration: underline; }
.consent-banner__actions { display: flex; gap: 10px; flex: none; }
.consent-banner__btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 22px;
  min-height: 44px;
  border-radius: 7px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.consent-banner__btn--accept { background: var(--action); color: #fff; }
.consent-banner__btn--accept:hover { background: var(--action-hover); }
.consent-banner__btn--decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.3);
}
.consent-banner__btn--decline:hover { background: rgba(255, 255, 255, 0.1); }
@media (max-width: 640px) {
  .consent-banner { flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
  .consent-banner__actions { justify-content: center; }
}
