/* Blog — Agentic Lab (extends Webflow shared styles) */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  background: linear-gradient(180deg, rgba(15, 17, 33, 0.96) 0%, rgba(11, 13, 27, 0.96) 100%);
  color: #f4f5ff;
  border: 1px solid rgba(241, 111, 159, 0.35);
  border-radius: 11px;
  box-shadow: 0 10px 28px rgba(4, 7, 20, 0.45);
  padding: 18px 21px;
  max-width: 880px;
  margin: 0 auto;
  backdrop-filter: blur(6px);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner__close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  color: rgba(244, 245, 255, 0.66);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 3px;
}

.cookie-banner__close:hover {
  color: #fff;
}

.cookie-banner__title {
  margin: 0 24px 7px 0;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
}

.cookie-banner__text {
  margin: 0 0 14px 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(244, 245, 255, 0.82);
}

.cookie-banner__text a {
  color: #ff9bc0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-banner__btn {
  border: 0;
  border-radius: 0;
  padding: 8px 15px;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cookie-banner__btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.cookie-banner__btn--primary {
  background: #f16f9f;
  color: #fff;
  font-weight: 600;
}

.cookie-banner__btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e7e8ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
}

/* Blog pages lack main-site text-fx JS; keep titles visible */
.blog-page .text-fx,
.blog-page .text-fx .word-inner {
  opacity: 1;
  transform: none;
}

.blog-page,
.blog-post-page {
  position: relative;
  overflow-x: clip;
}

.blog-page__bg {
  z-index: 0;
  pointer-events: none;
  position: absolute;
  top: -380px;
  left: 0;
  width: 100%;
  max-width: none;
  height: auto;
}

.blog-page__content {
  position: relative;
  z-index: 1;
}

.blog-page {
  padding-top: 120px;
  padding-bottom: 80px;
}

.blog-hero {
  padding: 0 0 48px;
}

.blog-hero__title {
  margin: 0;
  font-size: clamp(48px, 8vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
}

.blog-hero__title-main {
  color: #614d74;
}

.blog-hero__title-accent {
  color: var(--_all---pink);
}

.blog-hero__subtitle {
  margin-top: 20px;
  max-width: 528px;
  font-size: 20px;
  line-height: 1.5;
  font-style: italic;
  font-weight: 300;
  color: #a08fb2;
}

.blog-featured {
  margin-bottom: 56px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 26px 32px;
  text-decoration: none;
  color: inherit;
  background: radial-gradient(circle at top left, rgba(137, 88, 255, 0.16), rgba(6, 3, 15, 0.95));
  border: 1px solid transparent;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  box-shadow:
    0 16px 44px rgba(244, 111, 185, 0.22),
    0 0 18px rgba(244, 111, 185, 0.18);
  transform: translateY(-4px);
  border-color: rgba(244, 111, 185, 0.35);
}

.blog-card--featured {
  flex-direction: row;
  align-items: stretch;
  gap: 32px;
  min-height: 280px;
}

.blog-card__media {
  flex: 0 0 42%;
  min-height: 200px;
  background: linear-gradient(135deg, rgba(116, 95, 136, 0.35), rgba(241, 111, 159, 0.12));
  overflow: hidden;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.products__tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  border: 0.5px solid var(--_all---pink);
  font-size: 10px;
  font-style: italic;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--_all---pink);
  white-space: nowrap;
  width: fit-content;
}

.blog-card__title {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.35;
  color: var(--_all---white);
  text-transform: none;
}

.blog-card__excerpt {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #ceb6e5;
}

.blog-card__meta {
  font-size: 14px;
  color: var(--_all---purple-2);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.blog-cta {
  margin-top: 64px;
  padding: 0 0 48px;
  text-align: center;
  border: none;
  border-top: none !important;
  box-shadow: none;
}

.blog-page__content > section:has(+ .blog-cta) {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.blog-page__content > section:has(+ .blog-cta) .blog-card {
  border-bottom-color: transparent;
}

.blog-cta__actions {
  display: flex;
  justify-content: center;
}

.blog-cta__actions .form__button {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.blog-cta__text {
  margin: 0 0 24px;
  font-size: 20px;
  font-style: italic;
  color: #a08fb2;
}

/* Article */
.blog-post-page {
  padding-top: 160px;
  padding-bottom: 80px;
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--_all---purple-2);
  color: #ceb6e5;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.blog-back svg {
  color: var(--_all---pink);
  transition: transform 0.2s ease;
}

.blog-back:hover {
  color: #ffffff;
  border-color: var(--_all---pink);
  background: rgba(241, 111, 159, 0.08);
}

.blog-back:hover svg {
  transform: translateX(-3px);
}

.blog-post-page .blog-page__content {
  position: relative;
  z-index: 1;
}

.blog-breadcrumb {
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--_all---purple-2);
}

.blog-breadcrumb a {
  color: var(--_all---purple);
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  color: var(--_all---pink);
}

.blog-breadcrumb__sep {
  margin: 0 8px;
  opacity: 0.5;
}

.blog-post__header {
  margin-bottom: 40px;
  max-width: 820px;
}

.blog-post__header .products__tag {
  margin-bottom: 16px;
}

.blog-post__title {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  color: var(--_all---white);
  text-transform: none;
  font-weight: 400;
}

.blog-post__meta {
  font-size: 15px;
  color: var(--_all---purple-2);
}

/* Wider container on the article page */
.blog-post-page .container2 {
  max-width: 1360px;
  padding-left: 32px;
  padding-right: 32px;
}

/* Three-column reading layout: actions / article / TOC */
.blog-post__body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
}

/* Side columns stretch full article height; don't block the fixed back-to-top control */
.blog-post-page .blog-aside {
  pointer-events: none;
}

.blog-post-page .blog-aside__sticky,
.blog-post-page .blog-aside a,
.blog-post-page .blog-aside button {
  pointer-events: auto;
}

/* Back-to-top: sibling of .nav after article (no JS class required) */
.blog-post-page ~ .nav + .up-link,
.blog-page ~ .nav + .up-link,
body.has-blog-layout .up-link {
  position: fixed;
  z-index: 10001;
  inset: auto 25px 25px auto;
  pointer-events: auto;
  width: 56px;
  height: 56px;
  display: block;
}

.blog-post-page ~ .nav + .up-link .to-up,
.blog-page ~ .nav + .up-link .to-up,
body.has-blog-layout .to-up {
  position: fixed;
  inset: auto 25px 25px auto;
  pointer-events: auto;
}

.blog-post-page ~ .nav + .up-link .to-up.is-hidden,
.blog-page ~ .nav + .up-link .to-up.is-hidden,
body.has-blog-layout .to-up.is-hidden {
  pointer-events: none;
}

.blog-post-page section.copy {
  pointer-events: none;
}

.blog-post-page section.copy a,
.blog-post-page section.copy button {
  pointer-events: auto;
}

.blog-post__body .blog-prose {
  max-width: none;
  margin: 0;
}

.blog-aside {
  position: relative;
  font-size: 13px;
  color: #a08fb2;
  align-self: stretch;
}

.blog-aside__sticky {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(241, 111, 159, 0.45) transparent;
}

.blog-aside__sticky::-webkit-scrollbar {
  width: 4px;
}

.blog-aside__sticky::-webkit-scrollbar-thumb {
  background: rgba(241, 111, 159, 0.4);
  border-radius: 2px;
}

.blog-aside__title {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--_all---purple-2);
}

/* Left sidebar: share + download */
.blog-actions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.blog-actions::after {
  content: attr(data-copied);
  position: absolute;
  left: 0;
  top: -22px;
  font-size: 11px;
  color: var(--_all---pink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.blog-actions.is-copied::after {
  opacity: 1;
  transform: translateY(0);
}

.blog-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #ceb6e5;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.blog-action:hover {
  color: #ffffff;
  background: rgba(241, 111, 159, 0.08);
}

.blog-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--_all---pink);
}

.blog-action__label {
  white-space: nowrap;
}

/* Right sidebar: table of contents */
.blog-toc {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
  border-left: 1px solid rgba(116, 95, 136, 0.35);
  position: relative;
}

.blog-toc::after {
  content: "";
  position: absolute;
  left: -1px;
  top: var(--toc-active-top, 0);
  height: var(--toc-active-height, 0);
  width: 2px;
  background: var(--_all---pink);
  transition: top 0.35s ease, height 0.35s ease, opacity 0.2s ease;
  opacity: var(--toc-active-opacity, 0);
}

.blog-toc li {
  counter-increment: toc;
  position: relative;
  padding: 6px 0 6px 16px;
}

.blog-toc a {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: #a08fb2;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-toc a::before {
  content: counter(toc, decimal-leading-zero);
  display: inline-block;
  margin-right: 8px;
  font-size: 11px;
  font-style: italic;
  color: var(--_all---purple-2);
}

.blog-toc a:hover {
  color: #ffffff;
}

.blog-toc li.is-active a {
  color: var(--_all---pink);
}

.blog-toc li.is-active a::before {
  color: var(--_all---pink);
}

.blog-prose h2,
.blog-prose h3 {
  scroll-margin-top: 120px;
}

@media print {
  .nav, .hamburger, .blog-aside, .cookie-banner, .blog-post__footer-cta, .legal-footer, .blog-breadcrumb, .up-link {
    display: none !important;
  }
  .blog-post__body {
    display: block;
  }
  .blog-prose {
    max-width: none;
    color: #111;
    font-style: italic;
  }
}

.blog-prose {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.65;
  color: #ceb6e5;
  font-weight: 300;
  font-style: italic;
}

.blog-prose > *:first-child {
  margin-top: 0;
}

.blog-prose p {
  margin: 0 0 1.25em;
  font-weight: 300;
  font-style: italic;
}

.blog-prose ol.blog-steps li,
.blog-prose ul li {
  font-weight: 300;
  font-style: italic;
}

.blog-prose strong,
.blog-prose em {
  font-style: italic;
}

.blog-prose h2 {
  margin: 2.5em 0 0.75em;
  font-size: 28px;
  line-height: 1.25;
  color: var(--_all---white);
  text-transform: none;
  font-weight: 400;
  font-style: normal;
}

.blog-prose h3 {
  margin: 1.75em 0 0.5em;
  font-size: 20px;
  line-height: 1.35;
  color: #aa94c0;
  text-transform: none;
  font-weight: 400;
  font-style: normal;
}

.blog-layer h3 {
  font-style: normal;
}

.blog-prose a {
  color: var(--_all---pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-prose strong {
  color: inherit;
  font-weight: 600;
}

.blog-lead {
  margin: 0 0 2em;
  padding: 20px 24px;
  border-left: 3px solid var(--_all---pink);
  background: rgba(137, 88, 255, 0.08);
  font-size: 19px;
  line-height: 1.6;
  color: #e8dcf0;
  font-style: italic;
}

.blog-layers {
  margin: 2em 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-layer {
  padding: 20px 22px;
  border: 1px solid var(--_all---purple-2);
  background: rgba(9, 6, 13, 0.6);
}

.blog-layer h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--_all---pink);
}

.blog-layer p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #ceb6e5;
  font-weight: 300;
  font-style: italic;
}

.blog-prose ol.blog-steps {
  margin: 1.5em 0;
  padding-left: 1.25em;
}

.blog-prose ol.blog-steps li {
  margin-bottom: 1em;
  padding-left: 0.5em;
}

.blog-post__footer-cta {
  margin-top: 64px;
  padding-top: 0;
  text-align: center;
  border: none;
  border-top: none !important;
  box-shadow: none;
}

.blog-post__footer-cta .blog-cta__actions .form__button {
  margin-top: 0;
}

.blog-post__footer-cta p {
  margin: 0 0 20px;
  font-size: 18px;
  color: #a08fb2;
  font-style: italic;
}

.blog-copy-wrap {
  margin-top: 80px;
  padding: 0 24px 48px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.blog-copy-wrap .copy__text {
  display: none;
}

.legal-footer {
  max-width: 1040px;
  margin: 16px auto 0;
  font-size: 14px;
  line-height: 1.6;
  color: #b5a5d6;
}

.legal-footer__top p {
  margin: 0 0 4px;
}

.legal-footer__row {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.legal-footer__col-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #f2e6ff;
}

.legal-footer__list {
  list-style: disc;
  padding-left: 18px;
  margin: 0;
}

.legal-footer__list li {
  margin-bottom: 4px;
}

.legal-footer__email {
  text-align: right;
  min-width: 200px;
}

.legal-footer__email a {
  color: #f5d9ff;
  text-decoration: none;
  font-weight: 500;
}

.legal-footer__copyright {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.2;
  color: #7a6a90;
  font-style: italic;
}

.legal-footer__copyright p {
  margin: 0 0 2px;
}

.legal-footer a {
  color: #f5d9ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-footer a:hover {
  color: #ffffff;
  text-decoration-thickness: 2px;
}

@media screen and (max-width: 1199px) {
  .blog-post__body {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    gap: 32px;
  }

  .blog-post__body .blog-aside--actions {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 24px;
  }

  .blog-post__body .blog-prose {
    grid-column: 1;
    grid-row: 1;
  }

  .blog-post__body .blog-aside--toc {
    grid-column: 2;
    grid-row: 1;
  }

  .blog-aside--actions .blog-aside__sticky {
    position: static;
  }

  .blog-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 991px) {
  .blog-card--featured {
    flex-direction: column;
  }

  .blog-card__media {
    flex: none;
    min-height: 200px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-post__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-post__body .blog-prose,
  .blog-post__body .blog-aside--toc,
  .blog-post__body .blog-aside--actions {
    grid-column: 1;
  }

  .blog-post__body .blog-aside--toc {
    grid-row: 1;
    order: 1;
  }

  .blog-post__body .blog-prose {
    grid-row: 2;
    order: 2;
  }

  .blog-post__body .blog-aside--actions {
    grid-row: 3;
    order: 3;
    margin-top: 32px;
  }

  .blog-aside__sticky {
    position: static;
  }

  .blog-toc {
    border-left: 0;
    border-top: 1px solid rgba(116, 95, 136, 0.4);
    padding-top: 12px;
  }

  .blog-toc li {
    padding: 4px 0 4px 0;
  }

  .blog-toc li.is-active::before {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .blog-page {
    padding-top: 100px;
  }

  .blog-prose {
    font-size: 17px;
  }

  .blog-prose h2 {
    font-size: 24px;
  }
}
