:root {
  --cc-ink: #55565a;
  --cc-coral: #ce6854;
  --cc-sage: #919b9b;
  --cc-graphite: #2f3337;
  --cc-charcoal: #404448;
  --cc-paper: #ffffff;
  --cc-surface: #f5f6f6;
  --cc-surface-2: #ebeef0;
  --cc-line: #d8dddd;
  --cc-muted: #73797d;
  --cc-coral-soft: #f6e7e3;
  --shadow-soft: 0 18px 42px rgba(47, 51, 55, 0.08);
  color: var(--cc-ink);
  background: var(--cc-surface);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow: hidden;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.case-shell {
  display: grid;
  grid-template-rows: 76px minmax(0, 1fr);
  height: 100vh;
  min-height: 680px;
  padding: 18px 22px 22px;
}

.topbar {
  align-items: center;
  background: var(--cc-paper);
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  display: grid;
  gap: 20px;
  grid-template-columns: 268px minmax(0, 1fr);
  padding: 12px 16px;
}

.brand {
  align-items: center;
  display: inline-flex;
  height: 42px;
}

.brand img {
  display: block;
  height: 32px;
  max-width: 230px;
  object-fit: contain;
}

.tabs {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tab {
  background: transparent;
  border-bottom: 2px solid transparent;
  color: var(--cc-muted);
  line-height: 1.15;
  min-height: 42px;
  padding: 0 10px;
  text-align: center;
  white-space: normal;
}

.tab:hover,
.tab.is-active {
  color: var(--cc-graphite);
}

.tab.is-active {
  background: var(--cc-surface);
  border-color: var(--cc-coral);
  font-weight: 700;
}

.panel {
  display: none;
  min-height: 0;
}

.panel.is-active {
  display: block;
}

.home-layout,
.process-panel {
  height: calc(100vh - 116px);
  min-height: 560px;
}

.home-layout {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding-top: 18px;
}

.home-copy,
.home-facts,
.process-panel,
.blank-panel {
  background: var(--cc-paper);
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.home-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 64px;
  position: relative;
}

.home-copy::before {
  background: var(--cc-coral);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 8px;
}

.eyebrow {
  color: var(--cc-coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: var(--cc-graphite);
  font-size: 64px;
  font-weight: 750;
  line-height: 1.02;
}

.author {
  color: var(--cc-graphite);
  font-size: 24px;
  font-weight: 700;
  margin-top: 18px;
}

.role {
  color: var(--cc-coral);
  font-size: 18px;
  font-weight: 800;
  margin-top: 6px;
}

.summary {
  color: var(--cc-muted);
  font-size: 17px;
  line-height: 1.6;
  margin-top: 30px;
  max-width: 840px;
}

.home-facts {
  align-content: center;
  display: grid;
  gap: 14px;
  padding: 26px;
}

.home-facts div {
  background: var(--cc-surface);
  border-left: 3px solid var(--cc-coral);
  padding: 16px;
}

.home-facts span,
.asis-kpis span {
  color: var(--cc-muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.home-facts strong {
  color: var(--cc-graphite);
  display: block;
  font-size: 16px;
  line-height: 1.35;
}

.process-panel {
  display: none;
  grid-template-rows: auto auto minmax(0, 1fr);
  margin-top: 18px;
  padding: 14px 16px 16px;
}

.process-panel.is-active {
  display: grid;
}

.asis-header {
  align-items: center;
  border-bottom: 1px solid var(--cc-line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 430px;
  padding-bottom: 10px;
}

.asis-header h2 {
  color: var(--cc-graphite);
  font-size: 26px;
  line-height: 1.15;
}

.asis-kpis {
  display: grid;
  gap: 8px;
  grid-template-columns: 0.8fr 0.7fr 1.35fr;
}

.asis-kpis div {
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: 6px;
  padding: 10px 12px;
}

.asis-kpis strong {
  color: var(--cc-graphite);
  display: block;
  font-size: 19px;
  line-height: 1;
}

.asis-grid {
  display: grid;
  gap: 12px;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  padding-top: 10px;
}

.flow-area {
  min-height: 0;
  min-width: 0;
}

.diagram-board {
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.mermaid-board {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 12px;
}

.mermaid-board .mermaid {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  margin: 0;
  max-height: 100%;
  max-width: 100%;
  width: 100%;
}

.mermaid-board svg {
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  width: auto;
}

.mermaid-board .node rect,
.mermaid-board .node polygon {
  filter: drop-shadow(0 7px 12px rgba(47, 51, 55, 0.08));
  rx: 7px;
}

.mermaid-board .edgeLabel {
  color: var(--cc-coral);
  font-weight: 800;
}

.pain-panel {
  background: var(--cc-coral-soft);
  border: 1px solid #edc9c0;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 10px;
  padding: 9px 12px;
}

.pain-panel h3 {
  align-self: center;
  color: var(--cc-graphite);
  font-size: 14px;
  margin: 0;
  white-space: nowrap;
}

.pain-panel ul {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pain-panel li {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid #edc9c0;
  border-left: 3px solid var(--cc-coral);
  border-radius: 999px;
  color: var(--cc-charcoal);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 8px 11px;
  white-space: nowrap;
}

.tobe-panel {
  background: #eef2f1;
  border-color: #cfd9d7;
}

.tobe-panel li {
  border-color: #cfd9d7;
  border-left-color: var(--cc-sage);
}

.blank-panel {
  height: calc(100vh - 116px);
  margin-top: 18px;
}

.action-blank,
.demo-blank {
  align-items: center;
  justify-content: center;
}

.action-blank.is-active,
.demo-blank.is-active {
  display: flex;
}

.solution-button {
  background: var(--cc-coral);
  border: 1px solid var(--cc-coral);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(206, 104, 84, 0.22);
  color: var(--cc-paper);
  display: inline-flex;
  font-size: 24px;
  font-weight: 800;
  min-width: min(560px, 86vw);
  justify-content: center;
  padding: 24px 34px;
  text-decoration: none;
}

.solution-button:hover {
  background: #b95d4c;
}

.executive-panel {
  overflow: hidden;
  padding: 44px 56px 34px;
  position: relative;
}

.executive-panel.is-active {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.exec-slide {
  align-content: center;
  display: none;
  min-height: 0;
}

.exec-slide.is-current {
  display: grid;
}

.exec-slide h2 {
  color: var(--cc-graphite);
  font-size: 46px;
  line-height: 1.08;
  max-width: 980px;
}

.exec-lead {
  color: var(--cc-muted);
  font-size: 20px;
  line-height: 1.55;
  margin-top: 24px;
  max-width: 920px;
}

.exec-signature {
  border-left: 4px solid var(--cc-coral);
  display: grid;
  gap: 5px;
  margin-top: 44px;
  padding-left: 18px;
}

.exec-signature strong {
  color: var(--cc-graphite);
  font-size: 24px;
}

.exec-signature span,
.exec-note {
  color: var(--cc-muted);
  font-size: 17px;
}

.exec-answer {
  color: var(--cc-coral);
  display: block;
  font-size: 44px;
  line-height: 1;
  margin-top: 24px;
}

.exec-equation {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.exec-equation span,
.stack-row span,
.exec-grid span {
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-left: 4px solid var(--cc-coral);
  border-radius: 8px;
  color: var(--cc-graphite);
  font-size: 17px;
  font-weight: 800;
  padding: 15px 17px;
}

.exec-equation b {
  color: var(--cc-sage);
  font-size: 30px;
}

.exec-note {
  margin-top: 22px;
}

.exec-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  max-width: 1120px;
}

.exec-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.exec-grid.compact span,
.value-grid span {
  border-left-color: var(--cc-sage);
  font-size: 15px;
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.stack-row span {
  border-left-color: var(--cc-sage);
}

.exec-force {
  background: var(--cc-coral-soft);
  border-left: 4px solid var(--cc-coral);
  border-radius: 8px;
  color: var(--cc-graphite);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  margin-top: 28px;
  max-width: 920px;
  padding: 20px 22px;
}

.exec-controls {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
}

.exec-counter {
  color: var(--cc-muted);
  font-size: 13px;
  font-weight: 800;
}

.next-slide-button {
  background: var(--cc-coral);
  border-radius: 8px;
  color: var(--cc-paper);
  font-weight: 800;
  min-width: 150px;
  padding: 14px 20px;
}

.next-slide-button:hover {
  background: #b95d4c;
}

.demo-blank div {
  text-align: center;
}

.demo-blank h2 {
  color: var(--cc-graphite);
  font-size: 56px;
  line-height: 1;
}

.demo-blank p {
  color: var(--cc-coral);
  font-size: 22px;
  font-weight: 800;
  margin-top: 18px;
}

@media (max-width: 1180px) {
  body {
    overflow: auto;
  }

  .case-shell {
    height: auto;
    min-height: 100vh;
  }

  .topbar,
  .home-layout,
  .asis-header,
  .asis-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-layout,
  .process-panel,
  .blank-panel {
    height: auto;
  }

  .diagram-board {
    min-height: 560px;
  }
}

@media (max-width: 720px) {
  .case-shell {
    padding: 12px;
  }

  .tabs,
  .asis-kpis {
    grid-template-columns: 1fr;
  }

  .home-copy {
    padding: 34px 28px;
  }

  h1 {
    font-size: 40px;
  }
}
