/* ═══════════════════════════════════════════════════════
   MACH12.AI WHITEPAPER THEME
   Light theme, clean lines, blue/cyan palette
   Fonts: Orbitron (headings), DM Sans (body), Space Mono (labels)
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Space+Mono:wght@400;700&display=swap');

:root {
  --m12-blue: #2563EB;
  --m12-blue-dark: #1D4ED8;
  --m12-blue-light: #DBEAFE;
  --m12-cyan: #0891B2;
  --m12-cyan-light: #E0F2FE;
  --m12-white: #FFFFFF;
  --m12-bg: #F8FAFC;
  --m12-bg-alt: #F1F5F9;
  --m12-text: #0F172A;
  --m12-text-secondary: #334155;
  --m12-text-muted: #64748B;
  --m12-border: #E2E8F0;
  --m12-border-light: #F1F5F9;
  --m12-slate-900: #0F172A;
  --m12-slate-700: #334155;
  --m12-slate-500: #64748B;
  --m12-slate-300: #CBD5E1;
  --m12-slate-200: #E2E8F0;
  --m12-slate-100: #F1F5F9;
  --m12-slate-50: #F8FAFC;
  --m12-green: #16A34A;
  --m12-green-light: #DCFCE7;
  --m12-red: #DC2626;
  --m12-red-light: #FEE2E2;
  --m12-amber: #D97706;
  --m12-amber-light: #FEF3C7;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -4px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--m12-bg);
  color: var(--m12-text);
  line-height: 1.8;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--m12-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--m12-slate-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--m12-blue); }

/* ── SITE HEADER ── */
.wp-header {
  background: var(--m12-white);
  border-bottom: 1px solid var(--m12-border);
  padding: 0.875rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.wp-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wp-header .logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.wp-header .logo-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--m12-blue), var(--m12-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wp-header .logo-divider {
  width: 1px;
  height: 24px;
  background: var(--m12-border);
}

.wp-header .doc-type {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--m12-text-muted);
}

.wp-header .back-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--m12-blue);
  text-decoration: none;
  transition: color 0.2s;
}
.wp-header .back-link:hover { color: var(--m12-blue-dark); }

/* ── HERO / COVER ── */
.wp-hero {
  background: var(--m12-white);
  border-bottom: 1px solid var(--m12-border);
  padding: 4.5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.wp-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--m12-blue), var(--m12-cyan));
}

.wp-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.wp-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--m12-blue);
  margin-bottom: 1.5rem;
}

.wp-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: var(--m12-slate-900);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.wp-hero h1 .gradient {
  background: linear-gradient(135deg, var(--m12-blue), var(--m12-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wp-hero .subtitle {
  max-width: 700px;
  margin: 1.25rem auto 0;
  color: var(--m12-text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

.wp-hero-meta {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.wp-hero-meta div { text-align: center; }

.wp-hero-meta .label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--m12-text-muted);
}

.wp-hero-meta .value {
  font-family: var(--font-body);
  color: var(--m12-text);
  font-size: 13px;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ── AI INSIGHT BANNER ── */
.ai-banner {
  background: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(8,145,178,0.04));
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ai-banner .ai-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--m12-blue), var(--m12-cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 700;
}

.ai-banner .ai-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--m12-blue);
  margin-bottom: 0.35rem;
}

.ai-banner p {
  font-size: 14.5px;
  color: var(--m12-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ── TABLE OF CONTENTS ── */
.wp-toc {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.wp-toc h2 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--m12-blue);
  margin-bottom: 1.25rem;
}

.wp-toc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 3rem;
}

.wp-toc-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--m12-border-light);
  text-decoration: none;
  color: var(--m12-text);
  transition: color 0.2s;
}

.wp-toc-item:hover { color: var(--m12-blue); }

.wp-toc-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--m12-blue);
  min-width: 1.5rem;
}

.wp-toc-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
}

/* ── SECTIONS ── */
.wp-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  border-top: 1px solid var(--m12-border);
}

.wp-sec-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--m12-blue);
  margin-bottom: 0.5rem;
}

.wp-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--m12-slate-900);
  margin-bottom: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.wp-section h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--m12-slate-900);
  margin: 2.25rem 0 0.75rem;
  letter-spacing: 0.01em;
}

.wp-section h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--m12-slate-900);
  margin: 1.5rem 0 0.5rem;
}

.wp-section p {
  margin-bottom: 1rem;
  color: var(--m12-text-secondary);
}

.wp-section p strong { color: var(--m12-text); }

.wp-section ul, .wp-section ol {
  margin: 0.5rem 0 1.5rem 1.5rem;
}

.wp-section li {
  margin-bottom: 0.6rem;
  color: var(--m12-text-secondary);
}

.wp-section li strong { color: var(--m12-text); }

/* ── BLUF / KEY INSIGHT BOX ── */
.bluf {
  background: var(--m12-blue-light);
  border-left: 4px solid var(--m12-blue);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.bluf p { color: var(--m12-text-secondary); margin-bottom: 0; }
.bluf p strong { color: var(--m12-text); }

.bluf .bluf-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--m12-blue);
  margin-bottom: 0.5rem;
}

/* ── CALLOUT BOXES ── */
.callout {
  background: var(--m12-bg-alt);
  border: 1px solid var(--m12-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.callout p { color: var(--m12-text-secondary); }
.callout p strong { color: var(--m12-text); }
.callout p:last-child { margin-bottom: 0; }

.callout .callout-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--m12-cyan);
  margin-bottom: 0.5rem;
}

.callout.info {
  background: var(--m12-cyan-light);
  border-color: rgba(8,145,178,0.2);
}
.callout.info .callout-label { color: var(--m12-cyan); }

.callout.warning {
  background: var(--m12-red-light);
  border-color: rgba(220,38,38,0.15);
}
.callout.warning .callout-label { color: var(--m12-red); }

.callout.amber {
  background: var(--m12-amber-light);
  border-color: rgba(217,119,6,0.15);
}
.callout.amber .callout-label { color: var(--m12-amber); }

.callout.success {
  background: var(--m12-green-light);
  border-color: rgba(22,163,74,0.15);
}
.callout.success .callout-label { color: var(--m12-green); }

/* ── CARDS ── */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.75rem 0;
}

.card {
  background: var(--m12-white);
  border: 1px solid var(--m12-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--m12-slate-300);
  transform: translateY(-2px);
}

.card .icon {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  display: block;
}

.card h4 {
  font-family: var(--font-heading);
  color: var(--m12-slate-900);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.card p {
  font-size: 13.5px;
  color: var(--m12-text-muted);
  margin: 0;
  line-height: 1.65;
}

/* ── TABLES ── */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--m12-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead th {
  background: var(--m12-slate-900);
  color: var(--m12-white);
  text-align: left;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

thead th:first-child { border-radius: var(--radius-lg) 0 0 0; }
thead th:last-child { border-radius: 0 var(--radius-lg) 0 0; }

tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--m12-border-light);
  vertical-align: top;
  color: var(--m12-text-secondary);
}

tbody td strong { color: var(--m12-text); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--m12-slate-50); }

/* ── DUAL GRID (PROS/CONS) ── */
.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.dual-col {
  background: var(--m12-white);
  border: 1px solid var(--m12-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.dual-col.positive { border-top: 3px solid var(--m12-green); }
.dual-col.negative { border-top: 3px solid var(--m12-red); }

.dual-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.dual-col.positive h4 { color: var(--m12-green); }
.dual-col.negative h4 { color: var(--m12-red); }

.dual-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dual-col li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--m12-border-light);
  font-size: 13.5px;
  color: var(--m12-text-secondary);
  line-height: 1.6;
}

.dual-col li:last-child { border-bottom: none; }

.dual-col li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 13px;
}

.dual-col.positive li::before { content: "\2713"; color: var(--m12-green); }
.dual-col.negative li::before { content: "\2717"; color: var(--m12-red); }

/* ── FLOW DIAGRAMS ── */
.flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 2rem 0;
  background: var(--m12-white);
  border: 1px solid var(--m12-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.flow-box {
  flex: 1;
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid var(--m12-border-light);
}

.flow-box:last-of-type { border-right: none; }

.flow-box .flow-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--m12-blue);
  margin-bottom: 0.35rem;
}

.flow-box strong {
  font-family: var(--font-heading);
  color: var(--m12-slate-900);
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
}

.flow-box span {
  font-size: 12px;
  color: var(--m12-text-muted);
}

.flow-arrow {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: var(--m12-blue);
  padding: 0 0.15rem;
  background: var(--m12-border-light);
  font-weight: 600;
}

/* ── NUMBERED LIST ── */
.process-list {
  list-style: none;
  counter-reset: proc;
  margin: 1.5rem 0;
  padding: 0;
}

.process-list li {
  counter-increment: proc;
  padding: 16px 0 16px 56px;
  position: relative;
  border-bottom: 1px solid var(--m12-border-light);
}

.process-list li:last-child { border-bottom: none; }

.process-list li::before {
  content: counter(proc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--m12-blue);
  background: var(--m12-blue-light);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-list li strong {
  display: block;
  font-size: 15px;
  color: var(--m12-text);
  margin-bottom: 4px;
}

.process-list li span {
  font-size: 14px;
  color: var(--m12-text-muted);
}

/* ── PRIORITY HEADER ── */
.priority-header {
  display: flex;
  align-items: stretch;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.priority-num {
  flex-shrink: 0;
  width: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--m12-blue), var(--m12-cyan));
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--m12-white);
}

.priority-title-bar {
  flex: 1;
  background: var(--m12-slate-900);
  padding: 18px 28px;
  display: flex;
  align-items: center;
}

.priority-title-bar h2 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--m12-white);
  line-height: 1.4;
  margin: 0;
}

/* ── KPI TABLE ── */
.kpi-section { margin-top: 2rem; }

.kpi-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.kpi-label .blue { color: var(--m12-blue); }
.kpi-label .gray { color: var(--m12-text-muted); font-weight: 400; }

/* ── HIERARCHY VISUAL ── */
.hierarchy-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.hierarchy-card {
  background: var(--m12-white);
  border: 1px solid var(--m12-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.hierarchy-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hierarchy-card.primary {
  border-color: var(--m12-blue);
  border-width: 2px;
}

.hierarchy-card.external {
  border-color: var(--m12-amber);
  border-style: dashed;
}

.hierarchy-card .h-icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  display: block;
}

.hierarchy-card h4 {
  font-family: var(--font-heading);
  color: var(--m12-slate-900);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.hierarchy-card p {
  font-size: 12px;
  color: var(--m12-text-muted);
  margin: 0;
  line-height: 1.55;
}

.hierarchy-card .badge {
  position: absolute;
  top: -9px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
}

.hierarchy-card.primary .badge {
  background: var(--m12-blue);
  color: var(--m12-white);
}

.hierarchy-card.external .badge {
  background: var(--m12-amber-light);
  color: var(--m12-amber);
}

/* ── WBS TREE ── */
.wbs-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 2rem 0;
  padding: 2.5rem 2rem;
  background: var(--m12-white);
  border: 1px solid var(--m12-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.wbs-level {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 680px;
}

.wbs-level .level-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m12-white);
  background: var(--m12-blue);
  min-width: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0.5rem;
}

.wbs-level .level-box {
  flex: 1;
  background: var(--m12-white);
  border: 1px solid var(--m12-border);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.25rem;
}

.wbs-level .level-box strong {
  font-family: var(--font-heading);
  color: var(--m12-slate-900);
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.wbs-level .level-box span {
  font-size: 12.5px;
  color: var(--m12-text-muted);
  line-height: 1.55;
}

.wbs-connector {
  width: 2px;
  height: 16px;
  background: var(--m12-blue);
  margin-left: 36px;
  opacity: 0.25;
}

/* ── INDUSTRY CHIPS ── */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 1.5rem 0;
}

.industry-chip {
  background: var(--m12-white);
  border: 1px solid var(--m12-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--m12-slate-900);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.industry-chip:hover {
  border-color: var(--m12-blue);
  box-shadow: var(--shadow-sm);
}

.industry-chip span {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

/* ── TAGS ── */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 4px;
}

.tag.blue { background: var(--m12-blue-light); color: var(--m12-blue); }
.tag.cyan { background: var(--m12-cyan-light); color: var(--m12-cyan); }
.tag.green { background: var(--m12-green-light); color: var(--m12-green); }
.tag.slate { background: var(--m12-slate-100); color: var(--m12-slate-700); }

/* ── TIMELINE ── */
.timeline {
  position: relative;
  padding-left: 36px;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--m12-blue), var(--m12-cyan));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 0 0 2rem 28px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 3px solid var(--m12-blue);
  background: var(--m12-white);
}

.timeline-item:nth-child(2)::before { border-color: var(--m12-cyan); }
.timeline-item:nth-child(3)::before { border-color: var(--m12-cyan); }
.timeline-item:nth-child(n+4)::before { border-color: var(--m12-blue); }

.timeline-item h4 {
  font-weight: 700;
  font-size: 15px;
  color: var(--m12-slate-900);
  margin-bottom: 4px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--m12-text-muted);
  margin-bottom: 0;
}

/* ── ROADMAP ── */
.roadmap-grid { margin: 2rem 0; }

.roadmap-phase {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 100px;
  border-bottom: 3px solid var(--m12-white);
}

.phase-label {
  background: var(--m12-slate-900);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  text-align: center;
}

.roadmap-phase:nth-child(2) .phase-label { background: var(--m12-slate-700); }
.roadmap-phase:nth-child(3) .phase-label { background: var(--m12-slate-500); }

.phase-label .phase-name {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--m12-blue);
  margin-bottom: 4px;
}

.phase-label .phase-sub {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--m12-white);
}

.phase-content {
  display: grid;
  grid-template-columns: 120px 1fr;
}

.phase-time {
  background: var(--m12-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--m12-slate-900);
  text-align: center;
}

.phase-activities {
  background: var(--m12-bg-alt);
  padding: 18px 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--m12-text-secondary);
  display: flex;
  align-items: center;
}

.roadmap-phase:nth-child(even) .phase-activities {
  background: var(--m12-white);
}

/* ── USE CASE CARDS ── */
.usecase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 2rem 0;
}

.usecase-card {
  background: var(--m12-white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--m12-border);
  border-left: 4px solid var(--m12-blue);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}

.usecase-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.usecase-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--m12-blue), var(--m12-cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--m12-white);
}

.usecase-content h4 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--m12-slate-900);
  margin-bottom: 4px;
  line-height: 1.4;
}

.usecase-content p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--m12-text-muted);
  margin: 0;
}

/* ── PRIORITIES LIST ── */
.priorities-list {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.priorities-list li {
  margin-bottom: 2px;
  transition: transform 0.2s ease;
}

.priorities-list li:hover { transform: translateX(4px); }

.priorities-list li a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.priorities-list li .num {
  flex-shrink: 0;
  width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--m12-slate-900);
  color: var(--m12-blue);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
}

.priorities-list li .name {
  flex: 1;
  padding: 14px 20px;
  background: var(--m12-bg-alt);
  font-weight: 500;
  font-size: 14px;
  color: var(--m12-text);
  display: flex;
  align-items: center;
}

.priorities-list li:nth-child(even) .name {
  background: var(--m12-white);
}

/* ── VECTOR CARDS ── */
.vector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--m12-border);
}

.vector-card {
  padding: 2rem 1.75rem;
  background: var(--m12-white);
}

.vector-card:first-child {
  border-right: 1px solid var(--m12-border);
}

.vector-card .vector-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.vector-card .vector-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--m12-blue);
  margin-bottom: 6px;
}

.vector-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--m12-slate-900);
  line-height: 1.3;
  margin-bottom: 12px;
}

.vector-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--m12-text-muted);
}

.vector-card .vector-examples {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--m12-border);
}

.vector-card .vector-examples span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--m12-cyan);
  display: block;
  margin-bottom: 6px;
}

.vector-card .vector-examples p {
  font-size: 13px;
  color: var(--m12-text-muted);
  line-height: 1.7;
}

/* ── JOURNAL ENTRIES ── */
.journal {
  margin: 2rem 0;
  border: 1px solid var(--m12-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.journal-header {
  background: var(--m12-slate-900);
  color: var(--m12-white);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.journal-row {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr;
  border-bottom: 1px solid var(--m12-border-light);
}

.journal-row:last-child { border-bottom: none; }

.journal-row > div {
  padding: 12px 20px;
  font-size: 14px;
}

.journal-row.head > div {
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--m12-text-muted);
  background: var(--m12-bg-alt);
}

.journal-row .indent { padding-left: 40px; color: var(--m12-text-muted); }
.journal-row .amount {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ── DECISION TREE ── */
.decision-tree { text-align: center; margin: 1.5rem 0; }

.dt-question {
  background: var(--m12-slate-900);
  color: var(--m12-white);
  border-radius: 50px;
  padding: 10px 24px;
  display: inline-block;
  font-weight: 600;
  font-size: 13px;
}

.dt-outcome {
  background: var(--m12-white);
  border: 2px solid var(--m12-blue);
  color: var(--m12-text);
  font-size: 12px;
  max-width: 220px;
  display: inline-block;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-weight: 500;
  line-height: 1.5;
}

.dt-arrow {
  display: block;
  text-align: center;
  color: var(--m12-text-muted);
  font-size: 18px;
  margin: 4px 0;
}

.dt-branch {
  display: inline-flex;
  gap: 40px;
  justify-content: center;
  margin-top: 8px;
}

.dt-branch-col { text-align: center; }

.dt-branch-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.dt-branch-label.yes { color: var(--m12-green); }
.dt-branch-label.no { color: var(--m12-red); }

/* ── GANTT CHART ── */
.gantt-wrap { margin: 2rem 0; overflow-x: auto; }

.gantt {
  display: grid;
  grid-template-columns: 180px repeat(12, 1fr);
  gap: 2px;
  min-width: 700px;
  font-size: 12px;
}

.gantt-header {
  background: var(--m12-slate-900);
  color: var(--m12-white);
  padding: 8px 10px;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  font-family: var(--font-mono);
}

.gantt-header:first-child { text-align: left; border-radius: var(--radius) 0 0 0; }
.gantt-header:last-child { border-radius: 0 var(--radius) 0 0; }

.gantt-label {
  padding: 10px 12px;
  font-weight: 600;
  font-size: 13px;
  color: var(--m12-slate-900);
  background: var(--m12-white);
  border-bottom: 1px solid var(--m12-border-light);
  display: flex;
  align-items: center;
}

.gantt-cell {
  background: var(--m12-white);
  border-bottom: 1px solid var(--m12-border-light);
  position: relative;
}

.gantt-bar {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 4px;
  left: 2px;
  right: 2px;
}

.gantt-bar.risk { background: rgba(220,38,38,0.12); border: 1.5px solid var(--m12-red); }
.gantt-bar.lntp { background: rgba(37,99,235,0.12); border: 1.5px solid var(--m12-blue); }
.gantt-bar.contract { background: rgba(22,163,74,0.12); border: 1.5px solid var(--m12-green); }
.gantt-bar.integration { background: rgba(8,145,178,0.12); border: 1.5px solid var(--m12-cyan); }

/* ── SITE FOOTER ── */
.wp-footer {
  background: var(--m12-slate-900);
  padding: 3rem 2rem;
  text-align: center;
}

.wp-footer .footer-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--m12-blue), var(--m12-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.wp-footer p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--m12-slate-500);
  line-height: 1.7;
}

.wp-footer a {
  color: var(--m12-blue);
  text-decoration: none;
}

.wp-footer a:hover { text-decoration: underline; }

/* ── ABOUT BLOCK ── */
.about-block {
  background: var(--m12-bg-alt);
  border: 1px solid var(--m12-border);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  margin-top: 2.5rem;
}

.about-block .about-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--m12-blue);
  margin-bottom: 0.75rem;
}

.about-block .about-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--m12-blue), var(--m12-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.about-block p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--m12-text-muted);
}

.about-block .about-links {
  margin-top: 1rem;
  display: flex;
  gap: 24px;
}

.about-block .about-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--m12-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.about-block .about-links a:hover { color: var(--m12-blue-dark); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .wp-hero h1 { font-size: 24px; }
  .wp-hero-meta { gap: 1.5rem; }
  .wp-toc-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .dual-grid { grid-template-columns: 1fr; }
  .hierarchy-visual { grid-template-columns: 1fr; }
  .vector-grid { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow-arrow { padding: 0.25rem 0; justify-content: center; }
  .flow-box { border-right: none; border-bottom: 1px solid var(--m12-border-light); }
  .roadmap-phase { grid-template-columns: 1fr; }
  .phase-content { grid-template-columns: 1fr; }
  .dt-branch { flex-direction: column; gap: 20px; }
  .gantt { min-width: 600px; }
  .wp-header { flex-direction: column; gap: 8px; }
  .priority-header { flex-direction: column; }
  .priority-num { width: 100%; height: 44px; }
}

@media print {
  .wp-header { position: static; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { font-size: 11pt; }
  .wp-hero { padding: 2rem; }
}
