/* FeedScale brand
 * ────────────────────────────────────────────────────────────────────────
 * 1. Color tokens — cyan blue (atom + RSS mark)
 * 2. Logo mark in header + footer
 * 3. Brand-hero (gradient, code snippet, grid pattern)
 * 4. Buttons on brand background (inverse)
 * 5. Card accents (top/left border)
 * 6. API endpoint rows (Stripe-docs style)
 * 7. Tweaks to bg-dark for the example block
 */

:root {
  --primary: #22B5E8;
  --primary-hover: #1A98C4;
  --primary-soft: #DAF1FB;
  --primary-on-dark: #7DD3F4;
  --brand-deep: #0F5F82;
  --brand-mid: #1A98C4;
}

/* ─── Logo mark (header + footer) ─────────────────────────────────────── */
.site-logo {
  display: inline-flex;
  align-items: center;
  height: 40px;
}
.site-logo img.logo-mark {
  height: 32px;
  width: auto;
  display: block;
}
.site-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.site-footer .footer-logo img.logo-mark {
  height: 32px;
  width: auto;
  display: block;
}

/* ─── Brand hero ─────────────────────────────────────────────────────── */
.hero-brand {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--brand-mid) 55%, var(--brand-deep) 100%);
  color: #fff;
  padding: 6.5rem 0 5.5rem;
  text-align: center;
  overflow: hidden;
}
.hero-brand::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-brand > .container-narrow { position: relative; z-index: 1; }
.hero-brand h1 { color: #fff; max-width: 880px; margin: 0 auto 1.2rem; }
.hero-brand .eyebrow {
  color: #fff;
  background: rgba(255,255,255,0.14);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  margin-bottom: 1.4rem;
}
.hero-brand .lead {
  color: rgba(255,255,255,0.9);
  max-width: 720px; margin: 0 auto 2.2rem;
}
.hero-brand .hero-cta { display: inline-flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
.hero-snippet {
  margin: 2.6rem auto 0;
  max-width: 560px;
  padding: 0.85rem 1.1rem;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.88);
  text-align: left;
  display: flex; align-items: center; gap: 0.6rem;
}
.hero-snippet::before {
  content: '$';
  color: var(--primary-on-dark);
  font-weight: 700;
}

/* Buttons on brand-coloured background */
.btn-on-brand-primary {
  background: #fff; color: var(--primary);
  font-weight: 700;
}
.btn-on-brand-primary:hover {
  background: var(--primary-soft); color: var(--primary-hover);
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.btn-on-brand-secondary {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-on-brand-secondary:hover {
  background: rgba(255,255,255,0.1); border-color: #fff; color: #fff;
}

/* ─── Card accents ────────────────────────────────────────────────────── */
.card-accent-top { border-top: 3px solid var(--primary); }
.card-accent-left { border-left: 3px solid var(--primary); }

/* ─── API endpoint rows (Stripe-docs style) ───────────────────────────── */
.api-rows { display: flex; flex-direction: column; gap: 0.85rem; }
.api-row {
  display: grid;
  grid-template-columns: 70px auto 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 1.1rem 1.3rem;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.api-row:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--primary); }
.api-method {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 0.78rem;
  padding: 0.32rem 0.55rem; border-radius: var(--radius-sm);
  color: #fff; text-align: center;
  letter-spacing: 0.04em;
}
.method-post { background: var(--primary); }
.method-get  { background: #475569; }
.api-path {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--text-main);
  font-size: 1rem;
}
.api-desc { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
@media (max-width: 720px) {
  .api-row { grid-template-columns: auto 1fr; }
  .api-row .api-desc { grid-column: 1 / -1; }
}

/* ─── bg-dark tweaks for the example block ────────────────────────────── */
.code-block-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; font-weight: 600;
  color: var(--primary-on-dark);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.code-block-label::before {
  content: ''; width: 8px; height: 8px; border-radius: 999px;
  background: var(--primary-on-dark);
  box-shadow: 0 0 8px var(--primary-on-dark);
}

/* Ecosystem: make FeedScale node stand out more on the "Powered by" section */
.ecosystem-node.base.brand-anchor {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.ecosystem-node.base.brand-anchor h4 { color: #fff; }
.ecosystem-node.base.brand-anchor p { color: rgba(255,255,255,0.92); }
.ecosystem-node.base.brand-anchor .role { color: rgba(255,255,255,0.88); }

/* Account for sticky header when jumping to #endpoints */
#endpoints { scroll-margin-top: 80px; }
