/* google-services-mcps site. Colours are tokens on :root. The dark theme follows the system setting. */
:root {
  color-scheme: light dark;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #cbd5e1;
  --accent: #1d4ed8;
  --accent-text: #ffffff;
  --link: #1e40af;
  --focus: #b45309;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --pill-bg: #dbeafe;
  --pill-text: #1e3a8a;
  --status-bg: #fffbeb;
  --status-line: #b45309;
  --glow: rgba(29, 78, 216, 0.10);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020;
    --surface: #121a2e;
    --text: #e6ebf5;
    --muted: #a9b4cc;
    --line: #2a3756;
    --accent: #7aa2ff;
    --accent-text: #0b1020;
    --link: #9dbaff;
    --focus: #fbbf24;
    --code-bg: #060a14;
    --code-text: #d6e2ff;
    --pill-bg: #1e2b52;
    --pill-text: #bcd0ff;
    --status-bg: #2a2110;
    --status-line: #fbbf24;
    --glow: rgba(122, 162, 255, 0.16);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  min-width: 0;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

code, pre { font-family: var(--mono); }
code { font-size: .92em; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--accent); color: var(--accent-text);
  padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 16px; padding: 6px 0;
}
.brand { font-family: var(--mono); font-weight: 700; color: var(--text); text-decoration: none; padding: 10px 0; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 14px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); text-decoration: underline; }

/* Hero */
.hero {
  padding: clamp(48px, 9vw, 104px) 0 clamp(40px, 6vw, 72px);
  background: radial-gradient(900px 420px at 15% -10%, var(--glow), transparent 70%);
}
.eyebrow { font-family: var(--mono); color: var(--muted); font-size: .875rem; margin: 0 0 12px; }
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.025em;
  margin: 0 0 18px; max-width: 18ch;
}
.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--muted); max-width: 62ch; margin: 0 0 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn:hover { text-decoration: underline; }
.status {
  display: inline-block; margin: 0; padding: 8px 12px; max-width: 100%;
  border-left: 3px solid var(--status-line); background: var(--status-bg); border-radius: 6px; font-size: .95rem;
}

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 12px; margin: 40px 0 0; padding: 0;
}
.stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.stats dt { color: var(--muted); font-size: .875rem; }
.stats dd { margin: 2px 0 0; font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 700; letter-spacing: -0.01em; }

/* Sections */
section { padding: clamp(48px, 7vw, 88px) 0; }
section + section { border-top: 1px solid var(--line); }
.hero + section { border-top: 0; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 8px; }
.section-lead { color: var(--muted); max-width: 70ch; margin: 0 0 28px; }
.subhead { margin: 36px 0 14px; }

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; min-width: 0;
}
.card > :last-child { margin-bottom: 0; }
.card p { margin: 0 0 10px; }

/* Products */
.product-group + .product-group { margin-top: 40px; }
.product-group h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 14px; }
.count { color: var(--muted); font-weight: 400; font-size: .95rem; }
.product h4 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 6px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .9rem; color: var(--muted); }
.pill {
  background: var(--pill-bg); color: var(--pill-text); border-radius: 999px;
  padding: 2px 10px; font-size: .8rem; font-weight: 600;
}
.kinds {
  display: flex; flex-wrap: wrap; gap: 2px 14px; list-style: none; margin: 10px 0 12px; padding: 0;
  font-size: .9rem; color: var(--muted);
}
.kinds strong { color: var(--text); }
.card-links { font-size: .9rem; margin-top: 10px; }

/* Code blocks and copy buttons */
.codeblock { position: relative; margin: 0 0 12px; }
.codeblock:last-child { margin-bottom: 0; }
.codeblock pre {
  margin: 0; background: var(--code-bg); color: var(--code-text); border-radius: 10px;
  padding: 12px 88px 12px 14px; font-size: .875rem; line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.copy-button {
  position: absolute; top: 8px; right: 8px; min-height: 32px; min-width: 64px; padding: 4px 10px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 600 .8rem var(--font); cursor: pointer;
}
.copy-button:hover { border-color: var(--accent); }

/* Install */
.install-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { position: relative; counter-increment: step; padding-left: 40px; margin-bottom: 22px; }
.steps > li:last-child { margin-bottom: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); display: grid; place-items: center;
  font-weight: 700; font-size: .9rem;
}
.steps p { margin: 0 0 10px; }

.groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.groups li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
}
.groups code { color: var(--text); }

/* Safety */
.layers { margin: 0 0 22px; padding-left: 0; list-style: none; counter-reset: layer; display: grid; gap: 10px; }
.layers li {
  counter-increment: layer; position: relative; padding: 12px 16px 12px 56px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
}
.layers li::before {
  content: counter(layer); position: absolute; left: 14px; top: 12px; font-family: var(--mono);
  font-weight: 700; color: var(--accent);
}

/* Costs */
.bullets { margin: 0 0 20px; padding-left: 1.2em; }
.bullets li { margin-bottom: 8px; }

/* FAQ */
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px;
}
.faq-item summary {
  position: relative; cursor: pointer; list-style: none; min-height: 44px;
  padding: 12px 48px 12px 16px; font-weight: 600; display: flex; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; line-height: 1; color: var(--accent);
}
.faq-item[open] summary::after { content: "-"; }
.faq-answer { padding: 0 16px 16px; color: var(--muted); }
.faq-answer p { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .92rem; }
.site-footer p { margin: 0 0 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; list-style: none; margin: 0 0 16px; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 420px) {
  .site-nav ul { gap: 0 10px; }
  .codeblock pre { padding-right: 14px; padding-top: 44px; }
  .copy-button { top: 8px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
