:root {
  --ink: #172033;
  --muted: #637083;
  --paper: #fffdf9;
  --cream: #fff7ed;
  --orange: #ff6234;
  --orange-dark: #d94117;
  --yellow: #ffd166;
  --mint: #a8e6cf;
  --blue: #c9e5ff;
  --border: #dce1e8;
  --shadow: 7px 7px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--ink);
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.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: fixed;
  z-index: 300;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--orange);
  color: white;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.deck-chrome {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgb(23 32 51 / 94%);
  color: white;
  border-bottom: 2px solid #2c3a55;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid white;
  border-radius: 9px;
  background: var(--orange);
  font-size: 0.72rem;
  box-shadow: 3px 3px 0 #0d1320;
}

.chrome-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c8d0df;
  font-size: 0.9rem;
  font-weight: 700;
}

.time-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: #2c3a55;
  color: var(--yellow);
  font-size: 0.78rem;
}

.chrome-actions {
  display: flex;
  gap: 8px;
}

.chrome-actions button,
.overview-head button {
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border: 2px solid white;
  border-radius: 10px;
  background: transparent;
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.chrome-actions button:hover,
.overview-head button:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.chrome-actions button:focus-visible,
.overview-head button:focus-visible,
.overview-card:focus-visible {
  outline: 3px solid #63a9ff;
  outline-offset: 2px;
}

.progress-bar {
  height: 5px;
  background: #2c3a55;
}

#progress-fill {
  display: block;
  height: 100%;
  width: 2%;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  transition: width 0.25s ease;
}

.deck {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 28px 20px 72px;
  outline: none;
}

.slide {
  display: none;
  width: min(1100px, 100%);
  min-height: min(68vh, 620px);
  padding: clamp(28px, 5vw, 56px);
  border: 3px solid #0d1320;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 12px 12px 0 #0d1320;
}

.slide.is-active {
  display: grid;
  align-content: center;
  gap: 22px;
  animation: rise 0.28s ease;
}

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

.slide-kicker {
  margin: 0;
  color: var(--orange-dark);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.slide h1,
.slide h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.slide .lead {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.45;
}

.visual-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip,
.flow-step,
.card,
.code-block,
.checklist li {
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: white;
}

.chip,
.flow-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--ink);
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.flow-arrow {
  color: var(--orange);
  font-size: 1.4rem;
  font-weight: 900;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  padding: 18px;
  box-shadow: 5px 5px 0 var(--ink);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card.bad {
  background: #ffe8e2;
}

.card.good {
  background: #e8fff4;
}

.card.accent {
  background: var(--cream);
}

.card.blue {
  background: var(--blue);
}

.card.mint {
  background: var(--mint);
}

.card.yellow {
  background: var(--yellow);
}

.code-block {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  background: #101828;
  color: #e8eef8;
  border-color: #0d1320;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--ink);
}

.checklist li::before {
  content: "✓";
  color: var(--orange-dark);
  font-weight: 900;
}

.before-after {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.big-promise {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.help-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  justify-content: center;
  padding: 12px 16px;
  background: rgb(23 32 51 / 96%);
  color: #c8d0df;
  border-top: 2px solid #2c3a55;
  font-size: 0.82rem;
  font-weight: 700;
}

.help-bar a {
  color: var(--yellow);
  text-decoration: none;
}

.help-bar a:hover {
  text-decoration: underline;
}

kbd {
  display: inline-block;
  min-width: 1.5em;
  padding: 2px 7px;
  border: 1px solid #4a5873;
  border-radius: 6px;
  background: #2c3a55;
  color: white;
  font-family: inherit;
  font-size: 0.78rem;
  text-align: center;
}

.overview {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: auto;
  padding: 24px;
  background: rgb(23 32 51 / 96%);
  color: white;
}

.overview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.overview-head h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.overview-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 2px solid #4a5873;
  border-radius: 14px;
  background: #101828;
  color: white;
  text-align: left;
  cursor: pointer;
}

.overview-card span {
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 800;
}

.overview-card strong {
  font-size: 0.92rem;
  line-height: 1.3;
}

.overview-card.is-current {
  border-color: var(--orange);
  background: #1d2a44;
}

@media (max-width: 720px) {
  .deck-chrome {
    flex-wrap: wrap;
  }

  .chrome-meta {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .slide {
    min-height: auto;
    border-radius: 20px;
    box-shadow: 7px 7px 0 #0d1320;
  }

  .help-bar span:nth-child(n + 3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide.is-active,
  #progress-fill {
    animation: none;
    transition: none;
  }
}
