:root {
  --navy: #15244c;
  --blue: #2f5089;
  --orange: #f36d21;
  --ink: #3b3b3b;
  --muted: #64707d;
  --line: #d9dee8;
  --paper: #fffdf7;
  --wash: #f4f0e8;
  --blue-wash: #eaf1fb;
  --green: #2f7d57;
  --green-wash: #e9f6ee;
  --amber: #aa6b16;
  --amber-wash: #fff3d7;
  --red: #b8463b;
  --red-wash: #fff0ee;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(21, 36, 76, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 36, 76, 0.025) 1px, transparent 1px),
    var(--wash);
  background-size: 28px 28px;
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.35;
}

a {
  color: inherit;
}

.topbar {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 20;
  display: flex;
  gap: 6px;
  align-items: center;
  max-width: calc(100vw - 28px);
  padding: 7px 9px;
  border: 1px solid rgba(21, 36, 76, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 10px 30px rgba(21, 36, 76, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.topbar a {
  min-width: 30px;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.topbar a:hover {
  background: var(--blue-wash);
}

.deck {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.slide {
  position: relative;
  display: grid;
  min-height: calc(100vh - 56px);
  margin: 0 0 28px;
  padding: clamp(44px, 5vw, 78px);
  overflow: hidden;
  border: 2px solid rgba(21, 36, 76, 0.78);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 60px rgba(21, 36, 76, 0.12);
}

.slide::before {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px dashed rgba(21, 36, 76, 0.16);
  border-radius: 6px;
}

.slide::after {
  content: attr(data-frame);
  position: absolute;
  right: 34px;
  bottom: 26px;
  color: rgba(21, 36, 76, 0.38);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(52px, 7vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  max-width: 920px;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: 0;
}

.lead {
  max-width: 920px;
  color: #34404c;
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.18;
}

.rule {
  width: min(520px, 58vw);
  height: 5px;
  margin: 22px 0 34px;
  background: var(--orange);
  border-radius: 99px;
  transform: rotate(-0.35deg);
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.marker {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 2px solid var(--orange);
  border-radius: 7px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

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

.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 24px;
  align-items: start;
}

.split-even {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.panel,
.tile,
.mini-card,
.flow-step,
.table-card,
.callout {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
  box-shadow: 0 2px 0 rgba(26, 54, 103, 0.08);
}

.panel {
  padding: 22px;
}

.tile {
  min-height: 138px;
  padding: 20px;
  border-color: rgba(26, 54, 103, 0.34);
}

.tile:nth-child(2),
.panel.sketch {
  transform: rotate(0.35deg);
}

.tile:nth-child(3),
.callout {
  transform: rotate(-0.25deg);
}

.tile strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(25px, 2.4vw, 42px);
  line-height: 1;
}

.tile span,
.mini-card span {
  color: var(--muted);
  font-size: 15px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.pill.good {
  background: var(--green-wash);
  color: var(--green);
}

.pill.review {
  background: var(--amber-wash);
  color: var(--amber);
}

.pill.info {
  background: var(--blue-wash);
  color: var(--navy);
}

.pill.red {
  background: var(--red-wash);
  color: var(--red);
}

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

.mini-card {
  min-height: 92px;
  padding: 14px;
  background: #fbfdff;
}

.mini-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
  font-size: 15px;
}

.table-card {
  overflow: hidden;
}

.table-row,
.table-head {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e8ebef;
  font-size: 14px;
}

.table-head {
  background: #f8fafd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-row:last-child {
  border-bottom: 0;
}

.vendor-table .table-head,
.vendor-table .table-row {
  grid-template-columns: 0.7fr 1fr 0.7fr 0.8fr;
}

.exclusion-table .table-head,
.exclusion-table .table-row {
  grid-template-columns: 1.2fr 0.6fr 0.8fr 0.8fr;
}

.bom-table .table-head,
.bom-table .table-row {
  grid-template-columns: 0.9fr 0.65fr 0.5fr 0.85fr 0.75fr;
}

.price-table .table-head,
.price-table .table-row {
  grid-template-columns: 0.85fr 1.3fr 0.75fr 0.75fr;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-top: 36px;
}

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

.flow-step {
  position: relative;
  min-height: 196px;
  padding: 20px;
}

.flow-step:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 78px;
  right: -16px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 20px;
  font-weight: 900;
  line-height: 26px;
  text-align: center;
  z-index: 1;
}

.flow-step .num {
  display: block;
  margin-bottom: 18px;
  color: rgba(26, 54, 103, 0.35);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.callout {
  padding: 22px;
  border: 2px solid var(--orange);
  background: #fff9f2;
}

.callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 24px;
}

.callout p {
  margin-bottom: 0;
  color: #3a4450;
  font-size: 18px;
}

.band {
  position: relative;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
}

.band span {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 99px;
  background: var(--green-wash);
}

.band i {
  position: absolute;
  top: -5px;
  width: 5px;
  height: 28px;
  border-radius: 99px;
  background: var(--green);
}

.band i.review {
  background: var(--red);
}

.check-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px solid #e7eaee;
}

.check-row:last-child {
  border-bottom: 0;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--green-wash);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.check.warn {
  background: var(--amber-wash);
  color: var(--amber);
}

@media (max-width: 980px) {
  .deck {
    padding: 16px;
  }

  .slide {
    min-height: auto;
    padding: 72px 22px 52px;
  }

  .cols,
  .cards,
  .flow,
  .flow.three,
  .two,
  .split-even {
    grid-template-columns: 1fr;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .flow-step:not(:last-child)::after {
    top: auto;
    right: calc(50% - 14px);
    bottom: -16px;
    transform: rotate(90deg);
  }

  .table-head {
    display: none;
  }

  .table-row,
  .vendor-table .table-row,
  .exclusion-table .table-row,
  .bom-table .table-row,
  .price-table .table-row {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar {
    display: none;
  }

  .deck {
    width: 100%;
    padding: 0;
  }

  .slide {
    min-height: 100vh;
    margin: 0;
    page-break-after: always;
    box-shadow: none;
  }
}
