/* Steel Make Sure — Editorial Industrial Design System (Matches Pitch Slides 1–12 & Slide 8) */
:root {
  --canvas: #f8f7f2;
  --paper: #ffffff;
  --sand: #fbf8f1;
  --sand-deep: #f3e9d3;
  --sand-line: #dec693;

  --forest: #1f3d2e;
  --forest-mid: #2a4f3d;
  --forest-hover: #2c5540;
  --sage: #5b8d7d;
  --mint: #76bfa5;
  --mint-bright: #80d8bc;
  --mint-tint: #edf6f2;
  --mint-line: #c7e0d6;

  --gold: #e0c486;
  --gold-strong: #d4a24c;
  --amber-ink: #8a5508;
  --amber-tint: #fbf4e4;

  --coral: #c45a3b;
  --coral-bar: #e59a5c;
  --coral-tint: #fdf0eb;
  --coral-line: #e8c2b5;

  --ink: #1f3d2e;
  --ink-body: #3d5046;
  --ink-muted: #5c6e64;
  --line: #dfe5df;

  --shadow-card: 0 10px 28px rgba(31, 61, 46, 0.06), 0 2px 6px rgba(31, 61, 46, 0.04);
  --shadow-soft: 0 4px 12px rgba(31, 61, 46, 0.05);

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--canvas);
  background-image: radial-gradient(rgba(91, 141, 125, 0.11) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

button, input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold-strong);
  outline-offset: 3px;
}

#stage-heading:focus {
  outline: none;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--forest);
  color: var(--canvas);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
}

/* ---------- TOP BRAND BAR ---------- */
.topbar {
  background: var(--forest);
  color: var(--canvas);
  border-bottom: 3px solid var(--sage);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sand);
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--canvas);
}

.brand-tag {
  font-size: 11.5px;
  color: var(--mint-bright);
  font-weight: 600;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.demo-pill {
  background: rgba(251, 244, 228, 0.14);
  border: 1px solid rgba(224, 196, 134, 0.55);
  color: var(--gold);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reset-btn {
  background: transparent;
  border: 1px solid rgba(248, 247, 242, 0.35);
  color: var(--canvas);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  min-height: 34px;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.reset-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--mint-bright);
}

/* ---------- MAIN SHELL & HERO ---------- */
.page-shell {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 48px;
  flex: 1;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--forest);
}

.hero-sub {
  margin: 0 0 14px;
  font-size: 15.5px;
  color: var(--ink-body);
  line-height: 1.5;
}

.accent-rule {
  display: flex;
  align-items: center;
  max-width: 340px;
}

.accent-thick {
  width: 96px;
  height: 6px;
  background: var(--sage);
  border-radius: 3px;
}

.accent-thin {
  flex: 1;
  height: 1.5px;
  background: rgba(91, 141, 125, 0.35);
}

.case-chip {
  background: var(--sand);
  border: 1.5px solid var(--sand-line);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.case-chip-pin {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.case-chip-title {
  font-weight: 800;
  font-size: 14.5px;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-inline {
  background: var(--amber-tint);
  border: 1px solid var(--gold-strong);
  color: var(--amber-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.case-chip-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* ---------- 4-STAGE JOURNEY RAIL ---------- */
.journey-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.rail-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--line);
  background: var(--paper);
  text-align: left;
  min-height: 64px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.rail-step:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  border-color: var(--sage);
}

.rail-pin-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(212, 162, 76, 0.35);
}

.rail-step[data-tone="mint"] .rail-pin-wrap {
  background: var(--mint-tint);
  border-color: var(--mint-line);
}

.rail-step[data-tone="forest"] .rail-pin-wrap {
  background: var(--canvas);
  border-color: var(--mint-bright);
}

.rail-pin-wrap img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.rail-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rail-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-label {
  font-size: 13.5px;
  font-weight: 750;
  color: var(--forest);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Active states matching Slide 8 zone colors */
.rail-step[aria-current="step"][data-tone="gold"] {
  background: var(--sand);
  border-color: var(--gold-strong);
  box-shadow: 0 0 0 3px rgba(212, 162, 76, 0.22);
}

.rail-step[aria-current="step"][data-tone="gold"] .rail-num {
  color: var(--amber-ink);
}

.rail-step[aria-current="step"][data-tone="mint"] {
  background: var(--mint-tint);
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(118, 191, 165, 0.28);
}

.rail-step[aria-current="step"][data-tone="mint"] .rail-num {
  color: var(--forest);
}

.rail-step[aria-current="step"][data-tone="forest"] {
  background: var(--forest);
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(31, 61, 46, 0.22);
}

.rail-step[aria-current="step"][data-tone="forest"] .rail-num {
  color: var(--mint-bright);
}

.rail-step[aria-current="step"][data-tone="forest"] .rail-label {
  color: var(--canvas);
}

.rail-chevron {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-strong);
  line-height: 1;
  user-select: none;
}

.rail-firewall {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 2px;
}

.fw-line {
  width: 2px;
  height: 12px;
  background: repeating-linear-gradient(to bottom, var(--gold-strong) 0 4px, transparent 4px 7px);
}

.fw-badge {
  background: var(--forest);
  color: var(--canvas);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- MOBILE LIVE TELEMETRY RIBBON ---------- */
.mobile-meter {
  display: none;
  margin-bottom: 16px;
}

/* ---------- 2-COLUMN WORKSPACE ---------- */
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 338px;
  gap: 24px;
  align-items: start;
}

.stage-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  animation: fadeSlideIn 0.22s ease-out;
}

.stage-card[data-theme="sand"] {
  background: var(--sand);
  border-color: var(--sand-line);
}

.stage-card[data-theme="consulting"] {
  background: var(--paper);
  border-color: var(--gold-strong);
}

.stage-card[data-theme="audit"] {
  background: linear-gradient(180deg, var(--mint-tint) 0%, #f8fbf9 42%, var(--paper) 100%);
  border-color: var(--sage);
}

.stage-card[data-theme="outcome"] {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stage Header */
.stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.stage-head-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.stage-pin-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--sand-deep);
  border: 2px solid rgba(212, 162, 76, 0.45);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.stage-pin-circle.mint {
  background: var(--paper);
  border-color: var(--mint);
}

.stage-pin-circle img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stage-pill.gold {
  background: var(--gold);
  color: var(--forest);
}

.stage-pill.amber-outline {
  background: var(--amber-tint);
  border: 1.5px solid var(--gold-strong);
  color: var(--amber-ink);
}

.stage-pill.mint {
  background: var(--mint);
  color: var(--forest);
}

.stage-pill.bright-mint {
  background: var(--mint-bright);
  color: var(--forest);
}

.stage-title {
  margin: 0 0 4px;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--forest);
}

.stage-lede {
  margin: 0;
  color: var(--ink-body);
  font-size: 14.5px;
}

.quick-btn {
  background: var(--amber-tint);
  border: 1.5px solid var(--gold-strong);
  color: var(--amber-ink);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 38px;
  transition: background 0.15s ease;
}

.quick-btn:hover {
  background: var(--gold);
  color: var(--forest);
}

.quick-btn.mint {
  background: var(--mint-tint);
  border-color: var(--sage);
  color: var(--forest);
}

.quick-btn.mint:hover {
  background: var(--mint);
}

/* ---------- STEP 1: RAW FACTORY FOLDER CHIPS ---------- */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.folder-card {
  background: var(--paper);
  border: 1.5px solid #e4dac5;
  border-left: 6px solid var(--gold-strong);
  border-radius: var(--radius-lg);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.folder-card.is-clean {
  border-left-color: var(--sage);
}

.folder-card.is-open {
  box-shadow: var(--shadow-soft);
  border-color: var(--gold-strong);
}

.folder-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.folder-title {
  font-weight: 800;
  font-size: 15.5px;
  color: var(--forest);
  margin: 0;
}

.folder-ref {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-chip.warn {
  background: var(--coral-tint);
  color: var(--coral);
  border: 1px solid var(--coral-line);
}

.status-chip.amber {
  background: var(--amber-tint);
  color: var(--amber-ink);
  border: 1px solid var(--gold-strong);
}

.status-chip.ok {
  background: var(--mint-tint);
  color: var(--forest);
  border: 1px solid var(--mint);
}

.folder-summary {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-body);
}

.peek-btn {
  align-self: flex-start;
  background: transparent;
  border: 0;
  padding: 4px 0;
  color: var(--sage);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.peek-btn:hover {
  color: var(--forest);
}

.raw-preview {
  margin-top: 4px;
  background: #f6f4ee;
  border: 1px dashed #c8bfa8;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-body);
  line-height: 1.5;
}

.raw-preview strong {
  color: var(--forest);
}

.raw-preview .flag-line {
  color: var(--coral);
  font-weight: 700;
}

.messy-callout {
  margin-top: 16px;
  background: var(--sand-deep);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #5c4110;
}

.messy-callout strong {
  color: var(--forest);
}

/* ---------- STEP 2A: CONSULTING WORKBENCH ---------- */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.task-card {
  background: var(--sand);
  border: 1.5px solid #e7decb;
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.task-card.is-done {
  background: var(--mint-tint);
  border-color: var(--mint);
}

.task-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.num-badge {
  width: 36px;
  height: 30px;
  border-radius: 9px;
  background: var(--gold);
  color: var(--forest);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.task-card.is-done .num-badge {
  background: var(--forest);
  color: var(--mint-bright);
}

.num-badge.dark {
  background: var(--forest);
  color: var(--canvas);
}

.task-body {
  flex: 1;
  min-width: 0;
}

.task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.task-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--forest);
}

.impact-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--sand-line);
  color: var(--amber-ink);
}

.task-card.is-done .impact-pill {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--mint-bright);
}

.task-desc {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink-body);
}

.task-detail-box {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 61, 46, 0.1);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink-body);
  margin-bottom: 12px;
}

.task-detail-box strong {
  color: var(--forest);
}

.task-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.action-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--forest);
  color: var(--canvas);
  border: 1.5px solid var(--forest);
  border-radius: 10px;
  padding: 9px 15px;
  min-height: 42px;
  font-size: 13.5px;
  font-weight: 700;
  transition: background 0.16s ease, transform 0.12s ease;
}

.action-toggle:hover {
  background: var(--forest-hover);
  transform: translateY(-1px);
}

.action-toggle.done {
  background: var(--paper);
  color: var(--forest);
  border-color: var(--sage);
}

.action-toggle.done:hover {
  background: #e4f0ea;
}

.task-evidence-ref {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* Independence Firewall Banner (Direct Echo of Slide 8) */
.firewall-banner {
  margin-top: 18px;
  background: var(--amber-tint);
  border: 2px solid var(--gold-strong);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.shield-svg {
  width: 28px;
  height: 32px;
  flex-shrink: 0;
  margin-top: 2px;
}

.firewall-banner h3 {
  margin: 0 0 3px;
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber-ink);
}

.firewall-banner p {
  margin: 0;
  font-size: 13.5px;
  color: var(--forest);
  font-weight: 600;
}

/* ---------- STEP 2B: INDEPENDENT AUDIT ---------- */
.gate-alert {
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1.5px solid var(--mint);
  background: var(--paper);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.gate-alert.has-gaps {
  background: var(--coral-tint);
  border-color: var(--coral-line);
}

.gate-alert strong {
  display: block;
  font-size: 14.5px;
  color: var(--forest);
  margin-bottom: 3px;
}

.gate-alert.has-gaps strong {
  color: var(--coral);
}

.gate-alert p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-body);
}

.audit-section {
  background: var(--paper);
  border: 1.5px solid var(--mint-line);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
}

.audit-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.audit-section h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.balance-stat {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
}

.balance-stat .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.balance-stat .v {
  font-size: 17px;
  font-weight: 800;
  color: var(--forest);
  margin-top: 2px;
}

.balance-stat .s {
  font-size: 12px;
  color: var(--ink-muted);
}

.site-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.site-check-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--canvas);
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.site-check-item:hover {
  border-color: var(--sage);
}

.site-check-item.checked {
  background: var(--mint-tint);
  border-color: var(--mint);
}

.check-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--sage);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: transparent;
  flex-shrink: 0;
  margin-top: 1px;
  background: var(--paper);
}

.site-check-item.checked .check-circle {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--mint-bright);
}

.site-check-title {
  font-weight: 750;
  font-size: 14px;
  color: var(--forest);
}

.site-check-sub {
  font-size: 12.5px;
  color: var(--ink-body);
  margin-top: 2px;
}

.local-strip {
  margin-top: 12px;
  background: var(--forest);
  color: var(--canvas);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.local-strip strong {
  color: var(--mint-bright);
}

/* ---------- STEP 3: HERO FOREST OUTCOME CARD ---------- */
.outcome-hero {
  background: var(--forest);
  color: var(--canvas);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.outcome-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.outcome-head-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.outcome-pin {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--canvas);
  border: 3px solid var(--mint-bright);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.outcome-pin img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.outcome-hero h2 {
  margin: 0 0 5px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--canvas);
}

.outcome-hero .outcome-sub {
  margin: 0;
  color: #cfe0d7;
  font-size: 14.5px;
}

.opinion-badge {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.opinion-badge.pass {
  background: var(--mint-bright);
  color: var(--forest);
}

.opinion-badge.hold {
  background: var(--coral-bar);
  color: #2b1407;
}

/* Impact Bar Box (Direct Echo of Slide 8 Right Card) */
.impact-panel {
  background: var(--forest-mid);
  border: 1.5px solid #487562;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.impact-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-bright);
  margin: 0 0 14px;
}

.bar-row {
  margin-bottom: 14px;
}

.bar-row:last-of-type {
  margin-bottom: 10px;
}

.bar-label-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 14px;
  margin-bottom: 6px;
}

.bar-label-line strong {
  color: var(--canvas);
}

.bar-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.bar-val.mint { color: var(--mint-bright); }
.bar-val.coral { color: var(--coral-bar); }

.bar-track {
  height: 14px;
  background: #173024;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-fill.mint { background: var(--mint-bright); }
.bar-fill.coral { background: var(--coral-bar); }

.impact-caption {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(128, 216, 188, 0.22);
  font-size: 13.5px;
  color: var(--gold);
  font-weight: 700;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.deliv-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(128, 216, 188, 0.26);
  border-radius: 14px;
  padding: 14px;
}

.deliv-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--mint-bright);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.deliv-card p {
  margin: 0;
  font-size: 13px;
  color: #dce8e1;
  line-height: 1.4;
}

/* Exports & Evidence Dossier Card */
.dossier-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
}

.export-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.export-bar .btn-primary,
.export-bar .btn-secondary {
  padding: 10px 14px;
  font-size: 13.5px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.filter-pill {
  border: 1.5px solid var(--line);
  background: var(--canvas);
  color: var(--ink-body);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  min-height: 34px;
}

.filter-pill[aria-pressed="true"] {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--canvas);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.evidence-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 580px;
}

.evidence-table th {
  background: #f2f5f2;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1.5px solid var(--line);
}

.evidence-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf0ec;
  vertical-align: top;
}

.evidence-table tr:last-child td {
  border-bottom: 0;
}

.mono-id {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--forest);
  white-space: nowrap;
}

/* ---------- ACTION BUTTONS ---------- */
.stage-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1.5px solid rgba(31, 61, 46, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 11px 18px;
  min-height: 46px;
  font-size: 14.5px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.btn-primary {
  background: var(--forest);
  color: var(--canvas);
  border: 1.5px solid var(--forest);
  box-shadow: 0 4px 12px rgba(31, 61, 46, 0.18);
}

.btn-primary:hover {
  background: var(--forest-hover);
  transform: translateY(-1px);
}

.btn-primary.mint {
  background: var(--mint-bright);
  color: var(--forest);
  border-color: var(--mint-bright);
  box-shadow: none;
}

.btn-secondary {
  background: var(--paper);
  color: var(--forest);
  border: 1.5px solid #c6d2c9;
}

.btn-secondary:hover {
  background: var(--mint-tint);
  border-color: var(--sage);
}

/* ---------- LIVE STICKY SIDEBAR ---------- */
.dossier-sidebar {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.side-card.forest-card {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--canvas);
}

.side-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--sage);
  margin: 0 0 10px;
}

.forest-card .side-label {
  color: var(--mint-bright);
}

.live-figure {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.live-num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--mint-bright);
  font-variant-numeric: tabular-nums;
}

.live-num.warn {
  color: var(--coral-bar);
}

.live-unit {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #c9ddd2;
}

.live-sub {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: #cfe0d7;
}

.mini-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.mini-bar-row {
  font-size: 11.5px;
}

.mini-bar-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
  font-family: var(--font-mono);
}

.mini-track {
  height: 9px;
  background: #173024;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.mini-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.35s ease;
}

.mini-fill.mint { background: var(--mint-bright); }
.mini-fill.coral { background: var(--coral-bar); }

.breakdown-rows {
  border-top: 1px solid rgba(128, 216, 188, 0.22);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
}

.breakdown-rows div {
  display: flex;
  justify-content: space-between;
  color: #dbe8e1;
}

.breakdown-rows strong {
  font-family: var(--font-mono);
  color: var(--canvas);
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.progress-head strong {
  font-size: 15px;
  color: var(--forest);
}

.progress-head span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sage);
}

.progress-track {
  height: 10px;
  background: #e9efe9;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--mint-bright));
  border-radius: var(--radius-pill);
  transition: width 0.35s ease;
}

.entity-box {
  background: var(--sand);
  border: 1px solid var(--sand-line);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 12.5px;
  color: var(--ink-body);
}

.entity-box.mint {
  background: var(--mint-tint);
  border-color: var(--mint-line);
}

.entity-box strong {
  display: block;
  color: var(--forest);
  font-size: 13px;
  margin-bottom: 2px;
}

.spec-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #edf0ec;
  font-size: 12.5px;
}

.spec-list li:last-child {
  border-bottom: 0;
}

.spec-list span {
  color: var(--ink-muted);
}

.spec-list strong {
  color: var(--forest);
  text-align: right;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--forest);
  color: #d4e2da;
  padding: 20px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-main {
  margin: 0;
  font-size: 12.5px;
  max-width: 800px;
  line-height: 1.5;
}

.footer-main strong {
  color: var(--gold);
}

.footer-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--mint-bright);
}

/* ---------- PRINT BRIEF (Hidden on screen, crisp on PDF print) ---------- */
.print-brief {
  display: none;
}

@media print {
  body {
    background: #ffffff;
    color: #111111;
    font-size: 11pt;
  }
  .topbar, .hero, .journey-rail, .mobile-meter, .workspace-grid, .site-footer {
    display: none !important;
  }
  .print-brief {
    display: block !important;
    padding: 0;
  }
  .print-brief h1 {
    font-size: 18pt;
    margin: 0 0 4px;
    color: #1f3d2e;
  }
  .print-brief .p-sub {
    font-size: 10pt;
    color: #444;
    margin: 0 0 14px;
  }
  .print-brief .p-box {
    border: 1.5px solid #1f3d2e;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
  }
  .print-brief table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9pt;
    margin-top: 8px;
  }
  .print-brief th, .print-brief td {
    border: 1px solid #cbd5ce;
    padding: 5px 7px;
    text-align: left;
  }
  .print-brief th {
    background: #eef4f0;
  }
}

/* ---------- RESPONSIVE TABLET & MOBILE ---------- */
@media (max-width: 980px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dossier-sidebar {
    position: static;
  }
  .mobile-meter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--forest);
    color: var(--canvas);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    box-shadow: var(--shadow-soft);
  }
  .mm-left {
    display: flex;
    flex-direction: column;
  }
  .mm-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mint-bright);
  }
  .mm-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--canvas);
    font-variant-numeric: tabular-nums;
  }
  .mm-val small {
    font-size: 12px;
    font-weight: 500;
    color: #cfe0d7;
  }
  .mm-right {
    text-align: right;
    flex-shrink: 0;
  }
  .mm-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(128, 216, 188, 0.45);
    color: var(--mint-bright);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
  }
  .mm-pill.warn {
    color: var(--coral-bar);
    border-color: rgba(229, 154, 92, 0.55);
  }
  .hero {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 820px) {
  .journey-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .rail-chevron {
    display: none;
  }
  .rail-firewall {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    padding: 2px 0;
  }
  .fw-line {
    height: 2px;
    width: 56px;
    background: repeating-linear-gradient(to right, var(--gold-strong) 0 5px, transparent 5px 9px);
  }
  .folder-grid,
  .balance-grid,
  .deliverables-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    padding: 10px 14px;
  }
  .demo-pill {
    display: none;
  }
  .brand-name {
    font-size: 14.5px;
  }
  .page-shell {
    padding: 18px 14px 36px;
  }
  .stage-card,
  .outcome-hero,
  .dossier-card {
    padding: 18px 16px;
    border-radius: 18px;
  }
  .stage-head {
    flex-direction: column;
    gap: 12px;
  }
  .stage-pin-circle,
  .outcome-pin {
    width: 56px;
    height: 56px;
  }
  .stage-pin-circle img,
  .outcome-pin img {
    width: 44px;
    height: 44px;
  }
  .rail-step {
    padding: 8px 10px;
    min-height: 56px;
  }
  .rail-pin-wrap {
    width: 36px;
    height: 36px;
  }
  .rail-pin-wrap img {
    width: 28px;
    height: 28px;
  }
  .rail-label {
    font-size: 12.5px;
  }
  .stage-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
