/* ===========================================================================
   kpime — public blog + marketing pages
   Same design system as the landing page (public/home.html): white/navy on
   the brand blue. The bp-* article classes are shared with public/pages/*,
   so restyling here restyles every migrated marketing page too.
   =========================================================================== */

:root {
  --bp-navy: #14304a;
  --bp-body: #48607a;
  --bp-blue: #2e8fd2;
  --bp-blue-dark: #206ea7;
  --bp-tint: #eef6fc;
  --bp-tint-2: #f7fafd;
  --bp-line: #dfe9f2;
  --bp-muted: #8aa0b4;
}

body {
  background: #fff;
  color: var(--bp-body);
}

.bp-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Nav (mirrors the landing page) ---- */

.bp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bp-line);
}
.bp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.bp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.bp-brand img { width: 30px; height: 30px; }
.bp-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--bp-navy);
  letter-spacing: -0.01em;
}
.bp-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.bp-nav-links a {
  color: var(--bp-navy);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}
.bp-nav-links a:hover { color: var(--bp-blue); }

.bp-btn {
  display: inline-block;
  background: var(--bp-blue);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(46, 143, 210, 0.28);
  transition: background 0.15s ease;
}
.bp-btn:hover { background: var(--bp-blue-dark); }
.bp-btn.big { font-size: 16.5px; padding: 15px 32px; }

/* ---- Index hero ---- */

.bp-hero {
  background: linear-gradient(180deg, #fff 0%, var(--bp-tint) 100%);
  padding: 64px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--bp-line);
}
.bp-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bp-blue);
  margin-bottom: 14px;
}
.bp-kicker a { color: inherit; text-decoration: none; }
.bp-kicker a:hover { text-decoration: underline; }
.bp-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--bp-navy);
  max-width: 16em;
  margin: 0 auto 14px;
}
.bp-lede {
  font-size: 17px;
  line-height: 1.6;
  max-width: 40em;
  margin: 0 auto;
}
/* "66 articles · page 2 of 7" under the hero lede on a paginated index. */
.bp-hero-count {
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bp-muted, #6b7c8c);
}

/* ---- Pagination ---- */
.bp-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 40px 0 8px;
}
.bp-pager-step,
.bp-pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--bp-line);
  border-radius: 10px;
  background: #fff;
  color: var(--bp-navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.bp-pager-step:hover,
.bp-pager-num:hover {
  border-color: var(--bp-blue);
  color: var(--bp-blue);
}
.bp-pager-num.is-current {
  background: var(--bp-navy);
  border-color: var(--bp-navy);
  color: #fff;
}
.bp-pager-step.is-off {
  color: #b3bfc9;
  background: transparent;
  border-color: transparent;
}
.bp-pager-nums {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 6px;
}
.bp-pager-gap {
  color: #9aa8b4;
  padding: 0 2px;
}
@media (max-width: 560px) {
  .bp-pager { gap: 6px; padding-top: 32px; }
  .bp-pager-step { padding: 0 10px; font-size: 13.5px; }
  .bp-pager-nums { margin: 0 2px; }
}

/* ---- Featured post ---- */

.bp-featured-wrap { padding: 46px 0 8px; }
.bp-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 34px rgba(20, 48, 74, 0.07);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.bp-featured:hover {
  box-shadow: 0 18px 46px rgba(20, 48, 74, 0.13);
  transform: translateY(-2px);
}
.bp-featured-media {
  background: var(--bp-tint);
  min-height: 300px;
  overflow: hidden;
}
.bp-featured-media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.bp-featured-body { padding: 34px 36px; align-self: center; }
.bp-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bp-blue);
  background: var(--bp-tint);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}
.bp-featured-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(23px, 2.6vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--bp-navy);
  margin-bottom: 12px;
}
.bp-featured-excerpt {
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* ---- Card grid ---- */

.bp-grid-wrap { padding: 52px 0 8px; }
.bp-grid-head {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--bp-navy);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bp-line);
}
.bp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.bp-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.bp-card:hover {
  box-shadow: 0 14px 34px rgba(20, 48, 74, 0.12);
  transform: translateY(-2px);
}
.bp-card-media {
  aspect-ratio: 16 / 9;
  background: var(--bp-tint);
  overflow: hidden;
}
.bp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Post images are mostly dashboard screenshots — crop from the top so the
     widget's own title stays visible instead of a slice of mid-chart. */
  object-position: center top;
  display: block;
}
.bp-card-media-fallback {
  width: 100%;
  height: 100%;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--bp-blue);
  background: var(--bp-tint);
}
.bp-card-media-fallback span { color: var(--bp-navy); }
.bp-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bp-card-meta {
  font-size: 12.5px;
  color: var(--bp-muted);
  margin-bottom: 8px;
}
.bp-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17.5px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--bp-navy);
  margin-bottom: 8px;
}
.bp-card:hover .bp-card-title { color: var(--bp-blue-dark); }
.bp-card-excerpt {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 14px;
}
.bp-card-more {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bp-blue);
}
.bp-empty { padding: 60px 0; text-align: center; color: var(--bp-muted); }

/* ---- Article ---- */

.bp-article-page { padding-bottom: 20px; }
.bp-article-col { max-width: 760px; }

.bp-article-head {
  background: linear-gradient(180deg, #fff 0%, var(--bp-tint) 100%);
  border-bottom: 1px solid var(--bp-line);
  padding: 48px 0 40px;
  margin-bottom: 40px;
}
.bp-article-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(29px, 4.2vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--bp-navy);
  margin-bottom: 14px;
}
.bp-article-meta,
.bp-article-date {
  font-size: 13.5px;
  color: var(--bp-muted);
}
/* Migrated marketing pages (public/pages/*) use .bp-article-date as an
   eyebrow above the title rather than a byline under it. */
.bp-article-date {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bp-blue);
}

.bp-body {
  font-size: 17px;
  line-height: 1.75;
  color: #33475e;
}
.bp-body h2,
.bp-body h3,
.bp-body h4 {
  font-family: var(--font-display);
  color: var(--bp-navy);
  letter-spacing: -0.018em;
  line-height: 1.25;
}
.bp-body h2 { font-size: 27px; margin: 1.9em 0 0.6em; }
.bp-body h3 { font-size: 20.5px; margin: 1.7em 0 0.5em; }
.bp-body h4 { font-size: 17.5px; margin: 1.6em 0 0.5em; }
.bp-body p { margin: 0 0 1.15em; }
.bp-body a { color: var(--bp-blue-dark); text-decoration: underline; }
.bp-body a:hover { color: var(--bp-blue); }
.bp-body strong { color: var(--bp-navy); font-weight: 600; }
.bp-body ul,
.bp-body ol { margin: 0 0 1.15em; padding-left: 1.35em; }
.bp-body li { margin-bottom: 0.5em; }
.bp-body li::marker { color: var(--bp-blue); }
.bp-body img {
  width: 100%;
  height: auto;
  border: 1px solid var(--bp-line);
  border-radius: 12px;
  margin: 1.8em 0;
  box-shadow: 0 8px 26px rgba(20, 48, 74, 0.07);
}
.bp-body figure { margin: 1.8em 0; }
.bp-body figure img { margin: 0; }
.bp-body figcaption {
  font-size: 13px;
  color: var(--bp-muted);
  margin-top: 10px;
  text-align: center;
}
.bp-body blockquote {
  margin: 1.7em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--bp-blue);
  color: var(--bp-navy);
  font-size: 18px;
}
.bp-body code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: var(--bp-tint);
  border: 1px solid var(--bp-line);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--bp-navy);
}
.bp-body pre {
  background: var(--bp-tint-2);
  border: 1px solid var(--bp-line);
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 1.7em 0;
}
.bp-body pre code { background: none; border: 0; padding: 0; }
.bp-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.7em 0;
  font-size: 15px;
}
.bp-body th,
.bp-body td {
  text-align: left;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--bp-line);
}
.bp-body th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bp-muted);
}
.bp-body hr {
  border: 0;
  border-top: 1px solid var(--bp-line);
  margin: 2.2em 0;
}

/* CTA button inside article/marketing-page bodies. */
.bp-cta {
  display: inline-block;
  background: var(--bp-blue);
  color: #fff !important;
  font-weight: 600;
  font-size: 15.5px;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(46, 143, 210, 0.28);
}
.bp-cta:hover { background: var(--bp-blue-dark); }

/* ---- Closing CTA band + footer ---- */

/* Mirrors .aa-cta-band on the marketing homepage — same rhythm, one step
   smaller since it closes an article rather than a landing page. */
.bp-cta-band {
  position: relative;
  overflow: hidden;
  background: var(--bp-navy);
  padding: 84px 0 80px;
  text-align: center;
  margin-top: 80px;
}
.bp-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 120% at 50% 0%, rgba(46,143,210,0.30), rgba(46,143,210,0) 70%);
  pointer-events: none;
}
.bp-cta-band::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.18), rgba(255,255,255,0));
}
.bp-cta-band .bp-wrap { position: relative; }
.bp-cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(27px, 3.4vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 16em;
  margin: 0 auto 16px;
}
.bp-cta-band p {
  color: #c2d3e1;
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 34em;
  margin: 0 auto 32px;
}
.bp-cta-band .bp-btn {
  font-size: 16.5px;
  padding: 15px 38px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.30), 0 0 0 1px rgba(255,255,255,0.06) inset;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.bp-cta-band .bp-btn:hover {
  background: #3fa0e2;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.34), 0 0 0 1px rgba(255,255,255,0.10) inset;
}
.bp-micro { font-size: 13.5px; color: #90a8bd; margin: 18px 0 0 !important; }
@media (max-width: 700px) {
  .bp-cta-band { padding: 62px 0 58px; margin-top: 56px; }
  .bp-cta-band p { font-size: 15.5px; margin-bottom: 26px; }
  .bp-cta-band .bp-btn { padding: 14px 30px; font-size: 16px; }
}

.bp-site-footer { padding: 52px 0 36px; }
.bp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.bp-site-footer h4 {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--bp-navy);
  margin-bottom: 14px;
}
.bp-site-footer ul { list-style: none; margin: 0; padding: 0; }
.bp-site-footer li { margin-bottom: 9px; }
.bp-site-footer a { color: var(--bp-body); font-size: 14px; text-decoration: none; }
.bp-site-footer a:hover { color: var(--bp-blue); }
.bp-site-footer .blurb { font-size: 14px; max-width: 26em; margin-top: 12px; }
.bp-copy {
  border-top: 1px solid var(--bp-line);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--bp-muted);
}

/* ---- Legacy shell used by public/pages/* (header + inline footer) ---- */

.bp { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.bp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--bp-line);
}
.bp-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--bp-navy);
  text-decoration: none;
}
.bp-wordmark img { width: 28px; height: 28px; }
.bp-wordmark em { font-style: normal; color: inherit; }
.bp-top-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.bp-top-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--bp-navy);
  text-decoration: none;
}
.bp-top-links a:hover { color: var(--bp-blue); }
.bp-footer {
  border-top: 1px solid var(--bp-line);
  margin-top: 64px;
  padding: 20px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--bp-muted);
}
.bp-footer a { color: inherit; text-decoration: none; }
.bp-footer a:hover { color: var(--bp-blue); }
/* Inside the legacy shell the article header is plain, not a tinted band. */
.bp .bp-article-head {
  background: none;
  border-bottom: 0;
  padding: 46px 0 18px;
  margin-bottom: 0;
}
.bp .bp-article { max-width: 760px; }

@media (max-width: 860px) {
  .bp-nav-links a:not(.bp-btn) { display: none; }
  .bp-featured { grid-template-columns: 1fr; }
  .bp-featured-media, .bp-featured-media img { min-height: 210px; }
  .bp-featured-body { padding: 26px 22px; }
  .bp-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Integration pages lead with the platform's own mark above the title —
   left-aligned, since the heading it sits over is left-aligned too. */
.bp-integration-logo {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 0 16px;
}
