.output-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 48px;
  margin-top: 88px;
  padding: 58px;
  color: var(--paper-light);
  background: var(--blue);
  border: 1px solid var(--ink);
}

.output-intro .section-number { color: var(--acid); }

.output-intro p:not(.section-number) {
  max-width: 380px;
  margin: 20px 0 30px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.output-intro code {
  color: var(--acid);
  font-family: var(--mono);
}

.copy-button {
  display: inline-flex;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
  min-width: 220px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--acid);
  border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font: 600 12px/1 var(--mono);
}

.copy-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.copy-button kbd {
  padding: 3px 5px;
  background: rgba(23, 23, 20, 0.11);
  border: 0;
  font: inherit;
}

/* Sits under the button because it is a property of what the button copies. */
.output-intro p.export-stats {
  max-width: none;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font: 10px/1 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.export-stats span {
  color: var(--acid);
  font-weight: 600;
}

.code-window {
  min-width: 0;
  background: #10110f;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 12px 12px 0 rgba(12, 24, 65, 0.55);
}

.code-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.code-bar span {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

.code-bar span:nth-child(2) { background: #f2ca52; }
.code-bar span:nth-child(3) { background: #5bc48a; }

.code-bar small {
  margin-left: auto;
  color: #7f847a;
  font: 10px/1 var(--mono);
}

.code-window pre {
  max-height: 520px;
  margin: 0;
  padding: 24px;
  overflow: auto;
  white-space: pre-wrap;
}

/* The block is focusable so it can be scrolled and copied from the keyboard. */
.code-window pre:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: -2px;
}

.code-window code {
  color: #e4e0d3;
  font: 12px/1.75 var(--mono);
}

footer {
  display: flex;
  justify-content: space-between;
  margin-top: 66px;
  padding: 30px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--ink);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  padding: 13px 16px;
  color: var(--ink);
  background: var(--acid);
  border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font: 600 11px/1 var(--mono);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  animation: rise 620ms cubic-bezier(0.2, 0.75, 0.25, 1) forwards;
}

.reveal-1 { animation-delay: 40ms; }
.reveal-2 { animation-delay: 110ms; }
.reveal-3 { animation-delay: 190ms; }
.reveal-4 { animation-delay: 260ms; }

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