/* Shared chrome for amperical.ai resources pages.
   Palette, header, agents dropdown, per-agent tip, and the FAB, defined once.
   The leaderboard and benchmark both inlined their own copy before this. Page
   specific styles (feed, tables, charts, forms) live in each page's page.css. */

:root {
  --cream: #faf7f2;
  --card: #ffffff;
  --ink: #3f342d;
  --muted: #6b7280;
  --coral: #e8834a;
  --coral-dark: #c96a36;
  --gold: #f5bb50;
  --green: #6aaa6e;
  --line: rgba(232,131,74,0.18);
  --shadow: 0 6px 24px rgba(232,131,74,0.10);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: "Nunito Sans", system-ui, sans-serif; font-size: 15px; line-height: 1.55;
}
a { color: var(--coral-dark); }
.mention { color: var(--coral-dark); font-weight: 700; }

/* Header chrome, imitates the Teammates project page */
.header {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 12px 22px; background: rgba(255,255,255,0.85);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
.header-left { display: flex; align-items: center; gap: 14px; }
.brand-name {
  font-weight: 500; font-size: 1.4rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  background: linear-gradient(90deg, var(--coral) 0%, #F5BB50 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-name span {}
.project-title {
  font-size: 14px; font-weight: 600; color: var(--ink);
  border-left: 1px solid var(--line); padding-left: 14px; white-space: nowrap;
}
.header-center { text-align: center; }
.readonly-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: rgba(232,131,74,0.07); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 11px; white-space: nowrap;
}
.readonly-pill .lock { font-size: 11px; opacity: 0.65; }
.header-right { display: flex; align-items: center; gap: 10px; justify-content: flex-end; position: relative; }
.activity-btn {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 12px; font: inherit; font-size: 13px; color: var(--ink);
}
.activity-btn:hover { border-color: var(--coral); }
.lock { opacity: 0.55; }

/* Read-only pill doubles as a jump to the bottom contact CTA */
.readonly-pill { text-decoration: none; cursor: pointer; }
.readonly-pill:hover, .readonly-pill:focus-visible { border-color: var(--coral); color: var(--coral-dark); outline: none; }
.readonly-pill:focus-visible { box-shadow: 0 0 0 2px rgba(232,131,74,0.35); }

/* Contact CTA, the bottom funnel: what we do, then how to reach us.
   The sticky header is ~58px, scroll-margin keeps the target clear of it. */
#contact { scroll-margin-top: 72px; }
.contact-cta {
  margin: 16px 0 0; padding: 14px 16px; border-radius: 12px;
  background: rgba(232,131,74,0.07); border: 1px solid var(--line);
}
.cta-lead { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.contact-cta .contact { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Product intro: the Agentic AI Harness block reused from the homepage, [[styles.css]],
   ported to chrome tokens. White card on the tinted CTA, coral-tinted flow steps. */
.how-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  padding: 14px 16px; display: flex; align-items: center; gap: 22px;
}
.how-card-header { flex: 0 0 210px; }
.how-card-title {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--ink);
}
.how-card-tagline { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.how-card .glass-icon {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,131,74,0.10);
}
.how-card .glass-icon svg { width: 18px; height: 18px; }
.how-card-visual { flex: 1; min-width: 0; }
.flow-steps { display: flex; align-items: stretch; width: 100%; gap: 0; }
.flow-step {
  flex: 1; min-width: 0; border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 8px; text-align: center;
}
.flow-step--2 { background: rgba(232,131,74,0.05); border-color: rgba(232,131,74,0.15); }
.flow-step--3 { background: rgba(232,131,74,0.08); border-color: rgba(232,131,74,0.20); }
.flow-step--4 { background: rgba(232,131,74,0.12); border-color: rgba(232,131,74,0.25); }
.flow-step-title { font-weight: 700; font-size: 12.5px; color: var(--coral-dark); }
.flow-step-sub { margin-top: 2px; font-size: 11px; line-height: 1.35; color: var(--muted); }
.flow-arrow { align-self: center; flex-shrink: 0; padding: 0 6px; color: var(--coral); font-size: 14px; opacity: 0.5; }
@media (max-width: 600px) {
  .how-card { flex-direction: column; align-items: stretch; gap: 12px; }
  .how-card-header { flex: none; }
  .flow-steps { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); padding: 2px 0; }
}

/* Agents panel, a locked teaser of the real product agent menu */
.agents-dropdown {
  display: none; position: absolute; right: 0; top: 46px; width: 312px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 10px; z-index: 60;
}
.agents-dropdown.open { display: block; }
.dropdown-title { font-size: 14px; font-weight: 800; color: var(--ink); padding: 8px 8px 10px; }
.agent-row {
  position: relative;
  display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 9px;
  cursor: not-allowed;
}
.agent-row:hover { background: rgba(232,131,74,0.08); }
.agent-row > svg { color: var(--coral); flex: none; }
.agent-handle { font-size: 14px; font-weight: 700; color: var(--ink); }
.agent-row.muted { opacity: 0.5; }
.badge {
  font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; text-transform: none;
}
.badge-you { background: #eee; color: #555; }
.badge-busy { background: var(--coral); color: #fff; }
.badge-done { background: #cdebd2; color: #2f7d42; }
.ago { font-size: 11.5px; color: #a99; margin-left: auto; white-space: nowrap; }

/* Per-agent tooltip: icon, name, chips, desc, example only */
.agent-tip {
  display: none; position: absolute; right: calc(100% + 12px); top: -6px; width: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 16px; z-index: 70; cursor: default;
}
.agent-tip::after { content: ""; position: absolute; left: 100%; top: 0; width: 14px; height: 100%; }
.agent-row:hover .agent-tip { display: block; }
.tip-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.tip-head svg { color: var(--coral); flex: none; }
.tip-name { font-size: 15px; font-weight: 800; }
.tip-chips { display: flex; gap: 7px; margin-bottom: 11px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.chip-research { background: #e6f0fb; color: #3b7fc4; }
.chip-documents { background: rgba(232,131,74,0.14); color: var(--coral-dark); }
.chip-code { background: #f0e9fb; color: #7c4dbb; }
.chip-default { background: #eef2e9; color: #5d7a4a; }
.tip-desc { font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.tip-desc strong { font-weight: 800; }
.tip-example {
  margin: 12px 0 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; color: var(--muted); line-height: 1.5;
}
.tip-eg { font-size: 12px; color: #bbb; margin-bottom: 3px; }
.tip-example .mention { font-weight: 700; color: var(--coral-dark); }

/* AI agent tag next to the teammate handle */
.ai-tag { font-size: 10.5px; font-weight: 700; color: var(--coral-dark); background: rgba(232,131,74,0.10); border-radius: 999px; padding: 1px 7px; }

@media (max-width: 600px) {
  /* Collapse header: hide title + pill, keep brand + agents button */
  .project-title { display: none; }
  .header-center { display: none; }
  .header { grid-template-columns: 1fr auto; gap: 8px; padding: 10px 14px; }
}
