/* ═══════════════════════════════════════════════════════════════
   MARMO — /mcp-demo. On top of css/marmo.css, in the language of the service pages:
   opening with the arch, then the phone recording next to the install card and its two buttons.
   ═══════════════════════════════════════════════════════════════ */

:lang(ja) .display em, :lang(ko) .display em { font-style: normal; }
:lang(ko) :is(.display, h2, p) { word-break: keep-all; overflow-wrap: break-word; }

.mcp-head { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px var(--pad) 60px; overflow: hidden; overflow: clip; }
.mcp-head > :not(.head-art) { position: relative; }
.mcp-head .display { max-width: min(1040px, 100%); overflow-wrap: break-word; }
.mcp-head .lead { margin-top: 32px; max-width: 720px; }
.head-art { position: absolute; right: -40px; bottom: 0; width: min(680px, 50vw); height: 440px; max-width: none; object-fit: cover; object-position: 66% 60%; opacity: .55; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.75) 38%, rgba(0,0,0,.25) 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.75) 38%, rgba(0,0,0,.25) 72%, transparent 100%); }

/* Split layout: phone video on the left, install card on the right */
.mcp-stage { flex: none; padding-bottom: 120px; }
.mcp-grid { display: grid; gap: 72px; grid-template-columns: minmax(0, 360px) minmax(0, 480px); align-items: center; justify-content: center; }

/* Video: a portrait phone recording (720x1364). The frame takes the video's own ratio, capped
   by the screen height (width = 78vh * 720/1364), so there are no black side bars and the
   controls sit on the picture, whatever the viewport. */
.mcp-video-wrap { padding: 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); width: min(100%, 340px, 41vh); width: min(100%, 340px, 41svh); min-width: min(100%, 240px); margin-inline: auto; }
.mcp-video-inner { border-radius: 5px; overflow: hidden; background: #000; }
.mcp-video-inner video { display: block; width: 100%; height: auto; aspect-ratio: 720 / 1364; background: #000; }
:root[data-theme="light"] .mcp-video-inner,
:root[data-theme="light"] .mcp-video-inner video { background: #fff; }
.mcp-langnote { max-width: 340px; margin: 14px auto 0; font-size: 13px; color: var(--muted); text-align: center; }

/* Install card; under it the two buttons, sharing its width */
.mcp-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mcp-install { display: flex; flex-direction: column; align-items: flex-start; padding: 40px 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.mcp-openai-tile { width: 60px; height: 60px; border-radius: 8px; display: grid; place-items: center; overflow: hidden; margin-bottom: 22px; background: #f2efe8; border: 1px solid var(--line); }
.mcp-openai-tile img { display: block; width: 44px; height: 44px; }
.mcp-install-eyebrow { font-size: 19px; line-height: 1.3; }
.mcp-install h2 { margin-top: 6px; font-weight: 300; font-size: 30px; line-height: 1.12; text-wrap: balance; overflow-wrap: break-word; }
.mcp-install-desc { margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--text); text-wrap: pretty; }
.mcp-install-btn { align-self: stretch; min-height: 54px; margin-top: 28px; white-space: normal; }
.mcp-install-btn svg { width: 18px; height: 18px; flex: none; }
.mcp-install-note { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.mcp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mcp-actions .btn { flex: 1 1 190px; padding: 6px 18px; white-space: normal; }

@media (max-width: 1040px) {
    .mcp-grid { gap: 40px; grid-template-columns: minmax(0, 340px) minmax(0, 480px); }
    .mcp-install { padding: 32px 28px; }
    .mcp-install h2 { font-size: 26px; }
}
@media (min-width: 761px) and (max-width: 1040px) {
    .mcp-head .display { font-size: clamp(42px, 6vw, 56px); }
}
@media (max-width: 860px) {
    .mcp-grid { grid-template-columns: minmax(0, 480px); gap: 40px; }
}
@media (max-width: 760px) {
    .mcp-head { padding: 48px 26px 40px; }
    .mcp-head .lead { margin-top: 20px; }
    .head-art { display: none !important; }
    .mcp-stage { padding-bottom: 72px; }
    .mcp-install { padding: 26px 22px; }
    .mcp-install h2 { font-size: 28px; }
    .mcp-actions { flex-direction: column; }
    .mcp-actions .btn { flex: 0 0 auto; width: 100%; min-height: 52px; }
}

.mcp-stage.sec-alt { padding-top: 56px; padding-bottom: 80px; }
@media (max-width: 760px) { .mcp-stage.sec-alt { padding-top: 32px; padding-bottom: 48px; } }
