.pill { height: 46px; padding: 0 22px; border-radius: var(--r-full); border: 1px solid transparent; font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; }
.pill.on { background: var(--brand); color: var(--paper); }
.pill.on:hover { background: var(--brand-hover); }
.pill.off { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.pill.off:hover { border-color: var(--ink); }
/* ---- MCP and open API: copy and AI logos on the left, a chat where someone runs Artemis from Claude on the right ---- */
.mcp { background: var(--paper); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.mcp-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.mcp-copy .lede { margin-top: 14px; }
.mcp-ai { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.mcp-chip { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface); font: 600 16px var(--sans); letter-spacing: -0.01em; color: #1f1f1f; }
.mcp-chip img { display: block; width: auto; height: 19px; }
.mcp-chip svg { width: 18px; height: 18px; }
.mcp-chip.more { border-style: dashed; border-color: var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.mcp-api { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.mcp-api p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.mcp-api p b { color: var(--ink); font-weight: 600; }
.mcp-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 14px; }
.mcp-logos img { display: block; width: auto; height: 18px; }
.mcp-logos img.jn { height: 14px; }
.mcp-logos span { font-size: 14px; color: var(--ink-3); }
.mcp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.mcp-chat { display: flex; flex-direction: column; height: 540px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #faf9f5;
  box-shadow: 0 1px 2px rgba(20,10,40,.04), 0 22px 44px -24px rgba(20,10,40,.28); }
.mcp-top { display: flex; align-items: center; gap: 9px; padding: 14px 18px; border-bottom: 1px solid #ebe9e1; background: #fff; }
.mcp-top svg { width: 22px; height: 22px; }
.mcp-top b { font-size: 15px; font-weight: 600; color: #1f1f1f; }
.mcp-conn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 5px 10px; border-radius: var(--r-full); background: var(--brand-tint); font-size: 12.5px; font-weight: 600; color: var(--brand-deep); }
.mcp-conn i { width: 7px; height: 7px; border-radius: 50%; background: #22a06b; }
.mcp-log { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 20px 18px 14px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 48px); mask-image: linear-gradient(transparent, #000 48px); }
.mcp-log > * { flex: none; }
.m-me { align-self: flex-end; max-width: 84%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: #ede9df; font-size: 14.5px; line-height: 1.45; color: #1f1f1f; }
.m-tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid #e6e3da; border-radius: 10px; background: #fff; font-size: 13px; color: var(--ink-2); }
.m-tool b { font-weight: 600; color: var(--brand-deep); }
.m-tool .spin { width: 12px; height: 12px; border: 2px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: mcp-spin .8s linear infinite; }
.m-tool .ok { display: none; color: #1a8a5a; font-weight: 700; }
.m-tool.done .spin { display: none; }
.m-tool.done .ok { display: inline; }
.m-ai { align-self: flex-start; max-width: 90%; font-size: 14.5px; line-height: 1.5; color: #1f1f1f; }
.m-card { align-self: flex-start; width: min(100%, 340px); overflow: hidden; border: 1px solid #e6e3da; border-radius: 14px; background: #fff; }
.m-card img { display: block; width: 100%; height: 132px; object-fit: cover; }
.m-card .mc { padding: 10px 12px 11px; font-size: 13px; color: var(--ink-2); }
.m-card .mc b { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 600; color: #1f1f1f; }
.m-doc { display: flex; align-items: center; gap: 12px; padding: 12px; }
.m-doc .ic { flex: none; display: grid; place-items: center; width: 38px; height: 46px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--brand); }
.m-doc .ic svg { width: 18px; height: 18px; }
.m-doc .dt { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); }
.m-doc .dt b { display: block; font-size: 14px; font-weight: 600; color: #1f1f1f; }
.m-bar { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #eeece5; }
.m-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--brand); transition: width 1.3s cubic-bezier(.4,0,.2,1); }
.m-doc .st { display: block; margin-top: 6px; font-size: 12.5px; }
.m-doc.sent .m-bar { display: none; }
.m-doc.sent .st { color: #1a8a5a; font-weight: 600; }
.m-doc .plane { flex: none; width: 20px; height: 20px; color: var(--brand); transition: transform .7s cubic-bezier(.5,0,.75,0), opacity .7s; }
.m-doc.sent .plane { transform: translate(40px, -40px); opacity: 0; }
.mcp-input { display: flex; align-items: center; gap: 10px; margin: 0 14px 14px; padding: 12px 12px 12px 16px; border: 1px solid #e0ddd3; border-radius: 16px; background: #fff; font-size: 14.5px; }
.mcp-input .t { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #1f1f1f; }
.mcp-input .t:empty::before { content: 'Reply to Claude...'; color: #a1a1aa; }
.mcp-input .send { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #c96442; color: #fff; transition: transform .15s; }
.mcp-input .send.press { transform: scale(.88); }
.mcp-input .send svg { width: 15px; height: 15px; }
.m-in { animation: mcp-in .4s cubic-bezier(.23,1,.32,1) both; }
.mcp-log.out > * { opacity: 0; transition: opacity .5s; }
@keyframes mcp-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes mcp-spin { to { transform: rotate(360deg); } }
@container pg (max-width: 900px) {
  .mcp-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .mcp-chat { height: 500px; }
}
@container pg (max-width: 760px) { .mcp-cta { display: none; } }
@container pg (max-width: 520px) {
  .mcp-chat { height: 470px; border-radius: 18px; }
  .mcp-chip { height: 38px; padding: 0 13px; font-size: 15px; }
  .mcp-chip img { height: 17px; }
  .m-card img { height: 112px; }
}
