/* C4AIL Demos — shared design system
 * Palette + layout primitives used across every tool.
 * v0.1.0 — 2026-06-03
 */

:root {
  --bg: #0a1628;
  --bg-card: #142236;
  --bg-elevated: #1a2c44;
  --border: #2a3f5f;
  --text: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #f5a623;
  --accent-soft: rgba(245, 166, 35, 0.12);
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --blue: #60a5fa;
  --link: #fcd34d;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px dashed rgba(252, 211, 77, 0.4);
}
a:hover {
  border-bottom-color: var(--link);
}

/* ── header ──────────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand a {
  color: var(--text);
  border-bottom: none;
}
.brand .mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #d97706);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--bg);
  font-size: 14px;
}
.brand .sub {
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
  font-size: 14px;
}

/* ── audience switcher ───────────────────────────────────── */

.audience {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.audience .label {
  margin-right: 4px;
}
.audience .chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
}
.audience .chip:hover {
  color: var(--text);
  border-color: var(--text-muted);
}
.audience .chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── page layout ─────────────────────────────────────────── */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 28px 96px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 24px;
  margin: 48px 0 18px;
  font-weight: 600;
}
h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 600;
}
.lede {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 36px;
}

/* ── tool grid (landing page) ────────────────────────────── */

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.tool {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.tool:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.tool.coming-soon {
  opacity: 0.62;
  cursor: not-allowed;
}
.tool.coming-soon:hover {
  border-color: var(--border);
  transform: none;
}
.tool .step {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.tool h3 {
  margin: 0;
  font-size: 20px;
}
.tool p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}
.tool .status {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  align-self: flex-start;
}
.tool .status.live {
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.4);
}

/* ── arc footer (next/prev tool) ─────────────────────────── */

.canon-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 28px;
  margin-top: 80px;
}
.canon-footer .wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.canon-footer .meta {
  color: var(--text-muted);
  font-size: 13px;
  max-width: 520px;
}
.canon-footer .meta strong {
  color: var(--accent);
  font-weight: 600;
}
.canon-footer .arc {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
}

/* ── plain-English term link ─────────────────────────────── */

.term {
  font-style: italic;
  color: var(--link);
  border-bottom: 1px dotted rgba(252, 211, 77, 0.4);
}

/* ── placeholder page ────────────────────────────────────── */

.placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 56px 36px;
  text-align: center;
}
.placeholder .badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.placeholder h1 {
  margin-bottom: 12px;
}
.placeholder p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  h1 {
    font-size: 30px;
  }
  .lede {
    font-size: 17px;
  }
  main {
    padding: 32px 18px 64px;
  }
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
