/* --- Layout shell ----------------------------------------- */
.t-shell { max-width: 1200px; margin: 0 auto; padding: 32px 32px 32px; }

/* --- Topbar ----------------------------------------------- */
.t-topbar {
  display: flex;
  align-items: center;
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  gap: 24px;
}
.t-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.t-brand-logo { width: 32px; height: 32px; display: block; flex-shrink: 0; }
.t-prompt { color: var(--accent); font-size: 13px; }
.t-brand-name { font-size: 13.5px; color: var(--ink); font-weight: 500; letter-spacing: -0.2px; }
.t-brand-sep { color: var(--ink-muted); font-size: 12px; }
.t-brand-ver { color: var(--ink-dim); font-size: 11px; }

.t-tabs { display: flex; gap: 0; flex: 1; justify-content: center; }
.t-tab {
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--ink-dim);
  text-transform: lowercase;
  letter-spacing: 0.4px;
  padding: 8px 18px;
  border-bottom: 1px solid transparent;
  transition: color 0.1s, border-color 0.1s;
}
.t-tab:hover { color: var(--ink); }
.t-tab.active { color: var(--ink); border-bottom-color: var(--accent); }

.t-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--ink-dim);
}
.t-live { display: inline-flex; align-items: center; gap: 6px; }
.t-live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}
.t-mcount { color: var(--ink-muted); }
.t-theme-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-dim);
  font-size: 13px;
  transition: color 0.1s, border-color 0.1s;
}
.t-theme-btn:hover { color: var(--ink); border-color: var(--line-2); }

/* --- AI copy button + toast ------------------------------- */
.t-ai-btn {
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 10.5px;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 4px 10px;
  cursor: pointer;
  text-transform: lowercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  min-width: 142px;
  text-align: center;
  transition: color 0.15s, border-color 0.15s;
}
.t-ai-btn:hover { color: var(--ink); border-color: var(--line-2); }
.t-ai-btn.is-copied { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }

.t-ai-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 15%, var(--bg-1));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 4px;
  padding: 8px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1000;
}
.t-ai-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* --- Hero ------------------------------------------------- */
.t-hero { margin-bottom: 36px; }
.t-hero-headline {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ink);
  max-width: 860px;
  margin-bottom: 10px;
}
.t-hero-headline em {
  font-style: normal;
  color: var(--ink-muted);
  font-weight: 500;
}
.t-hero-meta {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0;
  margin-bottom: 16px;
}
.t-hero-sub {
  color: var(--ink-dim);
  font-size: 13.5px;
  max-width: 720px;
  line-height: 1.6;
}
.t-caveat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  font-size: 11.5px;
  color: var(--ink-dim);
  max-width: 760px;
}
.t-caveat-icon { color: var(--warn); font-size: 13px; }
.t-caveat strong { color: var(--warn); font-weight: 500; font-size: 10.5px; text-transform: lowercase; letter-spacing: 0.4px; }
/* --- Footer ----------------------------------------------- */
.t-footer {
  margin-top: 20px;
  padding-top: 0;
  border-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ink-muted);
}
.t-footer-right { display: flex; gap: 14px; }
.t-footer a { color: var(--ink-dim); }
.t-footer a:hover { color: var(--accent); }
.t-footer-sep { color: var(--ink-muted); margin: 0 4px; }

/* --- Stats strip ------------------------------------------ */
.t-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  margin-bottom: 28px;
}
.t-stat {
  padding: 16px 20px;
  border-right: 1px solid var(--line);
}
.t-stat:last-child { border-right: 0; }
.t-stat-label {
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 10px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.t-stat-value {
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.t-stat-detail {
  font-size: 11px;
  color: var(--ink-dim);
  margin-top: 2px;
}

/* --- View visibility (fix merged-pages bug) --------------- */
#summaryView { display: none; }
#methodologyView { display: none; }
#landscapeView { display: none; }
#testingView { display: none; }
#summaryView.is-active { display: block; }
#methodologyView.is-active { display: block; }
#landscapeView.is-active { display: block; }
#testingView.is-active { display: block; }

/* --- For-agents quickstart box ---------------------------- */
/* Visually quiet footer-adjacent box that lists every agent-facing
 * endpoint. Always visible regardless of active view. Pre-rendered
 * in the initial HTML so fetch-only agents see it too. */
.t-agent-quickstart {
  margin: 48px 0 0;
  padding: 20px 22px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg) 96%, var(--ink));
  color: var(--ink-dim);
  font-size: 12.5px;
  line-height: 1.6;
}
.t-agent-quickstart-head {
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--ink-muted);
  text-transform: lowercase;
  margin-bottom: 10px;
}
.t-agent-quickstart-lede {
  margin: 0 0 12px;
  color: var(--ink-dim);
}
.t-agent-quickstart-lede:last-child {
  margin-bottom: 0;
}
.t-agent-quickstart-lede a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 2px;
}
.t-agent-quickstart-lede a:hover {
  text-decoration-color: var(--ink);
}
.t-agent-quickstart-lede code {
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 85%, var(--ink));
  padding: 1px 5px;
  border-radius: 3px;
}
.t-agent-quickstart-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-size: 11.5px;
  color: var(--ink-muted);
}
.t-agent-quickstart-list li {
  padding: 3px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.t-agent-quickstart-list li:last-child {
  border-bottom: none;
}
.t-agent-quickstart-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.t-agent-quickstart-list a:hover {
  text-decoration: underline;
}
.t-agent-quickstart-why {
  color: var(--ink-muted);
  font-weight: normal;
}
