.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(23rem, 1.1fr);
  gap: 2rem;
  align-items: start;
  padding: 3rem 0 2.5rem;
}

.hero-copy,
.hero-receipt {
  min-width: 0;
}

.landing-hero h1 {
  max-width: 16ch;
  text-transform: lowercase;
}

.landing-hero .lead {
  max-width: 58ch;
}

.hero-receipt {
  margin-top: 0.35rem;
}

.receipt-replay {
  justify-self: start;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--rule);
  padding: 0.62rem 0.8rem;
  background: var(--paper-high);
  color: var(--stamp);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: left;
}

.receipt-replay:hover {
  color: var(--ink);
}

.receipt-line.stepped {
  animation: receiptStep 120ms steps(2) both;
  animation-delay: calc(var(--step-index) * 70ms);
}

@keyframes receiptStep {
  from {
    background: var(--paper-high);
  }
  to {
    background: var(--paper);
  }
}

.bug-copy,
.split-section,
.receipt-layout,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 2rem;
  align-items: start;
}

.bug-copy {
  margin-bottom: 1.2rem;
}

.bug-copy p,
.split-section p {
  margin-top: 0;
  color: var(--ink-muted);
}

.demo-frame {
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  background: var(--paper-high);
}

.demo-frame iframe {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 0;
}

.receipt-layout {
  align-items: start;
}

.receipt-code {
  margin: 0;
  max-height: 540px;
}

.narrow {
  max-width: 840px;
}

.genre-table {
  margin-top: 1.4rem;
}

.genre-table > div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  background: var(--paper-high);
}

.genre-table strong {
  font-family: var(--font-mono);
  font-weight: 500;
}

.genre-table span {
  color: var(--ink-muted);
}

.cost-section {
  padding: 2rem;
  border: 1px solid var(--rule);
  background: var(--paper-high);
}

.cost-section .eyebrow {
  border-color: var(--stamp);
}

.cost-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.cost-list a {
  color: var(--stamp);
  text-decoration: none;
}

.footer-strip pre {
  margin: 0.7rem 0 0;
}

.footer-strip p {
  margin: 0 0 0.7rem;
}

@media (prefers-reduced-motion: reduce) {
  .receipt-line.stepped {
    animation: none;
  }
}

@media (max-width: 900px) {
  .landing-hero,
  .bug-copy,
  .split-section,
  .receipt-layout,
  .footer-grid,
  .genre-table > div {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    gap: 1rem;
    padding: 0.9rem 0 0.75rem;
  }

  .landing-hero h1 {
    margin-top: 0.65rem;
    font-size: 2rem;
  }

  .landing-hero .lead {
    margin-top: 0.75rem;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .hero-claim {
    font-size: 1.05rem;
  }

  .hero-receipt .receipt-line:nth-child(2),
  .hero-receipt .receipt-line:nth-child(4),
  .hero-receipt .receipt-line:nth-child(5) {
    display: none;
  }

  .hero-receipt .receipt-line {
    padding: 0.35rem 0.45rem;
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .hero-receipt .receipt-head,
  .receipt-replay {
    font-size: 0.65rem;
    padding: 0.45rem 0.55rem;
  }

  .hero-receipt .receipt-replay {
    display: none;
  }

  .demo-frame iframe {
    min-height: 720px;
  }
}
