/* /mcp: the CodeDesign MCP feature page. Built on the feature kit (site, chrome, sections and feat CSS);
   these are the parts only this page has: the centred hero with the MCP address, the example chat,
   the capability cards, product screenshots on a colour panel, the app cards and the setup tabs.
   Product screenshots are real CodeDesign dashboard captures (transparent PNG → WebP). */

.mc-hero code,.mc-dev code,.f-end-note code,.mc-tool code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}

/* Hero: the feature hero (.fh) centred, with no picture so the H1 paints first */
.mc-hero{padding-bottom:clamp(36px,5vw,64px)}
.mc-hero-in{display:flex;flex-direction:column;align-items:center;text-align:center}
.mc-hero h1{max-width:14em}
.mc-hero h1 em{font-style:normal;color:var(--brand-ink)}
.mc-hero .fh-sub{max-width:36em;margin-left:auto;margin-right:auto}
.mc-hero .fh-ctas{justify-content:center}
.mc-addr{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 14px;margin:28px 0 0;padding:8px 8px 8px 18px;border-radius:14px;background:var(--paper);box-shadow:var(--lift)}
.mc-addr-k{font-size:13px;color:var(--muted)}
.mc-addr code{font-size:14.5px;font-weight:500;color:var(--ink)}
.mc-copy{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border:0;border-radius:9px;background:var(--fill);color:var(--ink);font:600 13px/1 var(--sans);cursor:pointer;transition:background .2s,color .2s}
.mc-copy:hover{background:var(--line-2)}
.mc-copy:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.mc-copy svg{width:15px;height:15px}
.mc-copy.ok{background:var(--ok-bg);color:var(--ok-ink)}
.mc-apps{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:880px;margin:22px 0 0;padding:0;list-style:none}
.mc-apps li{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 13px 0 5px;border-radius:999px;background:var(--paper);box-shadow:inset 0 0 0 1px var(--line);font:500 13.5px/1 var(--sans);color:var(--ink-2)}
.mc-apps .mc-apps-more{padding-left:13px;background:none;box-shadow:none;color:var(--muted)}
/* App marks sit on a light tile in both themes: some are drawn in black */
.mc-logo{display:grid;place-items:center;flex:none;width:25px;height:25px;border-radius:7px;background:#f4f4f5}
.mc-logo img{display:block;width:15px;height:15px}
/* Product Hunt launch card: PH's post embed (CodeDesign v3), restyled to the page theme; the button keeps PH orange */
.mc-ph{display:flex;align-items:center;gap:14px;width:100%;max-width:640px;margin:36px 0 0;padding:12px;border-radius:16px;background:var(--paper);box-shadow:var(--lift);color:var(--ink);text-align:left;text-decoration:none;transition:box-shadow .2s}
.mc-ph:hover{box-shadow:var(--lift-lg)}
.mc-ph:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.mc-ph img{flex:none;width:56px;height:56px;border-radius:10px;object-fit:cover;background:var(--fill)}
.mc-ph-t{flex:1 1 auto;min-width:0}
.mc-ph-t strong{display:block;font:600 16px/1.3 var(--sans)}
.mc-ph-t span{display:block;margin-top:3px;font-size:14px;line-height:1.4;color:var(--muted)}
.mc-ph-b{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;padding:0 16px;border-radius:999px;background:#ff6154;color:#fff;font:600 14px/1 var(--sans);white-space:nowrap;transition:background .2s}
.mc-ph:hover .mc-ph-b{background:#f04d40}
.mc-ph-b svg{width:15px;height:15px;transition:transform .2s}
.mc-ph:hover .mc-ph-b svg{transform:translateX(2px)}
@media (max-width:680px){.mc-ph{flex-wrap:wrap}.mc-ph-t{flex-basis:calc(100% - 70px)}.mc-ph-b{width:100%}}

/* Example chat: a neutral chat window, not any one app's design */
.mc-chat{margin:0;border-radius:22px;background:var(--paper);box-shadow:var(--lift-lg);overflow:hidden}
.mc-chat-bar{display:flex;align-items:center;gap:6px;height:40px;padding:0 16px;border-bottom:1px solid var(--line);background:var(--paper-2)}
.mc-chat-bar i{width:9px;height:9px;border-radius:50%;background:var(--line-3)}
.mc-chat-bar span{margin-left:8px;font:500 12.5px/1 var(--sans);color:var(--muted)}
.mc-chat-body{display:grid;gap:16px;padding:clamp(18px,3vw,28px)}
.mc-msg{max-width:88%;margin:0;font-size:14.5px;line-height:1.55;color:var(--ink-2)}
.mc-msg.me{justify-self:end;padding:11px 15px;border-radius:16px 16px 4px 16px;background:var(--fill);color:var(--ink)}
.mc-msg.ai{display:grid;gap:8px;justify-items:start}
.mc-msg.ai p{margin:2px 0 0}
.mc-msg u{text-decoration-color:var(--line-3);text-underline-offset:3px}
.mc-tool{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:5px 10px 5px 5px;border-radius:9px;box-shadow:inset 0 0 0 1px var(--line);font:500 12.5px/1 var(--sans);color:var(--muted)}
.mc-tool i{display:grid;place-items:center;flex:none;width:20px;height:20px;border-radius:6px;background:linear-gradient(135deg,#7a5cff,#5c33ff);color:#fff}
.mc-tool i svg{width:12px;height:12px}
.mc-tool b{font-weight:600;color:var(--ink)}
.mc-tool code{font-size:12px;color:var(--ink-2)}
.mc-tool em{display:inline-flex;align-items:center;gap:4px;font-style:normal;color:var(--ok-ink)}
.mc-tool em svg{width:13px;height:13px}
.mc-prev{display:block;width:min(340px,100%);margin-top:4px;border-radius:12px;overflow:hidden;background:var(--paper);box-shadow:0 0 0 1px var(--line),0 10px 24px -14px rgba(0,0,0,.25)}
.mc-prev img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:50% 0}
.mc-prev span{display:block;padding:9px 12px;font-size:12.5px;color:var(--muted)}

/* What it can do: six cards, each with an example request */
.mc-caps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.mc-caps li{display:flex;flex-direction:column;gap:10px;padding:24px;border-radius:20px;background:var(--bg);box-shadow:inset 0 0 0 1px var(--line)}
.mc-ic{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:var(--tint);color:var(--brand-ink)}
.mc-ic svg{width:21px;height:21px}
.mc-caps h3{margin:8px 0 0;font:600 19px/1.25 var(--display);letter-spacing:-.02em;color:var(--ink)}
.mc-caps p{margin:0;font-size:14.5px;line-height:1.55;color:var(--muted)}
.mc-caps .mc-q{margin-top:auto;padding:12px 14px;border-radius:12px;background:var(--paper);box-shadow:inset 0 0 0 1px var(--line);font-size:13.5px;line-height:1.45;color:var(--ink-2)}
.mc-q::before{content:"Ask";display:block;margin-bottom:5px;font:600 11px/1 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--brand-ink)}
.mc-more{margin:24px 0 0;text-align:center;font-size:14.5px;color:var(--muted)}

/* Product screenshots: a real dashboard dialog floating on a colour panel */
.h-row-art.mc-shot{aspect-ratio:auto;display:grid;place-items:center;padding:clamp(16px,4.5%,40px)}
.mc-shot img{display:block;width:100%;max-width:500px;height:auto}
.mc-final{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(24px,4vw,56px);align-items:center;margin:clamp(64px,9vw,120px) 0 0;padding:clamp(24px,3.5vw,40px);border-radius:24px;background:var(--paper);box-shadow:var(--lift)}
.mc-final h3{margin:0;font:600 calc(clamp(24px,2.4vw,34px) * min(var(--u),1.15))/1.12 var(--display);letter-spacing:-.03em;color:var(--ink);text-wrap:balance}
.mc-final p{margin:14px 0 0;max-width:46ch;font-size:clamp(15px,1.2vw,16.5px);line-height:1.6;color:var(--muted)}
.mc-final .d-cta{margin-top:24px}
.mc-final>img{display:block;width:100%;height:auto;border-radius:14px;box-shadow:0 0 0 1px var(--line)}

/* Apps: one card per AI app */
.mc-appgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.mc-appgrid li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 14px;align-content:start;padding:20px;border-radius:18px;background:var(--paper);box-shadow:var(--lift)}
.mc-appgrid .mc-logo{grid-row:span 2;width:44px;height:44px;border-radius:12px}
.mc-appgrid .mc-logo img{width:24px;height:24px}
.mc-appgrid .mc-logo-4{grid-template-columns:repeat(2,12px);gap:4px;place-content:center}
.mc-appgrid .mc-logo-4 img{width:12px;height:12px}
.mc-appgrid b{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font:600 16px/1.3 var(--display);letter-spacing:-.015em;color:var(--ink)}
.mc-tag{padding:4px 8px;border-radius:999px;background:var(--ok-bg);color:var(--ok-ink);font:600 11.5px/1 var(--sans);letter-spacing:0}
.mc-tag.key{background:var(--tint);color:var(--brand-ink)}
.mc-d{grid-column:2;font-size:14px;line-height:1.5;color:var(--muted)}

/* Setup for coding tools: tabs, each a copyable snippet */
/* flow-root keeps the open pane's bottom margin inside the card (the other panes are display:none, so it is the last child and would collapse through) */
.mc-dev{display:flow-root;margin:clamp(40px,6vw,64px) 0 0;border-radius:22px;background:var(--paper);box-shadow:var(--lift)}
.mc-dev-head{padding:26px 26px 0}
.mc-dev-head h3{margin:0;font:600 20px/1.25 var(--display);letter-spacing:-.02em;color:var(--ink)}
.mc-dev-head p{max-width:64ch;margin:8px 0 0;font-size:14.5px;line-height:1.55;color:var(--muted)}
.mc-dev-head code,.mc-pane-n code{padding:1px 5px;border-radius:5px;background:var(--fill);font-size:.92em;color:var(--ink)}
.mc-tabs{display:flex;gap:4px;width:max-content;max-width:calc(100% - 52px);margin:20px 26px 0;padding:4px;border-radius:12px;background:var(--fill);overflow-x:auto}
.mc-tabs button{flex:none;height:34px;padding:0 14px;border:0;border-radius:9px;background:transparent;color:var(--muted);font:600 13.5px/1 var(--sans);cursor:pointer;transition:color .2s,background .2s}
.mc-tabs button:hover{color:var(--ink)}
.mc-tabs button[aria-selected="true"]{background:var(--paper);color:var(--ink);box-shadow:var(--lift)}
.mc-tabs button:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.mc-pane{margin:18px 26px 26px}
.mc-pane[hidden]{display:none}
.mc-pane-k{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;font-size:13px;color:var(--muted)}
.mc-pane-k b{font:600 13px/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--ink-2)}
.mc-pane pre{margin:0;padding:16px 18px;border-radius:14px;background:#111114;box-shadow:0 0 0 1px var(--line);color:#e9e9ef;font:500 13px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-x:auto;tab-size:2}
.mc-pane pre code{white-space:pre}
.mc-pane-n{margin:12px 0 0;font-size:14px;line-height:1.55;color:var(--muted)}

/* End call to action */
.f-end-note code{padding:2px 6px;border-radius:6px;background:rgba(255,255,255,.14);color:#fff;font-size:.95em}

#faq .faq-h{font-size:calc(clamp(28px,3vw,42px) * min(var(--u),1.15))}

@media (max-width:980px){
  .mc-caps,.mc-appgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mc-final{grid-template-columns:1fr}
  .mc-shot img{max-width:440px}
}
@media (max-width:560px){
  .mc-caps,.mc-appgrid{grid-template-columns:1fr}
  .mc-addr{flex-direction:column;gap:8px;width:100%;padding:14px}
  .mc-addr code{font-size:13.5px}
  .mc-apps .mc-apps-more{width:100%;justify-content:center}
  .mc-msg{max-width:100%}
  .mc-msg.me{max-width:92%}
  .mc-tool{flex-wrap:wrap;row-gap:4px}
  .mc-dev-head{padding:22px 18px 0}
  .mc-tabs{max-width:calc(100% - 36px);margin:18px 18px 0}
  .mc-pane{margin:16px 18px 20px}
  .mc-pane pre{padding:14px;font-size:12px}
  /* The dialog captures carry a transparent margin for their shadow: let it run off the panel on phones */
  .h-row-art.mc-shot{padding:10px 0}
  .mc-shot img{width:114%;max-width:none;margin:-3% -7%}
}
@media (prefers-reduced-motion:reduce){.mc-copy,.mc-tabs button,.mc-ph,.mc-ph-b,.mc-ph-b svg{transition:none}}
