:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f2440;
  --muted: #6b7280;
  --accent: #2f5fec;
  --accent-dark: #1f44b8;
  --good: #1f9d55;
  --warn: #d97706;
  --danger: #b91c1c;
  --border: #e5e7eb;
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

.container { max-width: 980px; margin: 0 auto; padding: 24px 20px; }

header.site {
  background: white;
  border-bottom: 1px solid var(--border);
}
header.site .inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
header.site .brand {
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
}
header.site nav a {
  margin-left: 16px;
  color: var(--text);
  font-size: 14px;
}
header.site nav a.cta {
  background: var(--accent);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
}
header.site nav a.cta:hover { background: var(--accent-dark); text-decoration: none; }

.hero {
  background: linear-gradient(135deg, #2f5fec 0%, #6b8df0 100%);
  color: white;
  padding: 56px 20px 64px;
  text-align: center;
}
.hero h1 { margin: 0 0 8px; font-size: 36px; letter-spacing: -0.4px; }
.hero p { margin: 0; opacity: 0.92; font-size: 17px; }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.industry-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: block;
  color: var(--text);
  transition: transform .08s ease, box-shadow .08s ease;
}
.industry-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(31,68,184,.10);
  border-color: var(--accent);
}
.industry-card .icon { font-size: 32px; }
.industry-card .name { font-weight: 600; margin-top: 8px; }
.industry-card .desc { color: var(--muted); font-size: 14px; margin-top: 4px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.card h2 { margin-top: 0; }
.card .meta { color: var(--muted); font-size: 14px; }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=url],
.form-group input[type=password],
.form-group input[type=number],
.form-group input[type=date],
.form-group input[type=datetime-local],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
}
.form-group textarea { min-height: 90px; }
.form-group .help { color: var(--muted); font-size: 12px; margin-top: 4px; }
.form-group .errorlist { color: var(--danger); list-style: none; padding: 0; margin: 4px 0 0; font-size: 13px; }

.option-list { display: grid; gap: 10px; }
.option-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  background: white;
  transition: border-color .08s, background .08s;
}
.option-list label:hover { border-color: var(--accent); }
.option-list input[type=radio]:checked + span,
.option-list input[type=checkbox]:checked + span { font-weight: 600; }
.option-list label:has(input:checked) {
  border-color: var(--accent);
  background: #eef3ff;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  border: none;
  padding: 11px 20px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn.secondary { background: white; color: var(--accent); border: 1px solid var(--accent); }
.btn.secondary:hover { background: #eef3ff; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.danger { background: var(--danger); }

.actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.progress { background: #e5e7eb; height: 6px; border-radius: 4px; margin-bottom: 18px; overflow: hidden; }
.progress > div { background: var(--accent); height: 100%; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge.green { background: #d1fae5; color: var(--good); }
.badge.amber { background: #fef3c7; color: var(--warn); }
.badge.gray { background: #e5e7eb; color: var(--muted); }
.badge.blue { background: #dbeafe; color: var(--accent-dark); }

table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th, table.tbl td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
table.tbl th { color: var(--muted); font-weight: 600; }

.messages { padding: 0; margin: 0 0 16px; list-style: none; }
.messages li {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}
.messages li.success { background: #d1fae5; color: var(--good); }
.messages li.error { background: #fee2e2; color: var(--danger); }
.messages li.info { background: #dbeafe; color: var(--accent-dark); }
.messages li.warning { background: #fef3c7; color: var(--warn); }

.muted { color: var(--muted); }
.tag {
  display: inline-block;
  background: #eef3ff;
  color: var(--accent-dark);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  margin-right: 4px;
  margin-top: 2px;
}

.qa-grid { width: 100%; border-collapse: collapse; margin: 0; }
.qa-grid tr { border-bottom: 1px solid var(--border); }
.qa-grid tr:last-child { border-bottom: none; }
.qa-grid th, .qa-grid td {
  text-align: left;
  padding: 12px 10px;
  vertical-align: top;
  font-weight: normal;
}
.qa-grid .qa-q { color: var(--muted); width: 42%; }
.qa-grid .qa-a { font-weight: 600; word-break: break-word; }
.qa-grid .qa-edit { width: 70px; text-align: right; white-space: nowrap; }
.qa-grid .qa-edit a { color: var(--accent); font-size: 13px; }

@media (max-width: 640px) {
  .qa-grid,
  .qa-grid tbody,
  .qa-grid tr,
  .qa-grid th,
  .qa-grid td { display: block; width: 100%; }
  .qa-grid tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .qa-grid th, .qa-grid td { padding: 2px 0; }
  .qa-grid .qa-q { color: var(--muted); font-size: 13px; }
  .qa-grid .qa-a { font-size: 16px; margin-top: 2px; }
  .qa-grid .qa-edit { text-align: left; margin-top: 4px; }
}

.inline-list { list-style: none; padding: 0; margin: 0; }
.inline-list li {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.inline-list li:last-child { border-bottom: none; }

footer.site {
  padding: 32px 20px 48px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
