/* The MCP page (/mcp/, owner 1 Dec 2026). Every class starts mcp- or mf- so none can clash with site.css.
   The only script on the page is the Copy buttons (assets/js/mcp-page.js); every animation here is CSS.

   - .mf: the hero map, from the owner's drawing. Where meetings happen, KhuHu, the AI apps, joined by
     lines that draw themselves, with dots that run along them. It has two drawings: wide (left to right)
     and tall (top to bottom, for phones). Boxes are placed by the same numbers as the lines, so they meet.
   - .mcp-win: two made-up chats, one dressed like ChatGPT and one like Claude, each marked "Example".
     KhuHu connects, its tools run, the answer comes with its source.
   - Without motion (the visitor asked for less, or an old browser) the finished map and the finished
     chats show and nothing moves. A loop longer than five seconds needs a way to stop it: the Pause box.
   - The meetings, workspaces and people are made up: never put words or names from a real meeting here. */

/* ================= the hero map ================= */
.mcp-hero .wrap { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
@media (max-width: 860px) { .mcp-hero .wrap { grid-template-columns: minmax(0, 1fr); } }

.mf { --mf-loop: 12s; margin: 0; width: 100%; justify-self: center; }
.mf-map {
  --vw: 600; --vh: 330;
  --mf-surface: #ffffff; --mf-line: #d9d2c4; --mf-wire: #7b8399; --mf-fg: #1b2440; --mf-muted: #535b72;
  --mf-hub: #1b2440; --mf-hub-fg: #fff6ea; --mf-dot: #ff634a;
  position: relative; container-type: inline-size; aspect-ratio: 600 / 330; color: var(--mf-fg); font-family: var(--sans);
}
@media (prefers-color-scheme: dark) {
  .mf-map { --mf-surface: #1d243b; --mf-line: #3a4363; --mf-wire: #8f98b3; --mf-fg: #f4efe6; --mf-muted: #b4bacb; --mf-hub: #fff6ea; --mf-hub-fg: #1b2440; }
}
.mf-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mf-lines.tall { display: none; }
.mf-lines .ln { fill: none; stroke: var(--mf-wire); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.mf-lines .ln.dash { stroke-dasharray: 5 5; }
.mf-lines .dot { fill: var(--mf-dot); opacity: 0; }

.mf-map .mf-n, .mf-map .mf-l { position: absolute; margin: 0; left: calc(var(--x) / var(--vw) * 100%); top: calc(var(--y) / var(--vh) * 100%); }
.mf-n { width: calc(var(--w) / var(--vw) * 100%); height: calc(var(--h) / var(--vh) * 100%); display: flex; align-items: center; gap: 1.6cqw; padding: 0 1.6cqw; border: 1px solid var(--mf-line); border-radius: 1.6cqw; background: var(--mf-surface); font-size: 2.35cqw; line-height: 1.2; white-space: nowrap; box-shadow: 0 1px 2px rgba(27, 36, 64, .06); }
.mf-n b { font-weight: 650; }
.mf-n span { display: grid; min-width: 0; }
.mf-n small { color: var(--mf-muted); font-size: .86em; }
.mf-l { font-size: 2.8cqw; line-height: 1.2; font-weight: 750; white-space: nowrap; }
.mf-ico { flex: none; display: grid; place-items: center; width: 5.4cqw; height: 5.4cqw; border-radius: 1.2cqw; background: #fff; }
.mf-ico img, .mf-ico svg { display: block; width: 78%; height: 78%; object-fit: contain; }
.mf-ico.zoom { background: #0b5cff; }
.mf-ico.zoom svg { fill: #fff; }
.mf-ico.room { background: none; }
.mf-ico.room svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mf-n.ai { gap: 1.8cqw; }
.mf-n.ai .mf-ico { width: 6cqw; height: 6cqw; }
.mf-n.file { border-style: dashed; }
.mf-hub { justify-content: center; flex-direction: column; gap: .4cqw; border: 0; background: var(--mf-hub); color: var(--mf-hub-fg); text-align: center; box-shadow: 0 6px 18px rgba(27, 36, 64, .22); }
.mf-hub b { font: 700 4.6cqw/1.1 var(--serif); }
.mf-hub small { color: inherit; opacity: .85; font-size: 2.3cqw; }
.mf figcaption { margin-top: 12px; font-size: .88rem; color: var(--muted); text-align: center; }

/* Wide: the same numbers as the wide drawing (600 by 330). */
.mf-l.l-on { --x: 10; --y: 20; } .mf-l.l-room { --x: 10; --y: 232; } .mf-l.l-app { --x: 430; --y: 40; }
.mf-n.s1 { --x: 10; --y: 50; --w: 180; --h: 44; } .mf-n.s2 { --x: 10; --y: 104; --w: 180; --h: 44; }
.mf-n.s3 { --x: 10; --y: 158; --w: 180; --h: 44; } .mf-n.s4 { --x: 10; --y: 262; --w: 180; --h: 44; }
.mf-hub { --x: 240; --y: 150; --w: 140; --h: 80; }
.mf-n.a1 { --x: 430; --y: 70; --w: 160; --h: 56; } .mf-n.a2 { --x: 430; --y: 162; --w: 160; --h: 56; } .mf-n.a3 { --x: 430; --y: 254; --w: 160; --h: 56; }
.wide .d1 { offset-path: path("M190 72 C222 72 208 176 240 176"); }
.wide .d2 { offset-path: path("M190 126 C218 126 212 186 240 186"); }
.wide .d3 { offset-path: path("M190 180 C215 180 215 194 240 194"); }
.wide .d4 { offset-path: path("M190 284 C222 284 208 204 240 204"); }
.wide .d5 { offset-path: path("M380 180 C412 180 398 98 430 98"); }
.wide .d6 { offset-path: path("M380 190 L430 190"); }
.wide .d7 { offset-path: path("M380 200 C412 200 398 282 430 282"); }

/* Tall, for phones: top to bottom (360 by 470). */
@media (max-width: 600px) {
  .mf-map { --vw: 360; --vh: 470; aspect-ratio: 360 / 470; }
  .mf-lines.wide { display: none; } .mf-lines.tall { display: block; }
  .mf-n { font-size: 3.7cqw; gap: 2.4cqw; padding: 0 2.6cqw; border-radius: 2.4cqw; }
  .mf-l { font-size: 4cqw; }
  .mf-ico { width: 7.4cqw; height: 7.4cqw; border-radius: 1.6cqw; }
  .mf-n.ai { flex-direction: column; justify-content: center; gap: 1cqw; padding: 0 1cqw; text-align: center; }
  .mf-n.ai .mf-ico { width: 7.4cqw; height: 7.4cqw; }
  .mf-hub b { font-size: 7cqw; } .mf-hub small { font-size: 3.5cqw; }
  .mf-l.l-on { --x: 8; --y: 2; } .mf-l.l-room { --x: 186; --y: 2; } .mf-l.l-app { --x: 8; --y: 372; }
  .mf-n.s1 { --x: 8; --y: 28; --w: 166; --h: 44; } .mf-n.s2 { --x: 8; --y: 80; --w: 166; --h: 44; }
  .mf-n.s3 { --x: 8; --y: 132; --w: 166; --h: 44; } .mf-n.s4 { --x: 186; --y: 28; --w: 166; --h: 44; }
  .mf-hub { --x: 90; --y: 250; --w: 180; --h: 76; }
  .mf-n.a1 { --x: 8; --y: 400; --w: 108; --h: 66; } .mf-n.a2 { --x: 126; --y: 400; --w: 108; --h: 66; } .mf-n.a3 { --x: 244; --y: 400; --w: 108; --h: 66; }
}
.tall .d1 { offset-path: path("M174 50 C181 50 172 200 172 250"); }
.tall .d2 { offset-path: path("M174 102 C180 102 178 200 178 250"); }
.tall .d3 { offset-path: path("M91 176 C91 220 150 210 150 250"); }
.tall .d4 { offset-path: path("M269 72 C269 190 200 180 200 250"); }
.tall .d5 { offset-path: path("M160 326 C160 370 62 356 62 400"); }
.tall .d6 { offset-path: path("M180 326 L180 400"); }
.tall .d7 { offset-path: path("M200 326 C200 370 298 356 298 400"); }

@media (prefers-reduced-motion: no-preference) {
  .mf.playing .ln { animation: mf-draw var(--mf-loop) ease-out infinite backwards; }
  .mf.playing .ln.dash { animation-name: mf-fade; }
  .mf.playing .dot { animation: mf-run var(--mf-loop) ease-in-out infinite backwards; }
  .mf.playing .mf-n:not(.mf-hub) { animation: mf-pop var(--mf-loop) ease-out infinite backwards; }
  .mf.playing .mf-hub { animation: mf-pulse 3s ease-in-out infinite; }
  .mf.playing :is(.l5, .l6) { animation-name: mf-draw-out; }
  .mf.playing .mf-n.ai { animation-name: mf-pop-out; }
  /* Sources one after another, then KhuHu, then the apps. A box lights just before its line draws. */
  .mf.playing .mf-n.s1:not(.mf-hub) { animation-delay: 0s; }   .mf.playing .l1 { animation-delay: .3s; }  .mf.playing .d1 { animation-delay: .7s; }
  .mf.playing .mf-n.s2:not(.mf-hub) { animation-delay: .9s; }  .mf.playing .l2 { animation-delay: 1.2s; } .mf.playing .d2 { animation-delay: 1.6s; }
  .mf.playing .mf-n.s3:not(.mf-hub) { animation-delay: 1.8s; } .mf.playing .l3 { animation-delay: 2.1s; } .mf.playing .d3 { animation-delay: 2.5s; }
  .mf.playing .mf-n.s4:not(.mf-hub) { animation-delay: 2.7s; } .mf.playing .l4 { animation-delay: 3s; }   .mf.playing .d4 { animation-delay: 3.4s; }
  .mf.playing .l5 { animation-delay: 4.4s; } .mf.playing .d5 { animation-delay: 4.8s; } .mf.playing .mf-n.a1:not(.mf-hub) { animation-delay: 5.1s; }
  .mf.playing .l6 { animation-delay: 5.1s; } .mf.playing .d6 { animation-delay: 5.5s; } .mf.playing .mf-n.a2:not(.mf-hub) { animation-delay: 5.8s; }
  .mf.playing .l7 { animation-delay: 5.8s; } .mf.playing .d7 { animation-delay: 6.2s; } .mf.playing .mf-n.a3:not(.mf-hub) { animation-delay: 6.6s; }
}
@keyframes mf-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 5%, 72% { stroke-dashoffset: 0; opacity: 1; } 77%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes mf-draw-out { 0% { stroke-dashoffset: 1; opacity: 1; } 5%, 40% { stroke-dashoffset: 0; opacity: 1; } 45%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes mf-fade { 0% { opacity: 0; } 5%, 34% { opacity: 1; } 39%, 100% { opacity: 0; } }
/* A dot runs its line three times while the line is drawn. */
@keyframes mf-run {
  0% { offset-distance: 0%; opacity: 0; } 1% { offset-distance: 0%; opacity: 1; } 8% { offset-distance: 100%; opacity: 1; } 9% { offset-distance: 100%; opacity: 0; }
  14% { offset-distance: 0%; opacity: 0; } 15% { offset-distance: 0%; opacity: 1; } 22% { offset-distance: 100%; opacity: 1; } 23% { offset-distance: 100%; opacity: 0; }
  28% { offset-distance: 0%; opacity: 0; } 29% { offset-distance: 0%; opacity: 1; } 36% { offset-distance: 100%; opacity: 1; } 37%, 100% { offset-distance: 100%; opacity: 0; }
}
@keyframes mf-pop { 0% { opacity: .4; transform: scale(.97); } 3% { opacity: 1; transform: scale(1.04); } 6%, 72% { opacity: 1; transform: none; } 77%, 100% { opacity: .4; transform: scale(.97); } }
@keyframes mf-pop-out { 0% { opacity: .4; transform: scale(.97); } 3% { opacity: 1; transform: scale(1.04); } 6%, 36% { opacity: 1; transform: none; } 41%, 100% { opacity: .4; transform: scale(.97); } }
@keyframes mf-pulse { 50% { box-shadow: 0 6px 18px rgba(27, 36, 64, .22), 0 0 0 7px rgba(255, 99, 74, .22); } }

/* ================= the two chats ================= */
.mcp-demo { margin: 28px 0 0; }
.mcp-wins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 860px) { .mcp-wins { grid-template-columns: minmax(0, 1fr); } }

.mcp-win {
  --m-bg: #ffffff; --m-fg: #0d0d0d; --m-muted: #6b6b6b; --m-line: #e5e5e5; --m-bubble: #f4f4f4; --m-soft: #f9f9f9;
  --m-ok: #1a8f5a; --m-send: #0d0d0d; --m-send-fg: #ffffff; --m-loop: 18s;
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--m-line); border-radius: 20px; background: var(--m-bg); color: var(--m-fg);
  box-shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 12px 32px rgba(27, 36, 64, .12);
  font: 16px/1.5 var(--sans);
}
/* Claude's warmer page and its serif answers. */
.mcp-win.claude { --m-bg: #faf9f5; --m-fg: #1f1e1d; --m-muted: #73726c; --m-line: #e6e3d9; --m-bubble: #f0eee6; --m-soft: #f5f4ee; --m-send: #d97757; }
@media (prefers-color-scheme: dark) {
  .mcp-win { --m-bg: #212121; --m-fg: #ececec; --m-muted: #a9a9a9; --m-line: #3a3a3a; --m-bubble: #303030; --m-soft: #2a2a2a; --m-ok: #4cc38a; --m-send: #ffffff; --m-send-fg: #0d0d0d; box-shadow: none; }
  .mcp-win.claude { --m-bg: #262624; --m-fg: #f0eee6; --m-muted: #a6a39a; --m-line: #3d3c38; --m-bubble: #1a1918; --m-soft: #30302e; --m-send: #d97757; --m-send-fg: #ffffff; }
}
:where(.mcp-win) :where(p, ul, ol) { padding: 0; list-style: none; }
.mcp-win p, .mcp-win ul, .mcp-win ol { margin: 0; }
.mcp-win svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mcp-k { flex: none; display: block; width: 20px; height: 20px; border-radius: 5px; }

/* The top bar: the app's mark and name, and the word Example. */
.mcp-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--m-line); }
.mcp-bar .mcp-logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #fff; }
.mcp-bar .mcp-logo img { display: block; width: 20px; height: 20px; }
.mcp-app { font-weight: 650; font-size: 1.05rem; }
.mcp-tag { margin-left: auto; padding: 3px 10px; border: 1px solid var(--m-line); border-radius: 999px; color: var(--m-muted); font-size: .78rem; font-weight: 600; }

.mcp-chat { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 22px 20px 12px; min-height: 470px; }
.mcp-ask { align-self: flex-end; max-width: 86%; padding: 11px 18px; border-radius: 22px; background: var(--m-bubble); }
.mcp-win.claude .mcp-ask { border-radius: 14px; }

/* The tool calls: KhuHu's mark, what it is doing, the tool's name. "Running" and "done" share one cell. */
.mcp-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.mcp-tools li { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.mcp-tools li > span { grid-area: 1 / 1; display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--m-muted); font-size: .92rem; }
.mcp-tools .run { opacity: 0; }
.mcp-tools em { min-width: 0; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcp-tools code { margin-left: auto; padding: 2px 8px; border-radius: 6px; background: var(--m-soft); color: var(--m-muted); font-size: .76rem; white-space: nowrap; }
.mcp-tools .done svg { width: 15px; height: 15px; color: var(--m-ok); }
.mcp-win.claude .mcp-tools li { padding: 9px 12px; border: 1px solid var(--m-line); border-radius: 10px; }
.mcp-tools .run em { background: linear-gradient(90deg, var(--m-muted) 0 40%, var(--m-fg) 50%, var(--m-muted) 60% 100%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 480px) { .mcp-tools code { display: none; } }

/* The answer: thinking dots first, in the same place. */
.mcp-reply { display: grid; grid-template-columns: minmax(0, 1fr); }
.mcp-think, .mcp-ans { grid-area: 1 / 1; }
.mcp-think { display: flex; align-items: center; gap: 5px; height: 24px; opacity: 0; }
.mcp-think b { width: 7px; height: 7px; border-radius: 50%; background: var(--m-muted); }
.mcp-ans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.mcp-win.claude .mcp-ans { font-family: var(--serif); font-size: 1.06rem; }
.mcp-ans ol { display: grid; gap: 5px; padding-left: 22px; list-style: decimal; }
.mcp-quote { padding: 2px 0 2px 14px; border-left: 3px solid var(--m-line); color: var(--m-fg); }
.mcp-quote b { display: block; color: var(--m-muted); font: 600 .8rem/1.4 var(--sans); }
/* The source: the meeting it came from, with KhuHu's mark. */
.mcp-src { display: flex; align-items: center; gap: 10px; justify-self: start; max-width: 100%; padding: 8px 14px 8px 10px; border: 1px solid var(--m-line); border-radius: 12px; background: var(--m-soft); font: 500 .86rem/1.3 var(--sans); }
.mcp-src span { display: grid; min-width: 0; }
.mcp-src small { color: var(--m-muted); font-size: .78rem; }

/* The message box: KhuHu shown as a connected app. */
.mcp-box { display: flex; align-items: center; gap: 10px; margin: 0 16px 16px; padding: 10px 10px 10px 14px; border: 1px solid var(--m-line); border-radius: 26px; background: var(--m-bg); box-shadow: 0 2px 8px rgba(0, 0, 0, .05); color: var(--m-muted); }
.mcp-win.claude .mcp-box { border-radius: 16px; background: var(--m-soft); }
.mcp-box > svg { width: 18px; height: 18px; }
.mcp-chip { display: grid; }
.mcp-chip > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 5px; border: 1px solid var(--m-line); border-radius: 999px; color: var(--m-fg); font-size: .84rem; font-weight: 600; white-space: nowrap; }
.mcp-chip .c1 { opacity: 0; }
.mcp-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--m-ok); }
.mcp-chip .c1 i { width: 12px; height: 12px; border: 2px solid var(--m-line); border-top-color: var(--m-fg); background: none; }
.mcp-chip small { color: var(--m-muted); font-weight: 500; }
.mcp-hint { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.mcp-send { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--m-send); color: var(--m-send-fg); }
.mcp-win.claude .mcp-send { border-radius: 9px; }
.mcp-send svg { width: 16px; height: 16px; stroke-width: 2.6; }
@media (max-width: 480px) { .mcp-hint { display: none; } .mcp-chip { margin-right: auto; } }

.mcp-demo figcaption { margin-top: 14px; font-size: .88rem; color: var(--muted); text-align: center; }
.mcp-pausebox { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .mcp-demo.playing .mcp-chip .c1 { animation: mcp-c1 var(--m-loop) linear infinite backwards; }
  .mcp-demo.playing .mcp-chip .c1 i { animation: mcp-spin .8s linear infinite; }
  .mcp-demo.playing .mcp-chip .c2 { animation: mcp-c2 var(--m-loop) ease-out infinite backwards; }
  .mcp-demo.playing .mcp-ask { animation: mcp-ask var(--m-loop) ease-out infinite backwards; }
  .mcp-demo.playing .mcp-tools li:nth-child(1) { animation: mcp-t1 var(--m-loop) ease-out infinite backwards; }
  .mcp-demo.playing .mcp-tools li:nth-child(1) .run { animation: mcp-t1run var(--m-loop) linear infinite backwards; }
  .mcp-demo.playing .mcp-tools li:nth-child(1) .done { animation: mcp-t1done var(--m-loop) linear infinite backwards; }
  .mcp-demo.playing .mcp-tools li:nth-child(2) { animation: mcp-t2 var(--m-loop) ease-out infinite backwards; }
  .mcp-demo.playing .mcp-tools li:nth-child(2) .run { animation: mcp-t2run var(--m-loop) linear infinite backwards; }
  .mcp-demo.playing .mcp-tools li:nth-child(2) .done { animation: mcp-t2done var(--m-loop) linear infinite backwards; }
  .mcp-demo.playing .mcp-tools .run em { animation: mcp-shimmer 1.4s linear infinite; }
  .mcp-demo.playing .mcp-think { animation: mcp-think var(--m-loop) linear infinite backwards; }
  .mcp-demo.playing .mcp-think b { animation: mcp-blink 1s ease-in-out infinite; }
  .mcp-demo.playing .mcp-think b:nth-child(2) { animation-delay: .15s; }
  .mcp-demo.playing .mcp-think b:nth-child(3) { animation-delay: .3s; }
  .mcp-demo.playing .mcp-ans > :nth-child(1) { animation: mcp-a1 var(--m-loop) ease-out infinite backwards; }
  .mcp-demo.playing .mcp-ans > :nth-child(2) { animation: mcp-a2 var(--m-loop) ease-out infinite backwards; }
  .mcp-demo.playing .mcp-ans > :nth-child(3) { animation: mcp-a3 var(--m-loop) ease-out infinite backwards; }
  /* The second window runs a little behind the first, so the two don't move in step. */
  .mcp-demo.playing .mcp-win.late :is(.c1, .c2, .mcp-ask, .mcp-tools li, .run, .done, .mcp-think, .mcp-ans > *) { animation-delay: 2.4s; }
  .mcp-pausebox { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; font-size: .9rem; color: var(--muted); cursor: pointer; }
  .mcp-pausebox input { width: 18px; height: 18px; margin: 0; accent-color: var(--fg); }
  .mcp-demo:has(.mcp-pausebox input:checked) .mcp-win * { animation-play-state: paused; }
}
/* 2-10%: KhuHu connecting; 10%: connected; 14%: the question; 20-30% and 32-42%: the tools run;
   44-51%: thinking; 52%, 58%, 64%: the answer, its quote, its source; 96%: start again. */
@keyframes mcp-c1 { 0%, 1% { opacity: 0; } 2%, 9.5% { opacity: 1; } 10.5%, 100% { opacity: 0; } }
@keyframes mcp-c2 { 0%, 9.5% { opacity: 0; transform: scale(.9); } 10.5% { opacity: 1; transform: scale(1.08); } 13%, 100% { opacity: 1; transform: none; } }
@keyframes mcp-ask { 0%, 13% { opacity: 0; transform: translateY(10px); } 16%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes mcp-t1 { 0%, 19% { opacity: 0; transform: translateY(6px); } 21%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes mcp-t1run { 0%, 29.5% { opacity: 1; } 30.5%, 100% { opacity: 0; } }
@keyframes mcp-t1done { 0%, 29.5% { opacity: 0; } 30.5%, 100% { opacity: 1; } }
@keyframes mcp-t2 { 0%, 31% { opacity: 0; transform: translateY(6px); } 33%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes mcp-t2run { 0%, 41.5% { opacity: 1; } 42.5%, 100% { opacity: 0; } }
@keyframes mcp-t2done { 0%, 41.5% { opacity: 0; } 42.5%, 100% { opacity: 1; } }
@keyframes mcp-think { 0%, 43% { opacity: 0; } 44%, 50.5% { opacity: 1; } 51.5%, 100% { opacity: 0; } }
@keyframes mcp-a1 { 0%, 51.5% { opacity: 0; transform: translateY(8px); } 54%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes mcp-a2 { 0%, 57% { opacity: 0; transform: translateY(8px); } 60%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes mcp-a3 { 0%, 63% { opacity: 0; transform: translateY(8px); } 66%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes mcp-blink { 50% { opacity: .3; } }
@keyframes mcp-spin { to { transform: rotate(360deg); } }
@keyframes mcp-shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* ================= the rest of the page ================= */
.mcp-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mcp-addr span { color: var(--muted); font-size: .9rem; }
.mcp-addr code { min-width: 0; overflow-wrap: anywhere; font-size: 1rem; font-weight: 600; user-select: all; }

/* Prompts to try: a plain card each, with its name and a Copy button on top. */
.mcp-prompts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0 0; padding: 0; list-style: none; }
@media (max-width: 760px) { .mcp-prompts { grid-template-columns: minmax(0, 1fr); } }
.mcp-prompts li { display: flex; flex-direction: column; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.mcp-pbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--line); }
.mcp-pbar h4 { margin: 0; font: 650 .98rem/1.3 var(--sans); }
.mcp-copy { flex: none; min-height: 40px; padding: 6px 14px; border: 0; border-radius: 8px; background: var(--fg); color: var(--bg); font: 600 .9rem/1 var(--sans); cursor: pointer; }
.mcp-copy:focus-visible { outline: 3px solid var(--hl); outline-offset: 2px; }
.mcp-ptext { margin: 0; padding: 14px 16px 16px; font-size: .98rem; line-height: 1.55; user-select: all; }
.mcp-ph { margin-top: 40px; }

/* ================= how to connect: one tab per app ================= */
/* The tabs are radio buttons. With :has(), only the chosen app's panel shows; without it, all three show. */
.mcp-how { margin-top: 22px; }
.mcp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mcp-tab { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 8px 18px 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 650 1rem/1 var(--sans); cursor: pointer; }
.mcp-tab input { position: absolute; opacity: 0; pointer-events: none; }
.mcp-tab:has(input:checked) { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.mcp-tab:has(input:focus-visible) { outline: 3px solid var(--hl); outline-offset: 2px; }
.mcp-tlogo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.mcp-tlogo img { display: block; width: 18px; height: 18px; }
.mcp-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px 40px; align-items: start; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mcp-panel + .mcp-panel { margin-top: 18px; }
@media (max-width: 860px) { .mcp-panel { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; } }
@supports selector(:has(*)) {
  .mcp-how:has(input[value="gpt"]:checked) .mcp-panel:not(.gpt),
  .mcp-how:has(input[value="claude"]:checked) .mcp-panel:not(.claude),
  .mcp-how:has(input[value="gemini"]:checked) .mcp-panel:not(.gemini) { display: none; }
  .mcp-panel + .mcp-panel { margin-top: 0; }
}
.mcp-panel h3 { margin: 0 0 10px; }
.mcp-panel p { margin: 0; }
.mcp-before { font-size: .95rem; color: var(--muted); }
.mcp-steps { display: grid; gap: 12px; margin: 18px 0; padding: 0; list-style: none; counter-reset: mcp-step; }
.mcp-steps li { position: relative; margin: 0; padding-left: 44px; min-height: 30px; counter-increment: mcp-step; }
.mcp-steps li::before { content: counter(mcp-step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--hl); color: #1b2440; font: 700 .95rem/1 var(--sans); }
.mcp-then { padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); }
.mcp-more { margin-top: 12px !important; font-size: .95rem; color: var(--muted); }
.mcp-shots { display: grid; gap: 18px; }
.mcp-shot { margin: 0; }
.mcp-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mcp-shot figcaption { margin-top: 6px; font-size: .86rem; color: var(--muted); }
