/* Hub "AI agents" upsell section. Token-driven; scoped to the section so forks can drop it in. */
.hub-agents { margin-top: 2.5rem; background: var(--surface); border-radius: var(--radius); padding: 1.5rem; }
.hub-agents__head { margin-bottom: 1.25rem; }
.hub-agents__eyebrow { margin: 0 0 .25rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.hub-agents__head h2 { margin: 0 0 .5rem; font-family: var(--font-heading); font-size: clamp(1.3rem, 3vw, 1.9rem); }
.hub-agents__head p { margin: 0; color: var(--muted); max-width: 62ch; }
.hub-agents__grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.agent-card { display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); background: var(--bg); }
.agent-card__head { display: flex; align-items: center; gap: .5rem; }
.agent-card__head h3 { margin: 0; font-family: var(--font-heading); color: var(--brand); font-size: 1.15rem; flex: 1; }
.agent-card__icon { font-size: 1.3rem; }
.agent-card__addon { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: .15em .55em; border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); font-weight: 700; }
.agent-card__promise { margin: 0; font-weight: 600; }
.agent-card__bullets { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.agent-card__bullets li + li { margin-top: .3rem; }
.agent-card__sample { margin-top: .25rem; padding: .85rem; border-radius: calc(var(--radius) - 2px); background: var(--surface);
  border: 1px dashed color-mix(in srgb, var(--brand) 40%, transparent); font-size: .9rem; line-height: 1.45; }
.agent-card__sample p { margin: 0; }
.agent-card__sample p + p { margin-top: .35rem; }
.agent-card__sample-title { font-weight: 700; color: var(--brand); }
.agent-card__cta { margin-top: auto; display: inline-block; text-align: center; text-decoration: none; background: var(--brand); color: var(--brand-ink);
  border: 0; border-radius: var(--radius); padding: .65rem 1.1rem; font-family: var(--font-body); font-weight: 600; cursor: pointer; }
.agent-card__cta:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Layout: three agents in a row, Marketing as a full-width feature below ---------- */
.hub-agents__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.agent-feature {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: calc(var(--radius) + 6px); background: var(--ink); color: var(--surface);
}
.agent-feature__eyebrow { margin: 0 0 .6rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.agent-feature h3 { margin: 0 0 .9rem; font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.05; }
.agent-feature__body { margin: 0 0 1.4rem; color: color-mix(in srgb, var(--surface) 82%, transparent); line-height: 1.55; max-width: 52ch; }
.agent-feature__plans { display: grid; gap: .35rem; margin-bottom: 1.5rem; padding: .9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--surface) 22%, transparent); border-radius: var(--radius); }
.agent-feature__plans-label { font-weight: 700; letter-spacing: .04em; }
.agent-feature__plans-note { color: color-mix(in srgb, var(--surface) 70%, transparent); font-size: .9rem; }
.agent-feature__cta { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.6rem; border-radius: 999px; border: 0;
  background: var(--surface); color: var(--ink); font-family: var(--font-body); font-weight: 700; letter-spacing: .04em; text-decoration: none; cursor: pointer; }
.agent-feature__cta:hover { background: color-mix(in srgb, var(--surface) 88%, var(--ink)); }
.agent-feature__cta:disabled { opacity: .55; cursor: not-allowed; }
.agent-feature__agent { display: flex; flex-direction: column; gap: .65rem; padding: 1.2rem; border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.agent-feature__agent h4 { margin: 0; font-family: var(--font-heading); font-size: 1.15rem; flex: 1; }
.agent-feature__agent-label { margin: 0; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
@media (max-width: 900px) {
  .hub-agents__grid { grid-template-columns: 1fr; }
  .agent-feature { grid-template-columns: 1fr; }
}

/* ---------- Agent cards invert on hover / keyboard focus; the badges come into full accent colour.
   The emoji keep their normal colour throughout (no filter). ---------- */
.agent-card, .agent-feature__agent { transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
.agent-card *, .agent-feature__agent * { transition: color .3s ease, background-color .3s ease, border-color .3s ease; }
.agent-card:hover, .agent-card:focus-within,
.agent-feature:hover .agent-feature__agent, .agent-feature:focus-within .agent-feature__agent {
  background: var(--ink); border-color: var(--ink); color: var(--surface);
}
.agent-card:hover, .agent-card:focus-within { transform: translateY(-3px); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--ink) 55%, transparent); }
.agent-feature:hover .agent-feature__agent, .agent-feature:focus-within .agent-feature__agent { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--surface) 25%, transparent); }
/* text */
:is(.agent-card:hover, .agent-card:focus-within, .agent-feature:hover .agent-feature__agent, .agent-feature:focus-within .agent-feature__agent) :is(h3, h4, .agent-card__promise, .agent-card__sample-title) { color: var(--surface); }
:is(.agent-card:hover, .agent-card:focus-within, .agent-feature:hover .agent-feature__agent, .agent-feature:focus-within .agent-feature__agent) :is(.agent-card__bullets, .agent-feature__agent-label) { color: color-mix(in srgb, var(--surface) 72%, transparent); }
/* add-on and sample badges in full accent */
:is(.agent-card:hover, .agent-card:focus-within, .agent-feature:hover, .agent-feature:focus-within) :is(.agent-card__addon, .sample-badge) { background: var(--accent); color: var(--ink); }
/* the sample box */
:is(.agent-card:hover, .agent-card:focus-within, .agent-feature:hover .agent-feature__agent, .agent-feature:focus-within .agent-feature__agent) .agent-card__sample {
  background: color-mix(in srgb, var(--ink) 88%, var(--surface)); border-color: color-mix(in srgb, var(--surface) 35%, transparent); color: color-mix(in srgb, var(--surface) 90%, transparent);
}
/* the call-to-action inverts too */
:is(.agent-card:hover, .agent-card:focus-within) .agent-card__cta { background: var(--surface); color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .agent-card, .agent-card *, .agent-feature__agent, .agent-feature__agent * { transition: none; }
  .agent-card:hover, .agent-card:focus-within { transform: none; }
}
