/* ============================================================
   Pricing Page Upgrade
   Enhances cards, step badges, price display, phase markers,
   sticky panel, and micro-interactions.
   Loaded after inline Bricks CSS for cascade priority.
   ============================================================ */

/* ========================
   Card Design
   ======================== */
.fr-process-section-foxtrot__card.brxe-block {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 3px solid var(--secondary);
  padding: var(--space-m);
  padding-right: var(--space-l);
  border-radius: var(--radius-l);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.fr-process-section-foxtrot__card.brxe-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
  border-left-color: hsl(var(--secondary-h), var(--secondary-s), 55%);
}

/* ========================
   Step Badge — Display Number
   ======================== */
.fr-process-section-foxtrot__card-step.brxe-text-basic {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  background: linear-gradient(135deg, hsla(var(--secondary-h), var(--secondary-s), var(--secondary-l), 0.08), hsla(var(--action-h), var(--action-s), var(--action-l), 0.04));
  border: 1px solid hsla(var(--secondary-h), var(--secondary-s), var(--secondary-l), 0.18);
  border-radius: 100px;
  font-size: 0;
  line-height: 1;
}

.fr-process-section-foxtrot__card-step.brxe-text-basic::before {
  content: counter(step);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--base);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fr-process-section-foxtrot__card-step::after {
  content: 'Step';
  font-weight: 600;
  font-size: var(--text-s);
  color: var(--base);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  right: auto;
}

#brxe-gdeerr::after,
#brxe-xbjaqr::after,
#brxe-hqzmbt::after,
#brxe-hsjmmz::after,
#brxe-fltwtw::after {
  content: 'Step';
  font-weight: 600;
  font-size: var(--text-s);
  color: var(--base);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  right: auto;
}

#brxe-gdeerr,
#brxe-xbjaqr {
  background-color: transparent;
}

/* ========================
   Step 1 — Free card visual treatment
   Neutral grey keeps it within the existing palette while
   visually separating the free entry step from paid services.
   ======================== */
#brxe-7791a1.fr-process-section-foxtrot__card.brxe-block {
  background: rgba(0, 0, 0, 0.025);
  border-left-color: #9ca3af;
}

#brxe-7791a1.fr-process-section-foxtrot__card.brxe-block:hover {
  border-left-color: #6b7280;
}

/* Step badge — muted grey to match */
#brxe-7791a1 .fr-process-section-foxtrot__card-step.brxe-text-basic {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

#brxe-7791a1 .fr-process-section-foxtrot__card-step.brxe-text-basic::before {
  background: #6b7280;
}

/* Price box — keep it neutral */
#brxe-7791a1 .fr-process-card-foxtrot__price {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(0, 0, 0, 0.08);
}

/* ========================
   Step 2 — left border matches the action color used in the step badge
   ======================== */
#brxe-8877f3.fr-process-section-foxtrot__card.brxe-block {
  border-left-color: #b05dab;
}

#brxe-8877f3.fr-process-section-foxtrot__card.brxe-block:hover {
  border-left-color: #9f4893;
}

/* ========================
   Growth Plan cards (steps 3–5) — gold left border
   Distinguishes premium/paid services from the free entry step
   ======================== */
#brxe-vbnfwj .fr-process-section-foxtrot__card.brxe-block {
  border-left-color: #c9a84c;
}

#brxe-vbnfwj .fr-process-section-foxtrot__card.brxe-block:hover {
  border-left-color: #b8922f;
}

/* ========================
   Card Headings
   ======================== */
.fr-process-card-foxtrot__heading.brxe-heading {
  font-weight: 300;
  letter-spacing: -0.01em;
}

/* ========================
   Card Descriptions
   ======================== */
.fr-process-card-foxtrot__description.brxe-text-basic {
  line-height: 1.7;
  color: #484868;
}

/* ========================
   Price Display
   ======================== */
.fr-process-card-foxtrot__price {
  background: linear-gradient(135deg, rgba(239, 239, 251, 0.6), hsla(var(--secondary-h), var(--secondary-s), var(--secondary-l), 0.06));
  padding: 0.75em 1em;
  border-radius: var(--radius-m);
  border: 1px solid rgba(128, 215, 244, 0.18);
  margin-top: auto;
}

.fr-process-card-foxtrot__price p {
  font-weight: 300;
  letter-spacing: 0.01em;
}

.fr-process-card-foxtrot__price b,
.fr-process-card-foxtrot__price strong {
  font-size: 1.2em;
  color: var(--base);
  font-weight: 700;
}

/* ========================
   Phase Markers (Getting Started / Your Growth Plan)
   ======================== */
.fr-process-section-foxtrot__cards-intro.brxe-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1.1em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--text-m);
  color: var(--base);
  border: 1px solid rgba(79, 79, 125, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.fr-process-section-foxtrot__cards-intro.brxe-heading::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
}

/* ========================
   Sticky Panel Polish
   ======================== */
.fr-process-section-foxtrot__sticky.brxe-block {
  background: linear-gradient(
    145deg,
    hsla(var(--secondary-h), var(--secondary-s), var(--secondary-l), 0.3),
    hsla(240, 23%, 95%, 0.85)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: hsla(var(--secondary-h), var(--secondary-s), var(--secondary-l), 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* H1 in sticky panel */
.fr-process-section-foxtrot__sticky .fr-process-section-foxtrot__card-heading.brxe-heading {
  font-weight: 300;
  line-height: 1.2;
}

/* Lede paragraph in sticky panel */
.fr-process-section-foxtrot__lede.brxe-text-basic {
  line-height: 1.65;
  color: #3a3a5a;
}

/* ========================
   Subscription Options Note
   ======================== */
#brxe-hakify.brxe-text-basic {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  gap: 0.5em;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 1px solid rgba(0, 0, 0, 0.08); /* reset old left-border accent */
  border-radius: var(--radius-l);
  padding: 1em 1.4em;
  margin-top: var(--space-m);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Kill stale cached ::before icon */
#brxe-hakify.brxe-text-basic::before {
  content: none !important;
  display: none !important;
}

#brxe-hakify strong {
  display: block;
  font-size: var(--text-m);
  font-weight: 400;
  color: #666;
  line-height: 1.4;
}

#brxe-hakify span {
  display: flex !important;
  align-items: center;
  width: 100%;
  font-size: var(--text-s);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--base);
  white-space: nowrap;
}

#brxe-hakify span::before,
#brxe-hakify span::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  margin: 0 0.8em;
}

/* ========================
   CTA Section Refinements
   ======================== */
.cta-section__icon-box.brxe-div {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-section__icon-box.brxe-div:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Sticky CTA card */
.sticky__cta.brxe-div {
  transition: box-shadow 0.3s ease;
}

.sticky__cta .brxe-button.btn--action {
  margin-bottom: var(--space-m);
}

/* ========================
   Responsive — Tablet
   ======================== */
@media (max-width: 991px) {
  .fr-process-section-foxtrot__card.brxe-block {
    padding: var(--space-m);
    padding-right: var(--space-m);
  }

  /* Sticky panel — unstick and reduce blur cost */
  .fr-process-section-foxtrot__sticky.brxe-block {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* Disable hover lift on touch devices */
  .fr-process-section-foxtrot__card.brxe-block:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  }

  .cta-section__icon-box.brxe-div:hover {
    transform: none;
  }
}

/* ========================
   Responsive — Mobile
   ======================== */
@media (max-width: 478px) {
  .fr-process-section-foxtrot__card.brxe-block {
    padding: var(--space-s);
    padding-right: var(--space-s);
    border-left-width: 3px;
  }

  /* Step badge — compact pill on mobile */
  .fr-process-section-foxtrot__card-step.brxe-text-basic {
    width: auto;
    font-size: 0;
    padding: 4px 14px 4px 4px;
    margin-bottom: 0;
    border-radius: 100px;
  }

  .fr-process-section-foxtrot__card-step.brxe-text-basic::before {
    font-size: 14px;
    width: 32px;
    height: 32px;
  }

  .fr-process-section-foxtrot__card-step.brxe-text-basic::after {
    font-size: 13px;
  }

  /* Card headings */
  .fr-process-card-foxtrot__heading.brxe-heading {
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 400;
  }

  /* Card descriptions — slightly smaller line height */
  .fr-process-card-foxtrot__description.brxe-text-basic {
    line-height: 1.6;
  }

  /* Price display */
  .fr-process-card-foxtrot__price {
    padding: 0.6em 0.8em;
  }

  /* Phase markers — smaller padding, allow wrap */
  .fr-process-section-foxtrot__cards-intro.brxe-heading {
    padding: 0.5em 0.8em;
    font-size: var(--text-s);
  }

  /* Sticky panel heading */
  .fr-process-section-foxtrot__sticky .fr-process-section-foxtrot__card-heading.brxe-heading {
    line-height: 1.3;
  }

  /* Subscription note — compact for mobile */
  #brxe-hakify.brxe-text-basic {
    padding: 0.8em 1em;
  }

  #brxe-hakify strong {
    font-size: clamp(1.2rem, 3.5vw, var(--text-m));
  }

  #brxe-hakify span {
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3em;
    font-size: calc(var(--text-s) * 0.9);
    letter-spacing: 0.06em;
  }

  /* Hide the rule lines on very small screens — use centered text instead */
  #brxe-hakify span::before,
  #brxe-hakify span::after {
    display: none;
  }

  /* Sticky CTA button */
  .sticky__cta .brxe-button.btn--action {
    margin-bottom: var(--space-s);
  }
}
