/* Blog index + article styles. Layered on top of site.css, so only blog-specific
   rules live here; nav, footer, buttons and type scale come from the main site. */

.blog-hero {
  padding-bottom: 1rem;
}

.blog-hero .eyebrow,
.article-header .eyebrow {
  margin: 0 0 1rem;
  color: #7940ff;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.blog-hero .hero-dek {
  max-width: 38rem;
}

.blog-list .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.blog-list .card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-card {
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid #dcdde3;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.article-card:hover,
.article-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(1, 22, 30, .12);
}

.article-card .card-label {
  margin-bottom: 2rem;
  color: #7940ff;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-card h2 {
  margin: 0 0 1rem;
  font-family: Nicholas, Georgia, serif;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.article-card p {
  margin: auto 0 0;
  color: #6c759b;
  line-height: 1.5;
}

.blog-more__title {
  margin-bottom: 1.75rem;
}

.article-header h1 span {
  position: relative;
  display: inline-block;
  background: none;
}

.article-header h1 span::after {
  position: absolute;
  right: 0;
  bottom: -.04em;
  left: 0;
  height: .12em;
  background: #40ffd8;
  content: "";
}

.article-header .eyebrow {
  color: #40ffd8;
}

.article-intro {
  max-width: 42rem;
}

.article-shell {
  background: #fff;
}

.article-body {
  width: min(100%, 42rem);
  margin: 0 auto;
  color: #505775;
  font-size: 1.0625rem;
  line-height: 1.78;
}

.article-body p {
  margin: 0 0 1.5em;
}

.article-body h2 {
  margin: 2.2em 0 .6em;
  color: #01161e;
  font-family: Nicholas, Georgia, serif;
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.6em;
  padding-left: 1.4em;
}

.article-body li {
  margin-bottom: .6em;
  padding-left: .35em;
}

.article-body a {
  color: #7940ff;
  font-weight: 600;
}

.article-body strong {
  color: #2d3142;
  font-weight: 700;
}

.article-cta {
  width: min(100%, 42rem);
  margin: 3.5rem auto 0;
  padding: 2.25rem;
  border-radius: 12px;
  background: #7940ff;
  color: #fff;
}

.article-cta h2 {
  margin: 0 0 .5rem;
  font-family: Nicholas, Georgia, serif;
  font-size: 2rem;
  line-height: 1.1;
}

.article-cta p {
  margin: 0;
  line-height: 1.5;
}

.article-cta a {
  color: #40ffd8;
  font-weight: 700;
}

@media screen and (max-width: 1023px) {
  .blog-list .card-grid,
  .blog-list .card-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .blog-list .card-grid,
  .blog-list .card-grid--two {
    grid-template-columns: 1fr;
  }

  .article-card {
    min-height: 0;
    padding: 1.5rem;
  }

  .article-card .card-label {
    margin-bottom: 1.25rem;
  }

  .article-card h2 {
    font-size: 1.75rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-body h2 {
    font-size: 1.75rem;
  }

  .article-cta {
    margin-top: 2.5rem;
    padding: 1.5rem;
  }

  .article-cta h2 {
    font-size: 1.625rem;
  }
}

/* Timed lead-capture modal (blog pages). */
.direct-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(1, 22, 30, .72);
}

.direct-modal-backdrop[hidden] { display: none; }

body.direct-modal-open { overflow: hidden; }

.direct-modal {
  position: relative;
  width: min(100%, 32.5rem);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  padding: 2.25rem;
  border-radius: 12px;
  background: #fff;
  color: #505775;
  box-shadow: 0 24px 80px rgba(1, 22, 30, .28);
}

.direct-modal-close {
  position: absolute;
  top: .5rem;
  right: .75rem;
  border: 0;
  background: transparent;
  color: #6c759b;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
}

.direct-modal h2 {
  margin: 0 2rem .5rem 0;
  color: #01161e;
  font-family: Nicholas, Georgia, serif;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.direct-modal > .direct-modal-content > p {
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.direct-modal .direct-modal-form { min-height: 8rem; }

.direct-modal .hs-form-field { margin-bottom: .875rem; }

.direct-modal .hs-form-field > label,
.direct-modal .hs-form-field > label span {
  color: #2d3142;
  font-weight: 600;
}

.direct-modal .hs-input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  padding: .625rem .75rem;
  border: 1px solid #dcdde3;
  border-radius: 6px;
  background: #fff;
  color: #01161e;
  font-family: inherit;
}

.direct-modal .hs-button {
  width: 100%;
  padding: .75rem 1.125rem;
  border: 0;
  border-radius: 6px;
  background: #7940ff;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}

.direct-modal .hs-button:hover { background: #6d3ae6; }

.direct-modal .hs-error-msg,
.direct-modal .hs-error-msgs label { color: #a52640; }

.direct-modal-dismiss {
  display: block;
  margin: .75rem auto 0;
  border: 0;
  background: transparent;
  color: #6c759b;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
}

@media screen and (max-width: 520px) {
  .direct-modal { padding: 1.75rem 1.25rem 1.25rem; }
  .direct-modal h2 { font-size: 1.75rem; }
}

/* Gated toolkit download: blurred preview + unlock button. */
.toolkit-gate {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
  margin: 2.25rem 0 2.5rem;
  padding: 1.75rem;
  border: 1px solid #dcdde3;
  border-radius: 12px;
  background: #f4f4f9;
}

.toolkit-gate__preview {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #dcdde3;
  background: #fff;
  box-shadow: 0 12px 32px rgba(1, 22, 30, .14);
  cursor: pointer;
}

.toolkit-gate__preview img {
  display: block;
  width: 100%;
  height: auto;
  filter: blur(3px);
  transform: scale(1.03);
  transition: filter .3s ease;
}

.toolkit-gate__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(244, 244, 249, 0) 35%, rgba(244, 244, 249, .95));
}

.toolkit-gate__lock {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 1;
  padding: .5rem .875rem;
  border-radius: 999px;
  background: #01161e;
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.toolkit-gate.is-unlocked .toolkit-gate__preview img { filter: none; }

.toolkit-gate__eyebrow,
.direct-gate-eyebrow {
  margin: 0 0 .5rem;
  color: #7940ff;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.toolkit-gate h3 {
  margin: 0 0 .5rem;
  color: #01161e;
  font-family: Nicholas, Georgia, serif;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.toolkit-gate p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.55;
}

.toolkit-gate__button {
  display: inline-block;
  padding: .8rem 1.375rem;
  border: 0;
  border-radius: 6px;
  background: #7940ff;
  color: #fff !important;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.toolkit-gate__button:hover { background: #6d3ae6; }

.toolkit-gate__note {
  display: block;
  margin-top: .75rem;
  color: #6c759b;
  font-size: .875rem;
}

.direct-gate-fallback {
  margin: 1rem 0 0;
  font-size: .9375rem;
  text-align: center;
}

.direct-gate-fallback a { color: #7940ff; font-weight: 600; }

@media screen and (max-width: 640px) {
  .toolkit-gate {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .toolkit-gate__preview { max-width: 15rem; margin: 0 auto; }

  .toolkit-gate__button { display: block; text-align: center; }
}
