/* ScrollSection — plain CSS. Implemented from Figma nodes 17801-4330 (desktop) and 18098-154 (mobile).
   Assumes Inter (variable) and IBM Plex Mono are loaded globally.
   Timeline steps reveal progressively as the section scrolls through the viewport. */

.ss {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background-color: transparent;
  font-family: Inter, sans-serif;
}

.ss__row {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  width: 100%;
}

.ss__intro {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.ss__eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #3f3e3c;
}

.ss__eyebrow::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background-color: #6b4fff;
}

.ss__heading {
  margin: 0;
  font-family: "inter-variable", sans-serif;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -1.44px;
  color: #0e0d0c;
  font-weight: 400;
}

.ss__timeline {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  min-width: 0;
}

.ss__item {
  display: flex;
  gap: 32px;
  min-width: 0;
}

.ss__rail {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ss__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  /* Center the dot on the title's first line: (title line-height 26.4px − 8px) / 2 */
  margin-top: 0px;
}

.ss__dot:first-child {
  margin-top: 4px;
}

.ss__line {
  flex: 1;
  width: 1px;
  min-height: 24px;
  margin: 4px 0;
  background-color: #dddcda;
  position: relative;
  overflow: hidden;
}

.ss__line-fill {
  position: absolute;
  inset: 0;
  background-color: #6b4fff;
  transform-origin: top;
}

.ss__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 24px;
  min-width: 0;
}

.ss__item:last-child .ss__content {
  padding-bottom: 0;
}

.ss__step-title {
  margin: 0;
  font-family: "inter-variable", sans-serif;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.66px;
  color: #0e0d0c;
  font-weight: 450;
}

.ss__step-body {
  margin: 0;
  font-family: "inter-variable", sans-serif;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.36px;
  color: #3f3e3c;
}

@media (max-width: 991px) {
  .ss__heading {
    font-size: 36px;
    letter-spacing: -1.08px;
  }
}

@media (max-width: 767px) {
  .ss {
    gap: 32px;
    display: flex;
    flex-direction: column;
  }

  .ss__intro {
    gap: 16px;
  }

  .ss__row {
    flex-direction: column;
  }

  /* Mobile eyebrow: slightly smaller font */
  .ss__eyebrow {
    font-size: 14px;
  }

  .ss__heading {
    font-size: 36px;
    letter-spacing: -1.08px;
  }

  .ss__item {
    gap: 20px;
  }

  .ss__rail {
    width: 16px;
  }

  .ss__dot {
    /* Center on the mobile title first line: (line-height 24px − 8px) / 2 */
    margin-top: 8px;
  }

  .ss__step-title {
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.6px;
  }

  .ss__step-body {
    font-size: 16px;
    letter-spacing: -0.32px;
  }
}

