/* Recklip for AI agents (mcp.html). Loads after style.css and reuses its tokens, header, footer and buttons. */

.mcp {
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --dark: #141416;
  --dark-2: #1d1e23;
  --dark-line: #2c2d34;
  --green: #22c55e;
  --violet: #8b5cf6;
}
.mcp .block {
  padding-top: 130px;
  padding-left: 20px;
  padding-right: 20px;
}
.mcp h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  letter-spacing: -0.03em;
  margin-bottom: 44px;
}
.top-link.on {
  color: var(--ink);
}
.m-kicker {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.m-small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.m-small a {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- hero ---------- */
.m-hero {
  text-align: center;
  padding: 50px 20px 0;
}
.m-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 26px;
  transition: transform 0.2s ease;
}
.m-eyebrow:hover {
  transform: translateY(-2px);
}
.m-new {
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.m-eyebrow b {
  color: var(--muted);
}
.m-cmd {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-top: 30px;
  background: var(--dark);
  color: #ececf1;
  border-radius: 16px;
  padding: 8px 8px 8px 20px;
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.5);
}
.m-cmd code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 15px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.m-dollar {
  font-family: var(--mono);
  color: #6b6e7b;
}
.m-copy {
  flex: none;
  border: 0;
  cursor: pointer;
  font: 800 13px var(--round);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 14px;
  transition: background 0.2s;
}
.m-copy:hover {
  background: rgba(255, 255, 255, 0.18);
}
.m-copy.done {
  background: var(--green);
}
.m-textlink {
  font-weight: 800;
  font-size: 16px;
  color: var(--muted);
  padding: 12px 6px;
}
.m-textlink:hover {
  color: var(--ink);
}

/* the stage: agent log on the left, the browser on the right */
.m-stage {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 16px;
  max-width: 1120px;
  margin: 64px auto 0;
  text-align: left;
}
.m-term,
.m-win {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.55);
}
.m-term {
  background: var(--dark);
  color: #e6e6eb;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.m-win {
  background: #fff;
  display: flex;
  flex-direction: column;
}
.m-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 800;
  color: #7c7f8c;
  border-bottom: 1px solid var(--dark-line);
}
.m-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3b43;
}
.m-bar span {
  margin-left: 8px;
}
.m-bar.light {
  border-color: #ececee;
  background: #f6f6f7;
}
.m-bar.light i {
  background: #dcdce0;
}
.m-url {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: #6b6e7b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  padding: 18px 20px 22px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  transition: opacity 0.4s;
}
.m-log.fade {
  opacity: 0;
}
.l {
  animation: l-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}
@keyframes l-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.l.you {
  align-self: flex-end;
  max-width: 92%;
  background: #2a2b33;
  border-radius: 14px 14px 4px 14px;
  padding: 10px 14px;
  font-family: var(--round);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.l.you .caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -2px;
  background: #fff;
  animation: blink 1s steps(2, jump-none) infinite;
}
.l.tool {
  color: #b9bbc6;
}
.l.tool b {
  color: #fff;
  font-weight: 700;
}
.l.tool em {
  font-style: normal;
  color: #7c7f8c;
}
.l.tool .st {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: #f5c84c;
  animation: pulse 1s ease-in-out infinite;
}
.l.tool.ok .st {
  background: var(--green);
  animation: none;
}
.l.res {
  color: #86efac;
  padding-left: 17px;
}
.l.res small {
  display: block;
  color: #8b8e9b;
  font-size: 12px;
}
.l.bar {
  height: 6px;
  margin-left: 17px;
  border-radius: 3px;
  background: #2a2b33;
  overflow: hidden;
}
.l.bar b {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
  transition: width 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.l.ai {
  font-family: var(--round);
  font-size: 15px;
  font-weight: 600;
  color: #e6e6eb;
}
.l.link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  font-family: var(--round);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
}
.l.link.press {
  transform: scale(0.95);
  box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  transition:
    transform 0.15s,
    box-shadow 0.6s;
}
.m-view {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f4f4f6;
}
.m-view img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 0.6s ease,
    transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}
.m-site {
  transform-origin: 50% 70%;
}
.m-view.zoom .m-site {
  transform: scale(1.5);
}
.m-editor {
  opacity: 0;
  transform: scale(1.04);
}
.m-view.editor .m-editor {
  opacity: 1;
  transform: none;
}
.m-rec {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(20, 20, 22, 0.86);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.m-rec i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1s steps(2, jump-none) infinite;
}
.m-rec b {
  font-family: var(--mono);
  font-weight: 600;
}
.m-view.rec .m-rec {
  opacity: 1;
  transform: none;
}
.m-cur {
  position: absolute;
  left: 70%;
  top: 80%;
  width: 22px;
  opacity: 0;
  transition:
    left 0.9s cubic-bezier(0.65, 0, 0.35, 1),
    top 0.9s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.3s;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}
.m-cur path {
  fill: #fff;
  stroke: #111;
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.m-view.rec .m-cur {
  opacity: 1;
}
.m-ripple {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 3px solid #f5c84c;
  opacity: 0;
  pointer-events: none;
}
.m-ripple.go {
  animation: ripple 0.7s ease-out;
}

/* ---------- how it works ---------- */
.m-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
}
.m-step {
  position: relative;
  background: var(--card);
  border-radius: 28px;
  padding: 18px 18px 26px;
}
.m-step h3 {
  margin-top: 4px;
}
.m-step p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
}
.m-num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: 20px 0 8px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}
.m-step-ill {
  position: relative;
  height: 170px;
  border-radius: 18px;
  background: var(--dark);
  overflow: hidden;
}
.ill-ask {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  padding: 0 18px;
}
.ask-bub {
  max-width: 88%;
  background: #2a2b33;
  color: #fff;
  border-radius: 14px 14px 4px 14px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.ask-bub u {
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}
.ask-typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  background: #22232a;
  border-radius: 12px;
  padding: 10px 12px;
}
.ask-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b8e9b;
  animation: typing 1.2s ease-in-out infinite;
}
.ask-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.ask-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typing {
  0%,
  60%,
  100% {
    transform: none;
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
.ill-plan {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-family: var(--mono);
  font-size: 13px;
}
.pl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1f2026;
  border-radius: 9px;
  padding: 7px 10px;
  color: #d4d5db;
}
.pl-row b {
  color: #c4b5fd;
  font-weight: 600;
  width: 42px;
}
.pl-row span {
  flex: 1;
}
.pl-row em {
  font-style: normal;
  color: var(--green);
  opacity: 0;
  animation: pl-tick 4s ease infinite;
}
.pl-row:nth-child(2) em {
  animation-delay: 0.4s;
}
.pl-row:nth-child(3) em {
  animation-delay: 0.8s;
}
.pl-row:nth-child(4) em {
  animation-delay: 1.2s;
}
@keyframes pl-tick {
  0%,
  10% {
    opacity: 0;
    transform: scale(0.4);
  }
  18%,
  86% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
.rc-sheet {
  position: absolute;
  inset: -4px;
  background-size: 210% auto;
  background-position: 0 0;
  animation: rc-scroll 14s linear infinite alternate;
  opacity: 0.92;
}
@keyframes rc-scroll {
  to {
    background-position: 0 100%;
  }
}
.rc-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 20, 22, 0.9);
  color: #fff;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 800;
}
.rc-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1s steps(2, jump-none) infinite;
}

/* what you get back */
.m-result {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 36px;
  align-items: center;
  max-width: 1040px;
  margin: 16px auto 0;
  background: var(--card);
  border-radius: 28px;
  padding: 34px;
}
.m-result h3 {
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 18px;
}
.m-legend {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.m-legend li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}
.m-legend b {
  color: var(--ink);
  font-weight: 800;
}
.m-legend span,
.m-pin {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.m-shot {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
}
.m-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.m-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  box-shadow:
    0 0 0 4px rgba(239, 68, 68, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.35);
  animation: pin 2.4s ease-in-out infinite;
}
@keyframes pin {
  50% {
    box-shadow:
      0 0 0 9px rgba(239, 68, 68, 0.12),
      0 4px 10px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- try it ---------- */
.m-try {
  margin-top: 130px;
  background: var(--dark);
  color: #ececf1;
  border-radius: 44px;
  padding: 90px 20px 80px;
}
.m-try-in {
  max-width: 1080px;
  margin: 0 auto;
}
.m-try .sub {
  color: #9a9ca8;
  margin-bottom: 44px;
}
.m-sample {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(120deg, #2a1c22, #1d1e23 60%);
  border: 1px solid #3a2a30;
  border-radius: 22px;
  padding: 18px 22px;
  margin-bottom: 18px;
}
.m-sample b {
  font-size: 18px;
  font-weight: 800;
}
.m-sample p {
  margin: 4px 0 0;
  color: #a3a5b1;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
}
.m-sample > div:nth-child(2) {
  flex: 1;
}
.m-sample-ill {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: url(img/demo-frontrow.webp) center / cover;
  display: grid;
  place-items: center;
}
.m-play {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  position: relative;
}
.m-play::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  border: 7px solid transparent;
  border-left: 11px solid #111;
  border-right: 0;
}
.btn-red {
  flex: none;
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: #fff !important;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  font-size: 16px;
  transition:
    transform 0.2s,
    filter 0.2s;
}
.btn-red:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.m-demos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.m-demo {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.m-demo-img {
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
}
.m-demo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.m-demo:hover .m-demo-img img {
  transform: scale(1.03);
}
.m-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(20, 20, 22, 0.88);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}
.m-demo-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.m-demo-body h3 {
  font-size: 24px;
  color: #fff;
}
.m-demo-body > p {
  margin: 0 0 18px;
  color: #a3a5b1;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
}
.m-demo-links {
  display: flex;
  gap: 18px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 15px;
  font-weight: 800;
}
.m-demo-links a {
  color: #c8c9d2;
}
.m-demo-links a:hover {
  color: #fff;
}

/* tabs (dark by default, light inside light sections) */
.m-tablist {
  display: inline-flex;
  gap: 4px;
  background: #121216;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 14px;
}
.m-tablist button {
  border: 0;
  cursor: pointer;
  background: none;
  color: #9a9ca8;
  font: 800 14px var(--round);
  border-radius: 9px;
  padding: 8px 14px;
  transition:
    background 0.2s,
    color 0.2s;
}
.m-tablist button[aria-selected="true"] {
  background: #2c2d35;
  color: #fff;
}
.m-tablist button:focus-visible,
.m-copy:focus-visible,
.m-prompt:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.m-label {
  display: block;
  margin: 12px 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #8b8e9b;
}
.m-panel > .m-label:first-child {
  margin-top: 0;
}
.m-code {
  position: relative;
  background: #0d0d10;
  border: 1px solid var(--dark-line);
  border-radius: 14px;
  padding: 14px 84px 14px 16px;
}
.m-code pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.55;
  color: #e6e6eb;
  white-space: pre-wrap;
  word-break: break-word;
}
.m-code.say pre {
  font-family: var(--round);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
}
.m-code .m-copy {
  position: absolute;
  top: 9px;
  right: 9px;
}
.m-hint {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #8b8e9b;
}
.m-try code {
  background: #2a2b33;
  color: #e6e6eb;
}
.m-next {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 40px 0 0;
  padding: 0;
  color: #c8c9d2;
  font-size: 16px;
  font-weight: 700;
}
.m-next li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.m-next span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2c2d35;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

/* ---------- install ---------- */
.m-install {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  align-items: start;
}
.m-need,
.m-clients {
  background: var(--card);
  border-radius: 28px;
  padding: 26px;
}
.m-need ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.m-need li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
}
.m-need li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
}
.m-need li span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.45;
}
.m-need a {
  color: var(--ink);
  font-weight: 800;
}
.m-clients .m-tablist,
.m-check {
  max-width: 100%;
}
.m-clients .m-tablist {
  background: #e4e4e7;
  flex-wrap: wrap;
}
.m-clients .m-tablist button {
  color: var(--muted);
}
.m-clients .m-tablist button[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.m-code.light {
  background: var(--dark);
  border: 0;
}
.m-clients .m-label,
.m-clients .m-hint {
  color: var(--muted);
}
.m-clients .btn-dark.sm {
  margin: 0 0 6px;
}
.m-clients code,
.m-faq code,
.m-priv code,
.m-plan code,
.m-result code {
  background: #fff;
}
.m-check {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 2px dashed #dedee2;
}
.m-check p {
  margin: 0 0 10px;
  font-weight: 600;
}
.m-check q {
  font-weight: 800;
}

/* ---------- prompts ---------- */
.m-sub-tight {
  margin: -20px auto 32px;
}
.m-prompts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1040px;
  margin: 0 auto;
}
.m-prompt {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 150px;
  text-align: left;
  border: 0;
  cursor: pointer;
  background: #fff;
  border-radius: 22px;
  padding: 20px 20px 16px;
  font: 700 17px/1.4 var(--round);
  color: var(--ink);
  transition:
    transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1),
    box-shadow 0.2s;
}
.m-prompt::before {
  content: "“";
  position: absolute;
  top: 6px;
  right: 16px;
  font-size: 48px;
  line-height: 1;
  color: #e4e4e7;
  font-weight: 900;
}
.m-prompt:hover {
  transform: translateY(-3px) rotate(-0.4deg);
  box-shadow: 0 16px 30px -20px rgba(0, 0, 0, 0.35);
}
.m-prompt em {
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.m-prompt.done em {
  color: var(--green);
}

/* ---------- reference ---------- */
.m-ref {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  align-items: start;
}
.m-tools,
.m-plan {
  background: var(--card);
  border-radius: 28px;
  padding: 26px;
}
.m-tools dl {
  margin: 0;
  display: grid;
  gap: 4px;
}
.m-tools dl > div {
  padding: 12px 0;
  border-top: 1px solid #e6e6ea;
}
.m-tools dl > div:first-child {
  border-top: 0;
  padding-top: 0;
}
.m-tools dt {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}
.m-tools dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.45;
}
.m-json {
  margin: 0 0 16px;
  background: var(--dark);
  color: #d4d5db;
  border-radius: 16px;
  padding: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
}
.m-json .k {
  color: #c4b5fd;
}
.m-json .s {
  color: #86efac;
}
.m-json .p {
  color: #8b8e9b;
}

/* ---------- privacy ---------- */
.m-priv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
}
.m-priv > div {
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
}
.m-priv b {
  font-size: 18px;
  font-weight: 800;
}
.m-priv p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- faq ---------- */
.m-faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.m-faq details {
  background: var(--card);
  border-radius: 20px;
  padding: 0 22px;
}
.m-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 30px 18px 0;
  position: relative;
  font-size: 17px;
  font-weight: 800;
}
.m-faq summary::-webkit-details-marker {
  display: none;
}
.m-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--muted);
  transition: transform 0.2s;
}
.m-faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.m-faq p {
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
}
.m-faq a {
  color: var(--ink);
  font-weight: 800;
}

/* ---------- end ---------- */
.m-end {
  padding-bottom: 60px;
}
.m-end-card {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
  background: var(--dark);
  color: #fff;
  border-radius: 36px;
  padding: 60px 20px;
}
.m-end-card .m-cmd {
  background: #26272e;
  box-shadow: none;
}
.m-end-card h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3.4vw, 38px);
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .m-stage {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
  .m-term {
    min-height: 360px;
  }
  .m-result,
  .m-install,
  .m-ref {
    grid-template-columns: 1fr;
  }
  .m-steps,
  .m-priv {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .m-prompts {
    grid-template-columns: 1fr 1fr;
  }
  .m-demos {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .hide-sm {
    display: none;
  }
  .mcp .top-r {
    gap: 12px;
  }
  .mcp .top-link {
    font-size: 14px;
  }
}
@media (max-width: 600px) {
  .mcp .block {
    padding-top: 90px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .m-hero {
    padding: 30px 16px 0;
  }
  .mcp .top {
    padding: 16px;
  }
  .mcp .brand {
    font-size: 20px;
  }
  .mcp .top .pill-btn,
  .mcp .top-link.on {
    display: none;
  }
  .m-cmd {
    padding-left: 14px;
  }
  .m-cmd code {
    font-size: 13px;
  }
  .m-try {
    margin-top: 90px;
    border-radius: 28px;
    padding: 64px 14px 56px;
  }
  .m-sample {
    flex-direction: column;
    align-items: flex-start;
  }
  .m-result {
    padding: 22px;
  }
  .m-prompts {
    grid-template-columns: 1fr;
  }
  .m-prompt {
    min-height: 0;
  }
  .m-code {
    padding-right: 16px;
    padding-top: 46px;
  }
  .foot {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 16px 34px;
  }
  .foot nav {
    flex-wrap: wrap;
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rc-sheet,
  .m-pin,
  .ask-typing i,
  .pl-row em {
    animation: none !important;
  }
  .pl-row em {
    opacity: 1;
  }
}

/* grid children may shrink below their content (long code lines scroll inside instead) */
.m-stage > *,
.m-result > *,
.m-install > *,
.m-ref > *,
.m-demos > *,
.m-steps > * {
  min-width: 0;
}


/* demo cards: the picture and the title open the site */
.m-demo-img {
  display: block;
}
.m-open {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
}
.m-demo-img:hover .m-open,
.m-demo-img:focus-visible .m-open {
  opacity: 1;
  transform: none;
}
.m-demo-img:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}
.m-demo-body h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.m-demo-links {
  align-items: center;
  flex-wrap: wrap;
}
.m-btn {
  background: #fff;
  color: var(--ink) !important;
  border-radius: 999px;
  padding: 10px 18px;
  transition: transform 0.2s;
}
.m-btn:hover {
  transform: translateY(-2px);
}
.m-sample p a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (hover: none) {
  .m-open {
    opacity: 1;
    transform: none;
  }
}
