/* MCP page (/mcp, /cs/mcp): page-specific pieces on top of pages.css. Written by hand, markup from scripts/hero/build-mcp.py. */

/* hero: a slightly wider headline column than the product pages (the H1 carries the keyword) */
.lpg-hero.lpmc-hero h1.lpg-hero__h1 { max-width: 16ch; }
.lpmc-hero .lpg-win { max-width: 620px; }

/* terminal scene */
.lpmc-term { border-radius: 14px; overflow: hidden; background: rgba(11, 13, 22, .78); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 80px rgba(3, 8, 24, .5); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  color: #e7e9f0; text-align: left; }
.lpmc-term__bar { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1);
  font: 500 12.5px/1 Inter, -apple-system, "Segoe UI", sans-serif; color: rgba(255, 255, 255, .62); }
.lpmc-term__dots { display: inline-flex; gap: 6px; }
.lpmc-term__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.lpmc-term__status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .82); }
.lpmc-term__status i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.lpmc-term__body { padding: 22px 22px 24px; min-height: 372px; font: 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.lpmc-term p { margin: 0; color: inherit; font: inherit; max-width: none; }
.lpmc-term p.lpmc-prompt { display: flex; gap: 10px; color: #fff; margin-bottom: 18px; }
.lpmc-caret { color: #7ea6ff; flex: none; }
.lpmc-call { display: grid; grid-template-columns: 9px auto 1fr; column-gap: 9px; align-items: baseline; margin-bottom: 12px; }
.lpmc-dot { width: 7px; height: 7px; border-radius: 50%; background: #7ea6ff; align-self: center; }
.lpmc-srv { color: rgba(255, 255, 255, .55); }
.lpmc-srv::after { content: " ·"; }
.lpmc-tool { color: #a9c4ff; }
.lpmc-out { grid-column: 2 / -1; color: rgba(255, 255, 255, .86); }
.lpmc-out::before { content: "└ "; color: rgba(255, 255, 255, .35); }
.lpmc-term p.lpmc-done { margin-top: 18px; color: #fff; }
/* played once by mcp.js: lines wait, then appear in order; without JS everything is simply there */
.lpmc-term.is-play [data-step] { opacity: 0; transform: translateY(4px); }
.lpmc-term.is-play [data-step].is-on { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1); }
.lpmc-term.is-typing [data-type]::after { content: ""; display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: text-bottom; background: #7ea6ff; }

/* four-step flow */
.lpmc-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lpmc-flow > div { border: 1px solid #e5e5e5; border-radius: 12px; padding: 22px 22px 20px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.lpmc-flow i { width: 20px; height: 20px; color: #2563eb; display: inline-block; margin-bottom: 4px; }
.lpmc-flow em { font-style: normal; font-size: 12px; font-weight: 500; color: #2563eb; font-variant-numeric: tabular-nums; }
.lpmc-flow b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: #171717; line-height: 1.3; }
.lpmc-flow small { font-size: 14px; line-height: 1.5; color: #525252; }
.lpg-sec .lpg-lead a, .lpmc-note a:not(.lp-more) { color: inherit; text-decoration: underline; text-underline-offset: .2em; }

/* clients and commands */
.lpg-clients.lpmc-clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lpmc-client { text-decoration: none; background: #fff; transition: border-color .2s, transform .25s cubic-bezier(.22, 1, .36, 1); }
.lpmc-client:hover { border-color: #a3a3a3; transform: translateY(-2px); }
.lpmc-client > i { width: 28px; height: 28px; padding: 4px; flex: none; color: #171717; }
.lpmc-client img { flex: none; }
.lpg-cmds.lpmc-cmds { margin-top: 16px; }
.lpmc-cmd { position: relative; padding-right: 96px; }
.lpg-cmd.lpmc-cmd code { word-break: normal; overflow-wrap: anywhere; }
.lpmc-copy { position: absolute; top: 12px; right: 12px; padding: 6px 12px; border: 1px solid #d4d4d4; border-radius: 8px; background: #fff;
  font: 500 12.5px/1.2 Inter, -apple-system, "Segoe UI", sans-serif; color: #171717; cursor: pointer; transition: border-color .2s, color .2s; }
.lpmc-copy:hover { border-color: #171717; }
.lpmc-copy.is-done { color: #2563eb; border-color: #2563eb; }
.lpg-sec p.lpmc-note, .lpmc-note { margin: 22px 0 0; font-size: 15px; line-height: 1.55; color: #525252; max-width: 80ch; }
.lpmc-note strong { font-weight: 600; color: #171717; white-space: nowrap; }
#install .lpg-steps { margin-top: 48px; }
#install { scroll-margin-top: 72px; }

/* cards: the prompt that gets you there */
.lpmc-next { padding-top: 0; }
.lpmc-ask { margin-top: 6px; padding: 14px 16px; border: 1px solid #e5e5e5; border-radius: 10px; background: #fafafa; }
.lpmc-ask small { display: block; font-size: 12px; font-weight: 500; color: #2563eb; margin-bottom: 6px; }
.lpg-card__text .lpmc-ask p { font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #171717; max-width: none; }

/* MCP or the app */
.lpmc-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lpmc-vs__col { border: 1px solid #e5e5e5; border-radius: 14px; padding: 30px 32px 28px; background: #fff; }
.lpmc-vs__col h3, .lpmc-ctrl h3 { margin: 0 0 16px; font-size: 20px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; color: #171717; }
.lpmc-vs__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lpmc-vs__col li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: #171717; }
.lpmc-vs__col li::before { content: ""; box-sizing: border-box; width: 9px; height: 9px; border: 1.5px solid #a3a3a3; border-radius: 50%; flex: none;
  margin-top: 7px; margin-top: calc((1lh - 9px) / 2); }
.lpmc-vs__col:first-child li::before { border-color: #2563eb; }
.lpmc-ctrl { display: flex; gap: 18px; align-items: flex-start; margin-top: 16px; padding: 26px 32px; border: 1px solid #e5e5e5; border-radius: 14px; background: #fafafa; }
.lpmc-ctrl > i { width: 22px; height: 22px; flex: none; color: #2563eb; margin-top: 2px; }
.lpmc-ctrl h3 { margin-bottom: 8px; }
.lpg-sec .lpmc-ctrl p { margin: 0; font-size: 16px; line-height: 1.55; color: #3a3a3a; max-width: 92ch; }
.vs-faq p a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 991px) {
  .lpmc-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lpg-clients.lpmc-clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lpg-hero.lpmc-hero h1.lpg-hero__h1 { max-width: 20ch; }
  .lpmc-hero .lpg-win { max-width: none; }
}
@media (max-width: 767px) {
  .lpmc-flow, .lpmc-vs, .lpg-clients.lpmc-clients { grid-template-columns: 1fr; }
  .lpmc-term__body { padding: 18px 16px 20px; min-height: 0; font-size: 12.5px; }
  .lpmc-vs__col { padding: 24px 22px; }
  .lpmc-ctrl { padding: 22px; flex-direction: column; gap: 10px; }
  .lpmc-cmd { padding-right: 16px; padding-bottom: 52px; }
  .lpmc-copy { top: auto; bottom: 12px; right: auto; left: 16px; }
  .lpg-hero.lpmc-hero h1.lpg-hero__h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lpmc-client { transition: none; }
  .lpmc-term.is-play [data-step] { opacity: 1; transform: none; }
}
