/*
 * Venderflow blog post layout (public/post/*).
 * Generated markup comes from scripts/upgrade-blog-posts.mjs.
 * Everything is scoped under .vf-post / .vf-progress so the shared
 * Webflow stylesheet keeps styling the nav, related articles and footer.
 */

.vf-post,
.vf-progress {
  --vf-green: #079f4b;
  --vf-green-dark: #05803c;
  --vf-green-soft: rgba(7, 159, 75, 0.12);
  --vf-mint: #f2faf6;
  --vf-mint-border: #d5ecdf;
  --vf-ink: #0f172a;
  --vf-body: #1e293b;
  --vf-muted: #64748b;
  --vf-border: #e5e7eb;
  --vf-error: #b42318;
  --vf-radius: 14px;
  --vf-radius-lg: 20px;
  --vf-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
  --vf-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------------------------------------------- progress */

.vf-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 10000;
  pointer-events: none;
  background: transparent;
}

.vf-progress__bar {
  height: 100%;
  width: 100%;
  background: var(--vf-green);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ------------------------------------------------------------------- shell */

.vf-post {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 96px;
  color: var(--vf-body);
  font-family: var(--vf-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.vf-post *,
.vf-post *::before,
.vf-post *::after {
  box-sizing: border-box;
}

.vf-post a {
  color: inherit;
}

/* ------------------------------------------------------------------ header */

.vf-post-hero {
  margin-bottom: 48px;
}

.vf-post-hero__inner {
  max-width: 860px;
}

.vf-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.4;
  color: var(--vf-muted);
}

.vf-breadcrumb li {
  flex: none;
  min-width: 0;
}

.vf-breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: #cbd5e1;
}

.vf-breadcrumb li[aria-current="page"] {
  display: block;
  flex: 0 1 auto;
  color: var(--vf-body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 42ch;
}

.vf-breadcrumb a {
  color: var(--vf-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.vf-breadcrumb a:hover {
  color: var(--vf-green);
}

.vf-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--vf-muted);
}

.vf-post .vf-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--vf-mint);
  border: 1px solid var(--vf-mint-border);
  color: var(--vf-green-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.vf-post .vf-badge:hover {
  background: #e3f4ea;
  border-color: #b9e0ca;
}

.vf-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #94a3b8;
}

.vf-post .vf-post-title {
  margin: 0 0 24px;
  color: var(--vf-ink);
  font-family: var(--vf-font);
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.1rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.vf-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--vf-muted);
}

.vf-byline__avatar {
  width: 40px;
  height: 40px;
  padding: 5px;
  border-radius: 50%;
  object-fit: contain;
  border: 1px solid var(--vf-border);
  background: #fff;
}

.vf-byline__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
}

.vf-byline__name {
  color: var(--vf-ink);
  font-weight: 600;
}

.vf-byline__role::before {
  content: "·";
  margin-right: 6px;
}

.vf-post-cover {
  margin: 36px 0 0;
  border-radius: var(--vf-radius-lg);
  overflow: hidden;
  background: var(--vf-mint);
  border: 1px solid var(--vf-border);
  aspect-ratio: 16 / 8;
}

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

/* ------------------------------------------------------------------ layout */

.vf-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 72px;
  align-items: start;
}

.vf-article {
  min-width: 0;
}

/* ------------------------------------------------------------------- prose */

.vf-prose {
  max-width: 70ch;
  color: var(--vf-body);
  font-size: 1.125rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}

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

.vf-prose p {
  margin: 0 0 1.3em;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.vf-prose h2,
.vf-prose h3,
.vf-prose h4 {
  color: var(--vf-ink);
  font-family: var(--vf-font);
  font-weight: 700;
  letter-spacing: -0.015em;
  scroll-margin-top: 24px;
  text-wrap: balance;
}

.vf-prose h2 {
  margin: 2.3em 0 0.75em;
  font-size: 1.75rem;
  line-height: 1.28;
}

.vf-prose h3 {
  margin: 1.9em 0 0.6em;
  font-size: 1.3rem;
  line-height: 1.38;
}

.vf-prose h4 {
  margin: 1.6em 0 0.5em;
  font-size: 1.1rem;
  line-height: 1.4;
}

.vf-prose h2 + h3,
.vf-prose h2 + h4,
.vf-prose h3 + h4 {
  margin-top: 0.8em;
}

.vf-prose h2 strong,
.vf-prose h3 strong,
.vf-prose h4 strong {
  font-weight: inherit;
}

.vf-prose strong {
  color: var(--vf-ink);
  font-weight: 650;
}

.vf-prose a {
  color: var(--vf-green-dark);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(7, 159, 75, 0.4);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.vf-prose a:hover {
  color: var(--vf-green);
  text-decoration-color: currentColor;
}

.vf-prose ul,
.vf-prose ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
  color: inherit;
  overflow: visible;
}

.vf-prose li {
  margin: 0 0 0.55em;
  padding-left: 0.3em;
  font-size: inherit;
  line-height: 1.7;
}

.vf-prose li > p {
  margin: 0;
}

.vf-prose ul li::marker {
  color: var(--vf-green);
}

.vf-prose ol li::marker {
  color: var(--vf-green-dark);
  font-weight: 600;
}

.vf-prose blockquote,
.vf-prose .vf-callout {
  margin: 2em 0;
  padding: 20px 24px;
  border: 0;
  border-left: 4px solid var(--vf-green);
  border-radius: 0 var(--vf-radius) var(--vf-radius) 0;
  background: var(--vf-mint);
  color: var(--vf-ink);
  font-size: 1.1rem;
  font-style: normal;
  line-height: 1.7;
}

.vf-prose blockquote > :last-child,
.vf-prose .vf-callout > :last-child {
  margin-bottom: 0;
}

.vf-prose figure {
  margin: 2.2em 0;
  max-width: 100%;
}

.vf-prose figure > div {
  max-width: 100%;
}

.vf-prose img,
.vf-prose video,
.vf-prose iframe {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--vf-radius);
}

.vf-prose figcaption {
  margin-top: 10px;
  color: var(--vf-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.vf-prose hr {
  margin: 2.6em 0;
  border: 0;
  border-top: 1px solid var(--vf-border);
}

.vf-prose table {
  display: block;
  width: 100%;
  margin: 2em 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.vf-prose th,
.vf-prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--vf-border);
  text-align: left;
}

.vf-prose pre,
.vf-prose code {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

.vf-prose pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: var(--vf-radius);
  background: #0f172a;
  color: #e2e8f0;
}

/* ----------------------------------------------------------------- buttons */

.vf-post .vf-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-family: var(--vf-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.vf-post .vf-btn:focus-visible {
  outline: 3px solid rgba(7, 159, 75, 0.35);
  outline-offset: 2px;
}

.vf-post .vf-btn--primary {
  background: var(--vf-green);
  color: #fff;
  box-shadow: 0 1px 2px rgba(7, 159, 75, 0.2);
}

.vf-post .vf-btn--primary:hover {
  background: var(--vf-green-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -10px rgba(7, 159, 75, 0.65);
}

.vf-post .vf-btn--primary:active {
  transform: translateY(0);
}

.vf-post .vf-btn--ghost {
  background: #fff;
  border-color: #cbd5e1;
  color: var(--vf-ink);
}

.vf-post .vf-btn--ghost:hover {
  border-color: var(--vf-ink);
  transform: translateY(-1px);
}

.vf-post .vf-btn--outline {
  background: #fff;
  border-color: var(--vf-green);
  color: var(--vf-green-dark);
}

.vf-post .vf-btn--outline:hover {
  background: var(--vf-mint);
  transform: translateY(-1px);
}

.vf-post .vf-btn--block {
  display: flex;
  width: 100%;
}

.vf-post .vf-btn[disabled] {
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.vf-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vf-spin 0.7s linear infinite;
}

.vf-form.is-loading .vf-spinner {
  display: inline-block;
}

.vf-form.is-loading .vf-btn__label {
  opacity: 0.85;
}

@keyframes vf-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------------------------------------- end-of-post */

.vf-end-cta {
  max-width: 70ch;
  margin-top: 56px;
  padding: 32px;
  border: 1px solid var(--vf-mint-border);
  border-radius: var(--vf-radius-lg);
  background: linear-gradient(180deg, #f2faf6 0%, #fbfefc 100%);
}

.vf-post .vf-eyebrow {
  margin: 0 0 10px;
  color: var(--vf-green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.vf-post .vf-end-cta__title {
  margin: 0 0 10px;
  color: var(--vf-ink);
  font-family: var(--vf-font);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.vf-end-cta__text {
  margin: 0 0 24px;
  max-width: 58ch;
  color: var(--vf-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.vf-end-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ----------------------------------------------------------------- sidebar */

.vf-sidebar {
  min-width: 0;
  height: 100%;
}

.vf-sidebar__sticky {
  position: sticky;
  top: var(--vf-sticky-top, 24px);
  display: grid;
  gap: 16px;
}

.vf-card {
  position: relative;
  padding: 22px 22px 20px;
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius-lg);
  background: #fff;
  box-shadow: var(--vf-shadow);
}

.vf-subscribe {
  background: var(--vf-mint);
  border-color: var(--vf-mint-border);
}

.vf-post .vf-card__title {
  margin: 0 0 8px;
  color: var(--vf-ink);
  font-family: var(--vf-font);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.vf-card__text {
  margin: 0 0 16px;
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
}

.vf-card--live .vf-card__text {
  margin-bottom: 14px;
}

.vf-live-dot {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--vf-green);
  box-shadow: 0 0 0 0 rgba(7, 159, 75, 0.5);
  animation: vf-pulse 2.2s ease-out infinite;
}

.vf-card--live .vf-card__title {
  padding-right: 22px;
}

@keyframes vf-pulse {
  0% { box-shadow: 0 0 0 0 rgba(7, 159, 75, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(7, 159, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(7, 159, 75, 0); }
}

.vf-post .vf-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--vf-green-dark);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.vf-post .vf-text-link span {
  transition: transform 0.15s ease;
}

.vf-post .vf-text-link:hover span {
  transform: translateX(3px);
}

/* -------------------------------------------------------------------- form */

.vf-form {
  display: grid;
  gap: 12px;
  margin: 0;
}

.vf-field {
  display: grid;
  gap: 5px;
}

.vf-post .vf-field label {
  display: block;
  margin: 0;
  color: var(--vf-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.vf-req {
  color: var(--vf-green-dark);
}

.vf-optional {
  color: var(--vf-muted);
  font-weight: 400;
}

.vf-post .vf-field input {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: var(--vf-ink);
  font-family: var(--vf-font);
  font-size: 15px;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.vf-post .vf-field input::placeholder {
  color: #94a3b8;
}

.vf-post .vf-field input:hover {
  border-color: #94a3b8;
}

.vf-post .vf-field input:focus {
  outline: none;
  border-color: var(--vf-green);
  box-shadow: 0 0 0 3px var(--vf-green-soft);
}

.vf-post .vf-field input[aria-invalid="true"] {
  border-color: var(--vf-error);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.vf-form .vf-btn {
  margin-top: 4px;
}

/* Spam trap: kept in the DOM for bots, removed from view and the a11y tree for people. */
.vf-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.vf-form__status {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.vf-form__status:empty {
  display: none;
}

.vf-form__status.is-error {
  color: var(--vf-error);
}

.vf-form__status.is-success {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--vf-mint-border);
  color: var(--vf-ink);
  font-size: 15px;
}

.vf-form__status.is-success::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--vf-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.vf-form__fine {
  margin: -2px 0 0;
  color: var(--vf-muted);
  font-size: 12.5px;
  line-height: 1.4;
  text-align: center;
}

.vf-form__status.is-error ~ .vf-form__fine {
  display: none;
}

.vf-form.is-done .vf-field,
.vf-form.is-done .vf-btn,
.vf-form.is-done .vf-form__fine {
  display: none;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .vf-post-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
  }
}

@media (max-width: 960px) {
  .vf-post {
    padding: 36px 28px 72px;
  }

  .vf-post-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .vf-prose,
  .vf-end-cta {
    max-width: none;
  }

  .vf-sidebar {
    height: auto;
  }

  .vf-sidebar__sticky {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 680px) {
  .vf-post {
    padding: 24px 20px 56px;
  }

  .vf-post-hero {
    margin-bottom: 32px;
  }

  .vf-breadcrumb li[aria-current="page"] {
    max-width: 24ch;
  }

  .vf-post .vf-post-title {
    margin-bottom: 18px;
    letter-spacing: -0.02em;
  }

  .vf-post-cover {
    margin-top: 26px;
    border-radius: var(--vf-radius);
    aspect-ratio: 16 / 10;
  }

  .vf-prose {
    font-size: 1.0625rem;
    line-height: 1.72;
  }

  .vf-prose h2 {
    margin-top: 2em;
    font-size: 1.45rem;
  }

  .vf-prose h3 {
    font-size: 1.2rem;
  }

  .vf-prose blockquote,
  .vf-prose .vf-callout {
    padding: 16px 18px;
    font-size: 1.05rem;
  }

  .vf-end-cta {
    margin-top: 44px;
    padding: 24px 20px;
  }

  .vf-post .vf-end-cta__title {
    font-size: 1.4rem;
  }

  .vf-end-cta__actions .vf-btn {
    flex: 1 1 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  .vf-post *,
  .vf-progress * {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .vf-progress,
  .vf-sidebar,
  .vf-end-cta {
    display: none !important;
  }

  .vf-post-layout {
    display: block;
  }
}
