/* Look matched to the AgentStudio /mcp page (style only — no wordmark or names). */
@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --app: #0d0e10;
  --panel: #151618;
  --card: #191a1d;
  --raised: #1f2024;
  --hover: #24262a;
  --line-soft: #1d1f22;
  --line: #292b30;
  --line-strong: #3b3e45;
  --t1: #f6f6f7;
  --t2: #c5c6ca;
  --t3: #8e9097;
  --accent: #eeff00;
  --accent-hover: #f0ff24;
  --on-accent: #0a0a0a;
  --accent-ink: #eeff00;
  --select: #eeff00;
  --danger: #f05252;
  --dots: radial-gradient(var(--t3) 1px, transparent 1px);
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --app: #f5f6f3;
    --panel: #fafbf8;
    --card: #ffffff;
    --raised: #f0f2ec;
    --hover: #edf0e8;
    --line-soft: #e6eae1;
    --line: #dce2d7;
    --line-strong: #7c8776;
    --t1: #182018;
    --t2: #566151;
    --t3: #5c665b;
    --accent-hover: #e4f500;
    --on-accent: #182018;
    --accent-ink: #626900;
    --select: #5f6a00;
    --danger: #c93030;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--app); color: var(--t1); font: 16px/1.6 var(--sans); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--select); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { position: relative; z-index: 2; }
.top .wrap { max-width: 1200px; min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 12px 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 780; font-size: 18px; letter-spacing: -.03em; text-decoration: none; border-radius: 9px; }
.logo svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.nav a { padding: 10px 16px; border-radius: 30px; border: 1px solid transparent; color: var(--t2); font-size: 14px; font-weight: 550; white-space: nowrap; text-decoration: none; }
.nav a:hover { background: var(--hover); color: var(--t1); }
.nav a[aria-current="page"] { background: var(--t1); color: var(--app); }

/* Hero */
.hero { position: relative; isolation: isolate; padding: clamp(48px, 8vh, 96px) 0 56px; text-align: center; }
.grid-art {
  position: absolute; z-index: -1; inset: -80px 6% 0; opacity: .24; pointer-events: none;
  background-image: var(--dots); background-size: 9px 9px;
  mask-image: radial-gradient(ellipse at 50% 38%, black 0%, transparent 70%);
}
.eyebrow { margin: 0; color: var(--accent-ink); font: 500 11px/1.5 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
h1 { margin: 20px 0 0; font: 780 clamp(32px, 5.4vw, 64px)/1.12 var(--sans); letter-spacing: -.055em; text-transform: uppercase; text-wrap: balance; }
.mark { display: inline-block; padding: 0 .17em .025em; background: var(--accent); color: var(--on-accent); border-radius: .1em; transform: rotate(-2deg); line-height: 1.03; letter-spacing: -.065em; }
.lead { color: var(--t2); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.6; margin: 22px auto 34px; max-width: 600px; }

/* Tool */
.tool { position: relative; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 4px 4px 10px; }
.tabs [role="tab"] {
  min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: 30px; background: transparent;
  color: var(--t2); font: 550 15px/1 var(--sans); white-space: nowrap; cursor: pointer;
}
.tabs [role="tab"]:hover:not([aria-selected="true"]) { background: var(--hover); color: var(--t1); }
.tabs [role="tab"][aria-selected="true"] { background: var(--t1); color: var(--app); }
[role="tabpanel"] { padding: 6px; }

.row { display: flex; gap: 10px; }
input[type="url"], input[type="text"], textarea {
  width: 100%; min-width: 0; font: inherit; color: var(--t1); background: var(--card);
  border: 1px solid var(--line); border-radius: 9px; padding: 14px 16px;
  transition: border-color 120ms var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--t3); }
input:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, textarea:focus { border-color: var(--select); outline: none; }
textarea { min-height: 150px; resize: vertical; font: 13px/1.7 var(--mono); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 55px; padding: 0 25px;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); border-radius: 12px;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 43%, #000);
  font: 650 16px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 120ms var(--ease), background-color 120ms var(--ease);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 43%, #000); }
.btn.ghost { background: var(--raised); color: var(--t1); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--hover); border-color: var(--line-strong); }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--t2); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link-btn:hover { color: var(--t1); }

.status { margin: 12px 6px 4px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--t2); font-size: 14px; }
.status[data-kind="error"] { color: var(--t1); border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); border-inline-start: 2px solid var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--panel)); }

.steps { margin: 14px 6px 4px; padding: 16px; border: 1px solid var(--line); border-inline-start: 2px solid var(--accent-ink); border-radius: 10px; background: color-mix(in srgb, var(--accent) 5%, var(--panel)); }
.steps h2 { margin: 0 0 6px; font-size: 16px; font-weight: 650; }
.steps ol { margin: 0 0 14px; padding-inline-start: 22px; color: var(--t2); font-size: 14px; line-height: 1.8; }
.steps li::marker { color: var(--accent-ink); font-family: var(--mono); }
.steps strong { color: var(--t1); }

.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 10px 0 0; }
.note { margin: 0; color: var(--t3); font: 500 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* Private page: three numbered steps */
.flow-tool { padding: 24px; }
.flow { counter-reset: f; list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 22px; }
.flow li { counter-increment: f; }
.flow .bookmark { width: auto; cursor: grab; }
.flow :is(label, .step) { display: block; position: relative; padding-inline-start: 34px; margin-bottom: 10px; color: var(--t1); font-size: 15px; font-weight: 550; }
.flow :is(label, .step)::before { content: counter(f, decimal-leading-zero); position: absolute; inset-inline-start: 0; top: 3px; color: var(--accent-ink); font: 500 12px/1 var(--mono); letter-spacing: .08em; }
.field { position: relative; display: flex; align-items: center; gap: 8px; }
.field > svg { position: absolute; inset-inline-start: 14px; width: 18px; height: 18px; color: var(--t3); pointer-events: none; }
.field input { padding-inline-start: 42px; }
.field .btn { flex: none; width: auto; min-height: 50px; padding: 0 20px; }
.btn.wide { width: 100%; }
.flow-tool .note { margin-top: 12px; text-align: center; }

/* Results */
.results { list-style: none; margin: 0; padding: 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.results:empty { display: none; }
.card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 12px; }
.thumb { position: relative; aspect-ratio: 4 / 5; max-height: 300px; background: var(--raised); border-radius: 8px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.icon { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.thumb.icon::after { font-size: 28px; line-height: 1; color: var(--t3); }
.thumb.is-video::after { content: '▶'; }
.thumb.is-audio::after { content: '♪'; }
.thumb.is-stream::after { content: '≋'; }
.thumb.is-image::after { content: '▢'; }
.thumb video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.thumb.playing { max-height: none; }
.play { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.play::before { content: ''; width: 52px; height: 52px; border-radius: 50%; background: rgb(0 0 0 / .62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") center / 24px no-repeat; transition: transform 120ms var(--ease); }
.play:hover::before { transform: scale(1.08); }
.thumb.icon .play::before { background-color: var(--raised); }
.thumb.icon:has(.play)::after { content: none; }
.play-note { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 8px; border-radius: 8px; background: rgb(0 0 0 / .78); color: #fff; font-size: 12px; text-align: center; }

.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 6px 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 30px; background: transparent; color: var(--t2); font: 550 13px/1 var(--sans); cursor: pointer; }
.chips button:hover { background: var(--hover); color: var(--t1); }
.chips button[aria-pressed="true"] { background: var(--t1); border-color: var(--t1); color: var(--app); }
.chips.total { color: var(--t3); font: 500 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.order { display: inline-flex; align-items: center; gap: 8px; color: var(--t3); font: 500 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.order select { min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--t1); font: 550 13px/1 var(--sans); letter-spacing: 0; text-transform: none; }

.results .more { grid-column: 1 / -1; display: flex; justify-content: center; }
.results .more .btn { width: auto; }
.badge { position: absolute; inset-inline-start: 8px; top: 8px; padding: 3px 8px; border-radius: 30px; background: rgb(0 0 0 / .72); color: #fff; font: 500 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.card .btn { width: 100%; min-height: 48px; }
.card .btn.small { min-height: 40px; font-size: 14px; }

/* Content */
.content { padding: 24px 0 24px; }
.content h1 { font-size: clamp(30px, 4.5vw, 48px); }
.content h2 { margin: 48px 0 12px; font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.content p, .content li { color: var(--t2); line-height: 1.8; }
.content strong { color: var(--t1); font-weight: 650; }
.content a { text-underline-offset: 4px; }
.content ul li::marker { color: var(--accent-ink); }
.howto { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 10px; }
.howto li { counter-increment: s; position: relative; padding: 16px; padding-inline-start: 60px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.howto li::before { content: counter(s, decimal-leading-zero); position: absolute; inset-inline-start: 18px; top: 17px; color: var(--accent-ink); font: 500 13px/1.6 var(--mono); }
code { font: 12.5px/1.6 var(--mono); background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--t1); overflow-wrap: anywhere; }
details { border-bottom: 1px solid var(--line-soft); padding: 14px 0; }
summary { cursor: pointer; color: var(--t1); font-weight: 600; }
summary::marker { color: var(--accent-ink); }
details p { margin: 8px 0 0; }

.ad:empty { display: none; }
.ad { margin: 28px auto; text-align: center; display: flex; justify-content: center; max-width: 100%; overflow: hidden; }
.ad[data-ad="content-end"] { display: block; }

.foot { max-width: 1180px; margin: 48px auto 0; padding: 25px 24px 35px; border-top: 1px solid var(--line-soft); color: var(--t3); font-size: 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
.foot .foot-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px 18px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.foot .foot-tools a { color: var(--t2); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--t1); }

@media (max-width: 700px) {
  .top .wrap { justify-content: center; padding: 14px 16px 0; min-height: 0; }
  .nav a { padding: 8px 12px; font-size: 13px; }
  .hero { padding: 40px 0 36px; }
  .tabs [role="tab"] { flex: 1; padding: 10px 12px; font-size: 14px; }
  .row { flex-direction: column; }
  .btn { width: 100%; }
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px; }
  .card { padding: 6px 6px 8px; }
  .card .btn { min-height: 42px; padding: 0 8px; font-size: 14px; }
  .card .btn.small { min-height: 36px; font-size: 12px; }
  .results .more .btn { width: 100%; }
  .foot { text-align: center; }
  .foot nav { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover, .btn:active { transform: none; } }

/* Language menu in the footer */
.foot .langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 12px; }
.foot .langs a[aria-current="true"] { color: var(--t1); font-weight: 650; }
/* Arabic reads right to left; links, codes and URLs stay left to right. */
[dir="rtl"] code, [dir="rtl"] input[type="url"], [dir="rtl"] #vs-link, [dir="rtl"] textarea { direction: ltr; text-align: left; }
[dir="rtl"] h1 { letter-spacing: 0; }
[dir="rtl"] .field input { padding-left: 16px; padding-right: 42px; }

/* Platform icons: each in its own colour (TikTok, X and Threads follow the text colour). */
.ico { width: 16px; height: 16px; flex: none; fill: currentColor; }
.ico-instagram { fill: #e4405f; }
.ico-facebook { fill: #0866ff; }
.ico-web { fill: var(--accent-ink); }
.nav a { display: inline-flex; align-items: center; gap: 7px; }
.foot .foot-tools a { display: inline-flex; align-items: center; gap: 8px; }
.foot .foot-tools .ico { width: 14px; height: 14px; }

/* Whole-profile bookmark: show where it goes */
.bm-demo { margin: 4px 0 14px; max-width: 420px; }
.bm-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px 10px 4px 4px; background: var(--raised); }
.bm-dots { color: var(--t3); font-size: 9px; letter-spacing: 2px; }
.bm-slot { padding: 3px 10px; border: 1px dashed var(--accent-ink); border-radius: 6px; color: var(--accent-ink); font-size: 12px; font-weight: 650; animation: bm-pulse 1.6s ease-in-out infinite; }
.bm-arrow { margin: 6px 0 0 90px; color: var(--accent-ink); font: 500 12px/1.4 var(--mono); }
@keyframes bm-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .bm-slot { animation: none; } }
.bm-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bm-actions .btn { width: auto; }
.bm-help { margin-top: 10px; text-transform: none; letter-spacing: 0; font: 13px/1.6 var(--sans); color: var(--t2); }
kbd { font: 12px/1 var(--mono); padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--raised); color: var(--t1); }
.phone-only { display: none; }
.phone-note { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-inline-start: 2px solid var(--accent-ink); border-radius: 10px; color: var(--t1); }
@media (pointer: coarse) and (max-width: 900px) {
  .phone-only { display: block; }
  .bm-demo, .bm-actions, .bm-help { display: none; }
}

/* Helper arrow at the top edge, pointing at the bookmarks bar while the button is pointed at or dragged */
.drop-hint { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 16px 14px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 0%, transparent)); color: var(--on-accent); font: 700 15px/1.2 var(--sans); pointer-events: none; opacity: 0; transform: translateY(-100%); transition: opacity 160ms var(--ease), transform 160ms var(--ease); }
.drop-hint.on { opacity: 1; transform: none; }
.drop-arrow { font-size: 28px; line-height: 1; animation: drop-bounce 0.9s ease-in-out infinite; }
@keyframes drop-bounce { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .drop-arrow { animation: none; } .drop-hint { transition: none; } }

/* Real screenshot of the bookmarks bar with the button in it */
.bm-shot { margin: 4px 0 14px; }
.bm-shot img { width: 100%; max-width: 620px; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.bm-shot figcaption { margin-top: 6px; color: var(--accent-ink); font: 500 12px/1.5 var(--mono); }
.thumb video.frame { width: 100%; height: 100%; object-fit: cover; background: var(--raised); }
.ad-top { margin: 0 auto 28px; min-height: 0; }
.open-profile { width: auto; margin: 0 0 14px; }
