@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-300: #93C5FD;
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--gray-900);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Gradient text — uses CSS theme variables */
.text-gradient {
  background: linear-gradient(118.94deg, #7381FD -12.54%, #76C7FF 105.75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* <mark> tag — blue gradient text, no yellow background */
mark {
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 50%, #93C5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-color: transparent;
}

.bg-gradient-blue {
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
}

/* Animations */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ── Use-case section (#section-use-cases) ──────────────────────────── */
#section-use-cases .solutions-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#section-use-cases .solutions-section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

#section-use-cases .solutions-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

#section-use-cases .solution-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
  transition: all 0.3s ease;
  min-height: 166px;
}

#section-use-cases .solution-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

#section-use-cases .solution-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
}

#section-use-cases .solution-icon svg {
  width: 36px;
  height: 36px;
}

#section-use-cases .solution-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#section-use-cases .solution-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: #1a2033;
  margin: 0;
  transition: color 0.3s ease;
}

#section-use-cases .solution-card:hover .solution-title {
  color: #3b82f6;
}

#section-use-cases .solution-description {
  font-size: 16px;
  line-height: 1.5;
  color: #374151;
  font-weight: 500;
  margin: 0;
}

@media screen and (max-width: 1199px) {
  #section-use-cases .solution-title {
    font-size: 28px;
  }

  #section-use-cases .solution-icon {
    width: 35px;
    height: 35px;
  }
}

@media screen and (max-width: 959px) {
  #section-use-cases .solutions-row {
    flex-direction: column;
  }

  #section-use-cases .solution-card {
    width: 100%;
  }
}

@media screen and (max-width: 639px) {
  #section-use-cases .solution-card {
    padding: 24px;
    gap: 20px;
  }

  #section-use-cases .solution-title {
    font-size: 24px;
  }

  #section-use-cases .solution-icon {
    width: 30px;
    height: 30px;
  }
}

@media screen and (max-width: 479px) {
  #section-use-cases .solution-card {
    flex-direction: column;
    gap: 16px;
  }

  #section-use-cases .solution-content {
    gap: 12px;
  }

  #section-use-cases .solution-description {
    font-size: 14px;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.reveal {
  opacity: 0;
}


.feature-card {
  opacity: 0;
}

.ecosystem-card {
  opacity: 0;
}

.award-card {
  opacity: 0;
}

.drive-card {
  opacity: 0;
}

/* ── Drives section (#section-drives) ───────────────────────────────── */
#section-drives .drives-inner {
  max-width: 1200px;
  margin: 0 auto;
}

#section-drives .drives-flex {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
}

#section-drives .drive-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 540px;
}

#section-drives .drive-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #3b82f6;
}

#section-drives .drive-icon svg {
  width: 48px;
  height: 48px;
}

#section-drives .drive-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#section-drives .drive-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: #1a2033;
  margin: 0;
}

#section-drives .drive-description {
  font-size: 16px;
  line-height: 1.5;
  color: #1a2033;
  font-weight: 500;
  margin: 0;
}

@media screen and (max-width: 1199px) {
  #section-drives .drives-flex {
    gap: 20px;
  }

  #section-drives .drive-card {
    min-height: 585px;
  }

  #section-drives .drive-title {
    font-size: 28px;
  }
}

@media screen and (max-width: 959px) {
  #section-drives .drives-flex {
    flex-direction: column;
    max-width: 640px;
    margin: 0 auto;
  }

  #section-drives .drive-card {
    width: 100%;
    min-height: auto;
    flex-direction: row;
    gap: 28px;
  }

  #section-drives .drive-content {
    flex: 1;
  }

  #section-drives .drive-title {
    font-size: 28px;
  }
}

@media screen and (max-width: 639px) {
  #section-drives .drive-card {
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }

  #section-drives .drive-icon {
    width: 40px;
    height: 40px;
  }

  #section-drives .drive-title {
    font-size: 24px;
  }
}

@media screen and (max-width: 479px) {
  #section-drives .drive-icon {
    width: 40px;
    height: 40px;
  }

  #section-drives .drive-title {
    font-size: 24px;
  }
}

/* ── Ecosystem section (#section-ecosystem) ─────────────────────────── */
#section-ecosystem .eco-inner {
  max-width: 1200px;
  margin: 0 auto;
}

#section-ecosystem .eco-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

#section-ecosystem .eco-card {
  flex: 1;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

#section-ecosystem .eco-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.12);
  transform: translateY(-3px);
}

#section-ecosystem .eco-card-large {
  min-height: 260px;
}

#section-ecosystem .eco-card-medium {
  min-height: 220px;
}

#section-ecosystem .eco-card-small {
  min-height: 180px;
}

#section-ecosystem .eco-card-featured {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 60%, #60a5fa 100%);
  border: none;
  justify-content: center;
  cursor: default;
  gap: 0;
}

#section-ecosystem .eco-card-featured:hover {
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.35);
  transform: translateY(-3px);
}

#section-ecosystem .eco-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

#section-ecosystem .eco-icon {
  width: 56px;
  height: 56px;
  background: #eff6ff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  flex-shrink: 0;
}

#section-ecosystem .eco-icon svg {
  width: 28px;
  height: 28px;
}

#section-ecosystem .eco-arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  transition: color 0.3s, transform 0.3s;
  flex-shrink: 0;
}

#section-ecosystem .eco-arrow svg {
  width: 40px;
  height: 40px;
}

#section-ecosystem .eco-card:hover .eco-arrow {
  color: #3b82f6;
  transform: translate(2px, -2px);
}

#section-ecosystem .eco-title {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
  margin: 0;
  transition: color 0.3s;
}

#section-ecosystem .eco-card:not(.eco-card-featured):hover .eco-title {
  color: #2563eb;
}

#section-ecosystem .eco-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}

/* Featured stats card */
#section-ecosystem .eco-featured-label {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0px;
}

#section-ecosystem .eco-featured-title {
  font-size: 18px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 24px;
}

#section-ecosystem .eco-stats-row {
  display: flex;
  gap: 20px;
}

#section-ecosystem .eco-stats-row+.eco-stats-row {
  margin-top: 16px;
}

#section-ecosystem .eco-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
}

#section-ecosystem .eco-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

#section-ecosystem .eco-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  line-height: 1.3;
}

/* CTA bar */
#section-ecosystem .eco-cta-bar {
  background: linear-gradient(0.417turn, rgba(115, 129, 253, 1) 0%, rgba(118, 199, 255, 1) 100%);
  border-radius: 24px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 0;
}

#section-ecosystem .eco-cta-title {
  font-size: 29px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

#section-ecosystem .eco-cta-desc {
  font-size: 14px;
  color: #fff;
  margin: 8px 0 0;
}

#section-ecosystem .eco-cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #3b82f6;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  transition: background 0.2s;
  white-space: nowrap;
}

#section-ecosystem .eco-cta-btn:hover {
  background: #2563eb;
}

#section-ecosystem .eco-cta-btn svg {
  width: 18px;
  height: 18px;
}

@media screen and (max-width: 1199px) {
  #section-ecosystem .eco-card {
    padding: 32px;
  }

  #section-ecosystem .eco-title {
    font-size: 18px;
  }

  #section-ecosystem .eco-stat-num {
    font-size: 24px;
  }

  #section-ecosystem .eco-cta-bar {
    padding: 32px 40px;
  }

  #section-ecosystem .eco-cta-title {
    font-size: 20px;
  }
}

@media screen and (max-width: 959px) {
  #section-ecosystem .eco-row {
    flex-direction: column;
  }
}

@media screen and (max-width: 767px) {
  #section-ecosystem .eco-cta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media screen and (max-width: 639px) {
  #section-ecosystem .eco-card {
    padding: 24px;
    border-radius: 20px;
  }

  #section-ecosystem .eco-card-large,
  #section-ecosystem .eco-card-medium,
  #section-ecosystem .eco-card-small {
    min-height: auto;
  }

  #section-ecosystem .eco-cta-bar {
    border-radius: 20px;
    padding: 24px;
  }

  #section-ecosystem .eco-cta-title {
    font-size: 18px;
  }

  #section-ecosystem .eco-stats-row {
    gap: 12px;
  }
}

/* ── Reviews section (#section-reviews) ─────────────────────────────── */
#section-reviews {
  background-color: #f6fafd;
}

#section-reviews .reviews-inner {
  max-width: 1200px;
  margin: 0 auto;
}

#section-reviews .reviews-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

#section-reviews .review-card {
  flex: 1;
  background: #fff;
  border-radius: 20px;
  padding: 32px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#section-reviews .review-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

#section-reviews .review-badge {
  width: 135px;
  height: 139px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}

#section-reviews .review-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#section-reviews .review-card:hover .review-badge {
  transform: translateY(-8px);
}

#section-reviews .review-stars {
  display: flex;
  gap: 3px;
}

#section-reviews .review-stars svg {
  width: 20px;
  height: 20px;
}

#section-reviews .review-rating {
  font-size: 14px;
  color: #374151;
  text-align: center;
}

#section-reviews .review-rating strong {
  font-weight: 700;
  color: #111827;
}

@media screen and (max-width: 767px) {
  #section-reviews .reviews-row {
    flex-wrap: wrap;
  }

  #section-reviews .review-card {
    min-width: calc(50% - 10px);
  }

  #section-reviews .review-badge {
    width: 110px;
    height: 113px;
  }
}

@media screen and (max-width: 480px) {
  #section-reviews .review-card {
    padding: 24px 16px 20px;
    gap: 12px;
  }

  #section-reviews .review-badge {
    width: 95px;
    height: 98px;
  }

  #section-reviews .review-stars svg {
    width: 16px;
    height: 16px;
  }

  #section-reviews .review-rating {
    font-size: 12px;
  }
}

.customer-item {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Testimonials slider ────────────────────────────────────── */
.testimonial-dot.active {
  background-color: #3B82F6;
}

/* ── FAQ Accordion ──────────────────────────────────────────── */
.faq-icon-wrap.active {
  background: #FFFFFF;
  border-color: #3B82F6;
}

.faq-icon-wrap.active .faq-icon-x {
  color: #3B82F6;
}

/* ── Blog post prose typography ─────────────────────────────── */
.prose-content {
  color: #374151;
  line-height: 1.8;
  font-size: 1.0625rem;
}

.prose-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 2rem 0 1rem;
}

.prose-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2937;
  margin: 1.5rem 0 .75rem;
}

.prose-content p {
  margin-bottom: 1.25rem;
}

.prose-content ul,
.prose-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose-content li {
  margin-bottom: .4rem;
}

.prose-content a {
  color: #2563eb;
  text-decoration: underline;
}

.prose-content blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
  color: #6b7280;
  font-style: italic;
  margin: 1.5rem 0;
}

.prose-content img {
  border-radius: .75rem;
  margin: 1.5rem 0;
  max-width: 100%;
}

.prose-content pre {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: .75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose-content code {
  background: #f1f5f9;
  padding: .15rem .35rem;
  border-radius: .3rem;
  font-size: .9em;
}

.prose-content pre code {
  background: transparent;
  padding: 0;
}

/* ── Line-clamp utilities ───────────────────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 3;
}

/* ── Blog post two-column grid ──────────────────────────────── */
.blog-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  /* NO align-items:start — default stretch makes aside as tall as the content
     column, which is required for position:sticky to work throughout scroll */
}

@media (min-width: 1024px) {
  .blog-post-grid.has-toc {
    grid-template-columns: 1fr 264px;
  }
}

/* TOC aside — hidden on mobile, visible on desktop */
.toc-aside {
  display: none;
}

@media (min-width: 1024px) {
  .toc-aside {
    display: block;
  }
}

/* Sticky wrapper */
.toc-sticky {
  position: sticky;
  top: 88px;
}

/* Wraps ONLY the TOC header + links — the bar anchors here, not the whole sticky */
.toc-content-section {
  position: relative;
  padding-left: 15px;
  /* room for the vertical progress bar on the far left */
}

/* Vertical progress track — only as tall as the TOC content section */
.toc-progress-track {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

/* Blue fill — height set in pixels by JS (not %, which needs explicit parent height) */
.toc-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: #3b82f6;
  border-radius: 3px;
  transition: height .15s linear;
}

/* Header row: label + percentage */
.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.toc-section-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.toc-pct {
  font-size: 11px;
  font-weight: 600;
  color: #3b82f6;
  font-variant-numeric: tabular-nums;
}

/* TOC nav — scroll only if there are many headings */
.toc-nav {
  overflow-y: auto;
  max-height: calc(100vh - 220px);
}

/* TOC links */
.toc-link {
  display: block;
  padding: 5px 4px 5px 0;
  font-size: 0.8125rem;
  color: #9ca3af;
  text-decoration: none;
  line-height: 1.45;
  transition: color .15s;
}

.toc-link:hover {
  color: #2563eb;
}

.toc-link.toc-h3 {
  padding-left: 12px;
  font-size: 0.75rem;
}

.toc-link.toc-active {
  color: #2563eb;
  font-weight: 600;
}

/* Divider between TOC and latest posts */
.toc-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 1rem 0 .75rem;
}

/* Latest posts links */
.toc-latest-link {
  display: block;
  font-size: 0.8125rem;
  color: #374151;
  text-decoration: none;
  padding: 5px 0;
  border-bottom: 1px solid #f3f4f6;
  line-height: 1.4;
  transition: color .15s;
}

.toc-latest-link:last-child {
  border-bottom: none;
}

.toc-latest-link:hover {
  color: #2563eb;
}

/* ── Contact Thank-You Modal ─────────────────────────────────── */
.contact-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.contact-modal-overlay.is-open {
  display: flex;
}

.contact-modal {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  animation: fadeInUp .3s ease both;
}

/* ── Override lg:py-24 — top 2rem, bottom 6rem ────────────────────────── */
/* !important needed: Tailwind CDN injects styles dynamically after this file */
@media (min-width: 1024px) {
  .lg\:py-24 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* ── Product hero title — <mark> = blue, <br> allowed ─────────────────── */
.hero-title mark {
  color: #3B82F6;
  line-height: 24px;
}

/* ── Hero content alignment (DB-driven, replaces dynamic Tailwind vars) ─── */
.hero-content-center {
  align-items: center;
  text-align: center;
}

.hero-content-left {
  align-items: flex-start;
  text-align: left;
}

.hero-content-right {
  align-items: flex-end;
  text-align: right;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-content-center .hero-cta-row {
  justify-content: center;
}

.hero-content-right .hero-cta-row {
  justify-content: flex-end;
}

.hero-content-left .hero-cta-row {
  justify-content: flex-start;
}

/* ── Hero Pill ───────────────────────────────────────────────── */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 14px;
  background: #e9f6ff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.hero-pill:hover {
  background: #D4EDFE;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.hero-pill-badge {
  background: #1a73e8;
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.hero-pill-text-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-pill-text {
  color: #111;
  font-weight: 500;
  font-size: 13px;
}

.hero-pill-arrow {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.hero-pill:hover .hero-pill-arrow {
  transform: translateX(3px);
}

.hero-pill-arrow svg {
  width: 14px;
  height: 14px;
}

.hero-content-center p {
  max-width: 40rem;
  font-weight: 600;
}

.hero-cta-row a {
  padding-left: 3.75rem;
  padding-right: 3.75rem;

}

/* ── Hero Carousel ───────────────────────────────────────────── */
.hero-carousel-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: 450px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide-inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
  min-height: 450px;
}

/* Title: colored part top line, plain part bottom line */
.hero-slide h1 span {
  display: block;
}

/* Dark overlay on image backgrounds for readability */
.hero-slide[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-slide-inner {
  width: 100%;
}

/* Prev / Next arrows */
.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.35);
}

.hero-prev {
  left: 1.25rem;
}

.hero-next {
  right: 1.25rem;
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
}

.hero-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #fff;
}

@media (max-width: 640px) {
  .hero-slide {
    min-height: 100svh;
  }
}

/* ── Simple Banner ───────────────────────────────────────────── */
.simple-banner {
  position: relative;
  width: 100%;
  background-color: #e5e7eb;
  background-position: center;
}

.simple-banner--contained {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.simple-banner__link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* ── HTML Banner ─────────────────────────────────────────────── */
.html-banner {
  width: 100%;
  overflow: hidden;
}

/* ── Desktop Nav Dropdown ────────────────────────────────────── */
.nav-has-dropdown {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.10);
  padding: 0.375rem;
  z-index: 100;
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  display: block;
}

.nav-has-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-item {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  border-radius: 0.5rem;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: #eff6ff;
  color: #2563eb;
}

.nav-dropdown-item.active {
  background: #eff6ff;
  color: #2563eb;
}

/* ── Main Header ────────────────────────────────────────────── */
#main-header {
  transition: box-shadow .2s, background .2s;
}

#main-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .08);
}

/* ── Mobile Menu ─────────────────────────────────────────────── */
#mobile-menu {
  display: none;
}

#mobile-menu.open {
  display: block;
}

/* ── Nav active state ────────────────────────────────────────── */
.nav-active {
  color: #2563EB !important;
}

/* ── Mega Menu Panel ─────────────────────────────────────────── */
.mega-panel {
  display: none;
  position: fixed;
  top: 67px;
  left: 0;
  right: 0;
  z-index: 49;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .12);
}

/* Invisible bridge so mouse can travel from button to panel without gap */
.nav-has-dropdown:has(.mega-panel)::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-has-dropdown:hover .mega-panel,
.nav-has-dropdown:focus-within .mega-panel {
  display: block;
}

.mega-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

/* Column */
.mega-col {
  flex: 1;
  min-width: 0;
}

.mega-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.625rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
}

/* Link item */
.mega-link-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
  cursor: pointer;
}

.mega-link-item:hover {
  background: #eff6ff;
}

.mega-link-icon {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4ff;
  border-radius: 0.5rem;
  color: #3b82f6;
}

.mega-link-icon img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.mega-link-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 0.125rem;
}

.mega-link-desc {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Banner item */
.mega-banner {
  display: block;
  border-radius: 0.75rem;
  padding: 1.125rem;
  text-decoration: none;
  color: #fff;
  background: #3b82f6;
  margin-bottom: 0.625rem;
  transition: opacity .15s, transform .15s;
  background-size: cover;
  background-position: center;
}

.mega-banner:last-child {
  margin-bottom: 0;
}

.mega-banner:hover {
  opacity: 0.93;
  transform: translateY(-1px);
}

.mega-banner-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(255, 255, 255, .2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.mega-banner-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.mega-banner-subtitle {
  font-size: 0.78rem;
  opacity: 0.85;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.mega-banner-btn {
  display: inline-block;
  background: #fff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 0.375rem;
  white-space: nowrap;
}

/* Column divider for banner cols */
.mega-col-banners {
  flex-shrink: 0;
  width: 240px;
}

/* Mobile mega items */
.mobile-mega-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 0.625rem 2rem 0.25rem;
}

/* ── FAQ Icons ───────────────────────────────────────────────── */
.faq-icon-plus,
.faq-icon-x {
  width: 16px;
  height: 16px;
}

.faq-icon-x {
  display: none;
}

/* ── FAQ Content initial state (JS overrides with scrollHeight) ─ */
.faq-content {
  max-height: 0;
}

/* ── Post / Portfolio hero image ─────────────────────────────── */
.post-hero-img {
  aspect-ratio: 21 / 8;
  max-height: 480px;
}

/* ── TOC latest posts list ───────────────────────────────────── */
.toc-latest-list {
  margin-top: .5rem;
}

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.open {
  display: flex;
}

/* ── Header spacer (sticky header offset) ───────────────────── */
.header-spacer {
  padding-top: 72px;
}

/* ── Filled star icon ────────────────────────────────────────── */
.icon-star-filled {
  fill: #facc15;
}

/* ── Mobile Accordion ────────────────────────────────────────── */
.mobile-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-accordion-content.open {
  max-height: 400px;
}

.accordion-chevron.open {
  transform: rotate(180deg);
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}

.pagination-arrow:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: #eff6ff;
}

.pagination-arrow svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.pagination-page:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: #eff6ff;
}

.pagination-page.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
  pointer-events: none;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 40px;
  color: #94a3b8;
  font-size: 0.9rem;
  user-select: none;
}

/* ═══════════════════════════════════════════════════════════════
   COLOR THEME SYSTEM
   Variables are injected inline by header.php (from DB).
   Fallback defaults here match the original light Tailwind palette.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --c-primary: #3B82F6;
  --c-primary-hover: #2563EB;
  --c-primary-light: #EFF6FF;
  --c-gradient-start: #3B82F6;
  --c-gradient-end: #8B5CF6;
  --c-bg-page: #FFFFFF;
  --c-bg-alt: #F8FAFC;
  --c-bg-card: #FFFFFF;
  --c-bg-header: #FFFFFF;
  --c-text-heading: #111827;
  --c-text-body: #374151;
  --c-text-muted: #6B7280;
  --c-border: #E5E7EB;
  --c-bg-footer: #111827;
  --c-text-footer: #9CA3AF;
}

/* ── Primary color overrides (apply always so changing --c-primary works) ── */
.bg-blue-500 {
  background-color: var(--c-primary) !important;
}

.bg-blue-600 {
  background-color: var(--c-primary-hover) !important;
}

.bg-blue-50 {
  background-color: var(--c-primary-light) !important;
}

.text-blue-500,
.text-blue-600,
.text-blue-700 {
  color: var(--c-primary) !important;
}

.border-blue-500,
.border-blue-300 {
  border-color: var(--c-primary) !important;
}

.hover\:bg-blue-600:hover {
  background-color: var(--c-primary-hover) !important;
}

.hover\:bg-blue-50:hover {
  background-color: var(--c-primary-light) !important;
}

.hover\:bg-blue-100:hover {
  background-color: var(--c-primary-light) !important;
}

.hover\:text-blue-600:hover,
.hover\:text-blue-700:hover {
  color: var(--c-primary-hover) !important;
}

.hover\:border-blue-300:hover {
  border-color: var(--c-primary) !important;
}

.ring-blue-500,
.focus\:ring-blue-500:focus {
  --tw-ring-color: var(--c-primary) !important;
}

/* ── Dark mode: Tailwind utility overrides via [data-theme="dark"] ────────── */

[data-theme="dark"] body {
  background-color: var(--c-bg-page);
  color: var(--c-text-body);
}

/* Backgrounds */
[data-theme="dark"] .bg-white {
  background-color: var(--c-bg-card) !important;
}

[data-theme="dark"] .bg-gray-50 {
  background-color: var(--c-bg-alt) !important;
}

[data-theme="dark"] .bg-gray-100 {
  background-color: var(--c-bg-alt) !important;
}

[data-theme="dark"] .bg-gray-200 {
  background-color: var(--c-border) !important;
}

/* Text */
[data-theme="dark"] .text-gray-900 {
  color: var(--c-text-heading) !important;
}

[data-theme="dark"] .text-gray-800 {
  color: var(--c-text-heading) !important;
}

[data-theme="dark"] .text-gray-700 {
  color: var(--c-text-body) !important;
}

[data-theme="dark"] .text-gray-600 {
  color: var(--c-text-body) !important;
}

[data-theme="dark"] .text-gray-500 {
  color: var(--c-text-muted) !important;
}

[data-theme="dark"] .text-gray-400 {
  color: var(--c-text-muted) !important;
}

/* Borders */
[data-theme="dark"] .border-gray-100,
[data-theme="dark"] .border-gray-200,
[data-theme="dark"] .border-gray-300 {
  border-color: var(--c-border) !important;
}

/* Header */
[data-theme="dark"] #main-header {
  background-color: var(--c-bg-header) !important;
  border-bottom-color: var(--c-border) !important;
}

/* Footer */
[data-theme="dark"] footer {
  background-color: var(--c-bg-footer) !important;
}

[data-theme="dark"] footer .text-gray-400 {
  color: var(--c-text-footer) !important;
}

[data-theme="dark"] footer .text-gray-500 {
  color: var(--c-text-footer) !important;
}

/* Cards / Articles */
[data-theme="dark"] article.bg-white,
[data-theme="dark"] .card-bg {
  background-color: var(--c-bg-card) !important;
}

/* Form inputs */
[data-theme="dark"] input:not([type="color"]):not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background-color: var(--c-bg-card);
  border-color: var(--c-border);
  color: var(--c-text-body);
}

/* Dividers */
[data-theme="dark"] .divide-gray-100>*+*,
[data-theme="dark"] .divide-gray-200>*+* {
  border-color: var(--c-border) !important;
}

/* ═══════════════════════════════════════════════
   Review Badges (hero subtitle)
═══════════════════════════════════════════════ */
.review-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #4b5563;
  font-family: Arial, Helvetica, sans-serif;
  transition: color 0.2s ease;
}

.review-badge:hover {
  color: #111827;
}

.review-badge__logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
}

.review-badge__logo span {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.review-badge__stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-badge__star {
  width: 16px;
  height: 16px;
  display: block;
  fill: #facc15;
  stroke: #facc15;
}

.review-badge__text {
  font-size: 14px;
  line-height: 1.3;
  color: #4b5563;
  transition: color 0.2s ease;
}

.review-badge:hover .review-badge__text {
  color: #111827;
}

.review-badge__brand {
  font-weight: 500;
}

.review-badge-g2 .review-badge__logo {
  background: #ff4925;
}

.review-badge-g2 .review-badge__brand {
  color: #ff4925;
}

.review-badge-sourceforge .review-badge__logo {
  background: #ff6d00;
}

.review-badge-sourceforge .review-badge__brand {
  color: #ff6d00;
}

.review-badge-capterra .review-badge__logo {
  background: #0aad0a;
}

.review-badge-capterra .review-badge__brand {
  color: #0aad0a;
}

/* ═══════════════════════════════════════════════
   WhatsApp Floating Button
═══════════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: #25D366;
  color: #fff;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem 0.75rem 0.875rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .45);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}

.whatsapp-fab:hover {
  background: #1ebe5c;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(37, 211, 102, .55);
}

.whatsapp-fab svg {
  flex-shrink: 0;
}

@keyframes wa-pulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, .45);
  }

  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, .75), 0 0 0 8px rgba(37, 211, 102, .12);
  }
}

.whatsapp-fab {
  animation: wa-pulse 2.5s ease-in-out infinite;
}

.whatsapp-fab:hover {
  animation: none;
}

.logo-footer svg {
  top: -2px;
  position: relative;
}
/* ============================================================
   Popup System
   ============================================================ */


/* Blue highlight inside popup title */
.popup-blue { color: var(--c-primary, #3b82f6); }

/* Common input style inside popup */
.popup-input {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.popup-input:focus {
  outline: none;
  border-color: var(--c-primary, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.popup-input::placeholder { color: #9ca3af; }

/* Submit button — uses site theme primary color */
.popup-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background-color: var(--c-primary, #3b82f6);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s, opacity 0.15s;
  font-family: inherit;
}
.popup-submit-btn:hover { background-color: var(--c-primary-hover, #2563eb); }
.popup-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* Popup card animation — runs when popup becomes visible */
.popup-visible > div:last-child {
  animation: popup-card-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes popup-card-in {
  from { opacity: 0; transform: scale(0.88) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* ── Dynamic field wrappers ──────────────────────────────────────────────── */
.popup-field-wrap { margin-bottom: 0.75rem; }
.popup-field-wrap:last-child { margin-bottom: 0; }

.popup-field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.3rem;
}

/* Error state */
.popup-input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

/* Select */
.popup-input[type="select"],
select.popup-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

/* Radio group */
.popup-radio-group { display: flex; flex-direction: column; gap: 0.4rem; }
.popup-radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
  padding: 0.35rem 0;
}
.popup-radio-label input[type="radio"] {
  width: 16px; height: 16px;
  accent-color: var(--c-primary, #3b82f6);
  flex-shrink: 0;
}

/* Checkbox group */
.popup-checkbox-group { display: flex; flex-direction: column; gap: 0.4rem; }
.popup-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
  padding: 0.35rem 0;
}
.popup-checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--c-primary, #3b82f6);
  flex-shrink: 0;
  border-radius: 4px;
}

/* ── Multi-step progress bar ────────────────────────────────────────────────── */
.popup-steps-progress {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 1rem;
}
.popup-steps-progress > div {
  display: flex;
  align-items: center;
}
.popup-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}
.popup-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  background: #e5e7eb;
  color: #9ca3af;
  transition: background 0.2s, color 0.2s;
}
.popup-step-dot.active   .popup-step-num { background: var(--c-primary, #3b82f6); color: #fff; }
.popup-step-dot.completed .popup-step-num { background: #d1fae5; color: #059669; }
.popup-step-label {
  font-size: 0.625rem;
  color: #9ca3af;
  white-space: nowrap;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.popup-step-dot.active   .popup-step-label { color: var(--c-primary, #3b82f6); }
.popup-step-dot.completed .popup-step-label { color: #059669; }
.popup-step-line {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  margin: 0 0.25rem;
  border-radius: 1px;
  transition: background 0.2s;
  margin-bottom: 1rem; /* align with num circle */
}
.popup-step-line.completed { background: #d1fae5; }

/* Prev button */
.popup-prev-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.popup-prev-btn:hover { background: #e5e7eb; }

/* ===== SITE FORMS (Dynamic Form Builder) ===================================
   Applies to forms rendered by render_form() in form_helpers.php
   ========================================================================= */

.site-form-wrapper {
  width: 100%;
}

.site-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.site-form-subtitle {
  font-size: 0.9375rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Row (two half-width fields side by side) */
.site-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .site-form-row { grid-template-columns: 1fr; }
}

/* Field wrapper */
.site-form-field {
  margin-bottom: 1rem;
}
.site-form-field--half { margin-bottom: 0; }

/* Labels */
.site-form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}

.site-form-required {
  color: #ef4444;
  margin-left: 2px;
}

/* Inputs */
.site-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  color: #111827;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

.site-form-input:focus {
  border-color: var(--c-primary, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.site-form-input::placeholder { color: #9ca3af; }

select.site-form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* Radio & Checkbox groups */
.site-form-radio-group,
.site-form-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-form-radio-label,
.site-form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: #374151;
  cursor: pointer;
  line-height: 1.5;
}

.site-form-radio-label input,
.site-form-checkbox-label input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--c-primary, #3b82f6);
  width: 16px;
  height: 16px;
}

/* GDPR / consent */
.site-form-field--consent {
  padding: 0.875rem 1rem;
  background: #f8faff;
  border: 1px solid #dbeafe;
  border-radius: 0.625rem;
  margin-bottom: 1rem;
}

.site-form-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  line-height: 1.5;
}

.site-form-consent-check {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--c-primary, #3b82f6);
  width: 16px;
  height: 16px;
}

/* Divider */
.site-form-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-form-divider::before,
.site-form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* Submit button */
.site-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background-color: var(--c-primary, #3b82f6);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
  font-family: inherit;
  margin-top: 0.5rem;
}

.site-form-submit:hover {
  background-color: var(--c-primary-dark, #2563eb);
}

.site-form-submit:active { transform: scale(0.98); }
.site-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success / error message */
.site-form-message {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-top: 1rem;
}

.site-form-message.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.site-form-message.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* reCAPTCHA */
.g-recaptcha {
  margin: 0.75rem 0;
}

/* Honeypot (invisible to users) */
.site-form-honeypot { display: none !important; }

/* ── Form success toast ─────────────────────────────────────────────────────── */
@keyframes form-toast-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

.site-form-message.success {
  animation: form-toast-in .3s ease both;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #166534;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.site-form-message.success::before {
  content: '✅';
  flex-shrink: 0;
  font-size: 1.1em;
}

.site-form-message.error {
  animation: form-toast-in .2s ease both;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #991b1b;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.site-form-message.error::before {
  content: '⚠️';
  flex-shrink: 0;
}

/* ── Docs Content ─────────────────────────────────────────────────────────── */
.docs-content h2{font-size:1.5rem;font-weight:700;color:#111827;margin-top:2rem;margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:1px solid #e5e7eb}
.docs-content h3{font-size:1.125rem;font-weight:600;color:#1f2937;margin-top:1.5rem;margin-bottom:.5rem}
.docs-content h4{font-size:1rem;font-weight:600;color:#374151;margin-top:1.25rem;margin-bottom:.4rem}
.docs-content p{color:#374151;line-height:1.75;margin-bottom:1rem}
.docs-content ul,.docs-content ol{margin:.75rem 0 1rem 1.5rem;color:#374151;line-height:1.75}
.docs-content li{margin-bottom:.25rem}
.docs-content ul{list-style-type:disc}
.docs-content ol{list-style-type:decimal}
.docs-content code{font-family:monospace;font-size:.875rem;background:#f3f4f6;padding:.125rem .375rem;border-radius:4px;color:#be185d}
.docs-content pre{background:#1f2937;color:#f9fafb;padding:1rem 1.25rem;border-radius:8px;overflow-x:auto;margin:1rem 0;font-size:.85rem;line-height:1.6}
.docs-content pre code{background:none;padding:0;color:inherit;font-size:inherit}
.docs-content a{color:#3b82f6;text-decoration:underline;text-underline-offset:2px}
.docs-content a:hover{color:#1d4ed8}
.docs-content strong{font-weight:700;color:#111827}
.docs-content hr{border:none;border-top:1px solid #e5e7eb;margin:1.5rem 0}
.docs-content figure{margin:1.25rem 0;text-align:center}
.docs-content figure img{max-width:100%;border-radius:8px;border:1px solid #e5e7eb;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.docs-content figcaption{font-size:.8rem;color:#6b7280;margin-top:.4rem;font-style:italic}
.docs-note{background:#eff6ff;border-left:4px solid #3b82f6;padding:.75rem 1rem;border-radius:0 6px 6px 0;margin:1rem 0}
.docs-note p{margin:0;color:#1e40af}
.docs-warning{background:#fffbeb;border-left:4px solid #f59e0b;padding:.75rem 1rem;border-radius:0 6px 6px 0;margin:1rem 0}
.docs-warning p{margin:0;color:#92400e}
.docs-sidebar-section{border-bottom:1px solid #f3f4f6}
.docs-sidebar-section:last-child{border-bottom:none}
.docs-layout{min-height:calc(100vh - 4rem)}

.header-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ── Multi-Vendor comparison table ──────────────────────────────────────────── */
.mv-compare-table {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.mv-compare-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.mv-compare-table thead tr {
    background: #1e293b;
    color: #fff;
}
.mv-compare-table thead th {
    padding: 12px 16px;
    font-weight: 600;
    text-align: left;
}
.mv-compare-table thead th.center {
    text-align: center;
}
.mv-compare-table thead th.highlight {
    background: #3b82f6;
    color: #fff;
}
.mv-compare-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}
.mv-compare-table tbody tr:hover {
    background: #f8fafc;
}
.mv-compare-table tbody tr.shared {
    background: #f8fafc;
    color: #64748b;
}
.mv-compare-table tbody td {
    padding: 10px 16px;
    vertical-align: middle;
}
.mv-compare-table tbody td.center {
    text-align: center;
}
.mv-compare-table tbody td.highlight {
    background: #eff6ff;
    font-weight: 500;
}
.mv-compare-table .check-mark {
    color: #22c55e;
    font-size: 1.1rem;
    font-weight: 700;
}
.mv-compare-table .x-mark {
    color: #cbd5e1;
    font-size: 1.1rem;
}
