/* agent-observability presentation — light theme.
 * Grafana-accented variant of the splunk-poc-presentation stylesheet.
 * No external dependencies. */

:root {
  --bg:           #ffffff;
  --bg-soft:      #f8f7f5;
  --bg-stat:      #f4f0eb;
  --text:         #14181c;
  --text-soft:    #475569;
  --text-muted:   #6b7785;
  --accent:       #f46800;   /* Grafana orange */
  --accent-soft:  #fdecdc;
  --accent-dark:  #c44d00;
  --border:       #e5e7eb;
  --border-soft:  #eef0f3;
  --code-bg:      #f0f1f3;
  --code-text:    #1f2937;
  --done:         #047857;
  --done-bg:      #ecfdf5;
  --hl-bg:        #fef9e7;
  --shadow:       0 1px 2px rgba(20,24,28,0.04), 0 1px 1px rgba(20,24,28,0.02);
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "ss01", "cv02", "cv11";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

@media (min-width: 700px) {
  main { padding: 5rem 2rem 7rem; }
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
a:hover, a:focus {
  border-bottom-color: var(--accent);
  color: var(--accent-dark);
}

h1, h2, h3, h4 {
  font-weight: 650;
  letter-spacing: -0.011em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
}

h2 {
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 0;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.8rem 0 0.6rem;
  color: var(--text);
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0 0.4rem;
}

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
ul li, ol li { margin: 0.25rem 0; }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;
  font-size: 0.86em;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 0.12em 0.4em;
  border-radius: 4px;
}

strong { font-weight: 600; }

em { font-style: italic; color: var(--text-soft); }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2.5rem;
  margin-bottom: 3rem;
}

.hero .meta {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 65ch;
  margin-bottom: 1.8rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: white;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover, .btn-secondary:focus {
  border-color: var(--text);
  color: var(--text);
}

/* ── ACCESS NOTE under the hero CTA row ───────────────────────── */
.access-note {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.access-note strong { color: var(--accent-dark); }

/* ── STATS ────────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
  margin: 0 0 3rem;
  padding: 1.2rem 1.5rem;
  background: var(--bg-stat);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
}

.stat .num {
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}
.stat .num .small {
  font-size: 0.65em;
  color: var(--text-muted);
  font-weight: 500;
}
.stat .label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── TOC ──────────────────────────────────────────────────────── */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.88rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  padding-bottom: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.toc a {
  color: var(--text-muted);
  border-bottom: none;
}
.toc a:hover, .toc a:focus {
  color: var(--accent);
}

/* ── CAPABILITY SECTIONS ──────────────────────────────────────── */
.capability {
  position: relative;
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--border-soft);
  scroll-margin-top: 1rem;
}

.cap-num {
  color: var(--accent);
  font-weight: 600;
  margin-right: 0.15em;
}

/* ── SCREENSHOT FIGURES ───────────────────────────────────────── */
.figure {
  margin: 1.5rem 0 1rem;
}
.figure img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}
.figure figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* Modifier for inline diagrams (SVG vector art) where the screenshot-style
 * border + shadow look heavy. Keeps the caption styling. */
.figure-plain img {
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

.approach {
  font-size: 1.02rem;
  color: var(--text);
  margin: 0.5rem 0 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}
.approach strong { color: var(--accent-dark); }

.note {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-top: -0.4rem;
}

.links {
  list-style: none;
  padding-left: 0;
}
.links li {
  margin: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
}
.links li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* ── RULES / METRICS TABLE ────────────────────────────────────── */
.rules {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.8rem 0 1.5rem;
}
.rules th, .rules td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.rules th {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.rules tr.hl { background: var(--hl-bg); }
.rules tr.hl td:first-child { font-weight: 600; }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  background: var(--accent);
  color: white;
  padding: 0.1em 0.45em;
  border-radius: 4px;
  margin-left: 0.4em;
  vertical-align: middle;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── PIPELINE BLOCKS ──────────────────────────────────────────── */
.pipeline {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 0.8rem 0 1.2rem;
}
.pipeline h4 {
  margin-top: 0;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.92rem;
  color: var(--accent-dark);
}
.pipeline p, .pipeline ol { font-size: 0.93rem; }
.pipeline ol { padding-left: 1.4rem; }
.pipeline ol li { margin: 0.3rem 0; }

/* ── NUMBERED FLOW LIST ───────────────────────────────────────── */
.flow {
  list-style: none;
  counter-reset: flow-step;
  padding-left: 0;
}
.flow li {
  counter-increment: flow-step;
  position: relative;
  padding: 0.6rem 0 0.6rem 2.6rem;
  border-bottom: 1px solid var(--border-soft);
}
.flow li::before {
  content: counter(flow-step);
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow li:last-child { border-bottom: none; }

/* ── ARCHITECTURE DIAGRAM (ASCII / mermaid-ish) ───────────────── */
.diagram {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
  line-height: 1.4;
  overflow-x: auto;
  white-space: pre;
  color: var(--text);
  margin: 1rem 0 1.5rem;
}

/* ── SCORING ──────────────────────────────────────────────────── */
.scoring {
  padding: 2.5rem 0 3rem;
}
.scoring h2 { margin-bottom: 1rem; }

.scorecard {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.scorecard th, .scorecard td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.scorecard th {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
.done {
  color: var(--done);
  background: var(--done-bg);
  font-weight: 600;
  white-space: nowrap;
}

/* ── FOOTER ───────────────────────────────────────────────────── */
footer {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.7rem;
}
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin: 0.3rem 0; font-size: 0.93rem; }
.footer-links a { color: var(--text); border-bottom: 1px dotted var(--border); }
.footer-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.colophon {
  border-top: 1px solid var(--border-soft);
  padding-top: 1.2rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.colophon a { color: var(--text-muted); }

/* ── PRINT (so a PDF screenshot looks good) ───────────────────── */
@media print {
  body { background: white; color: black; }
  .cta-row, .toc, .access-note { display: none; }
  .capability { page-break-inside: avoid; }
  .hero { border-bottom: 2px solid black; }
  a { color: black; text-decoration: underline; }
}
