/* ═══════════════════════════════════════════════
   GetApi — Shared Stylesheet
   ═══════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --background:         hsl(210, 20%, 98%);
  --foreground:         hsl(220, 20%, 10%);
  --card:               hsl(0, 0%, 100%);
  --card-foreground:    hsl(220, 20%, 10%);
  --primary:            hsl(172, 56%, 40%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary:          hsl(210, 14%, 93%);
  --secondary-fg:       hsl(220, 16%, 30%);
  --muted:              hsl(210, 14%, 93%);
  --muted-fg:           hsl(215, 10%, 48%);
  --accent:             hsl(252, 50%, 55%);
  --accent-fg:          hsl(0, 0%, 100%);
  --destructive:        hsl(0, 72%, 51%);
  --border:             hsl(214, 18%, 88%);
  --radius:             0.625rem;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Utilities ── */
.mono { font-family: 'JetBrains Mono', monospace; }

.text-gradient {
  background: linear-gradient(135deg, hsl(172, 56%, 40%), hsl(252, 50%, 55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-primary { box-shadow: 0 4px 20px -6px hsl(172 56% 40% / 0.35); }

.glow-card {
  box-shadow:
    0 1px 3px hsl(220 20% 10% / 0.04),
    0 8px 24px -8px hsl(172 56% 40% / 0.1);
}

.bordered-t { border-top: 1px solid var(--border); }

/* ────────────────────────────────────────────────
   NAVBAR  (shared)
───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 4rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: hsl(210 20% 98% / 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: -1;
}

.navbar .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  width: 2rem; height: 2rem;
  border-radius: 0.5rem;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--foreground); }

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.btn-sm  { padding: 0.375rem 0.875rem; }
.btn-md  { padding: 0.5rem 1.125rem; }
.btn-lg  { padding: 0.75rem 1.5rem; font-size: 1rem; }

.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: 0.9; }

.btn-premium { background: hsl(43 96% 50%); color: hsl(43 20% 12%); font-weight: 600; }
.btn-premium:hover { background: hsl(43 96% 44%); }

.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--muted); }

.btn-outline { background: transparent; color: var(--foreground); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--muted); }

.btn-danger { background: transparent; color: var(--muted-fg); border: none; }
.btn-danger:hover { color: var(--destructive); background: hsl(0 72% 51% / 0.08); }

.btn-icon { padding: 0.375rem; border-radius: var(--radius); }

/* ────────────────────────────────────────────────
   HAMBURGER / MOBILE MENU  (shared)
───────────────────────────────────────────────── */
.hamburger {
  display: none;
  justify-self: end;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--foreground);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 4rem; left: 0; right: 0;
  z-index: 49;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}

.mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.mobile-menu .mobile-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu .mobile-actions .btn { justify-content: center; }

/* ────────────────────────────────────────────────
   BADGES
───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge-mcp { background: linear-gradient(135deg, hsl(172, 56%, 40%), hsl(252, 50%, 55%)); color: #fff; }
.badge-live    { background: var(--primary); color: var(--primary-foreground); }
.badge-beta    { background: transparent; border: 1px solid var(--border); color: var(--muted-fg); }
.badge-soon    { background: transparent; border: 1px solid var(--border); color: var(--muted-fg); }
.badge-free    { background: hsl(152 56% 40% / 0.12); border: 1px solid hsl(152 56% 40% / 0.3); color: hsl(152 56% 30%); }
.pricing-card--premium .badge { background: hsl(43 96% 56% / 0.12); border: 1px solid hsl(43 96% 56% / 0.45); color: hsl(43 80% 36%); }
.badge-premium { background: linear-gradient(135deg, hsl(43, 96%, 50%), hsl(43, 85%, 44%)); color: white; font-weight: 600; }
.badge-tag     { background: var(--secondary); color: var(--secondary-fg); }
.badge-active  { background: transparent; border: 1px solid hsl(172 56% 40% / 0.35); color: var(--primary); }
.badge-method-get  { background: var(--secondary); color: var(--secondary-fg); font-family: 'JetBrains Mono', monospace; }
.badge-method-post { background: var(--primary); color: var(--primary-foreground); font-family: 'JetBrains Mono', monospace; }
.badge-status-ok  { background: transparent; border: 1px solid hsl(172 56% 40% / 0.35); color: var(--primary); }
.badge-status-err { background: var(--destructive); color: white; }
.badge-required   { background: var(--primary); color: var(--primary-foreground); }
.badge-optional   { background: transparent; border: 1px solid var(--border); color: var(--muted-fg); }

/* ────────────────────────────────────────────────
   ERROR PAGES  (400, 404, 419, 500)
───────────────────────────────────────────────── */
.error-page {
  position: relative;
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 6rem;
  overflow: hidden;
}

.error-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, hsl(172, 56%, 40%), hsl(252, 50%, 55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
}

.error-inner h1 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.error-inner p {
  font-size: 1.0625rem;
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.error-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ────────────────────────────────────────────────
   FOOTER  (shared)
───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
}

/* Top section: brand + link columns */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 3rem;
}

.footer-brand {
  flex: 0 0 auto;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

/* Link columns wrapper */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.footer-col h4.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--fg);
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--muted-fg);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: var(--fg);
}

/* Bottom bar: copyright + social icons */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy { font-size: 0.75rem; color: var(--muted-fg); }

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  color: var(--muted-fg);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.footer-socials a:hover {
  color: var(--fg);
}

/* ────────────────────────────────────────────────
   HERO SECTION  (index.html)
───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, hsl(172 56% 40% / 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%,  hsl(252 50% 55% / 0.04), transparent),
    linear-gradient(hsl(214 18% 88% / 0.6) 1px, transparent 1px),
    linear-gradient(90deg, hsl(214 18% 88% / 0.6) 1px, transparent 1px);
  background-size: auto, auto, 60px 60px, 60px 60px;
  background-color: var(--background);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
}

.orb-1 {
  top: 25%; right: 25%;
  width: 18rem; height: 18rem;
  background: hsl(172 56% 40% / 0.05);
  animation: float 6s ease-in-out infinite;
}

.orb-2 {
  bottom: 33%; left: 25%;
  width: 14rem; height: 14rem;
  background: hsl(252 50% 55% / 0.05);
  animation: float 6s ease-in-out infinite 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}

.hero-inner {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--secondary);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
}

.hero-badge svg { color: var(--primary); flex-shrink: 0; }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero p {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
  color: var(--muted-fg);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Code snippet card (hero) */
.code-card {
  margin: 4rem auto 0;
  max-width: 38rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}

.code-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.dot-red    { background: hsl(0 72% 51% / 0.6); }
.dot-yellow { background: hsl(172 56% 40% / 0.4); }
.dot-green  { background: hsl(172 56% 40% / 0.7); }

.code-filename {
  margin-left: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.code-body {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.75;
  text-align: left;
  background: var(--card);
  overflow-x: auto;
}

.c-kw   { color: hsl(252, 50%, 55%); }
.c-fn   { color: var(--primary); }
.c-str  { color: var(--primary); }
.c-id   { color: var(--foreground); }
.c-punc { color: var(--muted-fg); }

/* Shared section heading */
section.bordered { border-top: 1px solid var(--border); }

.section-heading { text-align: center; margin-bottom: 4rem; }

.section-heading h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-heading p {
  max-width: 32rem;
  margin: 0 auto;
  color: var(--muted-fg);
  line-height: 1.6;
}

/* ────────────────────────────────────────────────
   LOGO SLIDER
───────────────────────────────────────────────── */
.logo-slider { padding: 3rem 0; }

.logo-slider-title {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 2rem;
}

.logo-slider-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.logo-slider-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: logo-scroll 22s linear infinite;
  backface-visibility: hidden;
}

.logo-slider-track:hover { animation-play-state: paused; }

.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-item img {
  height: 36px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.45;
  transition: filter 0.25s ease, opacity 0.25s ease;
  object-fit: contain;
}

.logo-item img:hover { filter: grayscale(0); opacity: 0.9; }

@keyframes logo-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-25%, 0, 0); }
}

/* ────────────────────────────────────────────────
   MCP BANNER
───────────────────────────────────────────────── */
.mcp-banner { padding: 1.5rem 0 1.5rem; }
.mcp-banner-api-page {
  margin-bottom: 32px;
}

.mcp-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.125rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(172 56% 40% / 0.25);
  background: linear-gradient(135deg, hsl(172 56% 40% / 0.05) 0%, hsl(252 50% 55% / 0.05) 100%);
}

.mcp-banner-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, hsl(172, 56%, 40%), hsl(252, 50%, 55%));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mcp-banner-content {
  flex: 1;
  min-width: 0;
}

.mcp-banner-content h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.mcp-banner-content p {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  line-height: 1.5;
}

.mcp-banner-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .mcp-banner-inner {
    flex-direction: column;
    text-align: center;
  }
  .mcp-banner-cta { width: 100%; justify-content: center; }
}

/* ────────────────────────────────────────────────
   AI INTEGRATIE SECTION
───────────────────────────────────────────────── */
.ai-integratie { padding: 5rem 0; }

.ai-integratie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.ai-integratie-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.ai-integratie-text p {
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.ai-integratie-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ai-tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.125rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}

.ai-tool-card h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}

.ai-tool-card p {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  line-height: 1.55;
  margin: 0;
}

.ai-tool-card code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  background: var(--secondary);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

.ai-tool-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: hsl(172 56% 40% / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .ai-integratie-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 540px) {
  .ai-integratie-cards { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────────
   FEATURES SECTION  (index.html)
───────────────────────────────────────────────── */
.features { padding: 6rem 0; }

.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-card {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  transition: box-shadow 0.25s;
}
.feature-card:hover { box-shadow: 0 1px 3px hsl(220 20% 10% / 0.04), 0 8px 24px -8px hsl(172 56% 40% / 0.1); }

.feature-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature-icon svg { color: var(--primary); }

.feature-card h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p  { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; }

/* ────────────────────────────────────────────────
   API CATALOG (mini — index.html)
───────────────────────────────────────────────── */
.api-catalog {
  padding: 6rem 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, hsl(172 56% 40% / 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%,  hsl(252 50% 55% / 0.04), transparent);
  background-color: var(--background);
}

.apis-grid-home {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.api-card-home {
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
  transition: box-shadow 0.25s;
}
.api-card-home:hover { box-shadow: 0 1px 3px hsl(220 20% 10% / 0.04), 0 8px 24px -8px hsl(172 56% 40% / 0.1); }

.api-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.api-icon {
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--secondary);
  display: flex; align-items: center; justify-content: center;
}
.api-icon svg { color: var(--primary); }

.api-card-home h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.api-card-home p { font-size: 0.75rem; color: var(--muted-fg); line-height: 1.5; }

.catalog-footer { margin-top: 2.5rem; text-align: center; }

/* ────────────────────────────────────────────────
   CTA SECTION  (index.html)
───────────────────────────────────────────────── */
.cta { padding: 6rem 0; }

.cta-box {
  max-width: 40rem;
  margin: 0 auto;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 3rem;
  text-align: center;
  box-shadow: 0 1px 3px hsl(220 20% 10% / 0.04), 0 8px 24px -8px hsl(172 56% 40% / 0.1);
}

.cta-box h2 { font-size: clamp(1.6rem, 3.5vw, 2rem); font-weight: 700; margin-bottom: 1rem; }
.cta-box p  { color: var(--muted-fg); margin-bottom: 2rem; line-height: 1.65; }

/* ────────────────────────────────────────────────
   PAGE HEADER  (apis.html, docs pages)
───────────────────────────────────────────────── */
.page-wrap {
  padding-top: 6rem;
  padding-bottom: 4rem;
  min-height: 100vh;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
  margin-bottom: 2rem;
}
.back-link:hover { color: var(--foreground); }

.page-header { margin-bottom: 2.5rem; }

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-header p {
  max-width: 36rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

/* ────────────────────────────────────────────────
   APIS PAGE  (apis.html)
───────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.filter-chip {
  padding: 0.3125rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-fg);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  font-family: 'Inter', sans-serif;
}
.filter-chip:hover        { border-color: hsl(172 56% 40% / 0.4); color: var(--foreground); }
.filter-chip.active       { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }

.search-wrap {
  position: relative;
  width: 100%;
  max-width: 16rem;
}

.search-wrap svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-fg);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--primary); }
.search-input::placeholder { color: var(--muted-fg); }

.apis-grid-full {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.api-card-full {
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  transition: box-shadow 0.25s;
}
.api-card-full:hover { box-shadow: 0 1px 3px hsl(220 20% 10% / 0.04), 0 8px 24px -8px hsl(172 56% 40% / 0.1); }

.api-card-full .api-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.api-card-full .api-badges { display: flex; gap: 0.375rem; flex-wrap: wrap; justify-content: flex-end; }

.api-card-full h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.api-card-full .api-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.api-card-full .api-links {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.api-link-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  transition: text-decoration 0.15s;
}
.api-link-primary:hover { text-decoration: underline; }

.api-link-muted {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.api-link-muted:hover { color: var(--foreground); }

.empty-state { padding: 4rem 0; text-align: center; color: var(--muted-fg); }

/* ── API Catalogus sidebar layout ── */
.apis-catalog-layout {
  display: block;
}

.filter-sidebar {
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-width: thin;
}

.filter-sidebar-section {
  margin-bottom: 1.75rem;
}

.filter-sidebar-section:last-child {
  margin-bottom: 0;
}

.filter-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.filter-sidebar-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.filter-clear-btn {
  font-size: 0.75rem;
  color: var(--muted-fg);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  padding: 0;
  transition: color 0.15s;
}
.filter-clear-btn:hover { color: var(--foreground); }

.filter-option-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
}

.filter-option-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--foreground);
  cursor: pointer;
  flex: 1;
}

.filter-option input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.filter-count {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.filter-toolbar .search-wrap {
  flex: 1;
  max-width: none;
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  min-width: 10rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.custom-select-trigger:hover { border-color: var(--primary); }
.custom-select.is-open .custom-select-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(172 56% 40% / 0.12);
}

.custom-select-label { flex: 1; text-align: left; }

.custom-select-chevron {
  flex-shrink: 0;
  color: var(--muted-fg);
  transition: transform 0.2s;
}
.custom-select.is-open .custom-select-chevron { transform: rotate(180deg); }

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  min-width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px hsl(0 0% 0% / 0.1);
  list-style: none;
  padding: 0.25rem;
  z-index: 50;
  display: none;
}
.custom-select.is-open .custom-select-dropdown { display: block; }

.custom-select-option {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) - 0.125rem);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s;
  color: var(--foreground);
}
.custom-select-option:hover { background: var(--muted); }
.custom-select-option.is-selected {
  color: var(--primary);
  font-weight: 500;
}
.custom-select-option.is-selected::after {
  content: '';
  display: block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--primary);
  margin-left: auto;
}

.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: var(--muted);
  font-size: 0.75rem;
  color: var(--foreground);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s;
}
.active-chip:hover { background: hsl(172 56% 40% / 0.15); }

.filter-toggle-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--foreground);
  cursor: pointer;
}

.filter-toggle-option input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.provider-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.125rem 0.4375rem;
  border-radius: 0.25rem;
  background: var(--muted);
  color: var(--muted-fg);
  text-transform: uppercase;
}

/* ── Filter bar (horizontal top-bar layout) ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-bar .search-wrap {
  flex: 1;
  min-width: 14rem;
}

.filter-bar-end {
  margin-left: auto;
}

.filter-dropdown {
  position: relative;
}

.filter-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.filter-dropdown-trigger:hover { border-color: var(--primary); }
.filter-dropdown.is-open .filter-dropdown-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(172 56% 40% / 0.12);
}
.filter-dropdown.has-selection .filter-dropdown-trigger {
  border-color: var(--primary);
  background: hsl(172 56% 40% / 0.07);
}

.filter-dropdown-label { font-weight: 500; }

.filter-dropdown-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
}

.filter-dropdown-chevron {
  flex-shrink: 0;
  color: var(--muted-fg);
  transition: transform 0.2s;
}
.filter-dropdown.is-open .filter-dropdown-chevron { transform: rotate(180deg); }

.filter-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  min-width: 14rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px hsl(0 0% 0% / 0.1);
  padding: 0.375rem;
  z-index: 50;
  display: none;
}
.filter-dropdown.is-open .filter-dropdown-panel { display: block; }

.filter-dropdown-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: calc(var(--radius) - 0.125rem);
  cursor: pointer;
  transition: background 0.15s;
}
.filter-dropdown-option:hover { background: var(--muted); }

.filter-dropdown-option input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.filter-dropdown-option span:first-of-type {
  flex: 1;
  font-size: 0.875rem;
  color: var(--foreground);
}

.filter-dropdown-option .filter-count {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

/* ────────────────────────────────────────────────
   DASHBOARD  (dashboard.html)
───────────────────────────────────────────────── */
.dash-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 3.5rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: hsl(0 0% 100% / 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.dash-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.dash-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-brand-icon {
  width: 1.75rem; height: 1.75rem;
  border-radius: 0.375rem;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.dash-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dash-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: background 0.15s, color 0.15s;
}
.dash-nav-link:hover { background: var(--secondary); color: var(--foreground); }
.dash-nav-link svg { width: 0.875rem; height: 0.875rem; }

.dash-user { display: flex; align-items: center; gap: 1rem; }
.dash-email { font-size: 0.875rem; color: var(--muted-fg); }

.dash-content { padding: 2rem 0 4rem; }

.dash-title { margin-bottom: 2rem; }
.dash-title h1 { font-size: 1.5rem; font-weight: 700; }
.dash-title p { color: var(--muted-fg); font-size: 0.9375rem; margin-top: 0.25rem; }

/* Stats grid */
.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}

.stat-card {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
  box-shadow: 0 1px 3px hsl(220 20% 10% / 0.04), 0 8px 24px -8px hsl(172 56% 40% / 0.1);
}

.stat-row { display: flex; align-items: center; justify-content: space-between; }

.stat-label { font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 0.25rem; }
.stat-value { font-size: 1.5rem; font-weight: 700; }

.stat-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon-primary { background: hsl(172 56% 40% / 0.1); }
.stat-icon-accent  { background: hsl(252 50% 55% / 0.1); }
.stat-icon-primary svg { color: var(--primary); }
.stat-icon-accent  svg { color: var(--accent); }

.stat-trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
}
.stat-trend svg { color: var(--primary); }
.stat-trend-val { color: var(--primary); font-weight: 500; }
.stat-trend-label { color: var(--muted-fg); }

/* Tabs */
.tabs { }

.tab-list {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
  font-family: 'Inter', sans-serif;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-btn:hover  { color: var(--foreground); }
.tab-btn.active { color: var(--foreground); border-bottom-color: var(--primary); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Chart card */
.card {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 1px 3px hsl(220 20% 10% / 0.04), 0 8px 24px -8px hsl(172 56% 40% / 0.1);
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 1rem; font-weight: 600; }
.card-desc  { font-size: 0.875rem; color: var(--muted-fg); margin-top: 0.25rem; }

.card-body { padding: 1.5rem; }

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 12rem;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  height: 100%;
  justify-content: flex-end;
}

.bar-val  { font-size: 0.7rem; font-weight: 500; color: var(--foreground); }
.bar-fill {
  width: 100%;
  border-radius: 0.25rem 0.25rem 0 0;
  background: hsl(172 56% 40% / 0.8);
  transition: background 0.15s;
  min-height: 4px;
}
.bar-fill:hover { background: var(--primary); }
.bar-day  { font-size: 0.65rem; color: var(--muted-fg); white-space: nowrap; }

/* Progress bars (endpoint breakdown) */
.endpoint-list { display: flex; flex-direction: column; gap: 1rem; }

.endpoint-row {}
.endpoint-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}
.endpoint-name { font-family: 'JetBrains Mono', monospace; }
.endpoint-calls { color: var(--muted-fg); }

.progress-track {
  width: 100%;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--secondary);
}
.progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: var(--primary);
}

.tabs-body { display: flex; flex-direction: column; gap: 1.5rem; }

/* API Keys */
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.section-row h2 { font-size: 1.0625rem; font-weight: 600; }
.section-row p  { font-size: 0.875rem; color: var(--muted-fg); }

.keys-list { display: flex; flex-direction: column; gap: 0.75rem; }

.key-card {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
  box-shadow: 0 1px 3px hsl(220 20% 10% / 0.04), 0 8px 24px -8px hsl(172 56% 40% / 0.1);
}

.key-card-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.key-info { flex: 1; min-width: 0; }

.key-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.key-name { font-weight: 600; }

.key-value-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.key-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  background: var(--secondary);
  color: var(--muted-fg);
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
}

.key-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted-fg);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  border-radius: 0.375rem;
  transition: color 0.15s;
}
.key-icon-btn:hover { color: var(--foreground); }

.key-meta { font-size: 0.75rem; color: var(--muted-fg); display: flex; flex-wrap: wrap; gap: 1rem; }
.key-meta-item { display: flex; align-items: center; gap: 0.25rem; }
.key-meta-item svg { width: 0.75rem; height: 0.75rem; }

/* Toast */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--foreground);
  color: var(--primary-foreground);
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: auto;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Table */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th {
  text-align: left;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-fg);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.data-table tr:last-child td { border-bottom: none; }

/* Modal/Dialog */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: hsl(220 20% 10% / 0.5);
  z-index: 80;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--card);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
  width: 100%;
  max-width: 28rem;
  margin: 1rem;
  box-shadow: 0 20px 60px hsl(220 20% 10% / 0.15);
}

.modal h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.375rem; }
.modal p  { font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 1rem; }

.modal-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  margin-bottom: 1rem;
}
.modal-input:focus { border-color: var(--primary); }

.modal-footer { display: flex; justify-content: flex-end; gap: 0.5rem; }

/* ────────────────────────────────────────────────
   DOCS PAGE  (docs-email-verifier-api.html)
───────────────────────────────────────────────── */
.docs-wrap {
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}

.docs-api-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.docs-api-icon {
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  background: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.docs-api-icon svg { color: var(--primary); }

.docs-api-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
  flex-wrap: wrap;
}
.docs-api-title { font-family: 'JetBrains Mono', monospace; font-size: 1.5rem; font-weight: 700; }
.docs-desc { color: var(--muted-fg); line-height: 1.6; }

/* Stat pills — shown directly below the API header */
.api-stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.api-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.8rem;
  color: var(--muted-fg);
  font-weight: 500;
  white-space: nowrap;
}
.api-stat-pill svg { color: var(--primary); flex-shrink: 0; }

.api-stat-pill--free {
  background: hsl(172, 56%, 40%, 0.07);
  border-color: hsl(172, 56%, 40%, 0.25);
  color: var(--primary);
}
.api-stat-pill--free svg { color: var(--primary); }

.api-stat-pill--link {
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.api-stat-pill--link:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.api-stat-pill--link svg { color: inherit; }

.docs-section {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.docs-section h2 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.75rem; }
.docs-section > p { font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 1rem; line-height: 1.6; }

.auth-option { margin-bottom: 1.25rem; }
.auth-option:last-child { margin-bottom: 0; }
.auth-option + .auth-option { padding-top: 1.25rem; border-top: 1px solid var(--border); }

.auth-method-label { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.auth-method-hint  { font-size: 0.75rem; color: var(--muted-fg); margin-bottom: 0.625rem; }

.code-block {
  position: relative;
  border-radius: 0.5rem;
  background: var(--secondary);
  padding: 1rem;
  overflow-x: auto;
}

.code-block pre,
.code-block code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--foreground);
  white-space: pre-wrap;
  word-break: break-all;
}

.copy-btn {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.3rem;
  cursor: pointer;
  color: var(--muted-fg);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.copy-btn:hover { color: var(--foreground); }

/* ────────────────────────────────────────────────
   CODE EXAMPLE TABS  (apis/show)
───────────────────────────────────────────────── */
.docs-section-intro {
  color: var(--muted-fg);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}

.code-example-tabs {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.code-example-tabbar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.625rem;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
}

.code-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--muted-fg);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.code-tab:hover {
  color: var(--foreground);
  background: var(--card);
}
.code-tab.is-active {
  color: var(--foreground);
  background: var(--card);
  border-color: var(--border);
}

/* Response tab is visually separated from the language tabs */
.code-tab--response {
  margin-left: auto;
  font-size: 0.75rem;
  gap: 0.3rem;
}
.code-tab--response svg {
  color: var(--primary);
}

.code-example-panel .code-block {
  border-radius: 0;
  border: none;
  background: var(--card);
}

.code-example-panel .code-block pre,
.code-example-panel .code-block code {
  font-size: 0.8125rem;
  line-height: 1.75;
  white-space: pre;
  word-break: normal;
  overflow-x: auto;
}

h2.endpoints-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.endpoint-block {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  margin-bottom: 2rem;
}

.endpoint-block:last-child { margin-bottom: 0; }

.endpoint-head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.endpoint-method-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.endpoint-path { font-family: 'JetBrains Mono', monospace; font-size: 0.9375rem; }
.endpoint-desc { font-size: 0.875rem; color: var(--muted-fg); }

.endpoint-section {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.endpoint-section:last-child { border-bottom: none; }

.endpoint-section-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-fg);
  margin-bottom: 0.75rem;
}

/* Params table */
.params-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}
.params-table th {
  text-align: left;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-fg);
  background: hsl(210 14% 93% / 0.5);
  border-bottom: 1px solid var(--border);
}
.params-table td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.params-table tr:last-child td { border-bottom: none; }

.param-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  background: var(--secondary);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}
.param-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted-fg);
}
.param-rules { font-size: 0.8125rem; color: var(--muted-fg); }

/* ────────────────────────────────────────────────
   FAQ ACCORDION
───────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; }

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--foreground);
  text-align: left;
  transition: color 0.15s;
}
.faq-question:hover { color: var(--primary); }
.faq-question svg   { flex-shrink: 0; transition: transform 0.2s ease; }

.faq-answer {
  padding-bottom: 1.125rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.7;
}
.faq-answer p              { margin: 0 0 0.5rem; }
.faq-answer p:last-child   { margin-bottom: 0; }
.faq-answer code           { font-family: 'JetBrains Mono', monospace; font-size: 0.8125rem; background: var(--secondary); padding: 0.125rem 0.375rem; border-radius: 0.25rem; }

/* ────────────────────────────────────────────────
   TRY IT PANEL
───────────────────────────────────────────────── */
.try-panel { padding: 0; }

.try-url-bar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.25rem;
  background: hsl(214, 20%, 97%);
  border-bottom: 1px solid var(--border);
  border-radius: 0.75rem 0.75rem 0 0;
  overflow: hidden;
}
.try-url-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--foreground);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.try-method {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  text-transform: uppercase;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.try-method--get    { background: hsl(210, 70%, 92%); color: hsl(210, 70%, 32%); }
.try-method--post   { background: hsl(140, 55%, 90%); color: hsl(140, 55%, 30%); }
.try-method--put    { background: hsl(35, 90%, 92%);  color: hsl(35, 90%, 35%); }
.try-method--delete { background: hsl(0, 70%, 92%);   color: hsl(0, 70%, 38%); }

.try-copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.3rem 0.4rem;
  cursor: pointer;
  color: var(--muted-fg);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s;
}
.try-copy-btn:hover { color: var(--foreground); border-color: var(--muted-fg); }

.try-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  padding: 1.25rem 1.25rem 0;
}

.try-field { display: flex; flex-direction: column; }

.try-field-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--foreground);
}
.try-field-label svg { color: var(--primary); flex-shrink: 0; }
.try-required { color: var(--destructive); line-height: 1; }
.try-in-badge {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--muted-fg);
  background: var(--secondary);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  margin-left: auto;
  flex-shrink: 0;
}

.try-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  transition: border-color 0.15s;
  box-sizing: border-box;
  min-width: 0;
}
.try-input:focus { outline: none; border-color: var(--primary); }
.try-textarea { resize: vertical; min-height: 4rem; line-height: 1.5; }
.try-select   { cursor: pointer; }
.try-hint     { font-size: 0.72rem; color: var(--muted-fg); margin-top: 0.25rem; }

.try-field--key {
  grid-column: 1 / -1;
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
  margin-top: 0.25rem;
}

.try-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}

.try-response {
  border-top: 1px solid var(--border);
  border-radius: 0 0 0.75rem 0.75rem;
  overflow: hidden;
}
.try-response-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  background: hsl(214, 20%, 97%);
  border-bottom: 1px solid var(--border);
}
.try-status {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 0.2rem 0.55rem;
  border-radius: 0.3rem;
}
.try-status--ok  { background: hsl(140, 55%, 90%); color: hsl(140, 55%, 30%); }
.try-status--err { background: hsl(0, 70%, 92%);   color: hsl(0, 70%, 38%); }
.try-latency     { font-size: 0.78rem; color: var(--muted-fg); font-family: var(--font-mono); }

.try-response-pre {
  margin: 0;
  padding: 1.125rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  overflow-x: auto;
  max-height: 420px;
  white-space: pre;
  background: var(--card);
}

/* JSON token colours */
.js   { color: hsl(172, 56%, 38%); }       /* string value */
.jk   { color: var(--foreground); font-weight: 500; } /* key */
.jb   { color: hsl(210, 70%, 48%); }       /* boolean */
.jn   { color: var(--muted-fg); }          /* null */
.jnum { color: hsl(30, 80%, 45%); }        /* number */

@media (max-width: 640px) {
  .try-fields { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────────
   DOCS CTA BOX (show page)
───────────────────────────────────────────────── */
.docs-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, hsl(172 56% 40% / 0.07), hsl(172 56% 40% / 0.02));
  border: 1px solid hsl(172 56% 40% / 0.22);
  border-radius: 0.875rem;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
}
.docs-cta-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.35rem;
}
.docs-cta-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.docs-cta-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.6;
  max-width: 46ch;
  margin: 0;
}
.docs-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex-shrink: 0;
}
.docs-cta-spec-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  text-decoration: none;
  padding-top: 0.25rem;
  transition: color 0.15s;
}
.docs-cta-spec-link:hover { color: var(--primary); }

@media (max-width: 640px) {
  .docs-cta-box { flex-direction: column; align-items: flex-start; }
  .docs-cta-actions { flex-direction: row; width: 100%; }
  .docs-cta-actions .btn { flex: 1; justify-content: center; }
}

/* ──────────────────────────────────────────────────
   PROJECTS BREAKOUT SLIDER
────────────────────────────────────────────────── */
.projects-breakout {
  width: 100%;
  background: hsl(215 20% 97%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  margin-bottom: 2.5rem;
}

.projects-breakout-header {
  margin-bottom: 1.75rem;
}
.projects-breakout-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}
.projects-breakout-sub {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin: 0;
}

.projects-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.5rem;
}

.projects-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0.25rem 1rem;
  flex: 1;
  min-width: 0;
}
.projects-slider::-webkit-scrollbar { display: none; }

.project-slide {
  flex: 0 0 33%;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 8px -2px hsl(215 20% 10% / 0.07);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.project-slide:hover {
  border-color: hsl(172 56% 40% / 0.35);
  box-shadow: 0 4px 16px -4px hsl(172 56% 40% / 0.15);
}

.project-slide-logo {
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, hsl(172 56% 40% / 0.12), hsl(252 50% 55% / 0.1));
  border: 1px solid hsl(172 56% 40% / 0.2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.project-slide-logo img { width: 100%; height: 100%; object-fit: contain; }

.project-slide-initials {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
}

.project-slide-body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
}

.project-slide-name {
  font-weight: 600;
  font-size: 0.9375rem;
  margin: 0;
}
.project-slide-name a {
  color: var(--foreground);
  text-decoration: none;
}
.project-slide-name a:hover { color: var(--primary); }

.project-slide-desc {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.project-slide-tag {
  display: inline-block;
  margin-top: auto;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  background: hsl(172 56% 40% / 0.09);
  color: var(--primary);
  border-radius: 999px;
  width: fit-content;
}

.projects-nav {
  flex-shrink: 0;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--foreground);
  transition: background 0.15s, border-color 0.15s;
}
.projects-nav:hover {
  background: var(--muted);
  border-color: hsl(172 56% 40% / 0.35);
}

@media (max-width: 480px) {
  .project-slide { flex: 0 0 82vw; }
  .projects-nav { display: none; }
}

/* ────────────────────────────────────────────────
   DASHBOARD LAYOUT
───────────────────────────────────────────────── */
.dash-wrap {
  display: flex;
  min-height: calc(100vh - 4rem);
  margin-top: 4rem;
}

.dash-sidebar {
  width: 224px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 2rem 0 2rem;
  position: sticky;
  top: 4rem;
  height: calc(100vh - 4rem);
  overflow-y: auto;
}

.dash-sidebar-section {
  margin-bottom: 0.25rem;
  padding: 0 0.75rem;
}

.dash-sidebar-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
  padding: 0.5rem 0.75rem 0.35rem;
  display: block;
}

.dash-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.15s, background 0.15s;
}
.dash-sidebar-link:hover { color: var(--foreground); background: var(--muted); }
.dash-sidebar-link.active { color: var(--primary); background: hsl(172 56% 40% / 0.08); font-weight: 500; }
.dash-sidebar-link svg { flex-shrink: 0; }

.dash-main {
  flex: 1;
  max-width: 1200px;
  padding: 2.5rem 2.5rem;
  min-width: 0;
}

.dash-page-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dash-page-sub {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-bottom: 2rem;
}

.dash-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.dash-section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.dash-section-sub {
  font-size: 0.8rem;
  color: var(--muted-fg);
  margin-bottom: 1.25rem;
}

/* API Key cards */
.key-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }

.key-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.key-item-info { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.key-item-name { font-size: 0.875rem; font-weight: 500; }
.key-item-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.key-item-meta { font-size: 0.7rem; color: var(--muted-fg); }

.key-item-actions { display: flex; gap: 0.5rem; align-items: center; flex-shrink: 0; }

/* API Keys table */
.api-keys-table-wrap {
  overflow-x: auto;
  margin-bottom: 0;
}

.api-keys-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.api-keys-table th {
  text-align: left;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--muted-fg);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.api-keys-table td {
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  vertical-align: middle;
}

.api-keys-table tbody tr:last-child td { border-bottom: none; }

.api-keys-table tbody tr:hover td { background: var(--secondary); }

.api-keys-table-name { font-weight: 500; }

.api-keys-table-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted-fg);
}


.new-key-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: hsl(172 56% 40% / 0.08);
  border: 1px solid hsl(172 56% 40% / 0.3);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.new-key-banner p { font-size: 0.8rem; color: var(--muted-fg); margin-bottom: 0.25rem; }
.new-key-banner code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--primary);
  word-break: break-all;
  background: hsl(172 56% 40% / 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
}

/* Inline form (create key) */
.inline-form {
  display: flex;
  gap: 0.625rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* ────────────────────────────────────────────────
   FORM FIELDS  (shared)
───────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 160px;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(172 56% 40% / 0.15);
}
.form-input::placeholder { color: var(--muted-fg); }

.form-error { font-size: 0.75rem; color: var(--destructive); margin-top: 0.2rem; }

.form-hint { font-size: 0.75rem; color: var(--muted-fg); }

/* Stacked form layout */
.form-stack { display: flex; flex-direction: column; gap: 1.25rem; }

/* Alert / status banners */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.alert-success  { background: hsl(172 56% 40% / 0.1); color: hsl(172 56% 30%); border: 1px solid hsl(172 56% 40% / 0.25); }
.alert-warning  { background: hsl(38 92% 50% / 0.1);  color: hsl(38 80% 30%);   border: 1px solid hsl(38 92% 50% / 0.3); }
.alert-danger   { background: hsl(0 72% 51% / 0.08);  color: var(--destructive); border: 1px solid hsl(0 72% 51% / 0.2); }

/* ────────────────────────────────────────────────
   AUTH PAGES  (guest layout)
───────────────────────────────────────────────── */
.auth-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--background);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2rem 2rem;
  box-shadow: 0 4px 24px -8px hsl(220 20% 10% / 0.07);
}

.auth-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.auth-card-sub {
  font-size: 0.85rem;
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
}

/* Tab switcher (password vs magic link) */
.auth-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted-fg);
  transition: background 0.15s, color 0.15s;
  font-family: 'Inter', sans-serif;
}
.auth-tab.active { background: var(--primary); color: var(--primary-foreground); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--muted-fg);
  font-size: 0.75rem;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted-fg);
}
.auth-footer a { color: var(--primary); }

/* ────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: block; }

  .features-grid    { grid-template-columns: 1fr; }
  .apis-grid-home   { grid-template-columns: 1fr 1fr; }
  .apis-grid-full   { grid-template-columns: 1fr; }
  .apis-catalog-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; max-height: none; display: none; }
  .filter-sidebar.is-open { display: block; }
  .stats-grid       { grid-template-columns: 1fr 1fr; }

  .cta-box { padding: 2rem 1.5rem; }

  .footer-inner       { flex-direction: column; align-items: center; text-align: center; }
  .footer-brand       { max-width: 100%; align-items: center; }
  .footer-links       { justify-content: center; }
  .footer-bottom .container { justify-content: center; }

  .dash-sidebar { display: none; }
  .dash-main    { padding: 1.5rem 1rem; }
  .dash-nav   { display: none; }
  .dash-email { display: none; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .search-wrap { max-width: 100%; }

  .key-card-inner { flex-direction: column; }
  .bar-day { font-size: 0.55rem; }
}

@media (max-width: 480px) {
  .apis-grid-home { grid-template-columns: 1fr; }
  .hero-actions   { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   PRICING PAGE
═══════════════════════════════════════════════════════ */

/* Plan card */
.pricing-card-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}

.pricing-card-wrap--two {
  gap: 1.5rem;
  align-items: stretch;
  flex-wrap: wrap;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card-wrap--two .pricing-card {
  flex: 1 1 340px;
}

.pricing-card-wrap--three {
  gap: 1.5rem;
  align-items: stretch;
  flex-wrap: wrap;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card-wrap--three .pricing-card {
  flex: 1 1 300px;
}

.pricing-card-wrap--four {
  gap: 1.25rem;
  align-items: stretch;
  flex-wrap: wrap;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card-wrap--four .pricing-card {
  flex: 1 1 220px;
}

.pricing-card {
  width: 100%;
  max-width: 480px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  padding: 2rem 2rem 2.25rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}

.pricing-card--premium {
  border-color: hsl(43 96% 56% / 0.6);
  background: linear-gradient(160deg, hsl(43 96% 56% / 0.04) 0%, var(--card) 50%);
  box-shadow: 0 4px 32px hsl(43 96% 56% / 0.12);
  position: relative;
}

.pricing-card--premium .pricing-features li svg {
  color: hsl(43 80% 45%);
}

/* Founder card */
.pricing-card--founder {
  border-color: hsl(252 50% 55% / 0.55);
  background: linear-gradient(160deg, hsl(252 50% 55% / 0.06) 0%, var(--card) 55%);
  box-shadow: 0 4px 32px hsl(252 50% 55% / 0.14);
  position: relative;
  overflow: hidden;
}

.pricing-card--founder::before {
  content: 'Founders Deal';
  position: absolute;
  top: 2rem;
  right: -2.5rem;
  background: linear-gradient(135deg, hsl(172, 56%, 40%), hsl(252, 50%, 55%));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 3rem;
  transform: rotate(35deg);
  transform-origin: center;
  white-space: nowrap;
  line-height: 1;
}

.pricing-card--founder .pricing-features li svg {
  color: var(--accent);
}

.pricing-card--founder .badge {
  background: linear-gradient(135deg, hsl(172 56% 40% / 0.12), hsl(252 50% 55% / 0.18));
  border: 1px solid hsl(252 50% 55% / 0.4);
  color: hsl(252 50% 42%);
  font-weight: 600;
}

/* Most popular card */
.pricing-card--popular {
  border-color: hsl(172 56% 40% / 0.6);
  background: linear-gradient(160deg, hsl(172 56% 40% / 0.06) 0%, var(--card) 55%);
  box-shadow: 0 4px 32px hsl(172 56% 40% / 0.14);
  position: relative;
  overflow: hidden;
}

.pricing-card--popular::before {
  content: 'Meest gekozen';
  position: absolute;
  top: 2rem;
  right: -2.75rem;
  background: linear-gradient(135deg, hsl(172, 56%, 40%), hsl(172, 56%, 30%));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 3rem;
  transform: rotate(35deg);
  transform-origin: center;
  white-space: nowrap;
  line-height: 1;
}

.pricing-card--popular .pricing-features li svg {
  color: hsl(172, 56%, 40%);
}

.pricing-card--popular .badge {
  background: hsl(172 56% 40% / 0.1);
  border: 1px solid hsl(172 56% 40% / 0.4);
  color: hsl(172 56% 30%);
  font-weight: 600;
}
  font-size: 1rem;
  color: var(--muted-fg);
  text-decoration: line-through;
  font-weight: 400;
  margin-bottom: 0.15rem;
}

.pricing-price-deal {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, hsl(172, 56%, 40%), hsl(252, 50%, 55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 0.2rem;
}

.pricing-price-popular {
  background: linear-gradient(135deg, hsl(38, 92%, 50%), hsl(22, 90%, 55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Billing toggle ───────────────────────────────────────── */
.pricing-billing-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 auto 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.25rem;
  width: fit-content;
}

.billing-option {
  background: transparent;
  border: none;
  color: var(--muted-fg);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.billing-option--active {
  background: hsl(252, 76%, 60%);
  color: #fff;
}

.billing-save-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: hsl(152, 60%, 38%);
  color: #fff;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  letter-spacing: 0.03em;
}

/* Price visibility based on billing cycle */
.price-yearly { display: none; }
.price-monthly { display: inline; }
.billing--yearly .price-monthly { display: none; }
.billing--yearly .price-yearly  { display: inline; }

.price-yearly-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.6;
  letter-spacing: 0.02em;
  margin-top: 0.2rem;
}

.btn-founder {
  background: linear-gradient(135deg, hsl(172, 56%, 38%), hsl(252, 50%, 52%));
  color: #fff;
  font-weight: 600;
  border: none;
}
.btn-founder:hover { opacity: 0.9; }

/* Founders FAQ (accordion style, below rate table) */
.pricing-founders-faq {
  max-width: 760px;
  margin: 0 auto 4rem;
}

.pricing-founders-faq h2 {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Extra modules section */
.pricing-modules-section {
  margin-bottom: 4rem;
}

/* ── Credit-slider section ──────────────────────────────────────────── */
.pricing-slider-section {
  margin-bottom: 4rem;
}

.pricing-slider-card {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  padding: 2rem 2.25rem 2rem;
}

.pricing-slider-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.pricing-slider-volume-label,
.pricing-slider-price-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 0.25rem;
}

.pricing-slider-volume-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--foreground);
  line-height: 1.1;
}

.pricing-slider-price-block { text-align: right; }

.pricing-slider-price-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, hsl(172, 56%, 40%), hsl(252, 50%, 55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.pricing-slider-price-sub {
  font-size: 0.8rem;
  color: var(--muted-fg);
  margin-top: 0.2rem;
}

/* Range slider track */
.pricing-slider-track-wrap {
  margin-bottom: 2rem;
}

.pricing-slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(
    to right,
    hsl(172, 56%, 40%) 0%,
    hsl(172, 56%, 40%) var(--fill, 14.28%),
    var(--muted) var(--fill, 14.28%),
    var(--muted) 100%
  );
  outline: none;
  cursor: pointer;
  margin-bottom: 0.625rem;
}

.pricing-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid hsl(172, 56%, 40%);
  box-shadow: 0 1px 4px hsl(172 56% 40% / 0.3);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.pricing-slider-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid hsl(172, 56%, 40%);
  box-shadow: 0 1px 4px hsl(172 56% 40% / 0.3);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.pricing-slider-input:hover::-webkit-slider-thumb,
.pricing-slider-input:focus::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 2px 10px hsl(172 56% 40% / 0.4);
}

.pricing-slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted-fg);
  padding: 0 2px;
}

/* Includes list */
.pricing-slider-includes {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.pricing-slider-includes-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 0.75rem;
}

.pricing-slider-includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.pricing-slider-includes-list li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.pricing-slider-includes-list li svg {
  color: hsl(172, 56%, 40%);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .pricing-slider-card { padding: 1.5rem 1.25rem; }
  .pricing-slider-top { flex-direction: column; gap: 0.75rem; }
  .pricing-slider-price-block { text-align: left; }
  .pricing-slider-ticks { font-size: 0.6rem; }
}
/* ── end credit-slider section ──────────────────────────────────────── */

.pricing-modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 920px;
  margin: 0 auto;
}

.pricing-module-card {
  display: flex;
  gap: 1.125rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  transition: border-color 0.15s;
}

.pricing-module-card:hover {
  border-color: hsl(172 56% 40% / 0.4);
}

.pricing-module-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  background: hsl(172 56% 40% / 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.pricing-module-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-module-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.pricing-module-header h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: var(--foreground);
}

.pricing-module-sub {
  font-size: 0.8rem;
  color: var(--muted-fg);
  margin: 0;
}

.pricing-module-price {
  text-align: right;
  flex-shrink: 0;
}

.pricing-module-price span {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.pricing-module-price small {
  font-size: 0.75rem;
  color: var(--muted-fg);
  white-space: nowrap;
}

.pricing-module-body > p {
  font-size: 0.8375rem;
  color: var(--muted-fg);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 720px) {
  .pricing-modules-grid { grid-template-columns: 1fr; }
  .pricing-module-header { flex-direction: column; gap: 0.5rem; }
  .pricing-module-price { text-align: left; }
}

.pricing-card-header {
  text-align: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.pricing-price {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0.375rem;
  color: var(--foreground);
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted-fg);
  letter-spacing: 0;
}

.pricing-card-header p {
  color: var(--muted-fg);
  font-size: 0.9rem;
  margin: 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--foreground);
}

.pricing-features li svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Rate limits table */
.pricing-limits-section {
  margin-bottom: 4rem;
}

.pricing-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--card);
}

.pricing-table thead tr {
  background: hsl(214, 20%, 97%);
  border-bottom: 1px solid var(--border);
}

.pricing-table th {
  padding: 0.875rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pricing-table td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody tr:hover {
  background: hsl(172, 56%, 40%, 0.04);
  transition: background 0.15s;
}

.pricing-api-name {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.pricing-api-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: hsl(172, 56%, 40%, 0.08);
  color: var(--primary);
  flex-shrink: 0;
}

.pricing-api-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.pricing-api-link {
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.9rem;
}

.pricing-api-link:hover {
  color: var(--primary);
}

.pricing-api-tagline {
  font-size: 0.8rem;
  color: var(--muted-fg);
  margin-top: 0.125rem;
}

.pricing-limit {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.pricing-limit--premium {
  color: hsl(43 80% 36%);
}

.pricing-limit span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted-fg);
}

.badge-tag {
  background: hsl(214, 20%, 94%);
  color: var(--muted-fg);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 0.75rem;
}

/* FAQ */
.pricing-faq {
  margin-bottom: 2rem;
}

.pricing-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.pricing-faq-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.pricing-faq-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--foreground);
}

.pricing-faq-item p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.65;
  margin: 0;
}

.pricing-faq-item code {
  font-family: var(--font-mono);
  font-size: 0.8em;
  background: hsl(214, 20%, 94%);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  color: var(--foreground);
}

/* Responsive */
@media (max-width: 768px) {
  .pricing-faq-grid { grid-template-columns: 1fr; }
  .pricing-table th:nth-child(2),
  .pricing-table td:nth-child(2) { display: none; }
  .pricing-card-wrap--two { flex-direction: column; align-items: center; }
  .pricing-card-wrap--two .pricing-card { max-width: 480px; }
  .pricing-card-wrap--three { flex-direction: column; align-items: center; }
  .pricing-card-wrap--three .pricing-card { max-width: 480px; }
  .pricing-card-wrap--four { flex-direction: column; align-items: center; }
  .pricing-card-wrap--four .pricing-card { max-width: 480px; }
}

@media (max-width: 480px) {
  .pricing-card { padding: 1.5rem 1.25rem; }
  .pricing-price { font-size: 2.25rem; }
  .pricing-table th:nth-child(3),
  .pricing-table td:nth-child(3) { display: none; }
}

/* ── API Page Section Nav ─────────────────────────────────────────── */
.api-section-nav {
  position: sticky;
  top: 4rem;
  z-index: 40;
  display: flex;
  align-items: stretch;
  margin: 1.25rem -1.5rem 10px;
  padding: 0 0.25rem;
  background: hsl(210 20% 98% / 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.api-section-nav::-webkit-scrollbar { display: none; }

.api-section-nav__item {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-fg);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.api-section-nav__item:hover { color: var(--foreground); }

.api-section-nav__item.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

@media (max-width: 640px) {
  .api-section-nav { margin: 1rem -1rem 0; }
}

/* ══════════════════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════════════════ */
.newsletter { padding: 5rem 0; }

.newsletter-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem 3rem;
}

.newsletter-text h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.newsletter-text p {
  color: var(--muted-fg);
  line-height: 1.65;
  max-width: 42ch;
}

.newsletter-form { flex-shrink: 0; }

.newsletter-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.newsletter-input-group .btn {
  align-self: stretch;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  white-space: nowrap;
}

.newsletter-input {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
  width: 17rem;
  transition: border-color 0.15s;
}

.newsletter-input::placeholder { color: var(--muted-fg); }
.newsletter-input:focus { outline: none; border-color: var(--accent); }
.newsletter-input.is-invalid { border-color: hsl(0, 72%, 51%); }

.newsletter-error {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: hsl(0, 72%, 51%);
}

.newsletter-feedback {
  font-size: 0.875rem;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
}

.newsletter-feedback--success {
  background: hsl(142, 50%, 15%);
  color: hsl(142, 60%, 65%);
  border: 1px solid hsl(142, 40%, 30%);
}

.newsletter-feedback--info {
  background: var(--surface);
  color: var(--muted-fg);
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  .newsletter-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
  }

  .newsletter-input { width: 100%; }

  .newsletter-input-group {
    flex-direction: column;
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════
   API REQUEST BLOCK
══════════════════════════════════════════════════ */
.api-request-block {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.api-request-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.api-request-text h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.api-request-text p {
  color: var(--muted-fg);
  line-height: 1.65;
}

.api-request-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-fg);
}

.api-request-input {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
  width: 100%;
  transition: border-color 0.15s;
  resize: vertical;
}

.api-request-input::placeholder { color: var(--muted-fg); }
.api-request-input:focus { outline: none; border-color: var(--accent); }
.api-request-input.is-invalid { border-color: hsl(0, 72%, 51%); }

.api-request-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.api-request-footer .btn {
  padding: 0.65rem 1.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.api-request-note {
  font-size: 0.775rem;
  color: var(--muted-fg);
  line-height: 1.5;
  max-width: 32ch;
}

@media (max-width: 768px) {
  .api-request-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .api-request-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ══════════════════════════════════════════════════
   LEGAL PAGE
══════════════════════════════════════════════════ */
.legal-wrap {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 0;
}

/* Sticky inhoudsopgave */
.legal-toc {
  position: sticky;
  top: 5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}

.legal-toc-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  margin-bottom: 0.75rem;
}

.legal-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-toc a {
  font-size: 0.85rem;
  color: var(--muted-fg);
  text-decoration: none;
  transition: color 0.15s;
}

.legal-toc a:hover { color: var(--foreground); }

/* Content */
.legal-content {
  max-width: 68ch;
  padding-bottom: 4rem;
}

.legal-section { margin-bottom: 0; }

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.legal-meta {
  font-size: 0.8rem;
  color: var(--muted-fg);
  margin-bottom: 2rem;
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

.legal-section p,
.legal-section li {
  color: var(--muted-fg);
  line-height: 1.75;
  font-size: 0.9375rem;
}

.legal-section ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.legal-section a {
  color: var(--accent);
  text-decoration: none;
}

.legal-section a:hover { text-decoration: underline; }

.legal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

@media (max-width: 768px) {
  .legal-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-toc { position: static; }
}

/* ═══════════════════════════════════════════════════════════════════
   LANDING PAGES — blok-styles
   ═══════════════════════════════════════════════════════════════════ */

/* ── Wrapper ──────────────────────────────────────────── */
.landing-page { width: 100%; }

.landing-template--wide .container { max-width: 80rem; }
.landing-template--docs .container { max-width: 52rem; }

/* ── Gedeelde sectie-spacing ──────────────────────────── */
.landing-page section {
  padding: 4rem 0;
}

/* ── Hero (landing variant) ───────────────────────────── */
/* Hero--landing erfde van .hero de grid+gradient bg, maar de overrides
   verwijderden die. Hier herstellen we de look, passen we de maten aan
   en voegen we split-layout en badge toe. */
.hero--landing {
  /* Overschrijf de min-height van de homepage-hero */
  min-height: 0;
  padding: 6rem 0 4rem;    /* ruimte voor sticky nav (4rem) + eigen padding */
  text-align: center;
}

/* Gecombineerd layout: de hero heeft twee stijlen */
.hero--landing .hero-inner {
  max-width: 52rem;
  padding: 0;
}

.hero--landing h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero--landing p {
  font-size: 1rem;
  color: var(--muted-fg);
  max-width: 42rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ── Twee-koloms split variant ── */
.hero--landing.hero--split {
  text-align: left;
}

.hero--landing.hero--split .hero-inner {
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero--landing.hero--split .hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

}

.hero--landing.hero--split p {
  margin: 0 0 2rem;
}

.hero--landing.hero--split .hero-actions {
  justify-content: flex-start;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Connectie-diagram (split hero) */
.connect-diagram {
  width: 100%;
  max-width: 22rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem 1.5rem;
  box-shadow: 0 1px 3px hsl(220 20% 10% / 0.04), 0 8px 40px -8px hsl(172 56% 40% / 0.12);
}

.cdiag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.cdiag-row:last-child { margin-bottom: 0; }

.cdiag-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  background: var(--secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--muted-fg);
  letter-spacing: 0.03em;
}

.cdiag-line {
  flex: 1;
  height: 2px;
  border-top: 2px dashed color-mix(in srgb, var(--primary) 35%, transparent);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.5rem;
}

.cdiag-line--accent {
  border-top-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.cdiag-zap {
  position: absolute;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cdiag-line--accent .cdiag-zap { background: var(--accent); }

.cdiag-zap svg { width: 0.75rem; height: 0.75rem; stroke: white; }

@media (max-width: 900px) {
  .hero--landing.hero--split .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual { margin-top: 2rem; }
}

@media (max-width: 600px) {
  .hero--landing { padding: 5rem 0 3rem; }
}

/* ── Service Hero (layout = service) ──────────────────── */
.service-hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, hsl(172 56% 40% / 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%,  hsl(252 50% 55% / 0.04), transparent),
    linear-gradient(hsl(214 18% 88% / 0.6) 1px, transparent 1px),
    linear-gradient(90deg, hsl(214 18% 88% / 0.6) 1px, transparent 1px);
  background-size: auto, auto, 60px 60px, 60px 60px;
  background-color: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-subtext {
  max-width: 32rem;
  color: var(--muted-fg);
  font-size: 1.125rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* Connect card (service hero right column) */
.connect-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
  box-shadow: 0 1px 3px hsl(220 20% 10% / 0.04), 0 8px 24px -8px hsl(172 56% 40% / 0.10);
}

.connect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.connect-row:last-child { margin-bottom: 0; }

.connect-node {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.connect-node span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-fg);
}

.connect-line {
  flex: 1;
  margin: 0 1rem;
  border-top: 2px dashed hsl(172 56% 40% / 0.3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.connect-line.accent {
  border-top-color: hsl(252 50% 55% / 0.3);
}
.connect-line svg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
}
.connect-line.accent svg { color: var(--accent); }

/* Partner bar (service hero) */
.partner-bar {
  margin-top: 4rem;
}
.partner-bar-inner {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: hsl(0 0% 100% / 0.6);
  backdrop-filter: blur(12px);
  padding: 1.25rem 2rem;
}
.partner-bar-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  margin-bottom: 1rem;
}
.partner-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.partner-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(215 10% 60%);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .service-hero { padding: 4rem 0 3rem; }
}

/* ── Content (vrije HTML) ─────────────────────────────── */
.section-content {
  padding: 0 0 3rem 0;
}

.container--prose {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.container--prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
}

.container--prose h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--fg);
}

.container--prose p {
  line-height: 1.8;
  color: var(--muted-fg);
  margin-bottom: 1.25rem;
}

.container--prose ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
  color: var(--muted-fg);
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.container--prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--muted-fg);
  line-height: 1.8;
}

.container--prose ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0;
}

.container--prose ul li strong { 
    width: fit-content;
    display: contents;
}

.container--prose ul li::before {
  content: '';
  display: block;
  width: 1rem;
  height: 1rem;
  margin-top: 0.3rem;
  flex-shrink: 0;
  background-color: var(--primary);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.container--prose ol li { margin-bottom: 0.4rem; }

.container--prose a {
  color: var(--primary);
  text-decoration: underline;
}

.container--prose blockquote {
  border-left: 2px solid color-mix(in srgb, var(--primary) 40%, transparent);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 2rem 0;
  background: none;
  border-radius: 0;
  color: var(--muted-fg);
  font-style: italic;
  line-height: 1.75;
}

.container--prose blockquote p {
  margin-bottom: 0;
}

.container--prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  background: var(--secondary);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

.container--prose pre {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.container--prose pre code {
  background: none;
  padding: 0;
}

.container--prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.container--prose th {
  text-align: left;
  padding: 0.625rem 1rem;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-fg);
}

.container--prose td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted-fg);
}

/* ── Vergelijkingstabel ───────────────────────────────── */
.section-comparison { padding: 4rem 0; }

.section-comparison h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.comparison-table th {
  text-align: left;
  padding: 0.875rem 1.25rem;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-fg);
  white-space: nowrap;
}

.comparison-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted-fg);
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table tbody tr:hover { background: var(--secondary); }

/* ── FAQ (landing variant) ─── card-accordion ────────── */
.section-faq { padding: 4rem 0; }

/* Section heading */
.section-heading {
  margin-bottom: 2.5rem;
}
.section-heading h2 {
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.section-heading p {
  color: var(--muted-fg);
  max-width: 42rem;
  line-height: 1.7;
}

/* Old generic .section-faq h2 kept for compat */
.section-faq > .container > h2 {
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
}

/* Accordion container */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Override global border-based faq-item inside a landing section */
.section-faq .faq-item {
  border-top: none !important;
  border-bottom: none !important;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: var(--card, var(--bg));
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.section-faq .faq-item.is-open {
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--primary) 8%, transparent),
    0 4px 20px -4px color-mix(in srgb, var(--primary) 14%, transparent);
}

.section-faq .faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.5;
  transition: color 0.15s;
}

.section-faq .faq-question:hover { color: var(--primary); }

.faq-chevron {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: var(--muted-fg);
  transition: transform 0.25s ease;
}
.section-faq .faq-item.is-open .faq-chevron { transform: rotate(180deg); }

.section-faq .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.section-faq .faq-item.is-open .faq-answer { grid-template-rows: 1fr; }

.faq-answer-inner {
  overflow: hidden;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted-fg);
  line-height: 1.7;
}
.faq-answer-inner p { margin: 0; }

/* ── How-to stappen ───────────────────────────────────── */
.section-how-to { padding: 4rem 0; }

.section-how-to h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.how-to-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.how-to-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: #000;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.step-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.step-body p {
  color: var(--muted-fg);
  line-height: 1.7;
  margin: 0;
}

/* ── Use cases grid ───────────────────────────────────── */
.section-use-cases { padding: 4rem 0; }

.section-use-cases h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.use-case-card {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.use-case-card:hover { border-color: var(--primary); }

.use-case-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.use-case-card p {
  font-size: 0.9375rem;
  color: var(--muted-fg);
  line-height: 1.6;
  margin: 0;
}

/* ── Playground ───────────────────────────────────────── */
.section-playground { padding: 4rem 0; }

.playground-wrapper {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}

.playground-header { margin-bottom: 1.5rem; }

.playground-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.playground-limit-notice {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.playground-limit-notice a {
  color: var(--primary);
  text-decoration: underline;
}

.playground-coming-soon {
  border: 1px dashed var(--border);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  color: var(--muted-fg);
  font-size: 0.9375rem;
}

/* ── Interne links ────────────────────────────────────── */
.section-internal-links { padding: 4rem 0; }

.section-internal-links h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.internal-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
}

.internal-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.25rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.internal-link-card:hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, var(--secondary));
}

.internal-link-card .link-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--fg);
}

.internal-link-card .link-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.5;
}

/* ── CTA banner ───────────────────────────────────────── */
.section-cta { padding: 4rem 0; }

.cta-banner {
  background: var(--card, var(--bg));
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--primary) 8%, transparent),
    0 8px 40px -8px color-mix(in srgb, var(--primary) 16%, transparent);
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--muted-fg);
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* ── Responsive aanpassingen ──────────────────────────── */
@media (max-width: 768px) {
  .landing-page section { padding: 2.5rem 0; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .internal-links-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 2rem 1.25rem; }
  .how-to-step { gap: 1rem; }
}

@media (max-width: 480px) {
  .internal-links-grid { grid-template-columns: 1fr; }
}

/* ── Twee-koloms layout met sidebar (LINKS) ───────────── */
.landing-with-sidebar {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 3rem;
  align-items: start;
  max-width: var(--container-width, 80rem);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.landing-main {
  min-width: 0;
}

.landing-sidebar {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Sidebar: sectielabel ─────────────────────────── */
.sidebar-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  margin: 0 0 0.625rem;
}

/* ── Sidebar: navigatielinks ──────────────────────── */
.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--muted-fg);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.sidebar-nav-link:hover { background: var(--secondary); color: var(--fg); }
.sidebar-nav-link svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ── Sidebar: scheidingslijn ──────────────────────── */
.sidebar-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ── Sidebar: gerelateerde pagina's (related-link) ── */
.related-pages-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.related-link {
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.related-link:hover {
  box-shadow: 0 1px 3px hsl(220 20% 10% / 0.04), 0 8px 24px -8px hsl(172 56% 40% / 0.1);
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
}

.related-link-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 0.2rem;
  transition: color 0.15s;
}
.related-link:hover .related-link-title { color: var(--primary); }

.related-link-title svg {
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0;
  transition: opacity 0.15s;
}
.related-link:hover .related-link-title svg { opacity: 1; }

.related-link-desc {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin: 0;
  line-height: 1.5;
}

/* Sidebar badge (nieuw / populair / etc.) */
.sidebar-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.sidebar-badge--new     { background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); }
.sidebar-badge--popular { background: rgba(251, 146, 60, 0.15); color: rgb(234, 88, 12); }
.sidebar-badge--guide   { background: rgba(99, 102, 241, 0.15); color: rgb(99, 102, 241); }
.sidebar-badge--tool    { background: rgba(20, 184, 166, 0.15); color: rgb(15, 118, 110); }

/* ── Sidebar: CTA / hulp widget ───────────────────── */
.sidebar-cta {
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  padding: 1rem;
}

.sidebar-cta-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 0.25rem;
}

.sidebar-cta-desc {
  font-size: 0.75rem;
  color: var(--muted-fg);
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

/* ── Logo Slider ──────────────────────────────────── */
.section-logo-slider {
  padding: 3rem 0;
  overflow: hidden;
}

.logo-slider-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-slider-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
}

.logo-slider-header p {
  font-size: 0.9375rem;
  color: var(--muted-fg);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* Scrollende rij met masker op de zijkanten */
.logo-track-wrap {
  display: flex;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  gap: 0;
}

.logo-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2.5rem;
  padding: 0.5rem 0;
  animation: logoScroll 28s linear infinite;
  will-change: transform;
}

/* Tweede track start direct na de eerste zodat de animatie naadloos loopt */
.logo-track:nth-child(2) {
  animation-delay: -14s;
}

@keyframes logoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* Pauzeer animatie bij hover of prefers-reduced-motion */
.logo-track-wrap:hover .logo-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
  .logo-track-wrap {
    flex-wrap: wrap;
    -webkit-mask-image: none;
    mask-image: none;
    gap: 1.5rem;
    justify-content: center;
  }
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--secondary);
  text-decoration: none;
  transition: border-color 0.2s, opacity 0.2s, transform 0.2s;
  min-width: 8rem;
}

a.logo-item:hover {
  border-color: var(--primary);
  opacity: 1;
  transform: translateY(-2px);
}

.logo-item img {
  height: 2rem;
  width: auto;
  max-width: 7rem;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
}

a.logo-item:hover img,
.logo-item:hover img {
  opacity: 1;
  filter: grayscale(0);
}

/* Logo slider fallback: tekst-namen bar */
.logo-slider-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  margin-bottom: 1.25rem;
}

.logo-partner-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.25rem 2rem;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: color-mix(in srgb, var(--card, var(--bg)) 60%, transparent);
}

.logo-partner-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--muted-fg) 70%, transparent);
}

.logo-name-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-fg);
}

/* ── Plan Picker (registratiepagina) ───────────────────────────────── */
.auth-card--wide {
  max-width: 640px;
}

.plan-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.plan-picker__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-picker__label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  background: var(--card);
  user-select: none;
}

.plan-picker__label:hover {
  border-color: var(--primary);
  background: hsl(var(--primary-hsl, 221 83% 53%) / 0.04);
}

.plan-picker__input:checked + .plan-picker__label {
  border-color: var(--primary);
  background: hsl(var(--primary-hsl, 221 83% 53%) / 0.06);
  box-shadow: 0 0 0 1px var(--primary);
}

.plan-picker__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.plan-picker__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.plan-picker__price {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--foreground);
  white-space: nowrap;
}

.plan-picker__credits {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

@media (max-width: 520px) {
  .plan-picker { grid-template-columns: 1fr 1fr; }
  .auth-card--wide { max-width: 420px; }
}

@media (max-width: 380px) {
  .plan-picker { grid-template-columns: 1fr; }
}

/* ── Icon Cards (voordelen / features) ──────────── */
.section-icon-cards {
  padding: 4rem 0;
}

.section-icon-cards--accent {
  background: var(--secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}

.section-icon-cards .section-heading {
  text-align: left;
  margin-bottom: 2.5rem;
  max-width: 44rem;
}

.section-icon-cards .section-heading h2 {
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.section-icon-cards .section-heading p {
  color: var(--muted-fg);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.icon-cards-grid {
  display: grid;
  gap: 1.5rem;
}

.icon-cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.icon-cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.icon-cards-grid--4 { grid-template-columns: repeat(4, 1fr); }

.icon-card {
  background: var(--card-bg, var(--secondary));
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.section-icon-cards--accent .icon-card {
  background: var(--bg);
}

.icon-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 8%, transparent);
  transform: translateY(-2px);
}

.icon-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  background: color-mix(in srgb, var(--primary) 10%, var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  transition: background 0.2s;
}

.icon-card:hover .icon-card__icon {
  background: color-mix(in srgb, var(--primary) 18%, var(--secondary));
}

.icon-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.icon-card p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 768px) {
  .icon-cards-grid--3,
  .icon-cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .icon-cards-grid--2,
  .icon-cards-grid--3,
  .icon-cards-grid--4 { grid-template-columns: 1fr; }
}

/* ── Werkwijze (proces-stappen) ───────────────────── */
.section-werkwijze { padding: 4rem 0; }

.section-werkwijze .section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-werkwijze .section-heading h2 {
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-werkwijze .section-heading p {
  color: var(--muted-fg);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.7;
}

.werkwijze-grid {
  display: grid;
  gap: 1.5rem;
  position: relative;
}

.section-werkwijze--horizontal .werkwijze-grid {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  align-items: start;
}

.section-werkwijze--vertical .werkwijze-grid {
  grid-template-columns: 1fr;
  max-width: 44rem;
  margin: 0 auto;
  gap: 0;
}

.werkwijze-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  position: relative;
  padding: 1.75rem 1.25rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: border-color 0.2s, transform 0.2s;
}

.werkwijze-step:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.section-werkwijze--vertical .werkwijze-step {
  flex-direction: row;
  text-align: left;
  align-items: flex-start;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.section-werkwijze--vertical .werkwijze-step:last-child { margin-bottom: 0; }

.werkwijze-icon-wrap {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 12%, var(--secondary));
  border: 2px solid color-mix(in srgb, var(--primary) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.werkwijze-step:hover .werkwijze-icon-wrap {
  background: color-mix(in srgb, var(--primary) 20%, var(--secondary));
  border-color: var(--primary);
}

.werkwijze-emoji { font-size: 1.5rem; line-height: 1; }

.werkwijze-number {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
}

.werkwijze-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  line-height: 1.4;
}

.werkwijze-body p {
  font-size: 0.9375rem;
  color: var(--muted-fg);
  line-height: 1.65;
  margin: 0;
}

/* Pijl tussen horizontale stappen */
.section-werkwijze--horizontal .werkwijze-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 2.25rem;
  right: -1rem;
  font-size: 1rem;
  color: var(--muted-fg);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .section-werkwijze--horizontal .werkwijze-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section-werkwijze--horizontal .werkwijze-step::after { display: none; }
}

@media (max-width: 480px) {
  .section-werkwijze--horizontal .werkwijze-grid { grid-template-columns: 1fr; }
  .section-werkwijze--vertical .werkwijze-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ── Werkwijze: timeline variant ────────────────── */
.werkwijze-timeline {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.wt-step {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 1.25rem;
  position: relative;
}

.wt-circle {
  grid-column: 1;
  grid-row: 1;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  flex-shrink: 0;
  position: relative;
}

.wt-num {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
}

.wt-body {
  grid-column: 2;
  grid-row: 1 / 3;
  padding-bottom: 2.5rem;
  padding-top: 0.2rem;
}

.wt-step:last-child .wt-body {
  padding-bottom: 0;
}

.wt-line {
  grid-column: 1;
  width: 1px;
  background: var(--border);
  margin: 0 auto;
}

.wt-line--top  { grid-row: 0; height: 0; } /* not used - line is bottom of previous */
.wt-line--bottom {
  grid-row: 2;
  height: 100%;
  min-height: 1.5rem;
}

.wt-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.2rem;
  font-family: 'JetBrains Mono', monospace;
}

.wt-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  line-height: 1.35;
}

.wt-body p {
  font-size: 0.9rem;
  color: var(--muted-fg);
  line-height: 1.65;
  margin: 0;
}

/* ── Hero: partner bar ────────────────────────────── */
.hero-partner-bar {
  margin-top: 3rem;
}

.hero-partner-bar-inner {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card, white) 60%, transparent);
  backdrop-filter: blur(12px);
  padding: 1.25rem 2rem;
}

.hero-partner-bar-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  margin: 0 0 0.875rem;
}

.hero-partner-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.hero-partner-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--muted-fg) 70%, transparent);
}

/* ── Sidebar: responsive ──────────────────────────── */
@media (max-width: 1024px) {
  .landing-with-sidebar {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .landing-sidebar {
    position: static;
    display: none; /* verberg sidebar op mobiel/tablet */
  }
}

@media (max-width: 768px) {
  .hero-partner-bar-inner { padding: 1rem; }
  .hero-partner-list { gap: 1.25rem; }
}


/* ══════════════════════════════════════════════
   PLAYGROUND PAGES
   ══════════════════════════════════════════════ */

/* ── Hero ── */
.pg-hero {
  padding: 2.5rem 0 2rem;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.pg-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted-fg);
  margin-bottom: 1.25rem;
}
.pg-hero-breadcrumb a { color: var(--muted-fg); text-decoration: none; }
.pg-hero-breadcrumb a:hover { color: var(--primary); }
.pg-hero-breadcrumb span { opacity: 0.5; }
.pg-hero-inner { max-width: 640px; }
.pg-hero-text h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0.75rem 0 1rem; line-height: 1.15; }
.pg-hero-text p { color: var(--muted-fg); font-size: 1.05rem; line-height: 1.65; margin-bottom: 1.25rem; }
.pg-hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pg-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary);
  background: hsl(172 56% 40% / 0.08);
  border: 1px solid hsl(172 56% 40% / 0.2);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

/* ── Tool section ── */
.pg-tool-section { padding: 2.5rem 0; }
.pg-tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 760px;
}

/* ── Form card ── */
.pg-form-card { padding: 1.75rem; }
.pg-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pg-form-header h2 { font-size: 1.1rem; font-weight: 600; margin: 0; }
.pg-remaining-badge {
  font-size: 0.75rem;
  color: var(--muted-fg);
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  white-space: nowrap;
}
.pg-remaining-badge span { font-weight: 700; color: var(--primary); }
.pg-form-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.pg-field { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; min-width: 160px; }
.pg-field-sm { flex: 0 0 120px; min-width: 100px; }
.pg-field label { font-size: 0.8rem; font-weight: 600; color: var(--foreground); }
.pg-optional { font-weight: 400; color: var(--muted-fg); }
.pg-input {
  width: 100%;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  color: var(--foreground);
  font-family: inherit;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.pg-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px hsl(172 56% 40% / 0.12); }
.pg-input-mono { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; }
.pg-field-hint { font-size: 0.73rem; color: var(--muted-fg); }
.pg-submit { width: 100%; justify-content: center; }
.pg-btn-label, .pg-btn-loading { display: flex; align-items: center; gap: 0.4rem; }
.pg-spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: pg-spin 0.6s linear infinite;
}
@keyframes pg-spin { to { transform: rotate(360deg); } }

/* ── Result card ── */
.pg-result-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-color: hsl(172 56% 40% / 0.3);
}
.pg-result-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.pg-result-header h3 { margin: 0; font-size: 1.05rem; font-family: 'JetBrains Mono', monospace; }
.pg-result-badge {
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pg-result-badge--found { background: hsl(172 56% 40% / 0.12); color: var(--primary); border: 1px solid hsl(172 56% 40% / 0.25); }
.pg-result-badge--not-found { background: hsl(0 72% 51% / 0.08); color: hsl(0 72% 51%); border: 1px solid hsl(0 72% 51% / 0.2); }

.pg-result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.pg-stat { display: flex; flex-direction: column; gap: 0.2rem; }
.pg-stat-label { font-size: 0.7rem; font-weight: 600; color: var(--muted-fg); text-transform: uppercase; letter-spacing: 0.06em; }
.pg-stat-value { font-size: 0.9rem; font-weight: 500; color: var(--foreground); font-family: 'JetBrains Mono', monospace; }
.pg-result-footer { border-top: 1px solid var(--border); padding-top: 1rem; }
.pg-result-api-link { font-size: 0.82rem; color: var(--primary); text-decoration: none; font-weight: 500; }
.pg-result-api-link:hover { text-decoration: underline; }

/* IP result: ISP banner */
.pg-isp-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--secondary);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}
.pg-isp-icon { color: var(--primary); flex-shrink: 0; }
.pg-isp-info { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; min-width: 0; }
.pg-isp-name { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-isp-org { font-size: 0.78rem; color: var(--muted-fg); font-family: 'JetBrains Mono', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-hosting-pill {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  background: hsl(252 50% 55% / 0.1);
  color: hsl(252 50% 65%);
  border: 1px solid hsl(252 50% 55% / 0.25);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}

/* ── Error card ── */
.pg-error-card {
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-color: hsl(0 72% 51% / 0.25);
}
.pg-error-icon { color: hsl(0 72% 51%); flex-shrink: 0; }
.pg-error-card p { margin: 0; font-size: 0.9rem; color: var(--foreground); }

/* ── Rate limit banner ── */
.pg-rate-limit-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: hsl(38 92% 50% / 0.06);
  border: 1px solid hsl(38 92% 50% / 0.25);
  border-radius: 0.5rem;
}
.pg-rate-limit-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.pg-rate-limit-icon { color: hsl(38 92% 50%); flex-shrink: 0; }
.pg-rate-limit-content { flex: 1; min-width: 200px; }
.pg-rate-limit-content strong { display: block; font-size: 0.9rem; margin-bottom: 0.25rem; }
.pg-rate-limit-content p { font-size: 0.8rem; color: var(--muted-fg); margin: 0; line-height: 1.5; }

/* ── SEO section ── */
.pg-seo-section { padding: 3rem 0 4rem; border-top: 1px solid var(--border); }
.pg-seo-grid { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.pg-seo-article h2 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 0.6rem; }
.pg-seo-article h2:first-child { margin-top: 0; }
.pg-seo-article p { color: var(--muted-fg); line-height: 1.7; font-size: 0.9rem; margin: 0 0 0.75rem; }
.pg-seo-article ul { color: var(--muted-fg); font-size: 0.9rem; line-height: 1.7; padding-left: 1.25rem; margin: 0 0 0.75rem; }
.pg-seo-article li { margin-bottom: 0.35rem; }
.pg-code-block {
  background: hsl(220 20% 8%);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  color: hsl(172 56% 75%);
  margin: 0.5rem 0 0.75rem;
}
.pg-seo-aside { display: flex; flex-direction: column; gap: 1.25rem; }
.pg-cta-card { padding: 1.5rem; }
.pg-cta-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; }
.pg-cta-card p { font-size: 0.85rem; color: var(--muted-fg); margin: 0 0 1rem; line-height: 1.6; }
.pg-cta-list { list-style: none; padding: 0; margin: 0 0 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; }
.pg-cta-list li { font-size: 0.82rem; color: var(--muted-fg); }
.pg-other-tools-card { padding: 1.25rem 1.5rem; }
.pg-other-tools-card h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-fg); margin: 0 0 0.75rem; }
.pg-tool-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.pg-tool-list li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--foreground);
  text-decoration: none;
  padding: 0.35rem 0;
}
.pg-tool-list li a:hover { color: var(--primary); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .pg-seo-grid { grid-template-columns: 1fr; }
  .pg-seo-aside { order: -1; }
}
@media (max-width: 600px) {
  .pg-form-card, .pg-result-card { padding: 1.25rem; }
  .pg-field-sm { flex: 1 1 100%; }
}

/* ────────────────────────────────────────────────
   RESPONSE FIELDS TABLE
───────────────────────────────────────────────── */
.response-fields-table-wrap {
  overflow-x: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}
.response-fields-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.response-fields-table thead th {
  background: var(--secondary);
  color: var(--muted-fg);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.6rem 0.875rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.response-fields-table tbody tr {
  border-bottom: 1px solid var(--border);
}
.response-fields-table tbody tr:last-child {
  border-bottom: none;
}
.response-fields-table tbody tr:hover {
  background: var(--secondary);
}
.response-fields-table td {
  padding: 0.625rem 0.875rem;
  vertical-align: middle;
}
.response-field-name {
  white-space: nowrap;
}
.response-field-name code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--foreground);
  background: var(--secondary);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  border: 1px solid var(--border);
}
.response-field-tree {
  color: var(--muted-fg);
  font-size: 0.8rem;
  margin-right: 0.15rem;
}
.response-field-depth-1 td:first-child { background: hsl(var(--secondary-hsl, 240 5% 96%) / 0.4); }
.response-field-type { white-space: nowrap; }
.response-type-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.1em 0.4em;
  border-radius: 0.25rem;
  margin-right: 0.2rem;
}
.response-type-badge--string  { background: hsl(172 56% 40% / 0.1); color: hsl(172 56% 30%); border: 1px solid hsl(172 56% 40% / 0.25); }
.response-type-badge--integer,
.response-type-badge--number  { background: hsl(220 90% 55% / 0.1); color: hsl(220 90% 40%); border: 1px solid hsl(220 90% 55% / 0.25); }
.response-type-badge--boolean { background: hsl(43 96% 56% / 0.1);  color: hsl(43 80% 36%);  border: 1px solid hsl(43 96% 56% / 0.3); }
.response-type-badge--object  { background: hsl(280 60% 55% / 0.1); color: hsl(280 60% 40%); border: 1px solid hsl(280 60% 55% / 0.25); }
.response-type-badge--array   { background: hsl(25 95% 55% / 0.1);  color: hsl(25 80% 35%);  border: 1px solid hsl(25 95% 55% / 0.25); }
.response-type-badge--null    { background: transparent; color: var(--muted-fg); border: 1px solid var(--border); }
.response-field-required { white-space: nowrap; }
.response-field-desc { color: var(--muted-fg); line-height: 1.5; }

/* ── Limits & costs table ─────────────────────── */
.limits-table-wrap {
  overflow-x: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.limits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.limits-table thead th {
  background: var(--secondary);
  color: var(--muted-fg);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.6rem 0.875rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.limits-table tbody tr {
  border-bottom: 1px solid var(--border);
}
.limits-table tbody tr:last-child {
  border-bottom: none;
}
.limits-table tbody tr:hover {
  background: var(--secondary);
}
.limits-table td {
  padding: 0.625rem 0.875rem;
  vertical-align: middle;
}
.limits-note {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  margin-top: 0.5rem;
}
