* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--page-bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

.deck-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px 14px;
}

.deck-header h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.deck-header p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 14px;
}

.counter {
  min-width: 72px;
  text-align: right;
  color: #475467;
  font-weight: 700;
}

.deck-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  padding: 0 28px 16px;
}

.toc {
  min-height: 0;
  overflow: auto;
  padding: 4px 0;
}

.toc-item {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475467;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.toc-item span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e9edf5;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.toc-item.active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.toc-item.active span {
  background: var(--accent);
  color: #ffffff;
}

.stage {
  min-width: 0;
  display: grid;
  place-items: center;
}

.slide {
  width: min(1160px, 100%);
  aspect-ratio: 16 / 9;
  display: none;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: 28px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.12);
  padding: 34px;
}

.slide.active {
  display: grid;
}

.copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  min-height: 20px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.copy h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.subtitle {
  margin: 16px 0 0;
  max-width: 46ch;
  color: #667085;
  font-size: 18px;
  line-height: 1.5;
}

.steps,
.bullets {
  margin: 24px 0 0;
  padding-left: 1.25rem;
  color: #344054;
  font-size: 19px;
  line-height: 1.45;
}

.steps li,
.bullets li {
  margin: 10px 0;
  padding-left: 4px;
}

.steps li::marker {
  color: var(--accent);
  font-weight: 800;
}

.notes {
  margin-top: 24px;
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  color: #667085;
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.5;
}

.visual {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #f8fafc;
}

.visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.placeholder {
  color: #98a2b3;
  font-weight: 700;
}

.callout-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.callout {
  position: absolute;
  transform: translate(-50%, -50%);
  max-width: 190px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  padding: 7px 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.deck-controls {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 16px;
  padding: 0 28px 24px;
}

.deck-controls button {
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
  color: #344054;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
  cursor: pointer;
}

.deck-controls button:hover,
.deck-controls button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #d9e0ea;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 180ms ease;
}

@media (max-width: 900px) {
  .deck-header {
    padding: 16px;
  }

  .deck-body {
    grid-template-columns: 1fr;
    padding: 0 16px 14px;
  }

  .toc {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .toc-item {
    width: auto;
    min-width: 150px;
  }

  .slide {
    aspect-ratio: auto;
    min-height: 68vh;
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .copy h2 {
    font-size: 30px;
  }

  .subtitle,
  .steps,
  .bullets {
    font-size: 16px;
  }

  .visual {
    min-height: 260px;
  }

  .deck-controls {
    grid-template-columns: 82px minmax(0, 1fr) 82px;
    padding: 0 16px 18px;
  }
}
