body {
  font-family: "Rethink Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fc;
  color: #333;
  line-height: 1.6;
}

.header {
  background-color: white;
  text-align: center;
  padding: 2rem 1rem 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.logo {
  height: 40px;
}

.text-logo {
  height: 35px;
}

.title {
  font-size: 2.5rem;
  margin: 0.5rem 0 0.25rem;
  color: #333;
}

.subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.cta-buttons {
  text-align: center;
  margin-top: 1rem;
}

.cta-buttons .btn {
  margin: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  background-color: #6c63ff;
  color: white;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 5px;
}

.content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.content section {
  margin-bottom: 2rem;
}

h2 {
  color: #333;
  font-weight: 600;
}

code {
  background-color: #efefef;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
}

pre {
  background-color: #efefef;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
}

ul {
  padding-left: 1.5rem;
}

a {
  color: #6c63ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.footer {
  text-align: center;
  padding: 2rem;
  background-color: #f1f1f1;
  font-size: 0.85rem;
  color: #888;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .logo {
    height: 40px;
  }

  .text-logo {
    height: 30px;
  }

  .content {
    padding: 0 1rem;
  }

  .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  .logo-box {
    flex-direction: column;
    gap: 5px;
  }

  .cta-buttons {
    flex-direction: column;
  }
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap; /* Makes it responsive if needed */
}

.api-title {
  font-size: 2rem; /* match Treova font size */
  font-weight: 500;
  margin-left: 0.3rem;
  font-family: "Rethink Sans", sans-serif;
  color: #111;
  position: relative;
  top: 3.2px; /* fine-tunes vertical alignment */
}

.code-block {
  position: relative;
  margin-bottom: 1rem;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ffffffcc;
  color: #333;
  border: 1px solid #ccc;
  padding: 4px 6px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  fill: #333;
}

.copy-btn:hover {
  background: #f0f0f0;
}

/* Hide copy buttons in print or PDF */
@media print {
  .copy-btn {
    display: none !important;
  }
}
