/* /mcp/ (site/mcp-landing.mjs): its own parts on ACE-Step's layout (public/ace-step.css) — the hero and its Claude box, and the
   connect page's apps and steps (public/mcp-page.css) set in the page */

/* the hero (Figma 6292:5398): the connect page's eyebrow (public/mcp-page.css .mcp-eyebrow), a Bold title, the app it
   makes music in; the band's own glow — teal to lime, rising from the lower right — under it, the songs falling out of it */
.mcpl-band { position: relative; isolation: isolate; overflow: hidden; }
.mcpl-band::before { content: ''; position: absolute; z-index: -1; left: -22.69%; bottom: -59.59%; width: 145.37%; height: 186.62%; pointer-events: none;
  background: url('/public/assets/mcp-hero-glow.svg') center / 100% 100% no-repeat; }
.mcpl-hero { min-height: 740px; padding-top: 88px; padding-bottom: 96px; }
.mcpl-title { display: flex; flex-direction: column; align-items: flex-start; }
/* the title on one line: its column never narrower than it (the box gives way), and it a touch smaller on a narrow desktop */
.mcpl-hero { grid-template-columns: minmax(min-content, 1fr) minmax(0, 600px); }
.mcpl-hero h1 { font-weight: 700; text-wrap: balance; font-size: clamp(48px, 4.4vw, 60px); line-height: 1.2333; } /* (one line in English; a longer language's wraps — fr, ru) */
.mcpl-in { padding: 10px 0; font-size: 32px; line-height: 40px; font-weight: 400; }
/* (one app at a time in a line-high window; the list turns up a line every few seconds) */
.mcpl-win { display: block; height: 40px; overflow: hidden; }
.mcpl-roll { display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.65, 0, .35, 1); }
.mcpl-roll > span { display: flex; align-items: center; gap: 10px; height: 40px; white-space: nowrap; }
.mcpl-roll img { display: block; flex: none; }
.mcpl-roll img[src$="chatgpt.svg"], .mcpl-roll img[src$="grok.svg"], .mcpl-roll img[src$="cursor.svg"] { filter: invert(1); } /* (drawn black) */

/* Claude's message box, as claude.ai draws it (its type, its greys, its clay send button) at the frame's size: 600 × 200, r30 */
.mcpl-stage { position: relative; }
.mcpl-box { position: relative; z-index: 2; margin: 0; height: 200px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px;
  border: 1px solid var(--bg-bright); border-radius: 30px; background: #fff; color: rgb(0 0 0 / .9); box-shadow: 0 26px 80px #000, 0 -1px 0 rgb(255 255 255 / .06);
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; cursor: default; -webkit-user-select: none; user-select: none; } /* (a picture of one: no text cursor, nothing to select) */
.mcpl-text { position: relative; font-size: 16px; line-height: 24px; }
.mcpl-ph { position: absolute; left: 0; top: 0; color: rgb(0 0 0 / .5); pointer-events: none; }
.is-typed .mcpl-ph { display: none; }
.mcpl-caret { display: inline-block; position: relative; z-index: 1; width: 1.5px; height: 20px; margin-left: 1px; vertical-align: -4px; background: #000; animation: mcpl-blink 1s steps(1) infinite; }
@keyframes mcpl-blink { 50% { opacity: 0; } }
.mcpl-bar { display: flex; align-items: center; gap: 8px; height: 32px; }
.mcpl-ic, .mcpl-send { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; }
.mcpl-ic svg, .mcpl-send svg { display: block; }
.mcpl-seg { display: inline-flex; height: 32px; padding: 1px; border-radius: 8px; background: rgb(11 11 11 / .05); font-size: 15px; line-height: 30px; }
.mcpl-seg span { padding: 0 11px; border-radius: 7px; }
.mcpl-seg .on { background: #fff; box-shadow: 0 0 0 1px rgb(11 11 11 / .05), 0 1px 2px rgb(0 0 0 / .05); }
.mcpl-model { margin-left: auto; padding: 0 8px; font-size: 15px; line-height: 20px; font-weight: 500; white-space: nowrap; }
.mcpl-model small { font-size: inherit; font-weight: 400; color: rgb(0 0 0 / .6); }
/* send: there once something is typed, pressed when it goes */
.mcpl-send { width: 0; margin-left: -8px; overflow: hidden; opacity: 0; background: #ba5b3c; color: #fff;
  transition: width .2s ease, margin-left .2s ease, opacity .2s ease, transform .12s ease, background-color .12s ease; }
.is-typed .mcpl-send { width: 32px; margin-left: 0; opacity: 1; }
.is-press .mcpl-send { transform: scale(.86); background: #a14d31; }
/* (and the whole box gives a little as it sends, a quick light running across it and a glow of the hero's lime round it) */
.mcpl-box { transition: transform .18s cubic-bezier(.2, .8, .2, 1); }
.mcpl-box.is-press { transform: scale(.96); }
.mcpl-shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.mcpl-shine::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; opacity: 0; transform: translateX(-110%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgb(189 246 65 / .35) 35%, rgb(255 223 159 / .6) 50%, rgb(189 246 65 / .35) 65%, transparent); }
.is-shine .mcpl-shine::before { animation: mcpl-shine .6s cubic-bezier(.4, 0, .2, 1); }
@keyframes mcpl-shine { 0% { opacity: 1; transform: translateX(-110%) skewX(-18deg); } 100% { opacity: 1; transform: translateX(260%) skewX(-18deg); } }
.is-shine { animation: mcpl-glow .7s ease-out; }
@keyframes mcpl-glow { 0% { box-shadow: 0 26px 80px #000, 0 -1px 0 rgb(255 255 255 / .06), 0 0 0 0 rgb(189 246 65 / 0); }
  30% { box-shadow: 0 26px 80px #000, 0 -1px 0 rgb(255 255 255 / .06), 0 0 50px 4px rgb(189 246 65 / .55); }
  100% { box-shadow: 0 26px 80px #000, 0 -1px 0 rgb(255 255 255 / .06), 0 0 0 0 rgb(189 246 65 / 0); } }

/* ACE Music, connected: a pill hung on the box's top right edge, half above it — a lit dot, and a light running round its
   edge in the hero's lime */
.mcpl-badge { position: absolute; z-index: 3; top: -16px; right: 24px; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 12px;
  border: 1px solid transparent; border-radius: 16px; color: #fff; font: 400 12px/15px var(--font); white-space: nowrap; box-shadow: 0 8px 24px rgb(0 0 0 / .35);
  background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
    linear-gradient(110deg, var(--bg-bright) 35%, #bdf641 46%, #ffdf9f 50%, #bdf641 54%, var(--bg-bright) 65%) border-box;
  background-size: 100% 100%, 300% 100%; animation: mcpl-flow 2.4s linear infinite; }
@keyframes mcpl-flow { from { background-position: 0 0, 100% 0; } to { background-position: 0 0, -50% 0; } }
.mcpl-badge i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #88ff1f; box-shadow: 0 0 8px #88ff1f; animation: mcpl-dot 1.6s ease-in-out infinite; }
@keyframes mcpl-dot { 50% { opacity: .45; } }

/* the songs: behind the box till they leap out of it (public/mcp-landing.js throws them, gravity brings them down and out) */
.mcpl-covers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.mcpl-covers img { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 12px; opacity: 0;
  box-shadow: 0 20px 50px rgb(0 0 0 / .5); will-change: transform; }

/* what it can do: the first three as pictures over their words (Figma 6294:12425 …12467) — a card of BG Dark, 284 of picture
   (exported from Figma), then the title and its words at half white */
.as-grid .mcpl-feat { padding: 0; gap: 0; overflow: hidden; }
.mcpl-feat-text { display: flex; flex-direction: column; gap: 10px; min-height: 200px; padding: 20px; }
.as-grid .mcpl-feat-text p { color: rgb(255 255 255 / .5); }
.mcpl-shot { display: block; width: 100%; height: auto; aspect-ratio: 398 / 284; } /* (scaled with the card: nothing cut off) */

/* the apps and their steps (public/mcp-page.css .mcp-pills, .mcp-card): under the heading, at its left, not centred as on
   the connect page */
.mcpl-connect .mcp-pills { justify-content: flex-start; margin-top: 60px; }
.mcpl-card { margin-top: 30px; }
.mcpl-card .mcp-card { scroll-margin-top: 82px; }
/* (the card's own type, not ACE-Step's h2 and h3: .as-page's) */
.as-page .mcp-to { font-size: 12px; line-height: 15px; font-weight: 400; }
.as-page .mcp-step h3 { font-size: 24px; line-height: 30px; font-weight: 700; }
@media (max-width: 520px) { .as-page .mcp-step h3 { font-size: 20px; line-height: 25px; } }

/* (a narrow desktop's box: room for its own buttons, without Chat | Cowork) */
@media (max-width: 1100px) and (min-width: 901px) { .mcpl-seg { display: none; } }
@media (max-width: 900px) {
  .mcpl-hero { min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .mcpl-hero h1 { font-size: 40px; line-height: 50px; }
  .mcpl-connect .mcp-pills { margin-top: 40px; }
}
@media (max-width: 520px) {
  .mcpl-hero h1 { font-size: min(32px, calc((100vw - 40px) / 9)); line-height: 1.25; }
  .mcpl-in { font-size: 24px; line-height: 30px; }
  .mcpl-win, .mcpl-roll > span { height: 30px; }
  .mcpl-roll img { width: 24px; height: 24px; }
  .mcpl-box { height: 180px; border-radius: 24px; }
  .mcpl-badge { right: 16px; }
  .mcpl-seg { display: none; }
  .mcpl-covers img { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) { .mcpl-caret { animation: none; } .mcpl-send, .mcpl-box, .mcpl-roll { transition: none; } .mcpl-badge, .mcpl-badge i { animation: none; } }
