/* Auxiliar.ai — clean, readable, agent-friendly */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e5e5e5;
  --warning-bg: #fef3c7;
  --warning-border: #f59e0b;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 8px;
  --max-width: 860px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

/* Layout */
main { max-width: var(--max-width); margin: 0 auto; padding: 2rem 1rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.nav-links a:hover { color: var(--accent); }

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0;
}
.hero h1 { font-size: 2.25rem; margin-bottom: 0.75rem; }
.tagline { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.category-card {
  display: block;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
}
.category-card:hover { border-color: var(--accent); }
.category-card h3 { margin-bottom: 0.25rem; }
.category-card p { color: var(--text-muted); font-size: 0.9rem; }

/* How it works */
.how-it-works ol {
  list-style: none;
  counter-reset: steps;
  margin-top: 1rem;
}
.how-it-works li {
  counter-increment: steps;
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
}
.how-it-works li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Section blocks */
.section-block {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.section-block h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Service header */
.service-header { margin-bottom: 1rem; }
.service-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.service-description { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1rem; }
.service-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.service-badges span {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.trust-badge {
  background: #dbeafe;
  color: #1e40af;
}
.trust-badge[data-score="9"], .trust-badge[data-score="10"] { background: #dcfce7; color: #166534; }
.trust-badge[data-score="5"], .trust-badge[data-score="6"] { background: #fef3c7; color: #92400e; }
.stage-badge { background: #f3f4f6; color: #374151; }
.compliance-badge { background: #ede9fe; color: #5b21b6; }

/* Summary grid */
.summary-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
}
.summary-grid dt { font-weight: 600; color: var(--text-muted); }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  font-weight: 600;
  background: #f9fafb;
}

/* Warning block */
.warning-block {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-border);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.warning-block h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.warning-block ul { padding-left: 1.25rem; }
.warning-block li { margin: 0.25rem 0; }

/* Gotcha list */
.gotcha-list { list-style: none; }
.gotcha-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.gotcha-item:last-child { border-bottom: none; }
.severity {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}
.severity-high { background: #fee2e2; color: var(--danger); }
.severity-medium { background: var(--warning-bg); color: #92400e; }
.severity-low { background: #f3f4f6; color: var(--text-muted); }

/* Integration blocks */
.integration-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.integration-block:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.integration-block h3 { font-size: 1rem; margin-bottom: 0.5rem; }
pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}
code {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}
p code, li code {
  background: #f3f4f6;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Verdict */
.verdict-block {
  padding: 1rem;
  background: #f0fdf4;
  border-radius: var(--radius);
  border: 1px solid #bbf7d0;
}
.verdict-text { font-size: 1.1rem; margin-bottom: 0.5rem; }

/* Service cards */
.service-card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.service-card h2, .service-card h3 { margin-bottom: 0.5rem; }
.service-card a { color: var(--text); text-decoration: none; }
.service-card a:hover { color: var(--accent); }
.service-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
.trust-score { font-weight: 600; }
.trust-score[data-score="8"], .trust-score[data-score="9"], .trust-score[data-score="10"] { color: var(--success); }
.trust-score[data-score="6"], .trust-score[data-score="7"] { color: #ca8a04; }

/* Comparison matrix */
.comparison-matrix th:first-child,
.comparison-matrix td:first-child {
  position: sticky;
  left: 0;
  background: var(--surface);
}

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

/* Sections */
h2 { margin-top: 2rem; margin-bottom: 1rem; }
section { margin-bottom: 3rem; }

/* Details/summary */
details { margin-top: 0.5rem; }
summary { cursor: pointer; color: var(--accent); font-size: 0.9rem; }

/* Decision box */
.decision-box { background: #f0f9ff; border-color: var(--accent); }
.decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.choose-if {
  padding: 1rem;
  background: #f0fdf4;
  border-radius: var(--radius);
  border-left: 4px solid var(--success);
}
.avoid-if {
  padding: 1rem;
  background: #fef2f2;
  border-radius: var(--radius);
  border-left: 4px solid var(--danger);
}
.choose-if h3 { color: var(--success); font-size: 0.9rem; margin-bottom: 0.5rem; }
.avoid-if h3 { color: var(--danger); font-size: 0.9rem; margin-bottom: 0.5rem; }

/* Risk badges */
.risk-list { list-style: none; }
.risk-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.risk-item:last-child { border-bottom: none; }
.risk-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.risk-high { background: #fee2e2; color: var(--danger); }
.risk-medium { background: var(--warning-bg); color: #92400e; }
.risk-low { background: #f3f4f6; color: var(--text-muted); }

/* Risk summary in cards */
.risk-summary { margin-top: 0.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; font-size: 0.85rem; }

/* Decision summary in cards */
.decision-summary { margin-bottom: 0.5rem; }
.choose-tag { color: var(--text-muted); font-size: 0.85rem; font-style: italic; }

/* Reviewed badge */
.reviewed-badge { background: #f3f4f6; color: var(--text-muted); }

/* Step labels */
.step-label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  color: var(--accent);
}
.step-label:first-child { margin-top: 0; }
.time-estimate { font-weight: 400; color: var(--text-muted); font-size: 0.85rem; }
.step-description { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.25rem; }

/* Feedback box */
.feedback-box { background: #eff6ff; border-color: var(--accent); }
.feedback-box h2 { color: var(--accent); }

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.75rem; }
  .summary-grid { grid-template-columns: 1fr; }
  .service-meta { flex-wrap: wrap; }
  table { font-size: 0.8rem; }
  th, td { padding: 0.5rem; }
}
