:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --panel: #ffffff;
  --text: #18202a;
  --muted: #66717f;
  --line: #dfe4ea;
  --accent: #1769aa;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
}

.brand:hover {
  text-decoration: none;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.topnav a {
  color: var(--text);
  font-weight: 600;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer a {
  color: var(--muted);
  font-weight: 700;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin: 0 0 18px;
  box-shadow: 0 1px 2px rgb(20 32 48 / 0.04);
}

.narrow {
  max-width: 520px;
}

.legal {
  max-width: 820px;
}

.legal h2 {
  margin-top: 24px;
}

h1,
h2 {
  margin: 0 0 12px;
  line-height: 1.2;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 19px;
}

.muted {
  color: var(--muted);
}

.error {
  color: var(--danger);
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.lead {
  max-width: 660px;
  color: #374151;
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.actions,
.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.actions form {
  margin: 0;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0 14px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.button:hover {
  text-decoration: none;
}

.secondary,
.button.secondary {
  background: white;
  color: var(--accent);
}

.danger {
  background: var(--danger);
  border-color: var(--danger);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.row-actions form {
  margin: 0;
}

.form {
  display: grid;
  gap: 14px;
}

.form.compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

label.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  background: white;
}

textarea {
  resize: vertical;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
}

.truncate {
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  overflow-x: auto;
  background: #111827;
  color: #f9fafb;
  border-radius: 8px;
  padding: 14px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 16px;
}

.meta span,
.status {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  background: #fbfcfd;
}

.description {
  font-size: 18px;
  white-space: pre-wrap;
}

.screenshot {
  display: block;
  width: min(100%, 900px);
  max-height: 70vh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f4f6;
}

.keyvalue th {
  width: 150px;
}

.activity {
  padding-left: 20px;
}

.activity li {
  margin-bottom: 12px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
  min-height: 62vh;
  padding: 36px 0 28px;
}

.home-hero h1 {
  max-width: 760px;
  font-size: 44px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.home-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: white;
  box-shadow: 0 20px 60px rgb(20 32 48 / 0.12);
}

.preview-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #c7d2fe;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.home-preview dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.home-preview dl div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
}

.home-preview dt {
  color: var(--muted);
  font-weight: 700;
}

.home-preview dd {
  margin: 0;
}

.demo-hero {
  min-height: 68vh;
  padding: 40px 0;
}

.demo-hero h1 {
  font-size: 42px;
}

.demo-box {
  margin-top: 24px;
  max-width: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: white;
}

@media (max-width: 760px) {
  .header,
  .footer,
  .detail-head,
  .actions {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .feature-grid,
  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero h1 {
    font-size: 34px;
  }

  .form.compact {
    grid-template-columns: 1fr;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
