/* AgentIndex Phase 1 — dark, terminal-inspired, mobile-first. No JS, no gradients. */
:root {
  --bg: #101418;
  --bg-raised: #171c22;
  --border: #2a313a;
  --text: #d5dbe1;
  --text-dim: #9aa4ae;
  --accent: #7eb8a2;
  --accent-dim: #5d8f7d;
  --warn: #c9a86a;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

main, .site-header, .breadcrumbs ol, .site-footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; color: var(--text); }
h1 { font-size: 1.6rem; }
h2 {
  font-size: 1.15rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
}

code, .brand, .tagline, .count, .price-hint, .last-updated, .badge {
  font-family: var(--mono);
}

code {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 0 0.25rem;
  font-size: 0.875em;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.brand { color: var(--text); font-size: 1.1rem; font-weight: 700; }
.brand::before { content: "$ "; color: var(--accent-dim); }
.site-nav { display: flex; gap: 1rem; font-size: 0.9rem; }

/* Breadcrumbs */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.breadcrumbs li + li::before {
  content: "/ ";
  margin-right: 0.35rem;
  color: var(--border);
}

/* Lists */
.category-list, .service-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.category-list > li, .service-list > li, .submit-form, .pricing-table {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  padding: 0.75rem 1rem;
}

.category-list p, .service-list p {
  margin: 0.25rem 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.count, .price-hint { color: var(--text-dim); font-size: 0.8rem; }

/* Badges */
.badge {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.8rem;
}

.badge-listed { color: var(--warn); border-color: var(--warn); }
.badge-verified { color: var(--accent); border-color: var(--accent); }

/* Pricing table */
.pricing-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.pricing-table th, .pricing-table td {
  padding: 0.4rem 0.5rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.pricing-table tr:last-child th, .pricing-table tr:last-child td { border-bottom: none; }
.pricing-table th { color: var(--text-dim); font-weight: 600; white-space: nowrap; }

/* Submit stub form */
.submit-form { display: grid; gap: 0.75rem; margin: 1rem 0; }
.submit-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.submit-form input, .submit-form select, .submit-form button {
  background: var(--bg);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 0.45rem 0.6rem;
  font-family: var(--mono);
}

.submit-form fieldset {
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  display: grid;
  gap: 0.5rem;
}

.submit-form legend { color: var(--text-dim); font-size: 0.85rem; }

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.last-updated { color: var(--text-dim); font-size: 0.8rem; }

/* Larger viewports */
@media (min-width: 40rem) {
  h1 { font-size: 2rem; }
  .category-list { grid-template-columns: 1fr 1fr; }
}
