/* ============================================================
   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.c-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.c-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.c-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.c-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;
}

#c-gdeerr::after,
#c-xbjaqr::after,
#c-hqzmbt::after,
#c-hsjmmz::after,
#c-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;
}

#c-gdeerr,
#c-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.
   ======================== */
#c-7791a1.fr-process-section-foxtrot__card.c-block {
  background: rgba(0, 0, 0, 0.025);
  border-left-color: #9ca3af;
}

#c-7791a1.fr-process-section-foxtrot__card.c-block:hover {
  border-left-color: #6b7280;
}

/* Step badge — muted grey to match */
#c-7791a1 .fr-process-section-foxtrot__card-step.c-text-basic {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

#c-7791a1 .fr-process-section-foxtrot__card-step.c-text-basic::before {
  background: #6b7280;
}

/* Price box — keep it neutral */
#c-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
   ======================== */
#c-8877f3.fr-process-section-foxtrot__card.c-block {
  border-left-color: #b05dab;
}

#c-8877f3.fr-process-section-foxtrot__card.c-block:hover {
  border-left-color: #9f4893;
}

/* ========================
   Growth Plan cards (steps 3–5) — gold left border
   Distinguishes premium/paid services from the free entry step
   ======================== */
#c-vbnfwj .fr-process-section-foxtrot__card.c-block {
  border-left-color: #c9a84c;
}

#c-vbnfwj .fr-process-section-foxtrot__card.c-block:hover {
  border-left-color: #b8922f;
}

/* ========================
   Card Headings
   ======================== */
.fr-process-card-foxtrot__heading.c-heading {
  font-weight: 300;
  letter-spacing: -0.01em;
}

/* ========================
   Card Descriptions
   ======================== */
.fr-process-card-foxtrot__description.c-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.c-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.c-heading::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
}

/* ========================
   Sticky Panel Polish
   ======================== */
.fr-process-section-foxtrot__sticky.c-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.c-heading {
  font-weight: 300;
  line-height: 1.2;
}

/* Lede paragraph in sticky panel */
.fr-process-section-foxtrot__lede.c-text-basic {
  line-height: 1.65;
  color: #3a3a5a;
}

/* ========================
   Subscription Options Note
   ======================== */
#c-hakify.c-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 */
#c-hakify.c-text-basic::before {
  content: none !important;
  display: none !important;
}

#c-hakify strong {
  display: block;
  font-size: var(--text-m);
  font-weight: 400;
  color: #666;
  line-height: 1.4;
}

#c-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;
}

#c-hakify span::before,
#c-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.c-div {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-section__icon-box.c-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.c-div {
  transition: box-shadow 0.3s ease;
}

.sticky__cta .c-button.btn--action {
  margin-bottom: var(--space-m);
}

/* ========================
   Responsive — Tablet
   ======================== */
@media (max-width: 991px) {
  .fr-process-section-foxtrot__card.c-block {
    padding: var(--space-m);
    padding-right: var(--space-m);
  }

  /* Sticky panel — unstick and reduce blur cost */
  .fr-process-section-foxtrot__sticky.c-block {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* Disable hover lift on touch devices */
  .fr-process-section-foxtrot__card.c-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.c-div:hover {
    transform: none;
  }
}

/* ========================
   Responsive — Mobile
   ======================== */
@media (max-width: 478px) {
  .fr-process-section-foxtrot__card.c-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.c-text-basic {
    width: auto;
    font-size: 0;
    padding: 4px 14px 4px 4px;
    margin-bottom: 0;
    border-radius: 100px;
  }

  .fr-process-section-foxtrot__card-step.c-text-basic::before {
    font-size: 14px;
    width: 32px;
    height: 32px;
  }

  .fr-process-section-foxtrot__card-step.c-text-basic::after {
    font-size: 13px;
  }

  /* Card headings */
  .fr-process-card-foxtrot__heading.c-heading {
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 400;
  }

  /* Card descriptions — slightly smaller line height */
  .fr-process-card-foxtrot__description.c-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.c-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.c-heading {
    line-height: 1.3;
  }

  /* Subscription note — compact for mobile */
  #c-hakify.c-text-basic {
    padding: 0.8em 1em;
  }

  #c-hakify strong {
    font-size: clamp(1.2rem, 3.5vw, var(--text-m));
  }

  #c-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 */
  #c-hakify span::before,
  #c-hakify span::after {
    display: none;
  }

  /* Sticky CTA button */
  .sticky__cta .c-button.btn--action {
    margin-bottom: var(--space-s);
  }
}

/* ============================================================
   Coaching Section — "glass" feature band
   Frosted glassmorphism card on a deep gradient panel.
   ============================================================ */
.coaching-redesign { padding: var(--space-l) 0; --cr-radius: 28px; }
.coaching-redesign__inner { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: var(--space-m); }

.cr-panel { position: relative; overflow: hidden; border-radius: var(--cr-radius); isolation: isolate;
  background: linear-gradient(160deg, #15151f, #23223a);
  box-shadow: 0 30px 80px -22px rgba(0,0,0,0.6);
  transition: transform 0.45s cubic-bezier(.22,.61,.36,1), box-shadow 0.45s ease; }
@media (hover: hover) {
  .cr-panel:hover { transform: translateY(-5px); box-shadow: 0 44px 96px -22px rgba(0,0,0,0.72); }
}
.cr-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cr-bg::before, .cr-bg::after { content: ""; position: absolute; width: 62%; height: 78%;
  border-radius: 50%; filter: blur(70px); will-change: transform; }
.cr-bg::before { top: -16%; left: -8%;
  background: radial-gradient(circle, rgba(128,215,244,0.34), transparent 70%);
  animation: cr-drift-a 19s ease-in-out infinite alternate; }
.cr-bg::after { bottom: -20%; right: -8%;
  background: radial-gradient(circle, rgba(236,187,247,0.30), transparent 70%);
  animation: cr-drift-b 23s ease-in-out infinite alternate; }
@keyframes cr-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(14%, 10%) scale(1.16); }
}
@keyframes cr-drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-12%, -9%) scale(1.13); }
}
.cr-content { position: relative; z-index: 1; margin: 16px; padding: clamp(28px, 4vw, 56px);
  border-radius: 22px; color: #fff;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 3.5vw, 40px); }
@media (min-width: 860px) {
  .cr-content {
    grid-template-columns: minmax(0, 1fr) clamp(280px, 34%, 380px);
    column-gap: clamp(40px, 4.5vw, 72px);
    align-items: stretch;
    grid-template-areas:
      "main  aside"
      "cta   cta";
  }
  .cr-main  { grid-area: main; align-self: center; }
  .cr-aside { grid-area: aside; }
  .cr-cta-row { grid-area: cta; }
}

.cr-main { min-width: 0; }
.cr-eyebrow { display: inline-flex; align-items: center; gap: 0.55em; font-size: var(--text-s); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #80d7f4; }
.cr-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cr-heading { font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; margin: 0.6em 0 0.4em; font-size: clamp(30px, 4vw, 46px); text-wrap: balance; }
.cr-heading .cr-nowrap { white-space: nowrap; }
.cr-lede { line-height: 1.65; max-width: 42ch; margin: 0; font-size: clamp(16px, 1.4vw, 18px); color: rgba(255,255,255,0.78); text-wrap: balance; }

/* Right rail — "what's included" card */
.cr-aside { align-self: stretch; min-width: 0; padding: clamp(22px, 2.4vw, 30px);
  border-radius: 18px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-direction: column; justify-content: center; }
.cr-aside__title { margin: 0 0 16px; font-size: var(--text-xs, 1.2rem); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.cr-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cr-features li { display: flex; align-items: center; gap: 12px; font-size: clamp(14px, 1.2vw, 16px); line-height: 1.35; color: rgba(255,255,255,0.92); }
.cr-features .cr-ic { width: 18px; height: 18px; flex: 0 0 auto; color: #ecbbf7; }

.cr-cta-row { display: flex; align-items: center; gap: clamp(20px, 3vw, 32px); flex-wrap: wrap;
  min-width: 0; padding-top: clamp(22px, 3vw, 32px); border-top: 1px solid rgba(255,255,255,0.1); }
@media (min-width: 860px) { .cr-cta-row { justify-content: space-between; } }
.cr-price { display: flex; align-items: baseline; gap: 6px; color: #fff; }
.cr-price__from { font-size: var(--text-s); opacity: 0.7; }
.cr-price__amt { font-size: clamp(34px, 5vw, 48px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.cr-price__per { font-size: var(--text-s); opacity: 0.7; }
.cr-cta { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 100px; font-weight: 600; white-space: nowrap; text-decoration: none;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.cr-cta::before { content: ""; position: absolute; top: 0; bottom: 0; left: -130%; width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); pointer-events: none; }
.cr-cta:hover::before { animation: cr-sheen 0.85s ease; }
@keyframes cr-sheen { from { left: -130%; } to { left: 150%; } }
.cr-cta svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.cr-cta:hover { transform: translateY(-2px); background: rgba(255,255,255,0.2); box-shadow: 0 14px 30px -12px rgba(128,215,244,0.5); }
.cr-cta:hover svg { transform: translateX(3px); }

/* Scroll-reveal cascade (armed by JS; falls back to fully visible without it) */
.cr-arm .cr-eyebrow,
.cr-arm .cr-heading,
.cr-arm .cr-lede,
.cr-arm .cr-aside,
.cr-arm .cr-cta-row {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(.22,.61,.36,1), transform 0.6s cubic-bezier(.22,.61,.36,1);
}
.cr-arm .cr-content.cr-in .cr-eyebrow  { transition-delay: 0.00s; }
.cr-arm .cr-content.cr-in .cr-heading  { transition-delay: 0.08s; }
.cr-arm .cr-content.cr-in .cr-lede     { transition-delay: 0.16s; }
.cr-arm .cr-content.cr-in .cr-aside    { transition-delay: 0.24s; }
.cr-arm .cr-content.cr-in .cr-cta-row  { transition-delay: 0.40s; }
.cr-arm .cr-content.cr-in .cr-eyebrow,
.cr-arm .cr-content.cr-in .cr-heading,
.cr-arm .cr-content.cr-in .cr-lede,
.cr-arm .cr-content.cr-in .cr-aside,
.cr-arm .cr-content.cr-in .cr-cta-row {
  opacity: 1; transform: none;
}

/* Checklist items stagger in within the aside, with self-drawing checks */
.cr-arm .cr-features li { opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease; }
.cr-arm .cr-ic path { stroke-dasharray: 24; stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.5s ease; }
.cr-arm .cr-content.cr-in .cr-features li { opacity: 1; transform: none; }
.cr-arm .cr-content.cr-in .cr-ic path { stroke-dashoffset: 0; }
.cr-arm .cr-content.cr-in .cr-features li:nth-child(1),
.cr-arm .cr-content.cr-in .cr-features li:nth-child(1) .cr-ic path { transition-delay: 0.34s; }
.cr-arm .cr-content.cr-in .cr-features li:nth-child(2),
.cr-arm .cr-content.cr-in .cr-features li:nth-child(2) .cr-ic path { transition-delay: 0.42s; }
.cr-arm .cr-content.cr-in .cr-features li:nth-child(3),
.cr-arm .cr-content.cr-in .cr-features li:nth-child(3) .cr-ic path { transition-delay: 0.50s; }
.cr-arm .cr-content.cr-in .cr-features li:nth-child(4),
.cr-arm .cr-content.cr-in .cr-features li:nth-child(4) .cr-ic path { transition-delay: 0.58s; }

/* Price pops in with the CTA bar */
.cr-arm .cr-content.cr-in .cr-price__amt { animation: cr-pop 0.55s 0.46s both cubic-bezier(.22,1.2,.4,1); transform-origin: left center; }
@keyframes cr-pop {
  0%   { opacity: 0; transform: scale(0.72); }
  60%  { opacity: 1; transform: scale(1.06); }
  100% { transform: scale(1); }
}

@media (max-width: 600px) {
  /* Trim the fixed insets so the glass card doesn't read as a cramped
     "box-in-a-box" and content gets real room on narrow phones. */
  .coaching-redesign { --cr-radius: 22px; }
  .coaching-redesign__inner { padding-inline: 14px; }
  .cr-content { margin: 8px; padding: 24px 18px; gap: 24px; border-radius: 16px; }
  .cr-aside { padding: 20px 18px; }

  /* Stack price + CTA; let the button fill the width and wrap if needed
     instead of forcing the column wider than the card (overflow clip). */
  .cr-cta-row { flex-direction: column; align-items: stretch; gap: 18px; }
  .cr-cta { width: 100%; justify-content: center; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-bg::before, .cr-bg::after { animation: none; }
  .cr-panel, .cr-cta, .cr-cta svg { transition: none; }
  .cr-cta:hover::before { animation: none; }
  /* Show everything instantly, no transforms */
  .cr-arm .cr-eyebrow,
  .cr-arm .cr-heading,
  .cr-arm .cr-lede,
  .cr-arm .cr-aside,
  .cr-arm .cr-cta-row,
  .cr-arm .cr-features li { opacity: 1; transform: none; transition: none; }
  .cr-arm .cr-ic path { stroke-dashoffset: 0; transition: none; }
  .cr-arm .cr-content.cr-in .cr-price__amt { animation: none; }
}
