/* Greedy Ads parity — CSS vars, case-study bar charts, section heading accent bars.
   Mirrors greedyads.com assets/style.css (2026-10-27). */
:root {
  --paper: #F8F6FC;
  --ink: #141127;
  --ink-soft: #5C5A73;
  --green: #00C08B;
  --green-dark: #00A876;
  --indigo: #5B4CF0;
  --indigo-dark: #4534D6;
  --gold: #FFB238;
  --coral: #FF6E5E;
  --tint-green: #E3FBF2;
  --tint-indigo: #ECE9FE;
  --tint-gold: #FFF3DE;
  --tint-coral: #FFECE9;
  --white: #FFFFFF;
  --border: #E6E1F5;
}

/* ---------- Case-study charts: CSS bars (.cv-chart > i) ---------- */
.cv-chart {
  height: 110px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.cv-chart i {
  flex: 1 1 0%;
  display: block;
  min-width: 0;
  border-radius: 4px 4px 0 0;
  transform: scaleY(0);
  transform-origin: bottom center;
}
/* Grow when scrolled into view (JS adds .ga-inview) or when an Elementor parent animates */
.cv-chart.ga-inview i,
.ga-inview .cv-chart i,
.elementor-element.animated .cv-chart i,
.elementor-element.animated .cv-chart i {
  animation: gaParityBarGrow 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.cv-chart.ga-inview i:nth-child(1),
.ga-inview .cv-chart i:nth-child(1),
.elementor-element.animated .cv-chart i:nth-child(1) { animation-delay: 0.1s; }
.cv-chart.ga-inview i:nth-child(2),
.ga-inview .cv-chart i:nth-child(2),
.elementor-element.animated .cv-chart i:nth-child(2) { animation-delay: 0.2s; }
.cv-chart.ga-inview i:nth-child(3),
.ga-inview .cv-chart i:nth-child(3),
.elementor-element.animated .cv-chart i:nth-child(3) { animation-delay: 0.3s; }
.cv-chart.ga-inview i:nth-child(4),
.ga-inview .cv-chart i:nth-child(4),
.elementor-element.animated .cv-chart i:nth-child(4) { animation-delay: 0.4s; }
.cv-chart.ga-inview i:nth-child(5),
.ga-inview .cv-chart i:nth-child(5),
.elementor-element.animated .cv-chart i:nth-child(5) { animation-delay: 0.5s; }
.cv-chart.ga-inview i:nth-child(6),
.ga-inview .cv-chart i:nth-child(6),
.elementor-element.animated .cv-chart i:nth-child(6) { animation-delay: 0.6s; }

@keyframes gaParityBarGrow {
  to { transform: scaleY(1); }
}

/* Dashboard mini-bars also use HTML vars for gradient fallback */
.mini-bars i {
  flex: 1 1 0%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--indigo), var(--green));
}

/* ---------- Section heading accent bar ----------
   Elementor templates already draw ::after at scaleX(0); HTML reveals with .reveal.visible.
   Unlock when the heading (or an ancestor) is in view / Elementor-animated. */
.elementor-element.animated .elementor-heading-title::after,
.ga-inview.elementor-widget-heading .elementor-heading-title::after,
.ga-inview > .elementor-heading-title::after,
.elementor-heading-title.ga-inview::after,
.ga-inview h2.elementor-heading-title::after {
  transform: scaleX(1) !important;
}

/* Ensure any h2 section title that lacks Elementor custom_css still gets the bar
   (FAQ group labels are smaller plain h2s in HTML without a bar — we only target
   h2s that already received the Elementor ::after OR carry .ga-section-title). */
h2.elementor-heading-title.ga-section-title {
  position: relative;
}
h2.elementor-heading-title.ga-section-title::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--indigo), var(--green));
  margin-top: 16px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s;
}
h2.elementor-heading-title.ga-section-title.ga-center::after {
  margin-left: auto;
  margin-right: auto;
  transform-origin: center center;
}
h2.elementor-heading-title.ga-section-title.ga-inview::after,
.ga-inview h2.elementor-heading-title.ga-section-title::after,
.elementor-element.animated h2.elementor-heading-title.ga-section-title::after {
  transform: scaleX(1) !important;
}

@media (prefers-reduced-motion: reduce) {
  .cv-chart i,
  .cv-chart.ga-inview i,
  .ga-inview .cv-chart i,
  .elementor-element.animated .cv-chart i {
    animation: none !important;
    transform: scaleY(1) !important;
  }
  .elementor-heading-title::after,
  h2.elementor-heading-title.ga-section-title::after {
    transition: none !important;
    transform: scaleX(1) !important;
  }
}

/* ---------- Sticky bottom CTA (HTML #stickyCta) ---------- */
.ga-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(120%);
  transition: transform 0.3s ease;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
}
.ga-sticky-cta.show { transform: translateY(0); }
.ga-sticky-cta p { font-size: 14px; font-weight: 600; margin: 0; font-family: Manrope, sans-serif; }
.ga-sticky-cta .ga-sticky-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ga-sticky-cta .ga-sticky-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: Sora, sans-serif;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--indigo), var(--green));
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px -6px rgba(91, 76, 240, 0.45);
  white-space: nowrap;
}
.ga-sticky-cta .ga-sticky-btn:hover { transform: translateY(-2px); }
.ga-sticky-cta .ga-sticky-close {
  background: none;
  border: none;
  color: #9A96BC;
  font-size: 18px;
  cursor: pointer;
  margin-left: 6px;
  line-height: 1;
  padding: 4px 6px;
}
@media (max-width: 680px) {
  .ga-sticky-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 20px;
  }
}

/* ---------- v1.2.0 residuals: main bg, footer pad, contact grid/form chrome ---------- */

/* JupiterX paints main white; HTML body/paper shows through — match paper */
.jupiterx-main,
.jupiterx-main .jupiterx-main-content,
#jupiterx-main,
main.jupiterx-main {
  background-color: transparent !important;
  background: transparent !important;
}

/* Contact “Pick what works for you”: HTML keeps 3 columns even on mobile (inline
   grid-template-columns:repeat(3,1fr)). Elementor had mobile = 1fr + equal-height
   text margins that inflated the section ~400px. */
.elementor-7 .elementor-element-90a4d58 {
  --e-con-grid-template-columns: repeat(3, 1fr) !important;
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 680px) {
  .elementor-7 .elementor-element-90a4d58 {
    --e-con-grid-template-columns: repeat(3, 1fr) !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .elementor-7 .elementor-element-92bc1f4,
  .elementor-7 .elementor-element-c3cbced,
  .elementor-7 .elementor-element-ad39407 {
    margin-bottom: 0.1px !important;
  }
}

/* Contact form chrome — match HTML .form-card inputs (paper fill, 9px radius) */
.elementor-7 .elementor-element-60313b9 .elementor-field-group .elementor-field:not(.elementor-select-wrapper),
.elementor-7 .elementor-element-60313b9 .elementor-field-group .elementor-select-wrapper select {
  background-color: var(--paper, #F8F6FC) !important;
  border: 1px solid var(--border, #E6E1F5) !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}
.elementor-7 .elementor-element-60313b9 .elementor-field-group .elementor-field:not(.elementor-select-wrapper):focus,
.elementor-7 .elementor-element-60313b9 .elementor-field-group .elementor-select-wrapper select:focus {
  border-color: rgba(91, 76, 240, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(91, 76, 240, 0.12) !important;
  outline: none !important;
  background-color: #fff !important;
}
.elementor-7 .elementor-element-60313b9 .elementor-field-type-submit .elementor-button,
.elementor-7 .elementor-element-60313b9 button[type="submit"] {
  background-color: transparent !important;
  background-image: linear-gradient(120deg, var(--indigo, #5B4CF0), var(--green, #00C08B)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 24px -6px rgba(91, 76, 240, 0.45) !important;
}
.elementor-7 .elementor-element-449ca82 {
  background: #fff !important;
  border: 1px solid var(--border, #E6E1F5) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 48px -20px rgba(20, 17, 39, 0.12) !important;
}

/* Match HTML native select (appearance:auto, paper fill, 9px radius) */
.elementor-7 .elementor-element-60313b9 .elementor-field-group .elementor-select-wrapper select {
  -webkit-appearance: auto !important;
  appearance: auto !important;
  background-image: none !important;
  padding: 12px 14px !important;
  background-color: var(--paper, #F8F6FC) !important;
}

/* Mobile form: HTML .form-row keeps gap:14px between stacked pair members and
   margin-bottom:14px on the row. Elementor has no form-row — emulate. */
@media (max-width: 680px) {
  .elementor-7 .elementor-element-60313b9 .elementor-form-fields-wrapper {
    margin-bottom: 0 !important;
  }
  .elementor-7 .elementor-element-60313b9 .elementor-field-group {
    margin-bottom: 14px !important;
  }
  /* first of each HTML form-row pair: field mb 14 + row gap 14 */
  .elementor-7 .elementor-element-60313b9 .elementor-field-group-fname,
  .elementor-7 .elementor-element-60313b9 .elementor-field-group-traffic {
    margin-bottom: 28px !important;
  }
  /* end of each HTML form-row: field mb collapses into row mb 14 — keep 14,
     but HTML row height ~183 includes extra internal space; add 14 more after pair ends */
  .elementor-7 .elementor-element-60313b9 .elementor-field-group-lname,
  .elementor-7 .elementor-element-60313b9 .elementor-field-group-platform {
    margin-bottom: 28px !important;
  }
  .elementor-7 .elementor-element-60313b9 .elementor-field-group-website,
  .elementor-7 .elementor-element-60313b9 .elementor-field-group-email {
    margin-bottom: 14px !important;
  }
  /* HTML .field mb 14 under textarea; submit has no extra mb */
  .elementor-7 .elementor-element-60313b9 .elementor-field-type-textarea {
    margin-bottom: 14px !important;
  }
  .elementor-7 .elementor-element-60313b9 .elementor-field-type-submit {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
  }
  .elementor-7 .elementor-element-60313b9 .elementor-field-type-submit .elementor-button {
    padding: 14px 26px !important;
    min-height: 66px !important;
    width: 100% !important;
  }
}

/* Contact feature cards: Elementor sets min-width:0 on grid children so 1fr
   shrinks equally; HTML min-width:auto lets content size (email card wider) and overflow. */
.elementor-7 .elementor-element-90a4d58.e-con > .e-con-inner > .e-con,
.elementor-7 .elementor-element-0585718,
.elementor-7 .elementor-element-d6dae7b,
.elementor-7 .elementor-element-639dd7a {
  min-width: auto !important;
}

/* Contact checklist (.contact-points): HTML li margin-bottom 16px, line ~22px */
.elementor-7 .elementor-icon-list-items .elementor-icon-list-item {
  padding-bottom: 0 !important;
  margin-bottom: 16px !important;
  line-height: 22.5px !important;
}
.elementor-7 .elementor-icon-list-items .elementor-icon-list-item:last-child {
  margin-bottom: 0 !important;
}
