/* ==========================================================================
   Featured Pros Near You + Steps Carousel
   featured-pros.css
   Loaded after booker-v3.css — extends its design tokens.
   Mobile guardrails: no 100vw, grids collapse ≤768px, no fixed widths >390px
   outside @media min-width queries.
   ========================================================================== */

/* ── 1. FEATURED PROS SECTION ──────────────────────────────────────────────

   Light surface that flows naturally from the hero and surrounding sections.
   A single subtle radial gradient hint of sky-blue keeps it from feeling
   completely flat without the jarring dark-bubble the old design had.
   ────────────────────────────────────────────────────────────────────────── */

/* B5: Fade-in when JS reveals the section. Prevents a jarring snap-to-visible
   when geolocation resolves quickly and the section appears immediately.
   The section starts as hidden; JS removes the attribute and adds .fp-section--loaded. */
.fp-section.fp-section--loaded {
  animation: fp-fade-in 0.35s ease forwards;
}
@keyframes fp-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Ensure CSS display: block cannot override the HTML hidden attribute while
   the section is still loading (guard against stylesheet order issues). */
.fp-section[hidden] {
  display: none !important;
}

/* Skeleton placeholder cards — render until featured-pros.js resolves the
   fetch. Keeps the Featured Pros section as the guaranteed 2nd section on
   the homepage regardless of network speed or geolocation state. */
.fp-skeleton-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--b-surface, #ffffff);
  border: 1px solid var(--b-border, rgba(15,23,42,0.08));
  border-radius: 20px;
  padding: 1rem;
  margin-right: 1rem;
}
.fp-skeleton-card .fp-skel-img {
  width: 100%;
  height: 200px;
  border-radius: 14px;
  background: linear-gradient(90deg,
    rgba(15,23,42,0.04) 0%,
    rgba(15,23,42,0.08) 50%,
    rgba(15,23,42,0.04) 100%);
  background-size: 200% 100%;
  animation: fp-skel-shimmer 1.4s ease-in-out infinite;
  margin-bottom: 0.85rem;
}
.fp-skeleton-card .fp-skel-bar {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg,
    rgba(15,23,42,0.04) 0%,
    rgba(15,23,42,0.08) 50%,
    rgba(15,23,42,0.04) 100%);
  background-size: 200% 100%;
  animation: fp-skel-shimmer 1.4s ease-in-out infinite;
  margin-bottom: 0.5rem;
}
.fp-skel-bar--w70 { width: 70%; }
.fp-skel-bar--w60 { width: 60%; }
.fp-skel-bar--w50 { width: 50%; }
.fp-skel-bar--w40 { width: 40%; }
@keyframes fp-skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
[data-theme="dark"] .fp-skeleton-card {
  background: var(--b-surface, #0f172a);
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .fp-skeleton-card .fp-skel-img,
[data-theme="dark"] .fp-skeleton-card .fp-skel-bar {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
}
.fp-section--loaded .fp-skeleton-card { display: none; }

/* Empty-state fallback — shown when fetch returns zero pros or errors out.
   Section remains as the 2nd section on the page even when the rail is empty. */
.fp-empty-state {
  text-align: center;
  padding: 2rem 1rem 0;
}
.fp-empty-text {
  color: var(--b-text-muted, #64748b);
  font-size: 0.95rem;
  margin: 0 0 0.85rem;
}
.fp-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 100px;
  background: var(--b-primary, #0ea5e9);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fp-empty-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(14,165,233,0.3);
}

.fp-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fp-retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border-radius: 100px;
  border: 1.5px solid var(--b-border, #e2e8f0);
  background: transparent;
  color: var(--b-text-2, #334155);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.fp-retry-btn:hover {
  border-color: var(--b-primary, #0ea5e9);
  background: color-mix(in srgb, var(--b-primary, #0ea5e9) 6%, transparent);
}

.fp-section {
  background: var(--b-bg, #ffffff);
  /* Subtle corner radiance — barely-there, same feel as ElevenLabs' clean bg */
  background-image: radial-gradient(
    ellipse 90% 60% at 5% 100%,
    rgba(14, 165, 233, 0.06) 0%,
    transparent 70%
  );
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 7vw, 6rem) 0;
}

[data-theme="dark"] .fp-section {
  background: var(--b-bg-page, #0a0f1e);
  background-image: radial-gradient(
    ellipse 90% 60% at 5% 100%,
    rgba(14, 165, 233, 0.12) 0%,
    transparent 70%
  );
}

/* A hairline top border so it doesn't blur into the section above */
.fp-section::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--b-border) 20%,
    var(--b-border) 80%,
    transparent
  );
  pointer-events: none;
}

.fp-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Section header ────────────────────────────────────────────────────── */

.fp-header {
  margin-bottom: 2.5rem;
}

/* Scroll-reveal: header starts invisible, JS adds .is-revealed */
.fp-reveal-header {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.fp-reveal-header.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Honor reduced-motion: skip all entrance animations */
@media (prefers-reduced-motion: reduce) {
  .fp-reveal-header {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .fp-reveal-header.is-revealed {
    opacity: 1;
    transform: none;
  }
}

/* Eyebrow: small-caps letter-spaced in brand blue */
.fp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--b-primary);
  margin-bottom: 0.65rem;
}

.fp-eyebrow svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* Headline: display weight, tight tracking, dark ink on light bg */
.fp-headline {
  font-family: var(--b-font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: var(--b-tracking-header);
  line-height: 1.15;
  color: var(--b-text);
  margin: 0 0 0.55rem;
}

/* Subhead: Inter, muted slate */
.fp-sub {
  font-family: var(--b-font-main);
  font-size: 1rem;
  color: var(--b-text-3);
  line-height: 1.55;
  max-width: 400px;
  margin: 0;
}

/* ── Rail wrapper with subtle edge fades ───────────────────────────────── */

.fp-rail-wrap {
  position: relative;
}

/* Left/right fade masks — light bg version */
.fp-rail-wrap::before,
.fp-rail-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.fp-rail-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--b-bg, #ffffff) 0%, transparent 100%);
}

.fp-rail-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--b-bg, #ffffff) 0%, transparent 100%);
}

[data-theme="dark"] .fp-rail-wrap::before {
  background: linear-gradient(to right, var(--b-bg-page, #0a0f1e) 0%, transparent 100%);
}

[data-theme="dark"] .fp-rail-wrap::after {
  background: linear-gradient(to left, var(--b-bg-page, #0a0f1e) 0%, transparent 100%);
}

/* The scrollable rail */
.fp-rail {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Extra vertical padding so card shadows aren't clipped */
  padding: 1rem 1.25rem 1.5rem;
  cursor: grab;
}

/* Sparse rail: fewer than 3 cards — center them so there's no dead void */
.fp-rail-wrap.fp-rail--sparse .fp-rail {
  justify-content: center;
}

/* On narrow mobile the centering still lets cards stay scroll-snappable */
@media (max-width: 767px) {
  .fp-rail-wrap.fp-rail--sparse .fp-rail {
    justify-content: flex-start;
  }
}

.fp-rail::-webkit-scrollbar { display: none; }
.fp-rail.is-dragging { cursor: grabbing; }
.fp-rail.is-dragging * { pointer-events: none; user-select: none; }

/* ── Cards ─────────────────────────────────────────────────────────────── */

.fp-card {
  flex: 0 0 calc(88vw - 1.5rem);
  max-width: 280px;
  min-width: 230px;
  scroll-snap-align: start;
  border-radius: 24px;
  overflow: hidden;
  /* Theme-aware surface — was hardcoded #fff which created a "white glow"
     square on the dark homepage. */
  background: var(--b-surface, #ffffff);
  border: 1px solid var(--b-border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  /* Gentle resting shadow */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  min-height: 360px;
  /* Scroll-reveal: cards start invisible, JS staggers them in */
  opacity: 0;
  transform: translateY(24px);
}

/* Dark theme: deeper card surface, softer border, shadow tuned for dark bg */
[data-theme="dark"] .fp-card {
  background: var(--b-surface, #111827);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .fp-card:hover {
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.35),
    0 8px 24px rgba(14, 165, 233, 0.18),
    0 20px 40px rgba(0, 0, 0, 0.45);
  border-color: rgba(14, 165, 233, 0.55);
}

/* Revealed state added by JS per-card with stagger delay */
.fp-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hover: lift + blue glow shadow + border brightens */
.fp-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 8px 24px rgba(14, 165, 233, 0.12),
    0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(14, 165, 233, 0.5);
}

/* Focus-visible for keyboard nav */
.fp-card:focus-visible {
  outline: 2px solid var(--b-primary);
  outline-offset: 3px;
}

/* Honor reduced motion for card transitions */
@media (prefers-reduced-motion: reduce) {
  .fp-card {
    opacity: 1;
    transform: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .fp-card.is-revealed {
    opacity: 1;
    transform: none;
  }
  .fp-card:hover {
    transform: none;
  }
}

/* Photo container — 3:4 aspect ratio, smoothed top corners */
.fp-photo-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--b-surface-3);
  flex-shrink: 0;
  border-radius: 24px 24px 0 0;
}

.fp-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  /* Subtle pop: bump saturation/contrast a hair so user-uploaded photos
     don't look washed out on the home grid. */
  filter: saturate(1.06) contrast(1.03);
}

.fp-card:hover .fp-photo {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .fp-card:hover .fp-photo { transform: none; }
}

/* Dual-layer cross-fade slideshow — used when a pro has 2+ gallery photos.
   Both layers are absolutely stacked in .fp-photo-wrap; only .active is
   visible. featured-pros.js::initCardSlideshows alternates the active class
   to produce a smooth fade. */
.fp-img-1,
.fp-img-2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  filter: saturate(1.06) contrast(1.03);
}
.fp-img-1.active,
.fp-img-2.active {
  opacity: 1;
  z-index: 2;
}
.fp-card:hover .fp-img-1.active,
.fp-card:hover .fp-img-2.active {
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .fp-img-1, .fp-img-2 { transition: none !important; }
  .fp-card:hover .fp-img-1.active,
  .fp-card:hover .fp-img-2.active { transform: none; }
}

/* Photo scrim — lighter than before so it feels premium, not heavy */
.fp-photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 15, 30, 0.55) 0%,
    rgba(10, 15, 30, 0.18) 40%,
    transparent 65%
  );
  pointer-events: none;
}

/* Distance badge — top-right of photo */
.fp-distance {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--b-r-full);
  padding: 0.28rem 0.6rem 0.28rem 0.45rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--b-text-2);
  white-space: nowrap;
}

.fp-distance svg {
  color: var(--b-primary);
  flex-shrink: 0;
}

[data-theme="dark"] .fp-distance {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

/* Book Now affordance — overlaid bottom-right on the photo so users
   immediately know clicking the card starts a booking. */
.fp-book-cta {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.42rem 0.8rem 0.42rem 0.95rem;
  border-radius: var(--b-r-full);
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  pointer-events: none; /* card itself is the anchor; the CTA is decorative */
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease,
    color 0.3s ease;
}

.fp-card:hover .fp-book-cta {
  background: var(--b-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.45);
}

[data-theme="dark"] .fp-book-cta {
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .fp-book-cta { transition: background 0.15s ease, color 0.15s ease; }
  .fp-card:hover .fp-book-cta { transform: none; }
}

/* Card body */
.fp-card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.fp-name {
  font-family: var(--b-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--b-text);
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.fp-profession {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--b-primary);
  margin: 0;
}

.fp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.65rem;
}

.fp-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--b-text-2);
}

.fp-rating-star {
  color: var(--b-warning);
  line-height: 1;
}

.fp-review-count {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--b-text-4);
}

.fp-new-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--b-accent, #0ea5e9);
  background: color-mix(in srgb, var(--b-accent, #0ea5e9) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--b-accent, #0ea5e9) 30%, transparent);
  border-radius: 4px;
  padding: 1px 6px;
  line-height: 1.5;
}

.fp-city {
  font-size: 0.7rem;
  color: var(--b-text-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52%;
}

/* No photo fallback — initials avatar */
.fp-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(14,165,233,0.1) 0%, rgba(20,184,166,0.08) 100%);
  font-family: var(--b-font-display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(14, 165, 233, 0.45);
}

/* ── Controls row: dots + arrows ───────────────────────────────────────── */

.fp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 1.5rem;
  position: relative;
}

/* Pagination dots */
.fp-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fp-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--b-r-full);
  background: var(--b-border-2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease;
  flex-shrink: 0;
}

.fp-dot.is-active {
  width: 24px;
  background: var(--b-primary);
}

.fp-dot:hover:not(.is-active) {
  background: var(--b-border);
  background: var(--b-text-4);
}

@media (prefers-reduced-motion: reduce) {
  .fp-dot { transition: background 0.15s ease; }
  .fp-dot.is-active { width: 8px; }
}

/* Arrow buttons — desktop only */
.fp-arrows {
  display: none;
  gap: 0.5rem;
  position: absolute;
  right: 0;
}

.fp-arrow {
  width: 40px;
  height: 40px;
  border-radius: var(--b-r-full);
  /* Theme-aware so it disappears into the dark page bg without the white-square halo */
  background: var(--b-surface, #ffffff);
  border: 1px solid var(--b-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  color: var(--b-text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

[data-theme="dark"] .fp-arrow {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--b-text-2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.fp-arrow:hover {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow:
    0 0 0 3px rgba(14, 165, 233, 0.1),
    0 4px 12px rgba(14, 165, 233, 0.12);
  color: var(--b-primary);
}

.fp-arrow:active {
  transform: scale(0.92);
}

.fp-arrow:focus-visible {
  outline: 2px solid var(--b-primary);
  outline-offset: 2px;
}

.fp-arrow svg { pointer-events: none; }

/* ── Geo prompt banner ─────────────────────────────────────────────────── */

.fp-geo-prompt {
  font-size: 0.875rem;
  color: var(--b-text-3);
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--b-bg-subtle);
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: var(--b-r-md);
}

.fp-geo-prompt-link {
  color: var(--b-primary);
  font-weight: 600;
  text-decoration: none;
}

.fp-geo-prompt-link:hover {
  text-decoration: underline;
}

/* ── Responsive breakpoints ────────────────────────────────────────────── */

@media (max-width: 479px) {
  .fp-card {
    flex: 0 0 calc(82vw - 1.5rem);
    max-width: 256px;
    min-height: unset;
  }
  .fp-photo-wrap {
    aspect-ratio: 4 / 5;
    max-height: 220px;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .fp-card {
    flex: 0 0 236px;
    min-height: unset;
  }
  .fp-photo-wrap {
    aspect-ratio: 4 / 5;
    max-height: 240px;
  }
}

@media (min-width: 768px) {
  .fp-card {
    flex: 0 0 240px;
  }
  .fp-arrows {
    display: flex;
  }
  .fp-rail-wrap::before,
  .fp-rail-wrap::after {
    width: 60px;
  }
}

@media (min-width: 1024px) {
  .fp-card {
    flex: 0 0 255px;
  }
  .fp-rail-wrap::before,
  .fp-rail-wrap::after {
    width: 80px;
  }
}


/* ══ 2. STEPS CAROUSEL ═════════════════════════════════════════════════════ */

.steps-carousel-wrap {
  position: relative;
  overflow: hidden;
}

.steps-carousel-track {
  display: flex;
  transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.steps-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* The card itself — reuse existing .step-card-v3 CSS, constrain width */
.steps-slide .step-card-v3 {
  max-width: 380px;
  width: 100%;
  transition: box-shadow 300ms var(--b-ease), border-color 300ms var(--b-ease);
}

.steps-slide.sc-enter {
  animation: sc-fade-in 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes sc-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Progress dots — shared pattern (reused from .fp-dot above) */
.steps-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.steps-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--b-r-full);
  background: var(--b-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 300ms var(--b-ease);
  flex-shrink: 0;
}

@keyframes steps-dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.55); }
  60%  { box-shadow: 0 0 0 6px rgba(14, 165, 233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.steps-dot.active {
  width: 24px;
  background: var(--b-primary);
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.5);
  animation: steps-dot-pulse 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .steps-dot.active { animation: none; box-shadow: 0 0 0 2px rgba(14,165,233,0.4); }
}

.steps-dot:hover:not(.active) {
  background: var(--b-text-4);
}

@media (min-width: 768px) {
  .steps-slide {
    padding: 0 2rem;
  }
  .steps-slide .step-card-v3 {
    max-width: 420px;
  }
}


/* ══ 3. FEATURED PROS — "No pros near you" referral card ═══════════════════

   Lives in the rail as first item when local_empty=true.
   Kept on a dark/gradient surface deliberately — it's a distinct CTA,
   not a pro profile card, so it should stand out from the white card grid.
   ────────────────────────────────────────────────────────────────────────── */

.fp-invite-card {
  flex: 0 0 calc(88vw - 1.5rem);
  max-width: 320px;
  min-width: 260px;
  min-height: 340px;
  scroll-snap-align: start;
  border-radius: var(--b-r-xl);
  background: linear-gradient(
    150deg,
    rgba(14, 165, 233, 0.18) 0%,
    rgba(20, 184, 166, 0.10) 55%,
    rgba(20, 30, 50, 0.92) 100%
  );
  border: 1px solid rgba(14, 165, 233, 0.35);
  padding: 1.5rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 18px 40px -10px rgba(14, 165, 233, 0.2);
  /* Scroll-reveal consistent with fp-card */
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fp-invite-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fp-invite-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.fp-invite-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% -10%, rgba(14, 165, 233, 0.35), transparent 55%),
    radial-gradient(circle at -10% 110%, rgba(20, 184, 166, 0.28), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.fp-invite-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow:
    0 8px 24px rgba(14, 165, 233, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.fp-invite-eyebrow {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 1);
  position: relative;
  z-index: 1;
}

.fp-invite-title {
  font-family: var(--b-font-display, "Plus Jakarta Sans", system-ui);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0;
  letter-spacing: -0.025em;
  position: relative;
  z-index: 1;
}

.fp-invite-body {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  position: relative;
  z-index: 1;
  flex: 1;
}

.fp-invite-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 11px 18px;
  border-radius: var(--b-r-full);
  background: #fff;
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.18s ease;
  position: relative;
  z-index: 1;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.fp-invite-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.fp-invite-cta:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.fp-invite-cta:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 3px;
}

.fp-invite-cta.is-success {
  background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .fp-invite-cta { transition: none; }
  .fp-invite-cta:hover { transform: none; }
}
