/* /cli only (ctl_cli styles): the mcp-tc landing page. Design A; the one new material is the terminal, dark in both
   themes (it is a terminal), with the site's state colours on the Access column and nothing else coloured. */

/* hero: copy on the left, the recorded session on the right, both from the top (stacked below 1200 px: narrower, the
   copy column squeezed the headline and the lede) */
.cli-hero{padding-bottom:clamp(48px,6vw,72px);border-bottom:1px solid var(--line)}
.cli-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,612px);gap:clamp(32px,4vw,56px);align-items:start;margin-top:clamp(28px,4vw,48px)}
.cli-title{max-width:17ch;font-size:clamp(34px,1.5rem + 2.2vw,52px);font-weight:600;line-height:1.06;letter-spacing:-.04em;text-wrap:balance}
.cli-lede{max-width:52ch;margin-top:20px;font-size:clamp(16px,.95rem + .25vw,18px);line-height:1.55;color:var(--fg-2);text-wrap:pretty}

/* the command to copy, set like the listing's Connect value: grey well, mono, prompt in fg-3 */
.cli-install{display:flex;align-items:center;gap:12px;max-width:420px;height:56px;margin-top:32px;padding:0 10px 0 18px;border:1px solid var(--line);border-radius:var(--r);background:var(--bg-2);font-family:var(--mono)}
.cli-install .ps{font-size:17px;color:var(--fg-3);user-select:none}
.cli-install code{flex:1;min-width:0;font-size:17px;font-weight:600;color:var(--fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cli-install .copy{width:36px;height:36px;border-radius:var(--r-sm)}
.cli-install .copy .i{width:18px;height:18px}
.cli-note{margin-top:10px;font-size:14px;color:var(--fg-3);text-wrap:pretty}
.cli-act{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.cli-act .btn .i{width:18px;height:18px}
.cli-meta{margin-top:20px;font-size:14px;color:var(--fg-3)}

/* the terminal: always dark; on the dark theme one step up from the page so its edge still shows */
.term-fig{min-width:0}
.term{--t-bg:#0a0a0a;--t-edge:#0a0a0a;--t-bar:#1f1f1f;--t-fg:#ededed;--t-fg2:#c4c4c4;--t-fg3:#8c8c8c;--t-ok:#4ade80;--t-warn:#fbbf24;
  overflow:hidden;border:1px solid var(--t-edge);border-radius:var(--r);background:var(--t-bg);color:var(--t-fg2);color-scheme:dark}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .term{--t-bg:#111;--t-edge:#2a2a2a;--t-bar:#232323}}
:root[data-theme=dark] .term{--t-bg:#111;--t-edge:#2a2a2a;--t-bar:#232323}
.term-bar{display:flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-bottom:1px solid var(--t-bar);font:400 12px/1 var(--mono);color:var(--t-fg3)}
.term-bar .i{width:15px;height:15px}
.term-out{margin:0;padding:16px 20px 20px;overflow-x:auto;font-size:13px;line-height:1.65;white-space:pre;tab-size:2;scrollbar-width:thin;scrollbar-color:#3a3a3a transparent}
.term-out:focus-visible{outline:2px solid var(--t-fg);outline-offset:-4px;border-radius:var(--r)}
.term-out code{font:inherit}
.term ::selection{background:var(--t-fg);color:#0a0a0a}
.t-ps{color:var(--t-fg3);user-select:none}
.t-cmd{color:var(--t-fg);font-weight:500}
.t-b{color:var(--t-fg);font-weight:600}
.t-dim{color:var(--t-fg3)}
.t-ok{color:var(--t-ok)}
.t-warn{color:var(--t-warn)}
/* the marked URL isn't a link: a wash and weight, no underline */
.t-mark{padding:2px 0;border-radius:2px;background:#333;color:#fff;font-weight:600}
.term-fig figcaption{max-width:64ch;margin-top:12px;font-size:13px;line-height:1.55;color:var(--fg-3);text-wrap:pretty}

@media (max-width:1199px){
  .cli-hero-grid{grid-template-columns:minmax(0,1fr)}
  .cli-title{max-width:16ch}
  .term-fig{max-width:760px}
}
@media (max-width:559px){
  .cli-install{max-width:none;height:52px;padding-left:14px}
  .cli-install .ps,.cli-install code{font-size:16px}
  .cli-act .btn{flex:1 1 100%}
  .term-out{padding:14px 16px 16px;font-size:12px}
}
/* the session is wider than a phone: it scrolls sideways inside the panel, and a 40 px fade at the right edge says so
   (the chip rows' fade). Where scroll timelines exist the fade slides out as you reach the end of the lines. */
@media (max-width:639px){
  /* end padding as wide as the fade: scrolled to the end, the last characters clear it (also without scroll timelines) */
  .term-out{padding-right:40px;-webkit-mask:linear-gradient(90deg,#000 calc(100% - 40px),#0000) 0 0/100% 100% no-repeat;mask:linear-gradient(90deg,#000 calc(100% - 40px),#0000) 0 0/100% 100% no-repeat}
  @supports (animation-timeline:scroll(x self)){
    @media (prefers-reduced-motion:no-preference){.term-out{animation:term-end linear both;animation-timeline:scroll(x self)}}
  }
}
@keyframes term-end{85%{-webkit-mask-size:100% 100%;mask-size:100% 100%}to{-webkit-mask-size:calc(100% + 40px) 100%;mask-size:calc(100% + 40px) 100%}}

/* what it does: one ruled row per job, the text on the left, its commands on the right */
.section-head .section-sub{max-width:68ch}
.feats{border-top:1px solid var(--line)}
.feat{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:16px clamp(24px,5vw,64px);padding-block:32px;border-bottom:1px solid var(--line)}
.feat:last-child{padding-bottom:0;border-bottom:0}
.feat h3{font-size:20px;font-weight:600;line-height:1.3;letter-spacing:-.02em;text-wrap:balance}
.feat-copy p{max-width:60ch;margin-top:10px;font-size:15px;line-height:1.65;color:var(--fg-2);text-wrap:pretty}
.cmds{align-self:start;border:1px solid var(--line);border-radius:var(--r)}
.cmds li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:10px;align-items:start;padding:12px 10px 12px 16px}
.cmds li + li{border-top:1px solid var(--line)}
.cmds .ps{grid-area:1/1;font:400 13.5px/1.5 var(--mono);color:var(--fg-3);user-select:none}
.cmd-c{grid-area:1/2;font:500 13.5px/1.5 var(--mono);color:var(--fg);overflow-wrap:anywhere}
.cmd-c code{font:inherit}
.cmd-d{grid-area:2/2;margin-top:2px;font-size:13.5px;line-height:1.5;color:var(--fg-3);text-wrap:pretty}
.cmd-d .ci{font-size:12.5px}
.cmds .copy{grid-area:1/3/3/4;align-self:center}
@media (max-width:899px){.feat{grid-template-columns:minmax(0,1fr)}}

/* scripts and agents: the pitch beside a few commands, then four facts in one ruled box */
.auto{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:24px clamp(24px,5vw,64px);align-items:end}
.auto .section-sub{max-width:52ch;font-size:15px;line-height:1.6;text-wrap:pretty}
.auto .code pre{white-space:pre;overflow-wrap:normal}
.auto-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:32px;border:1px solid var(--line);border-radius:var(--r)}
.auto-grid li{padding:24px}
.auto-grid li + li{border-left:1px solid var(--line)}
.auto-grid h3{margin-bottom:6px;font-size:16px;font-weight:600;letter-spacing:-.01em;text-wrap:balance}
.auto-grid p{font-size:14px;line-height:1.6;color:var(--fg-2);text-wrap:pretty}
@media (max-width:1099px){
  .auto-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .auto-grid li:nth-child(3){border-left:0}
  .auto-grid li:nth-child(n+3){border-top:1px solid var(--line)}
}
@media (max-width:899px){.auto{grid-template-columns:minmax(0,1fr);align-items:start}}
@media (max-width:559px){
  .auto-grid{grid-template-columns:minmax(0,1fr)}
  .auto-grid li{padding:20px}
  .auto-grid li + li{border-left:0;border-top:1px solid var(--line)}
}

/* closing: a grey panel; the heading and the links on the left, the command on the right (phones: heading, command, links).
   No section hairline above it: the panel has its own edge, and the FAQ ends on one. */
.section.cli-end>.wrap::before{display:none}
.cli-cta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,400px);gap:20px 48px;align-items:center;padding:clamp(24px,4vw,40px);border:1px solid var(--line);border-radius:var(--r);background:var(--bg-2)}
.cli-cta-t{grid-area:1/1}
.cli-cta p{max-width:56ch;margin-top:8px;font-size:15px;color:var(--fg-2);text-wrap:pretty}
.cli-install-cta{grid-area:1/2/3/3;max-width:none;margin-top:0;background:var(--bg)}
.cli-links{grid-area:2/1;display:flex;flex-wrap:wrap;gap:10px 24px}
@media (max-width:899px){
  .cli-cta{grid-template-columns:minmax(0,1fr)}
  .cli-cta-t,.cli-install-cta,.cli-links{grid-area:auto}
}

@media (forced-colors:active){
  .term{border-color:CanvasText}
  .t-mark{outline:1px solid Highlight}
  .term-out{-webkit-mask:none;mask:none}
}
@media print{.term{border-color:#000}.term-out{-webkit-mask:none;mask:none;white-space:pre-wrap}}
