/* ==========================================================================
   kontest MCP page module
   Extends base.css. No new hex values: every colour comes from tokens.css.
   Loaded only by mcp.html so the rest of the site stays byte-for-byte the same.
   ========================================================================== */

/* ---------- the URL card: the one thing people came here to copy ---------- */
.urlcard {
  position: relative;
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(248, 138, 47, .10), transparent 58%),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.6vw, 26px);
  box-shadow: var(--shadow-card);
}
.urlcard__label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
}
/* One control: the address on the left, the copy action on the right, joined by
   a single hairline. The URL is never clipped, at any width. */
.urlcard__field {
  margin-top: 14px; display: flex; align-items: stretch;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.urlcard__field:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: 0 1px 2px rgba(26, 20, 16, .04);
}
.urlcard__field:focus-within { border-color: var(--accent); }
.urlcard__url {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center;
  padding: 15px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(13.5px, 1.35vw, 16px); font-weight: 500;
  letter-spacing: -.2px; line-height: 1.45; color: var(--text);
  overflow-wrap: anywhere;
}
.urlcard__note { margin-top: 14px; font-size: 14px; color: var(--text-3); }

/* Copy control. Quiet by default, brand-coloured on hover, green on success. */
.copy {
  flex: 0 0 auto; align-self: stretch;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 18px; cursor: pointer;
  background: var(--surface); border: 0; border-left: 1px solid var(--line);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: -.1px; color: var(--text-2);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.copy:hover { color: var(--accent-deep); background: #fff; }
.copy:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.copy svg { flex: 0 0 auto; }
.copy .copy__tick { display: none; }
.copy.is-done {
  color: var(--live-deep);
  background: color-mix(in srgb, var(--live) 9%, var(--surface));
}
.copy.is-done .copy__ico { display: none; }
.copy.is-done .copy__tick { display: block; }

/* ---------- hero: the "what it feels like" card under the URL ---------- */
.askcard {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px 20px 20px;
  box-shadow: var(--shadow-card);
}
.askcard__head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
}
.askcard__you {
  margin-top: 14px; padding: 13px 16px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 15.5px; line-height: 1.5; color: var(--text);
}
.askcard__calls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tchip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  background: linear-gradient(120deg, var(--accent-soft), transparent 72%), var(--surface);
  border-radius: var(--r-pill); padding: 6px 12px 6px 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; color: var(--text);
}
.tchip s {
  flex: 0 0 auto; width: 15px; height: 15px; border-radius: var(--r-pill);
  background: var(--live); display: grid; place-items: center; text-decoration: none;
}
.askcard__reply {
  margin-top: 13px; font-size: 15.5px; line-height: 1.55; color: var(--text-2);
}
.askcard__reply strong { color: var(--text); font-weight: 600; }

/* ---------- the walkthrough video ---------- */
.videoframe {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.videoframe video { display: block; width: 100%; height: auto; }
.videoframe__cap {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px 18px; border-top: 1px solid var(--line);
  background: var(--surface); font-size: 14px; color: var(--text-2);
}
.videoframe__cap b { color: var(--text); font-weight: 600; }
.videoframe__cap .sep { width: 1px; height: 14px; background: var(--line); }

/* ---------- per-assistant setup guides ---------- */
.guides { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 24px); }
.guide { display: flex; flex-direction: column; }
.guide__head { display: flex; align-items: center; gap: 15px; }
.guide__head .icon {
  flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: var(--r-md); color: var(--ci, var(--accent));
  background: color-mix(in srgb, var(--ci, var(--accent)) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--ci, var(--accent)) 24%, transparent);
}
.guide__head h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.1; }
.guide__meta { margin-top: 4px; font-size: 13px; color: var(--text-3); }

.guide__steps { counter-reset: gs; list-style: none; margin-top: 22px; display: grid; gap: 2px; }
.guide__steps li {
  counter-increment: gs; position: relative;
  padding: 13px 0 13px 40px; border-top: 1px solid var(--line-soft);
  font-size: 14.5px; line-height: 1.6; color: var(--text-2);
}
.guide__steps li:first-child { border-top: 0; }
.guide__steps li::before {
  content: counter(gs); position: absolute; left: 0; top: 12px;
  width: 25px; height: 25px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: var(--ci, var(--accent));
  background: color-mix(in srgb, var(--ci, var(--accent)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ci, var(--accent)) 24%, transparent);
}
.guide__steps b { display: block; color: var(--text); font-weight: 600; }
.guide__steps code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 2px 6px; color: var(--text);
  overflow-wrap: anywhere;
}
.guide__note {
  margin-top: auto; padding-top: 18px;
  font-size: 13px; line-height: 1.55; color: var(--text-3);
}

/* ---------- the "everything else" footnote ---------- */
.clients__foot {
  margin-top: clamp(20px, 2.6vw, 28px); max-width: 82ch;
  font-size: 15px; line-height: 1.65; color: var(--text-2);
}
.clients__foot span { color: var(--text); font-weight: 600; }
.clients__foot code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 2px 7px; color: var(--text);
}

/* ---------- numbered steps ---------- */
.steps { counter-reset: st; display: grid; gap: 14px; }
.step {
  position: relative; display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.step:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-card-hover);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}
.step__n {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  color: var(--text-on-accent); background: var(--grad-accent);
  box-shadow: var(--shadow-accent);
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.25; }
.step p { margin-top: 7px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.step p code, .inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 2px 6px; color: var(--text);
}

/* ---------- tool catalog ---------- */
.toolgroup { display: flex; flex-direction: column; height: 100%; }
.toolgroup__head { display: flex; align-items: center; gap: 14px; }
.toolgroup__ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ci, var(--accent)) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--ci, var(--accent)) 26%, transparent);
  color: var(--ci, var(--accent));
}
.toolgroup__head h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.toolgroup__count {
  margin-left: auto; font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: .04em; color: var(--ci, var(--accent));
  background: color-mix(in srgb, var(--ci, var(--accent)) 11%, transparent);
  border-radius: var(--r-pill); padding: 5px 12px; white-space: nowrap;
}
.tools { margin-top: 18px; display: grid; gap: 2px; }
.tools > div {
  display: grid; grid-template-columns: minmax(0, 15.5em) 1fr; gap: 4px 18px;
  padding: 11px 0; border-top: 1px solid var(--line-soft);
}
.tools > div:first-child { border-top: 0; }
.tools code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; font-weight: 500; color: var(--text); letter-spacing: -.2px;
  align-self: start; word-break: break-word;
}
.tools span { font-size: 14.5px; line-height: 1.55; color: var(--text-2); }

/* ---------- example prompts ---------- */
.prompts { display: grid; gap: clamp(14px, 2vw, 18px); }
.prompt {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 22px; border-radius: var(--r-lg);
  background: linear-gradient(130deg, var(--accent-soft), transparent 62%), var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.prompt:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-card-hover);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
}
.prompt__ico {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: var(--r-pill);
  display: grid; place-items: center; color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.prompt p { font-size: 16px; line-height: 1.55; color: var(--text); font-weight: 500; }
.prompt small { display: block; margin-top: 8px; font-size: 13px; color: var(--text-3); }
.prompt small code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; color: var(--text-2);
}

/* ---------- trust row ---------- */
.trust { display: grid; gap: clamp(14px, 2vw, 20px); }
.trust__item { display: flex; gap: 14px; align-items: flex-start; }
.trust__ico {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: var(--r-md);
  display: grid; place-items: center; color: var(--ci, var(--accent));
  background: color-mix(in srgb, var(--ci, var(--accent)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ci, var(--accent)) 24%, transparent);
}
.trust__item h3 { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.trust__item p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }

/* ---------- dark closing band ---------- */
.mcp-close { text-align: center; }
.mcp-close__url {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(14px, 1.8vw, 18px); color: #FBF8F4;
  background: rgba(251, 248, 244, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-md); padding: 14px 20px;
}
.mcp-close__url code { overflow-wrap: anywhere; }
.mcp-close__url button {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: -.1px; color: rgba(251, 248, 244, .82);
  background: rgba(251, 248, 244, .09);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-sm);
  padding: 7px 13px;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.mcp-close__url button:hover { background: rgba(251, 248, 244, .17); color: #FBF8F4; }
.mcp-close__url button.is-done {
  color: #FBF8F4; background: var(--live-deep);
  border-color: color-mix(in srgb, var(--live) 55%, transparent);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .tools > div { grid-template-columns: 1fr; gap: 4px; }
  .tools code { font-size: 13px; }
  .guides { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .videoframe__cap { gap: 3px 10px; font-size: 13px; }
  .videoframe__cap .sep { display: none; }
  /* Stack so the address always gets the full card width to itself. */
  .urlcard__field { flex-direction: column; }
  .urlcard__url { font-size: 14px; padding: 14px 15px 12px; }
  .copy {
    justify-content: center; padding: 12px 18px;
    border-left: 0; border-top: 1px solid var(--line);
  }
  .step { padding: 18px; gap: 14px; }
}
