/* ============================================================
   CFG shared components - sticky CTA, FAQ, timeline, exit-intent
   ============================================================ */

/* ---------- Sticky scroll CTA bar ---------- */
.cfg-sticky-cta {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%) translateY(140%);
  z-index: 60;
  display: inline-flex; align-items: center; gap: 0.85rem; flex-wrap: nowrap;
  padding: 8px 8px 8px 22px;
  background: rgba(11, 26, 59, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(20, 196, 208, 0.28);
  border-radius: 999px;
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(11, 26, 59, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: 'Poppins', sans-serif;
  color: #fff;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0; pointer-events: none; max-width: calc(100vw - 24px);
}
.cfg-sticky-cta.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.cfg-sticky-cta__text {
  font-size: 0.85rem; font-weight: 500; letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cfg-sticky-cta__text strong { font-weight: 600; color: #6FE4D0; }
.cfg-sticky-cta__btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #14C4D0; color: #0B1A3B;
  font-size: 0.82rem; font-weight: 600; letter-spacing: -0.005em;
  padding: 0.6rem 1.1rem; border-radius: 999px; text-decoration: none;
  box-shadow: 0 6px 16px -4px rgba(20, 196, 208, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap; flex-shrink: 0;
}
.cfg-sticky-cta__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -4px rgba(20, 196, 208, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.cfg-sticky-cta__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: transparent; color: rgba(255, 255, 255, 0.6); border: 0; cursor: pointer;
  margin-left: 0.25rem; flex-shrink: 0; transition: background 0.18s ease, color 0.18s ease;
}
.cfg-sticky-cta__close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
@media (max-width: 640px) {
  .cfg-sticky-cta { padding: 6px 6px 6px 16px; bottom: 14px; }
  .cfg-sticky-cta__text { font-size: 0.78rem; }
  .cfg-sticky-cta__text-long { display: none; }
  .cfg-sticky-cta__btn { font-size: 0.78rem; padding: 0.55rem 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cfg-sticky-cta { transition: none; }
}

/* ---------- FAQ accordion ---------- */
.cfg-faq { display: flex; flex-direction: column; gap: 0.65rem; }
.cfg-faq__item {
  background: #fff; border: 1px solid rgba(11, 26, 59, 0.08);
  border-radius: 14px; overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.cfg-faq__item[open] { border-color: rgba(20, 196, 208, 0.4);
  box-shadow: 0 6px 18px -8px rgba(20, 196, 208, 0.18), 0 2px 6px rgba(11, 26, 59, 0.04);
}
.cfg-faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1rem;
  color: #0B1A3B; letter-spacing: -0.005em; line-height: 1.35;
  transition: color 0.18s ease;
}
.cfg-faq__item summary::-webkit-details-marker { display: none; }
.cfg-faq__item summary::marker { content: ''; }
.cfg-faq__item:hover summary { color: #0D5692; }
.cfg-faq__item[open] summary { color: #0D5692; }
.cfg-faq__icon {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: rgba(20, 196, 208, 0.12); color: #0D5692;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}
.cfg-faq__item[open] .cfg-faq__icon { transform: rotate(45deg); background: #14C4D0; color: #0B1A3B; }
.cfg-faq__body {
  padding: 0 1.4rem 1.3rem;
  font-family: 'Lora', Georgia, serif; font-size: 0.95rem; line-height: 1.6;
  color: rgba(74, 74, 74, 0.85);
  animation: cfgFaqReveal 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.cfg-faq__body p { margin-bottom: 0.65rem; }
.cfg-faq__body p:last-child { margin-bottom: 0; }
.cfg-faq__body a { color: #0D5692; text-decoration: underline; }
@keyframes cfgFaqReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cfg-faq__icon, .cfg-faq__body { transition: none; animation: none; }
}

/* ---------- Auto-upgrade existing .faq-item details to new accordion style ---------- */
details.faq-item {
  background: #fff;
  border: 1px solid rgba(11, 26, 59, 0.08) !important;
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 0.65rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: none !important;
}
details.faq-item[open] {
  border-color: rgba(20, 196, 208, 0.4) !important;
  box-shadow: 0 6px 18px -8px rgba(20, 196, 208, 0.18), 0 2px 6px rgba(11, 26, 59, 0.04) !important;
}
details.faq-item > summary.faq-question,
details.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem !important;
  font-family: 'Poppins', sans-serif !important; font-weight: 600 !important;
  font-size: 1rem !important;
  color: #0B1A3B !important; letter-spacing: -0.005em; line-height: 1.35 !important;
  transition: color 0.18s ease;
  background: transparent !important;
}
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item > summary::marker { content: ''; }
details.faq-item:hover > summary { color: #0D5692 !important; background: transparent !important; }
details.faq-item[open] > summary { color: #0D5692 !important; }

/* Replace the existing summary chevron icon with a brand-styled plus */
details.faq-item > summary > svg {
  width: 26px !important; height: 26px !important;
  border-radius: 50%;
  background: rgba(20, 196, 208, 0.12);
  padding: 6px;
  color: #0D5692 !important;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, color 0.25s ease;
}
details.faq-item[open] > summary > svg {
  transform: rotate(180deg);
  background: #14C4D0;
  color: #0B1A3B !important;
}

/* Style the FAQ answer body */
details.faq-item > .faq-answer,
details.faq-item > div:not(summary):not(.faq-question) {
  padding: 0 1.4rem 1.3rem !important;
  font-family: 'Lora', Georgia, serif !important;
  font-size: 0.95rem !important; line-height: 1.6 !important;
  color: rgba(74, 74, 74, 0.85) !important;
  background: transparent !important;
}

@media (prefers-reduced-motion: reduce) {
  details.faq-item, details.faq-item > summary > svg { transition: none; }
}

/* ---------- 7-day timeline (horizontal stepper) ---------- */
.cfg-timeline { position: relative; max-width: 1200px; margin: 0 auto; padding: 1.5rem 0 0.5rem; }
.cfg-timeline__rail {
  position: absolute; top: 28px; left: 5%; right: 5%; height: 2px;
  background: linear-gradient(90deg,
    rgba(20, 196, 208, 0.0) 0%,
    rgba(20, 196, 208, 0.5) 8%,
    rgba(111, 228, 208, 0.6) 50%,
    rgba(20, 196, 208, 0.5) 92%,
    rgba(20, 196, 208, 0.0) 100%);
  pointer-events: none;
}
.cfg-timeline__rail::after {
  content: ''; position: absolute; inset: -1px 0; height: 4px;
  background: linear-gradient(90deg, transparent 0%, rgba(20, 196, 208, 0.45) 50%, transparent 100%);
  filter: blur(3px); opacity: 0.7;
}
.cfg-timeline__steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
  position: relative; z-index: 1;
}
@media (max-width: 1024px) { .cfg-timeline__steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (max-width: 640px) { .cfg-timeline__steps { grid-template-columns: repeat(2, 1fr); gap: 1rem; } .cfg-timeline__rail { display: none; } }
.cfg-step {
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 0.5rem;
}
.cfg-step__node {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(11, 26, 59, 0.06);
  border: 1px solid rgba(20, 196, 208, 0.35);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.95rem;
  color: #0B1A3B; letter-spacing: -0.01em; line-height: 1;
  position: relative;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 20px -6px rgba(20, 196, 208, 0.18);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.cfg-step:hover .cfg-step__node { transform: translateY(-2px) scale(1.05); }
.cfg-step__node--accent {
  background: linear-gradient(135deg, #14C4D0 0%, #6FE4D0 100%);
  border-color: rgba(255, 255, 255, 0.45); color: #0B1A3B;
  box-shadow: 0 14px 32px -10px rgba(20, 196, 208, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.cfg-step__day {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(13, 86, 146, 0.85); margin-top: 1rem;
}
.cfg-step__title {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.95rem;
  color: #0B1A3B; margin-top: 0.25rem; letter-spacing: -0.01em; line-height: 1.3;
}
.cfg-step__desc {
  font-family: 'Lora', Georgia, serif; font-size: 0.8125rem; line-height: 1.45;
  color: rgba(74, 74, 74, 0.75); margin-top: 0.4rem;
}

/* ---------- Mobile overflow safety on tables (prevents page-wide horizontal scroll) ---------- */
@media (max-width: 768px) {
  table.pricing-table, table.comparison-table, .prose table {
    display: block; max-width: 100%; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---------- Animated icons inside service / feature cards ---------- */
/* Targets icon containers in cards (the colored rounded square pattern used on
   service hub, services pages, and industry pages). On card hover: gentle
   scale + drift, with the inner SVG rotating slightly. */
.bg-white.rounded-xl .w-12.h-12.rounded-xl,
.bg-white.rounded-2xl .w-12.h-12.rounded-xl,
.feature-card .feature-card__icon,
.bento-card .w-12.h-12.rounded-xl {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}
.bg-white.rounded-xl:hover .w-12.h-12.rounded-xl,
.bg-white.rounded-2xl:hover .w-12.h-12.rounded-xl,
.feature-card:hover .feature-card__icon,
.bento-card:hover .w-12.h-12.rounded-xl {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 12px 24px -10px rgba(20, 196, 208, 0.35);
}
.bg-white.rounded-xl .w-12.h-12.rounded-xl > svg,
.bg-white.rounded-2xl .w-12.h-12.rounded-xl > svg,
.feature-card .feature-card__icon > svg,
.bento-card .w-12.h-12.rounded-xl > svg {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.bg-white.rounded-xl:hover .w-12.h-12.rounded-xl > svg,
.bg-white.rounded-2xl:hover .w-12.h-12.rounded-xl > svg,
.feature-card:hover .feature-card__icon > svg,
.bento-card:hover .w-12.h-12.rounded-xl > svg {
  transform: rotate(-6deg) scale(1.1);
}
@media (prefers-reduced-motion: reduce) {
  .feature-card .feature-card__icon, .bento-card .w-12.h-12.rounded-xl,
  .feature-card .feature-card__icon > svg { transition: none; transform: none !important; }
}

/* ---------- 3D card tilt (mouse parallax) — opt-in via .cfg-tilt class ---------- */
.cfg-tilt {
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
  will-change: transform;
}
.cfg-tilt > * { transform: translateZ(0); }
@media (prefers-reduced-motion: reduce) {
  .cfg-tilt { transition: none; transform: none !important; }
}

/* ---------- Universal card upgrade — spotlight hover + lift ---------- */
/* Targets the generic service-page / case-study / blog card patterns:
   .bg-white + (.rounded-xl or .rounded-2xl) + .border. Conservative scope so
   it only enhances cards, not random divs. */
.bg-white.rounded-xl.border,
.bg-white.rounded-2xl.border,
.bg-white.rounded-xl[class*="border-"],
.bg-white.rounded-2xl[class*="border-"] {
  position: relative;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.32s ease,
              border-color 0.32s ease;
}
.bg-white.rounded-xl.border::before,
.bg-white.rounded-2xl.border::before,
.bg-white.rounded-xl[class*="border-"]::before,
.bg-white.rounded-2xl[class*="border-"]::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  opacity: 0; transition: opacity 0.4s ease;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%),
              rgba(20, 196, 208, 0.15) 0%, transparent 50%);
}
.bg-white.rounded-xl.border:hover,
.bg-white.rounded-2xl.border:hover,
.bg-white.rounded-xl[class*="border-"]:hover,
.bg-white.rounded-2xl[class*="border-"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px -20px rgba(11, 26, 59, 0.16),
              0 8px 20px rgba(11, 26, 59, 0.06) !important;
  border-color: rgba(20, 196, 208, 0.35) !important;
}
.bg-white.rounded-xl.border:hover::before,
.bg-white.rounded-2xl.border:hover::before,
.bg-white.rounded-xl[class*="border-"]:hover::before,
.bg-white.rounded-2xl[class*="border-"]:hover::before {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .bg-white.rounded-xl.border, .bg-white.rounded-2xl.border,
  .bg-white.rounded-xl[class*="border-"], .bg-white.rounded-2xl[class*="border-"] {
    transition: none;
  }
}

/* Glass-CTA banner that gets auto-injected at end of service pages */
.cfg-page-cta {
  position: relative;
  max-width: 1100px;
  margin: clamp(3rem, 6vw, 5rem) auto;
  padding: clamp(2rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(135deg, rgba(13, 86, 146, 0.6) 0%, rgba(11, 26, 59, 0.78) 100%);
  border: 1px solid rgba(20, 196, 208, 0.3);
  border-radius: 22px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 35px 80px -25px rgba(0, 0, 0, 0.45),
              0 12px 28px rgba(11, 26, 59, 0.35);
  overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2.5rem); flex-wrap: wrap;
  font-family: 'Poppins', sans-serif;
  color: #fff;
}
.cfg-page-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 100% 0%,
              rgba(20, 196, 208, 0.25) 0%, transparent 60%);
}
.cfg-page-cta__copy { flex: 1 1 320px; min-width: 0; position: relative; z-index: 1; }
.cfg-page-cta__eyebrow {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.36em;
  color: #6FE4D0; text-transform: uppercase; margin-bottom: 0.5rem;
}
.cfg-page-cta__title {
  font-size: clamp(1.4rem, 1.5vw + 0.85rem, 2rem);
  font-weight: 600; line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 0.55rem; color: #fff;
}
.cfg-page-cta__title em { color: #6FE4D0; font-style: normal; }
.cfg-page-cta__sub {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.9rem, 0.3vw + 0.85rem, 1rem);
  line-height: 1.55; color: rgba(255, 255, 255, 0.78);
  margin: 0; max-width: 540px;
}
.cfg-page-cta__actions {
  display: flex; gap: 0.85rem; flex-wrap: wrap; align-items: center;
  position: relative; z-index: 1;
}
.cfg-page-cta__primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #14C4D0; color: #0B1A3B;
  font-weight: 600; font-size: 0.95rem;
  padding: 0.95rem 1.6rem; border-radius: 999px;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 14px 32px -10px rgba(20, 196, 208, 0.55),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cfg-page-cta__primary:hover { transform: translateY(-1px); }
.cfg-page-cta__secondary {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: #6FE4D0; font-weight: 600; font-size: 0.9rem;
  padding: 0.95rem 0.5rem; text-decoration: none;
  transition: color 0.2s ease; white-space: nowrap;
}
.cfg-page-cta__secondary:hover { color: #fff; }
@media (max-width: 720px) {
  .cfg-page-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .cfg-page-cta__sub { margin-inline: auto; }
  .cfg-page-cta__actions { justify-content: center; }
}

/* ---------- Blog post layout polish ---------- */
.cfg-blog-meta {
  display: inline-flex; align-items: center; gap: 0.85rem; flex-wrap: wrap;
  padding: 0.55rem 1rem; margin: 0 auto 1.5rem;
  background: rgba(20, 196, 208, 0.08);
  border: 1px solid rgba(20, 196, 208, 0.2);
  border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-size: 0.78rem; font-weight: 500;
  color: #0D5692; letter-spacing: 0.02em;
}
.cfg-blog-meta__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.cfg-blog-meta__sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(13, 86, 146, 0.35); }

/* Animated section divider above each h2 in .prose */
article.prose h2 + *,
.prose h2 + * { margin-top: 0.85rem; }
.prose > h2 {
  position: relative;
  padding-top: 0.65rem;
}
.prose > h2::before {
  content: ''; position: absolute; top: -1.25rem; left: 0;
  width: 56px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #0D5692 0%, #14C4D0 50%, #6FE4D0 100%);
  opacity: 0; transform: scaleX(0); transform-origin: left;
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.prose > h2.in-view::before { opacity: 1; transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .prose > h2::before { opacity: 1; transform: scaleX(1); transition: none; }
}

/* Sticky TOC sidebar */
.cfg-toc {
  position: sticky; top: 100px;
  width: 240px; padding: 1rem 1.1rem 1rem 1rem;
  background: #fff; border: 1px solid rgba(11, 26, 59, 0.08);
  border-radius: 14px;
  font-family: 'Poppins', sans-serif;
  max-height: calc(100vh - 130px); overflow-y: auto;
}
.cfg-toc__title {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(13, 86, 146, 0.85); margin-bottom: 0.7rem;
}
.cfg-toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.cfg-toc__link {
  display: block; padding: 0.45rem 0.6rem; border-radius: 8px;
  font-size: 0.82rem; font-weight: 500; line-height: 1.35; text-decoration: none;
  color: rgba(11, 26, 59, 0.7); border-left: 2px solid transparent;
  transition: all 0.2s ease;
}
.cfg-toc__link:hover { background: rgba(20, 196, 208, 0.08); color: #0D5692; }
.cfg-toc__link.is-active {
  background: rgba(20, 196, 208, 0.12); color: #0D5692; font-weight: 600;
  border-left-color: #14C4D0;
}
@media (max-width: 1199px) {
  .cfg-toc { display: none; }
}

/* Layout wrapper - injected article + sidebar */
.cfg-blog-wrap {
  display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem;
  max-width: 1180px; margin: 0 auto;
  align-items: start;
}
@media (max-width: 1199px) {
  .cfg-blog-wrap { display: block; }
}

/* Inline CTA mid-article */
.cfg-inline-cta {
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(13, 86, 146, 0.06) 0%, rgba(20, 196, 208, 0.06) 100%);
  border: 1px solid rgba(20, 196, 208, 0.25); border-radius: 14px;
  display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap;
  font-family: 'Poppins', sans-serif;
}
.cfg-inline-cta__icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #14C4D0 0%, #6FE4D0 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #0B1A3B;
  box-shadow: 0 6px 16px -6px rgba(20, 196, 208, 0.55);
}
.cfg-inline-cta__copy { flex: 1 1 260px; min-width: 0; }
.cfg-inline-cta__title {
  font-size: 1rem; font-weight: 600; color: #0B1A3B; line-height: 1.3;
  letter-spacing: -0.01em; margin: 0 0 0.25rem;
}
.cfg-inline-cta__sub {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.875rem; line-height: 1.5;
  color: rgba(74, 74, 74, 0.85); margin: 0;
}
.cfg-inline-cta__btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #0B1A3B; color: #fff;
  font-size: 0.85rem; font-weight: 600; letter-spacing: -0.005em;
  padding: 0.7rem 1.2rem; border-radius: 999px; text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.cfg-inline-cta__btn:hover { background: #0D5692; transform: translateY(-1px); }
@media (max-width: 600px) {
  .cfg-inline-cta { flex-direction: column; align-items: flex-start; padding: 1.25rem; }
  .cfg-inline-cta__btn { align-self: flex-start; }
}

/* ---------- Exit-intent / scroll-depth slide-up panel ---------- */
.cfg-leadcap {
  position: fixed; bottom: 22px; right: 22px; z-index: 70;
  width: min(360px, calc(100vw - 32px));
  background: #fff; border: 1px solid rgba(20, 196, 208, 0.3); border-radius: 16px;
  box-shadow: 0 30px 70px -20px rgba(11, 26, 59, 0.3), 0 10px 30px rgba(11, 26, 59, 0.12);
  padding: 1.1rem 1.25rem 1.25rem;
  transform: translateY(140%); opacity: 0; pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  font-family: 'Poppins', sans-serif;
}
.cfg-leadcap.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cfg-leadcap__close {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  background: transparent; border: 0; color: rgba(11, 26, 59, 0.55); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}
.cfg-leadcap__close:hover { background: rgba(11, 26, 59, 0.06); color: #0B1A3B; }
.cfg-leadcap__eyebrow {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: #0D5692; margin-bottom: 0.45rem;
}
.cfg-leadcap__title {
  font-size: 1rem; font-weight: 600; color: #0B1A3B; line-height: 1.3; letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.cfg-leadcap__sub {
  font-family: 'Lora', Georgia, serif; font-size: 0.85rem; line-height: 1.5;
  color: rgba(74, 74, 74, 0.85); margin-bottom: 0.85rem;
}
.cfg-leadcap__form { display: flex; gap: 0.4rem; }
.cfg-leadcap__input {
  flex: 1; padding: 0.6rem 0.8rem; border: 1px solid rgba(11, 26, 59, 0.15); border-radius: 8px;
  font-family: 'Poppins', sans-serif; font-size: 0.85rem; color: #0B1A3B; background: #fff;
  outline: none; transition: border-color 0.2s ease;
}
.cfg-leadcap__input:focus { border-color: #14C4D0; }
.cfg-leadcap__btn {
  background: #14C4D0; color: #0B1A3B;
  font-size: 0.82rem; font-weight: 600; padding: 0.6rem 1rem; border-radius: 8px;
  border: 0; cursor: pointer;
  box-shadow: 0 4px 12px -2px rgba(20, 196, 208, 0.45);
  transition: transform 0.18s ease;
}
.cfg-leadcap__btn:hover { transform: translateY(-1px); }
.cfg-leadcap__success {
  font-size: 0.85rem; color: #0D5692; font-weight: 600; padding: 0.5rem 0;
}
@media (prefers-reduced-motion: reduce) { .cfg-leadcap { transition: none; } }

/* ---------- Calendly inline-embed card (contact page) ---------- */
.cfg-calendly-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(20, 196, 208, 0.32);
  border-radius: 20px;
  box-shadow:
    0 24px 60px -28px rgba(11, 26, 59, 0.28),
    0 8px 24px -12px rgba(20, 196, 208, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
  position: relative;
}
.cfg-calendly-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #0D5692 0%, #14C4D0 50%, #6FE4D0 100%);
}
.cfg-calendly-card__header {
  padding: 2rem 1.75rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid rgba(11, 26, 59, 0.06);
}
@media (min-width: 768px) {
  .cfg-calendly-card__header { padding: 2.5rem 2rem 1.5rem; }
}
.cfg-calendly-card__body { padding: 1rem 1rem 1.25rem; }
@media (min-width: 768px) {
  .cfg-calendly-card__body { padding: 1.25rem 1.5rem 1.5rem; }
}
.cfg-calendly-card .calendly-inline-widget {
  min-width: 280px;
  width: 100%;
  height: 700px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
@media (max-width: 640px) {
  .cfg-calendly-card .calendly-inline-widget { height: 760px; }
}
.cfg-calendly-card__fallback {
  margin-top: 0.85rem; text-align: center;
  font-family: 'Poppins', sans-serif; font-size: 0.78rem;
  color: rgba(74, 74, 74, 0.65);
}
.cfg-calendly-card__fallback a { color: #0D5692; text-decoration: underline; }
.cfg-calendly-card__fallback a:hover { color: #0AACD4; }

/* ---------- Calculator: Calendly call CTA (above email form) ---------- */
.cfg-calc-call-cta {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(13, 86, 146, 0.06) 0%, rgba(20, 196, 208, 0.08) 100%);
  border: 1px solid rgba(20, 196, 208, 0.32);
  border-radius: 14px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cfg-calc-call-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 196, 208, 0.55);
  box-shadow: 0 10px 26px -14px rgba(20, 196, 208, 0.4);
}
.cfg-calc-call-cta__icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #14C4D0 0%, #6FE4D0 100%);
  color: #0B1A3B;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px -6px rgba(20, 196, 208, 0.5);
}
.cfg-calc-call-cta__copy { flex: 1 1 auto; min-width: 0; }
.cfg-calc-call-cta__title {
  margin: 0 0 0.15rem; font-size: 0.92rem; font-weight: 600; line-height: 1.35;
  color: #0B1A3B; letter-spacing: -0.005em;
}
.cfg-calc-call-cta__sub {
  margin: 0; font-size: 0.78rem; color: rgba(74, 74, 74, 0.7); line-height: 1.4;
}
.cfg-calc-call-cta__arrow {
  flex-shrink: 0; color: #0D5692;
  transition: transform 0.2s ease;
}
.cfg-calc-call-cta:hover .cfg-calc-call-cta__arrow { transform: translateX(3px); color: #14C4D0; }
@media (max-width: 540px) {
  .cfg-calc-call-cta { padding: 0.85rem 1rem; gap: 0.85rem; }
  .cfg-calc-call-cta__icon { width: 38px; height: 38px; }
  .cfg-calc-call-cta__title { font-size: 0.85rem; }
  .cfg-calc-call-cta__sub { font-size: 0.74rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cfg-calc-call-cta, .cfg-calc-call-cta__arrow { transition: none; }
  .cfg-calc-call-cta:hover { transform: none; }
}

/* ---------- Chat widget ---------- */
.cfg-chat {
  position: fixed; bottom: 24px; right: 24px; z-index: 65;
  font-family: 'Poppins', sans-serif;
}
.cfg-chat__bubble {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #14C4D0 0%, #6FE4D0 100%);
  border: 0; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #0B1A3B;
  box-shadow:
    0 14px 32px -10px rgba(20, 196, 208, 0.55),
    0 6px 14px -4px rgba(11, 26, 59, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}
.cfg-chat__bubble:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 20px 40px -10px rgba(20, 196, 208, 0.65),
    0 8px 18px -4px rgba(11, 26, 59, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.cfg-chat__bubble:focus-visible {
  outline: 2px solid #0D5692; outline-offset: 3px;
}
.cfg-chat__bubble svg { width: 26px; height: 26px; pointer-events: none; }
.cfg-chat__panel {
  position: absolute; bottom: 72px; right: 0;
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid rgba(20, 196, 208, 0.3);
  border-radius: 16px;
  box-shadow:
    0 30px 70px -20px rgba(11, 26, 59, 0.3),
    0 10px 30px rgba(11, 26, 59, 0.12);
  overflow: hidden;
  transform: translateY(16px) scale(0.98); opacity: 0; pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  transform-origin: bottom right;
}
.cfg-chat.is-open .cfg-chat__panel {
  transform: translateY(0) scale(1); opacity: 1; pointer-events: auto;
}
.cfg-chat__header {
  padding: 1rem 1.1rem 0.85rem;
  background: linear-gradient(135deg, #0B1A3B 0%, #0D5692 100%);
  color: #fff; position: relative;
}
.cfg-chat__header-title {
  margin: 0; font-size: 0.98rem; font-weight: 600; letter-spacing: -0.005em;
}
.cfg-chat__header-sub {
  margin: 0.2rem 0 0; font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.78); font-weight: 400;
}
.cfg-chat__close {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 0; cursor: pointer;
  color: rgba(255, 255, 255, 0.78);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}
.cfg-chat__close:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.cfg-chat__close svg { width: 14px; height: 14px; }
.cfg-chat__body { padding: 1rem 1.1rem 1.1rem; }
.cfg-chat__form { display: flex; flex-direction: column; gap: 0.6rem; }
.cfg-chat__field {
  width: 100%; padding: 0.6rem 0.8rem;
  border: 1px solid rgba(11, 26, 59, 0.15); border-radius: 10px;
  font-family: 'Poppins', sans-serif; font-size: 0.85rem; color: #0B1A3B;
  background: #fff; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.cfg-chat__field:focus {
  border-color: #14C4D0;
  box-shadow: 0 0 0 3px rgba(20, 196, 208, 0.18);
}
.cfg-chat__textarea { resize: vertical; min-height: 88px; max-height: 200px; line-height: 1.45; }
.cfg-chat__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: #14C4D0; color: #0B1A3B;
  font-family: 'Poppins', sans-serif; font-size: 0.85rem; font-weight: 600;
  padding: 0.7rem 1rem; border-radius: 10px;
  border: 0; cursor: pointer;
  box-shadow: 0 6px 14px -4px rgba(20, 196, 208, 0.5);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.cfg-chat__btn:hover { transform: translateY(-1px); background: #6FE4D0; }
.cfg-chat__btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.cfg-chat__error {
  font-size: 0.74rem; color: #b54040; margin: 0.1rem 0 0; min-height: 0;
}
.cfg-chat__success {
  text-align: center; padding: 0.5rem 0 0.25rem;
}
.cfg-chat__success-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(20, 196, 208, 0.14);
  display: inline-flex; align-items: center; justify-content: center;
  color: #0D5692; margin-bottom: 0.7rem;
}
.cfg-chat__success-icon svg { width: 22px; height: 22px; }
.cfg-chat__success-title {
  margin: 0 0 0.25rem; font-size: 0.95rem; font-weight: 600; color: #0B1A3B;
}
.cfg-chat__success-sub {
  margin: 0; font-family: 'Lora', Georgia, serif;
  font-size: 0.83rem; line-height: 1.5; color: rgba(74, 74, 74, 0.8);
}
@media (max-width: 480px) {
  .cfg-chat { bottom: 18px; right: 18px; }
  .cfg-chat__bubble { width: 52px; height: 52px; }
  .cfg-chat__panel { bottom: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .cfg-chat__bubble, .cfg-chat__panel { transition: none; }
  .cfg-chat__bubble:hover { transform: none; }
}

/* ============================================================
   Resource gating modal: /resources/ email-capture overlay
   ============================================================ */
.cfg-resgate-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(11, 26, 59, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; transition: opacity 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cfg-resgate-overlay.is-visible { opacity: 1; }
body.cfg-resgate-open { overflow: hidden; }

.cfg-resgate-modal {
  position: relative;
  width: 100%; max-width: 420px;
  background: #ffffff; border-radius: 16px;
  padding: 2rem 1.75rem 1.5rem;
  box-shadow: 0 24px 60px -12px rgba(11, 26, 59, 0.35),
              0 0 0 1px rgba(11, 26, 59, 0.05);
  transform: translateY(8px);
  transition: transform 0.22s ease;
  font-family: 'Poppins', sans-serif;
}
.cfg-resgate-overlay.is-visible .cfg-resgate-modal { transform: translateY(0); }

.cfg-resgate-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 32px; height: 32px; border-radius: 8px;
  border: 0; background: transparent; cursor: pointer;
  color: rgba(11, 26, 59, 0.5);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.cfg-resgate-close:hover { background: rgba(11, 26, 59, 0.06); color: #0B1A3B; }

.cfg-resgate-eyebrow {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #14C4D0; margin-bottom: 0.5rem;
}
.cfg-resgate-title {
  font-size: 1.25rem; line-height: 1.35; font-weight: 700;
  color: #0B1A3B; margin: 0 0 0.5rem;
}
.cfg-resgate-sub {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9rem; line-height: 1.55;
  color: rgba(11, 26, 59, 0.7); margin: 0 0 1.1rem;
}
.cfg-resgate-form {
  display: flex; flex-direction: column; gap: 0.6rem;
}
.cfg-resgate-input {
  width: 100%; padding: 0.75rem 0.95rem;
  border: 1.5px solid rgba(11, 26, 59, 0.15);
  border-radius: 10px; font-size: 0.95rem; color: #0B1A3B;
  font-family: 'Poppins', sans-serif;
  outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cfg-resgate-input:focus {
  border-color: #14C4D0;
  box-shadow: 0 0 0 3px rgba(20, 196, 208, 0.18);
}
.cfg-resgate-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  border: 0; border-radius: 10px;
  background: #0D5692; color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.cfg-resgate-btn:hover { background: #0B1A3B; transform: translateY(-1px); }
.cfg-resgate-btn:disabled {
  opacity: 0.7; cursor: not-allowed; transform: none;
}
.cfg-resgate-error {
  margin: 0.4rem 0 0; padding: 0;
  font-size: 0.82rem; color: #C53030;
}
.cfg-resgate-note {
  margin: 0.85rem 0 0;
  font-size: 0.72rem; line-height: 1.45;
  color: rgba(11, 26, 59, 0.45);
  font-family: 'Poppins', sans-serif;
}
.cfg-resgate-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(20, 196, 208, 0.12);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 0 0.85rem;
}
@media (prefers-reduced-motion: reduce) {
  .cfg-resgate-overlay, .cfg-resgate-modal, .cfg-resgate-btn { transition: none; }
}
