/* tcgmcp.com — single stylesheet, mobile-first, no build step.
   System font stack only. No text-shadow. No webfonts. No external requests. */

:root {
  --bg: #0a0c0f;
  --bg-elev: #12151a;
  --bg-elev-2: #171b21;
  --border: #23272f;
  --text: #edeff2;
  --text-dim: #9aa2ac;
  --text-dimmer: #676f7a;
  --accent: #7c9eff;
  --accent-dim: #3d5a8a;
  --user-bubble: #1b2430;
  --assistant-bubble: #14171c;
  --radius: 10px;
  --max-w: 760px;
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

code,
pre,
.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration: none;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- hero (above the fold) ---------- */

.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--text);
}

.cursor-blink {
  display: inline-block;
  width: 9px;
  height: 0.95em;
  background: var(--accent);
  border-radius: 1px;
  transform: translateY(0.08em);
}

@media (prefers-reduced-motion: no-preference) {
  .cursor-blink {
    animation: blink 1.1s steps(1) infinite;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.tagline {
  font-size: 19px;
  font-weight: 400;
  color: var(--text-dim);
  margin: 0 0 28px;
  max-width: 42ch;
  letter-spacing: -0.01em;
}

.cta {
  margin-top: 8px;
}

.endpoint-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
}

.endpoint-url {
  flex: 1 1 220px;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  padding: 10px 8px;
  display: flex;
  align-items: center;
}

.copy-btn {
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 90px;
  padding: 0 18px;
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  background: var(--accent);
  color: #0a0c0f;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.copy-btn:hover {
  filter: brightness(1.08);
}

.copy-btn:active {
  filter: brightness(0.95);
}

.copy-btn.copied {
  background: #3fbf7f;
  border-color: #3fbf7f;
  color: #06120c;
}

/* ---------- client install grid ---------- */

.client-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 560px) {
  .client-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 880px) {
  .client-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.client-card {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.client-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-dim);
  box-shadow: var(--shadow-md);
}

.client-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.client-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.client-name {
  font-weight: 600;
  font-size: 15px;
}

.btn-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #0a0c0f;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--accent-dim);
  cursor: pointer;
  transition: filter 0.15s ease;
  width: 100%;
}

.btn-install:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.btn-install:active {
  filter: brightness(0.95);
}

.btn-install.copied {
  background: #3fbf7f;
  border-color: #3fbf7f;
  color: #06120c;
}

.btn-install-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-install-secondary:hover {
  border-color: var(--accent-dim);
}

.client-card details {
  margin-top: -2px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.client-card summary {
  list-style: none;
  cursor: pointer;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}

.client-card summary::-webkit-details-marker {
  display: none;
}

.client-card summary::after {
  content: "+";
  color: var(--text-dim);
  font-weight: 400;
  font-size: 16px;
  margin-left: 12px;
}

.client-card details[open] summary::after {
  content: "\2212";
}

.client-card .client-body {
  padding-top: 6px;
}

.client-card .client-body p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}

.client-card .client-body code {
  font-size: 12px;
  word-break: break-all;
}

/* ---------- below the fold sections ---------- */

.section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.section-sub {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 22px;
}

/* transcripts */

.transcript {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 14px;
  margin-bottom: 16px;
}

.transcript:last-child {
  margin-bottom: 0;
}

.msg {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 10px;
  white-space: pre-wrap;
}

.msg:last-child {
  margin-bottom: 0;
}

.msg .role {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dimmer);
  margin-bottom: 4px;
}

.msg.user {
  background: var(--user-bubble);
}

.msg.assistant {
  background: var(--assistant-bubble);
  border: 1px solid var(--border);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.price-table th:last-child,
.price-table td:last-child {
  text-align: right;
}

.price-table td:nth-child(2) {
  white-space: normal;
}

.price-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.price-total {
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.buy-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 14px;
}

/* games strip */

.games-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chip {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: var(--accent-dim);
  color: var(--text);
}

/* points */

.points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.point-card {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.point-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-dim);
  box-shadow: var(--shadow-md);
}

.point-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.point-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

/* faq */

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq details:first-child {
  border-top: 1px solid var(--border);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 2px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--text-dim);
  font-weight: 400;
  font-size: 18px;
  margin-left: 12px;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq .faq-body {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 14px;
  max-width: 60ch;
}

/* footer */

footer.site-footer {
  padding: 28px 0 48px;
  font-size: 14px;
  color: var(--text-dimmer);
}

footer.site-footer .footer-links {
  margin-top: 6px;
}

footer.site-footer .footer-links a {
  color: var(--text-dim);
  margin-right: 14px;
}

/* terms page */

.legal h1 {
  font-size: 24px;
  margin: 48px 0 8px;
}

.legal h2 {
  font-size: 17px;
  margin: 28px 0 8px;
}

.legal p,
.legal li {
  color: var(--text-dim);
  font-size: 15px;
}

.legal .updated {
  color: var(--text-dimmer);
  font-size: 14px;
  margin-bottom: 32px;
}

.back-link {
  display: inline-block;
  margin: 24px 0 0;
  font-size: 14px;
}

/* ---------- desktop / wider viewports ---------- */

@media (min-width: 640px) {
  .hero {
    padding: 88px 0 56px;
  }

  .wordmark {
    font-size: 34px;
  }

  .tagline {
    font-size: 20px;
  }

  .points {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding: 56px 0;
  }
}
