/* /connect: add AgentOS to the agent you already use (connect.html).
   Loaded after styles.css and nat.css; everything here is cx-scoped. */

.cx-page .shell-inner { border-top: 0; padding: 0 clamp(4px, 2vw, 24px) clamp(64px, 8vw, 110px); }

/* ---------- hero: the one prompt to paste ---------- */
.cx-hero { padding: clamp(56px, 8vw, 96px) 0 0; max-width: 860px; }
.cx-hero .n-title { text-wrap: balance; }
.cx-hero .n-sub { text-wrap: pretty; margin-bottom: 28px; }

.cx-paste { position: relative; max-width: 760px; padding: 18px 18px 18px 22px; border-radius: 20px; background: #141517; color: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 16px;
  box-shadow: 0 24px 60px rgba(20, 21, 23, .18); }
.cx-paste-label { grid-column: 1 / -1; font: 500 12.5px/1.4 "DM Sans", system-ui, sans-serif; color: rgba(255, 255, 255, .6); }
.cx-paste-text { margin: 0; font: 400 clamp(16px, 2.1vw, 19px)/1.55 "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #fff; overflow-wrap: break-word; user-select: all; -webkit-user-select: all; }
.cx-copy--primary { height: 44px; padding: 0 22px; font-size: 15px; background: #fff; color: #141517; box-shadow: none; }
.cx-copy--primary:hover { background: #f1f2f3; box-shadow: none; }
.cx-copy--primary.is-copied { background: #e9f6ee; color: #17663a; box-shadow: none; }

.cx-works { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 20px 0 0;
  font: 400 14px/1.4 "DM Sans", system-ui, sans-serif; color: #6b6f76; }
.cx-works-item { display: inline-flex; align-items: center; gap: 6px; color: #3c3f45; }
.cx-works-item svg, .cx-works-item img { width: 16px; height: 16px; flex: none; }

/* The AgentOS CLI: the second way in, a quiet bordered card under the prompt. */
.cx-cli { max-width: 760px; margin: 28px 0 0; padding: 16px 16px 14px; border-radius: 16px; background: #fff;
  box-shadow: inset 0 0 0 1px #e6e8eb, 0 1px 2px rgba(20, 21, 23, .04); }
.cx-cli-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 10px; }
.cx-cli-badge { grid-row: 1 / 3; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: #f3f4f6; color: #141517; box-shadow: inset 0 0 0 1px #e6e8eb; }
.cx-cli-title { font: 560 15px/1.3 "DM Sans", system-ui, sans-serif; color: #141517; }
.cx-cli-sub { font: 400 13.5px/1.4 "DM Sans", system-ui, sans-serif; color: #6b6f76; }
.cx-cli-cmd { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 6px 6px 6px 14px; border-radius: 10px;
  background: #f6f7f8; box-shadow: inset 0 0 0 1px #eceef0; }
.cx-cli-cmd code { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere;
  font: 400 13.5px/1.6 "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, monospace; color: #141517; user-select: all; -webkit-user-select: all; }
.cx-cli-cmd .cx-copy { height: 30px; min-width: 0; padding: 0 12px; font-size: 13px; }
.cx-cli-then { margin: 12px 2px 0; font: 400 13.5px/1.55 "DM Sans", system-ui, sans-serif; color: #6b6f76; }
.cx-cli-then code { white-space: nowrap; padding: 1px 5px; border-radius: 5px; background: #f3f4f6; font: 400 12.5px/1.4 "Fragment Mono", ui-monospace, monospace; color: #141517; }
.cx-cli-then a { color: #141517; font-weight: 500; text-decoration: underline; text-decoration-color: #c9cdd2; text-underline-offset: 3px; }
.cx-cli-then a:hover { text-decoration-color: #141517; }
.cx-cli-then a:focus-visible { outline: 2px solid #3d6fd9; outline-offset: 2px; }

/* The MCP URL for anyone adding it by hand, under what happens next. */
.cx-manual { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 28px 0 0; padding: 14px 16px; border-radius: 14px;
  background: #f6f7f8; font: 400 14px/1.4 "DM Sans", sans-serif; color: #6b6f76; max-width: 860px; }
.cx-manual code { font: 400 14px/1.4 "Fragment Mono", ui-monospace, monospace; color: #141517; user-select: all; -webkit-user-select: all; }
.cx-manual .cx-copy { height: 30px; min-width: 0; padding: 0 12px; font-size: 13px; }
.cx-manual a { margin-left: auto; color: #141517; font-weight: 500; text-decoration: underline; text-decoration-color: #c9cdd2; text-underline-offset: 3px; }

/* ---------- copy buttons (shown by connect.js) ---------- */
.cx-copy { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 36px; padding: 0 14px;
  border: 0; border-radius: 999px; background: #fff; color: #141517; cursor: pointer;
  font: 500 13.5px/1 "DM Sans", system-ui, sans-serif; box-shadow: inset 0 0 0 1px #e1e4e8;
  transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease; }
.cx-copy:hover { box-shadow: inset 0 0 0 1px #141517; }
.cx-copy:active { transform: scale(.97); }
.cx-copy:focus-visible, .cx-manual a:focus-visible, .cx-alt a:focus-visible { outline: 2px solid #3d6fd9; outline-offset: 2px; }
.cx-copy[hidden] { display: none; }
.cx-copy.is-copied { background: #e9f6ee; box-shadow: inset 0 0 0 1px #9fd3b2; color: #17663a; }
.cx-copy--dark { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.cx-copy--dark:hover { background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.cx-copy--dark.is-copied { background: #fff; color: #141517; box-shadow: none; }

/* ---------- sections ---------- */
.cx-sec { padding: clamp(56px, 7vw, 88px) 0 0; }
.cx-h2 { font: 560 clamp(26px, 3vw, 36px)/1.1 "Host Grotesk", "DM Sans", sans-serif; letter-spacing: -0.02em; color: #141517; margin: 0 0 24px; }

/* ---------- what happens next ---------- */
.cx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 980px; }
.cx-steps li { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 16px; box-shadow: inset 0 0 0 1px #e8eaed;
  font: 500 16px/1.35 "DM Sans", sans-serif; color: #141517; }
.cx-step-n { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: #141517;
  color: #fff; font: 600 13px/1 "DM Sans", sans-serif; }
.cx-then { font: 400 17px/1.5 "DM Sans", sans-serif; color: #4c4f55; margin: 20px 0 0; }
.cx-alt { list-style: none; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid #eef0f2; display: grid; gap: 10px;
  font: 400 15px/1.5 "DM Sans", sans-serif; color: #6b6f76; }
.cx-alt a { color: #141517; font-weight: 500; text-decoration: underline; text-decoration-color: #c9cdd2; text-underline-offset: 3px; }
.cx-alt a:hover { text-decoration-color: #141517; }

.cx-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 680px) {
  .cx-steps { grid-template-columns: 1fr; }
  .cx-paste { grid-template-columns: 1fr; padding: 16px; }
  .cx-copy--primary { width: 100%; }
  .cx-manual a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-copy { transition: none; }
  .cx-copy:active { transform: none; }
}
