/*
 * agenthoney.ai — one stylesheet, three pages.
 *
 * ⚠️ **External, not inline, and that is the whole reason it exists.** The site
 * was one page with ~40 lines of inline `<style>`. Three pages would have been
 * three copies of it, which is the "a list nothing checks should not be written
 * down twice" failure in CSS form: the third page's dark mode is the one that
 * quietly stops matching.
 *
 * ⚠️ **Still no build step.** No framework, no preprocessor, no purge. The
 * page's speed is part of the pitch -- a site that sells measuring what agents
 * see should not ship a megabyte of JavaScript to say so.
 *
 * ── The palette ──────────────────────────────────────────────────────────────
 * Nectar #FFC93C, amber #F2A900 and comb brown #1B1710, from
 * `docs/design/brand/` (owner's pick P3, Phase 186).
 *
 * ⚠️ **Nectar is NOT a link colour on white.** Against #FFFFFF it measures
 * about 1.5:1 -- far below the 4.5:1 floor and, in practice, invisible. It is
 * used here as a FILL (button, rule, marker, underline) with comb-brown text on
 * it, which is ~11:1. In dark mode it becomes the text accent on #1B1710, which
 * is ~11:1. So `--accent` is deliberately a different KIND of token in each
 * theme, and `--accent-ink` is what you put on top of it.
 */

@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/lexend-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The wordmark's face, and nothing else's -- see `.brand` below. */
@font-face {
  font-family: "Asimovian";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/asimovian-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "B612 Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/b612-mono-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand-nectar: #ffc93c;
  --brand-amber: #f2a900;
  --brand-ink: #1b1710;
  /* The wordmark's "honey" on white: amber stepped down to ~3.3:1, which large
   * display lettering clears (3:1). Nectar itself is ~1.5:1 there. */
  --brand-honey-on-light: #b37b00;

  --ink: var(--brand-ink);
  --muted: #6b6355;
  --line: #ece6da;
  --bg: #ffffff;
  --bg-soft: #faf6ee;

  /* Light: the accent is a FILL. Text on it is comb brown. */
  --accent: var(--brand-nectar);
  --accent-ink: var(--brand-ink);
  /* Light: link TEXT stays ink, and the amber arrives as an underline. */
  --link: var(--brand-ink);
  --honey: var(--brand-honey-on-light);

  --font-sans: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "B612 Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3eee4;
    --muted: #a89f8f;
    --line: #332c20;
    --bg: var(--brand-ink);
    --bg-soft: #241e15;

    --accent: var(--brand-nectar);
    --accent-ink: var(--brand-ink);
    /* Dark: nectar on comb brown is ~11:1, so here it CAN be text. */
    --link: var(--brand-nectar);
    --honey: var(--brand-nectar);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Header and nav ─────────────────────────────────────────────────────── */

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem 0;
}

/*
 * The wordmark is TEXT in Asimovian, as the dashboard's `Wordmark.tsx` sets it
 * (owner, 2026-09-25; here 2026-09-30). It was the brand pack's PNG, one per
 * scheme behind a `<picture>`, with ~8% transparent padding that made the
 * height a canvas rather than the letters. Text inherits `--ink`, which already
 * inverts for dark, and its size is the font size.
 *
 * ⚠️ `honey` is the accent in BOTH schemes, as the pack draws it: nectar on
 * comb brown, and a stepped-down amber on white, where nectar would vanish.
 * The link's accessible name is "agenthoney" as lettered either way. Asimovian
 * ships one weight, so 400 and never a heavier one the browser would fake.
 */
.brand {
  font-family: "Asimovian", var(--font-sans);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand .honey {
  color: var(--honey);
}

/*
 * The tagline under the wordmark, as the dashboard's rail sets it (`Shell.tsx`):
 * muted, not the accent -- tried there, and it competed with the `honey`. Outside
 * the link, so the link's accessible name stays "AgentHoney".
 */
.lockup {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tagline {
  font-size: 0.8125rem;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}

nav.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 0.9375rem;
}

/* ── Type ───────────────────────────────────────────────────────────────── */

h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.1rem;
  margin: 0 0 1rem;
}

li {
  margin: 0.4rem 0;
}

li::marker {
  color: var(--muted);
}

strong {
  font-weight: 600;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 38rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

pre {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  overflow-x: auto;
  line-height: 1.6;
}

:not(pre) > code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.05em 0.3em;
}

a {
  color: var(--link);
  text-decoration-color: var(--brand-amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 3px;
}

/* ── Sections ───────────────────────────────────────────────────────────── */

header.hero {
  padding: 2.5rem 0 3rem;
}

section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 46rem) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 2rem 0 0;
}

/* The line that follows a CTA row -- integrations, a caveat -- needs air, or it
   reads as part of the button. */
.cta-row + p {
  margin-top: 1.25rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
}

.button:hover {
  filter: brightness(0.94);
}

footer {
  padding: 2.75rem 0 4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

footer a {
  color: var(--link);
}

/*
 * A source citation sitting directly under the claim it supports.
 *
 * ⚠️ Every statistic on this site carries one. That is not a legal habit, it
 * is the product's whole differentiator rendered in CSS: a page that will not
 * overstate what it knows cannot print a round number it cannot source.
 */
.cite {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin: -0.5rem 0 1.25rem;
}

/* ── Homepage blocks: steps, cards, platforms, FAQ, nav CTA ─────────────── */

/* The nav's one call to action: a small filled pill, the same fill as `.button`. */
nav.top a.nav-cta {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
}

/* See → Fix → Grow. The number is drawn by CSS so the list stays a real <ol>. */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.75rem;
  counter-reset: step;
}

.steps li {
  margin: 0;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

@media (min-width: 46rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cards > div {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
}

.cards p {
  margin: 0;
}

.platforms {
  font-weight: 600;
  font-size: 1.0625rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.grid.cards {
  gap: 1rem;
}
