/* Pitch deck. Chart colors stay in gantt.css. Type scale lives with the page. */
html {
  color-scheme: dark;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 40;
  padding: 0.6rem 0.9rem;
  background: var(--pm);
  color: #0f1115;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

.deck {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

.deck::-webkit-scrollbar,
.slide::-webkit-scrollbar {
  display: none;
}

.slide {
  height: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  align-content: safe center;
  padding: 2.25rem 4.75rem 1.5rem 1.75rem;
}

.slide:focus {
  outline: none;
}

.slide:focus-visible {
  outline: 2px solid var(--processing);
  outline-offset: -6px;
}

.slide-inner {
  width: min(68rem, 100%);
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand svg {
  display: block;
  flex: 0 0 auto;
}

h1,
h2 {
  font-weight: 650;
  margin: 0;
}

h2 {
  margin-bottom: 0.85rem;
}

p {
  margin: 0.45rem 0;
  max-width: 42rem;
}

.kicker {
  margin: 0 0 0.45rem;
  color: var(--pm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tagline {
  margin-top: 1.25rem;
  font-weight: 650;
  max-width: 28em;
}

.lede,
.jump-label,
.honesty,
.why,
footer {
  color: var(--muted);
}

.stat {
  margin-top: 1.5rem;
  max-width: none;
}

.stat strong,
.jump,
.metric strong,
td.num,
th.num {
  font-variant-numeric: tabular-nums;
}

td.num,
th.num,
.step-no,
.roadmap span,
.counter {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.stat strong {
  display: block;
  font-weight: 650;
  line-height: 1.05;
  color: var(--text);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 1rem 0 1.1rem;
  padding: 0;
}

.steps li,
.metric,
.roadmap li {
  margin: 0;
  background: var(--panel);
  border-radius: 6px;
}

.steps li {
  padding: 0.9rem 0.95rem 1rem;
}

.step-no {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--pm);
  font-weight: 700;
}

.steps strong {
  display: block;
  margin-bottom: 0.3rem;
}

.steps p,
.roadmap p {
  margin: 0;
  max-width: none;
}

.card-shot {
  display: block;
  width: min(100%, 920px);
  height: auto;
  max-height: 38vh;
  object-fit: contain;
  object-position: left center;
  background: #fff;
  border-radius: 6px;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.8rem;
  margin: 0.2rem 0;
  font-weight: 650;
  line-height: 1.05;
  max-width: none;
}

.jump .to {
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-scroll {
  margin-top: 1rem;
  max-width: 100%;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

caption {
  caption-side: bottom;
  padding-top: 0.55rem;
  color: var(--muted);
  text-align: left;
}

th,
td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--idle);
  text-align: left;
  vertical-align: baseline;
}

thead th {
  color: var(--muted);
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

td.num,
th.num {
  text-align: right;
}

tr.ours {
  box-shadow: inset 3px 0 0 var(--pm);
}

tr.ours td,
tr.ours th {
  font-weight: 650;
}

.mark {
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--pm);
  font-family: system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.honesty {
  margin-top: 0.9rem;
}

#amd {
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.16), transparent 32%),
    var(--bg);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.metric {
  padding: 0.85rem 0.95rem;
}

.metric strong {
  display: block;
  font-weight: 650;
  line-height: 1.2;
}

.metric span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.why {
  margin-top: 0.4rem;
}

.roadmap {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.roadmap li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem 1rem;
}

.roadmap span {
  color: var(--pm);
  font-weight: 700;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.1rem;
  align-items: center;
}

.links a {
  color: var(--text);
  font-weight: 650;
  text-underline-offset: 0.18em;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 0.4rem;
  padding: 0.75rem 1.5rem;
  background: var(--pm);
  color: #0f1115;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
}

.cta:hover {
  filter: brightness(1.08);
}

.cta:focus-visible,
.dots button:focus-visible,
.arrows button:focus-visible,
.links a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.dots {
  position: fixed;
  z-index: 30;
  top: 50%;
  right: 0.15rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
}

.dots button,
.arrows button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.dots button i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
  display: block;
}

.dots button[aria-current="true"] i {
  height: 22px;
  border-radius: 4px;
  background: var(--text);
}

.chrome {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.35rem 3.25rem 0.55rem;
}

.arrows {
  display: flex;
  gap: 0.35rem;
  padding: 0.15rem;
  background: var(--panel);
  border-radius: 999px;
}

.arrows button {
  border-radius: 999px;
}

.arrows button:hover,
.dots button:hover {
  background: var(--idle);
}

.arrows button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  background: transparent;
}

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

.gantt .controls button,
.gantt .controls select {
  min-height: 44px;
}

footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--panel);
}

footer p {
  margin: 0;
}

@media (max-width: 800px) {
  .steps,
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  #methods thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  #methods,
  #methods tbody,
  #methods tr,
  #methods th,
  #methods td {
    display: block;
    width: auto;
    min-width: 0;
    text-align: left;
  }

  #methods tr {
    margin: 0 0 0.65rem;
    padding: 0.75rem 0.85rem;
    background: var(--panel);
    border-radius: 6px;
  }

  #methods td {
    border-bottom: 0;
    padding: 0.35rem 0 0;
  }

  #methods td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-family: system-ui, sans-serif;
    font-weight: 650;
  }

  #methods td.num {
    font-family: system-ui, sans-serif;
  }

  #methods caption {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 0.75rem;
  }
}

@media (max-width: 640px) {
  .slide {
    align-content: start;
    padding: 1.25rem 3.25rem 1.25rem 1rem;
  }

  .steps,
  .metrics,
  .roadmap li {
    grid-template-columns: 1fr;
  }

  .card-shot {
    max-height: none;
  }
}

@media (max-height: 520px) {
  .dots button {
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deck {
    scroll-behavior: auto;
  }

  .cta:hover {
    filter: none;
  }
}
