/* =========================
   THEME TWEAKS
========================= */

/* Header padding with responsive clamp */
.site-header {
    padding-inline: clamp(1rem, 0.848rem + 0.758vw, 1.5rem);
}

/* Balance headings and elements with `.balance` class */
:is(h1, h2, h3, h4, h5, h6),
.balance {
    text-wrap: balance;
}

/* Use pretty wrapping for body text elements */
p,
blockquote,
li {
    text-wrap: pretty;
}

/* Remove bottom margin from the last paragraph */
p:last-child:last-of-type {
    margin-bottom: 0px;
}


/* =========================
   UTILITIES
========================= */

/* Line Clamping */
.line-limit-3,
.line-limit-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-limit-3 {
    -webkit-line-clamp: 3;
}

.line-limit-2 {
    -webkit-line-clamp: 2;
}

/* Visually Hidden — accessible to screen readers, invisible on screen */
.visually-hidden:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* Smooth Transition Utility */
.transition {
    transition: all 0.25s ease-in-out;
}


/* =========================
   GP MENU ACCESSIBILITY TWEAKS
========================= */

#site-navigation ul.sub-menu {
    display: block;
}

/* Rotate dropdown arrow icon on hover */
#site-navigation li:hover .gp-icon svg {
    transform: rotate(180deg);
}

/* Show sub-menu on hover */
#site-navigation li:hover .sub-menu {
    visibility: visible;
}


/* =========================
   STRETCH LINK (from Bootstrap)
   Note: Use only ONE link per card — multiple links will break this!
========================= */

.stretch-link {
    position: relative;
}

/* Invisible overlay that makes the entire card clickable */
.stretch-link a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.stretch-link a:is(:focus-visible)::after {
    outline: 2px solid;
}

.stretch-link a:is(:hover, :focus) {
    outline: none;
}


/* =========================
   CONTAINER WRAPPER
========================= */

.site-wrapper {
    width: 100%;
    max-width: 1920px;
    margin-inline: auto;
    background: var(--neutral-0);
}


/* =========================
   PULSE GLOW — CTA Button
========================= */

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(10, 110, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 12px rgba(10, 110, 255, 0);
  }
}

.btn-pulse {
  animation: pulseGlow 2.5s ease-in-out infinite;
}


/* =========================
   HERO — Dotted Background
========================= */

.hero-bg {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

/* Dot grid overlay */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #E5E7EB 1.5px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

/* Keep hero content above the dot overlay */
.hero-bg > * {
  position: relative;
  z-index: 1;
}


/* =========================
   PRICING — "Most Popular" Badge Center
========================= */

.gb-text-9e916308 {
  left: 50%;
  transform: translateX(-50%);
}


/* =========================
   HAMBURGER MENU — Background Fix
========================= */

.gb-menu-toggle:is(:hover, :focus),
.gb-menu-toggle-fbb1cee5:is(:hover, :focus) {
  background-color: transparent !important;
  color: inherit !important;
}


/* =========================
   COMPARISON TABLE (.rc-compare)
========================= */

.rc-compare {
    overflow-x: auto;
}

.rc-compare table {
    width: 100%;
    min-width: 650px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #D1D9E6;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.rc-compare table th,
.rc-compare table td {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.9375rem;
    border: none;
}

/* Table Header */
.rc-compare table thead th {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748B;
    background: #F1F5F9;
    border-bottom: 2px solid #D1D9E6;
}

/* Highlight last column header (recurring.so) */
.rc-compare table thead th:last-child {
    background: #DBEAFE;
    color: #1D4ED8;
}

/* Table Body */
.rc-compare table tbody td {
    color: #475569;
    vertical-align: middle;
    border-bottom: 1px solid #E8EDF3;
}

/* Feature name column — bold */
.rc-compare table tbody td:first-child {
    font-weight: 600;
    color: #0F172A;
}

/* recurring.so column — highlighted blue */
.rc-compare table tbody td:last-child {
    background: #EFF6FF;
    color: #1D4ED8;
    font-weight: 600;
}

/* Competitor column — muted */
.rc-compare table tbody td:nth-child(2) {
    color: #94A3B8;
}

/* Alternating row stripes */
.rc-compare table tbody tr:nth-child(even) {
    background: #F8FAFC;
}

.rc-compare table tbody tr:nth-child(even) td:last-child {
    background: #E0EDFF;
}

/* Remove border from last row */
.rc-compare table tbody tr:last-child td {
    border-bottom: none;
}

/* Row hover */
.rc-compare table tbody tr:hover {
    background: #EDF2F7;
}

.rc-compare table tbody tr:hover td:last-child {
    background: #DBEAFE;
}

/* Emoji icon size in cells */
.rc-compare table tbody td .emoji {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .rc-compare table th,
    .rc-compare table td {
        padding: 0.75rem;
        font-size: 0.8125rem;
    }
}


/* =========================
   RECURRING HERO — Grid Background
========================= */

.recurring-hero {
  position: relative;
  overflow: hidden;
}

/* Faded blue grid lines */
.recurring-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Soft blue glow at the top */
.recurring-hero::after {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Keep hero content above background layers */
.recurring-hero > * {
  position: relative;
  z-index: 1;
}


/* =========================
   BADGE — Shimmer Border
========================= */

.badge-shimmer {
  position: relative;
  display: inline-flex;
  border-radius: 100px;
  padding: 2px;
  overflow: hidden;
}

/* Rotating conic gradient border effect */
.badge-shimmer::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  padding-bottom: 200%;
  margin-top: -100%;
  margin-left: -100%;
  background: conic-gradient(
    from 0deg,
    #E2E8F0 0deg,
    #E2E8F0 120deg,
    #93B4F8 160deg,
    #2563EB 180deg,
    #93B4F8 200deg,
    #E2E8F0 240deg,
    #E2E8F0 360deg
  );
  animation: badgeSpin 3s linear infinite;
  z-index: 0;
}

/* Badge inner content sits above the spinning border */
.badge-shimmer > * {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 100px;
}

@keyframes badgeSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* =========================
   HOW IT WORKS — Timeline Steps
========================= */

.how-steps {
  position: relative;
}

/* Vertical connecting line */
.how-steps::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 50px;
  bottom: 50px;
  width: 2px;
  background: linear-gradient(180deg, #B3D1FF 0%, #0A6EFF 50%, #10B981 100%);
  border-radius: 2px;
  z-index: 0;
}

/* Numbered circle */
.step-num {
  min-width: 56px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  background: #E8F1FF;
  border: 2px solid #B3D1FF;
  font-size: 20px;
  font-weight: 700;
  color: #0A6EFF;
  position: relative;
  z-index: 2;
}

/* Green variant for the final step */
.step-num-green {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #10B981;
}

/* Step card */
.step-card {
  background: #FAFBFD;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 28px 32px;
  flex: 1;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: rgba(10,110,255,0.15);
  box-shadow: 0 8px 24px -8px rgba(10,110,255,0.08);
  transform: translateY(-2px);
}

/* Tag pills inside step cards */
.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  border: 1px solid #E2E8F0;
  color: #334155;
}

.step-tag-blue {
  background: #E8F1FF;
  border-color: #B3D1FF;
  color: #085ACC;
}

.step-tag-green {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}

@media (max-width: 767px) {
  .how-steps::before {
    left: 22px;
    top: 40px;
    bottom: 40px;
  }
  .step-num {
    min-width: 46px;
    width: 46px;
    height: 46px;
    font-size: 17px;
  }
  .step-card {
    padding: 22px 18px;
  }
}


/* =========================
   SCROLL ANIMATION (.animate)
========================= */

@media (prefers-reduced-motion: no-preference) {
  .animate {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s ease, transform 0.6s ease;
    will-change: opacity, transform;
  }

  /* Triggered by IntersectionObserver in custom.js */
  .animate.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Disable animation inside the block editor preview */
  .editor-styles-wrapper .animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* =========================
   UTILITY — No Text Wrap
========================= */

.fix-white {
    white-space: nowrap;
}


/* =========================
   STICKY CTA BAR
========================= */

.sticky-cta {
  position: fixed !important;
  left: 50% !important;
  bottom: 2.5rem !important;
  z-index: 9999 !important;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  transform: translate(-50%, 20px);
  padding: 0 !important;
  margin: 0 !important;
}


/* =========================
   FAQ ACCORDION
========================= */

.gb-accordion .gb-accordion__item {
  border-color: #E2E8F0 !important;
  transition: all 0.3s ease;
}

/* Highlight border on hover */
.gb-accordion .gb-accordion__item:hover {
  border-color: rgba(10,110,255,0.15) !important;
}

/* Active item — blue border + subtle shadow */
.gb-accordion .gb-accordion__item:has(.gb-block-is-current) {
  border-color: rgba(10,110,255,0.2) !important;
  box-shadow: 0 4px 16px -4px rgba(10,110,255,0.06);
}

/* Active question text — blue */
.gb-accordion__toggle.gb-block-is-current .gb-text {
  color: #0A6EFF !important;
}

/* Active toggle icon — blue */
.gb-accordion__toggle.gb-block-is-current svg {
  color: #0A6EFF !important;
}

/* Answer body text */
.gb-accordion__content .gb-text {
  color: #64748B;
  font-size: 15px;
  line-height: 1.7;
}


/* =========================
   BUTTON — Shimmer Sweep
========================= */

.btn-shimmer {
    position: relative;
    overflow: hidden;
}

/* Light sweep animation across the button */
.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    100% { left: 150%; }
}