/*
 * Icana.AI — Site v3 Design System ("Clarity")
 * ------------------------------------------------------------------
 * Full visual layer for the 2026 redesign. Loaded INSTEAD of
 * common-bootstrap.css on redesigned pages (blog + landing pages keep
 * the old stylesheet). Requires Bootstrap 5 CDN before it.
 *
 * Works with the unchanged js/common-bootstrap.js hooks:
 *   .navbar.scrolled, .fade-in-element(.visible), .logo-carousel-track,
 *   [counter-element], .bar-fill[data-percentage], #hero-video,
 *   .recognition-scroller, #languageDropdown / [data-lang]
 *
 * Brand source of truth: website/style.html
 *   Indigo scale 50 #EFF1FE … 950 #1B244B, primary btn #3146A3,
 *   accent #4766E5, gradient #4766E5 -> #8299F7.
 *   Raleway = headings, Outfit = body/buttons.
 */

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  /* Indigo scale */
  --in-50:  #EFF1FE;
  --in-100: #E0E6FE;
  --in-200: #C7D2FF;
  --in-300: #A6B4FD;
  --in-400: #8299F7;
  --in-500: #647FF2;
  --in-600: #4766E5;
  --in-700: #3756CB;
  --in-800: #3146A3;
  --in-900: #2D3F7F;
  --in-950: #1B244B;

  /* Semantic */
  --primary-btn: #3146A3;
  --primary-dark: #2D3F7F;
  --accent: #4766E5;
  --ink: #16203F;                 /* headings */
  --body-color: #3F4657;          /* body text — blog-derived readability */
  --muted: #646B80;
  --faint: #8A90A5;
  --line: #E4E8F7;                /* hairlines */
  --tint: #F7F8FE;                /* alt section background */
  --tint-deep: #EFF1FE;
  --grad: linear-gradient(100deg, #4766E5 0%, #8299F7 100%);
  --grad-dark: linear-gradient(160deg, #1B244B 0%, #2D3F7F 78%, #3146A3 100%);

  /* Shape + elevation */
  --r-card: 20px;
  --r-input: 12px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(27, 36, 75, 0.06), 0 2px 8px rgba(27, 36, 75, 0.05);
  --shadow-md: 0 2px 6px rgba(27, 36, 75, 0.06), 0 12px 32px rgba(27, 36, 75, 0.10);
  --shadow-lg: 0 4px 12px rgba(27, 36, 75, 0.08), 0 24px 64px rgba(27, 36, 75, 0.14);

  /* Rhythm */
  --sec-y: clamp(4rem, 3rem + 4vw, 7rem);
  --nav-h: 72px;
}

/* ============================================================
   2. BASE
   ============================================================ */
html { scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;               /* 17px */
  line-height: 1.6;
  color: var(--body-color);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: var(--in-700); }
a:hover { color: var(--in-600); }

::selection { background: var(--in-200); color: var(--in-950); }

/* Section scaffolding */
.v3-section { padding-block: var(--sec-y); }
.v3-section-sm { padding-block: calc(var(--sec-y) * 0.6); }
.v3-tint { background: var(--tint); }
.v3-tint-deep { background: linear-gradient(180deg, var(--tint) 0%, var(--tint-deep) 100%); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--in-600);
  margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.section-eyebrow-center { justify-content: center; }
.section-eyebrow-center::after {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.section-title {
  font-size: clamp(1.75rem, 1.35rem + 1.9vw, 2.625rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46rem;
}
.text-center .section-lead, .section-lead.mx-auto { margin-inline: auto; }

/* Gradient highlight for a phrase inside a heading */
.grad-text {
  background: linear-gradient(95deg, #3756CB 0%, #647FF2 60%, #8299F7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   3. BUTTONS
   ============================================================ */
.btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  border-radius: var(--r-pill);
  padding: 0.8rem 1.65rem;
  font-size: 1rem;
  line-height: 1.2;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
              background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn:focus-visible { outline: 3px solid var(--in-300); outline-offset: 2px; }

.btn-primary {
  background: var(--primary-btn);
  border: 1px solid var(--primary-btn);
  color: #fff;
  box-shadow: 0 6px 18px rgba(49, 70, 163, 0.28);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--in-600);
  border-color: var(--in-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(71, 102, 229, 0.35);
}
.btn-primary:active { background: var(--in-700) !important; border-color: var(--in-700) !important; transform: translateY(0); }

/* Secondary: quiet indigo tint (style.html secondary) */
.btn-secondary {
  background: var(--in-50);
  border: 1px solid var(--in-100);
  color: var(--in-900);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--in-100);
  border-color: var(--in-200);
  color: var(--in-950);
  transform: translateY(-2px);
}

/* Outline: for use on white */
.btn-outline-primary {
  border: 1.5px solid var(--in-300);
  color: var(--in-800);
  background: #fff;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
  background: var(--in-50);
  border-color: var(--in-600);
  color: var(--in-800);
  transform: translateY(-2px);
}

/* Ghost on dark bands */
.btn-ghost-light {
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
}
.btn-ghost-light:hover, .btn-ghost-light:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}
/* White solid on dark bands */
.btn-light-solid {
  background: #fff;
  border: 1px solid #fff;
  color: var(--in-900);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.btn-light-solid:hover, .btn-light-solid:focus {
  background: var(--in-50);
  color: var(--in-950);
  transform: translateY(-2px);
}

.btn-lg { padding: 0.95rem 2.1rem; font-size: 1.0625rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }

/* CTA cluster + trust microcopy */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.cta-note {
  font-size: 0.875rem;
  color: var(--faint);
  margin-top: 0.85rem;
}
.cta-note .star { color: #F0A03C; letter-spacing: 0.05em; }

/* ============================================================
   4. NAVBAR (structure/IDs unchanged for common-bootstrap.js)
   ============================================================ */
.navbar {
  min-height: var(--nav-h);
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  padding-block: 0.6rem;
}
.navbar.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(27, 36, 75, 0.07);
}
.navbar .navbar-brand img { display: block; }

.navbar .nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.9875rem;
  color: var(--in-950);
  padding: 0.55rem 0.9rem !important;
  border-radius: 10px;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap; /* menu labels never break mid-word (es/pt have long labels) */
}
.navbar .btn-demo, .navbar .btn-nav-secondary { white-space: nowrap; }
/* Just above the collapse point, tighten spacing so es/pt labels fit one row */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .navbar .nav-link { padding: 0.55rem 0.55rem !important; font-size: 0.9375rem; }
  .navbar .btn-demo, .navbar .btn-nav-secondary { padding: 0.5rem 0.9rem; font-size: 0.875rem; }
  .navbar .navbar-brand img { width: 110px; }
}
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--in-700); background: var(--in-50); }

.nav-divider { display: none; } /* v3: whitespace instead of divider bars; keeps old markup harmless */

.navbar .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  margin-top: 0.4rem;
}
.navbar .dropdown-item {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  color: var(--in-950);
}
.navbar .dropdown-item:hover { background: var(--in-50); color: var(--in-800); }

/* CTA pair in navbar */
.navbar .btn-demo { padding: 0.55rem 1.2rem; font-size: 0.9375rem; box-shadow: none; }
.navbar .btn-nav-secondary {
  padding: 0.55rem 1.1rem;
  font-size: 0.9375rem;
  border: 1.5px solid var(--in-200);
  color: var(--in-900);
  background: #fff;
  border-radius: var(--r-pill);
  font-weight: 500;
}
.navbar .btn-nav-secondary:hover { border-color: var(--in-600); color: var(--in-800); background: var(--in-50); }

.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--in-200); }

@media (max-width: 1199.98px) {
  /* collapsed (hamburger) below xl: two-line desktop nav never happens */
  .navbar .navbar-collapse {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1rem 1rem;
    margin-top: 0.75rem;
  }
  .navbar .navbar-nav .nav-item.ms-3 { margin-left: 0 !important; margin-top: 0.5rem; }
  .navbar .nav-link { white-space: normal; }
}

/* ============================================================
   5. HERO — homepage ("hero-home") and inner pages ("hero-inner")
   ============================================================ */
.hero-home {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) 0 0;
  background:
    radial-gradient(56rem 30rem at 85% -12%, rgba(130, 153, 247, 0.16), transparent 60%),
    radial-gradient(46rem 26rem at 8% 6%, rgba(199, 210, 254, 0.35), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--tint) 100%);
}
.hero-home .hero-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  color: var(--in-700);
  margin-bottom: 1.1rem;
  min-height: 1.6em;
}
.hero-home .hero-eyebrow .rotator {
  display: inline-block;
  color: var(--in-600);
  border-bottom: 2px solid var(--in-200);
  padding-bottom: 1px;
}
.hero-home .hero-title {
  font-size: clamp(2.35rem, 1.6rem + 3.6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--in-950);
  margin-bottom: 1.25rem;
}
.hero-home .hero-subtitle {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
  max-width: 44rem;
  margin: 0 auto 2rem;
}
.hero-home .hero-visual {
  position: relative;
  margin-top: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
}
.hero-home .hero-visual img,
.hero-home .hero-visual video {
  width: 100%;
  height: auto;
  display: block;
}

/* Browser-chrome frame around hero screenshot/illustration */
.browser-frame {
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: #fff;
}
.browser-frame .chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.browser-frame .chrome i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--in-200);
  display: inline-block;
}
.browser-frame .chrome i:nth-child(2) { background: var(--in-300); }
.browser-frame .chrome i:nth-child(3) { background: var(--in-400); }

/* Floating proof chips over the hero visual */
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 0.6rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--in-950);
  backdrop-filter: blur(6px);
}
.hero-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: #2FA36B; }
@media (max-width: 767.98px) { .hero-chip { display: none; } }

/* Inner-page hero: compact, typographic, tinted */
.hero-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 2.25rem + 3vw, 5.5rem) 0;
  background:
    radial-gradient(44rem 24rem at 90% -20%, rgba(130, 153, 247, 0.18), transparent 60%),
    linear-gradient(180deg, var(--tint) 0%, #fff 100%);
}
.hero-inner .hero-title {
  font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--in-950);
  margin-bottom: 1.1rem;
}
.hero-inner .hero-subtitle {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.55;
  max-width: 42rem;
  margin-bottom: 1.9rem;
}
.hero-inner .hero-media img, .hero-inner .hero-media video {
  width: 100%;
  height: auto;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
}

/* Overlay hero: full-bleed photo (subject on the right), text + CTAs
   over a left-side scrim. The 2026 tester-preferred hero pattern. */
.hero-overlay {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 64vh, 700px);
  padding-block: clamp(3.5rem, 3rem + 3vw, 6rem);
  background: var(--in-950);
  color: #fff;
}
.hero-overlay .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}
.hero-overlay .hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(13, 18, 40, 0.90) 0%,
    rgba(13, 18, 40, 0.72) 36%,
    rgba(13, 18, 40, 0.30) 66%,
    rgba(13, 18, 40, 0.06) 100%);
}
.hero-overlay .container { position: relative; }
.hero-overlay .hero-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 0.92rem + 0.45vw, 1.25rem);
  color: var(--in-300);
  margin-bottom: 1rem;
}
.hero-overlay .hero-eyebrow .rotator {
  color: var(--in-200);
  border-bottom: 2px solid rgba(199, 210, 255, 0.35);
  padding-bottom: 1px;
  display: inline-block;
}
.hero-overlay .hero-title {
  font-size: clamp(2.1rem, 1.5rem + 2.9vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.1rem;
}
/* Compact variant for long multi-sentence headlines */
.hero-overlay .hero-title-compact { font-size: clamp(2rem, 1.35rem + 2.5vw, 3rem); }
@media (min-width: 992px) { .nowrap-lg { white-space: nowrap; } }
.hero-overlay .hero-title .grad-text {
  background: linear-gradient(95deg, #A6B4FD 0%, #E0E6FE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-overlay .hero-subtitle {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin-bottom: 1.9rem;
}
.hero-overlay .cta-note { color: rgba(255, 255, 255, 0.75); }
.hero-overlay .cta-note a { color: rgba(255, 255, 255, 0.75); }
.hero-overlay .cta-note a:hover { color: #fff; }
@media (max-width: 767.98px) {
  .hero-overlay { min-height: 0; }
  .hero-overlay .hero-bg { object-position: 76% center; }
  .hero-overlay .hero-scrim {
    background: linear-gradient(180deg,
      rgba(13, 18, 40, 0.82) 0%,
      rgba(13, 18, 40, 0.72) 60%,
      rgba(13, 18, 40, 0.84) 100%);
  }
}

/* Dark hero variant (used sparingly) */
.hero-dark {
  background: var(--grad-dark);
  color: #fff;
}
.hero-dark .hero-title, .hero-dark h1, .hero-dark h2 { color: #fff; }
.hero-dark .hero-subtitle { color: var(--in-200); }

/* ============================================================
   6. LOGO MARQUEE (classes reused by common-bootstrap.js)
   ============================================================ */
.logos-band { padding-block: 2.25rem; }
.logos-band .logos-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
  margin-bottom: 1.5rem;
}
.logo-carousel-container {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-carousel-track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  width: max-content;
  animation: logo-scroll 36s linear infinite;
}
.logo-item { flex: 0 0 auto; }
.logo-item img {
  height: 34px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.25s ease;
}
.logo-item img:hover { filter: grayscale(0) opacity(1); }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   7. CARDS
   ============================================================ */
.card {
  border-radius: var(--r-card);
  border: 1px solid var(--line);
}
.v3-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a .v3-card:hover, .v3-card.hoverable:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--in-200);
}

/* Product/solution cards */
.solution-card {
  background: #fff;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm) !important;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a:hover .solution-card, .solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md) !important;
  border-color: var(--in-200) !important;
}
.solution-card .card-title { color: var(--ink); }
.solution-card .card-text { color: var(--muted); }
.solution-card .card-link-cue {
  color: var(--in-700);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Icon tile for feature grids */
.icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--in-50);
  border: 1px solid var(--in-100);
  margin-bottom: 1.1rem;
}
.icon-tile img { width: 26px; height: 26px; }

/* Feature item (also GSAP target on boost page) */
.feature-item h5, .feature-item h4 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-item p { color: var(--muted); font-size: 0.9875rem; margin-bottom: 0; }

/* Report feature: icon-left rows */
.report-feature { display: flex; gap: 1rem; align-items: flex-start; }
.report-feature img { width: 28px; height: 28px; flex: 0 0 auto; margin-top: 0.2rem; }
.report-feature h6, .report-feature h5 { font-weight: 600; margin-bottom: 0.35rem; }
.report-feature p { color: var(--muted); font-size: 0.9875rem; margin-bottom: 0; }

/* Checklist rows (Transform CX etc.) */
.check-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.05rem 1.15rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.check-item img { width: 24px; height: 24px; flex: 0 0 auto; margin-top: 0.1rem; }
.check-item p { margin: 0; color: var(--body-color); }
.v3-band-dark .check-item {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.v3-band-dark .check-item p { color: var(--in-100); }

/* ============================================================
   8. TESTIMONIALS + G2
   ============================================================ */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm) !important;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a:hover .testimonial-card { transform: translateY(-3px); box-shadow: var(--shadow-md) !important; }
.testimonial-card .card-title { font-size: 1.05rem; font-weight: 600; }
.testimonial-card .card-text {
  color: var(--body-color);
  font-weight: 300;
  font-size: 0.9875rem;
  line-height: 1.6;
}
.testimonial-card hr { border-color: var(--line); opacity: 1; }

.g2-stars .star { color: #D9DCEA; font-size: 1rem; }
.g2-stars .star.filled { color: #F0A03C; }
.g2-stars .star.half {
  background: linear-gradient(90deg, #F0A03C 50%, #D9DCEA 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.g2-header-badge {
  gap: 0.25rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.g2-header-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Bootstrap carousel restyle */
.carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--in-300);
  border: 0;
  opacity: 0.5;
}
.carousel-indicators .active { opacity: 1; background: var(--in-600); }
.carousel-dark .carousel-control-prev-icon,
.carousel-dark .carousel-control-next-icon { filter: none; opacity: 0.55; }

/* ============================================================
   9. STATS / DARK BANDS
   ============================================================ */
.v3-band-dark {
  position: relative;
  overflow: hidden;
  background: var(--grad-dark);
  color: #fff;
}
.v3-band-dark h1, .v3-band-dark h2, .v3-band-dark h3,
.v3-band-dark h4, .v3-band-dark h5, .v3-band-dark h6 { color: #fff; }
.v3-band-dark .section-lead, .v3-band-dark p { color: var(--in-200); }
.v3-band-dark .section-eyebrow { color: var(--in-300); }
.v3-band-dark::before {
  /* soft radial glow */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38rem 22rem at 18% 0%, rgba(100, 127, 242, 0.35), transparent 60%),
    radial-gradient(30rem 20rem at 88% 100%, rgba(130, 153, 247, 0.28), transparent 55%);
  pointer-events: none;
}
.v3-band-dark > .container, .v3-band-dark > .container-fluid { position: relative; }

/* stats-section: keep class name (index-bootstrap.js queries it) */
.stats-section { color: #fff; }
.stat-number {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 2rem + 3vw, 4.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}
.stat-number-grad {
  background: linear-gradient(95deg, #A6B4FD 0%, #E0E6FE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--in-200); font-size: 1rem; }

/* Light stat tiles (Impact section on white/tint) */
.stat-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  padding: 1.9rem 1.6rem;
  height: 100%;
}
.stat-tile .stat-number {
  color: var(--in-800);
  background: linear-gradient(95deg, var(--in-800), var(--in-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-tile .stat-label { color: var(--body-color); font-weight: 500; font-size: 0.9875rem; }
.stat-tile .stat-sub { color: var(--muted); font-weight: 300; font-size: 0.9rem; }

/* ============================================================
   10. PERFORMANCE BARS (JS: common-bootstrap.js .bar-fill)
   ============================================================ */
.performance-bar { margin-block: 1rem; }
.bar-row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1px 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.bar-label { font-size: 0.95rem; font-weight: 500; color: var(--ink); text-align: right; }
.bar-divider { width: 1px; height: 100%; min-height: 34px; background: var(--line); }
.bar-container {
  background: var(--in-50);
  border-radius: var(--r-pill);
  height: 34px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: var(--r-pill);
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
  transition: width 1.4s cubic-bezier(0.25, 1, 0.35, 1);
}
.bar-value { color: #fff; font-size: 0.85rem; font-weight: 600; }
@media (max-width: 575.98px) {
  .bar-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .bar-label { text-align: left; }
  .bar-divider { display: none; }
}

/* ============================================================
   11. RECOGNITION / PRESS SCROLLER (classes reused by JS)
   ============================================================ */
.recognition-scroller-wrapper { position: relative; }
.recognition-scroller {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.25rem;
  scrollbar-width: none;
}
.recognition-scroller::-webkit-scrollbar { display: none; }
.recognition-scroller-item {
  flex: 0 0 260px;
  scroll-snap-align: start;
}
.recognition-card {
  border: 1px solid var(--line) !important;
  border-radius: 16px;
  box-shadow: var(--shadow-sm) !important;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a:hover .recognition-card { transform: translateY(-3px); box-shadow: var(--shadow-md) !important; }
.recognition-logo-container { height: 44px; display: flex; align-items: center; justify-content: center; }
.recognition-logo { max-height: 40px; max-width: 140px; object-fit: contain; }
.recognition-image { max-height: 96px; max-width: 100%; object-fit: contain; }
.recognition-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--in-600);
}
.recognition-headline { font-weight: 600; color: var(--ink); font-size: 0.95rem; line-height: 1.35; }
.recognition-subline, .recognition-source { color: var(--muted); font-size: 0.85rem; }
.recognition-card-feature {
  background-size: cover;
  position: relative;
  min-height: 180px;
}
.recognition-card-feature .card-body {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.75));
}
.recognition-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--in-800);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.recognition-scroll-btn svg { width: 14px; height: 14px; }
.recognition-scroll-btn:hover { background: var(--in-50); }
.recognition-scroll-prev { left: -12px; }
.recognition-scroll-next { right: -12px; }

/* ============================================================
   12. PRICING
   ============================================================ */
.pricing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.75rem;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card.featured {
  border: 2px solid var(--in-600);
  box-shadow: var(--shadow-lg);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  padding: 0.35rem 1rem;
  white-space: nowrap;
}
.pricing-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; }
.pricing-desc { color: var(--muted); font-size: 0.925rem; min-height: 2.6em; }
.pricing-price {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--in-950);
  letter-spacing: -0.02em;
}
.pricing-price .unit { font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.pricing-features { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; flex: 1; }
.pricing-features li {
  padding: 0.45rem 0 0.45rem 1.7rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--body-color);
}
.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--in-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.2 6.8 11 12 5.4' stroke='%233146A3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
  border: 1px solid var(--in-100);
}

/* Comparison table */
.compare-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  /* fixed layout: column widths come from the thead row and never
     recompute, so expanding a collapsed category cannot shift text */
  table-layout: fixed;
}
.compare-table thead th:first-child { width: 26%; }
.compare-table th, .compare-table td { overflow-wrap: break-word; }
.compare-table th, .compare-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.compare-table thead th {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--in-200);
  background: transparent;
}
.compare-table tbody tr:hover td { background: var(--tint); }

/* Collapsible category groups (tbody.compare-cat, toggled by site-v3.js) */
.compare-cat.collapsed tr:not(.compare-cat-toggle) { display: none; }
.compare-cat-toggle th {
  cursor: pointer;
  user-select: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  color: var(--in-900);
}
.compare-cat-toggle th::before {
  content: "▾";
  display: inline-block;
  margin-right: 0.55rem;
  color: var(--in-600);
  transition: transform 0.18s ease;
}
.compare-cat.collapsed .compare-cat-toggle th::before { transform: rotate(-90deg); }
.compare-cat-toggle:hover th { background: var(--in-50); }
.compare-cat-toggle th:focus-visible { outline: 3px solid var(--in-300); outline-offset: -3px; }

/* ============================================================
   13. ACCORDION (FAQ)
   ============================================================ */
.accordion-item {
  border: 1px solid var(--line);
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.accordion-button {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  padding: 1.1rem 1.25rem;
  background: #fff;
}
.accordion-button:not(.collapsed) {
  background: var(--in-50);
  color: var(--in-900);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 3px var(--in-200); border-color: transparent; }
.accordion-body { color: var(--body-color); font-weight: 300; padding: 1.1rem 1.25rem 1.35rem; }

/* ============================================================
   14. FORMS (contact page, HubSpot embeds get a styled shell)
   ============================================================ */
.form-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
}
.form-control, .form-select {
  border-radius: var(--r-input);
  border-color: var(--in-100);
  padding: 0.7rem 0.9rem;
  font-family: 'Outfit', sans-serif;
}
.form-control:focus, .form-select:focus {
  border-color: var(--in-500);
  box-shadow: 0 0 0 3px var(--in-100);
}

/* ============================================================
   15. FINAL CTA BAND
   ============================================================ */
.cta-final {
  position: relative;
  overflow: hidden;
  background: var(--grad-dark);
  border-radius: 28px;
  padding: clamp(2.75rem, 2rem + 3.5vw, 5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  color: #fff;
  text-align: center;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(30rem 18rem at 12% 110%, rgba(100, 127, 242, 0.5), transparent 60%),
    radial-gradient(26rem 16rem at 92% -10%, rgba(130, 153, 247, 0.4), transparent 55%);
  pointer-events: none;
}
.cta-final > * { position: relative; }
.cta-final h2, .cta-final h3 {
  color: #fff;
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.8rem);
  margin-bottom: 0.9rem;
}
.cta-final p { color: var(--in-200); max-width: 40rem; margin-inline: auto; }
.cta-final .cta-group { justify-content: center; margin-top: 1.75rem; }
.cta-final .cta-note { color: var(--in-300); }

/* ============================================================
   16. FOOTER
   ============================================================ */
.footer-v3 {
  background: var(--in-950);
  color: var(--in-200);
  padding: 4rem 0 2rem;
  margin-top: 0;
}
.footer-v3 .footer-tagline { color: var(--in-300); font-weight: 300; max-width: 20rem; }
.footer-v3 .footer-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--in-400);
  margin-bottom: 1rem;
}
.footer-v3 ul { list-style: none; padding: 0; margin: 0; }
.footer-v3 ul li { margin-bottom: 0.6rem; }
.footer-v3 a {
  color: var(--in-200);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.footer-v3 a:hover { color: #fff; }
.footer-v3 .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--in-400);
}
/* Legacy footer-section class safety (if any page keeps it) */
.footer-section { background: var(--in-950); color: var(--in-200); }
.footer-section a { color: var(--in-200) !important; }
.footer-section a:hover { color: #fff !important; }

/* ============================================================
   17. MOTION
   ============================================================ */
.fade-in-element {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in-element.visible { opacity: 1; transform: none; }

/* Hero video element support (JS adds .loaded) */
.hero-video { opacity: 0; transition: opacity 0.6s ease; }
.hero-video.loaded { opacity: 1; }

/* Rotating word (js/site-v3.js swaps .rotator text) */
.rotator { transition: opacity 0.28s ease, transform 0.28s ease; }
.rotator.swap { opacity: 0; transform: translateY(8px); }

@media (prefers-reduced-motion: reduce) {
  .fade-in-element { opacity: 1; transform: none; transition: none; }
  .logo-carousel-track { animation: none; }
  .rotator { transition: none; }
  .btn, .v3-card, .solution-card, .testimonial-card { transition: none; }
}

/* ============================================================
   18. UTILITIES
   ============================================================ */
.measure { max-width: 42rem; }        /* blog-derived reading measure */
.measure-wide { max-width: 52rem; }
.rounded-media { border-radius: var(--r-card); box-shadow: var(--shadow-md); }
.text-body-soft { color: var(--muted); }
.eyebrow-pill {
  display: inline-block;
  background: var(--in-50);
  border: 1px solid var(--in-100);
  color: var(--in-800);
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
}
.divider-soft { border: 0; border-top: 1px solid var(--line); opacity: 1; }
