/* URL to Markdown - site styles (from Claude Design) */

:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-soft-2: #f1f5f9;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-soft-2: #dbeafe;
  --code-bg: #0f172a;
  --code-ink: #e2e8f0;
  --code-muted: #94a3b8;
  --code-string: #86efac;
  --code-keyword: #93c5fd;
  --code-comment: #64748b;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 20px -8px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.05);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --maxw: 960px;
  --header-h: 64px;
}

[data-theme="dark"] {
  --ink: #f1f5f9;
  --ink-2: #e2e8f0;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --line: #1e293b;
  --line-2: #334155;
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --bg-soft-2: #111c33;
  --accent: #60a5fa;
  --accent-2: #3b82f6;
  --accent-soft: #0f1e3d;
  --accent-soft-2: #102a52;
  --code-bg: #050a17;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 20px -8px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--accent-soft-2); color: var(--ink); }

/* Layout */
.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
[data-theme="dark"] .site-header { background: rgba(11, 18, 32, 0.85); }

.site-header .shell {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; color: var(--ink); }
.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15), 0 1px 2px rgba(37, 99, 235, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.nav a.active { color: var(--ink); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 96px;
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.site-footer .nav { flex-wrap: wrap; gap: 0; margin-left: -12px; }
.site-footer .powered {
  font-size: 13px;
  color: var(--muted-2);
}
.site-footer .powered a { color: var(--muted-2); }
.site-footer .powered a:hover { color: var(--ink); }

/* Typography */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}
h1 { font-size: 48px; letter-spacing: -0.035em; }
h2 { font-size: 28px; }
h3 { font-size: 18px; }
h4 { font-size: 15px; }

p { margin: 0; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Hero */
.hero {
  padding: 88px 0 32px;
  text-align: center;
}
.hero h1 { margin-bottom: 18px; }
.hero .subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Sections */
section { padding: 56px 0; }
section h2 { margin-bottom: 8px; }
section .section-lead {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 32px;
}

/* Tool widget */
.tool {
  margin-top: 40px;
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.tool-row {
  display: flex;
  gap: 10px;
}
.tool input[type="url"] {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.tool input[type="url"]::placeholder { color: var(--muted-2); }
.tool input[type="url"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-primary[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-ghost {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--radius-sm); }

.tool-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.tool-meta .counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.counter .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}
.counter .dot.exhausted {
  background: #ef4444;
}

.tool-status {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  min-height: 1.4em;
}
.tool-status.error { color: #dc2626; }
.tool-status.success { color: #16a34a; }

/* Output panel */
.output {
  margin-top: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.output.empty {
  border-style: dashed;
  border-color: var(--line-2);
  background: transparent;
}
.output-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: var(--muted);
  font-size: 14px;
  font-family: var(--font-mono);
}
.output-placeholder[hidden] {
  display: none;
}

.output-toolbar[hidden] {
  display: none;
}
.output-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 13px;
  flex-wrap: wrap;
}
.output-toolbar .src {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.output-toolbar .src-label {
  color: var(--muted-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-sans);
  font-weight: 600;
}
.output-toolbar .actions { display: flex; gap: 6px; }

.output pre {
  margin: 0;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 480px;
  overflow-y: auto;
}

/* Upsell */
.upsell {
  margin-top: 16px;
  padding: 22px 24px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius);
  display: none;
}
.upsell h3 { margin-bottom: 10px; }
.upsell p { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.upsell p + p { margin-top: 8px; }

/* Step grid (homepage) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.step { padding: 4px 0; }
.step-num {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Numbered vertical steps (how-to, mcp) */
.steps-v { list-style: none; padding: 0; margin: 0; counter-reset: vstep; display: flex; flex-direction: column; gap: 20px; }
.steps-v > li {
  position: relative;
  padding-left: 44px;
  counter-increment: vstep;
}
.steps-v > li::before {
  content: counter(vstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}
.steps-v > li h4 { margin-bottom: 6px; }
.steps-v > li p { color: var(--muted-2); font-size: 14px; }

/* Callouts */
.callout {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}
.callout h4 { margin-bottom: 6px; }
.callout p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.callout p + p { margin-top: 8px; }
.callout a { font-weight: 500; }

/* Card grid */
.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.card {
  display: block;
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--ink);
}
.card h3 {
  font-size: 16px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card .arrow { color: var(--accent); transition: transform .15s; }
.card:hover .arrow { transform: translateX(3px); }
.card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* FAQ */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--muted);
  font-weight: 400;
  transition: transform .15s;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { color: var(--ink); }
.faq .faq-body { padding: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.faq .faq-body p + p { margin-top: 10px; }

/* Code blocks */
.code {
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0;
  border: 1px solid #1e293b;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #94a3b8;
}
.code-head .lang { letter-spacing: 0.04em; }
.code pre {
  margin: 0;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
  color: var(--code-ink);
  white-space: pre;
}
.code pre code {
  font-family: inherit;
  font-size: inherit;
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

/* Breadcrumb */
.crumb {
  font-size: 13px;
  color: var(--muted);
  padding: 28px 0 0;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.crumb .sep { margin: 0 8px; color: var(--muted-2); }

/* Doc page */
.doc { padding: 16px 0 0; }
.doc h1 { font-size: 40px; margin: 18px 0 14px; }
.doc .lede { color: var(--muted); font-size: 18px; max-width: 680px; margin-bottom: 32px; }
.doc h2 { font-size: 24px; margin: 48px 0 12px; }
.doc h3 { font-size: 17px; margin: 28px 0 8px; }
.doc p { color: var(--ink-2); margin: 12px 0; line-height: 1.7; }
.doc ul, .doc ol { color: var(--ink-2); padding-left: 22px; line-height: 1.75; }
.doc li { margin: 6px 0; }
.doc li code, .doc p code, .doc td code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 1px 6px;
  background: var(--bg-soft-2);
  border-radius: 4px;
  color: var(--ink);
}
.doc hr { border: none; border-top: 1px solid var(--line); margin: 56px 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cmp th, .cmp td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.cmp th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
}
.cmp tr:last-child td { border-bottom: none; }
.cmp td.center, .cmp th.center { text-align: center; }
.cmp .yes { color: #16a34a; font-weight: 600; }
.cmp .no { color: var(--muted-2); }

/* Listicle cards */
.list-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 20px 0;
  background: var(--bg);
}
.list-card.featured {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: var(--bg);
}
.list-card.featured .rank-badge {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.list-card .head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.list-card h3 { font-size: 22px; margin: 6px 0 4px; }
.list-card .meta { font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.list-card .desc { color: var(--ink-2); margin: 14px 0 18px; line-height: 1.65; font-size: 15px; }
.proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
.proscons .col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: var(--muted);
}
.proscons ul { list-style: none; padding: 0; margin: 0; }
.proscons li { font-size: 14px; padding: 4px 0; color: var(--ink-2); display: flex; gap: 8px; }
.proscons .pros li::before { content: "+"; color: #16a34a; font-weight: 700; }
.proscons .cons li::before { content: "\2212"; color: #94a3b8; font-weight: 700; }

/* Bullet helper */
ul.plain { list-style: none; padding: 0; }
ul.plain li {
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
}
ul.plain li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Visually hidden */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Responsive */
@media (max-width: 720px) {
  h1 { font-size: 36px; }
  .hero { padding: 56px 0 24px; }
  .hero .subtitle { font-size: 16px; }
  .nav a { padding: 6px 8px; font-size: 13px; }
  .nav a.hide-sm { display: none; }
  .steps, .card-row { grid-template-columns: 1fr; gap: 14px; }
  .tool-row { flex-direction: column; }
  .tool input[type="url"], .btn { width: 100%; }
  .proscons { grid-template-columns: 1fr; }
  .doc h1 { font-size: 30px; }
  section { padding: 40px 0; }
}
