/* ============================================
   POINTS — THEME 3: WARM SAND
   ============================================ */

:root {
  /* ===============================
     POINTS COLORS (WARM SAND)
  =============================== */
  --ebpt20-section-background-color: #faf6f0;

  --ebpt20-badge-background-color: rgba(194, 65, 12, 0.08);
  --ebpt20-badge-border-color: rgba(194, 65, 12, 0.2);
  --ebpt20-badge-text-color: #c2410c;

  --ebpt20-title-text-color: #2d2219;
  --ebpt20-title-highlight-text-color: #c2410c;
  --ebpt20-subtitle-text-color: #7c624d;

  --ebpt20-timeline-line-color: linear-gradient(90deg, rgba(194, 65, 12, 0.1) 0%, #c2410c 50%, rgba(194, 65, 12, 0.1) 100%);

  --ebpt20-card-background-color: #ffffff;
  --ebpt20-card-border-color: #ecdcc8;
  --ebpt20-card-hover-border-color: #c2410c;

  --ebpt20-card-icon-background-color: #ffffff;
  --ebpt20-card-icon-border-color: #c2410c;
  --ebpt20-card-icon-color: #c2410c;
  --ebpt20-card-icon-hover-background-color: #c2410c;
  --ebpt20-card-icon-hover-color: #ffffff;

  --ebpt20-card-number-background-color: #2d2219;
  --ebpt20-card-number-text-color: #ffffff;

  --ebpt20-card-title-text-color: #2d2219;
  --ebpt20-card-description-text-color: #7c624d;

  /* TYPOGRAPHY */
  --ebpt20-badge-font-size: 0.8rem;
  --ebpt20-badge-font-weight: 700;
  --ebpt20-badge-letter-spacing: 0.05em;
  --ebpt20-title-font-size: 2.5rem;
  --ebpt20-title-font-weight: 700;
  --ebpt20-title-line-height: 1.2;
  --ebpt20-subtitle-font-size: 1.05rem;
  --ebpt20-subtitle-line-height: 1.7;
  --ebpt20-card-icon-font-size: 1.8rem;
  --ebpt20-card-number-font-size: 0.75rem;
  --ebpt20-card-number-font-weight: 700;
  --ebpt20-card-title-font-size: 1.15rem;
  --ebpt20-card-title-font-weight: 700;
  --ebpt20-card-description-font-size: 0.9rem;
  --ebpt20-card-description-line-height: 1.6;

  /* SPACING */
  --ebpt20-section-padding-block: 3.5rem;
  --ebpt20-container-padding-inline: 2rem;
  --ebpt20-header-gap: 1rem;
  --ebpt20-header-margin-bottom: 2.25rem;
  --ebpt20-badge-gap: 0.5rem;
  --ebpt20-badge-padding-block: 0.5rem;
  --ebpt20-badge-padding-inline: 1.5rem;
  --ebpt20-card-body-gap: 0.75rem;
  --ebpt20-card-number-padding: 0.25rem 0.75rem;

  /* LAYOUT */
  --ebpt20-container-max-width: 1240px;
  --ebpt20-container-z-index: 2;
  --ebpt20-header-max-width: 700px;
  --ebpt20-card-flex: 1;
  --ebpt20-card-z-index: 2;

  /* GRID */
  --ebpt20-card-grid-template-columns-tablet: minmax(0, 1fr) auto;
  --ebpt20-card-header-grid-column-tablet: 2;
  --ebpt20-card-header-grid-row-tablet: 1;
  --ebpt20-card-title-grid-column-tablet: 1;
  --ebpt20-card-title-grid-row-tablet: 1;
  --ebpt20-card-description-grid-column-tablet: 1 / -1;
  --ebpt20-card-description-grid-row-tablet: 2;

  /* TIMELINE */
  --ebpt20-timeline-z-index: 1;

  /* CARD */
  --ebpt20-card-number-top: -10px;
  --ebpt20-card-number-right: -10px;

  /* ICON */
  --ebpt20-card-icon-size: 80px;
  --ebpt20-card-icon-border-width: 2px;
  --ebpt20-card-icon-radius: 50%;

  /* BORDER */
  --ebpt20-radius: 24px;
  --ebpt20-card-border-width: 2px;
  --ebpt20-badge-border-width: 1px;
  --ebpt20-badge-radius: 50px;
  --ebpt20-card-number-border-radius: 50px;

  /* SHADOW */
  --ebpt20-card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03);
  --ebpt20-card-hover-shadow: 0 12px 30px rgba(194, 65, 12, 0.06);
  --ebpt20-card-icon-shadow: 0 0 15px rgba(194, 65, 12, 0.15);
  --ebpt20-card-icon-hover-shadow: 0 0 25px rgba(194, 65, 12, 0.3);

  /* ANIMATION */
  --ebpt20-ease: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ebpt20-duration-fast: 0.3s;
  --ebpt20-duration-base: 0.4s;
  --ebpt20-duration-reveal: 0.8s;
  --ebpt20-card-transition: transform var(--ebpt20-duration-base) var(--ebpt20-ease), border-color var(--ebpt20-duration-base) var(--ebpt20-ease), box-shadow var(--ebpt20-duration-base) var(--ebpt20-ease);
  --ebpt20-card-icon-transition: all var(--ebpt20-duration-fast) var(--ebpt20-ease);
  --ebpt20-card-hover-transform: translateY(-6px);
  --ebpt20-animation-distance: 30px;
  --ebpt20-animation-opacity-from: 0;
  --ebpt20-animation-opacity-to: 1;
  --ebpt20-animation-transition: opacity var(--ebpt20-duration-reveal) var(--ebpt20-ease), transform var(--ebpt20-duration-reveal) var(--ebpt20-ease);
  --ebpt20-delay-1: 0.1s;
  --ebpt20-delay-2: 0.25s;
  --ebpt20-delay-3: 0.4s;
  --ebpt20-delay-4: 0.55s;

  /* RESPONSIVE */
  --ebpt20-timeline-gap-desktop: 1.5rem;
  --ebpt20-timeline-gap-tablet: 3rem;
  --ebpt20-timeline-top-desktop: 40px;
  --ebpt20-timeline-top-tablet: 5%;
  --ebpt20-timeline-bottom-tablet: 5%;
  --ebpt20-timeline-left-desktop: 5%;
  --ebpt20-timeline-left-tablet: 40px;
  --ebpt20-timeline-right-desktop: 5%;
  --ebpt20-timeline-width-tablet: 2px;
  --ebpt20-timeline-height-desktop: 2px;
  --ebpt20-timeline-height-tablet: 90%;
  --ebpt20-card-padding-desktop: 2.5rem 1.5rem;
  --ebpt20-card-padding-tablet: 2.5rem;
  --ebpt20-card-padding-mobile: 1.5rem;
  --ebpt20-card-gap-tablet: 1.5rem;
  --ebpt20-card-gap-mobile: 1rem 1.25rem;
  --ebpt20-card-header-margin-bottom-desktop: 1.5rem;
  --ebpt20-card-header-margin-bottom-tablet: 0;
}

.ebpt20-section {
  position: relative;
  background-color: var(--ebpt20-section-background-color);
  padding: var(--ebpt20-section-padding-block) 0;
  overflow: hidden;
}

.ebpt20-container {
  position: relative;
  z-index: var(--ebpt20-container-z-index);
  width: 100%;
  max-width: var(--ebpt20-container-max-width);
  padding: 0 var(--ebpt20-container-padding-inline);
  margin: 0 auto;
}

/* Header */
.ebpt20-header {
  text-align: center;
  max-width: var(--ebpt20-header-max-width);
  margin: 0 auto var(--ebpt20-header-margin-bottom) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ebpt20-header-gap);
}

.ebpt20-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--ebpt20-badge-gap);
  background: var(--ebpt20-badge-background-color);
  border: var(--ebpt20-badge-border-width) solid var(--ebpt20-badge-border-color);
  color: var(--ebpt20-badge-text-color);
  padding: var(--ebpt20-badge-padding-block) var(--ebpt20-badge-padding-inline);
  border-radius: var(--ebpt20-badge-radius);
  font-size: var(--ebpt20-badge-font-size);
  font-weight: var(--ebpt20-badge-font-weight);
  text-transform: uppercase;
  letter-spacing: var(--ebpt20-badge-letter-spacing);
}

.ebpt20-title {
  font-size: var(--ebpt20-title-font-size);
  font-weight: var(--ebpt20-title-font-weight);
  color: var(--ebpt20-title-text-color);
  line-height: var(--ebpt20-title-line-height);
}

.ebpt20-title-highlight {
  color: var(--ebpt20-title-highlight-text-color);
}

.ebpt20-subtitle {
  font-size: var(--ebpt20-subtitle-font-size);
  color: var(--ebpt20-subtitle-text-color);
  line-height: var(--ebpt20-subtitle-line-height);
}

/* Premium Grid Layout (3+3 luxury) */
.ebpt20-steps-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  position: relative;
  align-items: stretch;
}
/* kill old horizontal timeline line — doesn't fit 2-row grid */
.ebpt20-steps-wrapper::before {
  display: none !important;
  content: none !important;
}
.ebpt20-steps-wrapper.ebpt20-count-1 {
  grid-template-columns: minmax(0, 540px);
  justify-content: center;
}
.ebpt20-steps-wrapper.ebpt20-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  margin-inline: auto;
}
.ebpt20-steps-wrapper.ebpt20-count-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ebpt20-steps-wrapper.ebpt20-count-5,
.ebpt20-steps-wrapper.ebpt20-count-6,
.ebpt20-steps-wrapper.ebpt20-count-7,
.ebpt20-steps-wrapper.ebpt20-count-8 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1280px) {
  .ebpt20-steps-wrapper.ebpt20-count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1024px) {
  .ebpt20-steps-wrapper,
  .ebpt20-steps-wrapper.ebpt20-count-2,
  .ebpt20-steps-wrapper.ebpt20-count-3,
  .ebpt20-steps-wrapper.ebpt20-count-4,
  .ebpt20-steps-wrapper.ebpt20-count-5,
  .ebpt20-steps-wrapper.ebpt20-count-6,
  .ebpt20-steps-wrapper.ebpt20-count-7,
  .ebpt20-steps-wrapper.ebpt20-count-8 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .ebpt20-steps-wrapper.ebpt20-count-1 {
    grid-template-columns: minmax(0, 540px);
  }
}
@media (max-width: 768px) {
  .ebpt20-steps-wrapper,
  .ebpt20-steps-wrapper[class*="ebpt20-count-"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem !important;
  }
}

/* Step Card — premium */
.ebpt20-step-card {
  background: var(--ebpt20-card-background-color);
  border: var(--ebpt20-card-border-width) solid var(--ebpt20-card-border-color);
  border-radius: max(var(--ebpt20-radius), 18px);
  padding: 2.5rem 1.75rem 2.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: var(--ebpt20-card-z-index);
  box-shadow: var(--ebpt20-card-shadow);
  transition: var(--ebpt20-card-transition);
  min-height: 100%;
}
.ebpt20-step-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--ebpt20-card-icon-color) 18%, var(--ebpt20-card-icon-color) 82%, transparent);
  opacity: 0;
  transition: opacity var(--ebpt20-duration-base) var(--ebpt20-ease);
  z-index: 1;
  pointer-events: none;
}
.ebpt20-step-card:hover {
  transform: translateY(-8px);
  border-color: var(--ebpt20-card-hover-border-color);
  box-shadow: var(--ebpt20-card-hover-shadow);
}
.ebpt20-step-card:hover::before {
  opacity: 1;
}

/* giant faint number */
.ebpt20-step-watermark {
  position: absolute;
  bottom: -16px;
  inset-inline-end: 10px;
  font-size: 5.25rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Step Header */
.ebpt20-step-header {
  position: relative;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

/* Step Icon container */
.ebpt20-step-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--ebpt20-badge-background-color);
  border: 1.5px solid var(--ebpt20-card-icon-border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.65rem;
  color: var(--ebpt20-card-icon-color);
  box-shadow: var(--ebpt20-card-icon-shadow);
  transition: var(--ebpt20-card-icon-transition);
}
.ebpt20-step-card:hover .ebpt20-step-icon {
  background: var(--ebpt20-card-icon-hover-background-color);
  color: var(--ebpt20-card-icon-hover-color);
  box-shadow: var(--ebpt20-card-icon-hover-shadow);
  transform: scale(1.06);
}

/* Step Number pill */
.ebpt20-step-number {
  position: absolute;
  top: -14px;
  inset-inline-start: -10px;
  background: var(--ebpt20-card-number-background-color);
  color: var(--ebpt20-card-number-text-color);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  z-index: 2;
  white-space: nowrap;
  line-height: 1.4;
}

/* Step Body */
.ebpt20-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  z-index: 1;
}
.ebpt20-step-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ebpt20-card-title-text-color);
  line-height: 1.55;
  margin: 0;
}
.ebpt20-step-desc {
  font-size: 0.92rem;
  color: var(--ebpt20-card-description-text-color);
  line-height: 1.9;
  margin: 0;
  max-width: 34ch;
  text-wrap: pretty;
}

/* Animations */
.ebpt20-anim-up {
  opacity: var(--ebpt20-animation-opacity-from);
  transform: translateY(var(--ebpt20-animation-distance));
  transition: var(--ebpt20-animation-transition);
}

.ebpt20-anim-up.ebpt20-visible {
  opacity: var(--ebpt20-animation-opacity-to);
  transform: translateY(0);
}

.ebpt20-delay-1 { transition-delay: var(--ebpt20-delay-1); }
.ebpt20-delay-2 { transition-delay: var(--ebpt20-delay-2); }
.ebpt20-delay-3 { transition-delay: var(--ebpt20-delay-3); }
.ebpt20-delay-4 { transition-delay: var(--ebpt20-delay-4); }
.ebpt20-delay-5 { transition-delay: 0.65s; }
.ebpt20-delay-6 { transition-delay: 0.75s; }
.ebpt20-delay-7 { transition-delay: 0.85s; }
.ebpt20-delay-8 { transition-delay: 0.95s; }

/* ===============================
   MOBILE RESPONSIVE (768px & 380px)
=============================== */
@media (max-width: 768px) {
  .ebpt20-section {
    padding: 1.75rem 0 !important;
  }
  .ebpt20-header {
    margin-bottom: 1.25rem !important;
    padding: 0 0.75rem !important;
    gap: 0.65rem !important;
  }
  .ebpt20-title {
    font-size: 1.75rem !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
  }
  .ebpt20-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  .ebpt20-badge {
    font-size: 0.78rem !important;
    padding: 0.4rem 0.95rem !important;
  }
  .ebpt20-container {
    padding: 0 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .ebpt20-steps-wrapper {
    flex-direction: column !important;
    gap: 1.25rem !important;
    width: 100% !important;
  }
  .ebpt20-steps-wrapper::before {
    display: none !important;
  }
  .ebpt20-step-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 1.25rem 1rem !important;
    gap: 0.75rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .ebpt20-step-header {
    margin-bottom: 0.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .ebpt20-step-icon {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.4rem !important;
  }
  .ebpt20-step-number {
    font-size: 0.72rem !important;
    padding: 0.2rem 0.55rem !important;
    top: -6px !important;
    right: -6px !important;
  }
  .ebpt20-step-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.4rem !important;
    width: 100% !important;
  }
  .ebpt20-step-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
  }
  .ebpt20-step-desc {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
  }
}

@media (max-width: 380px) {
  .ebpt20-title {
    font-size: 1.5rem !important;
  }
  .ebpt20-subtitle {
    font-size: 0.88rem !important;
  }
  .ebpt20-step-title {
    font-size: 1.05rem !important;
  }
  .ebpt20-step-desc {
    font-size: 0.82rem !important;
  }
  .ebpt20-step-card {
    padding: 1rem 0.85rem !important;
  }
}


/* === MOBILE-COMPACT DISTRIBUTED: POINTS 480 === */
@media (max-width: 480px) {
  .ebpt20-container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-inline: 0.75rem !important;
  }
}


/* === MOBILE-COMPACT DISTRIBUTED: POINTS 380 === */
@media (max-width: 380px) {
  .ebpt20-container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-inline: 0.5rem !important;
  }
}


/* === MOBILE-COMPACT DISTRIBUTED: POINTS 768 INLINE FIX === */
@media (max-width: 768px) {
  .ebpt20-container {
    padding-inline: 0.75rem !important;
  }
}
