/* ============================================
   POINTS — THEME 10: ESPRESSO MIST
   ============================================ */

:root {
  /* ===============================
     POINTS COLORS (ESPRESSO MIST)
  =============================== */
  --ebpt20-section-background-color: #ffffff;
  --ebpt20-badge-background-color: #5b4636;
  --ebpt20-badge-border-color: #5b4636;
  --ebpt20-badge-text-color: #ffffff;
  --ebpt20-title-text-color: #2a211b;
  --ebpt20-title-highlight-text-color: #5b4636;
  --ebpt20-subtitle-text-color: #6f6157;
  --ebpt20-timeline-line-color: linear-gradient(90deg, transparent, rgba(42, 33, 27, 0.3) 50%, transparent);
  --ebpt20-card-background-color: #ffffff;
  --ebpt20-card-border-color: #e4dcd1;
  --ebpt20-card-hover-border-color: #5b4636;
  --ebpt20-card-icon-background-color: #5b4636;
  --ebpt20-card-icon-border-color: #5b4636;
  --ebpt20-card-icon-color: #ffffff;
  --ebpt20-card-icon-hover-background-color: #5b4636;
  --ebpt20-card-icon-hover-color: #ffffff;
  --ebpt20-card-number-background-color: #8fb0c4;
  --ebpt20-card-number-text-color: #2a211b;
  --ebpt20-card-title-text-color: #2a211b;
  --ebpt20-card-description-text-color: #6f6157;

  /* TYPOGRAPHY */
  --ebpt20-badge-font-size: 0.75rem;
  --ebpt20-badge-font-weight: 700;
  --ebpt20-badge-letter-spacing: 0;
  --ebpt20-title-font-size: 2.5rem;
  --ebpt20-title-font-weight: 800;
  --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.7rem;
  --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.25rem;
  --ebpt20-card-body-gap: 0.75rem;
  --ebpt20-card-number-padding: 0.2rem 0.8rem;

  /* 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;
  --ebpt20-card-backdrop-blur: 0px;

  /* 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;
  --ebpt20-timeline-dot-width: 3px;
  --ebpt20-timeline-dot-color: rgba(42, 33, 27, 0.3);

  /* CARD */
  --ebpt20-card-number-bottom: -12px;
  --ebpt20-card-number-right: 50%;
  --ebpt20-card-number-transform: translateX(50%);

  /* ICON */
  --ebpt20-card-icon-size: 80px;
  --ebpt20-card-icon-border-width: 2px;
  --ebpt20-card-icon-radius: 22px;

  /* BORDER */
  --ebpt20-radius: 28px;
  --ebpt20-card-border-width: 1px;
  --ebpt20-badge-border-width: 1px;
  --ebpt20-badge-radius: 10px;
  --ebpt20-card-number-border-radius: 8px;

  /* SHADOW */
  --ebpt20-card-shadow: none;
  --ebpt20-card-hover-shadow: 0 26px 40px -26px rgba(91, 70, 54, 0.55);
  --ebpt20-card-hover-glow-shadow: 0 0 0 rgba(0, 0, 0, 0);
  --ebpt20-card-icon-shadow: none;
  --ebpt20-card-icon-hover-shadow: none;
  --ebpt20-title-highlight-text-shadow: none;

  /* ANIMATION */
  --ebpt20-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ebpt20-duration-fast: 0.35s;
  --ebpt20-duration-base: 0.4s;
  --ebpt20-duration-reveal: 0.8s;
  --ebpt20-card-transition: all var(--ebpt20-duration-base) var(--ebpt20-ease);
  --ebpt20-card-icon-transition: all var(--ebpt20-duration-fast) var(--ebpt20-ease);
  --ebpt20-card-hover-transform: translateY(-3px);
  --ebpt20-card-icon-hover-transform: scale(1.05);
  --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: 2rem 1.5rem;
  --ebpt20-card-padding-tablet: 2rem;
  --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;
}

.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);
}

/* Square badge */
.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);
  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);
  text-shadow: var(--ebpt20-title-highlight-text-shadow);
}

.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: var(--ebpt20-radius);
  border-top: 2px dashed rgba(91, 70, 54, 0.38);
  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: var(--ebpt20-card-icon-radius);
  background: var(--ebpt20-card-icon-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: var(--ebpt20-card-number-border-radius);
  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;
}

.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;
  }
}

/* THEME10 LAYER */
/* ============================================================
   THEME 10 — POINTS / STEPS LAYER (blueprint cards)
   ============================================================ */
.ebpt20-section {
  z-index: 1;
  background-color: #ffffff;
  padding-top: calc(3.5rem + var(--t10-slant));
}
.ebpt20-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(91, 70, 54, 0.22) 1.6px, transparent 1.7px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  animation: t10-drift 14s linear infinite;
}
.ebpt20-header::before {
  content: "── PROCESS";
  font: 600 0.78rem/1 "El Messiri", monospace; letter-spacing: .16em; color: #5b4636;
  display: block; margin-bottom: .2rem;
}
.ebpt20-badge { border-radius: 10px; letter-spacing: 0; }
.ebpt20-title { font-weight: 800; }
.ebpt20-title-highlight {
  color: #5b4636;
  background: linear-gradient(#8fb0c4, #8fb0c4) 100% 94% / 100% 0.2em no-repeat;
}
:root[dir="ltr"] .ebpt20-title-highlight { background-position: 0 94%; }
@supports (animation-timeline: view()) {
  .ebpt20-title-highlight {
    background-size: 0% 0.2em;
    animation: t10-underline linear both;
    animation-timeline: view(); animation-range: entry 30% cover 35%;
  }
}

.ebpt20-steps-wrapper::before { display: none !important; }

.ebpt20-step-card {
  align-items: flex-start; text-align: start;
  background: #ffffff;
  border: 2px dashed rgba(91, 70, 54, 0.38);
  border-radius: 28px;
  padding: 3.6rem 1.7rem 1.9rem;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), border-color .3s ease, background-color .3s ease, box-shadow .3s ease,
              opacity .7s ease, filter .7s ease;
}
.ebpt20-step-card:hover {
  border-style: solid; border-color: #5b4636; background: #faf8f4;
  box-shadow: 0 26px 40px -26px rgba(91, 70, 54, 0.55);
  transform: translateY(-8px);
}
.ebpt20-step-card::before { background: linear-gradient(90deg, #5b4636, #8fb0c4); height: 5px; }

/* entrance */
.ebpt20-anim-up {
  opacity: 0; transform: translateY(56px) scale(.92) rotate(-1.8deg); filter: blur(8px);
}
.ebpt20-anim-up.ebpt20-visible { opacity: 1; transform: none; filter: blur(0);
}
.ebpt20-step-card.ebpt20-visible:hover { transform: translateY(-8px); }

.ebpt20-step-header { position: static; align-items: flex-start; margin-bottom: 1.3rem; }
.ebpt20-step-number {
  top: 0.55rem; inset-inline-start: 1.3rem; inset-inline-end: auto;
  background: none; padding: 0; border-radius: 0; box-shadow: none;
  font: 700 3.6rem/1 "El Messiri", monospace; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 2px #5b4636;
  transition: color .35s ease, -webkit-text-stroke-color .35s ease, transform .5s cubic-bezier(.3, 1.6, .5, 1);
}
.ebpt20-step-card:hover .ebpt20-step-number { color: #8fb0c4; -webkit-text-stroke-color: #8fb0c4; transform: scale(1.08) rotate(-4deg); }

.ebpt20-step-icon {
  width: 68px; height: 68px; border-radius: 22px;
  background: #5b4636; color: #ffffff; border: 0;
  box-shadow: 7px 7px 0 #8fb0c4;
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s ease, background-color .3s ease;
}
.ebpt20-step-card:hover .ebpt20-step-icon { transform: rotate(-10deg) scale(1.06); box-shadow: 3px 3px 0 #8fb0c4; background: #5b4636; color: #fff; }
.ebpt20-step-body { align-items: flex-start; }
.ebpt20-step-title { font-weight: 700; }
.ebpt20-step-desc { max-width: none; }
