.sb-onboarding {
  background: #f4f4f2;
  color: #0b0b0c;
  padding: clamp(84px, 9vw, 138px) 0;
  scroll-margin-top: 110px;
}

.sb-onboarding__inner {
  width: min(1240px, calc(100% - 48px));
  margin: auto;
}

.sb-onboarding__intro {
  max-width: 800px;
  margin-bottom: clamp(46px, 6vw, 76px);
}

.sb-onboarding__kicker {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sb-onboarding__intro h2 {
  margin: 0;
  font-size: clamp(42px, 5.8vw, 78px);
  line-height: .96;
  letter-spacing: -.045em;
}

.sb-onboarding__intro > p:last-child {
  max-width: 680px;
  margin: 24px 0 0;
  color: #55555a;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
}

.sb-video {
  margin: 0 0 clamp(64px, 8vw, 104px);
}

.sb-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 0;
  border-radius: 28px;
  background: #0b0b0c;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .18);
}

.sb-onboarding__grid {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(340px, 380px) minmax(250px, 1fr);
  gap: clamp(30px, 4.5vw, 72px);
  align-items: center;
  min-height: 680px;
  max-width: 1180px;
  margin: 0 auto;
}

.sb-story-side {
  position: relative;
  min-width: 0;
  min-height: 590px;
}

.sb-story-side--left {
  grid-column: 1;
}

.sb-phone-column {
  position: relative;
  z-index: 2;
  grid-column: 2;
  align-self: center;
}

.sb-story-side--right {
  grid-column: 3;
}

.sb-step {
  position: absolute;
  top: 50%;
  width: 100%;
  max-width: 320px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0b0b0c;
  font: inherit;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .34s ease, transform .34s ease, visibility 0s linear .34s;
}

.sb-step--left {
  right: 0;
  padding-right: 34px;
  text-align: right;
  transform: translate(-18px, -50%);
}

.sb-step--right {
  left: 0;
  padding-left: 34px;
  text-align: left;
  transform: translate(18px, -50%);
}

.sb-step.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%);
  transition-delay: 0s;
}

.sb-step:focus-visible {
  outline: 2px solid #0b0b0c;
  outline-offset: 12px;
}

.sb-step__indicator {
  position: absolute;
  top: 2px;
  width: 3px;
  height: 54px;
  background: #ffcb05;
}

.sb-step--left .sb-step__indicator {
  right: 0;
}

.sb-step--right .sb-step__indicator {
  left: 0;
}

.sb-step__index {
  display: block;
  margin: 0 0 22px;
  color: #6f6f69;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.sb-step__copy {
  display: block;
}

.sb-step__copy strong {
  display: block;
  margin: 0;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.035em;
}

.sb-step__copy small {
  display: block;
  margin-top: 16px;
  color: #5f5f5a;
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 400;
  line-height: 1.55;
}

.sb-step__copy em {
  display: block;
  margin-top: 20px;
  color: #777771;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sb-phone {
  position: relative;
  width: min(330px, 86vw);
  margin: auto;
  padding: 11px;
  border: 1px solid #292929;
  border-radius: 48px;
  background: #050505;
  box-shadow: 0 32px 78px rgba(0, 0, 0, .24), 0 0 0 5px #151515;
}

.sb-phone::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 11px;
  left: 50%;
  width: 105px;
  height: 25px;
  border-radius: 0 0 15px 15px;
  background: #050505;
  transform: translateX(-50%);
}

.sb-phone__screen {
  display: flex;
  flex-direction: column;
  height: 590px;
  overflow: hidden;
  border-radius: 37px;
  background: #e9e1d8;
  font-family: Arial, sans-serif;
}

.sb-chat__header {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 77px;
  padding: 27px 12px 9px;
  background: #087b68;
  color: #fff;
}

.sb-chat__back { font-size: 28px; line-height: 1; }
.sb-chat__avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: #ffcb05; color: #0b0b0c; font: 800 10px/1 Arial; }
.sb-chat__person { display: grid; flex: 1; }
.sb-chat__person strong { font-size: 14px; }
.sb-chat__person small { color: #d0e4df; font-size: 10px; }
.sb-chat__icons { display: flex; gap: 14px; }
.sb-chat__icons svg { width: 17px; height: 17px; fill: #fff; }

.sb-chat__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
  padding: 12px 10px 8px;
  background: radial-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px) 0 0 / 17px 17px, #e9e1d8;
}

.sb-chat__day { align-self: center; padding: 4px 10px; border-radius: 6px; background: #fff; box-shadow: 0 1px 1px #0002; color: #5e6b71; font-size: 9px; text-transform: uppercase; }
.sb-bubble, .sb-rich { max-width: 86%; padding: 7px 9px; border-radius: 8px 8px 8px 1px; background: #fff; box-shadow: 0 1px 1px #0002; color: #172126; font-size: 12px; line-height: 1.42; opacity: 0; transform: translateY(10px) scale(.97); }
.sb-bubble.out { align-self: flex-end; border-radius: 8px 8px 1px 8px; background: #d9fdd3; }
.sb-rich { width: 86%; padding: 10px; }
.sb-bubble.on, .sb-rich.on { animation: sbChatIn .42s cubic-bezier(.2, .8, .25, 1) forwards; }
.sb-time { float: right; margin: 6px 0 -3px 8px; color: #6b787f; font-size: 8px; }
.sb-rich__kicker { color: #68767d; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sb-rich__title { margin: 3px 0 7px; font-size: 14px; font-weight: 800; }
.sb-rich__list { display: grid; gap: 5px; font-size: 11px; }
.sb-rich__list span::before { content: "✓"; display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 6px; border-radius: 50%; background: #e5f6e2; color: #14834f; font-size: 9px; font-weight: 800; }
.sb-rich__price { margin-top: 8px; padding-top: 7px; border-top: 1px solid #e4e4e4; font-size: 12px; font-weight: 800; }
.sb-rich__action { margin-top: 8px; padding: 7px; border-radius: 5px; background: #ffcb05; font-size: 10px; font-weight: 800; text-align: center; }

.sb-chat__compose { display: flex; align-items: center; gap: 7px; padding: 7px 9px 11px; }
.sb-chat__compose > span { color: #69777d; font-size: 20px; }
.sb-chat__compose > div { display: flex; flex: 1; justify-content: space-between; padding: 10px 12px; border-radius: 20px; background: #fff; color: #859197; font-size: 12px; }
.sb-chat__compose > div b { font-weight: 400; }
.sb-chat__compose > i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #087b68; color: #fff; font-size: 12px; }

.sb-demo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(330px, 86vw);
  margin: 22px auto 0;
}

.sb-demo-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sb-demo-dot {
  width: 18px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sb-demo-dot::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: auto;
  border-radius: 20px;
  background: #bebeb8;
  transition: width .25s ease, background .25s ease;
}

.sb-demo-dot.is-active::before {
  width: 20px;
  background: #ffcb05;
}

.sb-demo-dot:focus-visible {
  outline: 2px solid #0b0b0c;
  outline-offset: 2px;
}

.sb-demo-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #cecec8;
  border-radius: 20px;
  background: transparent;
  color: #0b0b0c;
  font: 800 12px/1 inherit;
  cursor: pointer;
}

.sb-demo-play svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.sb-demo-play .play { display: none; }
.sb-demo-play.is-paused .pause { display: none; }
.sb-demo-play.is-paused .play { display: block; }

.sb-demo-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.sb-onboarding__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding: 25px 28px;
  border-radius: 20px;
  background: #0b0b0c;
  color: #fff;
}

.sb-onboarding__cta p { margin: 0; color: #d2d2d2; font-size: 14px; }
.sb-onboarding__cta a { display: inline-flex; align-items: center; gap: 20px; padding: 15px 16px 15px 22px; border-radius: 10px; background: #ffcb05; color: #0b0b0c; font-weight: 800; text-decoration: none; }
.sb-onboarding__cta svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

@keyframes sbChatIn {
  to { opacity: 1; transform: none; }
}

@media (max-width: 1099px) {
  .sb-onboarding__grid {
    grid-template-columns: minmax(310px, .9fr) minmax(280px, 1.1fr);
    gap: clamp(42px, 7vw, 78px);
    max-width: 900px;
    min-height: 680px;
  }

  .sb-phone-column {
    grid-column: 1;
    grid-row: 1;
  }

  .sb-story-side--left,
  .sb-story-side--right {
    grid-column: 2;
    grid-row: 1;
    min-height: 590px;
  }

  .sb-step--left,
  .sb-step--right {
    right: auto;
    left: 0;
    padding-right: 0;
    padding-left: 30px;
    text-align: left;
    transform: translate(16px, -50%);
  }

  .sb-step--left .sb-step__indicator,
  .sb-step--right .sb-step__indicator {
    right: auto;
    left: 0;
  }

  .sb-step.is-active {
    transform: translate(0, -50%);
  }
}

@media (max-width: 699px) {
  .sb-onboarding {
    padding: 72px 0;
  }

  .sb-onboarding__inner {
    width: calc(100% - 28px);
  }

  .sb-onboarding__intro h2 {
    font-size: clamp(39px, 12vw, 58px);
  }

  .sb-video {
    margin-bottom: 64px;
  }

  .sb-video video {
    border-radius: 18px;
  }

  .sb-onboarding__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(250px, auto);
    gap: 32px;
    min-height: 0;
  }

  .sb-phone-column {
    grid-column: 1;
    grid-row: 1;
  }

  .sb-story-side--left,
  .sb-story-side--right {
    grid-column: 1;
    grid-row: 2;
    min-height: 250px;
  }

  .sb-step--left,
  .sb-step--right {
    top: 18px;
    right: auto;
    left: 0;
    max-width: 100%;
    padding-right: 0;
    padding-left: 24px;
    text-align: left;
    transform: translateY(14px);
  }

  .sb-step.is-active {
    transform: translateY(0);
  }

  .sb-step__indicator {
    height: 44px;
  }

  .sb-step__index {
    margin-bottom: 14px;
  }

  .sb-step__copy strong {
    font-size: clamp(25px, 7.5vw, 31px);
  }

  .sb-step__copy small {
    font-size: 16px;
  }

  .sb-phone {
    width: min(316px, 88vw);
  }

  .sb-phone__screen {
    height: 550px;
  }

  .sb-demo-controls {
    width: min(316px, 88vw);
  }

  .sb-onboarding__cta {
    align-items: stretch;
    flex-direction: column;
  }

  .sb-onboarding__cta a {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sb-bubble,
  .sb-rich {
    opacity: 1;
    transform: none;
  }

  .sb-bubble.on,
  .sb-rich.on {
    animation: none;
  }

  .sb-demo-dot::before,
  .sb-step {
    transition: none;
  }
}
