.demo-page {
  padding-block: 48px 70px;
}
.demo-page h1 {
  font-size: 49px;
  letter-spacing: -2.4px;
  line-height: 1.13;
  margin: 20px 0;
}
.demo-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.demo-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.demo-tabs a {
  font-size: 12px;
  padding: 9px 14px;
  border: 1px solid #d0d8ca;
  border-radius: 6px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.demo-tabs a[aria-current] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.demo-callout {
  border: 1px solid #d9dfcf;
  background: #eef1e6;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 12px;
  color: #66775a;
  max-width: 920px;
  line-height: 1.9;
}
.demo-callout strong {
  color: #43533a;
}
.demo-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 25px 0 14px;
}
.demo-actions button {
  border: 1px solid #cdd5c5;
  border-radius: 6px;
  background: #fbfcf8;
  color: var(--ink);
  font-size: 12px;
  padding: 11px 16px;
  min-height: 44px;
  cursor: pointer;
}
.demo-actions .button-primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.demo-actions button:hover {
  border-color: var(--blue);
}
.demo-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.demo-message {
  font: 11px/1.8 var(--mono);
  color: #5c7751;
  min-height: 40px;
  margin-bottom: 20px;
}
.demo-message[data-error="true"] {
  color: #aa483f;
}
.demo-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 20px 0;
}
.demo-metric {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}
.demo-metric strong {
  font-size: 30px;
  font-weight: 550;
  display: block;
  line-height: 1.3;
}
.demo-metric span {
  font-size: 11px;
  color: var(--muted);
}
.demo-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}
.demo-table {
  border-collapse: collapse;
  min-width: 700px;
  width: 100%;
  font-size: 11px;
}
.demo-table caption {
  text-align: left;
  padding: 18px;
  font-size: 14px;
  font-weight: 600;
}
.demo-table th {
  text-align: left;
  font: 9px var(--mono);
  color: #798570;
  background: #eef1e7;
  padding: 13px 18px;
  white-space: nowrap;
}
.demo-table td {
  padding: 15px 18px;
  border-top: 1px solid var(--line);
}
.demo-table td:first-child {
  font: 10px var(--mono);
  white-space: nowrap;
}
.demo-status {
  padding: 5px 7px;
  border-radius: 4px;
  font: 8px var(--mono);
  white-space: nowrap;
  background: #eaf0e1;
  color: #526b40;
}
.status-review {
  background: #f8eedc;
  color: #8c6a28;
}
.status-duplicate,
.status-unchanged {
  background: #e9edf3;
  color: #687a93;
}
.demo-editor {
  margin-top: 25px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: #fbfcf8;
}
.demo-editor summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding-block: 5px;
}
.demo-editor p {
  font-size: 12px;
  color: var(--muted);
}
.demo-editor textarea {
  display: block;
  width: 100%;
  min-height: 300px;
  resize: vertical;
  border: 1px solid #d3dccb;
  border-radius: 6px;
  background: #f6f8ef;
  color: var(--ink);
  padding: 17px;
  font: 12px/1.7 var(--mono);
}
.demo-editor textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.demo-boundary {
  font-size: 11px;
  color: #7a8572;
  line-height: 1.9;
  margin-top: 22px;
  max-width: 800px;
}
.demo-page .article-back {
  margin-bottom: 20px;
  color: #6d7d5f;
}
.demo-page > .eyebrow {
  color: #819176;
}
.demo-demo-badge {
  margin-top: 10px;
}
@media (max-width: 620px) {
  .demo-page {
    padding-block: 30px 45px;
  }
  .demo-page h1 {
    font-size: 36px;
    letter-spacing: -1.5px;
  }
  .demo-lead {
    font-size: 13px;
  }
  .demo-callout {
    padding: 14px;
    font-size: 11px;
  }
  .demo-actions {
    gap: 8px;
  }
  .demo-actions button {
    font-size: 11px;
    padding: 10px 12px;
  }
  .demo-metrics {
    gap: 8px;
  }
  .demo-metric {
    padding: 14px 12px;
  }
  .demo-metric strong {
    font-size: 26px;
  }
  .demo-metric span {
    font-size: 9px;
  }
  .demo-editor {
    padding: 14px;
  }
  .demo-editor textarea {
    font-size: 11px;
    padding: 12px;
  }
  .demo-message {
    font-size: 10px;
  }
  .demo-tabs {
    gap: 9px;
  }
  .demo-tabs a {
    font-size: 11px;
  }
}
