:root {
  --bg: #0f1419;
  --text: #f4f7fb;
  --accent: #2dd4bf;
  --accent-dim: #14b8a6;
  --muted: #94a3b8;
  --surface: #1a2332;
  --border: #2d3a4f;
  --warn: #fbbf24;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 12px;
  --max-width: 960px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent); }

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warn);
  border: 1px solid var(--warn);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.hero .sub, .muted { color: var(--muted); }

.section { margin: 2rem 0; }
.section h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.chat-messages {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  min-height: 200px;
  max-height: 420px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.msg {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  max-width: 92%;
  white-space: pre-wrap;
}

.msg-ai {
  background: #243044;
  margin-right: auto;
}

.msg-user {
  background: #0d4f4a;
  margin-left: auto;
  text-align: right;
}

.chat-form {
  display: flex;
  gap: 0.5rem;
}

.chat-form input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font: inherit;
}

.chat-form button {
  background: var(--accent-dim);
  color: #042f2e;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
}

.chat-form.loading button { opacity: 0.6; cursor: wait; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.results-table th,
.results-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.results-table th {
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.results-table tbody tr:hover { background: rgba(45, 212, 191, 0.06); }

.provider-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.provider-link:hover { text-decoration: underline; }

.sort-bar { margin: 1rem 0; }
.sort-bar select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  margin-left: 0.5rem;
}

.criteria-details {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.criteria-details pre {
  overflow-x: auto;
  font-size: 0.8rem;
  color: var(--muted);
}

.disclaimer.compliance {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.hidden { display: none !important; }
